From 2d879f44cfe5db627f2504ae82bccad72f714c51 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 3 Nov 2026 04:20:12 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to dcd4ef2 --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index a3b886083072..a6ce53840f7a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.50.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: ff625463db4983f3811d549fd4cd97e64180dc4e - sha256: 5599f10f5e52ddbc1358ad534e96a52d42358792d453a1b7bcfa9f7d31f85e92 + commit: dcd4ef2f4046da9658750166f99ed9d27e656cdd + sha256: bbd4eec64c2d1e02757829a7eb1dc640e3e802fcd0ff60c532acc18afaafa40b showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd From a90a46f293469388671529fb8821229890ea3224 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 3 Nov 2026 04:20:14 +0000 Subject: [PATCH 2/2] chore: generate libraries --- .../reflect-config.json | 18 + .../reflect-config.json | 18 + .../aiplatform/v1/ReasoningEngineProto.java | 73 +- .../aiplatform/v1/ReasoningEngineSpec.java | 1851 +- .../aiplatform/v1/reasoning_engine.proto | 17 + .../v1beta1/ReasoningEngineProto.java | 122 +- .../v1beta1/ReasoningEngineSpec.java | 1869 +- .../aiplatform/v1beta1/reasoning_engine.proto | 17 + .../cloud/backupdr/v1/BackupDRClient.java | 2651 +- .../cloud/backupdr/v1/BackupDRSettings.java | 251 + .../cloud/backupdr/v1/gapic_metadata.json | 33 + .../cloud/backupdr/v1/stub/BackupDRStub.java | 151 + .../v1/stub/BackupDRStubSettings.java | 971 + .../backupdr/v1/stub/GrpcBackupDRStub.java | 605 + .../v1/stub/HttpJsonBackupDRStub.java | 978 +- .../cloud/backupdr/v1beta/BackupDRClient.java | 28 +- .../v1beta/stub/BackupDRStubSettings.java | 64 +- .../v1beta/stub/HttpJsonBackupDRStub.java | 4 + .../reflect-config.json | 522 + .../v1/BackupDRClientHttpJsonTest.java | 1294 + .../cloud/backupdr/v1/BackupDRClientTest.java | 1181 + .../cloud/backupdr/v1/MockBackupDRImpl.java | 250 + .../cloud/backupdr/v1/BackupDRGrpc.java | 2087 +- .../v1/AppliedAutoProtectionPolicy.java | 3079 + .../AppliedAutoProtectionPolicyOrBuilder.java | 371 + .../v1/AppliedAutoProtectionPolicyProto.java | 169 + .../backupdr/v1/AutoProtectionDetails.java | 1520 + .../v1/AutoProtectionDetailsOrBuilder.java | 165 + .../backupdr/v1/AutoProtectionPolicy.java | 3551 ++ .../v1/AutoProtectionPolicyBinding.java | 2539 + .../v1/AutoProtectionPolicyBindingName.java | 273 + .../AutoProtectionPolicyBindingOrBuilder.java | 307 + .../v1/AutoProtectionPolicyBindingProto.java | 233 + .../backupdr/v1/AutoProtectionPolicyName.java | 235 + .../v1/AutoProtectionPolicyOrBuilder.java | 430 + .../v1/AutoProtectionPolicyProto.java | 338 + .../cloud/backupdr/v1/BackupDRProto.java | 488 +- .../backupdr/v1/BackupPlanAssociation.java | 233 +- .../v1/BackupPlanAssociationOrBuilder.java | 38 +- .../v1/BackupPlanAssociationProto.java | 67 +- .../cloud/backupdr/v1/BackupPlanDetail.java | 833 + .../v1/BackupPlanDetailOrBuilder.java | 94 + .../cloud/backupdr/v1/BackupVaultProto.java | 148 +- .../backupdr/v1/BindingEvaluationSummary.java | 712 + .../v1/BindingEvaluationSummaryOrBuilder.java | 70 + .../backupdr/v1/BindingMatchingResource.java | 1516 + .../v1/BindingMatchingResourceName.java | 312 + .../v1/BindingMatchingResourceOrBuilder.java | 192 + .../v1/BindingMatchingResourceProto.java | 170 + .../cloud/backupdr/v1/BindingSummary.java | 504 + .../backupdr/v1/BindingSummaryOrBuilder.java | 41 + ...ateAutoProtectionPolicyBindingRequest.java | 1440 + ...otectionPolicyBindingRequestOrBuilder.java | 184 + .../v1/CreateAutoProtectionPolicyRequest.java | 1414 + ...eAutoProtectionPolicyRequestOrBuilder.java | 179 + .../google/cloud/backupdr/v1/Criteria.java | 1002 + .../cloud/backupdr/v1/CriteriaOrBuilder.java | 99 + .../v1/DeleteAutoProtectionPolicyRequest.java | 1080 + ...eAutoProtectionPolicyRequestOrBuilder.java | 134 + .../DeleteBackupPlanAssociationRequest.java | 233 + ...BackupPlanAssociationRequestOrBuilder.java | 38 + .../cloud/backupdr/v1/GcpBackupConfig.java | 226 + .../backupdr/v1/GcpBackupConfigOrBuilder.java | 36 + ...GetAutoProtectionPolicyBindingRequest.java | 638 + ...otectionPolicyBindingRequestOrBuilder.java | 62 + .../v1/GetAutoProtectionPolicyRequest.java | 625 + ...tAutoProtectionPolicyRequestOrBuilder.java | 62 + ...eteAutoProtectionPolicyBindingRequest.java | 1104 + ...otectionPolicyBindingRequestOrBuilder.java | 134 + .../cloud/backupdr/v1/KeyValuePair.java | 958 + .../backupdr/v1/KeyValuePairOrBuilder.java | 130 + ...tAppliedAutoProtectionPoliciesRequest.java | 1317 + ...utoProtectionPoliciesRequestOrBuilder.java | 157 + ...AppliedAutoProtectionPoliciesResponse.java | 1509 + ...toProtectionPoliciesResponseOrBuilder.java | 181 + .../v1/ListAutoProtectionPoliciesRequest.java | 1321 + ...utoProtectionPoliciesRequestOrBuilder.java | 160 + .../ListAutoProtectionPoliciesResponse.java | 1461 + ...toProtectionPoliciesResponseOrBuilder.java | 172 + ...stAutoProtectionPolicyBindingsRequest.java | 1327 + ...tectionPolicyBindingsRequestOrBuilder.java | 160 + ...tAutoProtectionPolicyBindingsResponse.java | 1500 + ...ectionPolicyBindingsResponseOrBuilder.java | 179 + .../ListBindingMatchingResourcesRequest.java | 1366 + ...dingMatchingResourcesRequestOrBuilder.java | 172 + .../ListBindingMatchingResourcesResponse.java | 1210 + ...ingMatchingResourcesResponseOrBuilder.java | 124 + .../cloud/backupdr/v1/MatchingCondition.java | 830 + .../v1/MatchingConditionOrBuilder.java | 76 + .../backupdr/v1/PolicyEvaluationSummary.java | 711 + .../v1/PolicyEvaluationSummaryOrBuilder.java | 70 + .../v1/UpdateAutoProtectionPolicyRequest.java | 1324 + ...eAutoProtectionPolicyRequestOrBuilder.java | 165 + .../v1/appliedautoprotectionpolicy.proto | 141 + .../backupdr/v1/autoprotectionpolicy.proto | 332 + .../v1/autoprotectionpolicybinding.proto | 237 + .../google/cloud/backupdr/v1/backupdr.proto | 134 + .../backupdr/v1/backupplanassociation.proto | 24 +- .../cloud/backupdr/v1/backupvault.proto | 11 + .../backupdr/v1/bindingmatchingresource.proto | 168 + .../v1beta/AppliedAutoProtectionPolicy.java | 28 +- .../AppliedAutoProtectionPolicyOrBuilder.java | 8 +- .../AppliedAutoProtectionPolicyProto.java | 42 +- .../backupdr/v1beta/AutoProtectionPolicy.java | 63 +- .../v1beta/AutoProtectionPolicyBinding.java | 105 +- .../AutoProtectionPolicyBindingOrBuilder.java | 30 +- .../AutoProtectionPolicyBindingProto.java | 64 +- .../v1beta/AutoProtectionPolicyOrBuilder.java | 18 +- .../v1beta/AutoProtectionPolicyProto.java | 93 +- .../v1beta/BindingMatchingResource.java | 112 +- .../BindingMatchingResourceOrBuilder.java | 32 +- .../v1beta/BindingMatchingResourceProto.java | 6 +- ...ateAutoProtectionPolicyBindingRequest.java | 266 + ...otectionPolicyBindingRequestOrBuilder.java | 48 + .../CreateAutoProtectionPolicyRequest.java | 266 + ...eAutoProtectionPolicyRequestOrBuilder.java | 48 + .../DeleteAutoProtectionPolicyRequest.java | 273 +- ...eAutoProtectionPolicyRequestOrBuilder.java | 50 +- ...eteAutoProtectionPolicyBindingRequest.java | 448 + ...otectionPolicyBindingRequestOrBuilder.java | 72 + .../cloud/backupdr/v1beta/KeyValuePair.java | 26 +- .../v1beta/KeyValuePairOrBuilder.java | 8 +- .../ListAutoProtectionPoliciesResponse.java | 52 +- ...toProtectionPoliciesResponseOrBuilder.java | 16 +- .../UpdateAutoProtectionPolicyRequest.java | 296 +- ...eAutoProtectionPolicyRequestOrBuilder.java | 54 +- .../v1beta/appliedautoprotectionpolicy.proto | 7 +- .../v1beta/autoprotectionpolicy.proto | 65 +- .../v1beta/autoprotectionpolicybinding.proto | 49 +- .../v1beta/bindingmatchingresource.proto | 18 +- .../AsyncCreateAutoProtectionPolicy.java | 54 + .../AsyncCreateAutoProtectionPolicyLRO.java | 54 + .../SyncCreateAutoProtectionPolicy.java | 49 + ...ocationnameAutoprotectionpolicyString.java | 48 + ...olicyStringAutoprotectionpolicyString.java | 48 + ...syncCreateAutoProtectionPolicyBinding.java | 56 + ...cCreateAutoProtectionPolicyBindingLRO.java | 56 + ...SyncCreateAutoProtectionPolicyBinding.java | 52 + ...nameAutoprotectionpolicybindingString.java | 53 + ...ringAutoprotectionpolicybindingString.java | 52 + .../AsyncDeleteAutoProtectionPolicy.java | 54 + .../AsyncDeleteAutoProtectionPolicyLRO.java | 55 + .../SyncDeleteAutoProtectionPolicy.java | 50 + ...tectionPolicyAutoprotectionpolicyname.java | 43 + .../SyncDeleteAutoProtectionPolicyString.java | 44 + .../AsyncDeleteBackupPlanAssociation.java | 5 + .../AsyncDeleteBackupPlanAssociationLRO.java | 5 + .../SyncDeleteBackupPlanAssociation.java | 5 + .../AsyncGetAutoProtectionPolicy.java | 52 + .../SyncGetAutoProtectionPolicy.java | 48 + ...tectionPolicyAutoprotectionpolicyname.java | 43 + .../SyncGetAutoProtectionPolicyString.java | 44 + .../AsyncGetAutoProtectionPolicyBinding.java | 53 + .../SyncGetAutoProtectionPolicyBinding.java | 49 + ...indingAutoprotectionpolicybindingname.java | 45 + ...cGetAutoProtectionPolicyBindingString.java | 45 + ...iateDeleteAutoProtectionPolicyBinding.java | 55 + ...eDeleteAutoProtectionPolicyBindingLRO.java | 58 + ...iateDeleteAutoProtectionPolicyBinding.java | 52 + ...indingAutoprotectionpolicybindingname.java | 46 + ...leteAutoProtectionPolicyBindingString.java | 46 + ...syncListAppliedAutoProtectionPolicies.java | 56 + ...istAppliedAutoProtectionPoliciesPaged.java | 65 + ...SyncListAppliedAutoProtectionPolicies.java | 53 + ...iedAutoProtectionPoliciesLocationname.java | 45 + ...stAppliedAutoProtectionPoliciesString.java | 45 + .../AsyncListAutoProtectionPolicies.java | 56 + .../AsyncListAutoProtectionPoliciesPaged.java | 64 + .../SyncListAutoProtectionPolicies.java | 53 + ...istAutoProtectionPoliciesLocationname.java | 45 + .../SyncListAutoProtectionPoliciesString.java | 45 + ...AsyncListAutoProtectionPolicyBindings.java | 58 + ...ListAutoProtectionPolicyBindingsPaged.java | 66 + .../SyncListAutoProtectionPolicyBindings.java | 55 + ...olicyBindingsAutoprotectionpolicyname.java | 47 + ...istAutoProtectionPolicyBindingsString.java | 47 + .../AsyncListBindingMatchingResources.java | 59 + ...syncListBindingMatchingResourcesPaged.java | 67 + .../SyncListBindingMatchingResources.java | 56 + ...ourcesAutoprotectionpolicybindingname.java | 48 + ...yncListBindingMatchingResourcesString.java | 48 + .../AsyncUpdateAutoProtectionPolicy.java | 53 + .../AsyncUpdateAutoProtectionPolicyLRO.java | 53 + .../SyncUpdateAutoProtectionPolicy.java | 48 + ...onPolicyAutoprotectionpolicyFieldmask.java | 45 + .../AsyncCreateAutoProtectionPolicy.java | 1 + .../AsyncCreateAutoProtectionPolicyLRO.java | 1 + .../SyncCreateAutoProtectionPolicy.java | 1 + ...syncCreateAutoProtectionPolicyBinding.java | 1 + ...cCreateAutoProtectionPolicyBindingLRO.java | 1 + ...SyncCreateAutoProtectionPolicyBinding.java | 1 + .../AsyncDeleteAutoProtectionPolicy.java | 1 + .../AsyncDeleteAutoProtectionPolicyLRO.java | 1 + .../SyncDeleteAutoProtectionPolicy.java | 1 + ...iateDeleteAutoProtectionPolicyBinding.java | 2 + ...eDeleteAutoProtectionPolicyBindingLRO.java | 2 + ...iateDeleteAutoProtectionPolicyBinding.java | 2 + .../AsyncUpdateAutoProtectionPolicy.java | 1 + .../AsyncUpdateAutoProtectionPolicyLRO.java | 1 + .../SyncUpdateAutoProtectionPolicy.java | 1 + .../com.google.chat.v1/reflect-config.json | 108 + .../v1/ChatServiceClientHttpJsonTest.java | 7 + .../google/chat/v1/ChatServiceClientTest.java | 5 + .../com/google/chat/v1/ActionStatusProto.java | 19 +- .../java/com/google/chat/v1/Citation.java | 1205 + .../com/google/chat/v1/CitationOrBuilder.java | 130 + .../com/google/chat/v1/CitationProto.java | 92 + .../java/com/google/chat/v1/CitedSource.java | 3056 + .../google/chat/v1/CitedSourceOrBuilder.java | 170 + .../com/google/chat/v1/CitedSourceProto.java | 127 + .../google/chat/v1/CreateMessageRequest.java | 14 +- .../v1/CreateMessageRequestOrBuilder.java | 4 +- .../java/com/google/chat/v1/Elements.java | 1612 + .../google/chat/v1/ElementsCommonProto.java | 88 + .../com/google/chat/v1/ElementsImage.java | 743 + .../chat/v1/ElementsImageOrBuilder.java | 72 + .../com/google/chat/v1/ElementsOrBuilder.java | 178 + .../com/google/chat/v1/ElementsProto.java | 95 + .../main/java/com/google/chat/v1/Message.java | 446 +- .../com/google/chat/v1/MessageOrBuilder.java | 76 + .../java/com/google/chat/v1/MessageProto.java | 62 +- .../main/java/com/google/chat/v1/Space.java | 18 +- .../proto/google/chat/v1/action_status.proto | 1 + .../main/proto/google/chat/v1/citation.proto | 50 + .../proto/google/chat/v1/cited_source.proto | 68 + .../main/proto/google/chat/v1/elements.proto | 49 + .../google/chat/v1/elements_common.proto | 42 + .../main/proto/google/chat/v1/message.proto | 17 + .../src/main/proto/google/chat/v1/space.proto | 2 +- .../compute/v1/BackendServiceHAPolicy.java | 30 + .../v1/BackendServiceHAPolicyOrBuilder.java | 9 + .../v1/BulkInsertInstanceResource.java | 84 +- .../BulkInsertInstanceResourceOrBuilder.java | 21 +- .../compute/v1/CacheInvalidationRule.java | 36 +- .../v1/CacheInvalidationRuleOrBuilder.java | 12 +- .../google/cloud/compute/v1/Commitment.java | 46 + .../com/google/cloud/compute/v1/Compute.java | 19088 +++---- .../compute/v1/InstanceFlexibilityPolicy.java | 132 +- .../InstanceFlexibilityPolicyOrBuilder.java | 55 +- .../google/cloud/compute/v1/Scheduling.java | 30 +- .../cloud/compute/v1/SchedulingOrBuilder.java | 10 +- .../compute/v1/VpnTunnelCipherSuite.java | 152 +- .../v1/VpnTunnelCipherSuiteOrBuilder.java | 44 +- .../compute/v1/VpnTunnelPhase1Algorithms.java | 312 + .../VpnTunnelPhase1AlgorithmsOrBuilder.java | 96 + .../compute/v1/VpnTunnelPhase2Algorithms.java | 234 + .../VpnTunnelPhase2AlgorithmsOrBuilder.java | 72 + .../google/cloud/compute/v1/compute.proto | 50 +- .../v1/DeveloperConnectClient.java | 2033 +- .../v1/DeveloperConnectSettings.java | 168 + .../developerconnect/v1/gapic_metadata.json | 30 + .../v1/stub/DeveloperConnectStub.java | 100 + .../v1/stub/DeveloperConnectStubSettings.java | 524 + .../v1/stub/GrpcDeveloperConnectStub.java | 490 + .../v1/stub/HttpJsonDeveloperConnectStub.java | 767 + .../reflect-config.json | 423 + .../DeveloperConnectClientHttpJsonTest.java | 1124 + .../v1/DeveloperConnectClientTest.java | 1030 + .../v1/MockDeveloperConnectImpl.java | 230 + .../v1/DeveloperConnectGrpc.java | 1642 +- ...positoryLinkPullRequestCommentRequest.java | 1163 + ...inkPullRequestCommentRequestOrBuilder.java | 129 + ...ryLinkPullRequestReviewCommentRequest.java | 1389 + ...lRequestReviewCommentRequestOrBuilder.java | 157 + .../cloud/developerconnect/v1/BlameRange.java | 892 + .../v1/BlameRangeOrBuilder.java | 91 + .../cloud/developerconnect/v1/CommitView.java | 193 + .../v1/DeveloperConnectProto.java | 960 +- .../DiffGitRepositoryLinkCommitRequest.java | 1347 + ...tRepositoryLinkCommitRequestOrBuilder.java | 180 + .../DiffGitRepositoryLinkCommitResponse.java | 940 + ...RepositoryLinkCommitResponseOrBuilder.java | 84 + ...tchGitRepositoryLinkCommitListRequest.java | 1363 + ...ositoryLinkCommitListRequestOrBuilder.java | 176 + ...chGitRepositoryLinkCommitListResponse.java | 1147 + ...sitoryLinkCommitListResponseOrBuilder.java | 112 + .../FetchGitRepositoryLinkCommitRequest.java | 1378 + ...tRepositoryLinkCommitRequestOrBuilder.java | 198 + .../FetchGitRepositoryLinkCommitResponse.java | 1281 + ...RepositoryLinkCommitResponseOrBuilder.java | 131 + ...etchGitRepositoryLinkFileBlameRequest.java | 1230 + ...positoryLinkFileBlameRequestOrBuilder.java | 142 + ...tchGitRepositoryLinkFileBlameResponse.java | 950 + ...ositoryLinkFileBlameResponseOrBuilder.java | 84 + ...tRepositoryLinkPullRequestListRequest.java | 1194 + ...ryLinkPullRequestListRequestOrBuilder.java | 143 + ...RepositoryLinkPullRequestListResponse.java | 1168 + ...yLinkPullRequestListResponseOrBuilder.java | 112 + ...chGitRepositoryLinkPullRequestRequest.java | 833 + ...sitoryLinkPullRequestRequestOrBuilder.java | 86 + .../cloud/developerconnect/v1/FileDiff.java | 980 + .../v1/FileDiffOrBuilder.java | 108 + ...fyGitRepositoryLinkPullRequestRequest.java | 1765 + ...sitoryLinkPullRequestRequestOrBuilder.java | 194 + ...enGitRepositoryLinkPullRequestRequest.java | 974 + ...sitoryLinkPullRequestRequestOrBuilder.java | 106 + .../developerconnect/v1/PullRequest.java | 4022 ++ .../v1/PullRequestComment.java | 1582 + .../v1/PullRequestCommentOrBuilder.java | 186 + .../v1/PullRequestOrBuilder.java | 482 + .../v1/PullRequestReviewComment.java | 2517 + .../v1/PullRequestReviewCommentOrBuilder.java | 296 + .../cloud/developerconnect/v1/SCMCommit.java | 1639 + .../v1/SCMCommitOrBuilder.java | 195 + .../developerconnect/v1/SystemProvider.java | 2 +- .../v1/developer_connect.proto | 616 + ...ddGitRepositoryLinkPullRequestComment.java | 57 + ...ddGitRepositoryLinkPullRequestComment.java | 52 + ...itorylinknameStringPullrequestcomment.java | 51 + ...CommentStringStringPullrequestcomment.java | 50 + ...epositoryLinkPullRequestReviewComment.java | 58 + ...epositoryLinkPullRequestReviewComment.java | 53 + ...inknameStringPullrequestreviewcomment.java | 51 + ...tStringStringPullrequestreviewcomment.java | 51 + .../AsyncDiffGitRepositoryLinkCommit.java | 57 + .../SyncDiffGitRepositoryLinkCommit.java | 54 + ...mmitGitrepositorylinknameStringString.java | 48 + ...epositoryLinkCommitStringStringString.java | 48 + .../AsyncFetchGitRepositoryLinkCommit.java | 58 + .../SyncFetchGitRepositoryLinkCommit.java | 55 + ...LinkCommitGitrepositorylinknameString.java | 47 + ...chGitRepositoryLinkCommitStringString.java | 47 + ...AsyncFetchGitRepositoryLinkCommitList.java | 62 + ...FetchGitRepositoryLinkCommitListPaged.java | 68 + .../SyncFetchGitRepositoryLinkCommitList.java | 57 + ...CommitListGitrepositorylinknameString.java | 49 + ...tRepositoryLinkCommitListStringString.java | 49 + .../AsyncFetchGitRepositoryLinkFileBlame.java | 57 + .../SyncFetchGitRepositoryLinkFileBlame.java | 54 + ...lameGitrepositorylinknameStringString.java | 48 + ...sitoryLinkFileBlameStringStringString.java | 48 + ...syncFetchGitRepositoryLinkPullRequest.java | 54 + ...SyncFetchGitRepositoryLinkPullRequest.java | 50 + ...ullRequestGitrepositorylinknameString.java | 47 + ...RepositoryLinkPullRequestStringString.java | 47 + ...FetchGitRepositoryLinkPullRequestList.java | 60 + ...GitRepositoryLinkPullRequestListPaged.java | 66 + ...FetchGitRepositoryLinkPullRequestList.java | 55 + ...kPullRequestListGitrepositorylinkname.java | 48 + ...itRepositoryLinkPullRequestListString.java | 48 + ...yncModifyGitRepositoryLinkPullRequest.java | 57 + ...yncModifyGitRepositoryLinkPullRequest.java | 53 + ...ullRequestGitrepositorylinknameString.java | 47 + ...RepositoryLinkPullRequestStringString.java | 47 + ...AsyncOpenGitRepositoryLinkPullRequest.java | 54 + .../SyncOpenGitRepositoryLinkPullRequest.java | 50 + ...questGitrepositorylinknamePullrequest.java | 47 + ...itoryLinkPullRequestStringPullrequest.java | 47 + .../v1/AclConfigServiceClient.java | 402 + .../v1/AclConfigServiceSettings.java | 229 + .../v1/AssistantServiceClient.java | 795 +- .../v1/AssistantServiceSettings.java | 64 +- .../v1/CollectionServiceClient.java | 722 + .../v1/CollectionServiceSettings.java | 284 + .../v1/CompletionServiceClient.java | 99 + .../v1/CompletionServiceSettings.java | 12 + .../v1/ConversationalSearchServiceClient.java | 2 + .../v1/DataConnectorServiceClient.java | 776 + .../v1/DataConnectorServiceSettings.java | 287 + .../v1/DataStoreServiceClient.java | 347 + .../v1/DataStoreServiceSettings.java | 23 + .../v1/EngineServiceClient.java | 361 +- .../v1/EngineServiceSettings.java | 23 + .../v1/LicenseConfigServiceClient.java | 1482 + .../v1/LicenseConfigServiceSettings.java | 288 + .../v1/ProjectServiceClient.java | 3 + .../v1/ServingConfigServiceClient.java | 907 +- .../v1/ServingConfigServiceSettings.java | 58 +- .../v1/SessionServiceClient.java | 2 + .../v1/UserLicenseServiceClient.java | 162 +- .../v1/UserLicenseServiceSettings.java | 21 +- .../v1/UserStoreServiceClient.java | 437 + .../v1/UserStoreServiceSettings.java | 229 + .../v1/WidgetConfigServiceClient.java | 473 + .../v1/WidgetConfigServiceSettings.java | 232 + .../discoveryengine/v1/gapic_metadata.json | 153 + .../discoveryengine/v1/package-info.java | 156 +- .../v1/stub/AclConfigServiceStub.java | 47 + .../v1/stub/AclConfigServiceStubSettings.java | 373 + .../v1/stub/AssistantServiceStub.java | 36 + .../v1/stub/AssistantServiceStubSettings.java | 244 +- .../stub/CmekConfigServiceStubSettings.java | 6 +- .../v1/stub/CollectionServiceStub.java | 72 + .../stub/CollectionServiceStubSettings.java | 474 + .../v1/stub/CompletionServiceStub.java | 7 + .../stub/CompletionServiceStubSettings.java | 37 +- .../v1/stub/ControlServiceStubSettings.java | 6 +- ...nversationalSearchServiceStubSettings.java | 6 +- .../v1/stub/DataConnectorServiceStub.java | 72 + .../DataConnectorServiceStubSettings.java | 487 + .../v1/stub/DataStoreServiceStub.java | 11 + .../v1/stub/DataStoreServiceStubSettings.java | 57 +- .../v1/stub/DocumentServiceStubSettings.java | 18 +- .../v1/stub/EngineServiceStub.java | 11 + .../v1/stub/EngineServiceStubSettings.java | 57 +- ...GroundedGenerationServiceStubSettings.java | 6 +- .../GrpcAclConfigServiceCallableFactory.java | 115 + .../v1/stub/GrpcAclConfigServiceStub.java | 196 + .../v1/stub/GrpcAssistantServiceStub.java | 177 + .../GrpcCollectionServiceCallableFactory.java | 115 + .../v1/stub/GrpcCollectionServiceStub.java | 245 + .../v1/stub/GrpcCompletionServiceStub.java | 42 + ...pcDataConnectorServiceCallableFactory.java | 115 + .../v1/stub/GrpcDataConnectorServiceStub.java | 258 + .../v1/stub/GrpcDataStoreServiceStub.java | 61 + .../v1/stub/GrpcEngineServiceStub.java | 61 + ...pcLicenseConfigServiceCallableFactory.java | 115 + .../v1/stub/GrpcLicenseConfigServiceStub.java | 384 + .../v1/stub/GrpcServingConfigServiceStub.java | 161 + .../v1/stub/GrpcUserLicenseServiceStub.java | 46 + .../GrpcUserStoreServiceCallableFactory.java | 115 + .../v1/stub/GrpcUserStoreServiceStub.java | 196 + ...rpcWidgetConfigServiceCallableFactory.java | 115 + .../v1/stub/GrpcWidgetConfigServiceStub.java | 202 + ...tpJsonAclConfigServiceCallableFactory.java | 103 + .../v1/stub/HttpJsonAclConfigServiceStub.java | 260 + .../v1/stub/HttpJsonAssistantServiceStub.java | 314 + .../stub/HttpJsonCmekConfigServiceStub.java | 5 + ...pJsonCollectionServiceCallableFactory.java | 103 + .../stub/HttpJsonCollectionServiceStub.java | 540 + .../stub/HttpJsonCompletionServiceStub.java | 83 + ...tpJsonConversationalSearchServiceStub.java | 1 + ...onDataConnectorServiceCallableFactory.java | 103 + .../HttpJsonDataConnectorServiceStub.java | 557 + .../v1/stub/HttpJsonDataStoreServiceStub.java | 128 + .../v1/stub/HttpJsonDocumentServiceStub.java | 5 + .../v1/stub/HttpJsonEngineServiceStub.java | 124 + ...tpJsonIdentityMappingStoreServiceStub.java | 5 + ...onLicenseConfigServiceCallableFactory.java | 103 + .../HttpJsonLicenseConfigServiceStub.java | 580 + .../v1/stub/HttpJsonProjectServiceStub.java | 6 + .../v1/stub/HttpJsonSchemaServiceStub.java | 5 + .../stub/HttpJsonSearchTuningServiceStub.java | 5 + .../HttpJsonServingConfigServiceStub.java | 279 + .../v1/stub/HttpJsonSessionServiceStub.java | 1 + .../HttpJsonSiteSearchEngineServiceStub.java | 5 + .../v1/stub/HttpJsonUserEventServiceStub.java | 5 + .../stub/HttpJsonUserLicenseServiceStub.java | 76 + ...tpJsonUserStoreServiceCallableFactory.java | 103 + .../v1/stub/HttpJsonUserStoreServiceStub.java | 261 + ...sonWidgetConfigServiceCallableFactory.java | 103 + .../stub/HttpJsonWidgetConfigServiceStub.java | 286 + ...entityMappingStoreServiceStubSettings.java | 6 +- .../v1/stub/LicenseConfigServiceStub.java | 80 + .../LicenseConfigServiceStubSettings.java | 569 + .../v1/stub/ProjectServiceStubSettings.java | 6 +- .../v1/stub/RankServiceStubSettings.java | 6 +- .../RecommendationServiceStubSettings.java | 6 +- .../v1/stub/SchemaServiceStubSettings.java | 6 +- .../stub/SearchTuningServiceStubSettings.java | 6 +- .../v1/stub/ServingConfigServiceStub.java | 30 + .../ServingConfigServiceStubSettings.java | 198 +- .../v1/stub/SessionServiceStubSettings.java | 7 +- .../SiteSearchEngineServiceStubSettings.java | 6 +- .../v1/stub/UserEventServiceStubSettings.java | 19 +- .../v1/stub/UserLicenseServiceStub.java | 8 + .../stub/UserLicenseServiceStubSettings.java | 52 +- .../v1/stub/UserStoreServiceStub.java | 47 + .../v1/stub/UserStoreServiceStubSettings.java | 373 + .../v1/stub/WidgetConfigServiceStub.java | 47 + .../stub/WidgetConfigServiceStubSettings.java | 380 + .../reflect-config.json | 5114 +- .../AclConfigServiceClientHttpJsonTest.java | 222 + .../v1/AclConfigServiceClientTest.java | 199 + .../AssistantServiceClientHttpJsonTest.java | 465 + .../v1/AssistantServiceClientTest.java | 387 + .../CollectionServiceClientHttpJsonTest.java | 365 + .../v1/CollectionServiceClientTest.java | 347 + .../CompletionServiceClientHttpJsonTest.java | 83 + .../v1/CompletionServiceClientTest.java | 89 + ...tionalSearchServiceClientHttpJsonTest.java | 7 + ...ConversationalSearchServiceClientTest.java | 5 + ...ataConnectorServiceClientHttpJsonTest.java | 624 + .../v1/DataConnectorServiceClientTest.java | 527 + .../DataStoreServiceClientHttpJsonTest.java | 244 + .../v1/DataStoreServiceClientTest.java | 210 + .../v1/EngineServiceClientHttpJsonTest.java | 272 + .../v1/EngineServiceClientTest.java | 228 + ...icenseConfigServiceClientHttpJsonTest.java | 838 + .../v1/LicenseConfigServiceClientTest.java | 767 + .../v1/MockAclConfigService.java | 59 + .../v1/MockAclConfigServiceImpl.java | 102 + .../v1/MockAssistantServiceImpl.java | 106 + .../v1/MockCollectionService.java | 59 + .../v1/MockCollectionServiceImpl.java | 125 + .../v1/MockCompletionServiceImpl.java | 23 + .../v1/MockDataConnectorService.java | 59 + .../v1/MockDataConnectorServiceImpl.java | 124 + .../v1/MockDataStoreServiceImpl.java | 43 + .../v1/MockEngineServiceImpl.java | 43 + .../v1/MockLicenseConfigService.java | 59 + .../v1/MockLicenseConfigServiceImpl.java | 191 + .../v1/MockServingConfigServiceImpl.java | 86 + .../v1/MockUserLicenseServiceImpl.java | 23 + .../v1/MockUserStoreService.java | 59 + .../v1/MockUserStoreServiceImpl.java | 102 + .../v1/MockWidgetConfigService.java | 59 + .../v1/MockWidgetConfigServiceImpl.java | 102 + .../v1/ProjectServiceClientHttpJsonTest.java | 4 + .../v1/ProjectServiceClientTest.java | 4 + ...ervingConfigServiceClientHttpJsonTest.java | 589 + .../v1/ServingConfigServiceClientTest.java | 528 + .../v1/SessionServiceClientHttpJsonTest.java | 7 + .../v1/SessionServiceClientTest.java | 5 + .../UserEventServiceClientHttpJsonTest.java | 2 + .../v1/UserEventServiceClientTest.java | 2 + .../UserLicenseServiceClientHttpJsonTest.java | 90 + .../v1/UserLicenseServiceClientTest.java | 80 + .../UserStoreServiceClientHttpJsonTest.java | 239 + .../v1/UserStoreServiceClientTest.java | 213 + ...WidgetConfigServiceClientHttpJsonTest.java | 337 + .../v1/WidgetConfigServiceClientTest.java | 273 + .../v1/AclConfigServiceGrpc.java | 567 + .../v1/AssistantServiceGrpc.java | 669 + .../v1/CollectionServiceGrpc.java | 735 + .../v1/CompletionServiceGrpc.java | 150 +- .../v1/DataConnectorServiceGrpc.java | 743 + .../v1/DataStoreServiceGrpc.java | 308 + .../discoveryengine/v1/EngineServiceGrpc.java | 338 +- .../v1/LicenseConfigServiceGrpc.java | 1173 + .../v1/ServingConfigServiceGrpc.java | 586 +- .../v1/UserLicenseServiceGrpc.java | 159 +- .../v1/UserStoreServiceGrpc.java | 557 + .../v1/WidgetConfigServiceGrpc.java | 571 + .../cloud/discoveryengine/v1/AclConfig.java | 923 + .../discoveryengine/v1/AclConfigName.java | 195 + .../v1/AclConfigOrBuilder.java | 101 + .../discoveryengine/v1/AclConfigProto.java | 103 + .../v1/AclConfigServiceProto.java | 139 + .../discoveryengine/v1/ActionConfig.java | 2839 + .../v1/ActionConfigOrBuilder.java | 274 + .../v1/AdvancedCompleteQueryRequest.java | 6868 +++ ...AdvancedCompleteQueryRequestOrBuilder.java | 546 + .../v1/AdvancedCompleteQueryResponse.java | 10056 ++++ ...dvancedCompleteQueryResponseOrBuilder.java | 354 + .../v1/AgentGatewaySetting.java | 1482 + .../v1/AgentGatewaySettingOrBuilder.java | 85 + .../v1/AgentGatewaySettingProto.java | 114 + .../discoveryengine/v1/AlertPolicyConfig.java | 2211 + .../v1/AlertPolicyConfigOrBuilder.java | 124 + .../v1/AnswerGenerationSpec.java | 2399 + .../v1/AnswerGenerationSpecOrBuilder.java | 73 + .../v1/AnswerQueryRequest.java | 50 +- .../v1/AnswerQueryRequestOrBuilder.java | 14 +- .../discoveryengine/v1/AssistAnswer.java | 6798 ++- .../v1/AssistAnswerOrBuilder.java | 161 +- .../discoveryengine/v1/AssistAnswerProto.java | 260 +- .../cloud/discoveryengine/v1/Assistant.java | 11963 +++- .../v1/AssistantGroundedContent.java | 6246 ++- .../v1/AssistantGroundedContentOrBuilder.java | 40 + .../v1/AssistantOrBuilder.java | 406 + .../discoveryengine/v1/AssistantProto.java | 206 +- .../v1/AssistantServiceProto.java | 302 +- .../cloud/discoveryengine/v1/BAPConfig.java | 3086 + .../v1/BAPConfigOrBuilder.java | 228 + .../v1/BatchUpdateUserLicensesRequest.java | 45 +- ...tchUpdateUserLicensesRequestOrBuilder.java | 12 +- .../v1/BillingAccountLicenseConfigName.java | 214 + .../cloud/discoveryengine/v1/Chunk.java | 242 +- .../cloud/discoveryengine/v1/ChunkProto.java | 36 +- .../cloud/discoveryengine/v1/Citation.java | 1729 + .../discoveryengine/v1/CitationMetadata.java | 970 + .../v1/CitationMetadataOrBuilder.java | 94 + .../discoveryengine/v1/CitationOrBuilder.java | 172 + .../cloud/discoveryengine/v1/CliConfig.java | 696 + .../v1/CliConfigOrBuilder.java | 82 + .../cloud/discoveryengine/v1/CmekConfig.java | 74 +- .../v1/CmekConfigOrBuilder.java | 14 +- .../v1/CmekConfigServiceProto.java | 147 +- .../cloud/discoveryengine/v1/Collection.java | 1163 + .../v1/CollectionOrBuilder.java | 139 + .../discoveryengine/v1/CollectionProto.java | 103 + .../v1/CollectionServiceProto.java | 158 + .../cloud/discoveryengine/v1/CommonProto.java | 257 +- .../v1/CompleteQueryRequest.java | 70 +- .../v1/CompleteQueryRequestOrBuilder.java | 20 +- .../v1/CompletionConfigName.java | 482 + .../discoveryengine/v1/CompletionInfo.java | 28 +- .../v1/CompletionInfoOrBuilder.java | 8 +- .../v1/CompletionServiceProto.java | 387 +- .../discoveryengine/v1/ConnectorType.java | 495 + .../v1/ControlServiceProto.java | 18 +- .../v1/ConversationalSearchServiceProto.java | 214 +- .../v1/CreateAssistantRequest.java | 1189 + .../v1/CreateAssistantRequestOrBuilder.java | 146 + .../v1/CreateLicenseConfigRequest.java | 1183 + .../CreateLicenseConfigRequestOrBuilder.java | 142 + .../v1/CreateServingConfigRequest.java | 1160 + .../CreateServingConfigRequestOrBuilder.java | 137 + .../v1/CreateSessionRequest.java | 224 + .../v1/CreateSessionRequestOrBuilder.java | 36 + .../discoveryengine/v1/DataConnector.java | 25889 +++++++++ .../discoveryengine/v1/DataConnectorName.java | 226 + .../v1/DataConnectorOrBuilder.java | 2114 + .../v1/DataConnectorProto.java | 667 + .../v1/DataConnectorServiceProto.java | 192 + .../v1/DataProtectionPolicy.java | 1468 + .../v1/DataProtectionPolicyOrBuilder.java | 76 + .../cloud/discoveryengine/v1/DataStore.java | 17826 ++++-- .../v1/DataStoreOrBuilder.java | 222 + .../discoveryengine/v1/DataStoreProto.java | 320 +- .../v1/DataStoreServiceProto.java | 185 +- .../v1/DeleteAssistantRequest.java | 678 + .../v1/DeleteAssistantRequestOrBuilder.java | 76 + .../v1/DeleteCollectionMetadata.java | 992 + .../v1/DeleteCollectionMetadataOrBuilder.java | 105 + .../v1/DeleteCollectionRequest.java | 622 + .../v1/DeleteCollectionRequestOrBuilder.java | 60 + .../v1/DeleteServingConfigRequest.java | 624 + .../DeleteServingConfigRequestOrBuilder.java | 60 + .../discoveryengine/v1/DestinationConfig.java | 2707 + .../v1/DestinationConfigOrBuilder.java | 205 + .../v1/DistributeLicenseConfigRequest.java | 1246 + ...stributeLicenseConfigRequestOrBuilder.java | 149 + .../v1/DistributeLicenseConfigResponse.java | 717 + ...tributeLicenseConfigResponseOrBuilder.java | 65 + .../cloud/discoveryengine/v1/Document.java | 162 +- .../discoveryengine/v1/DocumentOrBuilder.java | 33 +- .../v1/DocumentProcessingConfig.java | 298 +- .../v1/DocumentProcessingConfigProto.java | 56 +- .../v1/DocumentServiceProto.java | 26 +- .../cloud/discoveryengine/v1/DynamicTool.java | 1071 + .../v1/DynamicToolOrBuilder.java | 119 + .../cloud/discoveryengine/v1/Engine.java | 32607 +++++++---- .../discoveryengine/v1/EngineOrBuilder.java | 1110 + .../cloud/discoveryengine/v1/EngineProto.java | 245 +- .../v1/EngineServiceProto.java | 82 +- .../cloud/discoveryengine/v1/Feedback.java | 5042 ++ .../discoveryengine/v1/FeedbackOrBuilder.java | 302 + .../discoveryengine/v1/FeedbackProto.java | 165 + .../v1/GenerateGroundedContentRequest.java | 1704 +- .../v1/GenerateGroundedContentResponse.java | 4842 +- .../v1/GetAclConfigRequest.java | 653 + .../v1/GetAclConfigRequestOrBuilder.java | 70 + .../v1/GetAssistantRequest.java | 629 + .../v1/GetAssistantRequestOrBuilder.java | 62 + .../v1/GetDataConnectorRequest.java | 685 + .../v1/GetDataConnectorRequestOrBuilder.java | 78 + .../v1/GetLicenseConfigRequest.java | 685 + .../v1/GetLicenseConfigRequestOrBuilder.java | 78 + .../v1/GetServingConfigRequest.java | 618 + .../v1/GetServingConfigRequestOrBuilder.java | 60 + .../v1/GetUserStoreRequest.java | 627 + .../v1/GetUserStoreRequestOrBuilder.java | 62 + .../v1/GetWidgetConfigRequest.java | 2092 + .../v1/GetWidgetConfigRequestOrBuilder.java | 197 + .../v1/GroundedGenerationServiceProto.java | 313 +- .../v1/HealthcareFhirConfig.java | 371 +- .../v1/HealthcareFhirConfigOrBuilder.java | 78 + .../v1/IdentityMappingEntry.java | 189 + .../v1/IdentityMappingEntryOrBuilder.java | 26 + .../v1/IdentityMappingStoreProto.java | 17 +- .../v1/IdentityMappingStoreServiceProto.java | 18 +- .../v1/IdentityScheduleConfig.java | 1095 + .../v1/IdentityScheduleConfigOrBuilder.java | 129 + .../cloud/discoveryengine/v1/IdpConfig.java | 1677 + .../v1/IdpConfigOrBuilder.java | 95 + .../discoveryengine/v1/ImportConfigProto.java | 82 +- .../v1/ImportDocumentsRequest.java | 13 +- .../v1/ImportDocumentsRequestOrBuilder.java | 2 - .../v1/ImportUserEventsMetadata.java | 93 +- .../v1/ImportUserEventsMetadataOrBuilder.java | 21 +- .../discoveryengine/v1/LicenseConfig.java | 3113 ++ .../discoveryengine/v1/LicenseConfigName.java | 230 + .../v1/LicenseConfigOrBuilder.java | 394 + .../v1/LicenseConfigProto.java | 144 + .../v1/LicenseConfigServiceProto.java | 287 + .../v1/LicenseConfigUsageStats.java | 694 + .../v1/LicenseConfigUsageStatsOrBuilder.java | 67 + .../v1/ListAssistantsRequest.java | 979 + .../v1/ListAssistantsRequestOrBuilder.java | 119 + .../v1/ListAssistantsResponse.java | 1140 + .../v1/ListAssistantsResponseOrBuilder.java | 116 + .../v1/ListLicenseConfigsRequest.java | 1192 + .../ListLicenseConfigsRequestOrBuilder.java | 151 + .../v1/ListLicenseConfigsResponse.java | 1160 + .../ListLicenseConfigsResponseOrBuilder.java | 115 + .../ListLicenseConfigsUsageStatsRequest.java | 638 + ...enseConfigsUsageStatsRequestOrBuilder.java | 60 + .../ListLicenseConfigsUsageStatsResponse.java | 1045 + ...nseConfigsUsageStatsResponseOrBuilder.java | 101 + .../v1/ListServingConfigsRequest.java | 923 + .../ListServingConfigsRequestOrBuilder.java | 103 + .../v1/ListServingConfigsResponse.java | 1133 + .../ListServingConfigsResponseOrBuilder.java | 110 + .../v1/ListSessionsRequest.java | 175 +- .../v1/ListSessionsRequestOrBuilder.java | 50 +- .../v1/ListUserLicensesRequest.java | 366 +- .../v1/ListUserLicensesRequestOrBuilder.java | 76 +- .../discoveryengine/v1/LoggingProto.java | 96 + .../discoveryengine/v1/ModelInfoView.java | 228 + .../v1/ObservabilityConfig.java | 609 + .../v1/ObservabilityConfigOrBuilder.java | 56 + .../cloud/discoveryengine/v1/Project.java | 14867 ++++- .../discoveryengine/v1/ProjectOrBuilder.java | 89 + .../discoveryengine/v1/ProjectProto.java | 259 +- .../v1/ProjectServiceProto.java | 61 +- .../v1/ProvisionProjectRequest.java | 974 +- .../v1/ProvisionProjectRequestOrBuilder.java | 44 + .../PurgeCompletionSuggestionsResponse.java | 6 +- .../v1/PurgeIdentityMappingsRequest.java | 7 + ...PurgeIdentityMappingsRequestOrBuilder.java | 2 + .../cloud/discoveryengine/v1/RankRequest.java | 46 +- .../v1/RankRequestOrBuilder.java | 10 +- .../discoveryengine/v1/RankServiceProto.java | 18 +- .../discoveryengine/v1/RankingRecord.java | 16 +- .../v1/RankingRecordOrBuilder.java | 4 +- .../v1/RecommendationServiceProto.java | 25 +- .../v1/RetractLicenseConfigRequest.java | 1078 + .../RetractLicenseConfigRequestOrBuilder.java | 130 + .../v1/RetractLicenseConfigResponse.java | 713 + ...RetractLicenseConfigResponseOrBuilder.java | 65 + .../v1/SchemaServiceProto.java | 25 +- .../cloud/discoveryengine/v1/SearchInfo.java | 28 +- .../v1/SearchInfoOrBuilder.java | 8 +- .../discoveryengine/v1/SearchRequest.java | 138 + .../v1/SearchRequestOrBuilder.java | 30 + .../v1/SearchTuningServiceProto.java | 25 +- .../discoveryengine/v1/ServingConfig.java | 316 + .../v1/ServingConfigOrBuilder.java | 44 + .../v1/ServingConfigProto.java | 79 +- .../v1/ServingConfigServiceProto.java | 181 +- .../cloud/discoveryengine/v1/Session.java | 337 + .../discoveryengine/v1/SessionConfig.java | 1746 + .../v1/SessionConfigOrBuilder.java | 104 + .../cloud/discoveryengine/v1/SessionName.java | 166 +- .../discoveryengine/v1/SessionOrBuilder.java | 36 + .../discoveryengine/v1/SessionProto.java | 48 +- .../v1/SessionServiceProto.java | 27 +- .../v1/SetUpDataConnectorMetadata.java | 406 + .../SetUpDataConnectorMetadataOrBuilder.java | 27 + .../v1/SetUpDataConnectorRequest.java | 1492 + .../SetUpDataConnectorRequestOrBuilder.java | 202 + .../v1/SiteSearchEngineServiceProto.java | 21 +- .../discoveryengine/v1/SolutionType.java | 23 + .../v1/StreamAssistRequest.java | 90 +- .../v1/StreamAssistResponse.java | 5060 +- .../v1/StreamAssistResponseOrBuilder.java | 234 +- .../discoveryengine/v1/SubscriptionTerm.java | 237 + .../discoveryengine/v1/SubscriptionTier.java | 496 + .../cloud/discoveryengine/v1/Tenant.java | 998 + .../discoveryengine/v1/TenantOrBuilder.java | 112 + .../v1/UpdateAclConfigRequest.java | 652 + .../v1/UpdateAclConfigRequestOrBuilder.java | 53 + .../v1/UpdateAssistantRequest.java | 1161 + .../v1/UpdateAssistantRequestOrBuilder.java | 147 + .../v1/UpdateDataConnectorRequest.java | 1373 + .../UpdateDataConnectorRequestOrBuilder.java | 198 + .../v1/UpdateLicenseConfigRequest.java | 1085 + .../UpdateLicenseConfigRequestOrBuilder.java | 126 + .../v1/UpdateUserStoreRequest.java | 1041 + .../v1/UpdateUserStoreRequestOrBuilder.java | 117 + .../v1/UpdateWidgetConfigRequest.java | 1179 + .../UpdateWidgetConfigRequestOrBuilder.java | 150 + .../cloud/discoveryengine/v1/UserEvent.java | 639 +- .../v1/UserEventOrBuilder.java | 118 +- .../discoveryengine/v1/UserEventProto.java | 57 +- .../v1/UserEventServiceProto.java | 21 +- .../cloud/discoveryengine/v1/UserInfo.java | 1493 +- .../discoveryengine/v1/UserInfoOrBuilder.java | 58 + .../cloud/discoveryengine/v1/UserLicense.java | 37 +- .../v1/UserLicenseOrBuilder.java | 4 +- .../discoveryengine/v1/UserLicenseProto.java | 35 +- .../v1/UserLicenseServiceProto.java | 101 +- .../cloud/discoveryengine/v1/UserStore.java | 1306 + .../v1/UserStoreOrBuilder.java | 170 + .../discoveryengine/v1/UserStoreProto.java | 107 + .../v1/UserStoreServiceProto.java | 144 + .../discoveryengine/v1/WidgetConfig.java | 46632 ++++++++++++++++ .../discoveryengine/v1/WidgetConfigName.java | 556 + .../v1/WidgetConfigOrBuilder.java | 901 + .../discoveryengine/v1/WidgetConfigProto.java | 761 + .../v1/WidgetConfigServiceProto.java | 183 + .../discoveryengine/v1/WorkspaceConfig.java | 65 +- .../v1/WorkspaceConfigOrBuilder.java | 12 +- .../cloud/discoveryengine/v1/acl_config.proto | 49 + .../v1/acl_config_service.proto | 81 + .../v1/agent_gateway_setting.proto | 57 + .../cloud/discoveryengine/v1/answer.proto | 2 +- .../discoveryengine/v1/assist_answer.proto | 155 +- .../cloud/discoveryengine/v1/assistant.proto | 213 +- .../v1/assistant_service.proto | 231 +- .../cloud/discoveryengine/v1/chunk.proto | 6 +- .../v1/cmek_config_service.proto | 22 +- .../cloud/discoveryengine/v1/collection.proto | 58 + .../v1/collection_service.proto | 119 + .../cloud/discoveryengine/v1/common.proto | 230 +- .../cloud/discoveryengine/v1/completion.proto | 2 +- .../v1/completion_service.proto | 338 +- .../cloud/discoveryengine/v1/control.proto | 5 +- .../discoveryengine/v1/control_service.proto | 6 +- .../discoveryengine/v1/conversation.proto | 2 +- .../v1/conversational_search_service.proto | 45 +- .../v1/custom_tuning_model.proto | 2 +- .../discoveryengine/v1/data_connector.proto | 930 + .../v1/data_connector_service.proto | 203 + .../cloud/discoveryengine/v1/data_store.proto | 170 +- .../v1/data_store_service.proto | 49 +- .../cloud/discoveryengine/v1/document.proto | 15 +- .../v1/document_processing_config.proto | 11 +- .../discoveryengine/v1/document_service.proto | 6 +- .../cloud/discoveryengine/v1/engine.proto | 241 +- .../discoveryengine/v1/engine_service.proto | 48 +- .../cloud/discoveryengine/v1/feedback.proto | 162 + .../v1/grounded_generation_service.proto | 113 +- .../cloud/discoveryengine/v1/grounding.proto | 2 +- .../v1/identity_mapping_store.proto | 5 +- .../v1/identity_mapping_store_service.proto | 7 +- .../discoveryengine/v1/import_config.proto | 13 +- .../discoveryengine/v1/license_config.proto | 124 + .../v1/license_config_service.proto | 306 + .../cloud/discoveryengine/v1/logging.proto | 40 + .../cloud/discoveryengine/v1/project.proto | 244 +- .../discoveryengine/v1/project_service.proto | 25 +- .../discoveryengine/v1/purge_config.proto | 5 +- .../discoveryengine/v1/rank_service.proto | 12 +- .../v1/recommendation_service.proto | 6 +- .../cloud/discoveryengine/v1/safety.proto | 2 +- .../cloud/discoveryengine/v1/schema.proto | 2 +- .../discoveryengine/v1/schema_service.proto | 6 +- .../discoveryengine/v1/search_service.proto | 6 + .../v1/search_tuning_service.proto | 6 +- .../discoveryengine/v1/serving_config.proto | 42 +- .../v1/serving_config_service.proto | 157 +- .../cloud/discoveryengine/v1/session.proto | 13 +- .../discoveryengine/v1/session_service.proto | 7 +- .../v1/site_search_engine.proto | 2 +- .../v1/site_search_engine_service.proto | 6 +- .../cloud/discoveryengine/v1/user_event.proto | 34 +- .../v1/user_event_service.proto | 7 +- .../discoveryengine/v1/user_license.proto | 16 +- .../v1/user_license_service.proto | 75 +- .../cloud/discoveryengine/v1/user_store.proto | 78 + .../v1/user_store_service.proto | 87 + .../discoveryengine/v1/widget_config.proto | 1060 + .../v1/widget_config_service.proto | 149 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../getaclconfig/AsyncGetAclConfig.java | 50 + .../getaclconfig/SyncGetAclConfig.java | 46 + .../SyncGetAclConfigAclconfigname.java | 42 + .../getaclconfig/SyncGetAclConfigString.java | 42 + .../updateaclconfig/AsyncUpdateAclConfig.java | 47 + .../updateaclconfig/SyncUpdateAclConfig.java | 43 + .../updateaclconfig/SyncUpdateAclConfig.java | 56 + .../createassistant/AsyncCreateAssistant.java | 53 + .../createassistant/SyncCreateAssistant.java | 49 + .../deleteassistant/AsyncDeleteAssistant.java | 53 + .../deleteassistant/SyncDeleteAssistant.java | 49 + .../SyncDeleteAssistantAssistantname.java | 43 + .../SyncDeleteAssistantString.java | 44 + .../getassistant/AsyncGetAssistant.java | 53 + .../getassistant/SyncGetAssistant.java | 49 + .../SyncGetAssistantAssistantname.java | 43 + .../getassistant/SyncGetAssistantString.java | 44 + .../listassistants/AsyncListAssistants.java | 55 + .../AsyncListAssistantsPaged.java | 63 + .../listassistants/SyncListAssistants.java | 51 + .../SyncListAssistantsEnginename.java | 44 + .../SyncListAssistantsString.java | 45 + .../updateassistant/AsyncUpdateAssistant.java | 51 + .../updateassistant/SyncUpdateAssistant.java | 47 + ...SyncUpdateAssistantAssistantFieldmask.java | 43 + .../SyncCreateAssistant.java} | 14 +- .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncDeleteCollection.java | 50 + .../AsyncDeleteCollectionLRO.java | 51 + .../SyncDeleteCollection.java | 46 + .../SyncDeleteCollectionCollectionname.java | 42 + .../SyncDeleteCollectionString.java | 42 + .../getiampolicy/AsyncGetIamPolicy.java | 51 + .../getiampolicy/SyncGetIamPolicy.java | 48 + .../SyncGetIamPolicyResourcename.java | 43 + .../getiampolicy/SyncGetIamPolicyString.java | 42 + .../setiampolicy/AsyncSetIamPolicy.java | 52 + .../setiampolicy/SyncSetIamPolicy.java | 49 + .../SyncSetIamPolicyResourcenamePolicy.java | 44 + .../SyncSetIamPolicyStringPolicy.java | 43 + .../SyncDeleteCollection.java | 54 + .../getiampolicy/SyncGetIamPolicy.java | 56 + .../AsyncAdvancedCompleteQuery.java | 65 + .../SyncAdvancedCompleteQuery.java | 62 + .../createsession/AsyncCreateSession.java | 1 + .../createsession/SyncCreateSession.java | 1 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncGetDataConnector.java | 51 + .../SyncGetDataConnector.java | 47 + ...SyncGetDataConnectorDataconnectorname.java | 43 + .../SyncGetDataConnectorString.java | 43 + .../AsyncSetUpDataConnector.java | 55 + .../AsyncSetUpDataConnectorLRO.java | 55 + .../SyncSetUpDataConnector.java | 50 + ...LocationnameStringStringDataconnector.java | 50 + ...nectorStringStringStringDataconnector.java | 49 + .../AsyncUpdateDataConnector.java | 52 + .../SyncUpdateDataConnector.java | 48 + ...teDataConnectorDataconnectorFieldmask.java | 45 + .../SyncGetDataConnector.java | 57 + .../SyncSetUpDataConnector.java | 54 + .../getiampolicy/AsyncGetIamPolicy.java | 54 + .../getiampolicy/SyncGetIamPolicy.java | 51 + .../SyncGetIamPolicyResourcename.java | 45 + .../getiampolicy/SyncGetIamPolicyString.java | 42 + .../setiampolicy/AsyncSetIamPolicy.java | 55 + .../setiampolicy/SyncSetIamPolicy.java | 52 + .../SyncSetIamPolicyResourcenamePolicy.java | 46 + .../SyncSetIamPolicyStringPolicy.java | 43 + .../getiampolicy/AsyncGetIamPolicy.java | 52 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../SyncGetIamPolicyResourcename.java | 43 + .../getiampolicy/SyncGetIamPolicyString.java | 42 + .../setiampolicy/AsyncSetIamPolicy.java | 53 + .../setiampolicy/SyncSetIamPolicy.java | 50 + .../SyncSetIamPolicyResourcenamePolicy.java | 44 + .../SyncSetIamPolicyStringPolicy.java | 43 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateLicenseConfig.java | 53 + .../SyncCreateLicenseConfig.java | 49 + ...ConfigLocationnameLicenseconfigString.java | 46 + ...icenseConfigStringLicenseconfigString.java | 46 + .../AsyncDistributeLicenseConfig.java | 58 + .../SyncDistributeLicenseConfig.java | 55 + ...licenseconfignameLongStringLongString.java | 53 + ...censeConfigStringLongStringLongString.java | 52 + .../AsyncGetLicenseConfig.java | 52 + .../SyncGetLicenseConfig.java | 48 + ...SyncGetLicenseConfigLicenseconfigname.java | 43 + .../SyncGetLicenseConfigString.java | 43 + .../AsyncListLicenseConfigs.java | 56 + .../AsyncListLicenseConfigsPaged.java | 64 + .../SyncListLicenseConfigs.java | 53 + .../SyncListLicenseConfigsLocationname.java | 46 + .../SyncListLicenseConfigsString.java | 46 + .../AsyncRetractLicenseConfig.java | 59 + .../SyncRetractLicenseConfig.java | 56 + ...onfignameLicenseconfignameBooleanLong.java | 54 + ...untlicenseconfignameStringBooleanLong.java | 53 + ...figStringLicenseconfignameBooleanLong.java | 53 + ...tLicenseConfigStringStringBooleanLong.java | 53 + .../AsyncUpdateLicenseConfig.java | 52 + .../SyncUpdateLicenseConfig.java | 48 + ...teLicenseConfigLicenseconfigFieldmask.java | 45 + .../SyncCreateLicenseConfig.java | 57 + .../AsyncProvisionProject.java | 1 + .../AsyncProvisionProjectLRO.java | 1 + .../SyncProvisionProject.java | 1 + .../AsyncCreateServingConfig.java | 56 + .../SyncCreateServingConfig.java | 52 + ...onfigDatastorenameServingconfigString.java | 47 + ...ngConfigEnginenameServingconfigString.java | 46 + ...ervingConfigStringServingconfigString.java | 48 + .../AsyncDeleteServingConfig.java | 54 + .../SyncDeleteServingConfig.java | 50 + ...cDeleteServingConfigServingconfigname.java | 45 + .../SyncDeleteServingConfigString.java | 46 + .../AsyncGetServingConfig.java | 54 + .../SyncGetServingConfig.java | 50 + ...SyncGetServingConfigServingconfigname.java | 45 + .../SyncGetServingConfigString.java | 46 + .../AsyncListServingConfigs.java | 58 + .../AsyncListServingConfigsPaged.java | 66 + .../SyncListServingConfigs.java | 55 + .../SyncListServingConfigsDatastorename.java | 47 + .../SyncListServingConfigsEnginename.java | 46 + .../SyncListServingConfigsString.java | 48 + .../SyncCreateServingConfig.java} | 14 +- .../createsession/AsyncCreateSession.java | 1 + .../createsession/SyncCreateSession.java | 1 + .../updateaclconfig/SyncUpdateAclConfig.java | 56 + .../SyncCreateAssistant.java} | 14 +- .../SyncDeleteCollection.java | 54 + .../getiampolicy/SyncGetIamPolicy.java | 57 + .../SyncGetDataConnector.java | 57 + .../SyncSetUpDataConnector.java | 54 + .../SyncCreateLicenseConfig.java | 57 + .../SyncCreateServingConfig.java} | 14 +- .../SyncListLicenseConfigsUsageStats.java} | 14 +- .../getuserstore/SyncGetUserStore.java | 56 + .../getwidgetconfig/SyncGetWidgetConfig.java | 57 + .../AsyncListLicenseConfigsUsageStats.java | 50 + .../SyncListLicenseConfigsUsageStats.java | 47 + ...yncListLicenseConfigsUsageStatsString.java | 43 + ...LicenseConfigsUsageStatsUserstorename.java | 43 + .../AsyncListUserLicenses.java | 1 + .../AsyncListUserLicensesPaged.java | 1 + .../SyncListUserLicenses.java | 1 + .../SyncListLicenseConfigsUsageStats.java} | 14 +- .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../getuserstore/AsyncGetUserStore.java | 50 + .../getuserstore/SyncGetUserStore.java | 46 + .../getuserstore/SyncGetUserStoreString.java | 42 + .../SyncGetUserStoreUserstorename.java | 42 + .../updateuserstore/AsyncUpdateUserStore.java | 51 + .../updateuserstore/SyncUpdateUserStore.java | 47 + ...SyncUpdateUserStoreUserstoreFieldmask.java | 43 + .../getuserstore/SyncGetUserStore.java | 56 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../getwidgetconfig/AsyncGetWidgetConfig.java | 59 + .../getwidgetconfig/SyncGetWidgetConfig.java | 55 + .../SyncGetWidgetConfigString.java | 45 + .../SyncGetWidgetConfigWidgetconfigname.java | 44 + .../AsyncUpdateWidgetConfig.java | 51 + .../SyncUpdateWidgetConfig.java | 47 + ...dateWidgetConfigWidgetconfigFieldmask.java | 44 + .../getwidgetconfig/SyncGetWidgetConfig.java | 57 + .../DocumentProcessorServiceClient.java | 3 + .../reflect-config.json | 45 + ...entProcessorServiceClientHttpJsonTest.java | 2 + .../DocumentProcessorServiceClientTest.java | 2 + .../v1beta3/DocumentAiProcessor.java | 83 +- .../v1beta3/DocumentAiProcessorService.java | 357 +- .../documentai/v1beta3/GroundingSettings.java | 779 + .../v1beta3/GroundingSettingsOrBuilder.java | 56 + .../documentai/v1beta3/ProcessorVersion.java | 339 + .../v1beta3/ProcessorVersionOrBuilder.java | 49 + .../v1beta3/ProcessorVersionOverrides.java | 737 + .../ProcessorVersionOverridesOrBuilder.java | 71 + .../v1beta3/ReviewDocumentRequest.java | 8 +- .../ReviewDocumentRequestOrBuilder.java | 4 +- .../v1beta3/TrainProcessorVersionRequest.java | 323 + ...TrainProcessorVersionRequestOrBuilder.java | 44 + .../v1beta3/document_processor_service.proto | 4 + .../cloud/documentai/v1beta3/processor.proto | 35 + .../AsyncTrainProcessorVersion.java | 2 + .../AsyncTrainProcessorVersionLRO.java | 2 + .../SyncTrainProcessorVersion.java | 2 + .../reflect-config.json | 18 + .../WorkforcePoolAttributeSyncEventLog.java | 1062 + ...rcePoolAttributeSyncEventLogOrBuilder.java | 130 + .../v1/WorkforcePoolPlatformLogsProto.java | 81 + .../v1/workforce_pool_platform_logs.proto | 49 + .../reflect-config.json | 81 + .../maps/solar/v1/BuildingInsights.java | 1665 +- .../maps/solar/v1/SolarServiceProto.java | 86 +- .../google/maps/solar/v1/solar_service.proto | 28 + .../networkmanagement/v1/DeliverInfo.java | 23 + .../cloud/networkmanagement/v1/DropInfo.java | 23 + .../cloud/networkmanagement/v1/Endpoint.java | 310 +- .../v1/EndpointOrBuilder.java | 32 + .../networkmanagement/v1/InstanceInfo.java | 22 +- .../v1/InstanceInfoOrBuilder.java | 6 +- .../v1/LoadBalancerInfo.java | 14 +- .../v1/LoadBalancerInfoOrBuilder.java | 4 +- .../cloud/networkmanagement/v1/RouteInfo.java | 46 +- .../v1/RouteInfoOrBuilder.java | 14 +- .../cloud/networkmanagement/v1/Step.java | 376 +- .../networkmanagement/v1/StepOrBuilder.java | 48 +- .../networkmanagement/v1/TestOuterClass.java | 50 +- .../networkmanagement/v1/TraceProto.java | 122 +- .../v1/connectivity_test.proto | 6 + .../cloud/networkmanagement/v1/trace.proto | 12 + .../v1beta1/DeliverInfo.java | 23 + .../networkmanagement/v1beta1/DropInfo.java | 23 + .../networkmanagement/v1beta1/Endpoint.java | 310 +- .../v1beta1/EndpointOrBuilder.java | 32 + .../v1beta1/InstanceInfo.java | 22 +- .../v1beta1/InstanceInfoOrBuilder.java | 6 +- .../v1beta1/LoadBalancerInfo.java | 14 +- .../v1beta1/LoadBalancerInfoOrBuilder.java | 4 +- .../networkmanagement/v1beta1/RouteInfo.java | 46 +- .../v1beta1/RouteInfoOrBuilder.java | 14 +- .../cloud/networkmanagement/v1beta1/Step.java | 379 +- .../v1beta1/StepOrBuilder.java | 48 +- .../v1beta1/TestOuterClass.java | 64 +- .../networkmanagement/v1beta1/TraceProto.java | 128 +- .../v1beta1/connectivity_test.proto | 6 + .../networkmanagement/v1beta1/trace.proto | 12 + .../v1/SecretManagerServiceClient.java | 18 +- .../SecretManagerServiceStubSettings.java | 11 +- .../reflect-config.json | 32 +- ...ecretManagerServiceClientHttpJsonTest.java | 16 +- .../v1/SecretManagerServiceClientTest.java | 16 +- .../v1/CloudSqlSingleUserCredentials.java | 991 + ...loudSqlSingleUserCredentialsOrBuilder.java | 108 + .../v1/EnableManagedRotationRequest.java | 1367 +- ...EnableManagedRotationRequestOrBuilder.java | 14 +- .../secretmanager/v1/ResourcesProto.java | 26 +- .../cloud/secretmanager/v1/ServiceProto.java | 211 +- .../cloud/secretmanager/v1/resources.proto | 14 + .../cloud/secretmanager/v1/service.proto | 20 +- ...retnameCloudsqlsingleusercredentials.java} | 20 +- ...nStringCloudsqlsingleusercredentials.java} | 20 +- .../reflect-config.json | 9 + .../cloud/memorystore/v1beta/Instance.java | 20 +- .../memorystore/v1beta/InstanceOrBuilder.java | 6 +- .../cloud/memorystore/v1beta/IpVersion.java | 191 + .../memorystore/v1beta/PscAutoConnection.java | 178 + .../v1beta/PscAutoConnectionOrBuilder.java | 32 + .../cloud/memorystore/v1beta/V1mainProto.java | 484 +- .../memorystore/v1beta/memorystore.proto | 23 +- 1101 files changed, 464070 insertions(+), 38246 deletions(-) create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicy.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyProto.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetails.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetailsOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicy.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBinding.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingName.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingProto.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyName.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyProto.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetail.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetailOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummary.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummaryOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResource.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceName.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceProto.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummary.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummaryOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Criteria.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CriteriaOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePair.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePairOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponse.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponseOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponse.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponseOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponse.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponseOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponse.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponseOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingCondition.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingConditionOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummary.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummaryOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequest.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequestOrBuilder.java create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicy.proto create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicybinding.proto create mode 100644 java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/bindingmatchingresource.proto create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyStringAutoprotectionpolicyString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyAutoprotectionpolicyname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/AsyncGetAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyAutoprotectionpolicyname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/AsyncGetAutoProtectionPolicyBinding.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBinding.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPolicies.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPoliciesPaged.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPolicies.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesLocationname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPolicies.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPoliciesPaged.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPolicies.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesLocationname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindings.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindingsPaged.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindings.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsAutoprotectionpolicyname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResources.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResourcesPaged.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResources.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesAutoprotectionpolicybindingname.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesString.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java create mode 100644 java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Citation.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationProto.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSource.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceProto.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Elements.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsCommonProto.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImage.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImageOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsProto.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/citation.proto create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/cited_source.proto create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements.proto create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements_common.proto create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRange.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRangeOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CommitView.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponse.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponseOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponse.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponseOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponse.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponseOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponse.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponseOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponse.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponseOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiff.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiffOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequest.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestComment.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestCommentOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewComment.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewCommentOrBuilder.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommit.java create mode 100644 java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommitOrBuilder.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/AsyncAddGitRepositoryLinkPullRequestComment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestComment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/AsyncAddGitRepositoryLinkPullRequestReviewComment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewComment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/AsyncDiffGitRepositoryLinkCommit.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommit.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitStringStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/AsyncFetchGitRepositoryLinkCommit.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommit.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitGitrepositorylinknameString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitList.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitListPaged.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitList.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListGitrepositorylinknameString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/AsyncFetchGitRepositoryLinkFileBlame.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlame.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameStringStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/AsyncFetchGitRepositoryLinkPullRequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestList.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestListPaged.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestList.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/AsyncModifyGitRepositoryLinkPullRequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestStringString.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/AsyncOpenGitRepositoryLinkPullRequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest.java create mode 100644 java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestStringPullrequest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientTest.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceGrpc.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySetting.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpec.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpecOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BillingAccountLicenseConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Citation.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Collection.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConnectorType.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnector.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataProtectionPolicy.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataProtectionPolicyOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicTool.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicToolOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Feedback.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigUsageStats.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigUsageStatsOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LoggingProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ModelInfoView.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTerm.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTier.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Tenant.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TenantOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStore.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/agent_gateway_setting.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/feedback.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/logging.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config_service.proto create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/AsyncGetAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/AsyncCreateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/SyncCreateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/AsyncDeleteAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/AsyncGetAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantAssistantname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistants.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistantsPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistants.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsEnginename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/AsyncUpdateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/{streamassist/SyncStreamAssist.java => createassistant/SyncCreateAssistant.java} (87%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollection.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollectionLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollection.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionCollectionname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/deletecollection/SyncDeleteCollection.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/AsyncGetDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorDataconnectorname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnectorLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorLocationnameStringStringDataconnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorStringStringStringDataconnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/AsyncUpdateDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnectorDataconnectorFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/getdataconnector/SyncGetDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/setupdataconnector/SyncSetUpDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/AsyncGetServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/{updateservingconfig/SyncUpdateServingConfig.java => createservingconfig/SyncCreateServingConfig.java} (89%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/{streamassist/SyncStreamAssist.java => createassistant/SyncCreateAssistant.java} (89%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/deletecollection/SyncDeleteCollection.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/getdataconnector/SyncGetDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/setupdataconnector/SyncSetUpDataConnector.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/{updateservingconfig/SyncUpdateServingConfig.java => createservingconfig/SyncCreateServingConfig.java} (88%) rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/{listuserlicenses/SyncListUserLicenses.java => listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java} (86%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/widgetconfigservicestubsettings/getwidgetconfig/SyncGetWidgetConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/{listuserlicenses/SyncListUserLicenses.java => listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java} (86%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/AsyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/AsyncUpdateUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservicesettings/getuserstore/SyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/AsyncGetWidgetConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigWidgetconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/AsyncUpdateWidgetConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfigWidgetconfigFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservicesettings/getwidgetconfig/SyncGetWidgetConfig.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettings.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettingsOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverrides.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverridesOrBuilder.java create mode 100644 java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLog.java create mode 100644 java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLogOrBuilder.java create mode 100644 java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolPlatformLogsProto.java create mode 100644 java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/workforce_pool_platform_logs.proto create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentials.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentialsOrBuilder.java rename java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/{SyncEnableManagedRotationSecretnameEnablemanagedrotationrequestcloudsqlsingleusercredentials.java => SyncEnableManagedRotationSecretnameCloudsqlsingleusercredentials.java} (69%) rename java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretmanagerservice/enablemanagedrotation/{SyncEnableManagedRotationStringEnablemanagedrotationrequestcloudsqlsingleusercredentials.java => SyncEnableManagedRotationStringCloudsqlsingleusercredentials.java} (69%) create mode 100644 java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/IpVersion.java diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index fda2aa2e7466..7a9cf28c510c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -18116,6 +18116,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$GitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$GitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$ImageSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index cedbed573965..15eeeeab6e8f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -23606,6 +23606,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$GitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$GitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$ImageSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java index 2fde757d2a83..06ea0e921fb5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java @@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -115,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032(google/cl" + "oud/aiplatform/v1/env_var.proto\0323google/cloud/aiplatform/v1/service_networking.p" - + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\335\025\n" + + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\210\027\n" + "\023ReasoningEngineSpec\022Z\n" + "\020source_code_spec\030\013 \001(\0132>." + "google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\000\022W\n" @@ -155,22 +159,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\020\n" + "\016_min_instancesB\020\n" + "\016_max_instancesB\030\n" - + "\026_container_concurrency\032\346\010\n" + + "\026_container_concurrency\032\221\n\n" + "\016SourceCodeSpec\022d\n\r" + "inline_source\030\001 \001(\0132K.google.cloud.aiplatform.v1.Reasonin" + "gEngineSpec.SourceCodeSpec.InlineSourceH\000\022y\n" + "\030developer_connect_source\030\003 \001(\0132U.go" + "ogle.cloud.aiplatform.v1.ReasoningEngine" - + "Spec.SourceCodeSpec.DeveloperConnectSourceH\000\022`\n" - + "\013python_spec\030\002 \001(\0132I.google.cloud" - + ".aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022d\n\n" - + "image_spec\030\005 \001(\0132H.google.cloud.aiplatform.v1.Reasonin" - + "gEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n" + + "Spec.SourceCodeSpec.DeveloperConnectSourceH\000\022^\n\n" + + "git_source\030\006 \001(\0132H.google.cloud." + + "aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceH\000\022`\n" + + "\013python_spec\030\002 \001(\0132I.google.cloud.aiplatform.v1.Reasoning" + + "EngineSpec.SourceCodeSpec.PythonSpecH\001\022d\n\n" + + "image_spec\030\005 \001(\0132H.google.cloud.aiplat" + + "form.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n" + "\014InlineSource\022\035\n" + "\016source_archive\030\001 \001(\014B\005\342A\002\002\004\032\260\001\n" + "\tImageSpec\022q\n\n" - + "build_args\030\001 \003(\0132W.google.cloud.aiplatform.v1.Reaso" - + "ningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n" + + "build_args\030\001 \003(\0132W.google.cloud.aip" + + "latform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n" + "\016BuildArgsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032\234\001\n" @@ -180,8 +186,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003dir\030\002 \001(\tB\004\342A\001\002\022\026\n" + "\010revision\030\003 \001(\tB\004\342A\001\002\032\205\001\n" + "\026DeveloperConnectSource\022k\n" - + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.ReasoningEngineSpe" - + "c.SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032\206\001\n\n" + + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.Re" + + "asoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032I\n" + + "\tGitSource\022\021\n" + + "\003url\030\001 \001(\tB\004\342A\001\002\022\021\n" + + "\003dir\030\002 \001(\tB\004\342A\001\001\022\026\n" + + "\010revision\030\003 \001(\tB\004\342A\001\002\032\206\001\n\n" + "PythonSpec\022\025\n" + "\007version\030\001 \001(\tB\004\342A\001\001\022\037\n" + "\021entrypoint_module\030\002 \001(\tB\004\342A\001\001\022\037\n" @@ -204,8 +214,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\007 \001(\tB\004\342A\001\001\022C\n" - + "\004spec\030\003 \001(\013" - + "2/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\004\342A\001\001\0225\n" + + "\004spec\030\003" + + " \001(\0132/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\004\342A\001\001\0225\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\005" @@ -213,21 +223,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\tB\004\342A\001\001\022C\n" + "\017encryption_spec\030\013" + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022G\n" - + "\006labels\030\021 \003(\01327.google." - + "cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + + "\006labels\030\021 \003(" + + "\01327.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{proj" - + "ect}/locations/{location}/reasoningEngin" - + "es/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" - + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineProtoP\001Z>clo" - + "ud.google.com/go/aiplatform/apiv1/aiplat" - + "formpb;aiplatformpb\252\002\032Google.Cloud.AIPla" - + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepository" - + "Link\022iprojects/{project}/locations/{location}/connections/{connection}/gitReposi" - + "toryLinks/{git_repository_link}b\006proto3" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kpro" + + "jects/{project}/locations/{location}/rea" + + "soningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" + + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineP" + + "rotoP\001Z>cloud.google.com/go/aiplatform/a" + + "piv1/aiplatformpb;aiplatformpb\252\002\032Google." + + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla" + + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/loca" + + "tions/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_lin" + + "k}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -297,6 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "InlineSource", "DeveloperConnectSource", + "GitSource", "PythonSpec", "ImageSpec", "Source", @@ -347,9 +359,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Config", }); - internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor = internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor .getNestedType(4); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor, + new java.lang.String[] { + "Url", "Dir", "Revision", + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedType(5); internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java index 244d23fce0f9..651c6c50c490 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java @@ -4934,6 +4934,50 @@ public interface SourceCodeSpecOrBuilder .DeveloperConnectSourceOrBuilder getDeveloperConnectSourceOrBuilder(); + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + boolean hasGitSource(); + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource getGitSource(); + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder + getGitSourceOrBuilder(); + /** * * @@ -8551,150 +8595,107 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PythonSpecOrBuilder + public interface GitSourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) com.google.protobuf.MessageOrBuilder { /** * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - java.lang.String getVersion(); - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointModule. + * @return The url. */ - java.lang.String getEntrypointModule(); + java.lang.String getUrl(); /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointModule. + * @return The bytes for url. */ - com.google.protobuf.ByteString getEntrypointModuleBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The entrypointObject. + * @return The dir. */ - java.lang.String getEntrypointObject(); + java.lang.String getDir(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for entrypointObject. + * @return The bytes for dir. */ - com.google.protobuf.ByteString getEntrypointObjectBytes(); + com.google.protobuf.ByteString getDirBytes(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The requirementsFile. + * @return The revision. */ - java.lang.String getRequirementsFile(); + java.lang.String getRevision(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for requirementsFile. + * @return The bytes for revision. */ - com.google.protobuf.ByteString getRequirementsFileBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } /** * * *
-     * Specification for running a Python application from source.
+     * Specifies source code to be fetched from a public Git repository.
      * 
* - * Protobuf type {@code - * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource} */ - public static final class PythonSpec extends com.google.protobuf.GeneratedMessage + public static final class GitSource extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) - PythonSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + GitSourceOrBuilder { private static final long serialVersionUID = 0L; static { @@ -8704,64 +8705,61 @@ public static final class PythonSpec extends com.google.protobuf.GeneratedMessag /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "PythonSpec"); + "GitSource"); } - // Use PythonSpec.newBuilder() to construct. - private PythonSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use GitSource.newBuilder() to construct. + private GitSource(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private PythonSpec() { - version_ = ""; - entrypointModule_ = ""; - entrypointObject_ = ""; - requirementsFile_ = ""; + private GitSource() { + url_ = ""; + dir_ = ""; + revision_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class, - com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder .class); } - public static final int VERSION_FIELD_NUMBER = 1; + public static final int URL_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; + private volatile java.lang.Object url_ = ""; /** * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The version. + * @return The url. */ @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; + public java.lang.String getUrl() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - version_ = s; + url_ = s; return s; } } @@ -8770,58 +8768,52 @@ public java.lang.String getVersion() { * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for version. + * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; + url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + public static final int DIR_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointModule_ = ""; + private volatile java.lang.Object dir_ = ""; /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The entrypointModule. + * @return The dir. */ @java.lang.Override - public java.lang.String getEntrypointModule() { - java.lang.Object ref = entrypointModule_; + public java.lang.String getDir() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointModule_ = s; + dir_ = s; return s; } } @@ -8830,58 +8822,53 @@ public java.lang.String getEntrypointModule() { * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for entrypointModule. + * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointModuleBytes() { - java.lang.Object ref = entrypointModule_; + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointModule_ = b; + dir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + public static final int REVISION_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointObject_ = ""; + private volatile java.lang.Object revision_ = ""; /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointObject. + * @return The revision. */ @java.lang.Override - public java.lang.String getEntrypointObject() { - java.lang.Object ref = entrypointObject_; + public java.lang.String getRevision() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointObject_ = s; + revision_ = s; return s; } } @@ -8890,60 +8877,1205 @@ public java.lang.String getEntrypointObject() { * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointObject. + * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointObjectBytes() { - java.lang.Object ref = entrypointObject_; + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointObject_ = b; + revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object requirementsFile_ = ""; + private byte memoizedIsInitialized = -1; - /** - * - * - *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
-       * 
- * - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requirementsFile. - */ @java.lang.Override - public java.lang.String getRequirementsFile() { - java.lang.Object ref = requirementsFile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requirementsFile_ = s; - return s; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - /** - * + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, revision_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, revision_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource other = + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getRevision().equals(other.getRevision())) 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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Specifies source code to be fetched from a public Git repository.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + dir_ = ""; + revision_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource build() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + buildPartial() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource result = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.revision_ = revision_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource other) { + if (other + == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + 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: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + revision_ = 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 url_ = ""; + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object revision_ = ""; + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevision() { + revision_ = getDefaultInstance().getRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .GitSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource(); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PythonSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + java.lang.String getEntrypointModule(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + com.google.protobuf.ByteString getEntrypointModuleBytes(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + java.lang.String getEntrypointObject(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + com.google.protobuf.ByteString getEntrypointObjectBytes(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + java.lang.String getRequirementsFile(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsFile. + */ + com.google.protobuf.ByteString getRequirementsFileBytes(); + } + + /** + * + * + *
+     * Specification for running a Python application from source.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + */ + public static final class PythonSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + PythonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PythonSpec"); + } + + // Use PythonSpec.newBuilder() to construct. + private PythonSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PythonSpec() { + version_ = ""; + entrypointModule_ = ""; + entrypointObject_ = ""; + requirementsFile_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder + .class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointModule_ = ""; + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + @java.lang.Override + public java.lang.String getEntrypointModule() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointModule_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointModuleBytes() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointModule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointObject_ = ""; + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + @java.lang.Override + public java.lang.String getEntrypointObject() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointObject_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointObjectBytes() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointObject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requirementsFile_ = ""; + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + @java.lang.Override + public java.lang.String getRequirementsFile() { + java.lang.Object ref = requirementsFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementsFile_ = s; + return s; + } + } + + /** + * * *
        * Optional. The path to the requirements file, relative to the source
@@ -9941,6 +11073,7 @@ public enum SourceCase
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       INLINE_SOURCE(1),
       DEVELOPER_CONNECT_SOURCE(3),
+      GIT_SOURCE(6),
       SOURCE_NOT_SET(0);
       private final int value;
 
@@ -9964,6 +11097,8 @@ public static SourceCase forNumber(int value) {
             return INLINE_SOURCE;
           case 3:
             return DEVELOPER_CONNECT_SOURCE;
+          case 6:
+            return GIT_SOURCE;
           case 0:
             return SOURCE_NOT_SET;
           default:
@@ -10165,6 +11300,72 @@ public boolean hasDeveloperConnectSource() {
           .DeveloperConnectSource.getDefaultInstance();
     }
 
+    public static final int GIT_SOURCE_FIELD_NUMBER = 6;
+
+    /**
+     *
+     *
+     * 
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return sourceCase_ == 6; + } + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getGitSource() { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder + getGitSourceOrBuilder() { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + public static final int PYTHON_SPEC_FIELD_NUMBER = 2; /** @@ -10336,6 +11537,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec) languageSpec_); } + if (sourceCase_ == 6) { + output.writeMessage( + 6, + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) source_); + } getUnknownFields().writeTo(output); } @@ -10374,6 +11580,13 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec) languageSpec_); } + if (sourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10398,6 +11611,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false; break; + case 6: + if (!getGitSource().equals(other.getGitSource())) return false; + break; case 0: default: } @@ -10432,6 +11648,10 @@ public int hashCode() { hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getDeveloperConnectSource().hashCode(); break; + case 6: + hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGitSource().hashCode(); + break; case 0: default: } @@ -10596,6 +11816,9 @@ public Builder clear() { if (developerConnectSourceBuilder_ != null) { developerConnectSourceBuilder_.clear(); } + if (gitSourceBuilder_ != null) { + gitSourceBuilder_.clear(); + } if (pythonSpecBuilder_ != null) { pythonSpecBuilder_.clear(); } @@ -10658,6 +11881,9 @@ private void buildPartialOneofs( if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) { result.source_ = developerConnectSourceBuilder_.build(); } + if (sourceCase_ == 6 && gitSourceBuilder_ != null) { + result.source_ = gitSourceBuilder_.build(); + } result.languageSpecCase_ = languageSpecCase_; result.languageSpec_ = this.languageSpec_; if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) { @@ -10695,6 +11921,11 @@ public Builder mergeFrom( mergeDeveloperConnectSource(other.getDeveloperConnectSource()); break; } + case GIT_SOURCE: + { + mergeGitSource(other.getGitSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -10771,6 +12002,13 @@ public Builder mergeFrom( languageSpecCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11352,6 +12590,263 @@ public Builder clearDeveloperConnectSource() { return developerConnectSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder> + gitSourceBuilder_; + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return sourceCase_ == 6; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getGitSource() { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 6) { + return gitSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder setGitSource( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) { + if (gitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gitSourceBuilder_.setMessage(value); + } + sourceCase_ = 6; + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder setGitSource( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder + builderForValue) { + if (gitSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gitSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 6; + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder mergeGitSource( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 6 + && source_ + != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .newBuilder( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .GitSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 6) { + gitSourceBuilder_.mergeFrom(value); + } else { + gitSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 6; + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder clearGitSource() { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + } + gitSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder + getGitSourceBuilder() { + return internalGetGitSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder + getGitSourceOrBuilder() { + if ((sourceCase_ == 6) && (gitSourceBuilder_ != null)) { + return gitSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder> + internalGetGitSourceFieldBuilder() { + if (gitSourceBuilder_ == null) { + if (!(sourceCase_ == 6)) { + source_ = + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + gitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .GitSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 6; + onChanged(); + return gitSourceBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec, com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto index 585c9c864fa6..82a2cb13df28 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto @@ -157,6 +157,20 @@ message ReasoningEngineSpec { [(google.api.field_behavior) = REQUIRED]; } + // Specifies source code to be fetched from a public Git repository. + message GitSource { + // Required. The HTTPS URL of the public Git repository to clone. + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The revision to fetch from the Git repository: a branch, a + // tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; + } + // Specification for running a Python application from source. message PythonSpec { // Optional. The version of Python to use. Support version @@ -189,6 +203,9 @@ message ReasoningEngineSpec { // Source code is in a Git repository managed by Developer Connect. DeveloperConnectSource developer_connect_source = 3; + + // Source code is in a public Git repository. + GitSource git_source = 6; } // Specifies the language-specific configuration for building and running diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java index a7bb0651799f..ff05cd266a62 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java @@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -157,7 +161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v_var.proto\0328google/cloud/aiplatform/v1b" + "eta1/service_networking.proto\032\036google/pr" + "otobuf/duration.proto\032\034google/protobuf/s" - + "truct.proto\032\037google/protobuf/timestamp.proto\"\255\026\n" + + "truct.proto\032\037google/protobuf/timestamp.proto\"\335\027\n" + "\023ReasoningEngineSpec\022_\n" + "\020source_code_spec\030\013 \001(\0132C.google.cloud.aiplatform" + ".v1beta1.ReasoningEngineSpec.SourceCodeSpecH\000\022\\\n" @@ -197,22 +201,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\020\n" + "\016_min_instancesB\020\n" + "\016_max_instancesB\030\n" - + "\026_container_concurrency\032\204\t\n" + + "\026_container_concurrency\032\264\n\n" + "\016SourceCodeSpec\022i\n\r" + "inline_source\030\001 \001(\0132P.google.c" + "loud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022~\n" + "\030developer_connect_source\030\003 \001(\0132Z.google.clo" + "ud.aiplatform.v1beta1.ReasoningEngineSpe" - + "c.SourceCodeSpec.DeveloperConnectSourceH\000\022e\n" - + "\013python_spec\030\002 \001(\0132N.google.cloud.ai" - + "platform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022i\n\n" - + "image_spec\030\005 \001(\0132M.google.cloud.aiplatform.v1beta1.R" - + "easoningEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n" + + "c.SourceCodeSpec.DeveloperConnectSourceH\000\022c\n\n" + + "git_source\030\006 \001(\0132M.google.cloud.aip" + + "latform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSourceH\000\022e\n" + + "\013python_spec\030\002 \001(\0132N.google.cloud.aiplatform.v1beta1.Re" + + "asoningEngineSpec.SourceCodeSpec.PythonSpecH\001\022i\n\n" + + "image_spec\030\005 \001(\0132M.google.cloud" + + ".aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpecB\004\342A\001\001H\001\032-\n" + "\014InlineSource\022\035\n" + "\016source_archive\030\001 \001(\014B\005\342A\002\002\004\032\265\001\n" + "\tImageSpec\022v\n\n" - + "build_args\030\001 \003(\0132\\.google.cloud.aiplatform.v" - + "1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n" + + "build_args\030\001 \003(\0132\\.google.cloud.aiplatform.v1beta1.ReasoningEng" + + "ineSpec.SourceCodeSpec.ImageSpec.BuildArgsEntryB\004\342A\001\001\0320\n" + "\016BuildArgsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032\234\001\n" @@ -222,8 +228,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003dir\030\002 \001(\tB\004\342A\001\002\022\026\n" + "\010revision\030\003 \001(\tB\004\342A\001\002\032\212\001\n" + "\026DeveloperConnectSource\022p\n" - + "\006config\030\001 \001(\0132Z.google.cloud.aiplatform.v1beta1.R" - + "easoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032\206\001\n\n" + + "\006config\030\001 \001(\0132Z.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec." + + "SourceCodeSpec.DeveloperConnectConfigB\004\342A\001\002\032I\n" + + "\tGitSource\022\021\n" + + "\003url\030\001 \001(\tB\004\342A\001\002\022\021\n" + + "\003dir\030\002 \001(\tB\004\342A\001\001\022\026\n" + + "\010revision\030\003 \001(\tB\004\342A\001\002\032\206\001\n\n" + "PythonSpec\022\025\n" + "\007version\030\001 \001(\tB\004\342A\001\001\022\037\n" + "\021entrypoint_module\030\002 \001(\tB\004\342A\001\001\022\037\n" @@ -246,31 +256,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\007 \001(\tB\004\342A\001\001\022H\n" - + "\004spec\030\003" - + " \001(\01324.google.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\004\342A\001\001\0225\n" + + "\004spec\030\003 \001(\01324.goog" + + "le.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\004\342A\001\001\0225\n" + "\013create_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n" + "\004etag\030\006 \001(\tB\004\342A\001\001\022W\n" - + "\014context_spec\030\t \001(\0132;.google.c" - + "loud.aiplatform.v1beta1.ReasoningEngineContextSpecB\004\342A\001\001\022H\n" - + "\017encryption_spec\030\013 \001(" - + "\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n" - + "\006labels\030\021 \003(\0132<.google.clou" - + "d.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\022\\\n" - + "\016traffic_config\030\024 \001(\0132>.googl" - + "e.cloud.aiplatform.v1beta1.ReasoningEngine.TrafficConfigB\004\342A\001\001\032\302\004\n\r" + + "\014context_spec\030\t" + + " \001(\0132;.google.cloud.aiplatform.v1beta1.ReasoningEngineContextSpecB\004\342A\001\001\022H\n" + + "\017encryption_spec\030\013" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n" + + "\006labels\030\021 \003" + + "(\0132<.google.cloud.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\022\\\n" + + "\016traffic_config\030\024 \001(\0132>.google.cloud.aiplatform.v1bet" + + "a1.ReasoningEngine.TrafficConfigB\004\342A\001\001\032\302\004\n\r" + "TrafficConfig\022w\n" - + "\024traffic_split_manual\030\022 \001(\0132Q.google." - + "cloud.aiplatform.v1beta1.ReasoningEngine" - + ".TrafficConfig.TrafficSplitManualB\004\342A\001\001H\000\022\204\001\n" - + "\033traffic_split_always_latest\030\023 \001(\0132" - + "W.google.cloud.aiplatform.v1beta1.Reason" - + "ingEngine.TrafficConfig.TrafficSplitAlwaysLatestB\004\342A\001\001H\000\032\203\002\n" + + "\024traffic_split_manual\030\022 \001(\0132Q.google.cloud.aiplatform.v1beta1" + + ".ReasoningEngine.TrafficConfig.TrafficSplitManualB\004\342A\001\001H\000\022\204\001\n" + + "\033traffic_split_always_latest\030\023 \001(\0132W.google.cloud.aiplatfor" + + "m.v1beta1.ReasoningEngine.TrafficConfig.TrafficSplitAlwaysLatestB\004\342A\001\001H\000\032\203\002\n" + "\022TrafficSplitManual\022i\n" - + "\007targets\030\001 \003(\0132X.google.cloud.aiplatfo" - + "rm.v1beta1.ReasoningEngine.TrafficConfig.TrafficSplitManual.Target\032\201\001\n" + + "\007targets\030\001 \003(\0132X.google.cloud.aiplatform.v1beta1.ReasoningEngi" + + "ne.TrafficConfig.TrafficSplitManual.Target\032\201\001\n" + "\006Target\022`\n" + "\025runtime_revision_name\030\001 \001(\tBA\342A\001\002\372A:\n" + "8aiplatform.googleapis.com/ReasoningEngineRuntimeRevision\022\025\n" @@ -280,26 +288,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{project}" - + "/locations/{location}/reasoningEngines/{" - + "reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\367\010\n" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kpr" + + "ojects/{project}/locations/{location}/re" + + "asoningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\367\010\n" + "\032ReasoningEngineContextSpec\022n\n" - + "\022memory_bank_config\030\001 \001(\0132L.google" - + ".cloud.aiplatform.v1beta1.ReasoningEngineContextSpec.MemoryBankConfigB\004\342A\001\001\032\350\007\n" + + "\022memory_bank_config\030\001 \001(\0132L.google.cloud.aiplatform.v1beta" + + "1.ReasoningEngineContextSpec.MemoryBankConfigB\004\342A\001\001\032\350\007\n" + "\020MemoryBankConfig\022~\n" - + "\021generation_config\030\001 \001(\0132].google.cloud.aiplatform.v1beta1.Re" - + "asoningEngineContextSpec.MemoryBankConfig.GenerationConfigB\004\342A\001\001\022\213\001\n" - + "\030similarity_search_config\030\002 \001(\0132c.google.cloud.aipla" + + "\021generation_config\030\001 \001(\0132].google.cloud.aipla" + "tform.v1beta1.ReasoningEngineContextSpec" - + ".MemoryBankConfig.SimilaritySearchConfigB\004\342A\001\001\022p\n\n" - + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.ReasoningEngineCont" - + "extSpec.MemoryBankConfig.TtlConfigB\004\342A\001\001\032\243\003\n" + + ".MemoryBankConfig.GenerationConfigB\004\342A\001\001\022\213\001\n" + + "\030similarity_search_config\030\002 \001(\0132c.go" + + "ogle.cloud.aiplatform.v1beta1.ReasoningE" + + "ngineContextSpec.MemoryBankConfig.SimilaritySearchConfigB\004\342A\001\001\022p\n\n" + + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.Rea" + + "soningEngineContextSpec.MemoryBankConfig.TtlConfigB\004\342A\001\001\032\243\003\n" + "\tTtlConfig\0226\n" + "\013default_ttl\030\001" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001H\000\022\215\001\n" - + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aipl" - + "atform.v1beta1.ReasoningEngineContextSpe" - + "c.MemoryBankConfig.TtlConfig.GranularTtlConfigB\004\342A\001\001H\000\032\306\001\n" + + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aiplatform.v1beta1.Reasoning" + + "EngineContextSpec.MemoryBankConfig.TtlConfig.GranularTtlConfigB\004\342A\001\001H\000\032\306\001\n" + "\021GranularTtlConfig\0223\n\n" + "create_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022=\n" + "\024generate_created_ttl\030\002" @@ -313,14 +321,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SimilaritySearchConfig\022D\n" + "\017embedding_model\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"aiplatform.googleapis.com/EndpointB\215\003\n" - + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZCcloud.google.com" - + "/go/aiplatform/apiv1beta1/aiplatformpb;a" - + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" - + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" - + "\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/location" - + "s/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}b\006" - + "proto3" + + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZC" + + "cloud.google.com/go/aiplatform/apiv1beta" + + "1/aiplatformpb;aiplatformpb\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{p" + + "roject}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_re" + + "pository_link}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -394,6 +402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "InlineSource", "DeveloperConnectSource", + "GitSource", "PythonSpec", "ImageSpec", "Source", @@ -444,9 +453,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Config", }); - internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor .getNestedType(4); + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor, + new java.lang.String[] { + "Url", "Dir", "Revision", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedType(5); internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java index eb3cbae42566..fdb6da492da2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java @@ -4954,6 +4954,50 @@ public interface SourceCodeSpecOrBuilder .DeveloperConnectSourceOrBuilder getDeveloperConnectSourceOrBuilder(); + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + boolean hasGitSource(); + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource getGitSource(); + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder + getGitSourceOrBuilder(); + /** * * @@ -8621,150 +8665,108 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PythonSpecOrBuilder + public interface GitSourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) com.google.protobuf.MessageOrBuilder { /** * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - java.lang.String getVersion(); - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointModule. + * @return The url. */ - java.lang.String getEntrypointModule(); + java.lang.String getUrl(); /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointModule. + * @return The bytes for url. */ - com.google.protobuf.ByteString getEntrypointModuleBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The entrypointObject. + * @return The dir. */ - java.lang.String getEntrypointObject(); + java.lang.String getDir(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for entrypointObject. + * @return The bytes for dir. */ - com.google.protobuf.ByteString getEntrypointObjectBytes(); + com.google.protobuf.ByteString getDirBytes(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The requirementsFile. + * @return The revision. */ - java.lang.String getRequirementsFile(); + java.lang.String getRevision(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for requirementsFile. + * @return The bytes for revision. */ - com.google.protobuf.ByteString getRequirementsFileBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } /** * * *
-     * Specification for running a Python application from source.
+     * Specifies source code to be fetched from a public Git repository.
      * 
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource} */ - public static final class PythonSpec extends com.google.protobuf.GeneratedMessage + public static final class GitSource extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) - PythonSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + GitSourceOrBuilder { private static final long serialVersionUID = 0L; static { @@ -8774,65 +8776,62 @@ public static final class PythonSpec extends com.google.protobuf.GeneratedMessag /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "PythonSpec"); + "GitSource"); } - // Use PythonSpec.newBuilder() to construct. - private PythonSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use GitSource.newBuilder() to construct. + private GitSource(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private PythonSpec() { - version_ = ""; - entrypointModule_ = ""; - entrypointObject_ = ""; - requirementsFile_ = ""; + private GitSource() { + url_ = ""; + dir_ = ""; + revision_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource .class, - com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource .Builder.class); } - public static final int VERSION_FIELD_NUMBER = 1; + public static final int URL_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; + private volatile java.lang.Object url_ = ""; /** * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The version. + * @return The url. */ @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; + public java.lang.String getUrl() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - version_ = s; + url_ = s; return s; } } @@ -8841,58 +8840,52 @@ public java.lang.String getVersion() { * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
+       * Required. The HTTPS URL of the public Git repository to clone.
        * 
* - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for version. + * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; + url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + public static final int DIR_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointModule_ = ""; + private volatile java.lang.Object dir_ = ""; /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The entrypointModule. + * @return The dir. */ @java.lang.Override - public java.lang.String getEntrypointModule() { - java.lang.Object ref = entrypointModule_; + public java.lang.String getDir() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointModule_ = s; + dir_ = s; return s; } } @@ -8901,58 +8894,53 @@ public java.lang.String getEntrypointModule() { * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Optional. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for entrypointModule. + * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointModuleBytes() { - java.lang.Object ref = entrypointModule_; + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointModule_ = b; + dir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + public static final int REVISION_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointObject_ = ""; + private volatile java.lang.Object revision_ = ""; /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointObject. + * @return The revision. */ @java.lang.Override - public java.lang.String getEntrypointObject() { - java.lang.Object ref = entrypointObject_; + public java.lang.String getRevision() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointObject_ = s; + revision_ = s; return s; } } @@ -8961,61 +8949,1214 @@ public java.lang.String getEntrypointObject() { * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. The revision to fetch from the Git repository: a branch, a
+       * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointObject. + * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointObjectBytes() { - java.lang.Object ref = entrypointObject_; + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointObject_ = b; + revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object requirementsFile_ = ""; + private byte memoizedIsInitialized = -1; - /** - * - * - *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
-       * 
- * - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requirementsFile. - */ @java.lang.Override - public java.lang.String getRequirementsFile() { - java.lang.Object ref = requirementsFile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requirementsFile_ = s; - return s; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - /** - * - * + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, revision_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dir_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, revision_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource other = + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getRevision().equals(other.getRevision())) 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) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Specifies source code to be fetched from a public Git repository.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + dir_ = ""; + revision_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_GitSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + build() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource result = + new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.revision_ = revision_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + 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: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + revision_ = 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 url_ = ""; + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The HTTPS URL of the public Git repository to clone.
+         * 
+ * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object revision_ = ""; + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevision() { + revision_ = getDefaultInstance().getRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository: a branch, a
+         * tag, or a full commit SHA. Abbreviated commit SHAs are not supported.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + private static final com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PythonSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + java.lang.String getEntrypointModule(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + com.google.protobuf.ByteString getEntrypointModuleBytes(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + java.lang.String getEntrypointObject(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + com.google.protobuf.ByteString getEntrypointObjectBytes(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + java.lang.String getRequirementsFile(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsFile. + */ + com.google.protobuf.ByteString getRequirementsFileBytes(); + } + + /** + * + * + *
+     * Specification for running a Python application from source.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + */ + public static final class PythonSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + PythonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PythonSpec"); + } + + // Use PythonSpec.newBuilder() to construct. + private PythonSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PythonSpec() { + version_ = ""; + entrypointModule_ = ""; + entrypointObject_ = ""; + requirementsFile_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec + .class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec + .Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointModule_ = ""; + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + @java.lang.Override + public java.lang.String getEntrypointModule() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointModule_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointModuleBytes() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointModule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointObject_ = ""; + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + @java.lang.Override + public java.lang.String getEntrypointObject() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointObject_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointObjectBytes() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointObject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requirementsFile_ = ""; + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + @java.lang.Override + public java.lang.String getRequirementsFile() { + java.lang.Object ref = requirementsFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementsFile_ = s; + return s; + } + } + + /** + * + * *
        * Optional. The path to the requirements file, relative to the source
        * root. If not specified, defaults to "requirements.txt".
@@ -10029,6 +11170,7 @@ public enum SourceCase
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       INLINE_SOURCE(1),
       DEVELOPER_CONNECT_SOURCE(3),
+      GIT_SOURCE(6),
       SOURCE_NOT_SET(0);
       private final int value;
 
@@ -10052,6 +11194,8 @@ public static SourceCase forNumber(int value) {
             return INLINE_SOURCE;
           case 3:
             return DEVELOPER_CONNECT_SOURCE;
+          case 6:
+            return GIT_SOURCE;
           case 0:
             return SOURCE_NOT_SET;
           default:
@@ -10255,6 +11399,72 @@ public boolean hasDeveloperConnectSource() {
           .DeveloperConnectSource.getDefaultInstance();
     }
 
+    public static final int GIT_SOURCE_FIELD_NUMBER = 6;
+
+    /**
+     *
+     *
+     * 
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return sourceCase_ == 6; + } + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getGitSource() { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + + /** + * + * + *
+     * Source code is in a public Git repository.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSourceOrBuilder + getGitSourceOrBuilder() { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + public static final int PYTHON_SPEC_FIELD_NUMBER = 2; /** @@ -10427,6 +11637,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec) languageSpec_); } + if (sourceCase_ == 6) { + output.writeMessage( + 6, + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_); + } getUnknownFields().writeTo(output); } @@ -10466,6 +11682,13 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.ImageSpec) languageSpec_); } + if (sourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10491,6 +11714,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false; break; + case 6: + if (!getGitSource().equals(other.getGitSource())) return false; + break; case 0: default: } @@ -10525,6 +11751,10 @@ public int hashCode() { hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getDeveloperConnectSource().hashCode(); break; + case 6: + hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGitSource().hashCode(); + break; case 0: default: } @@ -10690,6 +11920,9 @@ public Builder clear() { if (developerConnectSourceBuilder_ != null) { developerConnectSourceBuilder_.clear(); } + if (gitSourceBuilder_ != null) { + gitSourceBuilder_.clear(); + } if (pythonSpecBuilder_ != null) { pythonSpecBuilder_.clear(); } @@ -10753,6 +11986,9 @@ private void buildPartialOneofs( if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) { result.source_ = developerConnectSourceBuilder_.build(); } + if (sourceCase_ == 6 && gitSourceBuilder_ != null) { + result.source_ = gitSourceBuilder_.build(); + } result.languageSpecCase_ = languageSpecCase_; result.languageSpec_ = this.languageSpec_; if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) { @@ -10791,6 +12027,11 @@ public Builder mergeFrom( mergeDeveloperConnectSource(other.getDeveloperConnectSource()); break; } + case GIT_SOURCE: + { + mergeGitSource(other.getGitSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -10867,6 +12108,13 @@ public Builder mergeFrom( languageSpecCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + internalGetGitSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11459,6 +12707,271 @@ public Builder clearDeveloperConnectSource() { return developerConnectSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSourceOrBuilder> + gitSourceBuilder_; + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return sourceCase_ == 6; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + getGitSource() { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 6) { + return gitSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder setGitSource( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) { + if (gitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gitSourceBuilder_.setMessage(value); + } + sourceCase_ = 6; + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder setGitSource( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource.Builder + builderForValue) { + if (gitSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gitSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 6; + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder mergeGitSource( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource value) { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 6 + && source_ + != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 6) { + gitSourceBuilder_.mergeFrom(value); + } else { + gitSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 6; + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public Builder clearGitSource() { + if (gitSourceBuilder_ == null) { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + } + gitSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder + getGitSourceBuilder() { + return internalGetGitSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSourceOrBuilder + getGitSourceOrBuilder() { + if ((sourceCase_ == 6) && (gitSourceBuilder_ != null)) { + return gitSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a public Git repository.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource git_source = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSourceOrBuilder> + internalGetGitSourceFieldBuilder() { + if (gitSourceBuilder_ == null) { + if (!(sourceCase_ == 6)) { + source_ = + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .getDefaultInstance(); + } + gitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource + .Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .GitSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.GitSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 6; + onChanged(); + return gitSourceBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec, com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto index ca45a85af2c7..01222f8473f8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto @@ -159,6 +159,20 @@ message ReasoningEngineSpec { [(google.api.field_behavior) = REQUIRED]; } + // Specifies source code to be fetched from a public Git repository. + message GitSource { + // Required. The HTTPS URL of the public Git repository to clone. + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The revision to fetch from the Git repository: a branch, a + // tag, or a full commit SHA. Abbreviated commit SHAs are not supported. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; + } + // Specification for running a Python application from source. message PythonSpec { // Optional. The version of Python to use. Support version @@ -191,6 +205,9 @@ message ReasoningEngineSpec { // Source code is in a Git repository managed by Developer Connect. DeveloperConnectSource developer_connect_source = 3; + + // Source code is in a public Git repository. + GitSource git_source = 6; } // Specifies the language-specific configuration for building and running diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java index 51eb7b5e1cdd..b0f63a712c85 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java @@ -803,6 +803,223 @@ * * * + *

CreateAutoProtectionPolicy + *

Creates a new AutoProtectionPolicy in a given project and location. + * + *

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

+ *
    + *
  • createAutoProtectionPolicyAsync(CreateAutoProtectionPolicyRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createAutoProtectionPolicyAsync(LocationName parent, AutoProtectionPolicy autoProtectionPolicy, String autoProtectionPolicyId) + *

  • createAutoProtectionPolicyAsync(String parent, AutoProtectionPolicy autoProtectionPolicy, String autoProtectionPolicyId) + *

+ *

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

+ *
    + *
  • createAutoProtectionPolicyOperationCallable() + *

  • createAutoProtectionPolicyCallable() + *

+ * + * + * + *

ListAutoProtectionPolicies + *

Lists AutoProtectionPolicies for a given project and location. + * + *

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

+ *
    + *
  • listAutoProtectionPolicies(ListAutoProtectionPoliciesRequest request) + *

+ *

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

+ *
    + *
  • listAutoProtectionPolicies(LocationName parent) + *

  • listAutoProtectionPolicies(String parent) + *

+ *

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

+ *
    + *
  • listAutoProtectionPoliciesPagedCallable() + *

  • listAutoProtectionPoliciesCallable() + *

+ * + * + * + *

GetAutoProtectionPolicy + *

Gets details of a single AutoProtectionPolicy. + * + *

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

+ *
    + *
  • getAutoProtectionPolicy(GetAutoProtectionPolicyRequest request) + *

+ *

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

+ *
    + *
  • getAutoProtectionPolicy(AutoProtectionPolicyName name) + *

  • getAutoProtectionPolicy(String name) + *

+ *

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

+ *
    + *
  • getAutoProtectionPolicyCallable() + *

+ * + * + * + *

UpdateAutoProtectionPolicy + *

Updates the parameters of a single AutoProtectionPolicy. + * + *

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

+ *
    + *
  • updateAutoProtectionPolicyAsync(UpdateAutoProtectionPolicyRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateAutoProtectionPolicyAsync(AutoProtectionPolicy autoProtectionPolicy, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateAutoProtectionPolicyOperationCallable() + *

  • updateAutoProtectionPolicyCallable() + *

+ * + * + * + *

DeleteAutoProtectionPolicy + *

Deletes a single AutoProtectionPolicy. + * + *

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

+ *
    + *
  • deleteAutoProtectionPolicyAsync(DeleteAutoProtectionPolicyRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteAutoProtectionPolicyAsync(AutoProtectionPolicyName name) + *

  • deleteAutoProtectionPolicyAsync(String name) + *

+ *

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

+ *
    + *
  • deleteAutoProtectionPolicyOperationCallable() + *

  • deleteAutoProtectionPolicyCallable() + *

+ * + * + * + *

CreateAutoProtectionPolicyBinding + *

Creates a new AutoProtectionPolicyBinding in a given project and location. + * + *

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

+ *
    + *
  • createAutoProtectionPolicyBindingAsync(CreateAutoProtectionPolicyBindingRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createAutoProtectionPolicyBindingAsync(AutoProtectionPolicyName parent, AutoProtectionPolicyBinding autoProtectionPolicyBinding, String autoProtectionPolicyBindingId) + *

  • createAutoProtectionPolicyBindingAsync(String parent, AutoProtectionPolicyBinding autoProtectionPolicyBinding, String autoProtectionPolicyBindingId) + *

+ *

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

+ *
    + *
  • createAutoProtectionPolicyBindingOperationCallable() + *

  • createAutoProtectionPolicyBindingCallable() + *

+ * + * + * + *

GetAutoProtectionPolicyBinding + *

Returns the auto protection policy binding read from the CCFE tables. + * + *

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

+ *
    + *
  • getAutoProtectionPolicyBinding(GetAutoProtectionPolicyBindingRequest request) + *

+ *

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

+ *
    + *
  • getAutoProtectionPolicyBinding(AutoProtectionPolicyBindingName name) + *

  • getAutoProtectionPolicyBinding(String name) + *

+ *

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

+ *
    + *
  • getAutoProtectionPolicyBindingCallable() + *

+ * + * + * + *

ListAutoProtectionPolicyBindings + *

Returns the auto protection policy bindings read from the CCFE tables. + * + *

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

+ *
    + *
  • listAutoProtectionPolicyBindings(ListAutoProtectionPolicyBindingsRequest request) + *

+ *

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

+ *
    + *
  • listAutoProtectionPolicyBindings(AutoProtectionPolicyName parent) + *

  • listAutoProtectionPolicyBindings(String parent) + *

+ *

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

+ *
    + *
  • listAutoProtectionPolicyBindingsPagedCallable() + *

  • listAutoProtectionPolicyBindingsCallable() + *

+ * + * + * + *

ListAppliedAutoProtectionPolicies + *

Lists AppliedAutoProtectionPolicies in a given project and location. + * + *

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

+ *
    + *
  • listAppliedAutoProtectionPolicies(ListAppliedAutoProtectionPoliciesRequest request) + *

+ *

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

+ *
    + *
  • listAppliedAutoProtectionPolicies(LocationName parent) + *

  • listAppliedAutoProtectionPolicies(String parent) + *

+ *

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

+ *
    + *
  • listAppliedAutoProtectionPoliciesPagedCallable() + *

  • listAppliedAutoProtectionPoliciesCallable() + *

+ * + * + * + *

InitiateDeleteAutoProtectionPolicyBinding + *

InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding + * + *

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

+ *
    + *
  • initiateDeleteAutoProtectionPolicyBindingAsync(InitiateDeleteAutoProtectionPolicyBindingRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • initiateDeleteAutoProtectionPolicyBindingAsync(AutoProtectionPolicyBindingName name) + *

  • initiateDeleteAutoProtectionPolicyBindingAsync(String name) + *

+ *

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

+ *
    + *
  • initiateDeleteAutoProtectionPolicyBindingOperationCallable() + *

  • initiateDeleteAutoProtectionPolicyBindingCallable() + *

+ * + * + * + *

ListBindingMatchingResources + *

Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + * + *

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

+ *
    + *
  • listBindingMatchingResources(ListBindingMatchingResourcesRequest request) + *

+ *

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

+ *
    + *
  • listBindingMatchingResources(AutoProtectionPolicyBindingName parent) + *

  • listBindingMatchingResources(String parent) + *

+ *

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

+ *
    + *
  • listBindingMatchingResourcesPagedCallable() + *

  • listBindingMatchingResourcesCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -5925,6 +6142,10 @@ public final OperationFuture deleteBackupPlanAssociati * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]") * .toString()) * .setRequestId("requestId693933066") + * .setAutoProtectionPolicyBinding( + * AutoProtectionPolicyBindingName.of( + * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + * .toString()) * .build(); * backupDRClient.deleteBackupPlanAssociationAsync(request).get(); * } @@ -5958,6 +6179,10 @@ public final OperationFuture deleteBackupPlanAssociati * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]") * .toString()) * .setRequestId("requestId693933066") + * .setAutoProtectionPolicyBinding( + * AutoProtectionPolicyBindingName.of( + * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + * .toString()) * .build(); * OperationFuture future = * backupDRClient.deleteBackupPlanAssociationOperationCallable().futureCall(request); @@ -5991,6 +6216,10 @@ public final OperationFuture deleteBackupPlanAssociati * "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]") * .toString()) * .setRequestId("requestId693933066") + * .setAutoProtectionPolicyBinding( + * AutoProtectionPolicyBindingName.of( + * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + * .toString()) * .build(); * ApiFuture future = * backupDRClient.deleteBackupPlanAssociationCallable().futureCall(request); @@ -6767,7 +6996,7 @@ public final UnaryCallable initializeServic // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new AutoProtectionPolicy in a given project and location. * *

Sample code: * @@ -6778,29 +7007,42 @@ public final UnaryCallable initializeServic * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BackupDRClient backupDRClient = BackupDRClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : backupDRClient.listLocations(request).iterateAll()) { - * // doThingsWith(element); - * } + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + * String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + * AutoProtectionPolicy response = + * backupDRClient + * .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + * .get(); * } * }

* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource where this policy will be created. Format: + * projects/{project}/locations/{location} + * @param autoProtectionPolicy Required. The AutoProtectionPolicy resource to create. + * @param autoProtectionPolicyId Required. The ID to use for the policy. This will become the + * final component of the policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final OperationFuture + createAutoProtectionPolicyAsync( + @Nullable LocationName parent, + AutoProtectionPolicy autoProtectionPolicy, + String autoProtectionPolicyId) { + CreateAutoProtectionPolicyRequest request = + CreateAutoProtectionPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAutoProtectionPolicy(autoProtectionPolicy) + .setAutoProtectionPolicyId(autoProtectionPolicyId) + .build(); + return createAutoProtectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new AutoProtectionPolicy in a given project and location. * *

Sample code: * @@ -6811,29 +7053,40 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BackupDRClient backupDRClient = BackupDRClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = backupDRClient.listLocationsPagedCallable().futureCall(request); - * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + * String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + * AutoProtectionPolicy response = + * backupDRClient + * .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + * .get(); * } * }

+ * + * @param parent Required. The parent resource where this policy will be created. Format: + * projects/{project}/locations/{location} + * @param autoProtectionPolicy Required. The AutoProtectionPolicy resource to create. + * @param autoProtectionPolicyId Required. The ID to use for the policy. This will become the + * final component of the policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final OperationFuture + createAutoProtectionPolicyAsync( + String parent, AutoProtectionPolicy autoProtectionPolicy, String autoProtectionPolicyId) { + CreateAutoProtectionPolicyRequest request = + CreateAutoProtectionPolicyRequest.newBuilder() + .setParent(parent) + .setAutoProtectionPolicy(autoProtectionPolicy) + .setAutoProtectionPolicyId(autoProtectionPolicyId) + .build(); + return createAutoProtectionPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Creates a new AutoProtectionPolicy in a given project and location. * *

Sample code: * @@ -6844,35 +7097,28 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BackupDRClient backupDRClient = BackupDRClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateAutoProtectionPolicyRequest request = + * CreateAutoProtectionPolicyRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") + * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListLocationsResponse response = backupDRClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * AutoProtectionPolicy response = backupDRClient.createAutoProtectionPolicyAsync(request).get(); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final OperationFuture + createAutoProtectionPolicyAsync(CreateAutoProtectionPolicyRequest request) { + return createAutoProtectionPolicyOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Creates a new AutoProtectionPolicy in a given project and location. * *

Sample code: * @@ -6883,21 +7129,29 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BackupDRClient backupDRClient = BackupDRClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = backupDRClient.getLocation(request); + * CreateAutoProtectionPolicyRequest request = + * CreateAutoProtectionPolicyRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") + * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * OperationFuture future = + * backupDRClient.createAutoProtectionPolicyOperationCallable().futureCall(request); + * // Do something. + * AutoProtectionPolicy response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final OperationCallable< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationCallable() { + return stub.createAutoProtectionPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Creates a new AutoProtectionPolicy in a given project and location. * *

Sample code: * @@ -6908,22 +7162,28 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BackupDRClient backupDRClient = BackupDRClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = backupDRClient.getLocationCallable().futureCall(request); + * CreateAutoProtectionPolicyRequest request = + * CreateAutoProtectionPolicyRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") + * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture future = + * backupDRClient.createAutoProtectionPolicyCallable().futureCall(request); * // Do something. - * Location response = future.get(); + * Operation response = future.get(); * } * } */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final UnaryCallable + createAutoProtectionPolicyCallable() { + return stub.createAutoProtectionPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * Lists AutoProtectionPolicies for a given project and location. * *

Sample code: * @@ -6934,15 +7194,1851 @@ public final UnaryCallable getLocationCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (BackupDRClient backupDRClient = BackupDRClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource( - * ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]") - * .toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Policy response = backupDRClient.setIamPolicy(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (AutoProtectionPolicy element : + * backupDRClient.listAutoProtectionPolicies(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The project and location for which to retrieve the list of policies. + * Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutoProtectionPoliciesPagedResponse listAutoProtectionPolicies( + @Nullable LocationName parent) { + ListAutoProtectionPoliciesRequest request = + ListAutoProtectionPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutoProtectionPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AutoProtectionPolicies for a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AutoProtectionPolicy element :
+   *       backupDRClient.listAutoProtectionPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve the list of policies. + * Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutoProtectionPoliciesPagedResponse listAutoProtectionPolicies(String parent) { + ListAutoProtectionPoliciesRequest request = + ListAutoProtectionPoliciesRequest.newBuilder().setParent(parent).build(); + return listAutoProtectionPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AutoProtectionPolicies for a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAutoProtectionPoliciesRequest request =
+   *       ListAutoProtectionPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (AutoProtectionPolicy element :
+   *       backupDRClient.listAutoProtectionPolicies(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutoProtectionPoliciesPagedResponse listAutoProtectionPolicies( + ListAutoProtectionPoliciesRequest request) { + return listAutoProtectionPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AutoProtectionPolicies for a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAutoProtectionPoliciesRequest request =
+   *       ListAutoProtectionPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.listAutoProtectionPoliciesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AutoProtectionPolicy element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesPagedCallable() { + return stub.listAutoProtectionPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AutoProtectionPolicies for a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAutoProtectionPoliciesRequest request =
+   *       ListAutoProtectionPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAutoProtectionPoliciesResponse response =
+   *         backupDRClient.listAutoProtectionPoliciesCallable().call(request);
+   *     for (AutoProtectionPolicy element : response.getAutoProtectionPoliciesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAutoProtectionPoliciesCallable() { + return stub.listAutoProtectionPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyName name =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+   *   AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the policy to retrieve. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutoProtectionPolicy getAutoProtectionPolicy( + @Nullable AutoProtectionPolicyName name) { + GetAutoProtectionPolicyRequest request = + GetAutoProtectionPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAutoProtectionPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String name =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *           .toString();
+   *   AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the policy to retrieve. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutoProtectionPolicy getAutoProtectionPolicy(String name) { + GetAutoProtectionPolicyRequest request = + GetAutoProtectionPolicyRequest.newBuilder().setName(name).build(); + return getAutoProtectionPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   GetAutoProtectionPolicyRequest request =
+   *       GetAutoProtectionPolicyRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.getAutoProtectionPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   AutoProtectionPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAutoProtectionPolicyCallable() { + return stub.getAutoProtectionPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AutoProtectionPolicy response =
+   *       backupDRClient.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get();
+   * }
+   * }
+ * + * @param autoProtectionPolicy Required. The policy to update. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AutoProtectionPolicy resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateAutoProtectionPolicyAsync( + AutoProtectionPolicy autoProtectionPolicy, FieldMask updateMask) { + UpdateAutoProtectionPolicyRequest request = + UpdateAutoProtectionPolicyRequest.newBuilder() + .setAutoProtectionPolicy(autoProtectionPolicy) + .setUpdateMask(updateMask) + .build(); + return updateAutoProtectionPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   UpdateAutoProtectionPolicyRequest request =
+   *       UpdateAutoProtectionPolicyRequest.newBuilder()
+   *           .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AutoProtectionPolicy response = backupDRClient.updateAutoProtectionPolicyAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateAutoProtectionPolicyAsync(UpdateAutoProtectionPolicyRequest request) { + return updateAutoProtectionPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   UpdateAutoProtectionPolicyRequest request =
+   *       UpdateAutoProtectionPolicyRequest.newBuilder()
+   *           .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       backupDRClient.updateAutoProtectionPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AutoProtectionPolicy response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationCallable() { + return stub.updateAutoProtectionPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   UpdateAutoProtectionPolicyRequest request =
+   *       UpdateAutoProtectionPolicyRequest.newBuilder()
+   *           .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.updateAutoProtectionPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateAutoProtectionPolicyCallable() { + return stub.updateAutoProtectionPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyName name =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+   *   backupDRClient.deleteAutoProtectionPolicyAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the policy to delete. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutoProtectionPolicyAsync( + @Nullable AutoProtectionPolicyName name) { + DeleteAutoProtectionPolicyRequest request = + DeleteAutoProtectionPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAutoProtectionPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String name =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *           .toString();
+   *   backupDRClient.deleteAutoProtectionPolicyAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the policy to delete. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutoProtectionPolicyAsync( + String name) { + DeleteAutoProtectionPolicyRequest request = + DeleteAutoProtectionPolicyRequest.newBuilder().setName(name).build(); + return deleteAutoProtectionPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   DeleteAutoProtectionPolicyRequest request =
+   *       DeleteAutoProtectionPolicyRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   backupDRClient.deleteAutoProtectionPolicyAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAutoProtectionPolicyAsync( + DeleteAutoProtectionPolicyRequest request) { + return deleteAutoProtectionPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   DeleteAutoProtectionPolicyRequest request =
+   *       DeleteAutoProtectionPolicyRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       backupDRClient.deleteAutoProtectionPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteAutoProtectionPolicyOperationCallable() { + return stub.deleteAutoProtectionPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AutoProtectionPolicy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   DeleteAutoProtectionPolicyRequest request =
+   *       DeleteAutoProtectionPolicyRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.deleteAutoProtectionPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteAutoProtectionPolicyCallable() { + return stub.deleteAutoProtectionPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AutoProtectionPolicyBinding in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyName parent =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+   *   AutoProtectionPolicyBinding autoProtectionPolicyBinding =
+   *       AutoProtectionPolicyBinding.newBuilder().build();
+   *   String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414";
+   *   AutoProtectionPolicyBinding response =
+   *       backupDRClient
+   *           .createAutoProtectionPolicyBindingAsync(
+   *               parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this binding will be created. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + * @param autoProtectionPolicyBinding Required. The AutoProtectionPolicyBinding resource to + * create. + * @param autoProtectionPolicyBindingId Required. The ID to use for the binding. This will become + * the final component of the binding's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createAutoProtectionPolicyBindingAsync( + @Nullable AutoProtectionPolicyName parent, + AutoProtectionPolicyBinding autoProtectionPolicyBinding, + String autoProtectionPolicyBindingId) { + CreateAutoProtectionPolicyBindingRequest request = + CreateAutoProtectionPolicyBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAutoProtectionPolicyBinding(autoProtectionPolicyBinding) + .setAutoProtectionPolicyBindingId(autoProtectionPolicyBindingId) + .build(); + return createAutoProtectionPolicyBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AutoProtectionPolicyBinding in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String parent =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *           .toString();
+   *   AutoProtectionPolicyBinding autoProtectionPolicyBinding =
+   *       AutoProtectionPolicyBinding.newBuilder().build();
+   *   String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414";
+   *   AutoProtectionPolicyBinding response =
+   *       backupDRClient
+   *           .createAutoProtectionPolicyBindingAsync(
+   *               parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this binding will be created. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + * @param autoProtectionPolicyBinding Required. The AutoProtectionPolicyBinding resource to + * create. + * @param autoProtectionPolicyBindingId Required. The ID to use for the binding. This will become + * the final component of the binding's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createAutoProtectionPolicyBindingAsync( + String parent, + AutoProtectionPolicyBinding autoProtectionPolicyBinding, + String autoProtectionPolicyBindingId) { + CreateAutoProtectionPolicyBindingRequest request = + CreateAutoProtectionPolicyBindingRequest.newBuilder() + .setParent(parent) + .setAutoProtectionPolicyBinding(autoProtectionPolicyBinding) + .setAutoProtectionPolicyBindingId(autoProtectionPolicyBindingId) + .build(); + return createAutoProtectionPolicyBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AutoProtectionPolicyBinding in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   CreateAutoProtectionPolicyBindingRequest request =
+   *       CreateAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414")
+   *           .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AutoProtectionPolicyBinding response =
+   *       backupDRClient.createAutoProtectionPolicyBindingAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createAutoProtectionPolicyBindingAsync(CreateAutoProtectionPolicyBindingRequest request) { + return createAutoProtectionPolicyBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AutoProtectionPolicyBinding in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   CreateAutoProtectionPolicyBindingRequest request =
+   *       CreateAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414")
+   *           .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       backupDRClient.createAutoProtectionPolicyBindingOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AutoProtectionPolicyBinding response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationCallable() { + return stub.createAutoProtectionPolicyBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AutoProtectionPolicyBinding in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   CreateAutoProtectionPolicyBindingRequest request =
+   *       CreateAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414")
+   *           .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.createAutoProtectionPolicyBindingCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createAutoProtectionPolicyBindingCallable() { + return stub.createAutoProtectionPolicyBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy binding read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyBindingName name =
+   *       AutoProtectionPolicyBindingName.of(
+   *           "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]");
+   *   AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(name);
+   * }
+   * }
+ * + * @param name Required. The name of the binding to retrieve. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutoProtectionPolicyBinding getAutoProtectionPolicyBinding( + @Nullable AutoProtectionPolicyBindingName name) { + GetAutoProtectionPolicyBindingRequest request = + GetAutoProtectionPolicyBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAutoProtectionPolicyBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy binding read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String name =
+   *       AutoProtectionPolicyBindingName.of(
+   *               "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *           .toString();
+   *   AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(name);
+   * }
+   * }
+ * + * @param name Required. The name of the binding to retrieve. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutoProtectionPolicyBinding getAutoProtectionPolicyBinding(String name) { + GetAutoProtectionPolicyBindingRequest request = + GetAutoProtectionPolicyBindingRequest.newBuilder().setName(name).build(); + return getAutoProtectionPolicyBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy binding read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   GetAutoProtectionPolicyBindingRequest request =
+   *       GetAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .build();
+   *   AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AutoProtectionPolicyBinding getAutoProtectionPolicyBinding( + GetAutoProtectionPolicyBindingRequest request) { + return getAutoProtectionPolicyBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy binding read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   GetAutoProtectionPolicyBindingRequest request =
+   *       GetAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.getAutoProtectionPolicyBindingCallable().futureCall(request);
+   *   // Do something.
+   *   AutoProtectionPolicyBinding response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAutoProtectionPolicyBindingCallable() { + return stub.getAutoProtectionPolicyBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy bindings read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyName parent =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]");
+   *   for (AutoProtectionPolicyBinding element :
+   *       backupDRClient.listAutoProtectionPolicyBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve the list of policies. + * Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutoProtectionPolicyBindingsPagedResponse listAutoProtectionPolicyBindings( + @Nullable AutoProtectionPolicyName parent) { + ListAutoProtectionPolicyBindingsRequest request = + ListAutoProtectionPolicyBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAutoProtectionPolicyBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy bindings read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String parent =
+   *       AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *           .toString();
+   *   for (AutoProtectionPolicyBinding element :
+   *       backupDRClient.listAutoProtectionPolicyBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve the list of policies. + * Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutoProtectionPolicyBindingsPagedResponse listAutoProtectionPolicyBindings( + String parent) { + ListAutoProtectionPolicyBindingsRequest request = + ListAutoProtectionPolicyBindingsRequest.newBuilder().setParent(parent).build(); + return listAutoProtectionPolicyBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy bindings read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAutoProtectionPolicyBindingsRequest request =
+   *       ListAutoProtectionPolicyBindingsRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (AutoProtectionPolicyBinding element :
+   *       backupDRClient.listAutoProtectionPolicyBindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAutoProtectionPolicyBindingsPagedResponse listAutoProtectionPolicyBindings( + ListAutoProtectionPolicyBindingsRequest request) { + return listAutoProtectionPolicyBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy bindings read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAutoProtectionPolicyBindingsRequest request =
+   *       ListAutoProtectionPolicyBindingsRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.listAutoProtectionPolicyBindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AutoProtectionPolicyBinding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsPagedCallable() { + return stub.listAutoProtectionPolicyBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the auto protection policy bindings read from the CCFE tables. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAutoProtectionPolicyBindingsRequest request =
+   *       ListAutoProtectionPolicyBindingsRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAutoProtectionPolicyBindingsResponse response =
+   *         backupDRClient.listAutoProtectionPolicyBindingsCallable().call(request);
+   *     for (AutoProtectionPolicyBinding element : response.getAutoProtectionPolicyBindingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsCallable() { + return stub.listAutoProtectionPolicyBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AppliedAutoProtectionPolicies in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AppliedAutoProtectionPolicy element :
+   *       backupDRClient.listAppliedAutoProtectionPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve the list of applied + * policies. Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProtectionPolicies( + @Nullable LocationName parent) { + ListAppliedAutoProtectionPoliciesRequest request = + ListAppliedAutoProtectionPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAppliedAutoProtectionPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AppliedAutoProtectionPolicies in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AppliedAutoProtectionPolicy element :
+   *       backupDRClient.listAppliedAutoProtectionPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location for which to retrieve the list of applied + * policies. Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProtectionPolicies( + String parent) { + ListAppliedAutoProtectionPoliciesRequest request = + ListAppliedAutoProtectionPoliciesRequest.newBuilder().setParent(parent).build(); + return listAppliedAutoProtectionPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AppliedAutoProtectionPolicies in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAppliedAutoProtectionPoliciesRequest request =
+   *       ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (AppliedAutoProtectionPolicy element :
+   *       backupDRClient.listAppliedAutoProtectionPolicies(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProtectionPolicies( + ListAppliedAutoProtectionPoliciesRequest request) { + return listAppliedAutoProtectionPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AppliedAutoProtectionPolicies in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAppliedAutoProtectionPoliciesRequest request =
+   *       ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.listAppliedAutoProtectionPoliciesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AppliedAutoProtectionPolicy element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesPagedCallable() { + return stub.listAppliedAutoProtectionPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AppliedAutoProtectionPolicies in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListAppliedAutoProtectionPoliciesRequest request =
+   *       ListAppliedAutoProtectionPoliciesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAppliedAutoProtectionPoliciesResponse response =
+   *         backupDRClient.listAppliedAutoProtectionPoliciesCallable().call(request);
+   *     for (AppliedAutoProtectionPolicy element :
+   *         response.getAppliedAutoProtectionPoliciesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesCallable() { + return stub.listAppliedAutoProtectionPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyBindingName name =
+   *       AutoProtectionPolicyBindingName.of(
+   *           "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]");
+   *   AutoProtectionPolicyBinding response =
+   *       backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the binding to delete. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + initiateDeleteAutoProtectionPolicyBindingAsync( + @Nullable AutoProtectionPolicyBindingName name) { + InitiateDeleteAutoProtectionPolicyBindingRequest request = + InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return initiateDeleteAutoProtectionPolicyBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String name =
+   *       AutoProtectionPolicyBindingName.of(
+   *               "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *           .toString();
+   *   AutoProtectionPolicyBinding response =
+   *       backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the binding to delete. Format: + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + initiateDeleteAutoProtectionPolicyBindingAsync(String name) { + InitiateDeleteAutoProtectionPolicyBindingRequest request = + InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder().setName(name).build(); + return initiateDeleteAutoProtectionPolicyBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   InitiateDeleteAutoProtectionPolicyBindingRequest request =
+   *       InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AutoProtectionPolicyBinding response =
+   *       backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + initiateDeleteAutoProtectionPolicyBindingAsync( + InitiateDeleteAutoProtectionPolicyBindingRequest request) { + return initiateDeleteAutoProtectionPolicyBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   InitiateDeleteAutoProtectionPolicyBindingRequest request =
+   *       InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       backupDRClient
+   *           .initiateDeleteAutoProtectionPolicyBindingOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   AutoProtectionPolicyBinding response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationCallable() { + return stub.initiateDeleteAutoProtectionPolicyBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   InitiateDeleteAutoProtectionPolicyBindingRequest request =
+   *       InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder()
+   *           .setName(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.initiateDeleteAutoProtectionPolicyBindingCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + initiateDeleteAutoProtectionPolicyBindingCallable() { + return stub.initiateDeleteAutoProtectionPolicyBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   AutoProtectionPolicyBindingName parent =
+   *       AutoProtectionPolicyBindingName.of(
+   *           "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]");
+   *   for (BindingMatchingResource element :
+   *       backupDRClient.listBindingMatchingResources(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project, location, auto protection policy and binding for which to + * retrieve `BindingMatchingResources` information. Format: + * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`. + * In Google Cloud Backup and DR, locations map to Google Cloud regions, for example + * **us-central1**. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingMatchingResourcesPagedResponse listBindingMatchingResources( + @Nullable AutoProtectionPolicyBindingName parent) { + ListBindingMatchingResourcesRequest request = + ListBindingMatchingResourcesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBindingMatchingResources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   String parent =
+   *       AutoProtectionPolicyBindingName.of(
+   *               "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *           .toString();
+   *   for (BindingMatchingResource element :
+   *       backupDRClient.listBindingMatchingResources(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project, location, auto protection policy and binding for which to + * retrieve `BindingMatchingResources` information. Format: + * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`. + * In Google Cloud Backup and DR, locations map to Google Cloud regions, for example + * **us-central1**. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingMatchingResourcesPagedResponse listBindingMatchingResources( + String parent) { + ListBindingMatchingResourcesRequest request = + ListBindingMatchingResourcesRequest.newBuilder().setParent(parent).build(); + return listBindingMatchingResources(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListBindingMatchingResourcesRequest request =
+   *       ListBindingMatchingResourcesRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (BindingMatchingResource element :
+   *       backupDRClient.listBindingMatchingResources(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingMatchingResourcesPagedResponse listBindingMatchingResources( + ListBindingMatchingResourcesRequest request) { + return listBindingMatchingResourcesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListBindingMatchingResourcesRequest request =
+   *       ListBindingMatchingResourcesRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       backupDRClient.listBindingMatchingResourcesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BindingMatchingResource element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesPagedCallable() { + return stub.listBindingMatchingResourcesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListBindingMatchingResourcesRequest request =
+   *       ListBindingMatchingResourcesRequest.newBuilder()
+   *           .setParent(
+   *               AutoProtectionPolicyBindingName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListBindingMatchingResourcesResponse response =
+   *         backupDRClient.listBindingMatchingResourcesCallable().call(request);
+   *     for (BindingMatchingResource element : response.getMatchingResourcesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse> + listBindingMatchingResourcesCallable() { + return stub.listBindingMatchingResourcesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : backupDRClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = backupDRClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = backupDRClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = backupDRClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = backupDRClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               ManagementServerName.of("[PROJECT]", "[LOCATION]", "[MANAGEMENTSERVER]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = backupDRClient.setIamPolicy(request);
    * }
    * }
* @@ -8229,6 +10325,407 @@ protected FetchDataSourceReferencesForResourceTypeFixedSizeCollection createColl } } + public static class ListAutoProtectionPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy, + ListAutoProtectionPoliciesPage, + ListAutoProtectionPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutoProtectionPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutoProtectionPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutoProtectionPoliciesPagedResponse(ListAutoProtectionPoliciesPage page) { + super(page, ListAutoProtectionPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAutoProtectionPoliciesPage + extends AbstractPage< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy, + ListAutoProtectionPoliciesPage> { + + private ListAutoProtectionPoliciesPage( + @Nullable + PageContext< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy> + context, + @Nullable ListAutoProtectionPoliciesResponse response) { + super(context, response); + } + + private static ListAutoProtectionPoliciesPage createEmptyPage() { + return new ListAutoProtectionPoliciesPage(null, null); + } + + @Override + protected ListAutoProtectionPoliciesPage createPage( + @Nullable + PageContext< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy> + context, + @Nullable ListAutoProtectionPoliciesResponse response) { + return new ListAutoProtectionPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAutoProtectionPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy, + ListAutoProtectionPoliciesPage, + ListAutoProtectionPoliciesFixedSizeCollection> { + + private ListAutoProtectionPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutoProtectionPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAutoProtectionPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAutoProtectionPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAutoProtectionPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAutoProtectionPolicyBindingsPagedResponse + extends AbstractPagedListResponse< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding, + ListAutoProtectionPolicyBindingsPage, + ListAutoProtectionPolicyBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAutoProtectionPolicyBindingsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAutoProtectionPolicyBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAutoProtectionPolicyBindingsPagedResponse( + ListAutoProtectionPolicyBindingsPage page) { + super(page, ListAutoProtectionPolicyBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAutoProtectionPolicyBindingsPage + extends AbstractPage< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding, + ListAutoProtectionPolicyBindingsPage> { + + private ListAutoProtectionPolicyBindingsPage( + @Nullable + PageContext< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding> + context, + @Nullable ListAutoProtectionPolicyBindingsResponse response) { + super(context, response); + } + + private static ListAutoProtectionPolicyBindingsPage createEmptyPage() { + return new ListAutoProtectionPolicyBindingsPage(null, null); + } + + @Override + protected ListAutoProtectionPolicyBindingsPage createPage( + @Nullable + PageContext< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding> + context, + @Nullable ListAutoProtectionPolicyBindingsResponse response) { + return new ListAutoProtectionPolicyBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAutoProtectionPolicyBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding, + ListAutoProtectionPolicyBindingsPage, + ListAutoProtectionPolicyBindingsFixedSizeCollection> { + + private ListAutoProtectionPolicyBindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAutoProtectionPolicyBindingsFixedSizeCollection createEmptyCollection() { + return new ListAutoProtectionPolicyBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListAutoProtectionPolicyBindingsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAutoProtectionPolicyBindingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAppliedAutoProtectionPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy, + ListAppliedAutoProtectionPoliciesPage, + ListAppliedAutoProtectionPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAppliedAutoProtectionPoliciesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAppliedAutoProtectionPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAppliedAutoProtectionPoliciesPagedResponse( + ListAppliedAutoProtectionPoliciesPage page) { + super(page, ListAppliedAutoProtectionPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAppliedAutoProtectionPoliciesPage + extends AbstractPage< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy, + ListAppliedAutoProtectionPoliciesPage> { + + private ListAppliedAutoProtectionPoliciesPage( + @Nullable + PageContext< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy> + context, + @Nullable ListAppliedAutoProtectionPoliciesResponse response) { + super(context, response); + } + + private static ListAppliedAutoProtectionPoliciesPage createEmptyPage() { + return new ListAppliedAutoProtectionPoliciesPage(null, null); + } + + @Override + protected ListAppliedAutoProtectionPoliciesPage createPage( + @Nullable + PageContext< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy> + context, + @Nullable ListAppliedAutoProtectionPoliciesResponse response) { + return new ListAppliedAutoProtectionPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAppliedAutoProtectionPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy, + ListAppliedAutoProtectionPoliciesPage, + ListAppliedAutoProtectionPoliciesFixedSizeCollection> { + + private ListAppliedAutoProtectionPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAppliedAutoProtectionPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAppliedAutoProtectionPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAppliedAutoProtectionPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAppliedAutoProtectionPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBindingMatchingResourcesPagedResponse + extends AbstractPagedListResponse< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource, + ListBindingMatchingResourcesPage, + ListBindingMatchingResourcesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBindingMatchingResourcesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBindingMatchingResourcesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBindingMatchingResourcesPagedResponse(ListBindingMatchingResourcesPage page) { + super(page, ListBindingMatchingResourcesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBindingMatchingResourcesPage + extends AbstractPage< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource, + ListBindingMatchingResourcesPage> { + + private ListBindingMatchingResourcesPage( + @Nullable + PageContext< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource> + context, + @Nullable ListBindingMatchingResourcesResponse response) { + super(context, response); + } + + private static ListBindingMatchingResourcesPage createEmptyPage() { + return new ListBindingMatchingResourcesPage(null, null); + } + + @Override + protected ListBindingMatchingResourcesPage createPage( + @Nullable + PageContext< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource> + context, + @Nullable ListBindingMatchingResourcesResponse response) { + return new ListBindingMatchingResourcesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBindingMatchingResourcesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource, + ListBindingMatchingResourcesPage, + ListBindingMatchingResourcesFixedSizeCollection> { + + private ListBindingMatchingResourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBindingMatchingResourcesFixedSizeCollection createEmptyCollection() { + return new ListBindingMatchingResourcesFixedSizeCollection(null, 0); + } + + @Override + protected ListBindingMatchingResourcesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListBindingMatchingResourcesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java index 2c4430fd8244..1f6ea8c45fd7 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -488,6 +492,129 @@ public UnaryCallSettings initializeServiceS return ((BackupDRStubSettings) getStubSettings()).initializeServiceOperationSettings(); } + /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */ + public UnaryCallSettings + createAutoProtectionPolicySettings() { + return ((BackupDRStubSettings) getStubSettings()).createAutoProtectionPolicySettings(); + } + + /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */ + public OperationCallSettings< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationSettings() { + return ((BackupDRStubSettings) getStubSettings()).createAutoProtectionPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to listAutoProtectionPolicies. */ + public PagedCallSettings< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesSettings() { + return ((BackupDRStubSettings) getStubSettings()).listAutoProtectionPoliciesSettings(); + } + + /** Returns the object with the settings used for calls to getAutoProtectionPolicy. */ + public UnaryCallSettings + getAutoProtectionPolicySettings() { + return ((BackupDRStubSettings) getStubSettings()).getAutoProtectionPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */ + public UnaryCallSettings + updateAutoProtectionPolicySettings() { + return ((BackupDRStubSettings) getStubSettings()).updateAutoProtectionPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */ + public OperationCallSettings< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationSettings() { + return ((BackupDRStubSettings) getStubSettings()).updateAutoProtectionPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */ + public UnaryCallSettings + deleteAutoProtectionPolicySettings() { + return ((BackupDRStubSettings) getStubSettings()).deleteAutoProtectionPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */ + public OperationCallSettings + deleteAutoProtectionPolicyOperationSettings() { + return ((BackupDRStubSettings) getStubSettings()).deleteAutoProtectionPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */ + public UnaryCallSettings + createAutoProtectionPolicyBindingSettings() { + return ((BackupDRStubSettings) getStubSettings()).createAutoProtectionPolicyBindingSettings(); + } + + /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */ + public OperationCallSettings< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationSettings() { + return ((BackupDRStubSettings) getStubSettings()) + .createAutoProtectionPolicyBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAutoProtectionPolicyBinding. */ + public UnaryCallSettings + getAutoProtectionPolicyBindingSettings() { + return ((BackupDRStubSettings) getStubSettings()).getAutoProtectionPolicyBindingSettings(); + } + + /** Returns the object with the settings used for calls to listAutoProtectionPolicyBindings. */ + public PagedCallSettings< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsSettings() { + return ((BackupDRStubSettings) getStubSettings()).listAutoProtectionPolicyBindingsSettings(); + } + + /** Returns the object with the settings used for calls to listAppliedAutoProtectionPolicies. */ + public PagedCallSettings< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesSettings() { + return ((BackupDRStubSettings) getStubSettings()).listAppliedAutoProtectionPoliciesSettings(); + } + + /** + * Returns the object with the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public UnaryCallSettings + initiateDeleteAutoProtectionPolicyBindingSettings() { + return ((BackupDRStubSettings) getStubSettings()) + .initiateDeleteAutoProtectionPolicyBindingSettings(); + } + + /** + * Returns the object with the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public OperationCallSettings< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationSettings() { + return ((BackupDRStubSettings) getStubSettings()) + .initiateDeleteAutoProtectionPolicyBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to listBindingMatchingResources. */ + public PagedCallSettings< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesSettings() { + return ((BackupDRStubSettings) getStubSettings()).listBindingMatchingResourcesSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -983,6 +1110,130 @@ public UnaryCallSettings.Builder triggerBackupS return getStubSettingsBuilder().initializeServiceOperationSettings(); } + /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + createAutoProtectionPolicySettings() { + return getStubSettingsBuilder().createAutoProtectionPolicySettings(); + } + + /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */ + public OperationCallSettings.Builder< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationSettings() { + return getStubSettingsBuilder().createAutoProtectionPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listAutoProtectionPolicies. */ + public PagedCallSettings.Builder< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesSettings() { + return getStubSettingsBuilder().listAutoProtectionPoliciesSettings(); + } + + /** Returns the builder for the settings used for calls to getAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + getAutoProtectionPolicySettings() { + return getStubSettingsBuilder().getAutoProtectionPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + updateAutoProtectionPolicySettings() { + return getStubSettingsBuilder().updateAutoProtectionPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */ + public OperationCallSettings.Builder< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationSettings() { + return getStubSettingsBuilder().updateAutoProtectionPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + deleteAutoProtectionPolicySettings() { + return getStubSettingsBuilder().deleteAutoProtectionPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */ + public OperationCallSettings.Builder< + DeleteAutoProtectionPolicyRequest, Empty, OperationMetadata> + deleteAutoProtectionPolicyOperationSettings() { + return getStubSettingsBuilder().deleteAutoProtectionPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */ + public UnaryCallSettings.Builder + createAutoProtectionPolicyBindingSettings() { + return getStubSettingsBuilder().createAutoProtectionPolicyBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */ + public OperationCallSettings.Builder< + CreateAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + createAutoProtectionPolicyBindingOperationSettings() { + return getStubSettingsBuilder().createAutoProtectionPolicyBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAutoProtectionPolicyBinding. */ + public UnaryCallSettings.Builder< + GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding> + getAutoProtectionPolicyBindingSettings() { + return getStubSettingsBuilder().getAutoProtectionPolicyBindingSettings(); + } + + /** Returns the builder for the settings used for calls to listAutoProtectionPolicyBindings. */ + public PagedCallSettings.Builder< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsSettings() { + return getStubSettingsBuilder().listAutoProtectionPolicyBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to listAppliedAutoProtectionPolicies. */ + public PagedCallSettings.Builder< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesSettings() { + return getStubSettingsBuilder().listAppliedAutoProtectionPoliciesSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public UnaryCallSettings.Builder + initiateDeleteAutoProtectionPolicyBindingSettings() { + return getStubSettingsBuilder().initiateDeleteAutoProtectionPolicyBindingSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public OperationCallSettings.Builder< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationSettings() { + return getStubSettingsBuilder().initiateDeleteAutoProtectionPolicyBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listBindingMatchingResources. */ + public PagedCallSettings.Builder< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesSettings() { + return getStubSettingsBuilder().listBindingMatchingResourcesSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json index 1376fbdac135..c2ba40f655b1 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json @@ -10,6 +10,12 @@ "grpc": { "libraryClient": "BackupDRClient", "rpcs": { + "CreateAutoProtectionPolicy": { + "methods": ["createAutoProtectionPolicyAsync", "createAutoProtectionPolicyAsync", "createAutoProtectionPolicyAsync", "createAutoProtectionPolicyOperationCallable", "createAutoProtectionPolicyCallable"] + }, + "CreateAutoProtectionPolicyBinding": { + "methods": ["createAutoProtectionPolicyBindingAsync", "createAutoProtectionPolicyBindingAsync", "createAutoProtectionPolicyBindingAsync", "createAutoProtectionPolicyBindingOperationCallable", "createAutoProtectionPolicyBindingCallable"] + }, "CreateBackupPlan": { "methods": ["createBackupPlanAsync", "createBackupPlanAsync", "createBackupPlanAsync", "createBackupPlanOperationCallable", "createBackupPlanCallable"] }, @@ -22,6 +28,9 @@ "CreateManagementServer": { "methods": ["createManagementServerAsync", "createManagementServerAsync", "createManagementServerAsync", "createManagementServerOperationCallable", "createManagementServerCallable"] }, + "DeleteAutoProtectionPolicy": { + "methods": ["deleteAutoProtectionPolicyAsync", "deleteAutoProtectionPolicyAsync", "deleteAutoProtectionPolicyAsync", "deleteAutoProtectionPolicyOperationCallable", "deleteAutoProtectionPolicyCallable"] + }, "DeleteBackup": { "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] }, @@ -49,6 +58,12 @@ "FetchUsableBackupVaults": { "methods": ["fetchUsableBackupVaults", "fetchUsableBackupVaults", "fetchUsableBackupVaults", "fetchUsableBackupVaultsPagedCallable", "fetchUsableBackupVaultsCallable"] }, + "GetAutoProtectionPolicy": { + "methods": ["getAutoProtectionPolicy", "getAutoProtectionPolicy", "getAutoProtectionPolicy", "getAutoProtectionPolicyCallable"] + }, + "GetAutoProtectionPolicyBinding": { + "methods": ["getAutoProtectionPolicyBinding", "getAutoProtectionPolicyBinding", "getAutoProtectionPolicyBinding", "getAutoProtectionPolicyBindingCallable"] + }, "GetBackup": { "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] }, @@ -82,6 +97,18 @@ "InitializeService": { "methods": ["initializeServiceAsync", "initializeServiceOperationCallable", "initializeServiceCallable"] }, + "InitiateDeleteAutoProtectionPolicyBinding": { + "methods": ["initiateDeleteAutoProtectionPolicyBindingAsync", "initiateDeleteAutoProtectionPolicyBindingAsync", "initiateDeleteAutoProtectionPolicyBindingAsync", "initiateDeleteAutoProtectionPolicyBindingOperationCallable", "initiateDeleteAutoProtectionPolicyBindingCallable"] + }, + "ListAppliedAutoProtectionPolicies": { + "methods": ["listAppliedAutoProtectionPolicies", "listAppliedAutoProtectionPolicies", "listAppliedAutoProtectionPolicies", "listAppliedAutoProtectionPoliciesPagedCallable", "listAppliedAutoProtectionPoliciesCallable"] + }, + "ListAutoProtectionPolicies": { + "methods": ["listAutoProtectionPolicies", "listAutoProtectionPolicies", "listAutoProtectionPolicies", "listAutoProtectionPoliciesPagedCallable", "listAutoProtectionPoliciesCallable"] + }, + "ListAutoProtectionPolicyBindings": { + "methods": ["listAutoProtectionPolicyBindings", "listAutoProtectionPolicyBindings", "listAutoProtectionPolicyBindings", "listAutoProtectionPolicyBindingsPagedCallable", "listAutoProtectionPolicyBindingsCallable"] + }, "ListBackupPlanAssociations": { "methods": ["listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociationsPagedCallable", "listBackupPlanAssociationsCallable"] }, @@ -97,6 +124,9 @@ "ListBackups": { "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] }, + "ListBindingMatchingResources": { + "methods": ["listBindingMatchingResources", "listBindingMatchingResources", "listBindingMatchingResources", "listBindingMatchingResourcesPagedCallable", "listBindingMatchingResourcesCallable"] + }, "ListDataSourceReferences": { "methods": ["listDataSourceReferences", "listDataSourceReferences", "listDataSourceReferences", "listDataSourceReferencesPagedCallable", "listDataSourceReferencesCallable"] }, @@ -121,6 +151,9 @@ "TriggerBackup": { "methods": ["triggerBackupAsync", "triggerBackupAsync", "triggerBackupAsync", "triggerBackupOperationCallable", "triggerBackupCallable"] }, + "UpdateAutoProtectionPolicy": { + "methods": ["updateAutoProtectionPolicyAsync", "updateAutoProtectionPolicyAsync", "updateAutoProtectionPolicyOperationCallable", "updateAutoProtectionPolicyCallable"] + }, "UpdateBackup": { "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] }, diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java index c671730d3330..d76b7883794b 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -33,17 +37,22 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; import com.google.cloud.backupdr.v1.Backup; import com.google.cloud.backupdr.v1.BackupPlan; import com.google.cloud.backupdr.v1.BackupPlanAssociation; import com.google.cloud.backupdr.v1.BackupPlanRevision; import com.google.cloud.backupdr.v1.BackupVault; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanRequest; import com.google.cloud.backupdr.v1.CreateBackupVaultRequest; import com.google.cloud.backupdr.v1.CreateManagementServerRequest; import com.google.cloud.backupdr.v1.DataSource; import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest; import com.google.cloud.backupdr.v1.DeleteBackupRequest; @@ -57,6 +66,8 @@ import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest; @@ -67,6 +78,13 @@ import com.google.cloud.backupdr.v1.GetManagementServerRequest; import com.google.cloud.backupdr.v1.InitializeServiceRequest; import com.google.cloud.backupdr.v1.InitializeServiceResponse; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest; @@ -77,6 +95,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse; import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; @@ -88,6 +108,7 @@ import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.cloud.backupdr.v1.RestoreBackupResponse; import com.google.cloud.backupdr.v1.TriggerBackupRequest; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest; import com.google.cloud.backupdr.v1.UpdateBackupRequest; @@ -469,6 +490,136 @@ public UnaryCallable initializeServiceCalla throw new UnsupportedOperationException("Not implemented: initializeServiceCallable()"); } + public OperationCallable< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAutoProtectionPolicyOperationCallable()"); + } + + public UnaryCallable + createAutoProtectionPolicyCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAutoProtectionPolicyCallable()"); + } + + public UnaryCallable + listAutoProtectionPoliciesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutoProtectionPoliciesPagedCallable()"); + } + + public UnaryCallable + listAutoProtectionPoliciesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutoProtectionPoliciesCallable()"); + } + + public UnaryCallable + getAutoProtectionPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAutoProtectionPolicyCallable()"); + } + + public OperationCallable< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAutoProtectionPolicyOperationCallable()"); + } + + public UnaryCallable + updateAutoProtectionPolicyCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAutoProtectionPolicyCallable()"); + } + + public OperationCallable + deleteAutoProtectionPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAutoProtectionPolicyOperationCallable()"); + } + + public UnaryCallable + deleteAutoProtectionPolicyCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAutoProtectionPolicyCallable()"); + } + + public OperationCallable< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAutoProtectionPolicyBindingOperationCallable()"); + } + + public UnaryCallable + createAutoProtectionPolicyBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAutoProtectionPolicyBindingCallable()"); + } + + public UnaryCallable + getAutoProtectionPolicyBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: getAutoProtectionPolicyBindingCallable()"); + } + + public UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutoProtectionPolicyBindingsPagedCallable()"); + } + + public UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAutoProtectionPolicyBindingsCallable()"); + } + + public UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAppliedAutoProtectionPoliciesPagedCallable()"); + } + + public UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAppliedAutoProtectionPoliciesCallable()"); + } + + public OperationCallable< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: initiateDeleteAutoProtectionPolicyBindingOperationCallable()"); + } + + public UnaryCallable + initiateDeleteAutoProtectionPolicyBindingCallable() { + throw new UnsupportedOperationException( + "Not implemented: initiateDeleteAutoProtectionPolicyBindingCallable()"); + } + + public UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listBindingMatchingResourcesPagedCallable()"); + } + + public UnaryCallable + listBindingMatchingResourcesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listBindingMatchingResourcesCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java index 9bd6a0e5fb21..8e536dbbd581 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -61,17 +65,24 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; import com.google.cloud.backupdr.v1.Backup; import com.google.cloud.backupdr.v1.BackupPlan; import com.google.cloud.backupdr.v1.BackupPlanAssociation; import com.google.cloud.backupdr.v1.BackupPlanRevision; import com.google.cloud.backupdr.v1.BackupVault; +import com.google.cloud.backupdr.v1.BindingMatchingResource; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanRequest; import com.google.cloud.backupdr.v1.CreateBackupVaultRequest; import com.google.cloud.backupdr.v1.CreateManagementServerRequest; import com.google.cloud.backupdr.v1.DataSource; import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest; import com.google.cloud.backupdr.v1.DeleteBackupRequest; @@ -85,6 +96,8 @@ import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest; @@ -95,6 +108,13 @@ import com.google.cloud.backupdr.v1.GetManagementServerRequest; import com.google.cloud.backupdr.v1.InitializeServiceRequest; import com.google.cloud.backupdr.v1.InitializeServiceResponse; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest; @@ -105,6 +125,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse; import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; @@ -116,6 +138,7 @@ import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.cloud.backupdr.v1.RestoreBackupResponse; import com.google.cloud.backupdr.v1.TriggerBackupRequest; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest; import com.google.cloud.backupdr.v1.UpdateBackupRequest; @@ -350,6 +373,57 @@ public class BackupDRStubSettings extends StubSettings { private final OperationCallSettings< InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> initializeServiceOperationSettings; + private final UnaryCallSettings + createAutoProtectionPolicySettings; + private final OperationCallSettings< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationSettings; + private final PagedCallSettings< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesSettings; + private final UnaryCallSettings + getAutoProtectionPolicySettings; + private final UnaryCallSettings + updateAutoProtectionPolicySettings; + private final OperationCallSettings< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationSettings; + private final UnaryCallSettings + deleteAutoProtectionPolicySettings; + private final OperationCallSettings + deleteAutoProtectionPolicyOperationSettings; + private final UnaryCallSettings + createAutoProtectionPolicyBindingSettings; + private final OperationCallSettings< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationSettings; + private final UnaryCallSettings< + GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding> + getAutoProtectionPolicyBindingSettings; + private final PagedCallSettings< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsSettings; + private final PagedCallSettings< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesSettings; + private final UnaryCallSettings + initiateDeleteAutoProtectionPolicyBindingSettings; + private final OperationCallSettings< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationSettings; + private final PagedCallSettings< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -859,6 +933,194 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy> + LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutoProtectionPoliciesRequest injectToken( + ListAutoProtectionPoliciesRequest payload, String token) { + return ListAutoProtectionPoliciesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAutoProtectionPoliciesRequest injectPageSize( + ListAutoProtectionPoliciesRequest payload, int pageSize) { + return ListAutoProtectionPoliciesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutoProtectionPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutoProtectionPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutoProtectionPoliciesResponse payload) { + return payload.getAutoProtectionPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding> + LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutoProtectionPolicyBindingsRequest injectToken( + ListAutoProtectionPolicyBindingsRequest payload, String token) { + return ListAutoProtectionPolicyBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAutoProtectionPolicyBindingsRequest injectPageSize( + ListAutoProtectionPolicyBindingsRequest payload, int pageSize) { + return ListAutoProtectionPolicyBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutoProtectionPolicyBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutoProtectionPolicyBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutoProtectionPolicyBindingsResponse payload) { + return payload.getAutoProtectionPolicyBindingsList(); + } + }; + + private static final PagedListDescriptor< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy> + LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAppliedAutoProtectionPoliciesRequest injectToken( + ListAppliedAutoProtectionPoliciesRequest payload, String token) { + return ListAppliedAutoProtectionPoliciesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAppliedAutoProtectionPoliciesRequest injectPageSize( + ListAppliedAutoProtectionPoliciesRequest payload, int pageSize) { + return ListAppliedAutoProtectionPoliciesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAppliedAutoProtectionPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAppliedAutoProtectionPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAppliedAutoProtectionPoliciesResponse payload) { + return payload.getAppliedAutoProtectionPoliciesList(); + } + }; + + private static final PagedListDescriptor< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource> + LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_DESC = + new PagedListDescriptor< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBindingMatchingResourcesRequest injectToken( + ListBindingMatchingResourcesRequest payload, String token) { + return ListBindingMatchingResourcesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListBindingMatchingResourcesRequest injectPageSize( + ListBindingMatchingResourcesRequest payload, int pageSize) { + return ListBindingMatchingResourcesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListBindingMatchingResourcesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBindingMatchingResourcesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListBindingMatchingResourcesResponse payload) { + return payload.getMatchingResourcesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -1194,6 +1456,132 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutoProtectionPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + AutoProtectionPolicy> + pageContext = + PageContext.create( + callable, LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC, request, context); + return ListAutoProtectionPoliciesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse> + callable, + ListAutoProtectionPolicyBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + AutoProtectionPolicyBinding> + pageContext = + PageContext.create( + callable, + LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_DESC, + request, + context); + return ListAutoProtectionPolicyBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse> + callable, + ListAppliedAutoProtectionPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + AppliedAutoProtectionPolicy> + pageContext = + PageContext.create( + callable, + LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_DESC, + request, + context); + return ListAppliedAutoProtectionPoliciesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse> + callable, + ListBindingMatchingResourcesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + BindingMatchingResource> + pageContext = + PageContext.create( + callable, + LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_DESC, + request, + context); + return ListBindingMatchingResourcesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -1555,6 +1943,126 @@ public UnaryCallSettings initializeServiceS return initializeServiceOperationSettings; } + /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */ + public UnaryCallSettings + createAutoProtectionPolicySettings() { + return createAutoProtectionPolicySettings; + } + + /** Returns the object with the settings used for calls to createAutoProtectionPolicy. */ + public OperationCallSettings< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationSettings() { + return createAutoProtectionPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to listAutoProtectionPolicies. */ + public PagedCallSettings< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesSettings() { + return listAutoProtectionPoliciesSettings; + } + + /** Returns the object with the settings used for calls to getAutoProtectionPolicy. */ + public UnaryCallSettings + getAutoProtectionPolicySettings() { + return getAutoProtectionPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */ + public UnaryCallSettings + updateAutoProtectionPolicySettings() { + return updateAutoProtectionPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAutoProtectionPolicy. */ + public OperationCallSettings< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationSettings() { + return updateAutoProtectionPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */ + public UnaryCallSettings + deleteAutoProtectionPolicySettings() { + return deleteAutoProtectionPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteAutoProtectionPolicy. */ + public OperationCallSettings + deleteAutoProtectionPolicyOperationSettings() { + return deleteAutoProtectionPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */ + public UnaryCallSettings + createAutoProtectionPolicyBindingSettings() { + return createAutoProtectionPolicyBindingSettings; + } + + /** Returns the object with the settings used for calls to createAutoProtectionPolicyBinding. */ + public OperationCallSettings< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationSettings() { + return createAutoProtectionPolicyBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to getAutoProtectionPolicyBinding. */ + public UnaryCallSettings + getAutoProtectionPolicyBindingSettings() { + return getAutoProtectionPolicyBindingSettings; + } + + /** Returns the object with the settings used for calls to listAutoProtectionPolicyBindings. */ + public PagedCallSettings< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsSettings() { + return listAutoProtectionPolicyBindingsSettings; + } + + /** Returns the object with the settings used for calls to listAppliedAutoProtectionPolicies. */ + public PagedCallSettings< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesSettings() { + return listAppliedAutoProtectionPoliciesSettings; + } + + /** + * Returns the object with the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public UnaryCallSettings + initiateDeleteAutoProtectionPolicyBindingSettings() { + return initiateDeleteAutoProtectionPolicyBindingSettings; + } + + /** + * Returns the object with the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public OperationCallSettings< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationSettings() { + return initiateDeleteAutoProtectionPolicyBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to listBindingMatchingResources. */ + public PagedCallSettings< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesSettings() { + return listBindingMatchingResourcesSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1761,6 +2269,37 @@ protected BackupDRStubSettings(Builder settingsBuilder) throws IOException { initializeServiceSettings = settingsBuilder.initializeServiceSettings().build(); initializeServiceOperationSettings = settingsBuilder.initializeServiceOperationSettings().build(); + createAutoProtectionPolicySettings = + settingsBuilder.createAutoProtectionPolicySettings().build(); + createAutoProtectionPolicyOperationSettings = + settingsBuilder.createAutoProtectionPolicyOperationSettings().build(); + listAutoProtectionPoliciesSettings = + settingsBuilder.listAutoProtectionPoliciesSettings().build(); + getAutoProtectionPolicySettings = settingsBuilder.getAutoProtectionPolicySettings().build(); + updateAutoProtectionPolicySettings = + settingsBuilder.updateAutoProtectionPolicySettings().build(); + updateAutoProtectionPolicyOperationSettings = + settingsBuilder.updateAutoProtectionPolicyOperationSettings().build(); + deleteAutoProtectionPolicySettings = + settingsBuilder.deleteAutoProtectionPolicySettings().build(); + deleteAutoProtectionPolicyOperationSettings = + settingsBuilder.deleteAutoProtectionPolicyOperationSettings().build(); + createAutoProtectionPolicyBindingSettings = + settingsBuilder.createAutoProtectionPolicyBindingSettings().build(); + createAutoProtectionPolicyBindingOperationSettings = + settingsBuilder.createAutoProtectionPolicyBindingOperationSettings().build(); + getAutoProtectionPolicyBindingSettings = + settingsBuilder.getAutoProtectionPolicyBindingSettings().build(); + listAutoProtectionPolicyBindingsSettings = + settingsBuilder.listAutoProtectionPolicyBindingsSettings().build(); + listAppliedAutoProtectionPoliciesSettings = + settingsBuilder.listAppliedAutoProtectionPoliciesSettings().build(); + initiateDeleteAutoProtectionPolicyBindingSettings = + settingsBuilder.initiateDeleteAutoProtectionPolicyBindingSettings().build(); + initiateDeleteAutoProtectionPolicyBindingOperationSettings = + settingsBuilder.initiateDeleteAutoProtectionPolicyBindingOperationSettings().build(); + listBindingMatchingResourcesSettings = + settingsBuilder.listBindingMatchingResourcesSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -1922,6 +2461,61 @@ public static class Builder extends StubSettings.Builder initializeServiceOperationSettings; + private final UnaryCallSettings.Builder + createAutoProtectionPolicySettings; + private final OperationCallSettings.Builder< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesSettings; + private final UnaryCallSettings.Builder + getAutoProtectionPolicySettings; + private final UnaryCallSettings.Builder + updateAutoProtectionPolicySettings; + private final OperationCallSettings.Builder< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteAutoProtectionPolicySettings; + private final OperationCallSettings.Builder< + DeleteAutoProtectionPolicyRequest, Empty, OperationMetadata> + deleteAutoProtectionPolicyOperationSettings; + private final UnaryCallSettings.Builder + createAutoProtectionPolicyBindingSettings; + private final OperationCallSettings.Builder< + CreateAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + createAutoProtectionPolicyBindingOperationSettings; + private final UnaryCallSettings.Builder< + GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding> + getAutoProtectionPolicyBindingSettings; + private final PagedCallSettings.Builder< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsSettings; + private final PagedCallSettings.Builder< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesSettings; + private final UnaryCallSettings.Builder< + InitiateDeleteAutoProtectionPolicyBindingRequest, Operation> + initiateDeleteAutoProtectionPolicyBindingSettings; + private final OperationCallSettings.Builder< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationSettings; + private final PagedCallSettings.Builder< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -2045,6 +2639,28 @@ protected Builder(@Nullable ClientContext clientContext) { FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE_PAGE_STR_FACT); initializeServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); initializeServiceOperationSettings = OperationCallSettings.newBuilder(); + createAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAutoProtectionPolicyOperationSettings = OperationCallSettings.newBuilder(); + listAutoProtectionPoliciesSettings = + PagedCallSettings.newBuilder(LIST_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT); + getAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAutoProtectionPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteAutoProtectionPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAutoProtectionPolicyOperationSettings = OperationCallSettings.newBuilder(); + createAutoProtectionPolicyBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAutoProtectionPolicyBindingOperationSettings = OperationCallSettings.newBuilder(); + getAutoProtectionPolicyBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAutoProtectionPolicyBindingsSettings = + PagedCallSettings.newBuilder(LIST_AUTO_PROTECTION_POLICY_BINDINGS_PAGE_STR_FACT); + listAppliedAutoProtectionPoliciesSettings = + PagedCallSettings.newBuilder(LIST_APPLIED_AUTO_PROTECTION_POLICIES_PAGE_STR_FACT); + initiateDeleteAutoProtectionPolicyBindingSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + initiateDeleteAutoProtectionPolicyBindingOperationSettings = + OperationCallSettings.newBuilder(); + listBindingMatchingResourcesSettings = + PagedCallSettings.newBuilder(LIST_BINDING_MATCHING_RESOURCES_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2090,6 +2706,17 @@ protected Builder(@Nullable ClientContext clientContext) { listDataSourceReferencesSettings, fetchDataSourceReferencesForResourceTypeSettings, initializeServiceSettings, + createAutoProtectionPolicySettings, + listAutoProtectionPoliciesSettings, + getAutoProtectionPolicySettings, + updateAutoProtectionPolicySettings, + deleteAutoProtectionPolicySettings, + createAutoProtectionPolicyBindingSettings, + getAutoProtectionPolicyBindingSettings, + listAutoProtectionPolicyBindingsSettings, + listAppliedAutoProtectionPoliciesSettings, + initiateDeleteAutoProtectionPolicyBindingSettings, + listBindingMatchingResourcesSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2166,6 +2793,33 @@ protected Builder(BackupDRStubSettings settings) { settings.fetchDataSourceReferencesForResourceTypeSettings.toBuilder(); initializeServiceSettings = settings.initializeServiceSettings.toBuilder(); initializeServiceOperationSettings = settings.initializeServiceOperationSettings.toBuilder(); + createAutoProtectionPolicySettings = settings.createAutoProtectionPolicySettings.toBuilder(); + createAutoProtectionPolicyOperationSettings = + settings.createAutoProtectionPolicyOperationSettings.toBuilder(); + listAutoProtectionPoliciesSettings = settings.listAutoProtectionPoliciesSettings.toBuilder(); + getAutoProtectionPolicySettings = settings.getAutoProtectionPolicySettings.toBuilder(); + updateAutoProtectionPolicySettings = settings.updateAutoProtectionPolicySettings.toBuilder(); + updateAutoProtectionPolicyOperationSettings = + settings.updateAutoProtectionPolicyOperationSettings.toBuilder(); + deleteAutoProtectionPolicySettings = settings.deleteAutoProtectionPolicySettings.toBuilder(); + deleteAutoProtectionPolicyOperationSettings = + settings.deleteAutoProtectionPolicyOperationSettings.toBuilder(); + createAutoProtectionPolicyBindingSettings = + settings.createAutoProtectionPolicyBindingSettings.toBuilder(); + createAutoProtectionPolicyBindingOperationSettings = + settings.createAutoProtectionPolicyBindingOperationSettings.toBuilder(); + getAutoProtectionPolicyBindingSettings = + settings.getAutoProtectionPolicyBindingSettings.toBuilder(); + listAutoProtectionPolicyBindingsSettings = + settings.listAutoProtectionPolicyBindingsSettings.toBuilder(); + listAppliedAutoProtectionPoliciesSettings = + settings.listAppliedAutoProtectionPoliciesSettings.toBuilder(); + initiateDeleteAutoProtectionPolicyBindingSettings = + settings.initiateDeleteAutoProtectionPolicyBindingSettings.toBuilder(); + initiateDeleteAutoProtectionPolicyBindingOperationSettings = + settings.initiateDeleteAutoProtectionPolicyBindingOperationSettings.toBuilder(); + listBindingMatchingResourcesSettings = + settings.listBindingMatchingResourcesSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -2211,6 +2865,17 @@ protected Builder(BackupDRStubSettings settings) { listDataSourceReferencesSettings, fetchDataSourceReferencesForResourceTypeSettings, initializeServiceSettings, + createAutoProtectionPolicySettings, + listAutoProtectionPoliciesSettings, + getAutoProtectionPolicySettings, + updateAutoProtectionPolicySettings, + deleteAutoProtectionPolicySettings, + createAutoProtectionPolicyBindingSettings, + getAutoProtectionPolicyBindingSettings, + listAutoProtectionPolicyBindingsSettings, + listAppliedAutoProtectionPoliciesSettings, + initiateDeleteAutoProtectionPolicyBindingSettings, + listBindingMatchingResourcesSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2428,6 +3093,61 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .createAutoProtectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listAutoProtectionPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAutoProtectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAutoProtectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteAutoProtectionPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createAutoProtectionPolicyBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getAutoProtectionPolicyBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAutoProtectionPolicyBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAppliedAutoProtectionPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .initiateDeleteAutoProtectionPolicyBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listBindingMatchingResourcesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -2865,6 +3585,133 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createAutoProtectionPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutoProtectionPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAutoProtectionPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AutoProtectionPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAutoProtectionPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createAutoProtectionPolicyBindingOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + AutoProtectionPolicyBinding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .initiateDeleteAutoProtectionPolicyBindingOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + AutoProtectionPolicyBinding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -3240,6 +4087,130 @@ public UnaryCallSettings.Builder triggerBackupS return initializeServiceOperationSettings; } + /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + createAutoProtectionPolicySettings() { + return createAutoProtectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to createAutoProtectionPolicy. */ + public OperationCallSettings.Builder< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationSettings() { + return createAutoProtectionPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAutoProtectionPolicies. */ + public PagedCallSettings.Builder< + ListAutoProtectionPoliciesRequest, + ListAutoProtectionPoliciesResponse, + ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesSettings() { + return listAutoProtectionPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to getAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + getAutoProtectionPolicySettings() { + return getAutoProtectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + updateAutoProtectionPolicySettings() { + return updateAutoProtectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAutoProtectionPolicy. */ + public OperationCallSettings.Builder< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationSettings() { + return updateAutoProtectionPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */ + public UnaryCallSettings.Builder + deleteAutoProtectionPolicySettings() { + return deleteAutoProtectionPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteAutoProtectionPolicy. */ + public OperationCallSettings.Builder< + DeleteAutoProtectionPolicyRequest, Empty, OperationMetadata> + deleteAutoProtectionPolicyOperationSettings() { + return deleteAutoProtectionPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */ + public UnaryCallSettings.Builder + createAutoProtectionPolicyBindingSettings() { + return createAutoProtectionPolicyBindingSettings; + } + + /** Returns the builder for the settings used for calls to createAutoProtectionPolicyBinding. */ + public OperationCallSettings.Builder< + CreateAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + createAutoProtectionPolicyBindingOperationSettings() { + return createAutoProtectionPolicyBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAutoProtectionPolicyBinding. */ + public UnaryCallSettings.Builder< + GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding> + getAutoProtectionPolicyBindingSettings() { + return getAutoProtectionPolicyBindingSettings; + } + + /** Returns the builder for the settings used for calls to listAutoProtectionPolicyBindings. */ + public PagedCallSettings.Builder< + ListAutoProtectionPolicyBindingsRequest, + ListAutoProtectionPolicyBindingsResponse, + ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsSettings() { + return listAutoProtectionPolicyBindingsSettings; + } + + /** Returns the builder for the settings used for calls to listAppliedAutoProtectionPolicies. */ + public PagedCallSettings.Builder< + ListAppliedAutoProtectionPoliciesRequest, + ListAppliedAutoProtectionPoliciesResponse, + ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesSettings() { + return listAppliedAutoProtectionPoliciesSettings; + } + + /** + * Returns the builder for the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public UnaryCallSettings.Builder + initiateDeleteAutoProtectionPolicyBindingSettings() { + return initiateDeleteAutoProtectionPolicyBindingSettings; + } + + /** + * Returns the builder for the settings used for calls to + * initiateDeleteAutoProtectionPolicyBinding. + */ + public OperationCallSettings.Builder< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationSettings() { + return initiateDeleteAutoProtectionPolicyBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to listBindingMatchingResources. */ + public PagedCallSettings.Builder< + ListBindingMatchingResourcesRequest, + ListBindingMatchingResourcesResponse, + ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesSettings() { + return listBindingMatchingResourcesSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java index 8b7e22fe4c34..116e137aeaf5 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -38,17 +42,22 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; import com.google.cloud.backupdr.v1.Backup; import com.google.cloud.backupdr.v1.BackupPlan; import com.google.cloud.backupdr.v1.BackupPlanAssociation; import com.google.cloud.backupdr.v1.BackupPlanRevision; import com.google.cloud.backupdr.v1.BackupVault; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanRequest; import com.google.cloud.backupdr.v1.CreateBackupVaultRequest; import com.google.cloud.backupdr.v1.CreateManagementServerRequest; import com.google.cloud.backupdr.v1.DataSource; import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest; import com.google.cloud.backupdr.v1.DeleteBackupRequest; @@ -62,6 +71,8 @@ import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest; @@ -72,6 +83,13 @@ import com.google.cloud.backupdr.v1.GetManagementServerRequest; import com.google.cloud.backupdr.v1.InitializeServiceRequest; import com.google.cloud.backupdr.v1.InitializeServiceResponse; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest; @@ -82,6 +100,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse; import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; @@ -93,6 +113,7 @@ import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.cloud.backupdr.v1.RestoreBackupResponse; import com.google.cloud.backupdr.v1.TriggerBackupRequest; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest; import com.google.cloud.backupdr.v1.UpdateBackupRequest; @@ -568,6 +589,156 @@ public class GrpcBackupDRStub extends BackupDRStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createAutoProtectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAutoProtectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesResponse> + listAutoProtectionPoliciesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListAutoProtectionPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAutoProtectionPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAutoProtectionPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAutoProtectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetAutoProtectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAutoProtectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AutoProtectionPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAutoProtectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/UpdateAutoProtectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAutoProtectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAutoProtectionPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/DeleteAutoProtectionPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAutoProtectionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAutoProtectionPolicyBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicyBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateAutoProtectionPolicyBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding> + getAutoProtectionPolicyBindingMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetAutoProtectionPolicyBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAutoProtectionPolicyBindingRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AutoProtectionPolicyBinding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/ListAutoProtectionPolicyBindings") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListAutoProtectionPolicyBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListAutoProtectionPolicyBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/ListAppliedAutoProtectionPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListAppliedAutoProtectionPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListAppliedAutoProtectionPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + initiateDeleteAutoProtectionPolicyBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/InitiateDeleteAutoProtectionPolicyBinding") + .setRequestMarshaller( + ProtoUtils.marshaller( + InitiateDeleteAutoProtectionPolicyBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse> + listBindingMatchingResourcesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListBindingMatchingResources") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBindingMatchingResourcesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBindingMatchingResourcesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -750,6 +921,59 @@ public class GrpcBackupDRStub extends BackupDRStub { private final OperationCallable< InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> initializeServiceOperationCallable; + private final UnaryCallable + createAutoProtectionPolicyCallable; + private final OperationCallable< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationCallable; + private final UnaryCallable + listAutoProtectionPoliciesCallable; + private final UnaryCallable< + ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesPagedCallable; + private final UnaryCallable + getAutoProtectionPolicyCallable; + private final UnaryCallable + updateAutoProtectionPolicyCallable; + private final OperationCallable< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationCallable; + private final UnaryCallable + deleteAutoProtectionPolicyCallable; + private final OperationCallable + deleteAutoProtectionPolicyOperationCallable; + private final UnaryCallable + createAutoProtectionPolicyBindingCallable; + private final OperationCallable< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationCallable; + private final UnaryCallable + getAutoProtectionPolicyBindingCallable; + private final UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsCallable; + private final UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsPagedCallable; + private final UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesCallable; + private final UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesPagedCallable; + private final UnaryCallable + initiateDeleteAutoProtectionPolicyBindingCallable; + private final OperationCallable< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationCallable; + private final UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse> + listBindingMatchingResourcesCallable; + private final UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1241,6 +1465,151 @@ protected GrpcBackupDRStub( return builder.build(); }) .build(); + GrpcCallSettings + createAutoProtectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAutoProtectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + listAutoProtectionPoliciesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAutoProtectionPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getAutoProtectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAutoProtectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateAutoProtectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAutoProtectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "auto_protection_policy.name", + String.valueOf(request.getAutoProtectionPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteAutoProtectionPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAutoProtectionPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createAutoProtectionPolicyBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAutoProtectionPolicyBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getAutoProtectionPolicyBindingTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getAutoProtectionPolicyBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listAutoProtectionPolicyBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listAppliedAutoProtectionPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + initiateDeleteAutoProtectionPolicyBindingTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(initiateDeleteAutoProtectionPolicyBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listBindingMatchingResourcesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listBindingMatchingResourcesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1603,6 +1972,111 @@ protected GrpcBackupDRStub( settings.initializeServiceOperationSettings(), clientContext, operationsStub); + this.createAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + createAutoProtectionPolicyTransportSettings, + settings.createAutoProtectionPolicySettings(), + clientContext); + this.createAutoProtectionPolicyOperationCallable = + callableFactory.createOperationCallable( + createAutoProtectionPolicyTransportSettings, + settings.createAutoProtectionPolicyOperationSettings(), + clientContext, + operationsStub); + this.listAutoProtectionPoliciesCallable = + callableFactory.createUnaryCallable( + listAutoProtectionPoliciesTransportSettings, + settings.listAutoProtectionPoliciesSettings(), + clientContext); + this.listAutoProtectionPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAutoProtectionPoliciesTransportSettings, + settings.listAutoProtectionPoliciesSettings(), + clientContext); + this.getAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + getAutoProtectionPolicyTransportSettings, + settings.getAutoProtectionPolicySettings(), + clientContext); + this.updateAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + updateAutoProtectionPolicyTransportSettings, + settings.updateAutoProtectionPolicySettings(), + clientContext); + this.updateAutoProtectionPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAutoProtectionPolicyTransportSettings, + settings.updateAutoProtectionPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + deleteAutoProtectionPolicyTransportSettings, + settings.deleteAutoProtectionPolicySettings(), + clientContext); + this.deleteAutoProtectionPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAutoProtectionPolicyTransportSettings, + settings.deleteAutoProtectionPolicyOperationSettings(), + clientContext, + operationsStub); + this.createAutoProtectionPolicyBindingCallable = + callableFactory.createUnaryCallable( + createAutoProtectionPolicyBindingTransportSettings, + settings.createAutoProtectionPolicyBindingSettings(), + clientContext); + this.createAutoProtectionPolicyBindingOperationCallable = + callableFactory.createOperationCallable( + createAutoProtectionPolicyBindingTransportSettings, + settings.createAutoProtectionPolicyBindingOperationSettings(), + clientContext, + operationsStub); + this.getAutoProtectionPolicyBindingCallable = + callableFactory.createUnaryCallable( + getAutoProtectionPolicyBindingTransportSettings, + settings.getAutoProtectionPolicyBindingSettings(), + clientContext); + this.listAutoProtectionPolicyBindingsCallable = + callableFactory.createUnaryCallable( + listAutoProtectionPolicyBindingsTransportSettings, + settings.listAutoProtectionPolicyBindingsSettings(), + clientContext); + this.listAutoProtectionPolicyBindingsPagedCallable = + callableFactory.createPagedCallable( + listAutoProtectionPolicyBindingsTransportSettings, + settings.listAutoProtectionPolicyBindingsSettings(), + clientContext); + this.listAppliedAutoProtectionPoliciesCallable = + callableFactory.createUnaryCallable( + listAppliedAutoProtectionPoliciesTransportSettings, + settings.listAppliedAutoProtectionPoliciesSettings(), + clientContext); + this.listAppliedAutoProtectionPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAppliedAutoProtectionPoliciesTransportSettings, + settings.listAppliedAutoProtectionPoliciesSettings(), + clientContext); + this.initiateDeleteAutoProtectionPolicyBindingCallable = + callableFactory.createUnaryCallable( + initiateDeleteAutoProtectionPolicyBindingTransportSettings, + settings.initiateDeleteAutoProtectionPolicyBindingSettings(), + clientContext); + this.initiateDeleteAutoProtectionPolicyBindingOperationCallable = + callableFactory.createOperationCallable( + initiateDeleteAutoProtectionPolicyBindingTransportSettings, + settings.initiateDeleteAutoProtectionPolicyBindingOperationSettings(), + clientContext, + operationsStub); + this.listBindingMatchingResourcesCallable = + callableFactory.createUnaryCallable( + listBindingMatchingResourcesTransportSettings, + settings.listBindingMatchingResourcesSettings(), + clientContext); + this.listBindingMatchingResourcesPagedCallable = + callableFactory.createPagedCallable( + listBindingMatchingResourcesTransportSettings, + settings.listBindingMatchingResourcesSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2015,6 +2489,137 @@ public UnaryCallable initializeServiceCalla return initializeServiceOperationCallable; } + @Override + public UnaryCallable + createAutoProtectionPolicyCallable() { + return createAutoProtectionPolicyCallable; + } + + @Override + public OperationCallable< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationCallable() { + return createAutoProtectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAutoProtectionPoliciesCallable() { + return listAutoProtectionPoliciesCallable; + } + + @Override + public UnaryCallable + listAutoProtectionPoliciesPagedCallable() { + return listAutoProtectionPoliciesPagedCallable; + } + + @Override + public UnaryCallable + getAutoProtectionPolicyCallable() { + return getAutoProtectionPolicyCallable; + } + + @Override + public UnaryCallable + updateAutoProtectionPolicyCallable() { + return updateAutoProtectionPolicyCallable; + } + + @Override + public OperationCallable< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationCallable() { + return updateAutoProtectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + deleteAutoProtectionPolicyCallable() { + return deleteAutoProtectionPolicyCallable; + } + + @Override + public OperationCallable + deleteAutoProtectionPolicyOperationCallable() { + return deleteAutoProtectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + createAutoProtectionPolicyBindingCallable() { + return createAutoProtectionPolicyBindingCallable; + } + + @Override + public OperationCallable< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationCallable() { + return createAutoProtectionPolicyBindingOperationCallable; + } + + @Override + public UnaryCallable + getAutoProtectionPolicyBindingCallable() { + return getAutoProtectionPolicyBindingCallable; + } + + @Override + public UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsCallable() { + return listAutoProtectionPolicyBindingsCallable; + } + + @Override + public UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsPagedCallable() { + return listAutoProtectionPolicyBindingsPagedCallable; + } + + @Override + public UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesCallable() { + return listAppliedAutoProtectionPoliciesCallable; + } + + @Override + public UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesPagedCallable() { + return listAppliedAutoProtectionPoliciesPagedCallable; + } + + @Override + public UnaryCallable + initiateDeleteAutoProtectionPolicyBindingCallable() { + return initiateDeleteAutoProtectionPolicyBindingCallable; + } + + @Override + public OperationCallable< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationCallable() { + return initiateDeleteAutoProtectionPolicyBindingOperationCallable; + } + + @Override + public UnaryCallable + listBindingMatchingResourcesCallable() { + return listBindingMatchingResourcesCallable; + } + + @Override + public UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesPagedCallable() { + return listBindingMatchingResourcesPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java index 2831bfbae450..0cb7c895a70c 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -46,17 +50,22 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; import com.google.cloud.backupdr.v1.Backup; import com.google.cloud.backupdr.v1.BackupPlan; import com.google.cloud.backupdr.v1.BackupPlanAssociation; import com.google.cloud.backupdr.v1.BackupPlanRevision; import com.google.cloud.backupdr.v1.BackupVault; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.CreateBackupPlanRequest; import com.google.cloud.backupdr.v1.CreateBackupVaultRequest; import com.google.cloud.backupdr.v1.CreateManagementServerRequest; import com.google.cloud.backupdr.v1.DataSource; import com.google.cloud.backupdr.v1.DataSourceReference; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.DeleteBackupPlanRequest; import com.google.cloud.backupdr.v1.DeleteBackupRequest; @@ -70,6 +79,8 @@ import com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsRequest; import com.google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRequest; import com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest; @@ -80,6 +91,13 @@ import com.google.cloud.backupdr.v1.GetManagementServerRequest; import com.google.cloud.backupdr.v1.InitializeServiceRequest; import com.google.cloud.backupdr.v1.InitializeServiceResponse; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest; @@ -90,6 +108,8 @@ import com.google.cloud.backupdr.v1.ListBackupVaultsResponse; import com.google.cloud.backupdr.v1.ListBackupsRequest; import com.google.cloud.backupdr.v1.ListBackupsResponse; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse; import com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest; import com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse; import com.google.cloud.backupdr.v1.ListDataSourcesRequest; @@ -101,6 +121,7 @@ import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.cloud.backupdr.v1.RestoreBackupResponse; import com.google.cloud.backupdr.v1.TriggerBackupRequest; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest; import com.google.cloud.backupdr.v1.UpdateBackupPlanRequest; import com.google.cloud.backupdr.v1.UpdateBackupRequest; @@ -140,11 +161,13 @@ public class HttpJsonBackupDRStub extends BackupDRStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(ManagementServer.getDescriptor()) + .add(AutoProtectionPolicy.getDescriptor()) .add(OperationMetadata.getDescriptor()) .add(Empty.getDescriptor()) .add(BackupVault.getDescriptor()) .add(InitializeServiceResponse.getDescriptor()) .add(Backup.getDescriptor()) + .add(AutoProtectionPolicyBinding.getDescriptor()) .add(DataSource.getDescriptor()) .add(BackupPlan.getDescriptor()) .add(RestoreBackupResponse.getDescriptor()) @@ -1429,6 +1452,10 @@ public class HttpJsonBackupDRStub extends BackupDRStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "autoProtectionPolicyBinding", + request.getAutoProtectionPolicyBinding()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1615,37 +1642,504 @@ public class HttpJsonBackupDRStub extends BackupDRStub { .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/serviceConfig}:initialize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InitializeServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createAutoProtectionPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autoProtectionPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "autoProtectionPolicyId", + request.getAutoProtectionPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "autoProtectionPolicy", + request.getAutoProtectionPolicy(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAutoProtectionPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesResponse> + listAutoProtectionPoliciesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListAutoProtectionPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autoProtectionPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAutoProtectionPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAutoProtectionPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetAutoProtectionPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoProtectionPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAutoProtectionPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/UpdateAutoProtectionPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{autoProtectionPolicy.name=projects/*/locations/*/autoProtectionPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "autoProtectionPolicy.name", + request.getAutoProtectionPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "autoProtectionPolicy", + request.getAutoProtectionPolicy(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAutoProtectionPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAutoProtectionPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/DeleteAutoProtectionPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAutoProtectionPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createAutoProtectionPolicyBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/CreateAutoProtectionPolicyBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/autoProtectionPolicies/*}/bindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "autoProtectionPolicyBindingId", + request.getAutoProtectionPolicyBindingId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "autoProtectionPolicyBinding", + request.getAutoProtectionPolicyBinding(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAutoProtectionPolicyBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + GetAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding> + getAutoProtectionPolicyBindingMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/GetAutoProtectionPolicyBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoProtectionPolicyBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/ListAutoProtectionPolicyBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/autoProtectionPolicies/*}/bindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListAutoProtectionPolicyBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/ListAppliedAutoProtectionPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/appliedAutoProtectionPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListAppliedAutoProtectionPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + InitiateDeleteAutoProtectionPolicyBindingRequest, Operation> + initiateDeleteAutoProtectionPolicyBindingMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.backupdr.v1.BackupDR/InitiateDeleteAutoProtectionPolicyBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}:initiateDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InitiateDeleteAutoProtectionPolicyBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse> + listBindingMatchingResourcesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/ListBindingMatchingResources") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{name=projects/*/locations/*/serviceConfig}:initialize", + "/v1/{parent=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}/matchingResources", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBindingMatchingResourcesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) - .setOperationSnapshotFactory( - (InitializeServiceRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor @@ -1955,6 +2449,59 @@ public class HttpJsonBackupDRStub extends BackupDRStub { private final OperationCallable< InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> initializeServiceOperationCallable; + private final UnaryCallable + createAutoProtectionPolicyCallable; + private final OperationCallable< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationCallable; + private final UnaryCallable + listAutoProtectionPoliciesCallable; + private final UnaryCallable< + ListAutoProtectionPoliciesRequest, ListAutoProtectionPoliciesPagedResponse> + listAutoProtectionPoliciesPagedCallable; + private final UnaryCallable + getAutoProtectionPolicyCallable; + private final UnaryCallable + updateAutoProtectionPolicyCallable; + private final OperationCallable< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationCallable; + private final UnaryCallable + deleteAutoProtectionPolicyCallable; + private final OperationCallable + deleteAutoProtectionPolicyOperationCallable; + private final UnaryCallable + createAutoProtectionPolicyBindingCallable; + private final OperationCallable< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationCallable; + private final UnaryCallable + getAutoProtectionPolicyBindingCallable; + private final UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsCallable; + private final UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsPagedCallable; + private final UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesCallable; + private final UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesPagedCallable; + private final UnaryCallable + initiateDeleteAutoProtectionPolicyBindingCallable; + private final OperationCallable< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationCallable; + private final UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesResponse> + listBindingMatchingResourcesCallable; + private final UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -2514,6 +3061,162 @@ protected HttpJsonBackupDRStub( return builder.build(); }) .build(); + HttpJsonCallSettings + createAutoProtectionPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAutoProtectionPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + listAutoProtectionPoliciesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAutoProtectionPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getAutoProtectionPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAutoProtectionPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateAutoProtectionPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAutoProtectionPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "auto_protection_policy.name", + String.valueOf(request.getAutoProtectionPolicy().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteAutoProtectionPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAutoProtectionPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createAutoProtectionPolicyBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAutoProtectionPolicyBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getAutoProtectionPolicyBindingTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getAutoProtectionPolicyBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAutoProtectionPolicyBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listAppliedAutoProtectionPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + initiateDeleteAutoProtectionPolicyBindingTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(initiateDeleteAutoProtectionPolicyBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listBindingMatchingResourcesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listBindingMatchingResourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2882,6 +3585,111 @@ protected HttpJsonBackupDRStub( settings.initializeServiceOperationSettings(), clientContext, httpJsonOperationsStub); + this.createAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + createAutoProtectionPolicyTransportSettings, + settings.createAutoProtectionPolicySettings(), + clientContext); + this.createAutoProtectionPolicyOperationCallable = + callableFactory.createOperationCallable( + createAutoProtectionPolicyTransportSettings, + settings.createAutoProtectionPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listAutoProtectionPoliciesCallable = + callableFactory.createUnaryCallable( + listAutoProtectionPoliciesTransportSettings, + settings.listAutoProtectionPoliciesSettings(), + clientContext); + this.listAutoProtectionPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAutoProtectionPoliciesTransportSettings, + settings.listAutoProtectionPoliciesSettings(), + clientContext); + this.getAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + getAutoProtectionPolicyTransportSettings, + settings.getAutoProtectionPolicySettings(), + clientContext); + this.updateAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + updateAutoProtectionPolicyTransportSettings, + settings.updateAutoProtectionPolicySettings(), + clientContext); + this.updateAutoProtectionPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAutoProtectionPolicyTransportSettings, + settings.updateAutoProtectionPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAutoProtectionPolicyCallable = + callableFactory.createUnaryCallable( + deleteAutoProtectionPolicyTransportSettings, + settings.deleteAutoProtectionPolicySettings(), + clientContext); + this.deleteAutoProtectionPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAutoProtectionPolicyTransportSettings, + settings.deleteAutoProtectionPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createAutoProtectionPolicyBindingCallable = + callableFactory.createUnaryCallable( + createAutoProtectionPolicyBindingTransportSettings, + settings.createAutoProtectionPolicyBindingSettings(), + clientContext); + this.createAutoProtectionPolicyBindingOperationCallable = + callableFactory.createOperationCallable( + createAutoProtectionPolicyBindingTransportSettings, + settings.createAutoProtectionPolicyBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAutoProtectionPolicyBindingCallable = + callableFactory.createUnaryCallable( + getAutoProtectionPolicyBindingTransportSettings, + settings.getAutoProtectionPolicyBindingSettings(), + clientContext); + this.listAutoProtectionPolicyBindingsCallable = + callableFactory.createUnaryCallable( + listAutoProtectionPolicyBindingsTransportSettings, + settings.listAutoProtectionPolicyBindingsSettings(), + clientContext); + this.listAutoProtectionPolicyBindingsPagedCallable = + callableFactory.createPagedCallable( + listAutoProtectionPolicyBindingsTransportSettings, + settings.listAutoProtectionPolicyBindingsSettings(), + clientContext); + this.listAppliedAutoProtectionPoliciesCallable = + callableFactory.createUnaryCallable( + listAppliedAutoProtectionPoliciesTransportSettings, + settings.listAppliedAutoProtectionPoliciesSettings(), + clientContext); + this.listAppliedAutoProtectionPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAppliedAutoProtectionPoliciesTransportSettings, + settings.listAppliedAutoProtectionPoliciesSettings(), + clientContext); + this.initiateDeleteAutoProtectionPolicyBindingCallable = + callableFactory.createUnaryCallable( + initiateDeleteAutoProtectionPolicyBindingTransportSettings, + settings.initiateDeleteAutoProtectionPolicyBindingSettings(), + clientContext); + this.initiateDeleteAutoProtectionPolicyBindingOperationCallable = + callableFactory.createOperationCallable( + initiateDeleteAutoProtectionPolicyBindingTransportSettings, + settings.initiateDeleteAutoProtectionPolicyBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listBindingMatchingResourcesCallable = + callableFactory.createUnaryCallable( + listBindingMatchingResourcesTransportSettings, + settings.listBindingMatchingResourcesSettings(), + clientContext); + this.listBindingMatchingResourcesPagedCallable = + callableFactory.createPagedCallable( + listBindingMatchingResourcesTransportSettings, + settings.listBindingMatchingResourcesSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2947,6 +3755,17 @@ public static List getMethodDescriptors() { methodDescriptors.add(listDataSourceReferencesMethodDescriptor); methodDescriptors.add(fetchDataSourceReferencesForResourceTypeMethodDescriptor); methodDescriptors.add(initializeServiceMethodDescriptor); + methodDescriptors.add(createAutoProtectionPolicyMethodDescriptor); + methodDescriptors.add(listAutoProtectionPoliciesMethodDescriptor); + methodDescriptors.add(getAutoProtectionPolicyMethodDescriptor); + methodDescriptors.add(updateAutoProtectionPolicyMethodDescriptor); + methodDescriptors.add(deleteAutoProtectionPolicyMethodDescriptor); + methodDescriptors.add(createAutoProtectionPolicyBindingMethodDescriptor); + methodDescriptors.add(getAutoProtectionPolicyBindingMethodDescriptor); + methodDescriptors.add(listAutoProtectionPolicyBindingsMethodDescriptor); + methodDescriptors.add(listAppliedAutoProtectionPoliciesMethodDescriptor); + methodDescriptors.add(initiateDeleteAutoProtectionPolicyBindingMethodDescriptor); + methodDescriptors.add(listBindingMatchingResourcesMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -3342,6 +4161,137 @@ public UnaryCallable initializeServiceCalla return initializeServiceOperationCallable; } + @Override + public UnaryCallable + createAutoProtectionPolicyCallable() { + return createAutoProtectionPolicyCallable; + } + + @Override + public OperationCallable< + CreateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + createAutoProtectionPolicyOperationCallable() { + return createAutoProtectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAutoProtectionPoliciesCallable() { + return listAutoProtectionPoliciesCallable; + } + + @Override + public UnaryCallable + listAutoProtectionPoliciesPagedCallable() { + return listAutoProtectionPoliciesPagedCallable; + } + + @Override + public UnaryCallable + getAutoProtectionPolicyCallable() { + return getAutoProtectionPolicyCallable; + } + + @Override + public UnaryCallable + updateAutoProtectionPolicyCallable() { + return updateAutoProtectionPolicyCallable; + } + + @Override + public OperationCallable< + UpdateAutoProtectionPolicyRequest, AutoProtectionPolicy, OperationMetadata> + updateAutoProtectionPolicyOperationCallable() { + return updateAutoProtectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + deleteAutoProtectionPolicyCallable() { + return deleteAutoProtectionPolicyCallable; + } + + @Override + public OperationCallable + deleteAutoProtectionPolicyOperationCallable() { + return deleteAutoProtectionPolicyOperationCallable; + } + + @Override + public UnaryCallable + createAutoProtectionPolicyBindingCallable() { + return createAutoProtectionPolicyBindingCallable; + } + + @Override + public OperationCallable< + CreateAutoProtectionPolicyBindingRequest, AutoProtectionPolicyBinding, OperationMetadata> + createAutoProtectionPolicyBindingOperationCallable() { + return createAutoProtectionPolicyBindingOperationCallable; + } + + @Override + public UnaryCallable + getAutoProtectionPolicyBindingCallable() { + return getAutoProtectionPolicyBindingCallable; + } + + @Override + public UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindingsCallable() { + return listAutoProtectionPolicyBindingsCallable; + } + + @Override + public UnaryCallable< + ListAutoProtectionPolicyBindingsRequest, ListAutoProtectionPolicyBindingsPagedResponse> + listAutoProtectionPolicyBindingsPagedCallable() { + return listAutoProtectionPolicyBindingsPagedCallable; + } + + @Override + public UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPoliciesCallable() { + return listAppliedAutoProtectionPoliciesCallable; + } + + @Override + public UnaryCallable< + ListAppliedAutoProtectionPoliciesRequest, ListAppliedAutoProtectionPoliciesPagedResponse> + listAppliedAutoProtectionPoliciesPagedCallable() { + return listAppliedAutoProtectionPoliciesPagedCallable; + } + + @Override + public UnaryCallable + initiateDeleteAutoProtectionPolicyBindingCallable() { + return initiateDeleteAutoProtectionPolicyBindingCallable; + } + + @Override + public OperationCallable< + InitiateDeleteAutoProtectionPolicyBindingRequest, + AutoProtectionPolicyBinding, + OperationMetadata> + initiateDeleteAutoProtectionPolicyBindingOperationCallable() { + return initiateDeleteAutoProtectionPolicyBindingOperationCallable; + } + + @Override + public UnaryCallable + listBindingMatchingResourcesCallable() { + return listBindingMatchingResourcesCallable; + } + + @Override + public UnaryCallable< + ListBindingMatchingResourcesRequest, ListBindingMatchingResourcesPagedResponse> + listBindingMatchingResourcesPagedCallable() { + return listBindingMatchingResourcesPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDRClient.java index 8844f9cd5865..cbf3cb108779 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDRClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/BackupDRClient.java @@ -7094,6 +7094,8 @@ public final UnaryCallable initializeServic * @param autoProtectionPolicy Required. The AutoProtectionPolicy resource to create. * @param autoProtectionPolicyId Required. The ID to use for the policy. This will become the * final component of the policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -7138,6 +7140,8 @@ public final UnaryCallable initializeServic * @param autoProtectionPolicy Required. The AutoProtectionPolicy resource to create. * @param autoProtectionPolicyId Required. The ID to use for the policy. This will become the * final component of the policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -7170,6 +7174,7 @@ public final UnaryCallable initializeServic * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * AutoProtectionPolicy response = backupDRClient.createAutoProtectionPolicyAsync(request).get(); * } @@ -7201,6 +7206,7 @@ public final UnaryCallable initializeServic * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * backupDRClient.createAutoProtectionPolicyOperationCallable().futureCall(request); @@ -7233,6 +7239,7 @@ public final UnaryCallable initializeServic * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * backupDRClient.createAutoProtectionPolicyCallable().futureCall(request); @@ -7570,7 +7577,7 @@ public final AutoProtectionPolicy getAutoProtectionPolicy( * } * * @param autoProtectionPolicy Required. The policy to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the * AutoProtectionPolicy resource by the update. The fields specified in the update_mask are * relative to the resource, not the full request. A field will be overwritten if it is in the * mask. If the user does not provide a mask then all fields will be overwritten. @@ -7604,6 +7611,7 @@ public final AutoProtectionPolicy getAutoProtectionPolicy( * UpdateAutoProtectionPolicyRequest.newBuilder() * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * AutoProtectionPolicy response = backupDRClient.updateAutoProtectionPolicyAsync(request).get(); * } @@ -7634,6 +7642,7 @@ public final AutoProtectionPolicy getAutoProtectionPolicy( * UpdateAutoProtectionPolicyRequest.newBuilder() * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * backupDRClient.updateAutoProtectionPolicyOperationCallable().futureCall(request); @@ -7665,6 +7674,7 @@ public final AutoProtectionPolicy getAutoProtectionPolicy( * UpdateAutoProtectionPolicyRequest.newBuilder() * .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * backupDRClient.updateAutoProtectionPolicyCallable().futureCall(request); @@ -7760,6 +7770,7 @@ public final OperationFuture deleteAutoProtectionPolic * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") * .toString()) * .setEtag("etag3123477") + * .setRequestId("requestId693933066") * .build(); * backupDRClient.deleteAutoProtectionPolicyAsync(request).get(); * } @@ -7792,6 +7803,7 @@ public final OperationFuture deleteAutoProtectionPolic * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") * .toString()) * .setEtag("etag3123477") + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * backupDRClient.deleteAutoProtectionPolicyOperationCallable().futureCall(request); @@ -7824,6 +7836,7 @@ public final OperationFuture deleteAutoProtectionPolic * AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") * .toString()) * .setEtag("etag3123477") + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * backupDRClient.deleteAutoProtectionPolicyCallable().futureCall(request); @@ -7869,6 +7882,8 @@ public final OperationFuture deleteAutoProtectionPolic * create. * @param autoProtectionPolicyBindingId Required. The ID to use for the binding. This will become * the final component of the binding's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -7918,6 +7933,8 @@ public final OperationFuture deleteAutoProtectionPolic * create. * @param autoProtectionPolicyBindingId Required. The ID to use for the binding. This will become * the final component of the binding's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, or hyphens, and cannot end with a hyphen. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -7954,6 +7971,7 @@ public final OperationFuture deleteAutoProtectionPolic * .toString()) * .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") * .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * AutoProtectionPolicyBinding response = * backupDRClient.createAutoProtectionPolicyBindingAsync(request).get(); @@ -7988,6 +8006,7 @@ public final OperationFuture deleteAutoProtectionPolic * .toString()) * .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") * .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * backupDRClient.createAutoProtectionPolicyBindingOperationCallable().futureCall(request); @@ -8022,6 +8041,7 @@ public final OperationFuture deleteAutoProtectionPolic * .toString()) * .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") * .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * backupDRClient.createAutoProtectionPolicyBindingCallable().futureCall(request); @@ -8622,6 +8642,8 @@ public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProte * AutoProtectionPolicyBindingName.of( * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") * .toString()) + * .setEtag("etag3123477") + * .setRequestId("requestId693933066") * .build(); * AutoProtectionPolicyBinding response = * backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(request).get(); @@ -8656,6 +8678,8 @@ public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProte * AutoProtectionPolicyBindingName.of( * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") * .toString()) + * .setEtag("etag3123477") + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * backupDRClient @@ -8693,6 +8717,8 @@ public final ListAppliedAutoProtectionPoliciesPagedResponse listAppliedAutoProte * AutoProtectionPolicyBindingName.of( * "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") * .toString()) + * .setEtag("etag3123477") + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * backupDRClient.initiateDeleteAutoProtectionPolicyBindingCallable().futureCall(request); diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/BackupDRStubSettings.java index 2b91070687d6..94ae7d243dbf 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/BackupDRStubSettings.java @@ -3117,53 +3117,53 @@ private static Builder initDefaults(Builder builder) { builder .createAutoProtectionPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listAutoProtectionPoliciesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getAutoProtectionPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateAutoProtectionPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteAutoProtectionPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createAutoProtectionPolicyBindingSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getAutoProtectionPolicyBindingSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listAutoProtectionPolicyBindingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listAppliedAutoProtectionPoliciesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .initiateDeleteAutoProtectionPolicyBindingSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .getBindingMatchingResourceSettings() @@ -3172,8 +3172,8 @@ private static Builder initDefaults(Builder builder) { builder .listBindingMatchingResourcesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listLocationsSettings() @@ -3618,8 +3618,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(AutoProtectionPolicy.class)) @@ -3643,8 +3643,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(AutoProtectionPolicy.class)) @@ -3668,8 +3668,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) @@ -3693,8 +3693,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -3719,8 +3719,8 @@ private static Builder initDefaults(Builder builder) { UnaryCallSettings . newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/HttpJsonBackupDRStub.java index 536b8c9eb52d..37d5fbadc67b 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/HttpJsonBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1beta/stub/HttpJsonBackupDRStub.java @@ -1709,6 +1709,7 @@ public class HttpJsonBackupDRStub extends BackupDRStub { fields, "autoProtectionPolicyId", request.getAutoProtectionPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1829,6 +1830,7 @@ public class HttpJsonBackupDRStub extends BackupDRStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1874,6 +1876,7 @@ public class HttpJsonBackupDRStub extends BackupDRStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1917,6 +1920,7 @@ public class HttpJsonBackupDRStub extends BackupDRStub { fields, "autoProtectionPolicyBindingId", request.getAutoProtectionPolicyBindingId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index 71e41af00302..7cdf23301b24 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -692,6 +692,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.AttachedDisk", "queryAllDeclaredConstructors": true, @@ -764,6 +791,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionDetails$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionPolicy$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.Backup", "queryAllDeclaredConstructors": true, @@ -1115,6 +1223,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.BackupPlanDetail", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BackupPlanDetail$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.BackupPlanRevision", "queryAllDeclaredConstructors": true, @@ -1259,6 +1385,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.BindingEvaluationSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BindingEvaluationSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BindingMatchingResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BindingMatchingResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BindingSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BindingSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationProperties", "queryAllDeclaredConstructors": true, @@ -1457,6 +1637,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest", "queryAllDeclaredConstructors": true, @@ -1529,6 +1745,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.Criteria", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.Criteria$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.CustomerEncryptionKey", "queryAllDeclaredConstructors": true, @@ -1664,6 +1898,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest", "queryAllDeclaredConstructors": true, @@ -2069,6 +2321,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest", "queryAllDeclaredConstructors": true, @@ -2276,6 +2564,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.InstanceParams", "queryAllDeclaredConstructors": true, @@ -2303,6 +2609,132 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.KeyValuePair", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.KeyValuePair$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest", "queryAllDeclaredConstructors": true, @@ -2483,6 +2915,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest", "queryAllDeclaredConstructors": true, @@ -2681,6 +3149,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.MatchingCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.MatchingCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.Metadata", "queryAllDeclaredConstructors": true, @@ -2834,6 +3320,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.PolicyEvaluationSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.PolicyEvaluationSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.RegionDiskTargetEnvironment", "queryAllDeclaredConstructors": true, @@ -3149,6 +3653,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java index fdf7d5b991ec..bc87269ddb5a 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -2957,6 +2961,10 @@ public void createBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3027,6 +3035,10 @@ public void createBackupPlanAssociationTest2() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3097,6 +3109,10 @@ public void updateBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3120,6 +3136,10 @@ public void updateBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3166,6 +3186,10 @@ public void updateBackupPlanAssociationExceptionTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBackupPlanAssociationAsync(backupPlanAssociation, updateMask).get(); @@ -3190,6 +3214,10 @@ public void getBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -3247,6 +3275,10 @@ public void getBackupPlanAssociationTest2() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -3606,6 +3638,10 @@ public void triggerBackupTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3670,6 +3706,10 @@ public void triggerBackupTest2() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4100,6 +4140,1260 @@ public void initializeServiceExceptionTest() throws Exception { } } + @Test + public void createAutoProtectionPolicyTest() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + + AutoProtectionPolicy actualResponse = + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAutoProtectionPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAutoProtectionPolicyTest2() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + + AutoProtectionPolicy actualResponse = + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAutoProtectionPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listAutoProtectionPoliciesTest() throws Exception { + AutoProtectionPolicy responsesElement = AutoProtectionPolicy.newBuilder().build(); + ListAutoProtectionPoliciesResponse expectedResponse = + ListAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAutoProtectionPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAutoProtectionPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoProtectionPoliciesTest2() throws Exception { + AutoProtectionPolicy responsesElement = AutoProtectionPolicy.newBuilder().build(); + ListAutoProtectionPoliciesResponse expectedResponse = + ListAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAutoProtectionPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAutoProtectionPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoProtectionPolicyTest() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + + AutoProtectionPolicy actualResponse = client.getAutoProtectionPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAutoProtectionPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + client.getAutoProtectionPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoProtectionPolicyTest2() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6984/locations/location-6984/autoProtectionPolicies/autoProtectionPolicie-6984"; + + AutoProtectionPolicy actualResponse = client.getAutoProtectionPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAutoProtectionPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6984/locations/location-6984/autoProtectionPolicies/autoProtectionPolicie-6984"; + client.getAutoProtectionPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAutoProtectionPolicyTest() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutoProtectionPolicy autoProtectionPolicy = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AutoProtectionPolicy actualResponse = + client.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAutoProtectionPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicy autoProtectionPolicy = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAutoProtectionPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + + client.deleteAutoProtectionPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAutoProtectionPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + client.deleteAutoProtectionPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAutoProtectionPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6984/locations/location-6984/autoProtectionPolicies/autoProtectionPolicie-6984"; + + client.deleteAutoProtectionPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAutoProtectionPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6984/locations/location-6984/autoProtectionPolicies/autoProtectionPolicie-6984"; + client.deleteAutoProtectionPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAutoProtectionPolicyBindingTest() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + + AutoProtectionPolicyBinding actualResponse = + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAutoProtectionPolicyBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAutoProtectionPolicyBindingTest2() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-3065/locations/location-3065/autoProtectionPolicies/autoProtectionPolicie-3065"; + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + + AutoProtectionPolicyBinding actualResponse = + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAutoProtectionPolicyBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-3065/locations/location-3065/autoProtectionPolicies/autoProtectionPolicie-3065"; + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getAutoProtectionPolicyBindingTest() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + + AutoProtectionPolicyBinding actualResponse = client.getAutoProtectionPolicyBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAutoProtectionPolicyBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + client.getAutoProtectionPolicyBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoProtectionPolicyBindingTest2() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9760/locations/location-9760/autoProtectionPolicies/autoProtectionPolicie-9760/bindings/binding-9760"; + + AutoProtectionPolicyBinding actualResponse = client.getAutoProtectionPolicyBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAutoProtectionPolicyBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9760/locations/location-9760/autoProtectionPolicies/autoProtectionPolicie-9760/bindings/binding-9760"; + client.getAutoProtectionPolicyBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoProtectionPolicyBindingsTest() throws Exception { + AutoProtectionPolicyBinding responsesElement = AutoProtectionPolicyBinding.newBuilder().build(); + ListAutoProtectionPolicyBindingsResponse expectedResponse = + ListAutoProtectionPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + + ListAutoProtectionPolicyBindingsPagedResponse pagedListResponse = + client.listAutoProtectionPolicyBindings(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutoProtectionPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAutoProtectionPolicyBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + client.listAutoProtectionPolicyBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoProtectionPolicyBindingsTest2() throws Exception { + AutoProtectionPolicyBinding responsesElement = AutoProtectionPolicyBinding.newBuilder().build(); + ListAutoProtectionPolicyBindingsResponse expectedResponse = + ListAutoProtectionPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-3065/locations/location-3065/autoProtectionPolicies/autoProtectionPolicie-3065"; + + ListAutoProtectionPolicyBindingsPagedResponse pagedListResponse = + client.listAutoProtectionPolicyBindings(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutoProtectionPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAutoProtectionPolicyBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-3065/locations/location-3065/autoProtectionPolicies/autoProtectionPolicie-3065"; + client.listAutoProtectionPolicyBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppliedAutoProtectionPoliciesTest() throws Exception { + AppliedAutoProtectionPolicy responsesElement = AppliedAutoProtectionPolicy.newBuilder().build(); + ListAppliedAutoProtectionPoliciesResponse expectedResponse = + ListAppliedAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAppliedAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAppliedAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAppliedAutoProtectionPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAppliedAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAppliedAutoProtectionPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAppliedAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppliedAutoProtectionPoliciesTest2() throws Exception { + AppliedAutoProtectionPolicy responsesElement = AppliedAutoProtectionPolicy.newBuilder().build(); + ListAppliedAutoProtectionPoliciesResponse expectedResponse = + ListAppliedAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAppliedAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAppliedAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAppliedAutoProtectionPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAppliedAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAppliedAutoProtectionPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAppliedAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingTest() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("initiateDeleteAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + + AutoProtectionPolicyBinding actualResponse = + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingTest2() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("initiateDeleteAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-9760/locations/location-9760/autoProtectionPolicies/autoProtectionPolicie-9760/bindings/binding-9760"; + + AutoProtectionPolicyBinding actualResponse = + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9760/locations/location-9760/autoProtectionPolicies/autoProtectionPolicie-9760/bindings/binding-9760"; + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listBindingMatchingResourcesTest() throws Exception { + BindingMatchingResource responsesElement = BindingMatchingResource.newBuilder().build(); + ListBindingMatchingResourcesResponse expectedResponse = + ListBindingMatchingResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllMatchingResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AutoProtectionPolicyBindingName parent = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + + ListBindingMatchingResourcesPagedResponse pagedListResponse = + client.listBindingMatchingResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMatchingResourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBindingMatchingResourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AutoProtectionPolicyBindingName parent = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + client.listBindingMatchingResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBindingMatchingResourcesTest2() throws Exception { + BindingMatchingResource responsesElement = BindingMatchingResource.newBuilder().build(); + ListBindingMatchingResourcesResponse expectedResponse = + ListBindingMatchingResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllMatchingResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-5871/locations/location-5871/autoProtectionPolicies/autoProtectionPolicie-5871/bindings/binding-5871"; + + ListBindingMatchingResourcesPagedResponse pagedListResponse = + client.listBindingMatchingResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMatchingResourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBindingMatchingResourcesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-5871/locations/location-5871/autoProtectionPolicies/autoProtectionPolicie-5871/bindings/binding-5871"; + client.listBindingMatchingResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java index 9c8a17ca0c52..a5b66637acbd 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java @@ -20,11 +20,15 @@ import static com.google.cloud.backupdr.v1.BackupDRClient.FetchBackupsForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchDataSourceReferencesForResourceTypePagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.FetchUsableBackupVaultsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAppliedAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPoliciesPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListAutoProtectionPolicyBindingsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanAssociationsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlanRevisionsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupPlansPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupVaultsPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListBackupsPagedResponse; +import static com.google.cloud.backupdr.v1.BackupDRClient.ListBindingMatchingResourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourceReferencesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListDataSourcesPagedResponse; import static com.google.cloud.backupdr.v1.BackupDRClient.ListLocationsPagedResponse; @@ -2617,6 +2621,10 @@ public void createBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2687,6 +2695,10 @@ public void createBackupPlanAssociationTest2() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2757,6 +2769,10 @@ public void updateBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2819,6 +2835,10 @@ public void getBackupPlanAssociationTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); mockBackupDR.addResponse(expectedResponse); @@ -2871,6 +2891,10 @@ public void getBackupPlanAssociationTest2() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); mockBackupDR.addResponse(expectedResponse); @@ -3199,6 +3223,10 @@ public void triggerBackupTest() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3261,6 +3289,10 @@ public void triggerBackupTest2() throws Exception { .setDataSource("dataSource1272470629") .setBackupPlanRevisionId("backupPlanRevisionId-222788415") .setBackupPlanRevisionName("backupPlanRevisionName648847537") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3659,6 +3691,1155 @@ public void initializeServiceExceptionTest() throws Exception { } } + @Test + public void createAutoProtectionPolicyTest() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + + AutoProtectionPolicy actualResponse = + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoProtectionPolicyRequest actualRequest = + ((CreateAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(autoProtectionPolicy, actualRequest.getAutoProtectionPolicy()); + Assert.assertEquals(autoProtectionPolicyId, actualRequest.getAutoProtectionPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoProtectionPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAutoProtectionPolicyTest2() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + String parent = "parent-995424086"; + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + + AutoProtectionPolicy actualResponse = + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoProtectionPolicyRequest actualRequest = + ((CreateAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(autoProtectionPolicy, actualRequest.getAutoProtectionPolicy()); + Assert.assertEquals(autoProtectionPolicyId, actualRequest.getAutoProtectionPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoProtectionPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + client + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listAutoProtectionPoliciesTest() throws Exception { + AutoProtectionPolicy responsesElement = AutoProtectionPolicy.newBuilder().build(); + ListAutoProtectionPoliciesResponse expectedResponse = + ListAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAutoProtectionPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoProtectionPoliciesRequest actualRequest = + ((ListAutoProtectionPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoProtectionPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoProtectionPoliciesTest2() throws Exception { + AutoProtectionPolicy responsesElement = AutoProtectionPolicy.newBuilder().build(); + ListAutoProtectionPoliciesResponse expectedResponse = + ListAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAutoProtectionPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoProtectionPoliciesRequest actualRequest = + ((ListAutoProtectionPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoProtectionPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoProtectionPolicyTest() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockBackupDR.addResponse(expectedResponse); + + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + + AutoProtectionPolicy actualResponse = client.getAutoProtectionPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAutoProtectionPolicyRequest actualRequest = + ((GetAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAutoProtectionPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + client.getAutoProtectionPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoProtectionPolicyTest2() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String name = "name3373707"; + + AutoProtectionPolicy actualResponse = client.getAutoProtectionPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAutoProtectionPolicyRequest actualRequest = + ((GetAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAutoProtectionPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String name = "name3373707"; + client.getAutoProtectionPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAutoProtectionPolicyTest() throws Exception { + AutoProtectionPolicy expectedResponse = + AutoProtectionPolicy.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setDescription("description-1724546052") + .addAllBackupPlanDetails(new ArrayList()) + .setCriteria(Criteria.newBuilder().build()) + .setEtag("etag3123477") + .setBindingSummary(BindingSummary.newBuilder().build()) + .setPolicyEvaluationSummary(PolicyEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AutoProtectionPolicy actualResponse = + client.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAutoProtectionPolicyRequest actualRequest = + ((UpdateAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(autoProtectionPolicy, actualRequest.getAutoProtectionPolicy()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAutoProtectionPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAutoProtectionPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + + client.deleteAutoProtectionPolicyAsync(name).get(); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAutoProtectionPolicyRequest actualRequest = + ((DeleteAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAutoProtectionPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + client.deleteAutoProtectionPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAutoProtectionPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAutoProtectionPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAutoProtectionPolicyAsync(name).get(); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAutoProtectionPolicyRequest actualRequest = + ((DeleteAutoProtectionPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAutoProtectionPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String name = "name3373707"; + client.deleteAutoProtectionPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAutoProtectionPolicyBindingTest() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + + AutoProtectionPolicyBinding actualResponse = + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoProtectionPolicyBindingRequest actualRequest = + ((CreateAutoProtectionPolicyBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + autoProtectionPolicyBinding, actualRequest.getAutoProtectionPolicyBinding()); + Assert.assertEquals( + autoProtectionPolicyBindingId, actualRequest.getAutoProtectionPolicyBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoProtectionPolicyBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAutoProtectionPolicyBindingTest2() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + String parent = "parent-995424086"; + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + + AutoProtectionPolicyBinding actualResponse = + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoProtectionPolicyBindingRequest actualRequest = + ((CreateAutoProtectionPolicyBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + autoProtectionPolicyBinding, actualRequest.getAutoProtectionPolicyBinding()); + Assert.assertEquals( + autoProtectionPolicyBindingId, actualRequest.getAutoProtectionPolicyBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoProtectionPolicyBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + client + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getAutoProtectionPolicyBindingTest() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockBackupDR.addResponse(expectedResponse); + + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + + AutoProtectionPolicyBinding actualResponse = client.getAutoProtectionPolicyBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAutoProtectionPolicyBindingRequest actualRequest = + ((GetAutoProtectionPolicyBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAutoProtectionPolicyBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + client.getAutoProtectionPolicyBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoProtectionPolicyBindingTest2() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockBackupDR.addResponse(expectedResponse); + + String name = "name3373707"; + + AutoProtectionPolicyBinding actualResponse = client.getAutoProtectionPolicyBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAutoProtectionPolicyBindingRequest actualRequest = + ((GetAutoProtectionPolicyBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAutoProtectionPolicyBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String name = "name3373707"; + client.getAutoProtectionPolicyBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoProtectionPolicyBindingsTest() throws Exception { + AutoProtectionPolicyBinding responsesElement = AutoProtectionPolicyBinding.newBuilder().build(); + ListAutoProtectionPolicyBindingsResponse expectedResponse = + ListAutoProtectionPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + + ListAutoProtectionPolicyBindingsPagedResponse pagedListResponse = + client.listAutoProtectionPolicyBindings(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutoProtectionPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoProtectionPolicyBindingsRequest actualRequest = + ((ListAutoProtectionPolicyBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoProtectionPolicyBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + client.listAutoProtectionPolicyBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoProtectionPolicyBindingsTest2() throws Exception { + AutoProtectionPolicyBinding responsesElement = AutoProtectionPolicyBinding.newBuilder().build(); + ListAutoProtectionPolicyBindingsResponse expectedResponse = + ListAutoProtectionPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAutoProtectionPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAutoProtectionPolicyBindingsPagedResponse pagedListResponse = + client.listAutoProtectionPolicyBindings(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAutoProtectionPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoProtectionPolicyBindingsRequest actualRequest = + ((ListAutoProtectionPolicyBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoProtectionPolicyBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAutoProtectionPolicyBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppliedAutoProtectionPoliciesTest() throws Exception { + AppliedAutoProtectionPolicy responsesElement = AppliedAutoProtectionPolicy.newBuilder().build(); + ListAppliedAutoProtectionPoliciesResponse expectedResponse = + ListAppliedAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAppliedAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAppliedAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAppliedAutoProtectionPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAppliedAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAppliedAutoProtectionPoliciesRequest actualRequest = + ((ListAppliedAutoProtectionPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAppliedAutoProtectionPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAppliedAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAppliedAutoProtectionPoliciesTest2() throws Exception { + AppliedAutoProtectionPolicy responsesElement = AppliedAutoProtectionPolicy.newBuilder().build(); + ListAppliedAutoProtectionPoliciesResponse expectedResponse = + ListAppliedAutoProtectionPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAppliedAutoProtectionPolicies(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAppliedAutoProtectionPoliciesPagedResponse pagedListResponse = + client.listAppliedAutoProtectionPolicies(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getAppliedAutoProtectionPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAppliedAutoProtectionPoliciesRequest actualRequest = + ((ListAppliedAutoProtectionPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAppliedAutoProtectionPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAppliedAutoProtectionPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingTest() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("initiateDeleteAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + + AutoProtectionPolicyBinding actualResponse = + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InitiateDeleteAutoProtectionPolicyBindingRequest actualRequest = + ((InitiateDeleteAutoProtectionPolicyBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingTest2() throws Exception { + AutoProtectionPolicyBinding expectedResponse = + AutoProtectionPolicyBinding.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setDescription("description-1724546052") + .setScope( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setBindingEvaluationSummary(BindingEvaluationSummary.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("initiateDeleteAutoProtectionPolicyBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + String name = "name3373707"; + + AutoProtectionPolicyBinding actualResponse = + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InitiateDeleteAutoProtectionPolicyBindingRequest actualRequest = + ((InitiateDeleteAutoProtectionPolicyBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void initiateDeleteAutoProtectionPolicyBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String name = "name3373707"; + client.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listBindingMatchingResourcesTest() throws Exception { + BindingMatchingResource responsesElement = BindingMatchingResource.newBuilder().build(); + ListBindingMatchingResourcesResponse expectedResponse = + ListBindingMatchingResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllMatchingResources(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + AutoProtectionPolicyBindingName parent = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + + ListBindingMatchingResourcesPagedResponse pagedListResponse = + client.listBindingMatchingResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMatchingResourcesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBindingMatchingResourcesRequest actualRequest = + ((ListBindingMatchingResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBindingMatchingResourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + AutoProtectionPolicyBindingName parent = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + client.listBindingMatchingResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBindingMatchingResourcesTest2() throws Exception { + BindingMatchingResource responsesElement = BindingMatchingResource.newBuilder().build(); + ListBindingMatchingResourcesResponse expectedResponse = + ListBindingMatchingResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllMatchingResources(Arrays.asList(responsesElement)) + .build(); + mockBackupDR.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBindingMatchingResourcesPagedResponse pagedListResponse = + client.listBindingMatchingResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMatchingResourcesList().get(0), resources.get(0)); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBindingMatchingResourcesRequest actualRequest = + ((ListBindingMatchingResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBindingMatchingResourcesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBindingMatchingResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java index 72b02fa17444..fe0f3280587a 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java @@ -859,4 +859,254 @@ public void initializeService( Exception.class.getName()))); } } + + @Override + public void createAutoProtectionPolicy( + CreateAutoProtectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAutoProtectionPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAutoProtectionPolicies( + ListAutoProtectionPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAutoProtectionPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAutoProtectionPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAutoProtectionPolicies, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListAutoProtectionPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAutoProtectionPolicy( + GetAutoProtectionPolicyRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AutoProtectionPolicy) { + requests.add(request); + responseObserver.onNext(((AutoProtectionPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAutoProtectionPolicy, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AutoProtectionPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAutoProtectionPolicy( + UpdateAutoProtectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAutoProtectionPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAutoProtectionPolicy( + DeleteAutoProtectionPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAutoProtectionPolicy, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAutoProtectionPolicyBinding( + CreateAutoProtectionPolicyBindingRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAutoProtectionPolicyBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAutoProtectionPolicyBinding( + GetAutoProtectionPolicyBindingRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AutoProtectionPolicyBinding) { + requests.add(request); + responseObserver.onNext(((AutoProtectionPolicyBinding) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAutoProtectionPolicyBinding," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AutoProtectionPolicyBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAutoProtectionPolicyBindings( + ListAutoProtectionPolicyBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAutoProtectionPolicyBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListAutoProtectionPolicyBindingsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAutoProtectionPolicyBindings," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAutoProtectionPolicyBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAppliedAutoProtectionPolicies( + ListAppliedAutoProtectionPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAppliedAutoProtectionPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAppliedAutoProtectionPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAppliedAutoProtectionPolicies," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAppliedAutoProtectionPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void initiateDeleteAutoProtectionPolicyBinding( + InitiateDeleteAutoProtectionPolicyBindingRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " InitiateDeleteAutoProtectionPolicyBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBindingMatchingResources( + ListBindingMatchingResourcesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBindingMatchingResourcesResponse) { + requests.add(request); + responseObserver.onNext(((ListBindingMatchingResourcesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBindingMatchingResources, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBindingMatchingResourcesResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java b/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java index e739d71d3a18..d65de72fe8a4 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java @@ -1759,6 +1759,567 @@ private BackupDRGrpc() {} return getInitializeServiceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getCreateAutoProtectionPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAutoProtectionPolicy", + requestType = com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getCreateAutoProtectionPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getCreateAutoProtectionPolicyMethod; + if ((getCreateAutoProtectionPolicyMethod = BackupDRGrpc.getCreateAutoProtectionPolicyMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getCreateAutoProtectionPolicyMethod = BackupDRGrpc.getCreateAutoProtectionPolicyMethod) + == null) { + BackupDRGrpc.getCreateAutoProtectionPolicyMethod = + getCreateAutoProtectionPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAutoProtectionPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("CreateAutoProtectionPolicy")) + .build(); + } + } + } + return getCreateAutoProtectionPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse> + getListAutoProtectionPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAutoProtectionPolicies", + requestType = com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.class, + responseType = com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse> + getListAutoProtectionPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse> + getListAutoProtectionPoliciesMethod; + if ((getListAutoProtectionPoliciesMethod = BackupDRGrpc.getListAutoProtectionPoliciesMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getListAutoProtectionPoliciesMethod = BackupDRGrpc.getListAutoProtectionPoliciesMethod) + == null) { + BackupDRGrpc.getListAutoProtectionPoliciesMethod = + getListAutoProtectionPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAutoProtectionPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("ListAutoProtectionPolicies")) + .build(); + } + } + } + return getListAutoProtectionPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicy> + getGetAutoProtectionPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAutoProtectionPolicy", + requestType = com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.class, + responseType = com.google.cloud.backupdr.v1.AutoProtectionPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicy> + getGetAutoProtectionPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicy> + getGetAutoProtectionPolicyMethod; + if ((getGetAutoProtectionPolicyMethod = BackupDRGrpc.getGetAutoProtectionPolicyMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getGetAutoProtectionPolicyMethod = BackupDRGrpc.getGetAutoProtectionPolicyMethod) + == null) { + BackupDRGrpc.getGetAutoProtectionPolicyMethod = + getGetAutoProtectionPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAutoProtectionPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.AutoProtectionPolicy + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("GetAutoProtectionPolicy")) + .build(); + } + } + } + return getGetAutoProtectionPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getUpdateAutoProtectionPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAutoProtectionPolicy", + requestType = com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getUpdateAutoProtectionPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getUpdateAutoProtectionPolicyMethod; + if ((getUpdateAutoProtectionPolicyMethod = BackupDRGrpc.getUpdateAutoProtectionPolicyMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getUpdateAutoProtectionPolicyMethod = BackupDRGrpc.getUpdateAutoProtectionPolicyMethod) + == null) { + BackupDRGrpc.getUpdateAutoProtectionPolicyMethod = + getUpdateAutoProtectionPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAutoProtectionPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("UpdateAutoProtectionPolicy")) + .build(); + } + } + } + return getUpdateAutoProtectionPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getDeleteAutoProtectionPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAutoProtectionPolicy", + requestType = com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getDeleteAutoProtectionPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest, + com.google.longrunning.Operation> + getDeleteAutoProtectionPolicyMethod; + if ((getDeleteAutoProtectionPolicyMethod = BackupDRGrpc.getDeleteAutoProtectionPolicyMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getDeleteAutoProtectionPolicyMethod = BackupDRGrpc.getDeleteAutoProtectionPolicyMethod) + == null) { + BackupDRGrpc.getDeleteAutoProtectionPolicyMethod = + getDeleteAutoProtectionPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAutoProtectionPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("DeleteAutoProtectionPolicy")) + .build(); + } + } + } + return getDeleteAutoProtectionPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation> + getCreateAutoProtectionPolicyBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAutoProtectionPolicyBinding", + requestType = com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation> + getCreateAutoProtectionPolicyBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation> + getCreateAutoProtectionPolicyBindingMethod; + if ((getCreateAutoProtectionPolicyBindingMethod = + BackupDRGrpc.getCreateAutoProtectionPolicyBindingMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getCreateAutoProtectionPolicyBindingMethod = + BackupDRGrpc.getCreateAutoProtectionPolicyBindingMethod) + == null) { + BackupDRGrpc.getCreateAutoProtectionPolicyBindingMethod = + getCreateAutoProtectionPolicyBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAutoProtectionPolicyBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("CreateAutoProtectionPolicyBinding")) + .build(); + } + } + } + return getCreateAutoProtectionPolicyBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding> + getGetAutoProtectionPolicyBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAutoProtectionPolicyBinding", + requestType = com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest.class, + responseType = com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding> + getGetAutoProtectionPolicyBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding> + getGetAutoProtectionPolicyBindingMethod; + if ((getGetAutoProtectionPolicyBindingMethod = + BackupDRGrpc.getGetAutoProtectionPolicyBindingMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getGetAutoProtectionPolicyBindingMethod = + BackupDRGrpc.getGetAutoProtectionPolicyBindingMethod) + == null) { + BackupDRGrpc.getGetAutoProtectionPolicyBindingMethod = + getGetAutoProtectionPolicyBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAutoProtectionPolicyBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("GetAutoProtectionPolicyBinding")) + .build(); + } + } + } + return getGetAutoProtectionPolicyBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse> + getListAutoProtectionPolicyBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAutoProtectionPolicyBindings", + requestType = com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest.class, + responseType = com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse> + getListAutoProtectionPolicyBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse> + getListAutoProtectionPolicyBindingsMethod; + if ((getListAutoProtectionPolicyBindingsMethod = + BackupDRGrpc.getListAutoProtectionPolicyBindingsMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getListAutoProtectionPolicyBindingsMethod = + BackupDRGrpc.getListAutoProtectionPolicyBindingsMethod) + == null) { + BackupDRGrpc.getListAutoProtectionPolicyBindingsMethod = + getListAutoProtectionPolicyBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAutoProtectionPolicyBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("ListAutoProtectionPolicyBindings")) + .build(); + } + } + } + return getListAutoProtectionPolicyBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse> + getListAppliedAutoProtectionPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAppliedAutoProtectionPolicies", + requestType = com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest.class, + responseType = com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse> + getListAppliedAutoProtectionPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse> + getListAppliedAutoProtectionPoliciesMethod; + if ((getListAppliedAutoProtectionPoliciesMethod = + BackupDRGrpc.getListAppliedAutoProtectionPoliciesMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getListAppliedAutoProtectionPoliciesMethod = + BackupDRGrpc.getListAppliedAutoProtectionPoliciesMethod) + == null) { + BackupDRGrpc.getListAppliedAutoProtectionPoliciesMethod = + getListAppliedAutoProtectionPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAppliedAutoProtectionPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("ListAppliedAutoProtectionPolicies")) + .build(); + } + } + } + return getListAppliedAutoProtectionPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation> + getInitiateDeleteAutoProtectionPolicyBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InitiateDeleteAutoProtectionPolicyBinding", + requestType = + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation> + getInitiateDeleteAutoProtectionPolicyBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation> + getInitiateDeleteAutoProtectionPolicyBindingMethod; + if ((getInitiateDeleteAutoProtectionPolicyBindingMethod = + BackupDRGrpc.getInitiateDeleteAutoProtectionPolicyBindingMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getInitiateDeleteAutoProtectionPolicyBindingMethod = + BackupDRGrpc.getInitiateDeleteAutoProtectionPolicyBindingMethod) + == null) { + BackupDRGrpc.getInitiateDeleteAutoProtectionPolicyBindingMethod = + getInitiateDeleteAutoProtectionPolicyBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "InitiateDeleteAutoProtectionPolicyBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1 + .InitiateDeleteAutoProtectionPolicyBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier( + "InitiateDeleteAutoProtectionPolicyBinding")) + .build(); + } + } + } + return getInitiateDeleteAutoProtectionPolicyBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse> + getListBindingMatchingResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBindingMatchingResources", + requestType = com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.class, + responseType = com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse> + getListBindingMatchingResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse> + getListBindingMatchingResourcesMethod; + if ((getListBindingMatchingResourcesMethod = BackupDRGrpc.getListBindingMatchingResourcesMethod) + == null) { + synchronized (BackupDRGrpc.class) { + if ((getListBindingMatchingResourcesMethod = + BackupDRGrpc.getListBindingMatchingResourcesMethod) + == null) { + BackupDRGrpc.getListBindingMatchingResourcesMethod = + getListBindingMatchingResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBindingMatchingResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("ListBindingMatchingResources")) + .build(); + } + } + } + return getListBindingMatchingResourcesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static BackupDRStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2171,192 +2732,357 @@ default void deleteBackupPlan( * * *

-     * Gets details of a single BackupPlanRevision.
+     * Gets details of a single BackupPlanRevision.
+     * 
+ */ + default void getBackupPlanRevision( + com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBackupPlanRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists BackupPlanRevisions in a given project and location.
+     * 
+ */ + default void listBackupPlanRevisions( + com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupPlanRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a BackupPlanAssociation
+     * 
+ */ + default void createBackupPlanAssociation( + com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupPlanAssociationMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a BackupPlanAssociation.
+     * 
+ */ + default void updateBackupPlanAssociation( + com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupPlanAssociationMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanAssociation.
+     * 
+ */ + default void getBackupPlanAssociation( + com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBackupPlanAssociationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists BackupPlanAssociations in a given project and location.
+     * 
+ */ + default void listBackupPlanAssociations( + com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupPlanAssociationsMethod(), responseObserver); + } + + /** + * + * + *
+     * List BackupPlanAssociations for a given resource type.
+     * 
+ */ + default void fetchBackupPlanAssociationsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchBackupPlanAssociationsForResourceTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single BackupPlanAssociation.
+     * 
+ */ + default void deleteBackupPlanAssociation( + com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupPlanAssociationMethod(), responseObserver); + } + + /** + * + * + *
+     * Triggers a new Backup.
+     * 
+ */ + default void triggerBackup( + com.google.cloud.backupdr.v1.TriggerBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTriggerBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single DataSourceReference.
+     * 
+ */ + default void getDataSourceReference( + com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSourceReferenceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DataSourceReferences for a given project and location.
      * 
*/ - default void getBackupPlanRevision( - com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request, - io.grpc.stub.StreamObserver + default void listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetBackupPlanRevisionMethod(), responseObserver); + getListDataSourceReferencesMethod(), responseObserver); } /** * * *
-     * Lists BackupPlanRevisions in a given project and location.
+     * Fetch DataSourceReferences for a given project, location and resource type.
      * 
*/ - default void listBackupPlanRevisions( - com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request, - io.grpc.stub.StreamObserver + default void fetchDataSourceReferencesForResourceType( + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupPlanRevisionsMethod(), responseObserver); + getFetchDataSourceReferencesForResourceTypeMethod(), responseObserver); } /** * * *
-     * Create a BackupPlanAssociation
+     * Initializes the service related config for a project.
      * 
*/ - default void createBackupPlanAssociation( - com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request, + default void initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBackupPlanAssociationMethod(), responseObserver); + getInitializeServiceMethod(), responseObserver); } /** * * *
-     * Update a BackupPlanAssociation.
+     * Creates a new AutoProtectionPolicy in a given project and location.
      * 
*/ - default void updateBackupPlanAssociation( - com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request, + default void createAutoProtectionPolicy( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBackupPlanAssociationMethod(), responseObserver); + getCreateAutoProtectionPolicyMethod(), responseObserver); } /** * * *
-     * Gets details of a single BackupPlanAssociation.
+     * Lists AutoProtectionPolicies for a given project and location.
      * 
*/ - default void getBackupPlanAssociation( - com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request, - io.grpc.stub.StreamObserver + default void listAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetBackupPlanAssociationMethod(), responseObserver); + getListAutoProtectionPoliciesMethod(), responseObserver); } /** * * *
-     * Lists BackupPlanAssociations in a given project and location.
+     * Gets details of a single AutoProtectionPolicy.
      * 
*/ - default void listBackupPlanAssociations( - com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request, - io.grpc.stub.StreamObserver + default void getAutoProtectionPolicy( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBackupPlanAssociationsMethod(), responseObserver); + getGetAutoProtectionPolicyMethod(), responseObserver); } /** * * *
-     * List BackupPlanAssociations for a given resource type.
+     * Updates the parameters of a single AutoProtectionPolicy.
      * 
*/ - default void fetchBackupPlanAssociationsForResourceType( - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse> - responseObserver) { + default void updateAutoProtectionPolicy( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchBackupPlanAssociationsForResourceTypeMethod(), responseObserver); + getUpdateAutoProtectionPolicyMethod(), responseObserver); } /** * * *
-     * Deletes a single BackupPlanAssociation.
+     * Deletes a single AutoProtectionPolicy.
      * 
*/ - default void deleteBackupPlanAssociation( - com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request, + default void deleteAutoProtectionPolicy( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBackupPlanAssociationMethod(), responseObserver); + getDeleteAutoProtectionPolicyMethod(), responseObserver); } /** * * *
-     * Triggers a new Backup.
+     * Creates a new AutoProtectionPolicyBinding in a given project and
+     * location.
      * 
*/ - default void triggerBackup( - com.google.cloud.backupdr.v1.TriggerBackupRequest request, + default void createAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTriggerBackupMethod(), responseObserver); + getCreateAutoProtectionPolicyBindingMethod(), responseObserver); } /** * * *
-     * Gets details of a single DataSourceReference.
+     * Returns the auto protection policy binding read from the CCFE tables.
      * 
*/ - default void getDataSourceReference( - com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request, - io.grpc.stub.StreamObserver + default void getAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataSourceReferenceMethod(), responseObserver); + getGetAutoProtectionPolicyBindingMethod(), responseObserver); } /** * * *
-     * Lists DataSourceReferences for a given project and location.
+     * Returns the auto protection policy bindings read from the CCFE tables.
      * 
*/ - default void listDataSourceReferences( - com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request, - io.grpc.stub.StreamObserver + default void listAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDataSourceReferencesMethod(), responseObserver); + getListAutoProtectionPolicyBindingsMethod(), responseObserver); } /** * * *
-     * Fetch DataSourceReferences for a given project, location and resource type.
+     * Lists AppliedAutoProtectionPolicies in a given project and location.
      * 
*/ - default void fetchDataSourceReferencesForResourceType( - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request, + default void listAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest request, io.grpc.stub.StreamObserver< - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse> + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchDataSourceReferencesForResourceTypeMethod(), responseObserver); + getListAppliedAutoProtectionPoliciesMethod(), responseObserver); } /** * * *
-     * Initializes the service related config for a project.
+     * InitiateDeleteAutoProtectionPolicyBinding initiates delete for
+     * AutoProtectionPolicy Binding
      * 
*/ - default void initializeService( - com.google.cloud.backupdr.v1.InitializeServiceRequest request, + default void initiateDeleteAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInitializeServiceMethod(), responseObserver); + getInitiateDeleteAutoProtectionPolicyBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+     * 
+ */ + default void listBindingMatchingResources( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBindingMatchingResourcesMethod(), responseObserver); } } @@ -2780,7 +3506,175 @@ public void deleteBackupPlan( com.google.cloud.backupdr.v1.DeleteBackupPlanRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), + getChannel().newCall(getDeleteBackupPlanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanRevision.
+     * 
+ */ + public void getBackupPlanRevision( + com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupPlanRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists BackupPlanRevisions in a given project and location.
+     * 
+ */ + public void listBackupPlanRevisions( + com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupPlanRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a BackupPlanAssociation
+     * 
+ */ + public void createBackupPlanAssociation( + com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupPlanAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a BackupPlanAssociation.
+     * 
+ */ + public void updateBackupPlanAssociation( + com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupPlanAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanAssociation.
+     * 
+ */ + public void getBackupPlanAssociation( + com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupPlanAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists BackupPlanAssociations in a given project and location.
+     * 
+ */ + public void listBackupPlanAssociations( + com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupPlanAssociationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List BackupPlanAssociations for a given resource type.
+     * 
+ */ + public void fetchBackupPlanAssociationsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getFetchBackupPlanAssociationsForResourceTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single BackupPlanAssociation.
+     * 
+ */ + public void deleteBackupPlanAssociation( + com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupPlanAssociationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Triggers a new Backup.
+     * 
+ */ + public void triggerBackup( + com.google.cloud.backupdr.v1.TriggerBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTriggerBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single DataSourceReference.
+     * 
+ */ + public void getDataSourceReference( + com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataSourceReferenceMethod(), getCallOptions()), request, responseObserver); } @@ -2789,15 +3683,15 @@ public void deleteBackupPlan( * * *
-     * Gets details of a single BackupPlanRevision.
+     * Lists DataSourceReferences for a given project and location.
      * 
*/ - public void getBackupPlanRevision( - com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request, - io.grpc.stub.StreamObserver + public void listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupPlanRevisionMethod(), getCallOptions()), + getChannel().newCall(getListDataSourceReferencesMethod(), getCallOptions()), request, responseObserver); } @@ -2806,15 +3700,17 @@ public void getBackupPlanRevision( * * *
-     * Lists BackupPlanRevisions in a given project and location.
+     * Fetch DataSourceReferences for a given project, location and resource type.
      * 
*/ - public void listBackupPlanRevisions( - com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request, - io.grpc.stub.StreamObserver + public void fetchDataSourceReferencesForResourceType( + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupPlanRevisionsMethod(), getCallOptions()), + getChannel() + .newCall(getFetchDataSourceReferencesForResourceTypeMethod(), getCallOptions()), request, responseObserver); } @@ -2823,14 +3719,14 @@ public void listBackupPlanRevisions( * * *
-     * Create a BackupPlanAssociation
+     * Initializes the service related config for a project.
      * 
*/ - public void createBackupPlanAssociation( - com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request, + public void initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBackupPlanAssociationMethod(), getCallOptions()), + getChannel().newCall(getInitializeServiceMethod(), getCallOptions()), request, responseObserver); } @@ -2839,14 +3735,14 @@ public void createBackupPlanAssociation( * * *
-     * Update a BackupPlanAssociation.
+     * Creates a new AutoProtectionPolicy in a given project and location.
      * 
*/ - public void updateBackupPlanAssociation( - com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request, + public void createAutoProtectionPolicy( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBackupPlanAssociationMethod(), getCallOptions()), + getChannel().newCall(getCreateAutoProtectionPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -2855,15 +3751,15 @@ public void updateBackupPlanAssociation( * * *
-     * Gets details of a single BackupPlanAssociation.
+     * Lists AutoProtectionPolicies for a given project and location.
      * 
*/ - public void getBackupPlanAssociation( - com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request, - io.grpc.stub.StreamObserver + public void listAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBackupPlanAssociationMethod(), getCallOptions()), + getChannel().newCall(getListAutoProtectionPoliciesMethod(), getCallOptions()), request, responseObserver); } @@ -2872,15 +3768,15 @@ public void getBackupPlanAssociation( * * *
-     * Lists BackupPlanAssociations in a given project and location.
+     * Gets details of a single AutoProtectionPolicy.
      * 
*/ - public void listBackupPlanAssociations( - com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request, - io.grpc.stub.StreamObserver + public void getAutoProtectionPolicy( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBackupPlanAssociationsMethod(), getCallOptions()), + getChannel().newCall(getGetAutoProtectionPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -2889,17 +3785,14 @@ public void listBackupPlanAssociations( * * *
-     * List BackupPlanAssociations for a given resource type.
+     * Updates the parameters of a single AutoProtectionPolicy.
      * 
*/ - public void fetchBackupPlanAssociationsForResourceType( - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse> - responseObserver) { + public void updateAutoProtectionPolicy( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getFetchBackupPlanAssociationsForResourceTypeMethod(), getCallOptions()), + getChannel().newCall(getUpdateAutoProtectionPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -2908,14 +3801,14 @@ public void fetchBackupPlanAssociationsForResourceType( * * *
-     * Deletes a single BackupPlanAssociation.
+     * Deletes a single AutoProtectionPolicy.
      * 
*/ - public void deleteBackupPlanAssociation( - com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request, + public void deleteAutoProtectionPolicy( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBackupPlanAssociationMethod(), getCallOptions()), + getChannel().newCall(getDeleteAutoProtectionPolicyMethod(), getCallOptions()), request, responseObserver); } @@ -2924,14 +3817,15 @@ public void deleteBackupPlanAssociation( * * *
-     * Triggers a new Backup.
+     * Creates a new AutoProtectionPolicyBinding in a given project and
+     * location.
      * 
*/ - public void triggerBackup( - com.google.cloud.backupdr.v1.TriggerBackupRequest request, + public void createAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTriggerBackupMethod(), getCallOptions()), + getChannel().newCall(getCreateAutoProtectionPolicyBindingMethod(), getCallOptions()), request, responseObserver); } @@ -2940,15 +3834,15 @@ public void triggerBackup( * * *
-     * Gets details of a single DataSourceReference.
+     * Returns the auto protection policy binding read from the CCFE tables.
      * 
*/ - public void getDataSourceReference( - com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request, - io.grpc.stub.StreamObserver + public void getAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSourceReferenceMethod(), getCallOptions()), + getChannel().newCall(getGetAutoProtectionPolicyBindingMethod(), getCallOptions()), request, responseObserver); } @@ -2957,15 +3851,16 @@ public void getDataSourceReference( * * *
-     * Lists DataSourceReferences for a given project and location.
+     * Returns the auto protection policy bindings read from the CCFE tables.
      * 
*/ - public void listDataSourceReferences( - com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request, - io.grpc.stub.StreamObserver + public void listAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataSourceReferencesMethod(), getCallOptions()), + getChannel().newCall(getListAutoProtectionPolicyBindingsMethod(), getCallOptions()), request, responseObserver); } @@ -2974,17 +3869,16 @@ public void listDataSourceReferences( * * *
-     * Fetch DataSourceReferences for a given project, location and resource type.
+     * Lists AppliedAutoProtectionPolicies in a given project and location.
      * 
*/ - public void fetchDataSourceReferencesForResourceType( - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request, + public void listAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest request, io.grpc.stub.StreamObserver< - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse> + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel() - .newCall(getFetchDataSourceReferencesForResourceTypeMethod(), getCallOptions()), + getChannel().newCall(getListAppliedAutoProtectionPoliciesMethod(), getCallOptions()), request, responseObserver); } @@ -2993,14 +3887,34 @@ public void fetchDataSourceReferencesForResourceType( * * *
-     * Initializes the service related config for a project.
+     * InitiateDeleteAutoProtectionPolicyBinding initiates delete for
+     * AutoProtectionPolicy Binding
      * 
*/ - public void initializeService( - com.google.cloud.backupdr.v1.InitializeServiceRequest request, + public void initiateDeleteAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInitializeServiceMethod(), getCallOptions()), + getChannel() + .newCall(getInitiateDeleteAutoProtectionPolicyBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+     * 
+ */ + public void listBindingMatchingResources( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBindingMatchingResourcesMethod(), getCallOptions()), request, responseObserver); } @@ -3325,209 +4239,371 @@ public com.google.longrunning.Operation updateBackupPlan( public com.google.cloud.backupdr.v1.BackupPlan getBackupPlan( com.google.cloud.backupdr.v1.GetBackupPlanRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); + getChannel(), getGetBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BackupPlans in a given project and location.
+     * 
+ */ + public com.google.cloud.backupdr.v1.ListBackupPlansResponse listBackupPlans( + com.google.cloud.backupdr.v1.ListBackupPlansRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackupPlansMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single BackupPlan.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackupPlan( + com.google.cloud.backupdr.v1.DeleteBackupPlanRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanRevision.
+     * 
+ */ + public com.google.cloud.backupdr.v1.BackupPlanRevision getBackupPlanRevision( + com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBackupPlanRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BackupPlanRevisions in a given project and location.
+     * 
+ */ + public com.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse listBackupPlanRevisions( + com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackupPlanRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a BackupPlanAssociation
+     * 
+ */ + public com.google.longrunning.Operation createBackupPlanAssociation( + com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a BackupPlanAssociation.
+     * 
+ */ + public com.google.longrunning.Operation updateBackupPlanAssociation( + com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanAssociation.
+     * 
+ */ + public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociation( + com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BackupPlanAssociations in a given project and location.
+     * 
+ */ + public com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse + listBackupPlanAssociations( + com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackupPlanAssociationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List BackupPlanAssociations for a given resource type.
+     * 
+ */ + public com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse + fetchBackupPlanAssociationsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getFetchBackupPlanAssociationsForResourceTypeMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deletes a single BackupPlanAssociation.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackupPlanAssociation( + com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Triggers a new Backup.
+     * 
+ */ + public com.google.longrunning.Operation triggerBackup( + com.google.cloud.backupdr.v1.TriggerBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getTriggerBackupMethod(), getCallOptions(), request); } /** * * *
-     * Lists BackupPlans in a given project and location.
+     * Gets details of a single DataSourceReference.
      * 
*/ - public com.google.cloud.backupdr.v1.ListBackupPlansResponse listBackupPlans( - com.google.cloud.backupdr.v1.ListBackupPlansRequest request) + public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( + com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListBackupPlansMethod(), getCallOptions(), request); + getChannel(), getGetDataSourceReferenceMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single BackupPlan.
+     * Lists DataSourceReferences for a given project and location.
      * 
*/ - public com.google.longrunning.Operation deleteBackupPlan( - com.google.cloud.backupdr.v1.DeleteBackupPlanRequest request) + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); + getChannel(), getListDataSourceReferencesMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single BackupPlanRevision.
+     * Fetch DataSourceReferences for a given project, location and resource type.
      * 
*/ - public com.google.cloud.backupdr.v1.BackupPlanRevision getBackupPlanRevision( - com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request) - throws io.grpc.StatusException { + public com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse + fetchDataSourceReferencesForResourceType( + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetBackupPlanRevisionMethod(), getCallOptions(), request); + getChannel(), + getFetchDataSourceReferencesForResourceTypeMethod(), + getCallOptions(), + request); } /** * * *
-     * Lists BackupPlanRevisions in a given project and location.
+     * Initializes the service related config for a project.
      * 
*/ - public com.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse listBackupPlanRevisions( - com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request) + public com.google.longrunning.Operation initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListBackupPlanRevisionsMethod(), getCallOptions(), request); + getChannel(), getInitializeServiceMethod(), getCallOptions(), request); } /** * * *
-     * Create a BackupPlanAssociation
+     * Creates a new AutoProtectionPolicy in a given project and location.
      * 
*/ - public com.google.longrunning.Operation createBackupPlanAssociation( - com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request) + public com.google.longrunning.Operation createAutoProtectionPolicy( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getCreateAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * Update a BackupPlanAssociation.
+     * Lists AutoProtectionPolicies for a given project and location.
      * 
*/ - public com.google.longrunning.Operation updateBackupPlanAssociation( - com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request) - throws io.grpc.StatusException { + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + listAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getListAutoProtectionPoliciesMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single BackupPlanAssociation.
+     * Gets details of a single AutoProtectionPolicy.
      * 
*/ - public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociation( - com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request) + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getGetAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * Lists BackupPlanAssociations in a given project and location.
+     * Updates the parameters of a single AutoProtectionPolicy.
      * 
*/ - public com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse - listBackupPlanAssociations( - com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request) - throws io.grpc.StatusException { + public com.google.longrunning.Operation updateAutoProtectionPolicy( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListBackupPlanAssociationsMethod(), getCallOptions(), request); + getChannel(), getUpdateAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * List BackupPlanAssociations for a given resource type.
+     * Deletes a single AutoProtectionPolicy.
      * 
*/ - public com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse - fetchBackupPlanAssociationsForResourceType( - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest request) - throws io.grpc.StatusException { + public com.google.longrunning.Operation deleteAutoProtectionPolicy( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), - getFetchBackupPlanAssociationsForResourceTypeMethod(), - getCallOptions(), - request); + getChannel(), getDeleteAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single BackupPlanAssociation.
+     * Creates a new AutoProtectionPolicyBinding in a given project and
+     * location.
      * 
*/ - public com.google.longrunning.Operation deleteBackupPlanAssociation( - com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request) + public com.google.longrunning.Operation createAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getCreateAutoProtectionPolicyBindingMethod(), getCallOptions(), request); } /** * * *
-     * Triggers a new Backup.
+     * Returns the auto protection policy binding read from the CCFE tables.
      * 
*/ - public com.google.longrunning.Operation triggerBackup( - com.google.cloud.backupdr.v1.TriggerBackupRequest request) throws io.grpc.StatusException { + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getTriggerBackupMethod(), getCallOptions(), request); + getChannel(), getGetAutoProtectionPolicyBindingMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single DataSourceReference.
+     * Returns the auto protection policy bindings read from the CCFE tables.
      * 
*/ - public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( - com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request) - throws io.grpc.StatusException { + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + listAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetDataSourceReferenceMethod(), getCallOptions(), request); + getChannel(), getListAutoProtectionPolicyBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Lists DataSourceReferences for a given project and location.
+     * Lists AppliedAutoProtectionPolicies in a given project and location.
      * 
*/ - public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSourceReferences( - com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) - throws io.grpc.StatusException { + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + listAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListDataSourceReferencesMethod(), getCallOptions(), request); + getChannel(), getListAppliedAutoProtectionPoliciesMethod(), getCallOptions(), request); } /** * * *
-     * Fetch DataSourceReferences for a given project, location and resource type.
+     * InitiateDeleteAutoProtectionPolicyBinding initiates delete for
+     * AutoProtectionPolicy Binding
      * 
*/ - public com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse - fetchDataSourceReferencesForResourceType( - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request) - throws io.grpc.StatusException { + public com.google.longrunning.Operation initiateDeleteAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), - getFetchDataSourceReferencesForResourceTypeMethod(), + getInitiateDeleteAutoProtectionPolicyBindingMethod(), getCallOptions(), request); } @@ -3536,14 +4612,15 @@ public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSou * * *
-     * Initializes the service related config for a project.
+     * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
      * 
*/ - public com.google.longrunning.Operation initializeService( - com.google.cloud.backupdr.v1.InitializeServiceRequest request) - throws io.grpc.StatusException { + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + listBindingMatchingResources( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getInitializeServiceMethod(), getCallOptions(), request); + getChannel(), getListBindingMatchingResourcesMethod(), getCallOptions(), request); } } @@ -3877,171 +4954,322 @@ public com.google.cloud.backupdr.v1.ListBackupPlansResponse listBackupPlans( public com.google.longrunning.Operation deleteBackupPlan( com.google.cloud.backupdr.v1.DeleteBackupPlanRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); + getChannel(), getDeleteBackupPlanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanRevision.
+     * 
+ */ + public com.google.cloud.backupdr.v1.BackupPlanRevision getBackupPlanRevision( + com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupPlanRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BackupPlanRevisions in a given project and location.
+     * 
+ */ + public com.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse listBackupPlanRevisions( + com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupPlanRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a BackupPlanAssociation
+     * 
+ */ + public com.google.longrunning.Operation createBackupPlanAssociation( + com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a BackupPlanAssociation.
+     * 
+ */ + public com.google.longrunning.Operation updateBackupPlanAssociation( + com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single BackupPlanAssociation.
+     * 
+ */ + public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociation( + com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BackupPlanAssociations in a given project and location.
+     * 
+ */ + public com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse + listBackupPlanAssociations( + com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupPlanAssociationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List BackupPlanAssociations for a given resource type.
+     * 
+ */ + public com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse + fetchBackupPlanAssociationsForResourceType( + com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getFetchBackupPlanAssociationsForResourceTypeMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deletes a single BackupPlanAssociation.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackupPlanAssociation( + com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupPlanAssociationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Triggers a new Backup.
+     * 
+ */ + public com.google.longrunning.Operation triggerBackup( + com.google.cloud.backupdr.v1.TriggerBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTriggerBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single DataSourceReference.
+     * 
+ */ + public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( + com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataSourceReferenceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DataSourceReferences for a given project and location.
+     * 
+ */ + public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSourceReferences( + com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataSourceReferencesMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single BackupPlanRevision.
+     * Fetch DataSourceReferences for a given project, location and resource type.
      * 
*/ - public com.google.cloud.backupdr.v1.BackupPlanRevision getBackupPlanRevision( - com.google.cloud.backupdr.v1.GetBackupPlanRevisionRequest request) { + public com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse + fetchDataSourceReferencesForResourceType( + com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupPlanRevisionMethod(), getCallOptions(), request); + getChannel(), + getFetchDataSourceReferencesForResourceTypeMethod(), + getCallOptions(), + request); } /** * * *
-     * Lists BackupPlanRevisions in a given project and location.
+     * Initializes the service related config for a project.
      * 
*/ - public com.google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse listBackupPlanRevisions( - com.google.cloud.backupdr.v1.ListBackupPlanRevisionsRequest request) { + public com.google.longrunning.Operation initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupPlanRevisionsMethod(), getCallOptions(), request); + getChannel(), getInitializeServiceMethod(), getCallOptions(), request); } /** * * *
-     * Create a BackupPlanAssociation
+     * Creates a new AutoProtectionPolicy in a given project and location.
      * 
*/ - public com.google.longrunning.Operation createBackupPlanAssociation( - com.google.cloud.backupdr.v1.CreateBackupPlanAssociationRequest request) { + public com.google.longrunning.Operation createAutoProtectionPolicy( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getCreateAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * Update a BackupPlanAssociation.
+     * Lists AutoProtectionPolicies for a given project and location.
      * 
*/ - public com.google.longrunning.Operation updateBackupPlanAssociation( - com.google.cloud.backupdr.v1.UpdateBackupPlanAssociationRequest request) { + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + listAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getListAutoProtectionPoliciesMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single BackupPlanAssociation.
+     * Gets details of a single AutoProtectionPolicy.
      * 
*/ - public com.google.cloud.backupdr.v1.BackupPlanAssociation getBackupPlanAssociation( - com.google.cloud.backupdr.v1.GetBackupPlanAssociationRequest request) { + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getGetAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * Lists BackupPlanAssociations in a given project and location.
+     * Updates the parameters of a single AutoProtectionPolicy.
      * 
*/ - public com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse - listBackupPlanAssociations( - com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest request) { + public com.google.longrunning.Operation updateAutoProtectionPolicy( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBackupPlanAssociationsMethod(), getCallOptions(), request); + getChannel(), getUpdateAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * List BackupPlanAssociations for a given resource type.
+     * Deletes a single AutoProtectionPolicy.
      * 
*/ - public com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse - fetchBackupPlanAssociationsForResourceType( - com.google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest - request) { + public com.google.longrunning.Operation deleteAutoProtectionPolicy( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), - getFetchBackupPlanAssociationsForResourceTypeMethod(), - getCallOptions(), - request); + getChannel(), getDeleteAutoProtectionPolicyMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a single BackupPlanAssociation.
+     * Creates a new AutoProtectionPolicyBinding in a given project and
+     * location.
      * 
*/ - public com.google.longrunning.Operation deleteBackupPlanAssociation( - com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest request) { + public com.google.longrunning.Operation createAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBackupPlanAssociationMethod(), getCallOptions(), request); + getChannel(), getCreateAutoProtectionPolicyBindingMethod(), getCallOptions(), request); } /** * * *
-     * Triggers a new Backup.
+     * Returns the auto protection policy binding read from the CCFE tables.
      * 
*/ - public com.google.longrunning.Operation triggerBackup( - com.google.cloud.backupdr.v1.TriggerBackupRequest request) { + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTriggerBackupMethod(), getCallOptions(), request); + getChannel(), getGetAutoProtectionPolicyBindingMethod(), getCallOptions(), request); } /** * * *
-     * Gets details of a single DataSourceReference.
+     * Returns the auto protection policy bindings read from the CCFE tables.
      * 
*/ - public com.google.cloud.backupdr.v1.DataSourceReference getDataSourceReference( - com.google.cloud.backupdr.v1.GetDataSourceReferenceRequest request) { + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + listAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSourceReferenceMethod(), getCallOptions(), request); + getChannel(), getListAutoProtectionPolicyBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Lists DataSourceReferences for a given project and location.
+     * Lists AppliedAutoProtectionPolicies in a given project and location.
      * 
*/ - public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSourceReferences( - com.google.cloud.backupdr.v1.ListDataSourceReferencesRequest request) { + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + listAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataSourceReferencesMethod(), getCallOptions(), request); + getChannel(), getListAppliedAutoProtectionPoliciesMethod(), getCallOptions(), request); } /** * * *
-     * Fetch DataSourceReferences for a given project, location and resource type.
+     * InitiateDeleteAutoProtectionPolicyBinding initiates delete for
+     * AutoProtectionPolicy Binding
      * 
*/ - public com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse - fetchDataSourceReferencesForResourceType( - com.google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeRequest request) { + public com.google.longrunning.Operation initiateDeleteAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), - getFetchDataSourceReferencesForResourceTypeMethod(), + getInitiateDeleteAutoProtectionPolicyBindingMethod(), getCallOptions(), request); } @@ -4050,13 +5278,14 @@ public com.google.cloud.backupdr.v1.ListDataSourceReferencesResponse listDataSou * * *
-     * Initializes the service related config for a project.
+     * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
      * 
*/ - public com.google.longrunning.Operation initializeService( - com.google.cloud.backupdr.v1.InitializeServiceRequest request) { + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + listBindingMatchingResources( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInitializeServiceMethod(), getCallOptions(), request); + getChannel(), getListBindingMatchingResourcesMethod(), getCallOptions(), request); } } @@ -4595,6 +5824,174 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInitializeServiceMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a new AutoProtectionPolicy in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createAutoProtectionPolicy( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAutoProtectionPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists AutoProtectionPolicies for a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse> + listAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutoProtectionPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single AutoProtectionPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.AutoProtectionPolicy> + getAutoProtectionPolicy( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAutoProtectionPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AutoProtectionPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateAutoProtectionPolicy( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAutoProtectionPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single AutoProtectionPolicy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAutoProtectionPolicy( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAutoProtectionPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new AutoProtectionPolicyBinding in a given project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAutoProtectionPolicyBindingMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Returns the auto protection policy binding read from the CCFE tables.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding> + getAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAutoProtectionPolicyBindingMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Returns the auto protection policy bindings read from the CCFE tables.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse> + listAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutoProtectionPolicyBindingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists AppliedAutoProtectionPolicies in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse> + listAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAppliedAutoProtectionPoliciesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * InitiateDeleteAutoProtectionPolicyBinding initiates delete for
+     * AutoProtectionPolicy Binding
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + initiateDeleteAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getInitiateDeleteAutoProtectionPolicyBindingMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse> + listBindingMatchingResources( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBindingMatchingResourcesMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_MANAGEMENT_SERVERS = 0; @@ -4634,6 +6031,17 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_DATA_SOURCE_REFERENCES = 34; private static final int METHODID_FETCH_DATA_SOURCE_REFERENCES_FOR_RESOURCE_TYPE = 35; private static final int METHODID_INITIALIZE_SERVICE = 36; + private static final int METHODID_CREATE_AUTO_PROTECTION_POLICY = 37; + private static final int METHODID_LIST_AUTO_PROTECTION_POLICIES = 38; + private static final int METHODID_GET_AUTO_PROTECTION_POLICY = 39; + private static final int METHODID_UPDATE_AUTO_PROTECTION_POLICY = 40; + private static final int METHODID_DELETE_AUTO_PROTECTION_POLICY = 41; + private static final int METHODID_CREATE_AUTO_PROTECTION_POLICY_BINDING = 42; + private static final int METHODID_GET_AUTO_PROTECTION_POLICY_BINDING = 43; + private static final int METHODID_LIST_AUTO_PROTECTION_POLICY_BINDINGS = 44; + private static final int METHODID_LIST_APPLIED_AUTO_PROTECTION_POLICIES = 45; + private static final int METHODID_INITIATE_DELETE_AUTO_PROTECTION_POLICY_BINDING = 46; + private static final int METHODID_LIST_BINDING_MATCHING_RESOURCES = 47; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4868,6 +6276,73 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.backupdr.v1.InitializeServiceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_AUTO_PROTECTION_POLICY: + serviceImpl.createAutoProtectionPolicy( + (com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_AUTO_PROTECTION_POLICIES: + serviceImpl.listAutoProtectionPolicies( + (com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse>) + responseObserver); + break; + case METHODID_GET_AUTO_PROTECTION_POLICY: + serviceImpl.getAutoProtectionPolicy( + (com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_AUTO_PROTECTION_POLICY: + serviceImpl.updateAutoProtectionPolicy( + (com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AUTO_PROTECTION_POLICY: + serviceImpl.deleteAutoProtectionPolicy( + (com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_AUTO_PROTECTION_POLICY_BINDING: + serviceImpl.createAutoProtectionPolicyBinding( + (com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_AUTO_PROTECTION_POLICY_BINDING: + serviceImpl.getAutoProtectionPolicyBinding( + (com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding>) + responseObserver); + break; + case METHODID_LIST_AUTO_PROTECTION_POLICY_BINDINGS: + serviceImpl.listAutoProtectionPolicyBindings( + (com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse>) + responseObserver); + break; + case METHODID_LIST_APPLIED_AUTO_PROTECTION_POLICIES: + serviceImpl.listAppliedAutoProtectionPolicies( + (com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse>) + responseObserver); + break; + case METHODID_INITIATE_DELETE_AUTO_PROTECTION_POLICY_BINDING: + serviceImpl.initiateDeleteAutoProtectionPolicyBinding( + (com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BINDING_MATCHING_RESOURCES: + serviceImpl.listBindingMatchingResources( + (com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -5128,6 +6603,83 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.backupdr.v1.InitializeServiceRequest, com.google.longrunning.Operation>(service, METHODID_INITIALIZE_SERVICE))) + .addMethod( + getCreateAutoProtectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_AUTO_PROTECTION_POLICY))) + .addMethod( + getListAutoProtectionPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse>( + service, METHODID_LIST_AUTO_PROTECTION_POLICIES))) + .addMethod( + getGetAutoProtectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicy>( + service, METHODID_GET_AUTO_PROTECTION_POLICY))) + .addMethod( + getUpdateAutoProtectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_AUTO_PROTECTION_POLICY))) + .addMethod( + getDeleteAutoProtectionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_AUTO_PROTECTION_POLICY))) + .addMethod( + getCreateAutoProtectionPolicyBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_AUTO_PROTECTION_POLICY_BINDING))) + .addMethod( + getGetAutoProtectionPolicyBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding>( + service, METHODID_GET_AUTO_PROTECTION_POLICY_BINDING))) + .addMethod( + getListAutoProtectionPolicyBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse>( + service, METHODID_LIST_AUTO_PROTECTION_POLICY_BINDINGS))) + .addMethod( + getListAppliedAutoProtectionPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse>( + service, METHODID_LIST_APPLIED_AUTO_PROTECTION_POLICIES))) + .addMethod( + getInitiateDeleteAutoProtectionPolicyBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest, + com.google.longrunning.Operation>( + service, METHODID_INITIATE_DELETE_AUTO_PROTECTION_POLICY_BINDING))) + .addMethod( + getListBindingMatchingResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse>( + service, METHODID_LIST_BINDING_MATCHING_RESOURCES))) .build(); } @@ -5214,6 +6766,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListDataSourceReferencesMethod()) .addMethod(getFetchDataSourceReferencesForResourceTypeMethod()) .addMethod(getInitializeServiceMethod()) + .addMethod(getCreateAutoProtectionPolicyMethod()) + .addMethod(getListAutoProtectionPoliciesMethod()) + .addMethod(getGetAutoProtectionPolicyMethod()) + .addMethod(getUpdateAutoProtectionPolicyMethod()) + .addMethod(getDeleteAutoProtectionPolicyMethod()) + .addMethod(getCreateAutoProtectionPolicyBindingMethod()) + .addMethod(getGetAutoProtectionPolicyBindingMethod()) + .addMethod(getListAutoProtectionPolicyBindingsMethod()) + .addMethod(getListAppliedAutoProtectionPoliciesMethod()) + .addMethod(getInitiateDeleteAutoProtectionPolicyBindingMethod()) + .addMethod(getListBindingMatchingResourcesMethod()) .build(); } } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicy.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicy.java new file mode 100644 index 000000000000..4cbd9be7849b --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicy.java @@ -0,0 +1,3079 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * AppliedAutoProtectionPolicy is a read-only view of AutoProtectionPolicy
+ * and AutoProtectionPolicyBinding resources that apply to a given workload
+ * project.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AppliedAutoProtectionPolicy} + */ +@com.google.protobuf.Generated +public final class AppliedAutoProtectionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) + AppliedAutoProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppliedAutoProtectionPolicy"); + } + + // Use AppliedAutoProtectionPolicy.newBuilder() to construct. + private AppliedAutoProtectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AppliedAutoProtectionPolicy() { + name_ = ""; + sourceBinding_ = ""; + backupPlanDetails_ = java.util.Collections.emptyList(); + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.class, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder.class); + } + + /** + * + * + *
+   * Represents the various states an applied auto protection policy can be in.
+   * 
+ * + * Protobuf enum {@code google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * State is not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The policy is in the process of being applied.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The policy has been applied and is active.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The policy is in the process of being removed.
+     * 
+ * + * DELETION_INITIATED = 3; + */ + DELETION_INITIATED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * State is not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The policy is in the process of being applied.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The policy has been applied and is active.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The policy is in the process of being removed.
+     * 
+ * + * DELETION_INITIATED = 3; + */ + public static final int DELETION_INITIATED_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETION_INITIATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Canonical resource name.
+   * Format:
+   * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. Canonical resource name.
+   * Format:
+   * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_BINDING_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBinding_ = ""; + + /** + * + * + *
+   * Output only. The full resource name of the AutoProtectionPolicyBinding that
+   * applies the source policy to a scope including this workload project. e.g.,
+   * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+   * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceBinding. + */ + @java.lang.Override + public java.lang.String getSourceBinding() { + java.lang.Object ref = sourceBinding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBinding_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The full resource name of the AutoProtectionPolicyBinding that
+   * applies the source policy to a scope including this workload project. e.g.,
+   * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+   * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceBinding. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBindingBytes() { + java.lang.Object ref = sourceBinding_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRITERIA_FIELD_NUMBER = 3; + private com.google.cloud.backupdr.v1.Criteria criteria_; + + /** + * + * + *
+   * Output only. The criteria resources must meet for this rule to apply. From
+   * AutoProtectionPolicy.criteria.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the criteria field is set. + */ + @java.lang.Override + public boolean hasCriteria() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The criteria resources must meet for this rule to apply. From
+   * AutoProtectionPolicy.criteria.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The criteria. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.Criteria getCriteria() { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } + + /** + * + * + *
+   * Output only. The criteria resources must meet for this rule to apply. From
+   * AutoProtectionPolicy.criteria.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.CriteriaOrBuilder getCriteriaOrBuilder() { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } + + public static final int BACKUP_PLAN_DETAILS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List backupPlanDetails_; + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getBackupPlanDetailsList() { + return backupPlanDetails_; + } + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBackupPlanDetailsOrBuilderList() { + return backupPlanDetails_; + } + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBackupPlanDetailsCount() { + return backupPlanDetails_.size(); + } + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetail getBackupPlanDetails(int index) { + return backupPlanDetails_.get(index); + } + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder( + int index) { + return backupPlanDetails_.get(index); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int BINDING_EVALUATION_SUMMARY_FIELD_NUMBER = 7; + private com.google.cloud.backupdr.v1.BindingEvaluationSummary bindingEvaluationSummary_; + + /** + * + * + *
+   * Output only. The summary of the last policy application when the job has
+   * run.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingEvaluationSummary field is set. + */ + @java.lang.Override + public boolean hasBindingEvaluationSummary() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The summary of the last policy application when the job has
+   * run.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingEvaluationSummary. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummary getBindingEvaluationSummary() { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } + + /** + * + * + *
+   * Output only. The summary of the last policy application when the job has
+   * run.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder + getBindingEvaluationSummaryOrBuilder() { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } + + public static final int STATUS_FIELD_NUMBER = 8; + private int status_ = 0; + + /** + * + * + *
+   * Output only. The status of the applied auto protection policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Output only. The status of the applied auto protection policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State getStatus() { + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State result = + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State.forNumber(status_); + return result == null + ? com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceBinding_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, sourceBinding_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCriteria()); + } + for (int i = 0; i < backupPlanDetails_.size(); i++) { + output.writeMessage(4, backupPlanDetails_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getBindingEvaluationSummary()); + } + if (status_ + != com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceBinding_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sourceBinding_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCriteria()); + } + for (int i = 0; i < backupPlanDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, backupPlanDetails_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getBindingEvaluationSummary()); + } + if (status_ + != com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy other = + (com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceBinding().equals(other.getSourceBinding())) return false; + if (hasCriteria() != other.hasCriteria()) return false; + if (hasCriteria()) { + if (!getCriteria().equals(other.getCriteria())) return false; + } + if (!getBackupPlanDetailsList().equals(other.getBackupPlanDetailsList())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasBindingEvaluationSummary() != other.hasBindingEvaluationSummary()) return false; + if (hasBindingEvaluationSummary()) { + if (!getBindingEvaluationSummary().equals(other.getBindingEvaluationSummary())) return false; + } + if (status_ != other.status_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SOURCE_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getSourceBinding().hashCode(); + if (hasCriteria()) { + hash = (37 * hash) + CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getCriteria().hashCode(); + } + if (getBackupPlanDetailsCount() > 0) { + hash = (37 * hash) + BACKUP_PLAN_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBackupPlanDetailsList().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasBindingEvaluationSummary()) { + hash = (37 * hash) + BINDING_EVALUATION_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getBindingEvaluationSummary().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * AppliedAutoProtectionPolicy is a read-only view of AutoProtectionPolicy
+   * and AutoProtectionPolicyBinding resources that apply to a given workload
+   * project.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AppliedAutoProtectionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.class, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCriteriaFieldBuilder(); + internalGetBackupPlanDetailsFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetBindingEvaluationSummaryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceBinding_ = ""; + criteria_ = null; + if (criteriaBuilder_ != null) { + criteriaBuilder_.dispose(); + criteriaBuilder_ = null; + } + if (backupPlanDetailsBuilder_ == null) { + backupPlanDetails_ = java.util.Collections.emptyList(); + } else { + backupPlanDetails_ = null; + backupPlanDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + bindingEvaluationSummary_ = null; + if (bindingEvaluationSummaryBuilder_ != null) { + bindingEvaluationSummaryBuilder_.dispose(); + bindingEvaluationSummaryBuilder_ = null; + } + status_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy build() { + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy buildPartial() { + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy result = + new com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy result) { + if (backupPlanDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + backupPlanDetails_ = java.util.Collections.unmodifiableList(backupPlanDetails_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.backupPlanDetails_ = backupPlanDetails_; + } else { + result.backupPlanDetails_ = backupPlanDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceBinding_ = sourceBinding_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.criteria_ = criteriaBuilder_ == null ? criteria_ : criteriaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.bindingEvaluationSummary_ = + bindingEvaluationSummaryBuilder_ == null + ? bindingEvaluationSummary_ + : bindingEvaluationSummaryBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.status_ = status_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) { + return mergeFrom((com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy other) { + if (other == com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceBinding().isEmpty()) { + sourceBinding_ = other.sourceBinding_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCriteria()) { + mergeCriteria(other.getCriteria()); + } + if (backupPlanDetailsBuilder_ == null) { + if (!other.backupPlanDetails_.isEmpty()) { + if (backupPlanDetails_.isEmpty()) { + backupPlanDetails_ = other.backupPlanDetails_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.addAll(other.backupPlanDetails_); + } + onChanged(); + } + } else { + if (!other.backupPlanDetails_.isEmpty()) { + if (backupPlanDetailsBuilder_.isEmpty()) { + backupPlanDetailsBuilder_.dispose(); + backupPlanDetailsBuilder_ = null; + backupPlanDetails_ = other.backupPlanDetails_; + bitField0_ = (bitField0_ & ~0x00000008); + backupPlanDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackupPlanDetailsFieldBuilder() + : null; + } else { + backupPlanDetailsBuilder_.addAllMessages(other.backupPlanDetails_); + } + } + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasBindingEvaluationSummary()) { + mergeBindingEvaluationSummary(other.getBindingEvaluationSummary()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceBinding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCriteriaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.backupdr.v1.BackupPlanDetail m = + input.readMessage( + com.google.cloud.backupdr.v1.BackupPlanDetail.parser(), extensionRegistry); + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(m); + } else { + backupPlanDetailsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetBindingEvaluationSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Canonical resource name.
+     * Format:
+     * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. Canonical resource name.
+     * Format:
+     * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. Canonical resource name.
+     * Format:
+     * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Canonical resource name.
+     * Format:
+     * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Canonical resource name.
+     * Format:
+     * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceBinding_ = ""; + + /** + * + * + *
+     * Output only. The full resource name of the AutoProtectionPolicyBinding that
+     * applies the source policy to a scope including this workload project. e.g.,
+     * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+     * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceBinding. + */ + public java.lang.String getSourceBinding() { + java.lang.Object ref = sourceBinding_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBinding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The full resource name of the AutoProtectionPolicyBinding that
+     * applies the source policy to a scope including this workload project. e.g.,
+     * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+     * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceBinding. + */ + public com.google.protobuf.ByteString getSourceBindingBytes() { + java.lang.Object ref = sourceBinding_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The full resource name of the AutoProtectionPolicyBinding that
+     * applies the source policy to a scope including this workload project. e.g.,
+     * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+     * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceBinding to set. + * @return This builder for chaining. + */ + public Builder setSourceBinding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBinding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The full resource name of the AutoProtectionPolicyBinding that
+     * applies the source policy to a scope including this workload project. e.g.,
+     * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+     * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceBinding() { + sourceBinding_ = getDefaultInstance().getSourceBinding(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The full resource name of the AutoProtectionPolicyBinding that
+     * applies the source policy to a scope including this workload project. e.g.,
+     * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+     * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceBinding to set. + * @return This builder for chaining. + */ + public Builder setSourceBindingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBinding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.backupdr.v1.Criteria criteria_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.Criteria, + com.google.cloud.backupdr.v1.Criteria.Builder, + com.google.cloud.backupdr.v1.CriteriaOrBuilder> + criteriaBuilder_; + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the criteria field is set. + */ + public boolean hasCriteria() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The criteria. + */ + public com.google.cloud.backupdr.v1.Criteria getCriteria() { + if (criteriaBuilder_ == null) { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } else { + return criteriaBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCriteria(com.google.cloud.backupdr.v1.Criteria value) { + if (criteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criteria_ = value; + } else { + criteriaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCriteria(com.google.cloud.backupdr.v1.Criteria.Builder builderForValue) { + if (criteriaBuilder_ == null) { + criteria_ = builderForValue.build(); + } else { + criteriaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCriteria(com.google.cloud.backupdr.v1.Criteria value) { + if (criteriaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && criteria_ != null + && criteria_ != com.google.cloud.backupdr.v1.Criteria.getDefaultInstance()) { + getCriteriaBuilder().mergeFrom(value); + } else { + criteria_ = value; + } + } else { + criteriaBuilder_.mergeFrom(value); + } + if (criteria_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCriteria() { + bitField0_ = (bitField0_ & ~0x00000004); + criteria_ = null; + if (criteriaBuilder_ != null) { + criteriaBuilder_.dispose(); + criteriaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.Criteria.Builder getCriteriaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCriteriaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.CriteriaOrBuilder getCriteriaOrBuilder() { + if (criteriaBuilder_ != null) { + return criteriaBuilder_.getMessageOrBuilder(); + } else { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } + } + + /** + * + * + *
+     * Output only. The criteria resources must meet for this rule to apply. From
+     * AutoProtectionPolicy.criteria.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.Criteria, + com.google.cloud.backupdr.v1.Criteria.Builder, + com.google.cloud.backupdr.v1.CriteriaOrBuilder> + internalGetCriteriaFieldBuilder() { + if (criteriaBuilder_ == null) { + criteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.Criteria, + com.google.cloud.backupdr.v1.Criteria.Builder, + com.google.cloud.backupdr.v1.CriteriaOrBuilder>( + getCriteria(), getParentForChildren(), isClean()); + criteria_ = null; + } + return criteriaBuilder_; + } + + private java.util.List backupPlanDetails_ = + java.util.Collections.emptyList(); + + private void ensureBackupPlanDetailsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + backupPlanDetails_ = + new java.util.ArrayList( + backupPlanDetails_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BackupPlanDetail, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder, + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder> + backupPlanDetailsBuilder_; + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupPlanDetailsList() { + if (backupPlanDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupPlanDetails_); + } else { + return backupPlanDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBackupPlanDetailsCount() { + if (backupPlanDetailsBuilder_ == null) { + return backupPlanDetails_.size(); + } else { + return backupPlanDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail getBackupPlanDetails(int index) { + if (backupPlanDetailsBuilder_ == null) { + return backupPlanDetails_.get(index); + } else { + return backupPlanDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail value) { + if (backupPlanDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.set(index, value); + onChanged(); + } else { + backupPlanDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail.Builder builderForValue) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + backupPlanDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupPlanDetails(com.google.cloud.backupdr.v1.BackupPlanDetail value) { + if (backupPlanDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(value); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail value) { + if (backupPlanDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(index, value); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupPlanDetails( + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder builderForValue) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(builderForValue.build()); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail.Builder builderForValue) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBackupPlanDetails( + java.lang.Iterable values) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupPlanDetails_); + onChanged(); + } else { + backupPlanDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBackupPlanDetails() { + if (backupPlanDetailsBuilder_ == null) { + backupPlanDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + backupPlanDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBackupPlanDetails(int index) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.remove(index); + onChanged(); + } else { + backupPlanDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail.Builder getBackupPlanDetailsBuilder( + int index) { + return internalGetBackupPlanDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder( + int index) { + if (backupPlanDetailsBuilder_ == null) { + return backupPlanDetails_.get(index); + } else { + return backupPlanDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupPlanDetailsOrBuilderList() { + if (backupPlanDetailsBuilder_ != null) { + return backupPlanDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupPlanDetails_); + } + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail.Builder addBackupPlanDetailsBuilder() { + return internalGetBackupPlanDetailsFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.BackupPlanDetail.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail.Builder addBackupPlanDetailsBuilder( + int index) { + return internalGetBackupPlanDetailsFieldBuilder() + .addBuilder(index, com.google.cloud.backupdr.v1.BackupPlanDetail.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The set of backup plan configurations, mirroring the
+     * backup_plan_details from the source AutoProtectionPolicy. Each element
+     * specifies a backup plan for a given resource type.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupPlanDetailsBuilderList() { + return internalGetBackupPlanDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BackupPlanDetail, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder, + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder> + internalGetBackupPlanDetailsFieldBuilder() { + if (backupPlanDetailsBuilder_ == null) { + backupPlanDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BackupPlanDetail, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder, + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder>( + backupPlanDetails_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + backupPlanDetails_ = null; + } + return backupPlanDetailsBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp indicating when the binding was last created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.cloud.backupdr.v1.BindingEvaluationSummary bindingEvaluationSummary_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingEvaluationSummary, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder> + bindingEvaluationSummaryBuilder_; + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingEvaluationSummary field is set. + */ + public boolean hasBindingEvaluationSummary() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingEvaluationSummary. + */ + public com.google.cloud.backupdr.v1.BindingEvaluationSummary getBindingEvaluationSummary() { + if (bindingEvaluationSummaryBuilder_ == null) { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } else { + return bindingEvaluationSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBindingEvaluationSummary( + com.google.cloud.backupdr.v1.BindingEvaluationSummary value) { + if (bindingEvaluationSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bindingEvaluationSummary_ = value; + } else { + bindingEvaluationSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBindingEvaluationSummary( + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder builderForValue) { + if (bindingEvaluationSummaryBuilder_ == null) { + bindingEvaluationSummary_ = builderForValue.build(); + } else { + bindingEvaluationSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeBindingEvaluationSummary( + com.google.cloud.backupdr.v1.BindingEvaluationSummary value) { + if (bindingEvaluationSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && bindingEvaluationSummary_ != null + && bindingEvaluationSummary_ + != com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance()) { + getBindingEvaluationSummaryBuilder().mergeFrom(value); + } else { + bindingEvaluationSummary_ = value; + } + } else { + bindingEvaluationSummaryBuilder_.mergeFrom(value); + } + if (bindingEvaluationSummary_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBindingEvaluationSummary() { + bitField0_ = (bitField0_ & ~0x00000040); + bindingEvaluationSummary_ = null; + if (bindingEvaluationSummaryBuilder_ != null) { + bindingEvaluationSummaryBuilder_.dispose(); + bindingEvaluationSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder + getBindingEvaluationSummaryBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetBindingEvaluationSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder + getBindingEvaluationSummaryOrBuilder() { + if (bindingEvaluationSummaryBuilder_ != null) { + return bindingEvaluationSummaryBuilder_.getMessageOrBuilder(); + } else { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } + } + + /** + * + * + *
+     * Output only. The summary of the last policy application when the job has
+     * run.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingEvaluationSummary, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder> + internalGetBindingEvaluationSummaryFieldBuilder() { + if (bindingEvaluationSummaryBuilder_ == null) { + bindingEvaluationSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingEvaluationSummary, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder>( + getBindingEvaluationSummary(), getParentForChildren(), isClean()); + bindingEvaluationSummary_ = null; + } + return bindingEvaluationSummaryBuilder_; + } + + private int status_ = 0; + + /** + * + * + *
+     * Output only. The status of the applied auto protection policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Output only. The status of the applied auto protection policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the applied auto protection policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State getStatus() { + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State result = + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State.forNumber(status_); + return result == null + ? com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The status of the applied auto protection policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the applied auto protection policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000080); + status_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) + private static final com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy(); + } + + public static com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppliedAutoProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyOrBuilder.java new file mode 100644 index 000000000000..ae64df26b069 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyOrBuilder.java @@ -0,0 +1,371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface AppliedAutoProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.AppliedAutoProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Canonical resource name.
+   * Format:
+   * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Canonical resource name.
+   * Format:
+   * projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The full resource name of the AutoProtectionPolicyBinding that
+   * applies the source policy to a scope including this workload project. e.g.,
+   * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+   * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceBinding. + */ + java.lang.String getSourceBinding(); + + /** + * + * + *
+   * Output only. The full resource name of the AutoProtectionPolicyBinding that
+   * applies the source policy to a scope including this workload project. e.g.,
+   * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}.
+   * 
+ * + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceBinding. + */ + com.google.protobuf.ByteString getSourceBindingBytes(); + + /** + * + * + *
+   * Output only. The criteria resources must meet for this rule to apply. From
+   * AutoProtectionPolicy.criteria.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the criteria field is set. + */ + boolean hasCriteria(); + + /** + * + * + *
+   * Output only. The criteria resources must meet for this rule to apply. From
+   * AutoProtectionPolicy.criteria.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The criteria. + */ + com.google.cloud.backupdr.v1.Criteria getCriteria(); + + /** + * + * + *
+   * Output only. The criteria resources must meet for this rule to apply. From
+   * AutoProtectionPolicy.criteria.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.CriteriaOrBuilder getCriteriaOrBuilder(); + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getBackupPlanDetailsList(); + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.BackupPlanDetail getBackupPlanDetails(int index); + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBackupPlanDetailsCount(); + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBackupPlanDetailsOrBuilderList(); + + /** + * + * + *
+   * Output only. The set of backup plan configurations, mirroring the
+   * backup_plan_details from the source AutoProtectionPolicy. Each element
+   * specifies a backup plan for a given resource type.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp indicating when the binding was last created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The summary of the last policy application when the job has
+   * run.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingEvaluationSummary field is set. + */ + boolean hasBindingEvaluationSummary(); + + /** + * + * + *
+   * Output only. The summary of the last policy application when the job has
+   * run.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingEvaluationSummary. + */ + com.google.cloud.backupdr.v1.BindingEvaluationSummary getBindingEvaluationSummary(); + + /** + * + * + *
+   * Output only. The summary of the last policy application when the job has
+   * run.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder + getBindingEvaluationSummaryOrBuilder(); + + /** + * + * + *
+   * Output only. The status of the applied auto protection policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Output only. The status of the applied auto protection policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The status. + */ + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.State getStatus(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyProto.java new file mode 100644 index 000000000000..959cfcbcba30 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AppliedAutoProtectionPolicyProto.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public final class AppliedAutoProtectionPolicyProto extends com.google.protobuf.GeneratedFile { + private AppliedAutoProtectionPolicyProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppliedAutoProtectionPolicyProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ":google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto\022\030google.cloud.backu" + + "pdr.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\0323google/cloud" + + "/backupdr/v1/autoprotectionpolicy.proto\032:google/cloud/backupdr/v1/autoprotection" + + "policybinding.proto\032\037google/protobuf/timestamp.proto\"\343\006\n" + + "\033AppliedAutoProtectionPolicy\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022T\n" + + "\016source_binding\030\002 \001(\tB<\342A\001\003\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\022:\n" + + "\010criteria\030\003" + + " \001(\0132\".google.cloud.backupdr.v1.CriteriaB\004\342A\001\003\022M\n" + + "\023backup_plan_details\030\004 \003(\0132" + + "*.google.cloud.backupdr.v1.BackupPlanDetailB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\\\n" + + "\032binding_evaluation_summary\030\007 \001(\01322.go" + + "ogle.cloud.backupdr.v1.BindingEvaluationSummaryB\004\342A\001\003\022Q\n" + + "\006status\030\010 \001(\0162;.google.c" + + "loud.backupdr.v1.AppliedAutoProtectionPolicy.StateB\004\342A\001\003\"P\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\026\n" + + "\022DELETION_INITIATED\020\003:\335\001\352A\331\001\n" + + "3backupdr.googleapis.com/AppliedAutoProtectionPolicy\022f" + + "projects/{project}/locations/{location}/appliedAutoProtectionPolicies/{applied_a" + + "uto_protection_policy}*\035appliedAutoProte" + + "ctionPolicies2\033appliedAutoProtectionPolicy\"\307\001\n" + + "(ListAppliedAutoProtectionPoliciesRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\300\001\n" + + ")ListAppliedAutoProtectionPoliciesResponse\022_\n" + + " applied_auto_protection_policies\030\001" + + " \003(\01325.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006B\320\001\n" + + "\034com.google.cloud.backupdr.v1B AppliedAutoProtectionPolicyProtoP\001Z8cloud.goog" + + "le.com/go/backupdr/apiv1/backupdrpb;back" + + "updrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030Goog" + + "le\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.backupdr.v1.AutoProtectionPolicyProto.getDescriptor(), + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_AppliedAutoProtectionPolicy_descriptor, + new java.lang.String[] { + "Name", + "SourceBinding", + "Criteria", + "BackupPlanDetails", + "UpdateTime", + "CreateTime", + "BindingEvaluationSummary", + "Status", + }); + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_descriptor, + new java.lang.String[] { + "AppliedAutoProtectionPolicies", "NextPageToken", "Unreachable", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.backupdr.v1.AutoProtectionPolicyProto.getDescriptor(); + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetails.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetails.java new file mode 100644 index 000000000000..3744492b538b --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetails.java @@ -0,0 +1,1520 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * AutoProtectionDetails contains the protection details of a resource from the
+ * current binding's perspective.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AutoProtectionDetails} + */ +@com.google.protobuf.Generated +public final class AutoProtectionDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AutoProtectionDetails) + AutoProtectionDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AutoProtectionDetails"); + } + + // Use AutoProtectionDetails.newBuilder() to construct. + private AutoProtectionDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AutoProtectionDetails() { + state_ = 0; + backupPlanAssociation_ = ""; + dataSource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AutoProtectionDetails.class, + com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder.class); + } + + /** + * + * + *
+   * Enum for protection state of the resource.
+   * 
+ * + * Protobuf enum {@code google.cloud.backupdr.v1.AutoProtectionDetails.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * State unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Resource is protected.
+     * 
+ * + * PROTECTED = 1; + */ + PROTECTED(1), + /** + * + * + *
+     * Resource protection failed.
+     * 
+ * + * PROTECTION_FAILED = 2; + */ + PROTECTION_FAILED(2), + /** + * + * + *
+     * Resource is being unprotected.
+     * 
+ * + * UNPROTECTING = 3; + */ + UNPROTECTING(3), + /** + * + * + *
+     * Resource unprotection failed.
+     * 
+ * + * UNPROTECTION_FAILED = 4; + */ + UNPROTECTION_FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * State unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resource is protected.
+     * 
+ * + * PROTECTED = 1; + */ + public static final int PROTECTED_VALUE = 1; + + /** + * + * + *
+     * Resource protection failed.
+     * 
+ * + * PROTECTION_FAILED = 2; + */ + public static final int PROTECTION_FAILED_VALUE = 2; + + /** + * + * + *
+     * Resource is being unprotected.
+     * 
+ * + * UNPROTECTING = 3; + */ + public static final int UNPROTECTING_VALUE = 3; + + /** + * + * + *
+     * Resource unprotection failed.
+     * 
+ * + * UNPROTECTION_FAILED = 4; + */ + public static final int UNPROTECTION_FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PROTECTED; + case 2: + return PROTECTION_FAILED; + case 3: + return UNPROTECTING; + case 4: + return UNPROTECTION_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionDetails.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.AutoProtectionDetails.State) + } + + private int bitField0_; + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Protection state of the resource from the current binding's
+   * perspective. Output only.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. Protection state of the resource from the current binding's
+   * perspective. Output only.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails.State getState() { + com.google.cloud.backupdr.v1.AutoProtectionDetails.State result = + com.google.cloud.backupdr.v1.AutoProtectionDetails.State.forNumber(state_); + return result == null + ? com.google.cloud.backupdr.v1.AutoProtectionDetails.State.UNRECOGNIZED + : result; + } + + public static final int BACKUP_PLAN_ASSOCIATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupPlanAssociation_ = ""; + + /** + * + * + *
+   * Output only. Resource name of backup plan association linked to the
+   * resource, if any. Format:
+   * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+   * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupPlanAssociation. + */ + @java.lang.Override + public java.lang.String getBackupPlanAssociation() { + java.lang.Object ref = backupPlanAssociation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupPlanAssociation_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Resource name of backup plan association linked to the
+   * resource, if any. Format:
+   * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+   * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupPlanAssociation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupPlanAssociationBytes() { + java.lang.Object ref = backupPlanAssociation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupPlanAssociation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSource_ = ""; + + /** + * + * + *
+   * Output only. Resource name of the datasource linked to the resource, if
+   * any. Format:
+   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+   * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The dataSource. + */ + @java.lang.Override + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Resource name of the datasource linked to the resource, if
+   * any. Format:
+   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+   * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 4; + private com.google.rpc.Status error_; + + /** + * + * + *
+   * Output only. Error during last sync for protection/unprotection, if any.
+   * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Error during last sync for protection/unprotection, if any.
+   * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
+   * Output only. Error during last sync for protection/unprotection, if any.
+   * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + 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 (state_ + != com.google.cloud.backupdr.v1.AutoProtectionDetails.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanAssociation_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, backupPlanAssociation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.backupdr.v1.AutoProtectionDetails.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanAssociation_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, backupPlanAssociation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.AutoProtectionDetails)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.AutoProtectionDetails other = + (com.google.cloud.backupdr.v1.AutoProtectionDetails) obj; + + if (state_ != other.state_) return false; + if (!getBackupPlanAssociation().equals(other.getBackupPlanAssociation())) return false; + if (!getDataSource().equals(other.getDataSource())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + BACKUP_PLAN_ASSOCIATION_FIELD_NUMBER; + hash = (53 * hash) + getBackupPlanAssociation().hashCode(); + hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataSource().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.AutoProtectionDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * AutoProtectionDetails contains the protection details of a resource from the
+   * current binding's perspective.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AutoProtectionDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.AutoProtectionDetails) + com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AutoProtectionDetails.class, + com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.AutoProtectionDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + backupPlanAssociation_ = ""; + dataSource_ = ""; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails build() { + com.google.cloud.backupdr.v1.AutoProtectionDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails buildPartial() { + com.google.cloud.backupdr.v1.AutoProtectionDetails result = + new com.google.cloud.backupdr.v1.AutoProtectionDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.AutoProtectionDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupPlanAssociation_ = backupPlanAssociation_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataSource_ = dataSource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.AutoProtectionDetails) { + return mergeFrom((com.google.cloud.backupdr.v1.AutoProtectionDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.AutoProtectionDetails other) { + if (other == com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getBackupPlanAssociation().isEmpty()) { + backupPlanAssociation_ = other.backupPlanAssociation_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDataSource().isEmpty()) { + dataSource_ = other.dataSource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + 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: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + backupPlanAssociation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + dataSource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetErrorFieldBuilder().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 int state_ = 0; + + /** + * + * + *
+     * Output only. Protection state of the resource from the current binding's
+     * perspective. Output only.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. Protection state of the resource from the current binding's
+     * perspective. Output only.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Protection state of the resource from the current binding's
+     * perspective. Output only.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails.State getState() { + com.google.cloud.backupdr.v1.AutoProtectionDetails.State result = + com.google.cloud.backupdr.v1.AutoProtectionDetails.State.forNumber(state_); + return result == null + ? com.google.cloud.backupdr.v1.AutoProtectionDetails.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Protection state of the resource from the current binding's
+     * perspective. Output only.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.backupdr.v1.AutoProtectionDetails.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Protection state of the resource from the current binding's
+     * perspective. Output only.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object backupPlanAssociation_ = ""; + + /** + * + * + *
+     * Output only. Resource name of backup plan association linked to the
+     * resource, if any. Format:
+     * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+     * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupPlanAssociation. + */ + public java.lang.String getBackupPlanAssociation() { + java.lang.Object ref = backupPlanAssociation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupPlanAssociation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Resource name of backup plan association linked to the
+     * resource, if any. Format:
+     * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+     * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupPlanAssociation. + */ + public com.google.protobuf.ByteString getBackupPlanAssociationBytes() { + java.lang.Object ref = backupPlanAssociation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupPlanAssociation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Resource name of backup plan association linked to the
+     * resource, if any. Format:
+     * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+     * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The backupPlanAssociation to set. + * @return This builder for chaining. + */ + public Builder setBackupPlanAssociation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupPlanAssociation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of backup plan association linked to the
+     * resource, if any. Format:
+     * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+     * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBackupPlanAssociation() { + backupPlanAssociation_ = getDefaultInstance().getBackupPlanAssociation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of backup plan association linked to the
+     * resource, if any. Format:
+     * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+     * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for backupPlanAssociation to set. + * @return This builder for chaining. + */ + public Builder setBackupPlanAssociationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlanAssociation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dataSource_ = ""; + + /** + * + * + *
+     * Output only. Resource name of the datasource linked to the resource, if
+     * any. Format:
+     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+     * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The dataSource. + */ + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Resource name of the datasource linked to the resource, if
+     * any. Format:
+     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+     * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataSource. + */ + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Resource name of the datasource linked to the resource, if
+     * any. Format:
+     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+     * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of the datasource linked to the resource, if
+     * any. Format:
+     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+     * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataSource() { + dataSource_ = getDefaultInstance().getDataSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of the datasource linked to the resource, if
+     * any. Format:
+     * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+     * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000008); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
+     * Output only. Error during last sync for protection/unprotection, if any.
+     * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.AutoProtectionDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AutoProtectionDetails) + private static final com.google.cloud.backupdr.v1.AutoProtectionDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.AutoProtectionDetails(); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoProtectionDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetailsOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetailsOrBuilder.java new file mode 100644 index 000000000000..be6099a010b0 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionDetailsOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface AutoProtectionDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.AutoProtectionDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Protection state of the resource from the current binding's
+   * perspective. Output only.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Protection state of the resource from the current binding's
+   * perspective. Output only.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.backupdr.v1.AutoProtectionDetails.State getState(); + + /** + * + * + *
+   * Output only. Resource name of backup plan association linked to the
+   * resource, if any. Format:
+   * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+   * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupPlanAssociation. + */ + java.lang.String getBackupPlanAssociation(); + + /** + * + * + *
+   * Output only. Resource name of backup plan association linked to the
+   * resource, if any. Format:
+   * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
+   * 
+ * + * + * string backup_plan_association = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupPlanAssociation. + */ + com.google.protobuf.ByteString getBackupPlanAssociationBytes(); + + /** + * + * + *
+   * Output only. Resource name of the datasource linked to the resource, if
+   * any. Format:
+   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+   * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The dataSource. + */ + java.lang.String getDataSource(); + + /** + * + * + *
+   * Output only. Resource name of the datasource linked to the resource, if
+   * any. Format:
+   * projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
+   * 
+ * + * + * string data_source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataSource. + */ + com.google.protobuf.ByteString getDataSourceBytes(); + + /** + * + * + *
+   * Output only. Error during last sync for protection/unprotection, if any.
+   * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
+   * Output only. Error during last sync for protection/unprotection, if any.
+   * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
+   * Output only. Error during last sync for protection/unprotection, if any.
+   * 
+ * + * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicy.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicy.java new file mode 100644 index 000000000000..e6664f9b16b4 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicy.java @@ -0,0 +1,3551 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * An AutoprotectionPolicy is a policy resource designed to automate backup
+ * management, moving from manual per-resource protection to a bulk approach.
+ * The policy dynamically discovers and applies a specified backup plan to all
+ * eligible resources that match its defined scope and criteria.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AutoProtectionPolicy} + */ +@com.google.protobuf.Generated +public final class AutoProtectionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AutoProtectionPolicy) + AutoProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AutoProtectionPolicy"); + } + + // Use AutoProtectionPolicy.newBuilder() to construct. + private AutoProtectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AutoProtectionPolicy() { + name_ = ""; + description_ = ""; + backupPlanDetails_ = java.util.Collections.emptyList(); + state_ = 0; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AutoProtectionPolicy.class, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder.class); + } + + /** + * + * + *
+   * The state of an AutoProtectionPolicy.
+   * 
+ * + * Protobuf enum {@code google.cloud.backupdr.v1.AutoProtectionPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state of the policy is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The policy is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The policy is active and protecting matching resources.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The policy is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The policy is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state of the policy is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The policy is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The policy is active and protecting matching resources.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The policy is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
+     * The policy is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return UPDATING; + case 4: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.AutoProtectionPolicy.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_PLAN_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List backupPlanDetails_; + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getBackupPlanDetailsList() { + return backupPlanDetails_; + } + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getBackupPlanDetailsOrBuilderList() { + return backupPlanDetails_; + } + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getBackupPlanDetailsCount() { + return backupPlanDetails_.size(); + } + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetail getBackupPlanDetails(int index) { + return backupPlanDetails_.get(index); + } + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder( + int index) { + return backupPlanDetails_.get(index); + } + + public static final int CRITERIA_FIELD_NUMBER = 4; + private com.google.cloud.backupdr.v1.Criteria criteria_; + + /** + * + * + *
+   * Required. The criteria for matching resources.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the criteria field is set. + */ + @java.lang.Override + public boolean hasCriteria() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The criteria for matching resources.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The criteria. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.Criteria getCriteria() { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } + + /** + * + * + *
+   * Required. The criteria for matching resources.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.CriteriaOrBuilder getCriteriaOrBuilder() { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.State getState() { + com.google.cloud.backupdr.v1.AutoProtectionPolicy.State result = + com.google.cloud.backupdr.v1.AutoProtectionPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.State.UNRECOGNIZED + : result; + } + + public static final int ETAG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. The etag for the policy.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 6; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The etag for the policy.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_SUMMARY_FIELD_NUMBER = 7; + private com.google.cloud.backupdr.v1.BindingSummary bindingSummary_; + + /** + * + * + *
+   * Output only. Summary of total count of different containers covered through
+   * this policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingSummary field is set. + */ + @java.lang.Override + public boolean hasBindingSummary() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Summary of total count of different containers covered through
+   * this policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingSummary. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingSummary getBindingSummary() { + return bindingSummary_ == null + ? com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance() + : bindingSummary_; + } + + /** + * + * + *
+   * Output only. Summary of total count of different containers covered through
+   * this policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingSummaryOrBuilder getBindingSummaryOrBuilder() { + return bindingSummary_ == null + ? com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance() + : bindingSummary_; + } + + public static final int POLICY_EVALUATION_SUMMARY_FIELD_NUMBER = 8; + private com.google.cloud.backupdr.v1.PolicyEvaluationSummary policyEvaluationSummary_; + + /** + * + * + *
+   * Output only. Summary of last policy evaluation when job was run per
+   * workload type.
+   * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the policyEvaluationSummary field is set. + */ + @java.lang.Override + public boolean hasPolicyEvaluationSummary() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Summary of last policy evaluation when job was run per
+   * workload type.
+   * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The policyEvaluationSummary. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary getPolicyEvaluationSummary() { + return policyEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance() + : policyEvaluationSummary_; + } + + /** + * + * + *
+   * Output only. Summary of last policy evaluation when job was run per
+   * workload type.
+   * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder + getPolicyEvaluationSummaryOrBuilder() { + return policyEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance() + : policyEvaluationSummary_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the policy was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the policy was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the policy was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the policy was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the policy was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the policy was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + for (int i = 0; i < backupPlanDetails_.size(); i++) { + output.writeMessage(3, backupPlanDetails_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCriteria()); + } + if (state_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicy.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getBindingSummary()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getPolicyEvaluationSummary()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(10, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + for (int i = 0; i < backupPlanDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, backupPlanDetails_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCriteria()); + } + if (state_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicy.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBindingSummary()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPolicyEvaluationSummary()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.AutoProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.AutoProtectionPolicy other = + (com.google.cloud.backupdr.v1.AutoProtectionPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getBackupPlanDetailsList().equals(other.getBackupPlanDetailsList())) return false; + if (hasCriteria() != other.hasCriteria()) return false; + if (hasCriteria()) { + if (!getCriteria().equals(other.getCriteria())) return false; + } + if (state_ != other.state_) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (hasBindingSummary() != other.hasBindingSummary()) return false; + if (hasBindingSummary()) { + if (!getBindingSummary().equals(other.getBindingSummary())) return false; + } + if (hasPolicyEvaluationSummary() != other.hasPolicyEvaluationSummary()) return false; + if (hasPolicyEvaluationSummary()) { + if (!getPolicyEvaluationSummary().equals(other.getPolicyEvaluationSummary())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getBackupPlanDetailsCount() > 0) { + hash = (37 * hash) + BACKUP_PLAN_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBackupPlanDetailsList().hashCode(); + } + if (hasCriteria()) { + hash = (37 * hash) + CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getCriteria().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasBindingSummary()) { + hash = (37 * hash) + BINDING_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getBindingSummary().hashCode(); + } + if (hasPolicyEvaluationSummary()) { + hash = (37 * hash) + POLICY_EVALUATION_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getPolicyEvaluationSummary().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.AutoProtectionPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An AutoprotectionPolicy is a policy resource designed to automate backup
+   * management, moving from manual per-resource protection to a bulk approach.
+   * The policy dynamically discovers and applies a specified backup plan to all
+   * eligible resources that match its defined scope and criteria.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AutoProtectionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.AutoProtectionPolicy) + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AutoProtectionPolicy.class, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.AutoProtectionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackupPlanDetailsFieldBuilder(); + internalGetCriteriaFieldBuilder(); + internalGetBindingSummaryFieldBuilder(); + internalGetPolicyEvaluationSummaryFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + if (backupPlanDetailsBuilder_ == null) { + backupPlanDetails_ = java.util.Collections.emptyList(); + } else { + backupPlanDetails_ = null; + backupPlanDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + criteria_ = null; + if (criteriaBuilder_ != null) { + criteriaBuilder_.dispose(); + criteriaBuilder_ = null; + } + state_ = 0; + etag_ = ""; + bindingSummary_ = null; + if (bindingSummaryBuilder_ != null) { + bindingSummaryBuilder_.dispose(); + bindingSummaryBuilder_ = null; + } + policyEvaluationSummary_ = null; + if (policyEvaluationSummaryBuilder_ != null) { + policyEvaluationSummaryBuilder_.dispose(); + policyEvaluationSummaryBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy build() { + com.google.cloud.backupdr.v1.AutoProtectionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy buildPartial() { + com.google.cloud.backupdr.v1.AutoProtectionPolicy result = + new com.google.cloud.backupdr.v1.AutoProtectionPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.AutoProtectionPolicy result) { + if (backupPlanDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + backupPlanDetails_ = java.util.Collections.unmodifiableList(backupPlanDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.backupPlanDetails_ = backupPlanDetails_; + } else { + result.backupPlanDetails_ = backupPlanDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.backupdr.v1.AutoProtectionPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.criteria_ = criteriaBuilder_ == null ? criteria_ : criteriaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.bindingSummary_ = + bindingSummaryBuilder_ == null ? bindingSummary_ : bindingSummaryBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.policyEvaluationSummary_ = + policyEvaluationSummaryBuilder_ == null + ? policyEvaluationSummary_ + : policyEvaluationSummaryBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.AutoProtectionPolicy) { + return mergeFrom((com.google.cloud.backupdr.v1.AutoProtectionPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.AutoProtectionPolicy other) { + if (other == com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (backupPlanDetailsBuilder_ == null) { + if (!other.backupPlanDetails_.isEmpty()) { + if (backupPlanDetails_.isEmpty()) { + backupPlanDetails_ = other.backupPlanDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.addAll(other.backupPlanDetails_); + } + onChanged(); + } + } else { + if (!other.backupPlanDetails_.isEmpty()) { + if (backupPlanDetailsBuilder_.isEmpty()) { + backupPlanDetailsBuilder_.dispose(); + backupPlanDetailsBuilder_ = null; + backupPlanDetails_ = other.backupPlanDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + backupPlanDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackupPlanDetailsFieldBuilder() + : null; + } else { + backupPlanDetailsBuilder_.addAllMessages(other.backupPlanDetails_); + } + } + } + if (other.hasCriteria()) { + mergeCriteria(other.getCriteria()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasBindingSummary()) { + mergeBindingSummary(other.getBindingSummary()); + } + if (other.hasPolicyEvaluationSummary()) { + mergePolicyEvaluationSummary(other.getPolicyEvaluationSummary()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.backupdr.v1.BackupPlanDetail m = + input.readMessage( + com.google.cloud.backupdr.v1.BackupPlanDetail.parser(), extensionRegistry); + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(m); + } else { + backupPlanDetailsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCriteriaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetBindingSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetPolicyEvaluationSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + 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 name_ = ""; + + /** + * + * + *
+     * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List backupPlanDetails_ = + java.util.Collections.emptyList(); + + private void ensureBackupPlanDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + backupPlanDetails_ = + new java.util.ArrayList( + backupPlanDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BackupPlanDetail, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder, + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder> + backupPlanDetailsBuilder_; + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getBackupPlanDetailsList() { + if (backupPlanDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupPlanDetails_); + } else { + return backupPlanDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getBackupPlanDetailsCount() { + if (backupPlanDetailsBuilder_ == null) { + return backupPlanDetails_.size(); + } else { + return backupPlanDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail getBackupPlanDetails(int index) { + if (backupPlanDetailsBuilder_ == null) { + return backupPlanDetails_.get(index); + } else { + return backupPlanDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail value) { + if (backupPlanDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.set(index, value); + onChanged(); + } else { + backupPlanDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail.Builder builderForValue) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + backupPlanDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addBackupPlanDetails(com.google.cloud.backupdr.v1.BackupPlanDetail value) { + if (backupPlanDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(value); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail value) { + if (backupPlanDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(index, value); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addBackupPlanDetails( + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder builderForValue) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(builderForValue.build()); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addBackupPlanDetails( + int index, com.google.cloud.backupdr.v1.BackupPlanDetail.Builder builderForValue) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + backupPlanDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllBackupPlanDetails( + java.lang.Iterable values) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupPlanDetails_); + onChanged(); + } else { + backupPlanDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackupPlanDetails() { + if (backupPlanDetailsBuilder_ == null) { + backupPlanDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + backupPlanDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeBackupPlanDetails(int index) { + if (backupPlanDetailsBuilder_ == null) { + ensureBackupPlanDetailsIsMutable(); + backupPlanDetails_.remove(index); + onChanged(); + } else { + backupPlanDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail.Builder getBackupPlanDetailsBuilder( + int index) { + return internalGetBackupPlanDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder( + int index) { + if (backupPlanDetailsBuilder_ == null) { + return backupPlanDetails_.get(index); + } else { + return backupPlanDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getBackupPlanDetailsOrBuilderList() { + if (backupPlanDetailsBuilder_ != null) { + return backupPlanDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupPlanDetails_); + } + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail.Builder addBackupPlanDetailsBuilder() { + return internalGetBackupPlanDetailsFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.BackupPlanDetail.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.BackupPlanDetail.Builder addBackupPlanDetailsBuilder( + int index) { + return internalGetBackupPlanDetailsFieldBuilder() + .addBuilder(index, com.google.cloud.backupdr.v1.BackupPlanDetail.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The backup plan details for matching resources.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getBackupPlanDetailsBuilderList() { + return internalGetBackupPlanDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BackupPlanDetail, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder, + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder> + internalGetBackupPlanDetailsFieldBuilder() { + if (backupPlanDetailsBuilder_ == null) { + backupPlanDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BackupPlanDetail, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder, + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder>( + backupPlanDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + backupPlanDetails_ = null; + } + return backupPlanDetailsBuilder_; + } + + private com.google.cloud.backupdr.v1.Criteria criteria_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.Criteria, + com.google.cloud.backupdr.v1.Criteria.Builder, + com.google.cloud.backupdr.v1.CriteriaOrBuilder> + criteriaBuilder_; + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the criteria field is set. + */ + public boolean hasCriteria() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The criteria. + */ + public com.google.cloud.backupdr.v1.Criteria getCriteria() { + if (criteriaBuilder_ == null) { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } else { + return criteriaBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCriteria(com.google.cloud.backupdr.v1.Criteria value) { + if (criteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criteria_ = value; + } else { + criteriaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCriteria(com.google.cloud.backupdr.v1.Criteria.Builder builderForValue) { + if (criteriaBuilder_ == null) { + criteria_ = builderForValue.build(); + } else { + criteriaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCriteria(com.google.cloud.backupdr.v1.Criteria value) { + if (criteriaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && criteria_ != null + && criteria_ != com.google.cloud.backupdr.v1.Criteria.getDefaultInstance()) { + getCriteriaBuilder().mergeFrom(value); + } else { + criteria_ = value; + } + } else { + criteriaBuilder_.mergeFrom(value); + } + if (criteria_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCriteria() { + bitField0_ = (bitField0_ & ~0x00000008); + criteria_ = null; + if (criteriaBuilder_ != null) { + criteriaBuilder_.dispose(); + criteriaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.Criteria.Builder getCriteriaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCriteriaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.CriteriaOrBuilder getCriteriaOrBuilder() { + if (criteriaBuilder_ != null) { + return criteriaBuilder_.getMessageOrBuilder(); + } else { + return criteria_ == null + ? com.google.cloud.backupdr.v1.Criteria.getDefaultInstance() + : criteria_; + } + } + + /** + * + * + *
+     * Required. The criteria for matching resources.
+     * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.Criteria, + com.google.cloud.backupdr.v1.Criteria.Builder, + com.google.cloud.backupdr.v1.CriteriaOrBuilder> + internalGetCriteriaFieldBuilder() { + if (criteriaBuilder_ == null) { + criteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.Criteria, + com.google.cloud.backupdr.v1.Criteria.Builder, + com.google.cloud.backupdr.v1.CriteriaOrBuilder>( + getCriteria(), getParentForChildren(), isClean()); + criteria_ = null; + } + return criteriaBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.State getState() { + com.google.cloud.backupdr.v1.AutoProtectionPolicy.State result = + com.google.cloud.backupdr.v1.AutoProtectionPolicy.State.forNumber(state_); + return result == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.backupdr.v1.AutoProtectionPolicy.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. The etag for the policy.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 6; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The etag for the policy.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The etag for the policy.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 6; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The etag for the policy.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 6; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The etag for the policy.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 6; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.backupdr.v1.BindingSummary bindingSummary_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingSummary, + com.google.cloud.backupdr.v1.BindingSummary.Builder, + com.google.cloud.backupdr.v1.BindingSummaryOrBuilder> + bindingSummaryBuilder_; + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingSummary field is set. + */ + public boolean hasBindingSummary() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingSummary. + */ + public com.google.cloud.backupdr.v1.BindingSummary getBindingSummary() { + if (bindingSummaryBuilder_ == null) { + return bindingSummary_ == null + ? com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance() + : bindingSummary_; + } else { + return bindingSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBindingSummary(com.google.cloud.backupdr.v1.BindingSummary value) { + if (bindingSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bindingSummary_ = value; + } else { + bindingSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBindingSummary( + com.google.cloud.backupdr.v1.BindingSummary.Builder builderForValue) { + if (bindingSummaryBuilder_ == null) { + bindingSummary_ = builderForValue.build(); + } else { + bindingSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeBindingSummary(com.google.cloud.backupdr.v1.BindingSummary value) { + if (bindingSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && bindingSummary_ != null + && bindingSummary_ + != com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance()) { + getBindingSummaryBuilder().mergeFrom(value); + } else { + bindingSummary_ = value; + } + } else { + bindingSummaryBuilder_.mergeFrom(value); + } + if (bindingSummary_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBindingSummary() { + bitField0_ = (bitField0_ & ~0x00000040); + bindingSummary_ = null; + if (bindingSummaryBuilder_ != null) { + bindingSummaryBuilder_.dispose(); + bindingSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BindingSummary.Builder getBindingSummaryBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetBindingSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BindingSummaryOrBuilder getBindingSummaryOrBuilder() { + if (bindingSummaryBuilder_ != null) { + return bindingSummaryBuilder_.getMessageOrBuilder(); + } else { + return bindingSummary_ == null + ? com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance() + : bindingSummary_; + } + } + + /** + * + * + *
+     * Output only. Summary of total count of different containers covered through
+     * this policy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingSummary, + com.google.cloud.backupdr.v1.BindingSummary.Builder, + com.google.cloud.backupdr.v1.BindingSummaryOrBuilder> + internalGetBindingSummaryFieldBuilder() { + if (bindingSummaryBuilder_ == null) { + bindingSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingSummary, + com.google.cloud.backupdr.v1.BindingSummary.Builder, + com.google.cloud.backupdr.v1.BindingSummaryOrBuilder>( + getBindingSummary(), getParentForChildren(), isClean()); + bindingSummary_ = null; + } + return bindingSummaryBuilder_; + } + + private com.google.cloud.backupdr.v1.PolicyEvaluationSummary policyEvaluationSummary_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.PolicyEvaluationSummary, + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder> + policyEvaluationSummaryBuilder_; + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the policyEvaluationSummary field is set. + */ + public boolean hasPolicyEvaluationSummary() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The policyEvaluationSummary. + */ + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary getPolicyEvaluationSummary() { + if (policyEvaluationSummaryBuilder_ == null) { + return policyEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance() + : policyEvaluationSummary_; + } else { + return policyEvaluationSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPolicyEvaluationSummary( + com.google.cloud.backupdr.v1.PolicyEvaluationSummary value) { + if (policyEvaluationSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policyEvaluationSummary_ = value; + } else { + policyEvaluationSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPolicyEvaluationSummary( + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder builderForValue) { + if (policyEvaluationSummaryBuilder_ == null) { + policyEvaluationSummary_ = builderForValue.build(); + } else { + policyEvaluationSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePolicyEvaluationSummary( + com.google.cloud.backupdr.v1.PolicyEvaluationSummary value) { + if (policyEvaluationSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && policyEvaluationSummary_ != null + && policyEvaluationSummary_ + != com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance()) { + getPolicyEvaluationSummaryBuilder().mergeFrom(value); + } else { + policyEvaluationSummary_ = value; + } + } else { + policyEvaluationSummaryBuilder_.mergeFrom(value); + } + if (policyEvaluationSummary_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPolicyEvaluationSummary() { + bitField0_ = (bitField0_ & ~0x00000080); + policyEvaluationSummary_ = null; + if (policyEvaluationSummaryBuilder_ != null) { + policyEvaluationSummaryBuilder_.dispose(); + policyEvaluationSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder + getPolicyEvaluationSummaryBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetPolicyEvaluationSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder + getPolicyEvaluationSummaryOrBuilder() { + if (policyEvaluationSummaryBuilder_ != null) { + return policyEvaluationSummaryBuilder_.getMessageOrBuilder(); + } else { + return policyEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance() + : policyEvaluationSummary_; + } + } + + /** + * + * + *
+     * Output only. Summary of last policy evaluation when job was run per
+     * workload type.
+     * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.PolicyEvaluationSummary, + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder> + internalGetPolicyEvaluationSummaryFieldBuilder() { + if (policyEvaluationSummaryBuilder_ == null) { + policyEvaluationSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.PolicyEvaluationSummary, + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder>( + getPolicyEvaluationSummary(), getParentForChildren(), isClean()); + policyEvaluationSummary_ = null; + } + return policyEvaluationSummaryBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the policy was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.AutoProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AutoProtectionPolicy) + private static final com.google.cloud.backupdr.v1.AutoProtectionPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.AutoProtectionPolicy(); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBinding.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..fe8b88a80235 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBinding.java @@ -0,0 +1,2539 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * An AutoProtectionPolicyBinding (APPA) acts as the bridge between an
+ * AutoProtectionPolicy and the scope (Project) where
+ * the policy should be applied.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AutoProtectionPolicyBinding} + */ +@com.google.protobuf.Generated +public final class AutoProtectionPolicyBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AutoProtectionPolicyBinding) + AutoProtectionPolicyBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AutoProtectionPolicyBinding"); + } + + // Use AutoProtectionPolicyBinding.newBuilder() to construct. + private AutoProtectionPolicyBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AutoProtectionPolicyBinding() { + name_ = ""; + description_ = ""; + state_ = 0; + scope_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.class, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder.class); + } + + /** + * + * + *
+   * The state of an AutoProtectionPolicyBinding.
+   * 
+ * + * Protobuf enum {@code google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state of the binding is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The binding is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The binding is active.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The binding deletion is initiated.
+     * 
+ * + * DELETION_INITIATED = 3; + */ + DELETION_INITIATED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state of the binding is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The binding is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The binding is active.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The binding deletion is initiated.
+     * 
+ * + * DELETION_INITIATED = 3; + */ + public static final int DELETION_INITIATED_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETION_INITIATED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicyBinding.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicyBinding.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State getState() { + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State result = + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State.forNumber(state_); + return result == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State.UNRECOGNIZED + : result; + } + + public static final int SCOPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object scope_ = ""; + + /** + * + * + *
+   * Required. Immutable. Resource Id of target container on which policy will
+   * be applied. Format: projects/{project_id}
+   * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + @java.lang.Override + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. Resource Id of target container on which policy will
+   * be applied. Format: projects/{project_id}
+   * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_EVALUATION_SUMMARY_FIELD_NUMBER = 5; + private com.google.cloud.backupdr.v1.BindingEvaluationSummary bindingEvaluationSummary_; + + /** + * + * + *
+   * Output only. Summaries of the last policy application when the job has run,
+   * with one entry per resource type specified in the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingEvaluationSummary field is set. + */ + @java.lang.Override + public boolean hasBindingEvaluationSummary() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Summaries of the last policy application when the job has run,
+   * with one entry per resource type specified in the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingEvaluationSummary. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummary getBindingEvaluationSummary() { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } + + /** + * + * + *
+   * Output only. Summaries of the last policy application when the job has run,
+   * with one entry per resource type specified in the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder + getBindingEvaluationSummaryOrBuilder() { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the binding was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the binding was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the binding was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the binding was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the binding was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the binding was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. The etag for the binding.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The etag for the binding.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (state_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, scope_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getBindingEvaluationSummary()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (state_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scope_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, scope_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getBindingEvaluationSummary()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding other = + (com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (state_ != other.state_) return false; + if (!getScope().equals(other.getScope())) return false; + if (hasBindingEvaluationSummary() != other.hasBindingEvaluationSummary()) return false; + if (hasBindingEvaluationSummary()) { + if (!getBindingEvaluationSummary().equals(other.getBindingEvaluationSummary())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + if (hasBindingEvaluationSummary()) { + hash = (37 * hash) + BINDING_EVALUATION_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getBindingEvaluationSummary().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An AutoProtectionPolicyBinding (APPA) acts as the bridge between an
+   * AutoProtectionPolicy and the scope (Project) where
+   * the policy should be applied.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.AutoProtectionPolicyBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.AutoProtectionPolicyBinding) + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.class, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBindingEvaluationSummaryFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + state_ = 0; + scope_ = ""; + bindingEvaluationSummary_ = null; + if (bindingEvaluationSummaryBuilder_ != null) { + bindingEvaluationSummaryBuilder_.dispose(); + bindingEvaluationSummaryBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding build() { + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding buildPartial() { + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding result = + new com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scope_ = scope_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bindingEvaluationSummary_ = + bindingEvaluationSummaryBuilder_ == null + ? bindingEvaluationSummary_ + : bindingEvaluationSummaryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding) { + return mergeFrom((com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding other) { + if (other == com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getScope().isEmpty()) { + scope_ = other.scope_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasBindingEvaluationSummary()) { + mergeBindingEvaluationSummary(other.getBindingEvaluationSummary()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + scope_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetBindingEvaluationSummaryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + etag_ = input.readStringRequireUtf8(); + 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 name_ = ""; + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicyBinding.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicyBinding.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicyBinding.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State getState() { + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State result = + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State.forNumber(state_); + return result == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicyBinding.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the AutoProtectionPolicyBinding.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object scope_ = ""; + + /** + * + * + *
+     * Required. Immutable. Resource Id of target container on which policy will
+     * be applied. Format: projects/{project_id}
+     * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Resource Id of target container on which policy will
+     * be applied. Format: projects/{project_id}
+     * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + public com.google.protobuf.ByteString getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Resource Id of target container on which policy will
+     * be applied. Format: projects/{project_id}
+     * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Resource Id of target container on which policy will
+     * be applied. Format: projects/{project_id}
+     * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + scope_ = getDefaultInstance().getScope(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Resource Id of target container on which policy will
+     * be applied. Format: projects/{project_id}
+     * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.backupdr.v1.BindingEvaluationSummary bindingEvaluationSummary_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingEvaluationSummary, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder> + bindingEvaluationSummaryBuilder_; + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingEvaluationSummary field is set. + */ + public boolean hasBindingEvaluationSummary() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingEvaluationSummary. + */ + public com.google.cloud.backupdr.v1.BindingEvaluationSummary getBindingEvaluationSummary() { + if (bindingEvaluationSummaryBuilder_ == null) { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } else { + return bindingEvaluationSummaryBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBindingEvaluationSummary( + com.google.cloud.backupdr.v1.BindingEvaluationSummary value) { + if (bindingEvaluationSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bindingEvaluationSummary_ = value; + } else { + bindingEvaluationSummaryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBindingEvaluationSummary( + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder builderForValue) { + if (bindingEvaluationSummaryBuilder_ == null) { + bindingEvaluationSummary_ = builderForValue.build(); + } else { + bindingEvaluationSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeBindingEvaluationSummary( + com.google.cloud.backupdr.v1.BindingEvaluationSummary value) { + if (bindingEvaluationSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && bindingEvaluationSummary_ != null + && bindingEvaluationSummary_ + != com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance()) { + getBindingEvaluationSummaryBuilder().mergeFrom(value); + } else { + bindingEvaluationSummary_ = value; + } + } else { + bindingEvaluationSummaryBuilder_.mergeFrom(value); + } + if (bindingEvaluationSummary_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBindingEvaluationSummary() { + bitField0_ = (bitField0_ & ~0x00000010); + bindingEvaluationSummary_ = null; + if (bindingEvaluationSummaryBuilder_ != null) { + bindingEvaluationSummaryBuilder_.dispose(); + bindingEvaluationSummaryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder + getBindingEvaluationSummaryBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetBindingEvaluationSummaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder + getBindingEvaluationSummaryOrBuilder() { + if (bindingEvaluationSummaryBuilder_ != null) { + return bindingEvaluationSummaryBuilder_.getMessageOrBuilder(); + } else { + return bindingEvaluationSummary_ == null + ? com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance() + : bindingEvaluationSummary_; + } + } + + /** + * + * + *
+     * Output only. Summaries of the last policy application when the job has run,
+     * with one entry per resource type specified in the AutoProtectionPolicy.
+     * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingEvaluationSummary, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder> + internalGetBindingEvaluationSummaryFieldBuilder() { + if (bindingEvaluationSummaryBuilder_ == null) { + bindingEvaluationSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.BindingEvaluationSummary, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder, + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder>( + getBindingEvaluationSummary(), getParentForChildren(), isClean()); + bindingEvaluationSummary_ = null; + } + return bindingEvaluationSummaryBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the binding was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. The etag for the binding.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 8; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The etag for the binding.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The etag for the binding.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 8; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The etag for the binding.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 8; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The etag for the binding.
+     * If this is provided on update, it must match the server's etag.
+     * 
+ * + * string etag = 8; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.AutoProtectionPolicyBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AutoProtectionPolicyBinding) + private static final com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding(); + } + + public static com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoProtectionPolicyBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingName.java new file mode 100644 index 000000000000..c1765f4955aa --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingName.java @@ -0,0 +1,273 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AutoProtectionPolicyBindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autoProtectionPolicy; + private final String binding; + + @Deprecated + protected AutoProtectionPolicyBindingName() { + project = null; + location = null; + autoProtectionPolicy = null; + binding = null; + } + + private AutoProtectionPolicyBindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autoProtectionPolicy = Preconditions.checkNotNull(builder.getAutoProtectionPolicy()); + binding = Preconditions.checkNotNull(builder.getBinding()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutoProtectionPolicy() { + return autoProtectionPolicy; + } + + public String getBinding() { + return binding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AutoProtectionPolicyBindingName of( + String project, String location, String autoProtectionPolicy, String binding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutoProtectionPolicy(autoProtectionPolicy) + .setBinding(binding) + .build(); + } + + public static String format( + String project, String location, String autoProtectionPolicy, String binding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutoProtectionPolicy(autoProtectionPolicy) + .setBinding(binding) + .build() + .toString(); + } + + public static @Nullable AutoProtectionPolicyBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING.validatedMatch( + formattedString, + "AutoProtectionPolicyBindingName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("auto_protection_policy"), + matchMap.get("binding")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AutoProtectionPolicyBindingName> values) { + List list = new ArrayList<>(values.size()); + for (AutoProtectionPolicyBindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (autoProtectionPolicy != null) { + fieldMapBuilder.put("auto_protection_policy", autoProtectionPolicy); + } + if (binding != null) { + fieldMapBuilder.put("binding", binding); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING.instantiate( + "project", + project, + "location", + location, + "auto_protection_policy", + autoProtectionPolicy, + "binding", + binding); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AutoProtectionPolicyBindingName that = ((AutoProtectionPolicyBindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.autoProtectionPolicy, that.autoProtectionPolicy) + && Objects.equals(this.binding, that.binding); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(autoProtectionPolicy); + h *= 1000003; + h ^= Objects.hashCode(binding); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}. + */ + public static class Builder { + private String project; + private String location; + private String autoProtectionPolicy; + private String binding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutoProtectionPolicy() { + return autoProtectionPolicy; + } + + public String getBinding() { + return binding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutoProtectionPolicy(String autoProtectionPolicy) { + this.autoProtectionPolicy = autoProtectionPolicy; + return this; + } + + public Builder setBinding(String binding) { + this.binding = binding; + return this; + } + + private Builder(AutoProtectionPolicyBindingName autoProtectionPolicyBindingName) { + this.project = autoProtectionPolicyBindingName.project; + this.location = autoProtectionPolicyBindingName.location; + this.autoProtectionPolicy = autoProtectionPolicyBindingName.autoProtectionPolicy; + this.binding = autoProtectionPolicyBindingName.binding; + } + + public AutoProtectionPolicyBindingName build() { + return new AutoProtectionPolicyBindingName(this); + } + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingOrBuilder.java new file mode 100644 index 000000000000..88052af555cc --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingOrBuilder.java @@ -0,0 +1,307 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface AutoProtectionPolicyBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.AutoProtectionPolicyBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicyBinding.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicyBinding.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.State getState(); + + /** + * + * + *
+   * Required. Immutable. Resource Id of target container on which policy will
+   * be applied. Format: projects/{project_id}
+   * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The scope. + */ + java.lang.String getScope(); + + /** + * + * + *
+   * Required. Immutable. Resource Id of target container on which policy will
+   * be applied. Format: projects/{project_id}
+   * 
+ * + * + * string scope = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for scope. + */ + com.google.protobuf.ByteString getScopeBytes(); + + /** + * + * + *
+   * Output only. Summaries of the last policy application when the job has run,
+   * with one entry per resource type specified in the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingEvaluationSummary field is set. + */ + boolean hasBindingEvaluationSummary(); + + /** + * + * + *
+   * Output only. Summaries of the last policy application when the job has run,
+   * with one entry per resource type specified in the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingEvaluationSummary. + */ + com.google.cloud.backupdr.v1.BindingEvaluationSummary getBindingEvaluationSummary(); + + /** + * + * + *
+   * Output only. Summaries of the last policy application when the job has run,
+   * with one entry per resource type specified in the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingEvaluationSummary binding_evaluation_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder + getBindingEvaluationSummaryOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the binding was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the binding was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the binding was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the binding was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the binding was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the binding was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The etag for the binding.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. The etag for the binding.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingProto.java new file mode 100644 index 000000000000..e907aeec08f8 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyBindingProto.java @@ -0,0 +1,233 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public final class AutoProtectionPolicyBindingProto extends com.google.protobuf.GeneratedFile { + private AutoProtectionPolicyBindingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AutoProtectionPolicyBindingProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ":google/cloud/backupdr/v1/autoprotectionpolicybinding.proto\022\030google.cloud.backu" + + "pdr.v1\032\037google/api/field_behavior.proto\032" + + "\033google/api/field_info.proto\032\031google/api" + + "/resource.proto\032\037google/protobuf/timestamp.proto\"\312\005\n" + + "\033AutoProtectionPolicyBinding\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022P\n" + + "\005state\030\003 \001(\0162;.google.cloud.b" + + "ackupdr.v1.AutoProtectionPolicyBinding.StateB\004\342A\001\003\022\032\n" + + "\005scope\030\004 \001(\tB\013\342A\002\002\005\372A\003\n" + + "\001*\022\\\n" + + "\032binding_evaluation_summary\030\005 \001(\01322.goo" + + "gle.cloud.backupdr.v1.BindingEvaluationSummaryB\004\342A\001\003\0225\n" + + "\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\014\n" + + "\004etag\030\010 \001(\t\"P\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\026\n" + + "\022DELETION_INITIATED\020\003:\340\001\352A\334\001\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\022j" + + "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_" + + "policy}/bindings/{binding}*\034autoProtecti" + + "onPolicyBindings2\033autoProtectionPolicyBinding\"\216\001\n" + + "\030BindingEvaluationSummary\022%\n" + + "\027matching_resource_count\030\001 \001(\003B\004\342A\001\003\022&\n" + + "\030protected_resource_count\030\002 \001(\003B\004\342A\001\003\022#\n" + + "\025failed_resource_count\030\003 \001(\003B\004\342A\001\003\"\251\002\n" + + "(CreateAutoProtectionPolicyBindingRequest\022E\n" + + "\006parent\030\001 \001(\tB5\342A\001\002\372A.\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\022/\n" + + "!auto_protection_policy_binding_id\030\002 \001(\tB\004\342A\001\002\022c\n" + + "\036auto_protection_policy_binding\030\003 \001(\01325.go" + + "ogle.cloud.backupdr.v1.AutoProtectionPolicyBindingB\004\342A\001\002\022 \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"s\n" + + "%GetAutoProtectionPolicyBindingRequest\022J\n" + + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\"\321\001\n" + + "\'ListAutoProtectionPolicyBindingsRequest\022E\n" + + "\006parent\030\001 \001(\tB5\342A\001\002\372A.\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\276\001\n" + + "(ListAutoProtectionPolicyBindingsResponse\022^\n" + + "\037auto_protection_policy_bindings\030\001 \003(\01325.google.cloud" + + ".backupdr.v1.AutoProtectionPolicyBinding\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\264\001\n" + + "0InitiateDeleteAutoProtectionPolicyBindingRequest\022J\n" + + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\022\022\n" + + "\004etag\030\002 \001(\tB\004\342A\001\001\022 \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001B\320\001\n" + + "\034com.google.cloud.backupdr.v1B AutoProtec" + + "tionPolicyBindingProtoP\001Z8cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdr" + + "pb\252\002\030Google.Cloud.BackupDR.V1\312\002\030Google\\C" + + "loud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicyBinding_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "Scope", + "BindingEvaluationSummary", + "CreateTime", + "UpdateTime", + "Etag", + }); + internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_descriptor, + new java.lang.String[] { + "MatchingResourceCount", "ProtectedResourceCount", "FailedResourceCount", + }); + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "AutoProtectionPolicyBindingId", "AutoProtectionPolicyBinding", "RequestId", + }); + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_descriptor, + new java.lang.String[] { + "AutoProtectionPolicyBindings", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "RequestId", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyName.java new file mode 100644 index 000000000000..7c71ec6515b6 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyName.java @@ -0,0 +1,235 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AutoProtectionPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTO_PROTECTION_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autoProtectionPolicy; + + @Deprecated + protected AutoProtectionPolicyName() { + project = null; + location = null; + autoProtectionPolicy = null; + } + + private AutoProtectionPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autoProtectionPolicy = Preconditions.checkNotNull(builder.getAutoProtectionPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutoProtectionPolicy() { + return autoProtectionPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AutoProtectionPolicyName of( + String project, String location, String autoProtectionPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutoProtectionPolicy(autoProtectionPolicy) + .build(); + } + + public static String format(String project, String location, String autoProtectionPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutoProtectionPolicy(autoProtectionPolicy) + .build() + .toString(); + } + + public static @Nullable AutoProtectionPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTO_PROTECTION_POLICY.validatedMatch( + formattedString, "AutoProtectionPolicyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("auto_protection_policy")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AutoProtectionPolicyName> values) { + List list = new ArrayList<>(values.size()); + for (AutoProtectionPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTO_PROTECTION_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (autoProtectionPolicy != null) { + fieldMapBuilder.put("auto_protection_policy", autoProtectionPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTO_PROTECTION_POLICY.instantiate( + "project", project, "location", location, "auto_protection_policy", autoProtectionPolicy); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AutoProtectionPolicyName that = ((AutoProtectionPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.autoProtectionPolicy, that.autoProtectionPolicy); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(autoProtectionPolicy); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}. + */ + public static class Builder { + private String project; + private String location; + private String autoProtectionPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutoProtectionPolicy() { + return autoProtectionPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutoProtectionPolicy(String autoProtectionPolicy) { + this.autoProtectionPolicy = autoProtectionPolicy; + return this; + } + + private Builder(AutoProtectionPolicyName autoProtectionPolicyName) { + this.project = autoProtectionPolicyName.project; + this.location = autoProtectionPolicyName.location; + this.autoProtectionPolicy = autoProtectionPolicyName.autoProtectionPolicy; + } + + public AutoProtectionPolicyName build() { + return new AutoProtectionPolicyName(this); + } + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyOrBuilder.java new file mode 100644 index 000000000000..916ec6aa444e --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyOrBuilder.java @@ -0,0 +1,430 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface AutoProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.AutoProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. The resource name of the AutoProtectionPolicy.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getBackupPlanDetailsList(); + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.BackupPlanDetail getBackupPlanDetails(int index); + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getBackupPlanDetailsCount(); + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getBackupPlanDetailsOrBuilderList(); + + /** + * + * + *
+   * Required. The backup plan details for matching resources.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.BackupPlanDetail backup_plan_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder getBackupPlanDetailsOrBuilder(int index); + + /** + * + * + *
+   * Required. The criteria for matching resources.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the criteria field is set. + */ + boolean hasCriteria(); + + /** + * + * + *
+   * Required. The criteria for matching resources.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The criteria. + */ + com.google.cloud.backupdr.v1.Criteria getCriteria(); + + /** + * + * + *
+   * Required. The criteria for matching resources.
+   * 
+ * + * + * .google.cloud.backupdr.v1.Criteria criteria = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.CriteriaOrBuilder getCriteriaOrBuilder(); + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current state of the AutoProtectionPolicy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicy.State getState(); + + /** + * + * + *
+   * Output only. The etag for the policy.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 6; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. The etag for the policy.
+   * If this is provided on update, it must match the server's etag.
+   * 
+ * + * string etag = 6; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. Summary of total count of different containers covered through
+   * this policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the bindingSummary field is set. + */ + boolean hasBindingSummary(); + + /** + * + * + *
+   * Output only. Summary of total count of different containers covered through
+   * this policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bindingSummary. + */ + com.google.cloud.backupdr.v1.BindingSummary getBindingSummary(); + + /** + * + * + *
+   * Output only. Summary of total count of different containers covered through
+   * this policy.
+   * 
+ * + * + * .google.cloud.backupdr.v1.BindingSummary binding_summary = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.BindingSummaryOrBuilder getBindingSummaryOrBuilder(); + + /** + * + * + *
+   * Output only. Summary of last policy evaluation when job was run per
+   * workload type.
+   * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the policyEvaluationSummary field is set. + */ + boolean hasPolicyEvaluationSummary(); + + /** + * + * + *
+   * Output only. Summary of last policy evaluation when job was run per
+   * workload type.
+   * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The policyEvaluationSummary. + */ + com.google.cloud.backupdr.v1.PolicyEvaluationSummary getPolicyEvaluationSummary(); + + /** + * + * + *
+   * Output only. Summary of last policy evaluation when job was run per
+   * workload type.
+   * 
+ * + * + * .google.cloud.backupdr.v1.PolicyEvaluationSummary policy_evaluation_summary = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder + getPolicyEvaluationSummaryOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the policy was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the policy was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the policy was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the policy was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the policy was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the policy was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyProto.java new file mode 100644 index 000000000000..5cd2d7891a11 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/AutoProtectionPolicyProto.java @@ -0,0 +1,338 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public final class AutoProtectionPolicyProto extends com.google.protobuf.GeneratedFile { + private AutoProtectionPolicyProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AutoProtectionPolicyProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_BackupPlanDetail_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_BackupPlanDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_Criteria_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_Criteria_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_MatchingCondition_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_MatchingCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_BindingSummary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_BindingSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_KeyValuePair_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_KeyValuePair_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_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" + + "3google/cloud/backupdr/v1/autoprotectio" + + "npolicy.proto\022\030google.cloud.backupdr.v1\032" + + "\037google/api/field_behavior.proto\032\033google" + + "/api/field_info.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\317\006\n" + + "\024AutoProtectionPolicy\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022M\n" + + "\023backup_plan_details\030\003" + + " \003(\0132*.google.cloud.backupdr.v1.BackupPlanDetailB\004\342A\001\002\022:\n" + + "\010criteria\030\004" + + " \001(\0132\".google.cloud.backupdr.v1.CriteriaB\004\342A\001\002\022I\n" + + "\005state\030\005 \001(\01624.google.cloud.ba" + + "ckupdr.v1.AutoProtectionPolicy.StateB\004\342A\001\003\022\014\n" + + "\004etag\030\006 \001(\t\022G\n" + + "\017binding_summary\030\007 \001(" + + "\0132(.google.cloud.backupdr.v1.BindingSummaryB\004\342A\001\003\022Z\n" + + "\031policy_evaluation_summary\030\010" + + " \001(\01321.google.cloud.backupdr.v1.PolicyEvaluationSummaryB\004\342A\001\003\0225\n" + + "\013create_time\030\t" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"T\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010UPDATING\020\003\022\014\n" + + "\010DELETING\020\004:\271\001\352A\265\001\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\022Wprojects" + + "/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}*" + + "\026autoProtectionPolicies2\024autoProtectionPolicy\"q\n" + + "\020BackupPlanDetail\022\033\n\r" + + "resource_type\030\001 \001(\tB\004\342A\001\002\022@\n" + + "\013backup_plan\030\002 \001(\tB+\342A\001\002\372A$\n" + + "\"backupdr.googleapis.com/BackupPlan\"Z\n" + + "\010Criteria\022N\n" + + "\023matching_conditions\030\001 \003(" + + "\0132+.google.cloud.backupdr.v1.MatchingConditionB\004\342A\001\002\"i\n" + + "\021MatchingCondition\022G\n" + + "\017label_condition\030\001" + + " \001(\0132&.google.cloud.backupdr.v1.KeyValuePairB\004\342A\001\001H\000B\013\n" + + "\tcondition\"\215\001\n" + + "\027PolicyEvaluationSummary\022%\n" + + "\027matching_resource_count\030\001 \001(\003B\004\342A\001\003\022&\n" + + "\030protected_resource_count\030\002 \001(\003B\004\342A\001\003\022#\n" + + "\025failed_resource_count\030\003 \001(\003B\004\342A\001\003\"-\n" + + "\016BindingSummary\022\033\n\r" + + "project_count\030\001 \001(\003B\004\342A\001\003\"7\n" + + "\014KeyValuePair\022\021\n" + + "\003key\030\001 \001(\tB\004\342A\001\002\022\024\n" + + "\006values\030\002 \003(\tB\004\342A\001\002\"\200\002\n" + + "!CreateAutoProtectionPolicyRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\'\n" + + "\031auto_protection_policy_id\030\002 \001(\tB\004\342A\001\002\022T\n" + + "\026auto_protection_policy\030\003" + + " \001(\0132..google.cloud.backupdr.v1.AutoProtectionPolicyB\004\342A\001\002\022 \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"e\n" + + "\036GetAutoProtectionPolicyRequest\022C\n" + + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\"\322\001\n" + + "!UpdateAutoProtectionPolicyRequest\022T\n" + + "\026auto_protection_policy\030\001 \001(\0132" + + "..google.cloud.backupdr.v1.AutoProtectionPolicyB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022" + + " \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\236\001\n" + + "!DeleteAutoProtectionPolicyRequest\022C\n" + + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\022\022\n" + + "\004etag\030\002 \001(\tB\004\342A\001\001\022 \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\300\001\n" + + "!ListAutoProtectionPoliciesRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!locations.googleapis.com/Location\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\252\001\n" + + "\"ListAutoProtectionPoliciesResponse\022P\n" + + "\030auto_protection_policies\030\001" + + " \003(\0132..google.cloud.backupdr.v1.AutoProtectionPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006B\311\001\n" + + "\034com.google.cloud.backupdr.v1B\031AutoProtection" + + "PolicyProtoP\001Z8cloud.google.com/go/backu" + + "pdr/apiv1/backupdrpb;backupdrpb\252\002\030Google" + + ".Cloud.BackupDR.V1\312\002\030Google\\Cloud\\Backup" + + "DR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_AutoProtectionPolicy_descriptor, + new java.lang.String[] { + "Name", + "Description", + "BackupPlanDetails", + "Criteria", + "State", + "Etag", + "BindingSummary", + "PolicyEvaluationSummary", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_backupdr_v1_BackupPlanDetail_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_backupdr_v1_BackupPlanDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_BackupPlanDetail_descriptor, + new java.lang.String[] { + "ResourceType", "BackupPlan", + }); + internal_static_google_cloud_backupdr_v1_Criteria_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_backupdr_v1_Criteria_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_Criteria_descriptor, + new java.lang.String[] { + "MatchingConditions", + }); + internal_static_google_cloud_backupdr_v1_MatchingCondition_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_backupdr_v1_MatchingCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_MatchingCondition_descriptor, + new java.lang.String[] { + "LabelCondition", "Condition", + }); + internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_descriptor, + new java.lang.String[] { + "MatchingResourceCount", "ProtectedResourceCount", "FailedResourceCount", + }); + internal_static_google_cloud_backupdr_v1_BindingSummary_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_backupdr_v1_BindingSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_BindingSummary_descriptor, + new java.lang.String[] { + "ProjectCount", + }); + internal_static_google_cloud_backupdr_v1_KeyValuePair_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_backupdr_v1_KeyValuePair_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_KeyValuePair_descriptor, + new java.lang.String[] { + "Key", "Values", + }); + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AutoProtectionPolicyId", "AutoProtectionPolicy", "RequestId", + }); + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_descriptor, + new java.lang.String[] { + "AutoProtectionPolicy", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "RequestId", + }); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_descriptor, + new java.lang.String[] { + "AutoProtectionPolicies", "NextPageToken", "Unreachable", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java index 972edc3f32a1..b8c35564371f 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java @@ -115,16 +115,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\033goo" + "gle/api/field_info.proto\032\031google/api/res" - + "ource.proto\032)google/cloud/backupdr/v1/backupplan.proto\0324google/cloud/backupdr/v1" - + "/backupplanassociation.proto\032*google/cloud/backupdr/v1/backupvault.proto\0323google" - + "/cloud/backupdr/v1/backupvault_cloudsql.proto\0322google/cloud/backupdr/v1/datasour" - + "cereference.proto\032#google/longrunning/op" - + "erations.proto\032\033google/protobuf/empty.pr" - + "oto\032\037google/protobuf/timestamp.proto\032\036google/protobuf/wrappers.proto\"\300\001\n\r" + + "ource.proto\032:google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto\0323google/" + + "cloud/backupdr/v1/autoprotectionpolicy.proto\032:google/cloud/backupdr/v1/autoprote" + + "ctionpolicybinding.proto\032)google/cloud/backupdr/v1/backupplan.proto\0324google/clou" + + "d/backupdr/v1/backupplanassociation.proto\032*google/cloud/backupdr/v1/backupvault." + + "proto\0323google/cloud/backupdr/v1/backupvault_cloudsql.proto\0326google/cloud/backupd" + + "r/v1/bindingmatchingresource.proto\0322google/cloud/backupdr/v1/datasourcereference" + + ".proto\032#google/longrunning/operations.pr" + + "oto\032\033google/protobuf/empty.proto\032\037google" + + "/protobuf/timestamp.proto\032\036google/protobuf/wrappers.proto\"\300\001\n\r" + "NetworkConfig\022\025\n" + "\007network\030\001 \001(\tB\004\342A\001\001\022O\n" - + "\014peering_mode\030\002" - + " \001(\01623.google.cloud.backupdr.v1.NetworkConfig.PeeringModeB\004\342A\001\001\"G\n" + + "\014peering_mode\030\002 \001(\016" + + "23.google.cloud.backupdr.v1.NetworkConfig.PeeringModeB\004\342A\001\001\"G\n" + "\013PeeringMode\022\034\n" + "\030PEERING_MODE_UNSPECIFIED\020\000\022\032\n" + "\026PRIVATE_SERVICE_ACCESS\020\001\"8\n\r" @@ -140,27 +143,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ManagementServer\022\023\n" + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\031\n" + "\013description\030\t \001(\tB\004\342A\001\001\022L\n" - + "\006labels\030\004 \003(\01326.google.cloud.backupd" - + "r.v1.ManagementServer.LabelsEntryB\004\342A\001\001\0225\n" + + "\006labels\030\004" + + " \003(\01326.google.cloud.backupdr.v1.ManagementServer.LabelsEntryB\004\342A\001\001\0225\n" + "\013create_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022K\n" - + "\004type\030\016 " - + "\001(\01627.google.cloud.backupdr.v1.ManagementServer.InstanceTypeB\004\342A\001\001\022E\n" - + "\016management_uri\030\013" - + " \001(\0132\'.google.cloud.backupdr.v1.ManagementURIB\004\342A\001\003\022t\n" - + "\'workforce_identity_based_management_uri\030\020 \001(\0132=.google.clou" - + "d.backupdr.v1.WorkforceIdentityBasedManagementURIB\004\342A\001\003\022M\n" - + "\005state\030\007 \001(\01628.google." - + "cloud.backupdr.v1.ManagementServer.InstanceStateB\004\342A\001\003\022?\n" - + "\010networks\030\010 \003(\0132\'.googl" - + "e.cloud.backupdr.v1.NetworkConfigB\004\342A\001\001\022\022\n" + + "\004type\030\016 \001(\01627.googl" + + "e.cloud.backupdr.v1.ManagementServer.InstanceTypeB\004\342A\001\001\022E\n" + + "\016management_uri\030\013 \001(\0132" + + "\'.google.cloud.backupdr.v1.ManagementURIB\004\342A\001\003\022t\n" + + "\'workforce_identity_based_management_uri\030\020 \001(\0132=.google.cloud.backupdr." + + "v1.WorkforceIdentityBasedManagementURIB\004\342A\001\003\022M\n" + + "\005state\030\007 \001(\01628.google.cloud.backu" + + "pdr.v1.ManagementServer.InstanceStateB\004\342A\001\003\022?\n" + + "\010networks\030\010" + + " \003(\0132\'.google.cloud.backupdr.v1.NetworkConfigB\004\342A\001\001\022\022\n" + "\004etag\030\r" + " \001(\tB\004\342A\001\001\022\036\n" + "\020oauth2_client_id\030\017 \001(\tB\004\342A\001\003\022w\n" - + ")workforce_identity_based_oauth2_client_id\030\021 \001(\0132>.google.cloud.ba" - + "ckupdr.v1.WorkforceIdentityBasedOAuth2ClientIDB\004\342A\001\003\022\032\n" + + ")workforce_identity_based_oauth2_client_id\030\021" + + " \001(\0132>.google.cloud.backupdr.v1.W" + + "orkforceIdentityBasedOAuth2ClientIDB\004\342A\001\003\022\032\n" + "\014ba_proxy_uri\030\022 \003(\tB\004\342A\001\003\0227\n\r" + "satisfies_pzs\030\023" + " \001(\0132\032.google.protobuf.BoolValueB\004\342A\001\003\022\033\n\r" @@ -180,12 +184,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tREPAIRING\020\005\022\017\n" + "\013MAINTENANCE\020\006\022\t\n" + "\005ERROR\020\007:\241\001\352A\235\001\n" - + "(backupdr.googleapis.com/ManagementServer\022Lpro" - + "jects/{project}/locations/{location}/man" - + "agementServers/{managementserver}*\021managementServers2\020managementServer\"\344\001\n" + + "(backupdr.googleapis.com/ManagementServer\022Lprojects/{proj" + + "ect}/locations/{location}/managementServ" + + "ers/{managementserver}*\021managementServers2\020managementServer\"\344\001\n" + "\034ListManagementServersRequest\022A\n" - + "\006parent\030\001 \001(\tB" - + "1\342A\001\002\372A*\022(backupdr.googleapis.com/ManagementServer\022\027\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(b" + + "ackupdr.googleapis.com/ManagementServer\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\031\n" + "\006filter\030\004 \001(\tB\004\342A\001\001H\000\210\001\001\022\033\n" @@ -193,19 +197,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\013\n" + "\t_order_by\"\225\001\n" + "\035ListManagementServersResponse\022F\n" - + "\022management_servers\030\001 " - + "\003(\0132*.google.cloud.backupdr.v1.ManagementServer\022\027\n" + + "\022management_servers\030\001" + + " \003(\0132*.google.cloud.backupdr.v1.ManagementServer\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"]\n" + "\032GetManagementServerRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" + "(backupdr.googleapis.com/ManagementServer\"\355\001\n" + "\035CreateManagementServerRequest\022A\n" - + "\006parent\030\001 \001(\tB1" - + "\342A\001\002\372A*\022(backupdr.googleapis.com/ManagementServer\022\"\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(ba" + + "ckupdr.googleapis.com/ManagementServer\022\"\n" + "\024management_server_id\030\002 \001(\tB\004\342A\001\002\022K\n" - + "\021management_server\030\003 \001(\0132*.googl" - + "e.cloud.backupdr.v1.ManagementServerB\004\342A\001\002\022\030\n\n" + + "\021management_server\030\003" + + " \001(\0132*.google.cloud.backupdr.v1.ManagementServerB\004\342A\001\002\022\030\n\n" + "request_id\030\004 \001(\tB\004\342A\001\001\"z\n" + "\035DeleteManagementServerRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" @@ -215,8 +219,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\004\342A\001\002\022\033\n\r" + "resource_type\030\002 \001(\tB\004\342A\001\002\022 \n\n" + "request_id\030\003 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022x\n" - + "(cloud_sql_instance_initialization_config\030\004 \001(\0132>.goo" - + "gle.cloud.backupdr.v1.CloudSqlInstanceInitializationConfigB\004\342A\001\001H\000B\027\n" + + "(cloud_sql_instance_initialization_config\030\004 \001(\0132>.google.cloud.b" + + "ackupdr.v1.CloudSqlInstanceInitializationConfigB\004\342A\001\001H\000B\027\n" + "\025initialization_config\"P\n" + "\031InitializeServiceResponse\022\031\n" + "\021backup_vault_name\030\001 \001(\t\022\030\n" @@ -231,188 +235,238 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n" + "\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" + "\013api_version\030\007 \001(\tB\004\342A\001\003\022^\n" - + "\017additional_info\030\010 \003(\0132?.google.cloud." - + "backupdr.v1.OperationMetadata.AdditionalInfoEntryB\004\342A\001\003\0325\n" + + "\017additional_info\030\010 \003(\0132?.google.cloud.backupdr.v1" + + ".OperationMetadata.AdditionalInfoEntryB\004\342A\001\003\0325\n" + "\023AdditionalInfoEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\0012\324C\n" + + "\005value\030\002 \001(\t:\0028\0012\254[\n" + "\010BackupDR\022\320\001\n" - + "\025ListManagementServers\0226.google.cloud.backupdr.v1.ListManagementServersRe" - + "quest\0327.google.cloud.backupdr.v1.ListMan" - + "agementServersResponse\"F\332A\006parent\202\323\344\223\0027\022" - + "5/v1/{parent=projects/*/locations/*}/managementServers\022\275\001\n" - + "\023GetManagementServer\0224.google.cloud.backupdr.v1.GetManagementS" - + "erverRequest\032*.google.cloud.backupdr.v1." - + "ManagementServer\"D\332A\004name\202\323\344\223\0027\0225/v1/{na" - + "me=projects/*/locations/*/managementServers/*}\022\233\002\n" - + "\026CreateManagementServer\0227.google.cloud.backupdr.v1.CreateManagementSer" - + "verRequest\032\035.google.longrunning.Operation\"\250\001\312A%\n" - + "\020ManagementServer\022\021OperationMetadata\332A-parent,management_server,manageme" - + "nt_server_id\202\323\344\223\002J\"5/v1/{parent=projects" - + "/*/locations/*}/managementServers:\021management_server\022\343\001\n" - + "\026DeleteManagementServer\0227.google.cloud.backupdr.v1.DeleteManagem" - + "entServerRequest\032\035.google.longrunning.Operation\"q\312A*\n" - + "\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=p" - + "rojects/*/locations/*/managementServers/*}\022\370\001\n" - + "\021CreateBackupVault\0222.google.cloud." - + "backupdr.v1.CreateBackupVaultRequest\032\035.google.longrunning.Operation\"\217\001\312A" - + " \n" - + "\013BackupVault\022\021OperationMetadata\332A#parent,backu" - + "p_vault,backup_vault_id\202\323\344\223\002@\"0/v1/{pare" - + "nt=projects/*/locations/*}/backupVaults:\014backup_vault\022\274\001\n" - + "\020ListBackupVaults\0221.google.cloud.backupdr.v1.ListBackupVaultsRe" - + "quest\0322.google.cloud.backupdr.v1.ListBac" - + "kupVaultsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/" - + "{parent=projects/*/locations/*}/backupVaults\022\335\001\n" - + "\027FetchUsableBackupVaults\0228.google.cloud.backupdr.v1.FetchUsableBackupVau" - + "ltsRequest\0329.google.cloud.backupdr.v1.Fe" - + "tchUsableBackupVaultsResponse\"M\332A\006parent" - + "\202\323\344\223\002>\022/v1/{parent=projects/*/locations/*/backupVaults/*}/dataSources\022\264\001\n\r" - + "GetDataSource\022..google.cloud.backupdr.v1.GetD" - + "ataSourceRequest\032$.google.cloud.backupdr" - + ".v1.DataSource\"M\332A\004name\202\323\344\223\002@\022>/v1/{name" - + "=projects/*/locations/*/backupVaults/*/dataSources/*}\022\202\002\n" - + "\020UpdateDataSource\0221.google.cloud.backupdr.v1.UpdateDataSourceRe" - + "quest\032\035.google.longrunning.Operation\"\233\001\312A\037\n\n" - + "DataSource\022\021OperationMetadata\332A\027data" - + "_source,update_mask\202\323\344\223\002Y2J/v1/{data_sou" - + "rce.name=projects/*/locations/*/backupVaults/*/dataSources/*}:\013data_source\022\305\001\n" - + "\013ListBackups\022,.google.cloud.backupdr.v1.Li" - + "stBackupsRequest\032-.google.cloud.backupdr" - + ".v1.ListBackupsResponse\"Y\332A\006parent\202\323\344\223\002J" - + "\022H/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups\022\230\002\n" - + "\033FetchBackupsForResourceType\022<.google.clou" - + "d.backupdr.v1.FetchBackupsForResourceTypeRequest\032=.google.cloud.backupdr.v1.Fetc" - + "hBackupsForResourceTypeResponse\"|\332A\024pare" - + "nt,resource_type\202\323\344\223\002_\022]/v1/{parent=proj" - + "ects/*/locations/*/backupVaults/*/dataSo" - + "urces/*}/backups:fetchForResourceType\022\262\001\n" - + "\tGetBackup\022*.google.cloud.backupdr.v1.GetBackupRequest\032 .google.cloud.backupdr." - + "v1.Backup\"W\332A\004name\202\323\344\223\002J\022H/v1/{name=proj" - + "ects/*/locations/*/backupVaults/*/dataSources/*/backups/*}\022\361\001\n" - + "\014UpdateBackup\022-.go" - + "ogle.cloud.backupdr.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"\222\001\312A\033\n" - + "\006Backup\022\021OperationMetadata\332A\022backup,upda" - + "te_mask\202\323\344\223\002Y2O/v1/{backup.name=projects" - + "/*/locations/*/backupVaults/*/dataSources/*/backups/*}:\006backup\022\323\001\n" - + "\014DeleteBackup\022-.google.cloud.backupdr.v1.DeleteBackupR" - + "equest\032\035.google.longrunning.Operation\"u\312A\033\n" - + "\006Backup\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\002J*H/v1/{name=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}\022\360\001\n" - + "\r" - + "RestoreBackup\022..google.cloud.backupdr.v" - + "1.RestoreBackupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" - + "\025RestoreBackupRespon" - + "se\022\021OperationMetadata\332A\004name\202\323\344\223\002U\"P/v1/" - + "{name=projects/*/locations/*/backupVault" - + "s/*/dataSources/*/backups/*}:restore:\001*\022\361\001\n" - + "\020CreateBackupPlan\0221.google.cloud.back" - + "updr.v1.CreateBackupPlanRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" - + "BackupPlan\022\021OperationMetadata\332A!parent,backup_plan" - + ",backup_plan_id\202\323\344\223\002>\"//v1/{parent=proje" - + "cts/*/locations/*}/backupPlans:\013backup_plan\022\363\001\n" - + "\020UpdateBackupPlan\0221.google.cloud." - + "backupdr.v1.UpdateBackupPlanRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" - + "BackupPlan\022\021OperationMetadata\332A\027backup_plan,up" - + "date_mask\202\323\344\223\002J2;/v1/{backup_plan.name=p" - + "rojects/*/locations/*/backupPlans/*}:\013backup_plan\022\245\001\n\r" - + "GetBackupPlan\022..google.cloud.backupdr.v1.GetBackupPlanRequest\032$.go" - + "ogle.cloud.backupdr.v1.BackupPlan\">\332A\004na" - + "me\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/backupPlans/*}\022\270\001\n" - + "\017ListBackupPlans\0220.google.cloud.backupdr.v1.ListBackupPlans" - + "Request\0321.google.cloud.backupdr.v1.ListB" - + "ackupPlansResponse\"@\332A\006parent\202\323\344\223\0021\022//v1" - + "/{parent=projects/*/locations/*}/backupPlans\022\321\001\n" - + "\020DeleteBackupPlan\0221.google.cloud" - + ".backupdr.v1.DeleteBackupPlanRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025ListManagementServers\0226.google.cloud.backup" + + "dr.v1.ListManagementServersRequest\0327.google.cloud.backupdr.v1.ListManagementServ" + + "ersResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{paren" + + "t=projects/*/locations/*}/managementServers\022\275\001\n" + + "\023GetManagementServer\0224.google.cloud.backupdr.v1.GetManagementServerReques" + + "t\032*.google.cloud.backupdr.v1.ManagementS" + + "erver\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/managementServers/*}\022\233\002\n" + + "\026CreateManagementServer\0227.google.cloud.ba" + + "ckupdr.v1.CreateManagementServerRequest\032\035.google.longrunning.Operation\"\250\001\312A%\n" + + "\020ManagementServer\022\021OperationMetadata\332A-pare" + + "nt,management_server,management_server_i" + + "d\202\323\344\223\002J\"5/v1/{parent=projects/*/location" + + "s/*}/managementServers:\021management_server\022\343\001\n" + + "\026DeleteManagementServer\0227.google.cloud.backupdr.v1.DeleteManagementServerRe" + + "quest\032\035.google.longrunning.Operation\"q\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetad" + + "ata\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/locations/*/managementServers/*}\022\370\001\n" + + "\021CreateBackupVault\0222.google.cloud.backupdr.v1" + + ".CreateBackupVaultRequest\032\035.google.longrunning.Operation\"\217\001\312A \n" + + "\013BackupVault\022\021OperationMetadata\332A#parent,backup_vault,bac" + + "kup_vault_id\202\323\344\223\002@\"0/v1/{parent=projects" + + "/*/locations/*}/backupVaults:\014backup_vault\022\274\001\n" + + "\020ListBackupVaults\0221.google.cloud.backupdr.v1.ListBackupVaultsRequest\0322.goo" + + "gle.cloud.backupdr.v1.ListBackupVaultsRe" + + "sponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/backupVaults\022\335\001\n" + + "\027FetchUsableBackupVaults\0228.google.cloud.bac" + + "kupdr.v1.FetchUsableBackupVaultsRequest\0329.google.cloud.backupdr.v1.FetchUsableBa" + + "ckupVaultsResponse\"M\332A\006parent\202\323\344\223\002>\022/v1" + + "/{parent=projects/*/locations/*/backupVaults/*}/dataSources\022\264\001\n\r" + + "GetDataSource\022..google.cloud.backupdr.v1.GetDataSourceRe" + + "quest\032$.google.cloud.backupdr.v1.DataSou" + + "rce\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/*" + + "/locations/*/backupVaults/*/dataSources/*}\022\202\002\n" + + "\020UpdateDataSource\0221.google.cloud.b" + + "ackupdr.v1.UpdateDataSourceRequest\032\035.google.longrunning.Operation\"\233\001\312A\037\n\n" + + "DataSource\022\021OperationMetadata\332A\027data_source,upd" + + "ate_mask\202\323\344\223\002Y2J/v1/{data_source.name=pr" + + "ojects/*/locations/*/backupVaults/*/dataSources/*}:\013data_source\022\305\001\n" + + "\013ListBackups\022,.google.cloud.backupdr.v1.ListBackupsRe" + + "quest\032-.google.cloud.backupdr.v1.ListBac" + + "kupsResponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1/{pare" + + "nt=projects/*/locations/*/backupVaults/*/dataSources/*}/backups\022\230\002\n" + + "\033FetchBackupsForResourceType\022<.google.cloud.backupdr." + + "v1.FetchBackupsForResourceTypeRequest\032=.google.cloud.backupdr.v1.FetchBackupsFor" + + "ResourceTypeResponse\"|\332A\024parent,resource" + + "_type\202\323\344\223\002_\022]/v1/{parent=projects/*/loca" + + "tions/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType\022\262\001\n" + + "\tGetBackup\022*.google.cloud.backupdr.v1.GetBackupRequest\032" + + " .google.cloud.backupdr.v1.Backup\"W" + + "\332A\004name\202\323\344\223\002J\022H/v1/{name=projects/*/loca" + + "tions/*/backupVaults/*/dataSources/*/backups/*}\022\361\001\n" + + "\014UpdateBackup\022-.google.cloud." + + "backupdr.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"\222\001\312A\033\n" + + "\006Backup\022\021OperationMetadata\332A\022backup,update_mask\202\323\344\223" + + "\002Y2O/v1/{backup.name=projects/*/location" + + "s/*/backupVaults/*/dataSources/*/backups/*}:\006backup\022\323\001\n" + + "\014DeleteBackup\022-.google.cl" + + "oud.backupdr.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Backup\022\021OperationMetadata\332A\004name\202\323\344\223\002J*H/v1/{na" + + "me=projects/*/locations/*/backupVaults/*/dataSources/*/backups/*}\022\360\001\n\r" + + "RestoreBackup\022..google.cloud.backupdr.v1.RestoreBa" + + "ckupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" + + "\025RestoreBackupResponse\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002U\"P/v1/{name=proje" + + "cts/*/locations/*/backupVaults/*/dataSources/*/backups/*}:restore:\001*\022\361\001\n" + + "\020CreateBackupPlan\0221.google.cloud.backupdr.v1.Cre" + + "ateBackupPlanRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" + + "BackupPlan\022\021OperationMetadata\332A!parent,backup_plan,backup_pla" + + "n_id\202\323\344\223\002>\"//v1/{parent=projects/*/locations/*}/backupPlans:\013backup_plan\022\363\001\n" + + "\020UpdateBackupPlan\0221.google.cloud.backupdr.v1" + + ".UpdateBackupPlanRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" + + "BackupPlan\022\021OperationMetadata\332A\027backup_plan,update_mask\202\323" + + "\344\223\002J2;/v1/{backup_plan.name=projects/*/l" + + "ocations/*/backupPlans/*}:\013backup_plan\022\245\001\n\r" + + "GetBackupPlan\022..google.cloud.backupdr.v1.GetBackupPlanRequest\032$.google.cloud." + + "backupdr.v1.BackupPlan\">\332A\004name\202\323\344\223\0021\022//" + + "v1/{name=projects/*/locations/*/backupPlans/*}\022\270\001\n" + + "\017ListBackupPlans\0220.google.cloud.backupdr.v1.ListBackupPlansRequest\0321.g" + + "oogle.cloud.backupdr.v1.ListBackupPlansR" + + "esponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/backupPlans\022\321\001\n" + + "\020DeleteBackupPlan\0221.google.cloud.backupdr.v" + + "1.DeleteBackupPlanRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.E" + + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//v" + + "1/{name=projects/*/locations/*/backupPlans/*}\022\311\001\n" + + "\025GetBackupPlanRevision\0226.google.cloud.backupdr.v1.GetBackupPlanRevision" + + "Request\032,.google.cloud.backupdr.v1.Backu" + + "pPlanRevision\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=" + + "projects/*/locations/*/backupPlans/*/revisions/*}\022\334\001\n" + + "\027ListBackupPlanRevisions\0228.google.cloud.backupdr.v1.ListBackupPlanR" + + "evisionsRequest\0329.google.cloud.backupdr." + + "v1.ListBackupPlanRevisionsResponse\"L\332A\006p" + + "arent\202\323\344\223\002=\022;/v1/{parent=projects/*/locations/*/backupPlans/*}/revisions\022\301\002\n" + + "\033CreateBackupPlanAssociation\022<.google.cloud." + + "backupdr.v1.CreateBackupPlanAssociationR" + + "equest\032\035.google.longrunning.Operation\"\304\001\312A*\n" + + "\025BackupPlanAssociation\022\021OperationMet" + + "adata\332A9parent,backup_plan_association,b" + + "ackup_plan_association_id\202\323\344\223\002U\":/v1/{pa" + + "rent=projects/*/locations/*}/backupPlanAssociations:\027backup_plan_association\022\303\002\n" + + "\033UpdateBackupPlanAssociation\022<.google.cloud.backupdr.v1.UpdateBackupPlanAssociat" + + "ionRequest\032\035.google.longrunning.Operation\"\306\001\312A*\n" + + "\025BackupPlanAssociation\022\021OperationMetadata\332A#backup_plan_association,upda" + + "te_mask\202\323\344\223\002m2R/v1/{backup_plan_associat" + + "ion.name=projects/*/locations/*/backupPl" + + "anAssociations/*}:\027backup_plan_association\022\321\001\n" + + "\030GetBackupPlanAssociation\0229.google.cloud.backupdr.v1.GetBackupPlanAssociat" + + "ionRequest\032/.google.cloud.backupdr.v1.Ba" + + "ckupPlanAssociation\"I\332A\004name\202\323\344\223\002<\022:/v1/" + + "{name=projects/*/locations/*/backupPlanAssociations/*}\022\344\001\n" + + "\032ListBackupPlanAssociations\022;.google.cloud.backupdr.v1.ListBac" + + "kupPlanAssociationsRequest\032<.google.cloud.backupdr.v1.ListBackupPlanAssociations" + + "Response\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=p" + + "rojects/*/locations/*}/backupPlanAssociations\022\267\002\n" + + "*FetchBackupPlanAssociationsForResourceType\022K.google.cloud.backupdr.v1." + + "FetchBackupPlanAssociationsForResourceTypeRequest\032L.google.cloud.backupdr.v1.Fet" + + "chBackupPlanAssociationsForResourceTypeR" + + "esponse\"n\332A\024parent,resource_type\202\323\344\223\002Q\022O" + + "/v1/{parent=projects/*/locations/*}/back" + + "upPlanAssociations:fetchForResourceType\022\362\001\n" + + "\033DeleteBackupPlanAssociation\022<.google.cloud.backupdr.v1.DeleteBackupPlanAssoc" + + "iationRequest\032\035.google.longrunning.Operation\"v\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002<*:/v1/{name=proj" + + "ects/*/locations/*/backupPlanAssociations/*}\022\360\001\n\r" + + "TriggerBackup\022..google.cloud.ba" + + "ckupdr.v1.TriggerBackupRequest\032\035.google.longrunning.Operation\"\217\001\312A*\n" + + "\025BackupPlanAssociation\022\021OperationMetadata\332A\014name,rul" + + "e_id\202\323\344\223\002M\"H/v1/{name=projects/*/locatio" + + "ns/*/backupPlanAssociations/*}:triggerBackup:\001*\022\311\001\n" + + "\026GetDataSourceReference\0227.google.cloud.backupdr.v1.GetDataSourceRefer" + + "enceRequest\032-.google.cloud.backupdr.v1.D" + + "ataSourceReference\"G\332A\004name\202\323\344\223\002:\0228/v1/{" + + "name=projects/*/locations/*/dataSourceReferences/*}\022\334\001\n" + + "\030ListDataSourceReferences\0229.google.cloud.backupdr.v1.ListDataSour" + + "ceReferencesRequest\032:.google.cloud.backupdr.v1.ListDataSourceReferencesResponse\"" + + "I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/locations/*}/dataSourceReferences\022\257\002\n" + + "(FetchDataSourceReferencesForResourceType\022I.google.cloud.backupdr.v1.FetchDataSour" + + "ceReferencesForResourceTypeRequest\032J.google.cloud.backupdr.v1.FetchDataSourceRef" + + "erencesForResourceTypeResponse\"l\332A\024paren" + + "t,resource_type\202\323\344\223\002O\022M/v1/{parent=proje" + + "cts/*/locations/*}/dataSourceReferences:fetchForResourceType\022\336\001\n" + + "\021InitializeService\0222.google.cloud.backupdr.v1.Initialize" + + "ServiceRequest\032\035.google.longrunning.Operation\"v\312A.\n" + + "\031InitializeServiceResponse\022\021O" + + "perationMetadata\202\323\344\223\002?\":/v1/{name=projec" + + "ts/*/locations/*/serviceConfig}:initialize:\001*\022\273\002\n" + + "\032CreateAutoProtectionPolicy\022;.google.cloud.backupdr.v1.CreateAutoProtec" + + "tionPolicyRequest\032\035.google.longrunning.Operation\"\300\001\312A)\n" + + "\024AutoProtectionPolicy\022\021OperationMetadata\332A7parent,auto_protection" + + "_policy,auto_protection_policy_id\202\323\344\223\002T\"" + + ":/v1/{parent=projects/*/locations/*}/aut" + + "oProtectionPolicies:\026auto_protection_policy\022\344\001\n" + + "\032ListAutoProtectionPolicies\022;.google.cloud.backupdr.v1.ListAutoProtection" + + "PoliciesRequest\032<.google.cloud.backupdr." + + "v1.ListAutoProtectionPoliciesResponse\"K\332" + + "A\006parent\202\323\344\223\002<\022:/v1/{parent=projects/*/locations/*}/autoProtectionPolicies\022\316\001\n" + + "\027GetAutoProtectionPolicy\0228.google.cloud.ba" + + "ckupdr.v1.GetAutoProtectionPolicyRequest\032..google.cloud.backupdr.v1.AutoProtecti" + + "onPolicy\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=proje" + + "cts/*/locations/*/autoProtectionPolicies/*}\022\275\002\n" + + "\032UpdateAutoProtectionPolicy\022;.google.cloud.backupdr.v1.UpdateAutoProtecti" + + "onPolicyRequest\032\035.google.longrunning.Operation\"\302\001\312A)\n" + + "\024AutoProtectionPolicy\022\021OperationMetadata\332A\"auto_protection_policy,u" + + "pdate_mask\202\323\344\223\002k2Q/v1/{auto_protection_p" + + "olicy.name=projects/*/locations/*/autoPr" + + "otectionPolicies/*}:\026auto_protection_policy\022\360\001\n" + + "\032DeleteAutoProtectionPolicy\022;.google.cloud.backupdr.v1.DeleteAutoProtecti" + + "onPolicyRequest\032\035.google.longrunning.Operation\"v\312A*\n" + + "\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002<*:/v1/{name=pr" + + "ojects/*/locations/*/autoProtectionPolicies/*}\022\363\002\n" + + "!CreateAutoProtectionPolicyBinding\022B.google.cloud.backupdr.v1.CreateAu" + + "toProtectionPolicyBindingRequest\032\035.google.longrunning.Operation\"\352\001\312A0\n" + + "\033AutoProtectionPolicyBinding\022\021OperationMetadata\332AG" + + "parent,auto_protection_policy_binding,au" + + "to_protection_policy_binding_id\202\323\344\223\002g\"E/" + + "v1/{parent=projects/*/locations/*/autoPr" + + "otectionPolicies/*}/bindings:\036auto_protection_policy_binding\022\356\001\n" + + "\036GetAutoProtectionPolicyBinding\022?.google.cloud.backupdr." + + "v1.GetAutoProtectionPolicyBindingRequest\0325.google.cloud.backupdr.v1.AutoProtecti" + + "onPolicyBinding\"T\332A\004name\202\323\344\223\002G\022E/v1/{nam" + + "e=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}\022\201\002\n" + + " ListAutoProtectionPolicyBindings\022A.google.cloud.backup" + + "dr.v1.ListAutoProtectionPolicyBindingsRequest\032B.google.cloud.backupdr.v1.ListAut" + + "oProtectionPolicyBindingsResponse\"V\332A\006pa" + + "rent\202\323\344\223\002G\022E/v1/{parent=projects/*/locat" + + "ions/*/autoProtectionPolicies/*}/bindings\022\200\002\n" + + "!ListAppliedAutoProtectionPolicies\022B.google.cloud.backupdr.v1.ListAppliedAu" + + "toProtectionPoliciesRequest\032C.google.cloud.backupdr.v1.ListAppliedAutoProtection" + + "PoliciesResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{" + + "parent=projects/*/locations/*}/appliedAutoProtectionPolicies\022\262\002\n" + + ")InitiateDeleteAutoProtectionPolicyBinding\022J.google.clou" + + "d.backupdr.v1.InitiateDeleteAutoProtecti" + + "onPolicyBindingRequest\032\035.google.longrunning.Operation\"\231\001\312A0\n" + + "\033AutoProtectionPolic" + + "yBinding\022\021OperationMetadata\332A\004name\202\323\344\223\002Y" + + "\"T/v1/{name=projects/*/locations/*/autoP" + + "rotectionPolicies/*/bindings/*}:initiateDelete:\001*\022\211\002\n" + + "\034ListBindingMatchingResources\022=.google.cloud.backupdr.v1.ListBindin" + + "gMatchingResourcesRequest\032>.google.cloud.backupdr.v1.ListBindingMatchingResource" + + "sResponse\"j\332A\006parent\202\323\344\223\002[\022Y/v1/{parent=" + + "projects/*/locations/*/autoProtectionPolicies/*/bindings/*}/matchingResources\032K\312" + + "A\027backupdr.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\275\001\n" + + "\034c", + "om.google.cloud.backupdr.v1B\rBackupDRPro" + + "toP\001Z8cloud.google.com/go/backupdr/apiv1" + + "/backupdrpb;backupdrpb\252\002\030Google.Cloud.Ba" + + "ckupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033G" + + "oogle::Cloud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -423,10 +477,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto.getDescriptor(), + com.google.cloud.backupdr.v1.AutoProtectionPolicyProto.getDescriptor(), + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto.getDescriptor(), com.google.cloud.backupdr.v1.BackupPlanProto.getDescriptor(), com.google.cloud.backupdr.v1.BackupPlanAssociationProto.getDescriptor(), com.google.cloud.backupdr.v1.BackupVaultProto.getDescriptor(), com.google.cloud.backupdr.v1.BackupvaultCloudSqlProto.getDescriptor(), + com.google.cloud.backupdr.v1.BindingMatchingResourceProto.getDescriptor(), com.google.cloud.backupdr.v1.DataSourceReferenceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -585,10 +643,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto.getDescriptor(); + com.google.cloud.backupdr.v1.AutoProtectionPolicyProto.getDescriptor(); + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto.getDescriptor(); com.google.cloud.backupdr.v1.BackupPlanProto.getDescriptor(); com.google.cloud.backupdr.v1.BackupPlanAssociationProto.getDescriptor(); com.google.cloud.backupdr.v1.BackupVaultProto.getDescriptor(); com.google.cloud.backupdr.v1.BackupvaultCloudSqlProto.getDescriptor(); + com.google.cloud.backupdr.v1.BindingMatchingResourceProto.getDescriptor(); com.google.cloud.backupdr.v1.DataSourceReferenceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java index e07f01153a65..4c3a64f08fc2 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java @@ -62,6 +62,7 @@ private BackupPlanAssociation() { dataSource_ = ""; backupPlanRevisionId_ = ""; backupPlanRevisionName_ = ""; + autoProtectionPolicyBinding_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -380,7 +381,7 @@ public ResourcePropertiesCase getResourcePropertiesCase() { * *
    * Output only. Identifier. The resource name of BackupPlanAssociation in
-   * below format Format :
+   * below format Format:
    * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
    * 
* @@ -408,7 +409,7 @@ public java.lang.String getName() { * *
    * Output only. Identifier. The resource name of BackupPlanAssociation in
-   * below format Format :
+   * below format Format:
    * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
    * 
* @@ -1161,6 +1162,67 @@ public com.google.protobuf.ByteString getBackupPlanRevisionNameBytes() { } } + public static final int AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoProtectionPolicyBinding_ = ""; + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this association, if any. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + @java.lang.Override + public java.lang.String getAutoProtectionPolicyBinding() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBinding_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this association, if any. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1221,6 +1283,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) resourceProperties_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBinding_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 16, autoProtectionPolicyBinding_); + } getUnknownFields().writeTo(output); } @@ -1278,6 +1343,10 @@ public int getSerializedSize() { (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) resourceProperties_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBinding_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(16, autoProtectionPolicyBinding_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1311,6 +1380,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDataSource().equals(other.getDataSource())) return false; if (!getBackupPlanRevisionId().equals(other.getBackupPlanRevisionId())) return false; if (!getBackupPlanRevisionName().equals(other.getBackupPlanRevisionName())) return false; + if (!getAutoProtectionPolicyBinding().equals(other.getAutoProtectionPolicyBinding())) + return false; if (!getResourcePropertiesCase().equals(other.getResourcePropertiesCase())) return false; switch (resourcePropertiesCase_) { case 10: @@ -1363,6 +1434,8 @@ public int hashCode() { hash = (53 * hash) + getBackupPlanRevisionId().hashCode(); hash = (37 * hash) + BACKUP_PLAN_REVISION_NAME_FIELD_NUMBER; hash = (53 * hash) + getBackupPlanRevisionName().hashCode(); + hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyBinding().hashCode(); switch (resourcePropertiesCase_) { case 10: hash = (37 * hash) + CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER; @@ -1558,6 +1631,7 @@ public Builder clear() { } backupPlanRevisionId_ = ""; backupPlanRevisionName_ = ""; + autoProtectionPolicyBinding_ = ""; resourcePropertiesCase_ = 0; resourceProperties_ = null; return this; @@ -1644,6 +1718,9 @@ private void buildPartial0(com.google.cloud.backupdr.v1.BackupPlanAssociation re if (((from_bitField0_ & 0x00001000) != 0)) { result.backupPlanRevisionName_ = backupPlanRevisionName_; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.autoProtectionPolicyBinding_ = autoProtectionPolicyBinding_; + } result.bitField0_ |= to_bitField0_; } @@ -1745,6 +1822,11 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupPlanAssociation othe bitField0_ |= 0x00001000; onChanged(); } + if (!other.getAutoProtectionPolicyBinding().isEmpty()) { + autoProtectionPolicyBinding_ = other.autoProtectionPolicyBinding_; + bitField0_ |= 0x00002000; + onChanged(); + } switch (other.getResourcePropertiesCase()) { case CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES: { @@ -1882,6 +1964,12 @@ public Builder mergeFrom( resourcePropertiesCase_ = 15; break; } // case 122 + case 130: + { + autoProtectionPolicyBinding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1922,7 +2010,7 @@ public Builder clearResourceProperties() { * *
      * Output only. Identifier. The resource name of BackupPlanAssociation in
-     * below format Format :
+     * below format Format:
      * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
      * 
* @@ -1949,7 +2037,7 @@ public java.lang.String getName() { * *
      * Output only. Identifier. The resource name of BackupPlanAssociation in
-     * below format Format :
+     * below format Format:
      * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
      * 
* @@ -1976,7 +2064,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Output only. Identifier. The resource name of BackupPlanAssociation in
-     * below format Format :
+     * below format Format:
      * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
      * 
* @@ -2002,7 +2090,7 @@ public Builder setName(java.lang.String value) { * *
      * Output only. Identifier. The resource name of BackupPlanAssociation in
-     * below format Format :
+     * below format Format:
      * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
      * 
* @@ -2024,7 +2112,7 @@ public Builder clearName() { * *
      * Output only. Identifier. The resource name of BackupPlanAssociation in
-     * below format Format :
+     * below format Format:
      * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
      * 
* @@ -4287,6 +4375,137 @@ public Builder setBackupPlanRevisionNameBytes(com.google.protobuf.ByteString val return this; } + private java.lang.Object autoProtectionPolicyBinding_ = ""; + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this association, if any. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + public java.lang.String getAutoProtectionPolicyBinding() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBinding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this association, if any. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this association, if any. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The autoProtectionPolicyBinding to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBinding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicyBinding_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this association, if any. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAutoProtectionPolicyBinding() { + autoProtectionPolicyBinding_ = getDefaultInstance().getAutoProtectionPolicyBinding(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this association, if any. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for autoProtectionPolicyBinding to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBindingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoProtectionPolicyBinding_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BackupPlanAssociation) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java index badaf36697fb..5b72e5eedc02 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java @@ -31,7 +31,7 @@ public interface BackupPlanAssociationOrBuilder * *
    * Output only. Identifier. The resource name of BackupPlanAssociation in
-   * below format Format :
+   * below format Format:
    * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
    * 
* @@ -48,7 +48,7 @@ public interface BackupPlanAssociationOrBuilder * *
    * Output only. Identifier. The resource name of BackupPlanAssociation in
-   * below format Format :
+   * below format Format:
    * projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
    * 
* @@ -528,6 +528,40 @@ public interface BackupPlanAssociationOrBuilder */ com.google.protobuf.ByteString getBackupPlanRevisionNameBytes(); + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this association, if any. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + java.lang.String getAutoProtectionPolicyBinding(); + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this association, if any. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes(); + com.google.cloud.backupdr.v1.BackupPlanAssociation.ResourcePropertiesCase getResourcePropertiesCase(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java index 62e04f58cec0..b20eda043160 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java @@ -100,7 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rce.proto\0322google/cloud/backupdr/v1/back" + "upvault_alloydb.proto\0323google/cloud/backupdr/v1/backupvault_cloudsql.proto\032 goog" + "le/protobuf/field_mask.proto\032\037google/pro" - + "tobuf/timestamp.proto\032\027google/rpc/status.proto\"\360\010\n" + + "tobuf/timestamp.proto\032\027google/rpc/status.proto\"\326\t\n" + "\025BackupPlanAssociation\022\023\n" + "\004name\030\001 \001(\tB\005\342A\002\010\003\022\034\n\r" + "resource_type\030\002 \001(\tB\005\342A\002\005\002\022\027\n" @@ -122,7 +122,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2alloydb_cluster_backup_plan_association_properties\030\017 \001(\0132G.google." + "cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesB\004\342A\001\003H\000\022%\n" + "\027backup_plan_revision_id\030\013 \001(\tB\004\342A\001\003\022\'\n" - + "\031backup_plan_revision_name\030\014 \001(\tB\004\342A\001\003\"b\n" + + "\031backup_plan_revision_name\030\014 \001(\tB\004\342A\001\003\022d\n" + + "\036auto_protection_policy_binding\030\020 \001(\tB<\342A\001\003\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\"b\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010CREATING\020\001\022\n\n" @@ -130,14 +132,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\014\n" + "\010INACTIVE\020\004\022\014\n" + "\010UPDATING\020\005:\274\001\352A\270\001\n" - + "-backupdr.googleapis.com/BackupPlanAssociation\022Xprojects/{pro" - + "ject}/locations/{location}/backupPlanAssociations/{backup_plan_association}*\026bac" - + "kupPlanAssociations2\025backupPlanAssociationB\025\n" + + "-backupdr.googleapis.com/BackupPlanAssociation\022Xprojects/{project}/locations/{l" + + "ocation}/backupPlanAssociations/{backup_" + + "plan_association}*\026backupPlanAssociations2\025backupPlanAssociationB\025\n" + "\023resource_properties\"\215\003\n" + "\016RuleConfigInfo\022\025\n" + "\007rule_id\030\001 \001(\tB\004\342A\001\003\022Y\n" - + "\021last_backup_state\030\003 \001(\01628.google.cloud.backupdr.v" - + "1.RuleConfigInfo.LastBackupStateB\004\342A\001\003\0223\n" + + "\021last_backup_state\030\003 \001(\01628.g" + + "oogle.cloud.backupdr.v1.RuleConfigInfo.LastBackupStateB\004\342A\001\003\0223\n" + "\021last_backup_error\030\004" + " \001(\0132\022.google.rpc.StatusB\004\342A\001\003\022Q\n" + "\'last_successful_backup_consistency_time\030\005" @@ -145,52 +147,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017LastBackupState\022!\n" + "\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIRST_BACKUP_PENDING\020\001\022\025\n" - + "\021PERMISSION_DENIED\020\002\022\r" - + "\n" + + "\021PERMISSION_DENIED\020\002\022\r\n" + "\tSUCCEEDED\020\003\022\n\n" + "\006FAILED\020\004\"\220\002\n" + "\"CreateBackupPlanAssociationRequest\022F\n" - + "\006parent\030\001 \001(\t" - + "B6\342A\001\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022(\n" + + "\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-backupd" + + "r.googleapis.com/BackupPlanAssociation\022(\n" + "\032backup_plan_association_id\030\002 \001(\tB\004\342A\001\002\022V\n" - + "\027backup_plan_association\030\003" - + " \001(\0132/.google.cloud.backupdr.v1.BackupPlanAssociationB\004\342A\001\002\022 \n\n" + + "\027backup_plan_association\030\003 \001(\0132/.goog" + + "le.cloud.backupdr.v1.BackupPlanAssociationB\004\342A\001\002\022 \n\n" + "request_id\030\004 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\264\001\n" + "!ListBackupPlanAssociationsRequest\022F\n" - + "\006parent\030\001 \001(\tB6\342A\001\002" - + "\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\027\n" + + "\006parent\030\001 \001(" + + "\tB6\342A\001\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"\245\001\n" + "\"ListBackupPlanAssociationsResponse\022Q\n" - + "\030backup_plan_associations\030\001 \003(\0132/.g" - + "oogle.cloud.backupdr.v1.BackupPlanAssociation\022\027\n" + + "\030backup_plan_associations\030\001" + + " \003(\0132/.google.cloud.backupdr.v1.BackupPlanAssociation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\371\001\n" + "1FetchBackupPlanAssociationsForResourceTypeRequest\022F\n" - + "\006parent\030\001 \001(" - + "\tB6\342A\001\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\033\n\r" + + "\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-backup" + + "dr.googleapis.com/BackupPlanAssociation\022\033\n\r" + "resource_type\030\002 \001(\tB\004\342A\001\002\022\027\n" + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\006 \001(\tB\004\342A\001\001\"\254\001\n" + "2FetchBackupPlanAssociationsForResourceTypeResponse\022W\n" - + "\030backup_plan_associations\030\001 \003(\0132/.googl" - + "e.cloud.backupdr.v1.BackupPlanAssociationB\004\342A\001\003\022\035\n" + + "\030backup_plan_associations\030\001" + + " \003(\0132/.google.cloud.backupdr.v1.BackupPlanAssociationB\004\342A\001\003\022\035\n" + "\017next_page_token\030\002 \001(\tB\004\342A\001\003\"g\n" + "\037GetBackupPlanAssociationRequest\022D\n" + "\004name\030\001 \001(\tB6\342A\001\002\372A/\n" - + "-backupdr.googleapis.com/BackupPlanAssociation\"\214\001\n" + + "-backupdr.googleapis.com/BackupPlanAssociation\"\362\001\n" + "\"DeleteBackupPlanAssociationRequest\022D\n" + "\004name\030\001 \001(\tB6\342A\001\002\372A/\n" + "-backupdr.googleapis.com/BackupPlanAssociation\022 \n\n" - + "request_id\030\002 \001(" - + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\325\001\n" + + "request_id\030\002 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022d\n" + + "\036auto_protection_policy_binding\030\003 \001(\tB<\342A\001\001\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\"\325\001\n" + "\"UpdateBackupPlanAssociationRequest\022V\n" - + "\027backup_plan_association\030\001 \001(\0132/" - + ".google.cloud.backupdr.v1.BackupPlanAssociationB\004\342A\001\002\0225\n" + + "\027backup_plan_association\030\001 \001" + + "(\0132/.google.cloud.backupdr.v1.BackupPlanAssociationB\004\342A\001\002\0225\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022" + " \n\n" + "request_id\030\003 \001(" @@ -201,11 +203,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007rule_id\030\002 \001(\tB\004\342A\001\002\022 \n\n" + "request_id\030\003 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001B\312\001\n" - + "\034com.google.cloud.backupdr.v1B\032BackupPlanAssociationProtoP\001Z8c" - + "loud.google.com/go/backupdr/apiv1/backup" - + "drpb;backupdrpb\252\002\030Google.Cloud.BackupDR." - + "V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::" - + "Cloud::BackupDR::V1b\006proto3" + + "\034com.google.cloud.backupdr.v1B\032BackupPlanAssociationProtoP" + + "\001Z8cloud.google.com/go/backupdr/apiv1/ba" + + "ckupdrpb;backupdrpb\252\002\030Google.Cloud.Backu" + + "pDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Goog" + + "le::Cloud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -239,6 +241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AlloydbClusterBackupPlanAssociationProperties", "BackupPlanRevisionId", "BackupPlanRevisionName", + "AutoProtectionPolicyBinding", "ResourceProperties", }); internal_static_google_cloud_backupdr_v1_RuleConfigInfo_descriptor = @@ -303,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_DeleteBackupPlanAssociationRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", + "Name", "RequestId", "AutoProtectionPolicyBinding", }); internal_static_google_cloud_backupdr_v1_UpdateBackupPlanAssociationRequest_descriptor = getDescriptor().getMessageType(9); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetail.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetail.java new file mode 100644 index 000000000000..c878e99a3abe --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetail.java @@ -0,0 +1,833 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * BackupPlanDetail defines configuration of protection.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BackupPlanDetail} + */ +@com.google.protobuf.Generated +public final class BackupPlanDetail extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BackupPlanDetail) + BackupPlanDetailOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BackupPlanDetail"); + } + + // Use BackupPlanDetail.newBuilder() to construct. + private BackupPlanDetail(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BackupPlanDetail() { + resourceType_ = ""; + backupPlan_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BackupPlanDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BackupPlanDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BackupPlanDetail.class, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + + /** + * + * + *
+   * Required. The type of resource that this policy will automatically protect.
+   * Allowed values are, `compute.googleapis.com/Instance` and
+   * `compute.googleapis.com/Disk` are supported.
+   * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The type of resource that this policy will automatically protect.
+   * Allowed values are, `compute.googleapis.com/Instance` and
+   * `compute.googleapis.com/Disk` are supported.
+   * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_PLAN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupPlan_ = ""; + + /** + * + * + *
+   * Required. The resource name of the BackupPlan to apply to resources that
+   * match the policy's criteria. This backup plan must be in the same location
+   * as AutoProtectionPolicy. Format:
+   * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+   * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backupPlan. + */ + @java.lang.Override + public java.lang.String getBackupPlan() { + java.lang.Object ref = backupPlan_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupPlan_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the BackupPlan to apply to resources that
+   * match the policy's criteria. This backup plan must be in the same location
+   * as AutoProtectionPolicy. Format:
+   * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+   * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupPlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupPlanBytes() { + java.lang.Object ref = backupPlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlan_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, backupPlan_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlan_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, backupPlan_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.BackupPlanDetail)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.BackupPlanDetail other = + (com.google.cloud.backupdr.v1.BackupPlanDetail) obj; + + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getBackupPlan().equals(other.getBackupPlan())) 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) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + BACKUP_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getBackupPlan().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.BackupPlanDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BackupPlanDetail defines configuration of protection.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BackupPlanDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BackupPlanDetail) + com.google.cloud.backupdr.v1.BackupPlanDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BackupPlanDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BackupPlanDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BackupPlanDetail.class, + com.google.cloud.backupdr.v1.BackupPlanDetail.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.BackupPlanDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceType_ = ""; + backupPlan_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BackupPlanDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetail getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.BackupPlanDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetail build() { + com.google.cloud.backupdr.v1.BackupPlanDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetail buildPartial() { + com.google.cloud.backupdr.v1.BackupPlanDetail result = + new com.google.cloud.backupdr.v1.BackupPlanDetail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.BackupPlanDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupPlan_ = backupPlan_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.BackupPlanDetail) { + return mergeFrom((com.google.cloud.backupdr.v1.BackupPlanDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupPlanDetail other) { + if (other == com.google.cloud.backupdr.v1.BackupPlanDetail.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackupPlan().isEmpty()) { + backupPlan_ = other.backupPlan_; + 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: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + backupPlan_ = 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 resourceType_ = ""; + + /** + * + * + *
+     * Required. The type of resource that this policy will automatically protect.
+     * Allowed values are, `compute.googleapis.com/Instance` and
+     * `compute.googleapis.com/Disk` are supported.
+     * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The type of resource that this policy will automatically protect.
+     * Allowed values are, `compute.googleapis.com/Instance` and
+     * `compute.googleapis.com/Disk` are supported.
+     * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The type of resource that this policy will automatically protect.
+     * Allowed values are, `compute.googleapis.com/Instance` and
+     * `compute.googleapis.com/Disk` are supported.
+     * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of resource that this policy will automatically protect.
+     * Allowed values are, `compute.googleapis.com/Instance` and
+     * `compute.googleapis.com/Disk` are supported.
+     * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of resource that this policy will automatically protect.
+     * Allowed values are, `compute.googleapis.com/Instance` and
+     * `compute.googleapis.com/Disk` are supported.
+     * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object backupPlan_ = ""; + + /** + * + * + *
+     * Required. The resource name of the BackupPlan to apply to resources that
+     * match the policy's criteria. This backup plan must be in the same location
+     * as AutoProtectionPolicy. Format:
+     * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+     * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backupPlan. + */ + public java.lang.String getBackupPlan() { + java.lang.Object ref = backupPlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupPlan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the BackupPlan to apply to resources that
+     * match the policy's criteria. This backup plan must be in the same location
+     * as AutoProtectionPolicy. Format:
+     * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+     * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupPlan. + */ + public com.google.protobuf.ByteString getBackupPlanBytes() { + java.lang.Object ref = backupPlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the BackupPlan to apply to resources that
+     * match the policy's criteria. This backup plan must be in the same location
+     * as AutoProtectionPolicy. Format:
+     * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+     * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The backupPlan to set. + * @return This builder for chaining. + */ + public Builder setBackupPlan(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupPlan_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the BackupPlan to apply to resources that
+     * match the policy's criteria. This backup plan must be in the same location
+     * as AutoProtectionPolicy. Format:
+     * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+     * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBackupPlan() { + backupPlan_ = getDefaultInstance().getBackupPlan(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the BackupPlan to apply to resources that
+     * match the policy's criteria. This backup plan must be in the same location
+     * as AutoProtectionPolicy. Format:
+     * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+     * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for backupPlan to set. + * @return This builder for chaining. + */ + public Builder setBackupPlanBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlan_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BackupPlanDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BackupPlanDetail) + private static final com.google.cloud.backupdr.v1.BackupPlanDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BackupPlanDetail(); + } + + public static com.google.cloud.backupdr.v1.BackupPlanDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupPlanDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupPlanDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetailOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetailOrBuilder.java new file mode 100644 index 000000000000..670365804396 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanDetailOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface BackupPlanDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BackupPlanDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type of resource that this policy will automatically protect.
+   * Allowed values are, `compute.googleapis.com/Instance` and
+   * `compute.googleapis.com/Disk` are supported.
+   * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + + /** + * + * + *
+   * Required. The type of resource that this policy will automatically protect.
+   * Allowed values are, `compute.googleapis.com/Instance` and
+   * `compute.googleapis.com/Disk` are supported.
+   * 
+ * + * string resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
+   * Required. The resource name of the BackupPlan to apply to resources that
+   * match the policy's criteria. This backup plan must be in the same location
+   * as AutoProtectionPolicy. Format:
+   * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+   * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backupPlan. + */ + java.lang.String getBackupPlan(); + + /** + * + * + *
+   * Required. The resource name of the BackupPlan to apply to resources that
+   * match the policy's criteria. This backup plan must be in the same location
+   * as AutoProtectionPolicy. Format:
+   * projects/{project}/locations/{location}/backupPlans/{backupPlanId}
+   * 
+ * + * + * string backup_plan = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupPlan. + */ + com.google.protobuf.ByteString getBackupPlanBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java index 9b4e16b281cd..7635e31a97b8 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java @@ -350,7 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSUCCEEDED\020\002\022\n\n" + "\006FAILED\020\003\022\025\n" + "\021PERMISSION_DENIED\020\004B\017\n\r" - + "backup_config\"\244\002\n" + + "backup_config\"\212\003\n" + "\017GcpBackupConfig\022<\n" + "\013backup_plan\030\001 \001(\tB\'\372A$\n" + "\"backupdr.googleapis.com/BackupPlan\022\037\n" @@ -359,7 +359,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-backupdr.googleapis.com/BackupPlanAssociation\022\031\n" + "\021backup_plan_rules\030\004 \003(\t\022!\n" + "\031backup_plan_revision_name\030\005 \001(\t\022\037\n" - + "\027backup_plan_revision_id\030\006 \001(\t\"\272\001\n" + + "\027backup_plan_revision_id\030\006 \001(\t\022d\n" + + "\036auto_protection_policy_binding\030\007 \001(\tB<\342A\001\003\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\"\272\001\n" + "\033BackupApplianceBackupConfig\022\035\n" + "\025backup_appliance_name\030\001 \001(\t\022\033\n" + "\023backup_appliance_id\030\002 \001(\003\022\016\n" @@ -372,14 +374,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020gcp_resourcename\030\001 \001(\tB\004\342A\001\003\022\020\n" + "\010location\030\002 \001(\t\022\014\n" + "\004type\030\003 \001(\t\022o\n" - + "&compute_instance_datasource_properties\030\004 \001(\0132=.google.cloud" - + ".backupdr.v1.ComputeInstanceDataSourcePropertiesH\000\022x\n" - + "(cloud_sql_instance_datasource_properties\030\005 \001(\0132>.google.cloud.back" - + "updr.v1.CloudSqlInstanceDataSourcePropertiesB\004\342A\001\003H\000\022t\n" - + "&alloy_db_cluster_datasource_properties\030\006 \001(\0132<.google.cloud.back" - + "updr.v1.AlloyDBClusterDataSourcePropertiesB\004\342A\001\003H\000\022X\n" - + "\032disk_datasource_properties\030\007" - + " \001(\01322.google.cloud.backupdr.v1.DiskDataSourcePropertiesH\000B\031\n" + + "&compute_instance_datasource_properties\030\004" + + " \001(\0132=.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesH\000\022x\n" + + "(cloud_sql_instance_datasource_properties\030\005 \001" + + "(\0132>.google.cloud.backupdr.v1.CloudSqlInstanceDataSourcePropertiesB\004\342A\001\003H\000\022t\n" + + "&alloy_db_cluster_datasource_properties\030\006 \001" + + "(\0132<.google.cloud.backupdr.v1.AlloyDBClusterDataSourcePropertiesB\004\342A\001\003H\000\022X\n" + + "\032disk_datasource_properties\030\007 \001(\01322.google.cl" + + "oud.backupdr.v1.DiskDataSourcePropertiesH\000B\031\n" + "\027gcp_resource_properties\"\271\001\n" + "$DataSourceBackupApplianceApplication\022\030\n" + "\020application_name\030\001 \001(\t\022\030\n" @@ -402,10 +404,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "BackupLock\0229\n" + "\017lock_until_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002\022W\n" - + "\032backup_appliance_lock_info\030\003 \001(\01321.goog" - + "le.cloud.backupdr.v1.BackupApplianceLockInfoH\000\022L\n" - + "\021service_lock_info\030\004 \001(\0132).goog" - + "le.cloud.backupdr.v1.ServiceLockInfoB\004\342A\001\003H\000B\020\n" + + "\032backup_appliance_lock_info\030\003" + + " \001(\01321.google.cloud.backupdr.v1.BackupApplianceLockInfoH\000\022L\n" + + "\021service_lock_info\030\004" + + " \001(\0132).google.cloud.backupdr.v1.ServiceLockInfoB\004\342A\001\003H\000B\020\n" + "\016ClientLockInfo\"\223\024\n" + "\006Backup\022\023\n" + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\036\n" @@ -418,8 +420,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132,.google.cloud.backupdr.v1.Backup.LabelsEntryB\004\342A\001\001\022J\n" + "\033enforced_retention_end_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001H\006\210\001\001\022q\n" - + "\034backup_retention_inheritance\030\036 \001(\0162@.google.cl" - + "oud.backupdr.v1.BackupVault.BackupRetentionInheritanceB\004\342A\001\003H\007\210\001\001\022:\n" + + "\034backup_retention_inheritance\030\036 \001(\0162@.google.cloud.backupdr.v1.Ba" + + "ckupVault.BackupRetentionInheritanceB\004\342A\001\003H\007\210\001\001\022:\n" + "\013expire_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001H\010\210\001\001\022?\n" + "\020consistency_time\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003H" @@ -428,29 +430,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022;\n" + "\005state\030\017" + " \001(\0162&.google.cloud.backupdr.v1.Backup.StateB\004\342A\001\003\022A\n\r" - + "service_locks\030\021" - + " \003(\0132$.google.cloud.backupdr.v1.BackupLockB\004\342A\001\003\022J\n" - + "\026backup_appliance_locks\030\022" - + " \003(\0132$.google.cloud.backupdr.v1.BackupLockB\004\342A\001\001\022m\n" - + "\"compute_instance_backup_properties\030\023 \001(\01329.google.cloud.b" - + "ackupdr.v1.ComputeInstanceBackupPropertiesB\004\342A\001\003H\000\022p\n" - + "$cloud_sql_instance_backup_properties\030\032 \001(\0132:.google.cloud.backupdr" - + ".v1.CloudSqlInstanceBackupPropertiesB\004\342A\001\003H\000\022m\n" - + "\"backup_appliance_backup_properties\030\025" - + " \001(\01329.google.cloud.backupdr.v1.BackupApplianceBackupPropertiesB\004\342A\001\003H\000\022d\n" - + "\032alloy_db_backup_properties\030\033 \001(\01328.google" - + ".cloud.backupdr.v1.AlloyDbClusterBackupPropertiesB\004\342A\001\003H\000\022V\n" - + "\026disk_backup_properties\030\034" - + " \001(\0132..google.cloud.backupdr.v1.DiskBackupPropertiesB\004\342A\001\003H\000\022F\n" - + "\013backup_type\030\024" - + " \001(\0162+.google.cloud.backupdr.v1.Backup.BackupTypeB\004\342A\001\003\022X\n" - + "\024gcp_backup_plan_info\030\026" - + " \001(\01322.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoB\004\342A\001\003H\001\022!\n" + + "service_locks\030\021 \003(" + + "\0132$.google.cloud.backupdr.v1.BackupLockB\004\342A\001\003\022J\n" + + "\026backup_appliance_locks\030\022 \003(\0132$." + + "google.cloud.backupdr.v1.BackupLockB\004\342A\001\001\022m\n" + + "\"compute_instance_backup_properties\030\023" + + " \001(\01329.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesB\004\342A\001\003H\000\022p\n" + + "$cloud_sql_instance_backup_properties\030\032 \001(\0132:" + + ".google.cloud.backupdr.v1.CloudSqlInstanceBackupPropertiesB\004\342A\001\003H\000\022m\n" + + "\"backup_appliance_backup_properties\030\025 \001(\01329.google." + + "cloud.backupdr.v1.BackupApplianceBackupPropertiesB\004\342A\001\003H\000\022d\n" + + "\032alloy_db_backup_properties\030\033 \001(\01328.google.cloud.backupdr.v1" + + ".AlloyDbClusterBackupPropertiesB\004\342A\001\003H\000\022V\n" + + "\026disk_backup_properties\030\034 \001(\0132..google" + + ".cloud.backupdr.v1.DiskBackupPropertiesB\004\342A\001\003H\000\022F\n" + + "\013backup_type\030\024 \001(\0162+.google.cl" + + "oud.backupdr.v1.Backup.BackupTypeB\004\342A\001\003\022X\n" + + "\024gcp_backup_plan_info\030\026 \001(\01322.google.c" + + "loud.backupdr.v1.Backup.GCPBackupPlanInfoB\004\342A\001\003H\001\022!\n" + "\023resource_size_bytes\030\027 \001(\003B\004\342A\001\003\022!\n\r" + "satisfies_pzs\030\030 \001(\010B\005\342A\002\003\001H\013\210\001\001\022!\n\r" + "satisfies_pzi\030\031 \001(\010B\005\342A\002\003\001H\014\210\001\001\022I\n" - + "\014gcp_resource\030\037 \001(\0132+.goo" - + "gle.cloud.backupdr.v1.BackupGcpResourceB\004\342A\001\003H\002\022K\n" + + "\014gcp_resource\030\037" + + " \001(\0132+.google.cloud.backupdr.v1.BackupGcpResourceB\004\342A\001\003H\002\022K\n" + "\020kms_key_versions\030! \003(\tB1\342A\001\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\032\262\001\n" + "\021GCPBackupPlanInfo\022<\n" @@ -464,8 +466,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"`\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" - + "\010CREATING\020\001\022\n" - + "\n" + + "\010CREATING\020\001\022\n\n" + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\t\n" + "\005ERROR\020\004\022\r\n" @@ -475,9 +476,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSCHEDULED\020\001\022\r\n" + "\tON_DEMAND\020\002\022\031\n" + "\025ON_DEMAND_OPERATIONAL\020\003:\243\001\352A\237\001\n" - + "\036backupdr.googleapis.com/Backup\022lprojects/" - + "{project}/locations/{location}/backupVau" - + "lts/{backupvault}/dataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n" + + "\036backupdr.googleapis.com/Backup\022lprojects/{project}/location" + + "s/{location}/backupVaults/{backupvault}/" + + "dataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n" + "\021backup_propertiesB\013\n" + "\tplan_infoB\021\n" + "\017source_resourceB\016\n" @@ -507,15 +508,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\022=\n" - + "\004view\030\006" - + " \001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\004\342A\001\001\"\206\001\n" - + "\030ListBackupVaultsResponse\022<\n\r" + + "\004view\030\006 \001(\0162" + + ").google.cloud.backupdr.v1.BackupVaultViewB\004\342A\001\001\"\206\001\n" + + "\030ListBackupVaultsResponse\022<\n" + + "\r" + "backup_vaults\030\001 \003(\0132%.google.cloud.backupdr.v1.BackupVault\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\277\001\n" + "\036FetchUsableBackupVaultsRequest\022<\n" - + "\006parent\030\001 \001(" - + "\tB,\342A\001\002\372A%\022#backupdr.googleapis.com/BackupVault\022\027\n" + + "\006parent\030\001 \001(\tB,\342A" + + "\001\002\372A%\022#backupdr.googleapis.com/BackupVault\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" @@ -526,23 +528,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"\225\002\n" + "\"FetchBackupsForResourceTypeRequest\0227\n" + "\006parent\030\001 \001(\tB\'\342A\001\002\372A" - + " \022\036backupdr.googleapis.com/Backup\022\033\n" - + "\r" + + " \022\036backupdr.googleapis.com/Backup\022\033\n\r" + "resource_type\030\002 \001(\tB\004\342A\001\002\022\027\n" + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\006 \001(\tB\004\342A\001\001\0228\n" - + "\004view\030\007" - + " \001(\0162$.google.cloud.backupdr.v1.BackupViewB\004\342A\001\001\"q\n" + + "\004view\030\007 \001(\0162" + + "$.google.cloud.backupdr.v1.BackupViewB\004\342A\001\001\"q\n" + "#FetchBackupsForResourceTypeResponse\0221\n" + "\007backups\030\001 \003(\0132 .google.cloud.backupdr.v1.Backup\022\027\n" + "\017next_page_token\030\002 \001(\t\"\222\001\n" + "\025GetBackupVaultRequest\022:\n" + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#backupdr.googleapis.com/BackupVault\022=\n" - + "\004view\030\002 \001(\0162).g" - + "oogle.cloud.backupdr.v1.BackupVaultViewB\004\342A\001\001\"\227\002\n" + + "\004view\030\002" + + " \001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\004\342A\001\001\"\227\002\n" + "\030UpdateBackupVaultRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022A\n" @@ -579,8 +580,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027UpdateDataSourceRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022?\n" - + "\013data_source\030\002" - + " \001(\0132$.google.cloud.backupdr.v1.DataSourceB\004\342A\001\002\022 \n\n" + + "\013data_source\030\002 \001(\0132$.g" + + "oogle.cloud.backupdr.v1.DataSourceB\004\342A\001\002\022 \n\n" + "request_id\030\003 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022\033\n\r" + "allow_missing\030\004 \001(\010B\004\342A\001\001\"\350\001\n" @@ -617,18 +618,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" + "\036backupdr.googleapis.com/Backup\022 \n\n" + "request_id\030\002 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022i\n" - + "#compute_instance_target_environment\030\003" - + " \001(\0132:.google.cloud.backupdr.v1.ComputeInstanceTargetEnvironmentH\000\022R\n" + + "#compute_instance_target_environment\030\003 \001(\0132:.googl" + + "e.cloud.backupdr.v1.ComputeInstanceTargetEnvironmentH\000\022R\n" + "\027disk_target_environment\030\005" + " \001(\0132/.google.cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n" - + "\036region_disk_target_environment\030\006 \001(\01325.g" - + "oogle.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n" - + "#compute_instance_restore_properties\030\004 \001(\0132:.google.cloud.backup" - + "dr.v1.ComputeInstanceRestorePropertiesH\001\022R\n" - + "\027disk_restore_properties\030\007 \001(\0132/.goog" - + "le.cloud.backupdr.v1.DiskRestorePropertiesH\001\022I\n" - + "\032clear_overrides_field_mask\030\010 \001(\013" - + "2\032.google.protobuf.FieldMaskB\004\342A\001\001H\002\210\001\001B\024\n" + + "\036region_disk_target_environment\030\006" + + " \001(\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n" + + "#compute_instance_restore_properties\030\004 \001(\013" + + "2:.google.cloud.backupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n" + + "\027disk_restore_properties\030\007" + + " \001(\0132/.google.cloud.backupdr.v1.DiskRestorePropertiesH\001\022I\n" + + "\032clear_overrides_field_mask\030\010" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001H\002\210\001\001B\024\n" + "\022target_environmentB\025\n" + "\023instance_propertiesB\035\n" + "\033_clear_overrides_field_mask\"Z\n" @@ -657,15 +658,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035BACKUP_VAULT_VIEW_UNSPECIFIED\020\000\022\033\n" + "\027BACKUP_VAULT_VIEW_BASIC\020\001\022\032\n" + "\026BACKUP_VAULT_VIEW_FULL\020\002B\332\003\n" - + "\034com.google.cloud.backupdr.v1B\020BackupVaultProtoP\001Z" - + "8cloud.google.com/go/backupdr/apiv1/back" - + "updrpb;backupdrpb\252\002\030Google.Cloud.BackupD" - + "R.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352Am\n" - + "!cloudkms.googleapis.com/CryptoKey\022Hprojects/{project}/" - + "locations/{location}/keyRings/{ring}/cryptoKeys/{key}\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/" - + "locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersio" - + "ns/{crypto_key_version}b\006proto3" + + "\034com.google.cloud.backupdr.v1B\020BackupVaultProtoP\001Z8cloud.google.com/" + + "go/backupdr/apiv1/backupdrpb;backupdrpb\252" + + "\002\030Google.Cloud.BackupDR.V1\312\002\030Google\\Clou" + + "d\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352Am\n" + + "!cloudkms.googleapis.com/CryptoKe" + + "y\022Hprojects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{locatio" + + "n}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_ver" + + "sion}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -787,6 +788,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupPlanRules", "BackupPlanRevisionName", "BackupPlanRevisionId", + "AutoProtectionPolicyBinding", }); internal_static_google_cloud_backupdr_v1_BackupApplianceBackupConfig_descriptor = getDescriptor().getMessageType(4); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummary.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummary.java new file mode 100644 index 000000000000..e3e167cebef6 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummary.java @@ -0,0 +1,712 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * BindingEvaluationSummary contains the summary of the last run of job
+ * that applies policy to matching resources for a given binding.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BindingEvaluationSummary} + */ +@com.google.protobuf.Generated +public final class BindingEvaluationSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BindingEvaluationSummary) + BindingEvaluationSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BindingEvaluationSummary"); + } + + // Use BindingEvaluationSummary.newBuilder() to construct. + private BindingEvaluationSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BindingEvaluationSummary() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BindingEvaluationSummary.class, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder.class); + } + + public static final int MATCHING_RESOURCE_COUNT_FIELD_NUMBER = 1; + private long matchingResourceCount_ = 0L; + + /** + * + * + *
+   * Output only. The number of resources that currently match the policy's
+   * criteria.
+   * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchingResourceCount. + */ + @java.lang.Override + public long getMatchingResourceCount() { + return matchingResourceCount_; + } + + public static final int PROTECTED_RESOURCE_COUNT_FIELD_NUMBER = 2; + private long protectedResourceCount_ = 0L; + + /** + * + * + *
+   * Output only. The number of matching resources that are successfully
+   * protected.
+   * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protectedResourceCount. + */ + @java.lang.Override + public long getProtectedResourceCount() { + return protectedResourceCount_; + } + + public static final int FAILED_RESOURCE_COUNT_FIELD_NUMBER = 3; + private long failedResourceCount_ = 0L; + + /** + * + * + *
+   * Output only. The number of matching resources whose protection failed
+   * during job run.
+   * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedResourceCount. + */ + @java.lang.Override + public long getFailedResourceCount() { + return failedResourceCount_; + } + + 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 (matchingResourceCount_ != 0L) { + output.writeInt64(1, matchingResourceCount_); + } + if (protectedResourceCount_ != 0L) { + output.writeInt64(2, protectedResourceCount_); + } + if (failedResourceCount_ != 0L) { + output.writeInt64(3, failedResourceCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchingResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, matchingResourceCount_); + } + if (protectedResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, protectedResourceCount_); + } + if (failedResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedResourceCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.BindingEvaluationSummary)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.BindingEvaluationSummary other = + (com.google.cloud.backupdr.v1.BindingEvaluationSummary) obj; + + if (getMatchingResourceCount() != other.getMatchingResourceCount()) return false; + if (getProtectedResourceCount() != other.getProtectedResourceCount()) return false; + if (getFailedResourceCount() != other.getFailedResourceCount()) 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) + MATCHING_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMatchingResourceCount()); + hash = (37 * hash) + PROTECTED_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProtectedResourceCount()); + hash = (37 * hash) + FAILED_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedResourceCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.BindingEvaluationSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BindingEvaluationSummary contains the summary of the last run of job
+   * that applies policy to matching resources for a given binding.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BindingEvaluationSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BindingEvaluationSummary) + com.google.cloud.backupdr.v1.BindingEvaluationSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BindingEvaluationSummary.class, + com.google.cloud.backupdr.v1.BindingEvaluationSummary.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.BindingEvaluationSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchingResourceCount_ = 0L; + protectedResourceCount_ = 0L; + failedResourceCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_BindingEvaluationSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummary getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummary build() { + com.google.cloud.backupdr.v1.BindingEvaluationSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummary buildPartial() { + com.google.cloud.backupdr.v1.BindingEvaluationSummary result = + new com.google.cloud.backupdr.v1.BindingEvaluationSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.BindingEvaluationSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchingResourceCount_ = matchingResourceCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protectedResourceCount_ = protectedResourceCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedResourceCount_ = failedResourceCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.BindingEvaluationSummary) { + return mergeFrom((com.google.cloud.backupdr.v1.BindingEvaluationSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.BindingEvaluationSummary other) { + if (other == com.google.cloud.backupdr.v1.BindingEvaluationSummary.getDefaultInstance()) + return this; + if (other.getMatchingResourceCount() != 0L) { + setMatchingResourceCount(other.getMatchingResourceCount()); + } + if (other.getProtectedResourceCount() != 0L) { + setProtectedResourceCount(other.getProtectedResourceCount()); + } + if (other.getFailedResourceCount() != 0L) { + setFailedResourceCount(other.getFailedResourceCount()); + } + 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: + { + matchingResourceCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + protectedResourceCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedResourceCount_ = input.readInt64(); + 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 long matchingResourceCount_; + + /** + * + * + *
+     * Output only. The number of resources that currently match the policy's
+     * criteria.
+     * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchingResourceCount. + */ + @java.lang.Override + public long getMatchingResourceCount() { + return matchingResourceCount_; + } + + /** + * + * + *
+     * Output only. The number of resources that currently match the policy's
+     * criteria.
+     * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The matchingResourceCount to set. + * @return This builder for chaining. + */ + public Builder setMatchingResourceCount(long value) { + + matchingResourceCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of resources that currently match the policy's
+     * criteria.
+     * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMatchingResourceCount() { + bitField0_ = (bitField0_ & ~0x00000001); + matchingResourceCount_ = 0L; + onChanged(); + return this; + } + + private long protectedResourceCount_; + + /** + * + * + *
+     * Output only. The number of matching resources that are successfully
+     * protected.
+     * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protectedResourceCount. + */ + @java.lang.Override + public long getProtectedResourceCount() { + return protectedResourceCount_; + } + + /** + * + * + *
+     * Output only. The number of matching resources that are successfully
+     * protected.
+     * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The protectedResourceCount to set. + * @return This builder for chaining. + */ + public Builder setProtectedResourceCount(long value) { + + protectedResourceCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of matching resources that are successfully
+     * protected.
+     * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProtectedResourceCount() { + bitField0_ = (bitField0_ & ~0x00000002); + protectedResourceCount_ = 0L; + onChanged(); + return this; + } + + private long failedResourceCount_; + + /** + * + * + *
+     * Output only. The number of matching resources whose protection failed
+     * during job run.
+     * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedResourceCount. + */ + @java.lang.Override + public long getFailedResourceCount() { + return failedResourceCount_; + } + + /** + * + * + *
+     * Output only. The number of matching resources whose protection failed
+     * during job run.
+     * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The failedResourceCount to set. + * @return This builder for chaining. + */ + public Builder setFailedResourceCount(long value) { + + failedResourceCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of matching resources whose protection failed
+     * during job run.
+     * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFailedResourceCount() { + bitField0_ = (bitField0_ & ~0x00000004); + failedResourceCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BindingEvaluationSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BindingEvaluationSummary) + private static final com.google.cloud.backupdr.v1.BindingEvaluationSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BindingEvaluationSummary(); + } + + public static com.google.cloud.backupdr.v1.BindingEvaluationSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingEvaluationSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingEvaluationSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummaryOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummaryOrBuilder.java new file mode 100644 index 000000000000..93656b2108cc --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingEvaluationSummaryOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface BindingEvaluationSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BindingEvaluationSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The number of resources that currently match the policy's
+   * criteria.
+   * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchingResourceCount. + */ + long getMatchingResourceCount(); + + /** + * + * + *
+   * Output only. The number of matching resources that are successfully
+   * protected.
+   * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protectedResourceCount. + */ + long getProtectedResourceCount(); + + /** + * + * + *
+   * Output only. The number of matching resources whose protection failed
+   * during job run.
+   * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedResourceCount. + */ + long getFailedResourceCount(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResource.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResource.java new file mode 100644 index 000000000000..9f210c98d79e --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResource.java @@ -0,0 +1,1516 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * BindingMatchingResource contains the details of a resource that matches the
+ * criteria of a binding.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BindingMatchingResource} + */ +@com.google.protobuf.Generated +public final class BindingMatchingResource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BindingMatchingResource) + BindingMatchingResourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BindingMatchingResource"); + } + + // Use BindingMatchingResource.newBuilder() to construct. + private BindingMatchingResource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BindingMatchingResource() { + name_ = ""; + resource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_BindingMatchingResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_BindingMatchingResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BindingMatchingResource.class, + com.google.cloud.backupdr.v1.BindingMatchingResource.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + + /** + * + * + *
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
+   *
+   * The format can be either a relative resource name (e.g.,
+   * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+   * schemeless full resource name (e.g.,
+   * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+   * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
+   *
+   * The format can be either a relative resource name (e.g.,
+   * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+   * schemeless full resource name (e.g.,
+   * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+   * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_EVALUATION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp lastEvaluationTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last evaluated for
+   * protection.
+   * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastEvaluationTime field is set. + */ + @java.lang.Override + public boolean hasLastEvaluationTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last evaluated for
+   * protection.
+   * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastEvaluationTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastEvaluationTime() { + return lastEvaluationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEvaluationTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last evaluated for
+   * protection.
+   * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastEvaluationTimeOrBuilder() { + return lastEvaluationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEvaluationTime_; + } + + public static final int AUTO_PROTECTION_DETAILS_FIELD_NUMBER = 4; + private com.google.cloud.backupdr.v1.AutoProtectionDetails autoProtectionDetails_; + + /** + * + * + *
+   * Output only. The auto protection details of the resource from the current
+   * binding's perspective.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the autoProtectionDetails field is set. + */ + @java.lang.Override + public boolean hasAutoProtectionDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The auto protection details of the resource from the current
+   * binding's perspective.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The autoProtectionDetails. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetails getAutoProtectionDetails() { + return autoProtectionDetails_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance() + : autoProtectionDetails_; + } + + /** + * + * + *
+   * Output only. The auto protection details of the resource from the current
+   * binding's perspective.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder + getAutoProtectionDetailsOrBuilder() { + return autoProtectionDetails_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance() + : autoProtectionDetails_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLastEvaluationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getAutoProtectionDetails()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastEvaluationTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoProtectionDetails()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.BindingMatchingResource)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.BindingMatchingResource other = + (com.google.cloud.backupdr.v1.BindingMatchingResource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getResource().equals(other.getResource())) return false; + if (hasLastEvaluationTime() != other.hasLastEvaluationTime()) return false; + if (hasLastEvaluationTime()) { + if (!getLastEvaluationTime().equals(other.getLastEvaluationTime())) return false; + } + if (hasAutoProtectionDetails() != other.hasAutoProtectionDetails()) return false; + if (hasAutoProtectionDetails()) { + if (!getAutoProtectionDetails().equals(other.getAutoProtectionDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasLastEvaluationTime()) { + hash = (37 * hash) + LAST_EVALUATION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastEvaluationTime().hashCode(); + } + if (hasAutoProtectionDetails()) { + hash = (37 * hash) + AUTO_PROTECTION_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.BindingMatchingResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BindingMatchingResource contains the details of a resource that matches the
+   * criteria of a binding.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BindingMatchingResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BindingMatchingResource) + com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_BindingMatchingResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_BindingMatchingResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BindingMatchingResource.class, + com.google.cloud.backupdr.v1.BindingMatchingResource.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.BindingMatchingResource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLastEvaluationTimeFieldBuilder(); + internalGetAutoProtectionDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + resource_ = ""; + lastEvaluationTime_ = null; + if (lastEvaluationTimeBuilder_ != null) { + lastEvaluationTimeBuilder_.dispose(); + lastEvaluationTimeBuilder_ = null; + } + autoProtectionDetails_ = null; + if (autoProtectionDetailsBuilder_ != null) { + autoProtectionDetailsBuilder_.dispose(); + autoProtectionDetailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_BindingMatchingResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingMatchingResource getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.BindingMatchingResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingMatchingResource build() { + com.google.cloud.backupdr.v1.BindingMatchingResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingMatchingResource buildPartial() { + com.google.cloud.backupdr.v1.BindingMatchingResource result = + new com.google.cloud.backupdr.v1.BindingMatchingResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.BindingMatchingResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resource_ = resource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastEvaluationTime_ = + lastEvaluationTimeBuilder_ == null + ? lastEvaluationTime_ + : lastEvaluationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoProtectionDetails_ = + autoProtectionDetailsBuilder_ == null + ? autoProtectionDetails_ + : autoProtectionDetailsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.BindingMatchingResource) { + return mergeFrom((com.google.cloud.backupdr.v1.BindingMatchingResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.BindingMatchingResource other) { + if (other == com.google.cloud.backupdr.v1.BindingMatchingResource.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasLastEvaluationTime()) { + mergeLastEvaluationTime(other.getLastEvaluationTime()); + } + if (other.hasAutoProtectionDetails()) { + mergeAutoProtectionDetails(other.getAutoProtectionDetails()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetLastEvaluationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetAutoProtectionDetailsFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + + /** + * + * + *
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
+     *
+     * The format can be either a relative resource name (e.g.,
+     * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+     * schemeless full resource name (e.g.,
+     * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+     * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
+     *
+     * The format can be either a relative resource name (e.g.,
+     * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+     * schemeless full resource name (e.g.,
+     * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+     * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
+     *
+     * The format can be either a relative resource name (e.g.,
+     * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+     * schemeless full resource name (e.g.,
+     * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+     * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
+     *
+     * The format can be either a relative resource name (e.g.,
+     * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+     * schemeless full resource name (e.g.,
+     * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+     * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
+     *
+     * The format can be either a relative resource name (e.g.,
+     * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+     * schemeless full resource name (e.g.,
+     * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+     * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastEvaluationTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastEvaluationTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastEvaluationTime field is set. + */ + public boolean hasLastEvaluationTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastEvaluationTime. + */ + public com.google.protobuf.Timestamp getLastEvaluationTime() { + if (lastEvaluationTimeBuilder_ == null) { + return lastEvaluationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEvaluationTime_; + } else { + return lastEvaluationTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastEvaluationTime(com.google.protobuf.Timestamp value) { + if (lastEvaluationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastEvaluationTime_ = value; + } else { + lastEvaluationTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastEvaluationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastEvaluationTimeBuilder_ == null) { + lastEvaluationTime_ = builderForValue.build(); + } else { + lastEvaluationTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastEvaluationTime(com.google.protobuf.Timestamp value) { + if (lastEvaluationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && lastEvaluationTime_ != null + && lastEvaluationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastEvaluationTimeBuilder().mergeFrom(value); + } else { + lastEvaluationTime_ = value; + } + } else { + lastEvaluationTimeBuilder_.mergeFrom(value); + } + if (lastEvaluationTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastEvaluationTime() { + bitField0_ = (bitField0_ & ~0x00000004); + lastEvaluationTime_ = null; + if (lastEvaluationTimeBuilder_ != null) { + lastEvaluationTimeBuilder_.dispose(); + lastEvaluationTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastEvaluationTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetLastEvaluationTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastEvaluationTimeOrBuilder() { + if (lastEvaluationTimeBuilder_ != null) { + return lastEvaluationTimeBuilder_.getMessageOrBuilder(); + } else { + return lastEvaluationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEvaluationTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last evaluated for
+     * protection.
+     * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastEvaluationTimeFieldBuilder() { + if (lastEvaluationTimeBuilder_ == null) { + lastEvaluationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastEvaluationTime(), getParentForChildren(), isClean()); + lastEvaluationTime_ = null; + } + return lastEvaluationTimeBuilder_; + } + + private com.google.cloud.backupdr.v1.AutoProtectionDetails autoProtectionDetails_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionDetails, + com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder, + com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder> + autoProtectionDetailsBuilder_; + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the autoProtectionDetails field is set. + */ + public boolean hasAutoProtectionDetails() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The autoProtectionDetails. + */ + public com.google.cloud.backupdr.v1.AutoProtectionDetails getAutoProtectionDetails() { + if (autoProtectionDetailsBuilder_ == null) { + return autoProtectionDetails_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance() + : autoProtectionDetails_; + } else { + return autoProtectionDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAutoProtectionDetails( + com.google.cloud.backupdr.v1.AutoProtectionDetails value) { + if (autoProtectionDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionDetails_ = value; + } else { + autoProtectionDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAutoProtectionDetails( + com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder builderForValue) { + if (autoProtectionDetailsBuilder_ == null) { + autoProtectionDetails_ = builderForValue.build(); + } else { + autoProtectionDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAutoProtectionDetails( + com.google.cloud.backupdr.v1.AutoProtectionDetails value) { + if (autoProtectionDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && autoProtectionDetails_ != null + && autoProtectionDetails_ + != com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance()) { + getAutoProtectionDetailsBuilder().mergeFrom(value); + } else { + autoProtectionDetails_ = value; + } + } else { + autoProtectionDetailsBuilder_.mergeFrom(value); + } + if (autoProtectionDetails_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAutoProtectionDetails() { + bitField0_ = (bitField0_ & ~0x00000008); + autoProtectionDetails_ = null; + if (autoProtectionDetailsBuilder_ != null) { + autoProtectionDetailsBuilder_.dispose(); + autoProtectionDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder + getAutoProtectionDetailsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetAutoProtectionDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder + getAutoProtectionDetailsOrBuilder() { + if (autoProtectionDetailsBuilder_ != null) { + return autoProtectionDetailsBuilder_.getMessageOrBuilder(); + } else { + return autoProtectionDetails_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionDetails.getDefaultInstance() + : autoProtectionDetails_; + } + } + + /** + * + * + *
+     * Output only. The auto protection details of the resource from the current
+     * binding's perspective.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionDetails, + com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder, + com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder> + internalGetAutoProtectionDetailsFieldBuilder() { + if (autoProtectionDetailsBuilder_ == null) { + autoProtectionDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionDetails, + com.google.cloud.backupdr.v1.AutoProtectionDetails.Builder, + com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder>( + getAutoProtectionDetails(), getParentForChildren(), isClean()); + autoProtectionDetails_ = null; + } + return autoProtectionDetailsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BindingMatchingResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BindingMatchingResource) + private static final com.google.cloud.backupdr.v1.BindingMatchingResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BindingMatchingResource(); + } + + public static com.google.cloud.backupdr.v1.BindingMatchingResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingMatchingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingMatchingResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceName.java new file mode 100644 index 000000000000..0d425c13d748 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceName.java @@ -0,0 +1,312 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class BindingMatchingResourceName implements ResourceName { + private static final PathTemplate + PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING_MATCHING_RESOURCE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String autoProtectionPolicy; + private final String binding; + private final String matchingResource; + + @Deprecated + protected BindingMatchingResourceName() { + project = null; + location = null; + autoProtectionPolicy = null; + binding = null; + matchingResource = null; + } + + private BindingMatchingResourceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + autoProtectionPolicy = Preconditions.checkNotNull(builder.getAutoProtectionPolicy()); + binding = Preconditions.checkNotNull(builder.getBinding()); + matchingResource = Preconditions.checkNotNull(builder.getMatchingResource()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutoProtectionPolicy() { + return autoProtectionPolicy; + } + + public String getBinding() { + return binding; + } + + public String getMatchingResource() { + return matchingResource; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BindingMatchingResourceName of( + String project, + String location, + String autoProtectionPolicy, + String binding, + String matchingResource) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutoProtectionPolicy(autoProtectionPolicy) + .setBinding(binding) + .setMatchingResource(matchingResource) + .build(); + } + + public static String format( + String project, + String location, + String autoProtectionPolicy, + String binding, + String matchingResource) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAutoProtectionPolicy(autoProtectionPolicy) + .setBinding(binding) + .setMatchingResource(matchingResource) + .build() + .toString(); + } + + public static @Nullable BindingMatchingResourceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING_MATCHING_RESOURCE.validatedMatch( + formattedString, + "BindingMatchingResourceName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("auto_protection_policy"), + matchMap.get("binding"), + matchMap.get("matching_resource")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable BindingMatchingResourceName> values) { + List list = new ArrayList<>(values.size()); + for (BindingMatchingResourceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING_MATCHING_RESOURCE.matches( + formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (autoProtectionPolicy != null) { + fieldMapBuilder.put("auto_protection_policy", autoProtectionPolicy); + } + if (binding != null) { + fieldMapBuilder.put("binding", binding); + } + if (matchingResource != null) { + fieldMapBuilder.put("matching_resource", matchingResource); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTO_PROTECTION_POLICY_BINDING_MATCHING_RESOURCE.instantiate( + "project", + project, + "location", + location, + "auto_protection_policy", + autoProtectionPolicy, + "binding", + binding, + "matching_resource", + matchingResource); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BindingMatchingResourceName that = ((BindingMatchingResourceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.autoProtectionPolicy, that.autoProtectionPolicy) + && Objects.equals(this.binding, that.binding) + && Objects.equals(this.matchingResource, that.matchingResource); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(autoProtectionPolicy); + h *= 1000003; + h ^= Objects.hashCode(binding); + h *= 1000003; + h ^= Objects.hashCode(matchingResource); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}. + */ + public static class Builder { + private String project; + private String location; + private String autoProtectionPolicy; + private String binding; + private String matchingResource; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAutoProtectionPolicy() { + return autoProtectionPolicy; + } + + public String getBinding() { + return binding; + } + + public String getMatchingResource() { + return matchingResource; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAutoProtectionPolicy(String autoProtectionPolicy) { + this.autoProtectionPolicy = autoProtectionPolicy; + return this; + } + + public Builder setBinding(String binding) { + this.binding = binding; + return this; + } + + public Builder setMatchingResource(String matchingResource) { + this.matchingResource = matchingResource; + return this; + } + + private Builder(BindingMatchingResourceName bindingMatchingResourceName) { + this.project = bindingMatchingResourceName.project; + this.location = bindingMatchingResourceName.location; + this.autoProtectionPolicy = bindingMatchingResourceName.autoProtectionPolicy; + this.binding = bindingMatchingResourceName.binding; + this.matchingResource = bindingMatchingResourceName.matchingResource; + } + + public BindingMatchingResourceName build() { + return new BindingMatchingResourceName(this); + } + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceOrBuilder.java new file mode 100644 index 000000000000..5f9fae14fd07 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface BindingMatchingResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BindingMatchingResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
+   *
+   * The format can be either a relative resource name (e.g.,
+   * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+   * schemeless full resource name (e.g.,
+   * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+   * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
+   *
+   * The format can be either a relative resource name (e.g.,
+   * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
+   * schemeless full resource name (e.g.,
+   * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
+   * 
+ * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last evaluated for
+   * protection.
+   * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastEvaluationTime field is set. + */ + boolean hasLastEvaluationTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last evaluated for
+   * protection.
+   * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastEvaluationTime. + */ + com.google.protobuf.Timestamp getLastEvaluationTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last evaluated for
+   * protection.
+   * 
+ * + * + * .google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastEvaluationTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The auto protection details of the resource from the current
+   * binding's perspective.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the autoProtectionDetails field is set. + */ + boolean hasAutoProtectionDetails(); + + /** + * + * + *
+   * Output only. The auto protection details of the resource from the current
+   * binding's perspective.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The autoProtectionDetails. + */ + com.google.cloud.backupdr.v1.AutoProtectionDetails getAutoProtectionDetails(); + + /** + * + * + *
+   * Output only. The auto protection details of the resource from the current
+   * binding's perspective.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionDetailsOrBuilder getAutoProtectionDetailsOrBuilder(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceProto.java new file mode 100644 index 000000000000..333e82cdaea1 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingMatchingResourceProto.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public final class BindingMatchingResourceProto extends com.google.protobuf.GeneratedFile { + private BindingMatchingResourceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BindingMatchingResourceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_BindingMatchingResource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_BindingMatchingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_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" + + "6google/cloud/backupdr/v1/bindingmatchingresource.proto\022\030google.cloud.backupdr." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\037google/protobuf/" + + "timestamp.proto\032\027google/rpc/status.proto\"\320\001\n" + + "#ListBindingMatchingResourcesRequest\022H\n" + + "\006parent\030\001 \001(" + + "\tB8\342A\001\002\372A1\022/backupdr.googleapis.com/BindingMatchingResource\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\216\001\n" + + "$ListBindingMatchingResourcesResponse\022M\n" + + "\022matching_resources\030\001 \003(\013" + + "21.google.cloud.backupdr.v1.BindingMatchingResource\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\334\003\n" + + "\027BindingMatchingResource\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\010\003\022\026\n" + + "\010resource\030\002 \001(\tB\004\342A\001\003\022>\n" + + "\024last_evaluation_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022V\n" + + "\027auto_protection_details\030\004" + + " \001(\0132/.google.cloud.backupdr.v1.AutoProtectionDetailsB\004\342A\001\003:\373\001\352A\367\001\n" + + "/backupdr.googleapis.com/BindingMatchingResource\022\220\001" + + "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_" + + "policy}/bindings/{binding}/matchingResou" + + "rces/{matching_resource}*\030bindingMatchingResources2\027bindingMatchingResource\"\230\003\n" + + "\025AutoProtectionDetails\022J\n" + + "\005state\030\001 \001(\01625.g" + + "oogle.cloud.backupdr.v1.AutoProtectionDetails.StateB\004\342A\001\003\022W\n" + + "\027backup_plan_association\030\002 \001(\tB6\342A\001\003\372A/\n" + + "-backupdr.googleapis.com/BackupPlanAssociation\022@\n" + + "\013data_source\030\003 \001(\tB+\342A\001\003\372A$\n" + + "\"backupdr.googleapis.com/DataSource\022\'\n" + + "\005error\030\004 \001(\0132\022.google.rpc.StatusB\004\342A\001\003\"o\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tPROTECTED\020\001\022\025\n" + + "\021PROTECTION_FAILED\020\002\022\020\n" + + "\014UNPROTECTING\020\003\022\027\n" + + "\023UNPROTECTION_FAILED\020\004B\314\001\n" + + "\034com.google.cloud.backupdr.v1B\034BindingMatchingResourceProtoP\001Z8cloud.g" + + "oogle.com/go/backupdr/apiv1/backupdrpb;b" + + "ackupdrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030G" + + "oogle\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_descriptor, + new java.lang.String[] { + "MatchingResources", "NextPageToken", + }); + internal_static_google_cloud_backupdr_v1_BindingMatchingResource_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_backupdr_v1_BindingMatchingResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_BindingMatchingResource_descriptor, + new java.lang.String[] { + "Name", "Resource", "LastEvaluationTime", "AutoProtectionDetails", + }); + internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_AutoProtectionDetails_descriptor, + new java.lang.String[] { + "State", "BackupPlanAssociation", "DataSource", "Error", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummary.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummary.java new file mode 100644 index 000000000000..277aa076d32c --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummary.java @@ -0,0 +1,504 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * BindingSummary contains count of different containers covered through this
+ * policy.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BindingSummary} + */ +@com.google.protobuf.Generated +public final class BindingSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BindingSummary) + BindingSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BindingSummary"); + } + + // Use BindingSummary.newBuilder() to construct. + private BindingSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BindingSummary() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BindingSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BindingSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BindingSummary.class, + com.google.cloud.backupdr.v1.BindingSummary.Builder.class); + } + + public static final int PROJECT_COUNT_FIELD_NUMBER = 1; + private long projectCount_ = 0L; + + /** + * + * + *
+   * Output only. Total count of Projects protected with this policy.
+   * 
+ * + * int64 project_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The projectCount. + */ + @java.lang.Override + public long getProjectCount() { + return projectCount_; + } + + 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 (projectCount_ != 0L) { + output.writeInt64(1, projectCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (projectCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, projectCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.BindingSummary)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.BindingSummary other = + (com.google.cloud.backupdr.v1.BindingSummary) obj; + + if (getProjectCount() != other.getProjectCount()) 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) + PROJECT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProjectCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BindingSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.BindingSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BindingSummary contains count of different containers covered through this
+   * policy.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BindingSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BindingSummary) + com.google.cloud.backupdr.v1.BindingSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BindingSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BindingSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BindingSummary.class, + com.google.cloud.backupdr.v1.BindingSummary.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.BindingSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_BindingSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingSummary getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingSummary build() { + com.google.cloud.backupdr.v1.BindingSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingSummary buildPartial() { + com.google.cloud.backupdr.v1.BindingSummary result = + new com.google.cloud.backupdr.v1.BindingSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.BindingSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectCount_ = projectCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.BindingSummary) { + return mergeFrom((com.google.cloud.backupdr.v1.BindingSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.BindingSummary other) { + if (other == com.google.cloud.backupdr.v1.BindingSummary.getDefaultInstance()) return this; + if (other.getProjectCount() != 0L) { + setProjectCount(other.getProjectCount()); + } + 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: + { + projectCount_ = input.readInt64(); + 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 long projectCount_; + + /** + * + * + *
+     * Output only. Total count of Projects protected with this policy.
+     * 
+ * + * int64 project_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The projectCount. + */ + @java.lang.Override + public long getProjectCount() { + return projectCount_; + } + + /** + * + * + *
+     * Output only. Total count of Projects protected with this policy.
+     * 
+ * + * int64 project_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The projectCount to set. + * @return This builder for chaining. + */ + public Builder setProjectCount(long value) { + + projectCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Total count of Projects protected with this policy.
+     * 
+ * + * int64 project_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProjectCount() { + bitField0_ = (bitField0_ & ~0x00000001); + projectCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.BindingSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BindingSummary) + private static final com.google.cloud.backupdr.v1.BindingSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BindingSummary(); + } + + public static com.google.cloud.backupdr.v1.BindingSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummaryOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummaryOrBuilder.java new file mode 100644 index 000000000000..4d89beb4beab --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BindingSummaryOrBuilder.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface BindingSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BindingSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Total count of Projects protected with this policy.
+   * 
+ * + * int64 project_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The projectCount. + */ + long getProjectCount(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequest.java new file mode 100644 index 000000000000..b3c1693b4515 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequest.java @@ -0,0 +1,1440 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for creating an AutoProtectionPolicyBinding.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateAutoProtectionPolicyBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) + CreateAutoProtectionPolicyBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAutoProtectionPolicyBindingRequest"); + } + + // Use CreateAutoProtectionPolicyBindingRequest.newBuilder() to construct. + private CreateAutoProtectionPolicyBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAutoProtectionPolicyBindingRequest() { + parent_ = ""; + autoProtectionPolicyBindingId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest.class, + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this binding will be created.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this binding will be created.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_PROTECTION_POLICY_BINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoProtectionPolicyBindingId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the binding.
+   * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicyBindingId. + */ + @java.lang.Override + public java.lang.String getAutoProtectionPolicyBindingId() { + java.lang.Object ref = autoProtectionPolicyBindingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBindingId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the binding.
+   * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for autoProtectionPolicyBindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingIdBytes() { + java.lang.Object ref = autoProtectionPolicyBindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER = 3; + private com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding autoProtectionPolicyBinding_; + + /** + * + * + *
+   * Required. The AutoProtectionPolicyBinding resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicyBinding field is set. + */ + @java.lang.Override + public boolean hasAutoProtectionPolicyBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The AutoProtectionPolicyBinding resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicyBinding. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBinding() { + return autoProtectionPolicyBinding_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance() + : autoProtectionPolicyBinding_; + } + + /** + * + * + *
+   * Required. The AutoProtectionPolicyBinding resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder + getAutoProtectionPolicyBindingOrBuilder() { + return autoProtectionPolicyBinding_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance() + : autoProtectionPolicyBinding_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, autoProtectionPolicyBindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAutoProtectionPolicyBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBindingId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(2, autoProtectionPolicyBindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getAutoProtectionPolicyBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest other = + (com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAutoProtectionPolicyBindingId().equals(other.getAutoProtectionPolicyBindingId())) + return false; + if (hasAutoProtectionPolicyBinding() != other.hasAutoProtectionPolicyBinding()) return false; + if (hasAutoProtectionPolicyBinding()) { + if (!getAutoProtectionPolicyBinding().equals(other.getAutoProtectionPolicyBinding())) + return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyBindingId().hashCode(); + if (hasAutoProtectionPolicyBinding()) { + hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyBinding().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for creating an AutoProtectionPolicyBinding.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest.class, + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAutoProtectionPolicyBindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + autoProtectionPolicyBindingId_ = ""; + autoProtectionPolicyBinding_ = null; + if (autoProtectionPolicyBindingBuilder_ != null) { + autoProtectionPolicyBindingBuilder_.dispose(); + autoProtectionPolicyBindingBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest build() { + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest buildPartial() { + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest result = + new com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoProtectionPolicyBindingId_ = autoProtectionPolicyBindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoProtectionPolicyBinding_ = + autoProtectionPolicyBindingBuilder_ == null + ? autoProtectionPolicyBinding_ + : autoProtectionPolicyBindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) { + return mergeFrom( + (com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest other) { + if (other + == com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAutoProtectionPolicyBindingId().isEmpty()) { + autoProtectionPolicyBindingId_ = other.autoProtectionPolicyBindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAutoProtectionPolicyBinding()) { + mergeAutoProtectionPolicyBinding(other.getAutoProtectionPolicyBinding()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + autoProtectionPolicyBindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAutoProtectionPolicyBindingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this binding will be created.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this binding will be created.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this binding will be created.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this binding will be created.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this binding will be created.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object autoProtectionPolicyBindingId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the binding.
+     * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicyBindingId. + */ + public java.lang.String getAutoProtectionPolicyBindingId() { + java.lang.Object ref = autoProtectionPolicyBindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the binding.
+     * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for autoProtectionPolicyBindingId. + */ + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingIdBytes() { + java.lang.Object ref = autoProtectionPolicyBindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the binding.
+     * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The autoProtectionPolicyBindingId to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicyBindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the binding.
+     * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoProtectionPolicyBindingId() { + autoProtectionPolicyBindingId_ = getDefaultInstance().getAutoProtectionPolicyBindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the binding.
+     * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for autoProtectionPolicyBindingId to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoProtectionPolicyBindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding autoProtectionPolicyBinding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder> + autoProtectionPolicyBindingBuilder_; + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicyBinding field is set. + */ + public boolean hasAutoProtectionPolicyBinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicyBinding. + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding + getAutoProtectionPolicyBinding() { + if (autoProtectionPolicyBindingBuilder_ == null) { + return autoProtectionPolicyBinding_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance() + : autoProtectionPolicyBinding_; + } else { + return autoProtectionPolicyBindingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding value) { + if (autoProtectionPolicyBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicyBinding_ = value; + } else { + autoProtectionPolicyBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder builderForValue) { + if (autoProtectionPolicyBindingBuilder_ == null) { + autoProtectionPolicyBinding_ = builderForValue.build(); + } else { + autoProtectionPolicyBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutoProtectionPolicyBinding( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding value) { + if (autoProtectionPolicyBindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && autoProtectionPolicyBinding_ != null + && autoProtectionPolicyBinding_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance()) { + getAutoProtectionPolicyBindingBuilder().mergeFrom(value); + } else { + autoProtectionPolicyBinding_ = value; + } + } else { + autoProtectionPolicyBindingBuilder_.mergeFrom(value); + } + if (autoProtectionPolicyBinding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutoProtectionPolicyBinding() { + bitField0_ = (bitField0_ & ~0x00000004); + autoProtectionPolicyBinding_ = null; + if (autoProtectionPolicyBindingBuilder_ != null) { + autoProtectionPolicyBindingBuilder_.dispose(); + autoProtectionPolicyBindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder + getAutoProtectionPolicyBindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAutoProtectionPolicyBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder + getAutoProtectionPolicyBindingOrBuilder() { + if (autoProtectionPolicyBindingBuilder_ != null) { + return autoProtectionPolicyBindingBuilder_.getMessageOrBuilder(); + } else { + return autoProtectionPolicyBinding_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance() + : autoProtectionPolicyBinding_; + } + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicyBinding resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder> + internalGetAutoProtectionPolicyBindingFieldBuilder() { + if (autoProtectionPolicyBindingBuilder_ == null) { + autoProtectionPolicyBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder>( + getAutoProtectionPolicyBinding(), getParentForChildren(), isClean()); + autoProtectionPolicyBinding_ = null; + } + return autoProtectionPolicyBindingBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) + private static final com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest(); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAutoProtectionPolicyBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequestOrBuilder.java new file mode 100644 index 000000000000..108e2a5f9241 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyBindingRequestOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface CreateAutoProtectionPolicyBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this binding will be created.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this binding will be created.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID to use for the binding.
+   * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicyBindingId. + */ + java.lang.String getAutoProtectionPolicyBindingId(); + + /** + * + * + *
+   * Required. The ID to use for the binding.
+   * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for autoProtectionPolicyBindingId. + */ + com.google.protobuf.ByteString getAutoProtectionPolicyBindingIdBytes(); + + /** + * + * + *
+   * Required. The AutoProtectionPolicyBinding resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicyBinding field is set. + */ + boolean hasAutoProtectionPolicyBinding(); + + /** + * + * + *
+   * Required. The AutoProtectionPolicyBinding resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicyBinding. + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBinding(); + + /** + * + * + *
+   * Required. The AutoProtectionPolicyBinding resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder + getAutoProtectionPolicyBindingOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequest.java new file mode 100644 index 000000000000..45324c5e0350 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequest.java @@ -0,0 +1,1414 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for creating an AutoProtectionPolicy.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAutoProtectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) + CreateAutoProtectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAutoProtectionPolicyRequest"); + } + + // Use CreateAutoProtectionPolicyRequest.newBuilder() to construct. + private CreateAutoProtectionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAutoProtectionPolicyRequest() { + parent_ = ""; + autoProtectionPolicyId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this policy will be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource where this policy will be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_PROTECTION_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoProtectionPolicyId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the policy.
+   * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The autoProtectionPolicyId. + */ + @java.lang.Override + public java.lang.String getAutoProtectionPolicyId() { + java.lang.Object ref = autoProtectionPolicyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the policy.
+   * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for autoProtectionPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoProtectionPolicyIdBytes() { + java.lang.Object ref = autoProtectionPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_PROTECTION_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.backupdr.v1.AutoProtectionPolicy autoProtectionPolicy_; + + /** + * + * + *
+   * Required. The AutoProtectionPolicy resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasAutoProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The AutoProtectionPolicy resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy() { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } + + /** + * + * + *
+   * Required. The AutoProtectionPolicy resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder + getAutoProtectionPolicyOrBuilder() { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, autoProtectionPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAutoProtectionPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, autoProtectionPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutoProtectionPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest other = + (com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAutoProtectionPolicyId().equals(other.getAutoProtectionPolicyId())) return false; + if (hasAutoProtectionPolicy() != other.hasAutoProtectionPolicy()) return false; + if (hasAutoProtectionPolicy()) { + if (!getAutoProtectionPolicy().equals(other.getAutoProtectionPolicy())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + AUTO_PROTECTION_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyId().hashCode(); + if (hasAutoProtectionPolicy()) { + hash = (37 * hash) + AUTO_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicy().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for creating an AutoProtectionPolicy.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAutoProtectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + autoProtectionPolicyId_ = ""; + autoProtectionPolicy_ = null; + if (autoProtectionPolicyBuilder_ != null) { + autoProtectionPolicyBuilder_.dispose(); + autoProtectionPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_CreateAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest build() { + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest buildPartial() { + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest result = + new com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoProtectionPolicyId_ = autoProtectionPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoProtectionPolicy_ = + autoProtectionPolicyBuilder_ == null + ? autoProtectionPolicy_ + : autoProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest other) { + if (other + == com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAutoProtectionPolicyId().isEmpty()) { + autoProtectionPolicyId_ = other.autoProtectionPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAutoProtectionPolicy()) { + mergeAutoProtectionPolicy(other.getAutoProtectionPolicy()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + autoProtectionPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAutoProtectionPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this policy will be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this policy will be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource where this policy will be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this policy will be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this policy will be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object autoProtectionPolicyId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the policy.
+     * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The autoProtectionPolicyId. + */ + public java.lang.String getAutoProtectionPolicyId() { + java.lang.Object ref = autoProtectionPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the policy.
+     * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for autoProtectionPolicyId. + */ + public com.google.protobuf.ByteString getAutoProtectionPolicyIdBytes() { + java.lang.Object ref = autoProtectionPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the policy.
+     * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The autoProtectionPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the policy.
+     * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAutoProtectionPolicyId() { + autoProtectionPolicyId_ = getDefaultInstance().getAutoProtectionPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the policy.
+     * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+     * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for autoProtectionPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoProtectionPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.backupdr.v1.AutoProtectionPolicy autoProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder> + autoProtectionPolicyBuilder_; + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicy field is set. + */ + public boolean hasAutoProtectionPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicy. + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy() { + if (autoProtectionPolicyBuilder_ == null) { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } else { + return autoProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoProtectionPolicy( + com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicy_ = value; + } else { + autoProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoProtectionPolicy( + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder builderForValue) { + if (autoProtectionPolicyBuilder_ == null) { + autoProtectionPolicy_ = builderForValue.build(); + } else { + autoProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutoProtectionPolicy( + com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && autoProtectionPolicy_ != null + && autoProtectionPolicy_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance()) { + getAutoProtectionPolicyBuilder().mergeFrom(value); + } else { + autoProtectionPolicy_ = value; + } + } else { + autoProtectionPolicyBuilder_.mergeFrom(value); + } + if (autoProtectionPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutoProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + autoProtectionPolicy_ = null; + if (autoProtectionPolicyBuilder_ != null) { + autoProtectionPolicyBuilder_.dispose(); + autoProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder + getAutoProtectionPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAutoProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder + getAutoProtectionPolicyOrBuilder() { + if (autoProtectionPolicyBuilder_ != null) { + return autoProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } + } + + /** + * + * + *
+     * Required. The AutoProtectionPolicy resource to create.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder> + internalGetAutoProtectionPolicyFieldBuilder() { + if (autoProtectionPolicyBuilder_ == null) { + autoProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder>( + getAutoProtectionPolicy(), getParentForChildren(), isClean()); + autoProtectionPolicy_ = null; + } + return autoProtectionPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) + private static final com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest(); + } + + public static com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAutoProtectionPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..abab6b584e0e --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CreateAutoProtectionPolicyRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface CreateAutoProtectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this policy will be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this policy will be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID to use for the policy.
+   * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The autoProtectionPolicyId. + */ + java.lang.String getAutoProtectionPolicyId(); + + /** + * + * + *
+   * Required. The ID to use for the policy.
+   * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
+   * 
+ * + * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for autoProtectionPolicyId. + */ + com.google.protobuf.ByteString getAutoProtectionPolicyIdBytes(); + + /** + * + * + *
+   * Required. The AutoProtectionPolicy resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicy field is set. + */ + boolean hasAutoProtectionPolicy(); + + /** + * + * + *
+   * Required. The AutoProtectionPolicy resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicy. + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy(); + + /** + * + * + *
+   * Required. The AutoProtectionPolicy resource to create.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder getAutoProtectionPolicyOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Criteria.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Criteria.java new file mode 100644 index 000000000000..2ecae31f8bf3 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Criteria.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Criteria specifies a set of criteria for matching resources.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.Criteria} + */ +@com.google.protobuf.Generated +public final class Criteria extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.Criteria) + CriteriaOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Criteria"); + } + + // Use Criteria.newBuilder() to construct. + private Criteria(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Criteria() { + matchingConditions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_Criteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_Criteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.Criteria.class, + com.google.cloud.backupdr.v1.Criteria.Builder.class); + } + + public static final int MATCHING_CONDITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List matchingConditions_; + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getMatchingConditionsList() { + return matchingConditions_; + } + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getMatchingConditionsOrBuilderList() { + return matchingConditions_; + } + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getMatchingConditionsCount() { + return matchingConditions_.size(); + } + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.MatchingCondition getMatchingConditions(int index) { + return matchingConditions_.get(index); + } + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.MatchingConditionOrBuilder getMatchingConditionsOrBuilder( + int index) { + return matchingConditions_.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 < matchingConditions_.size(); i++) { + output.writeMessage(1, matchingConditions_.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 < matchingConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingConditions_.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.google.cloud.backupdr.v1.Criteria)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.Criteria other = (com.google.cloud.backupdr.v1.Criteria) obj; + + if (!getMatchingConditionsList().equals(other.getMatchingConditionsList())) 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 (getMatchingConditionsCount() > 0) { + hash = (37 * hash) + MATCHING_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMatchingConditionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.Criteria parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.Criteria parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.Criteria parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.Criteria prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Criteria specifies a set of criteria for matching resources.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.Criteria} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.Criteria) + com.google.cloud.backupdr.v1.CriteriaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_Criteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_Criteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.Criteria.class, + com.google.cloud.backupdr.v1.Criteria.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.Criteria.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (matchingConditionsBuilder_ == null) { + matchingConditions_ = java.util.Collections.emptyList(); + } else { + matchingConditions_ = null; + matchingConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_Criteria_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.Criteria getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.Criteria.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.Criteria build() { + com.google.cloud.backupdr.v1.Criteria result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.Criteria buildPartial() { + com.google.cloud.backupdr.v1.Criteria result = + new com.google.cloud.backupdr.v1.Criteria(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.backupdr.v1.Criteria result) { + if (matchingConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + matchingConditions_ = java.util.Collections.unmodifiableList(matchingConditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchingConditions_ = matchingConditions_; + } else { + result.matchingConditions_ = matchingConditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.backupdr.v1.Criteria result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.Criteria) { + return mergeFrom((com.google.cloud.backupdr.v1.Criteria) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.Criteria other) { + if (other == com.google.cloud.backupdr.v1.Criteria.getDefaultInstance()) return this; + if (matchingConditionsBuilder_ == null) { + if (!other.matchingConditions_.isEmpty()) { + if (matchingConditions_.isEmpty()) { + matchingConditions_ = other.matchingConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchingConditionsIsMutable(); + matchingConditions_.addAll(other.matchingConditions_); + } + onChanged(); + } + } else { + if (!other.matchingConditions_.isEmpty()) { + if (matchingConditionsBuilder_.isEmpty()) { + matchingConditionsBuilder_.dispose(); + matchingConditionsBuilder_ = null; + matchingConditions_ = other.matchingConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + matchingConditionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMatchingConditionsFieldBuilder() + : null; + } else { + matchingConditionsBuilder_.addAllMessages(other.matchingConditions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.backupdr.v1.MatchingCondition m = + input.readMessage( + com.google.cloud.backupdr.v1.MatchingCondition.parser(), extensionRegistry); + if (matchingConditionsBuilder_ == null) { + ensureMatchingConditionsIsMutable(); + matchingConditions_.add(m); + } else { + matchingConditionsBuilder_.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 matchingConditions_ = + java.util.Collections.emptyList(); + + private void ensureMatchingConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + matchingConditions_ = + new java.util.ArrayList( + matchingConditions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.MatchingCondition, + com.google.cloud.backupdr.v1.MatchingCondition.Builder, + com.google.cloud.backupdr.v1.MatchingConditionOrBuilder> + matchingConditionsBuilder_; + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMatchingConditionsList() { + if (matchingConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchingConditions_); + } else { + return matchingConditionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getMatchingConditionsCount() { + if (matchingConditionsBuilder_ == null) { + return matchingConditions_.size(); + } else { + return matchingConditionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.MatchingCondition getMatchingConditions(int index) { + if (matchingConditionsBuilder_ == null) { + return matchingConditions_.get(index); + } else { + return matchingConditionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMatchingConditions( + int index, com.google.cloud.backupdr.v1.MatchingCondition value) { + if (matchingConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingConditionsIsMutable(); + matchingConditions_.set(index, value); + onChanged(); + } else { + matchingConditionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMatchingConditions( + int index, com.google.cloud.backupdr.v1.MatchingCondition.Builder builderForValue) { + if (matchingConditionsBuilder_ == null) { + ensureMatchingConditionsIsMutable(); + matchingConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + matchingConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMatchingConditions(com.google.cloud.backupdr.v1.MatchingCondition value) { + if (matchingConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingConditionsIsMutable(); + matchingConditions_.add(value); + onChanged(); + } else { + matchingConditionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMatchingConditions( + int index, com.google.cloud.backupdr.v1.MatchingCondition value) { + if (matchingConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingConditionsIsMutable(); + matchingConditions_.add(index, value); + onChanged(); + } else { + matchingConditionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMatchingConditions( + com.google.cloud.backupdr.v1.MatchingCondition.Builder builderForValue) { + if (matchingConditionsBuilder_ == null) { + ensureMatchingConditionsIsMutable(); + matchingConditions_.add(builderForValue.build()); + onChanged(); + } else { + matchingConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMatchingConditions( + int index, com.google.cloud.backupdr.v1.MatchingCondition.Builder builderForValue) { + if (matchingConditionsBuilder_ == null) { + ensureMatchingConditionsIsMutable(); + matchingConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + matchingConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllMatchingConditions( + java.lang.Iterable values) { + if (matchingConditionsBuilder_ == null) { + ensureMatchingConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingConditions_); + onChanged(); + } else { + matchingConditionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMatchingConditions() { + if (matchingConditionsBuilder_ == null) { + matchingConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchingConditionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeMatchingConditions(int index) { + if (matchingConditionsBuilder_ == null) { + ensureMatchingConditionsIsMutable(); + matchingConditions_.remove(index); + onChanged(); + } else { + matchingConditionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.MatchingCondition.Builder getMatchingConditionsBuilder( + int index) { + return internalGetMatchingConditionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.MatchingConditionOrBuilder getMatchingConditionsOrBuilder( + int index) { + if (matchingConditionsBuilder_ == null) { + return matchingConditions_.get(index); + } else { + return matchingConditionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMatchingConditionsOrBuilderList() { + if (matchingConditionsBuilder_ != null) { + return matchingConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchingConditions_); + } + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.MatchingCondition.Builder addMatchingConditionsBuilder() { + return internalGetMatchingConditionsFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.MatchingCondition.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.MatchingCondition.Builder addMatchingConditionsBuilder( + int index) { + return internalGetMatchingConditionsFieldBuilder() + .addBuilder(index, com.google.cloud.backupdr.v1.MatchingCondition.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of matching conditions that a resource must meet to be
+     * protected by the policy.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMatchingConditionsBuilderList() { + return internalGetMatchingConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.MatchingCondition, + com.google.cloud.backupdr.v1.MatchingCondition.Builder, + com.google.cloud.backupdr.v1.MatchingConditionOrBuilder> + internalGetMatchingConditionsFieldBuilder() { + if (matchingConditionsBuilder_ == null) { + matchingConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.MatchingCondition, + com.google.cloud.backupdr.v1.MatchingCondition.Builder, + com.google.cloud.backupdr.v1.MatchingConditionOrBuilder>( + matchingConditions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + matchingConditions_ = null; + } + return matchingConditionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.Criteria) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.Criteria) + private static final com.google.cloud.backupdr.v1.Criteria DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.Criteria(); + } + + public static com.google.cloud.backupdr.v1.Criteria getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Criteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.Criteria getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CriteriaOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CriteriaOrBuilder.java new file mode 100644 index 000000000000..c20803db5827 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/CriteriaOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface CriteriaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.Criteria) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMatchingConditionsList(); + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.MatchingCondition getMatchingConditions(int index); + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getMatchingConditionsCount(); + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getMatchingConditionsOrBuilderList(); + + /** + * + * + *
+   * Required. A list of matching conditions that a resource must meet to be
+   * protected by the policy.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.MatchingCondition matching_conditions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.MatchingConditionOrBuilder getMatchingConditionsOrBuilder(int index); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequest.java new file mode 100644 index 000000000000..3b9bdfb0fffe --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequest.java @@ -0,0 +1,1080 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for deleting an AutoProtectionPolicy.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAutoProtectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) + DeleteAutoProtectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteAutoProtectionPolicyRequest"); + } + + // Use DeleteAutoProtectionPolicyRequest.newBuilder() to construct. + private DeleteAutoProtectionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAutoProtectionPolicyRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the policy to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the policy to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. The current etag of the autoprotectionpolicy.
+   * If an etag is provided and does not match the current etag of the
+   * connection, deletion will be blocked.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The current etag of the autoprotectionpolicy.
+   * If an etag is provided and does not match the current etag of the
+   * connection, deletion will be blocked.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest other = + (com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for deleting an AutoProtectionPolicy.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_DeleteAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest build() { + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest buildPartial() { + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest result = + new com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest other) { + if (other + == com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the policy to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the policy to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the policy to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the policy to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the policy to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. The current etag of the autoprotectionpolicy.
+     * If an etag is provided and does not match the current etag of the
+     * connection, deletion will be blocked.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the autoprotectionpolicy.
+     * If an etag is provided and does not match the current etag of the
+     * connection, deletion will be blocked.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the autoprotectionpolicy.
+     * If an etag is provided and does not match the current etag of the
+     * connection, deletion will be blocked.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the autoprotectionpolicy.
+     * If an etag is provided and does not match the current etag of the
+     * connection, deletion will be blocked.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the autoprotectionpolicy.
+     * If an etag is provided and does not match the current etag of the
+     * connection, deletion will be blocked.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) + private static final com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest(); + } + + public static com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAutoProtectionPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..f8d97f0b4441 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteAutoProtectionPolicyRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface DeleteAutoProtectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the policy to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the policy to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The current etag of the autoprotectionpolicy.
+   * If an etag is provided and does not match the current etag of the
+   * connection, deletion will be blocked.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. The current etag of the autoprotectionpolicy.
+   * If an etag is provided and does not match the current etag of the
+   * connection, deletion will be blocked.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequest.java index 005b2e6d8eca..dbfce514313c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequest.java @@ -55,6 +55,7 @@ private DeleteBackupPlanAssociationRequest( private DeleteBackupPlanAssociationRequest() { name_ = ""; requestId_ = ""; + autoProtectionPolicyBinding_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -212,6 +213,71 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoProtectionPolicyBinding_ = ""; + + /** + * + * + *
+   * Optional. This field is exclusively used by Backup and DR's auto-protection
+   * feature. The resource name of the `AutoProtectionPolicyBinding` that
+   * triggered the deletion of this association.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + @java.lang.Override + public java.lang.String getAutoProtectionPolicyBinding() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBinding_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. This field is exclusively used by Backup and DR's auto-protection
+   * feature. The resource name of the `AutoProtectionPolicyBinding` that
+   * triggered the deletion of this association.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -232,6 +298,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBinding_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, autoProtectionPolicyBinding_); + } getUnknownFields().writeTo(output); } @@ -247,6 +316,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBinding_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(3, autoProtectionPolicyBinding_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -265,6 +338,8 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (!getAutoProtectionPolicyBinding().equals(other.getAutoProtectionPolicyBinding())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,6 +355,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyBinding().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -423,6 +500,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; requestId_ = ""; + autoProtectionPolicyBinding_ = ""; return this; } @@ -467,6 +545,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoProtectionPolicyBinding_ = autoProtectionPolicyBinding_; + } } @java.lang.Override @@ -494,6 +575,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getAutoProtectionPolicyBinding().isEmpty()) { + autoProtectionPolicyBinding_ = other.autoProtectionPolicyBinding_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -532,6 +618,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + autoProtectionPolicyBinding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -858,6 +950,147 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object autoProtectionPolicyBinding_ = ""; + + /** + * + * + *
+     * Optional. This field is exclusively used by Backup and DR's auto-protection
+     * feature. The resource name of the `AutoProtectionPolicyBinding` that
+     * triggered the deletion of this association.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + public java.lang.String getAutoProtectionPolicyBinding() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBinding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. This field is exclusively used by Backup and DR's auto-protection
+     * feature. The resource name of the `AutoProtectionPolicyBinding` that
+     * triggered the deletion of this association.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. This field is exclusively used by Backup and DR's auto-protection
+     * feature. The resource name of the `AutoProtectionPolicyBinding` that
+     * triggered the deletion of this association.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The autoProtectionPolicyBinding to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBinding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicyBinding_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is exclusively used by Backup and DR's auto-protection
+     * feature. The resource name of the `AutoProtectionPolicyBinding` that
+     * triggered the deletion of this association.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAutoProtectionPolicyBinding() { + autoProtectionPolicyBinding_ = getDefaultInstance().getAutoProtectionPolicyBinding(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is exclusively used by Backup and DR's auto-protection
+     * feature. The resource name of the `AutoProtectionPolicyBinding` that
+     * triggered the deletion of this association.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for autoProtectionPolicyBinding to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBindingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoProtectionPolicyBinding_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequestOrBuilder.java index 9e5da10c567b..1bde94de299d 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupPlanAssociationRequestOrBuilder.java @@ -111,4 +111,42 @@ public interface DeleteBackupPlanAssociationRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. This field is exclusively used by Backup and DR's auto-protection
+   * feature. The resource name of the `AutoProtectionPolicyBinding` that
+   * triggered the deletion of this association.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + java.lang.String getAutoProtectionPolicyBinding(); + + /** + * + * + *
+   * Optional. This field is exclusively used by Backup and DR's auto-protection
+   * feature. The resource name of the `AutoProtectionPolicyBinding` that
+   * triggered the deletion of this association.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfig.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfig.java index e275c01cdb07..44dab6451478 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfig.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfig.java @@ -60,6 +60,7 @@ private GcpBackupConfig() { backupPlanRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); backupPlanRevisionName_ = ""; backupPlanRevisionId_ = ""; + autoProtectionPolicyBinding_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -412,6 +413,69 @@ public com.google.protobuf.ByteString getBackupPlanRevisionIdBytes() { } } + public static final int AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoProtectionPolicyBinding_ = ""; + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this datasource, if any.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + @java.lang.Override + public java.lang.String getAutoProtectionPolicyBinding() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBinding_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this datasource, if any.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -444,6 +508,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanRevisionId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, backupPlanRevisionId_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBinding_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, autoProtectionPolicyBinding_); + } getUnknownFields().writeTo(output); } @@ -476,6 +543,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanRevisionId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, backupPlanRevisionId_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoProtectionPolicyBinding_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(7, autoProtectionPolicyBinding_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -498,6 +569,8 @@ public boolean equals(final java.lang.Object obj) { if (!getBackupPlanRulesList().equals(other.getBackupPlanRulesList())) return false; if (!getBackupPlanRevisionName().equals(other.getBackupPlanRevisionName())) return false; if (!getBackupPlanRevisionId().equals(other.getBackupPlanRevisionId())) return false; + if (!getAutoProtectionPolicyBinding().equals(other.getAutoProtectionPolicyBinding())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,6 +596,8 @@ public int hashCode() { hash = (53 * hash) + getBackupPlanRevisionName().hashCode(); hash = (37 * hash) + BACKUP_PLAN_REVISION_ID_FIELD_NUMBER; hash = (53 * hash) + getBackupPlanRevisionId().hashCode(); + hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyBinding().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -671,6 +746,7 @@ public Builder clear() { backupPlanRules_ = com.google.protobuf.LazyStringArrayList.emptyList(); backupPlanRevisionName_ = ""; backupPlanRevisionId_ = ""; + autoProtectionPolicyBinding_ = ""; return this; } @@ -726,6 +802,9 @@ private void buildPartial0(com.google.cloud.backupdr.v1.GcpBackupConfig result) if (((from_bitField0_ & 0x00000020) != 0)) { result.backupPlanRevisionId_ = backupPlanRevisionId_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.autoProtectionPolicyBinding_ = autoProtectionPolicyBinding_; + } } @java.lang.Override @@ -775,6 +854,11 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.GcpBackupConfig other) { bitField0_ |= 0x00000020; onChanged(); } + if (!other.getAutoProtectionPolicyBinding().isEmpty()) { + autoProtectionPolicyBinding_ = other.autoProtectionPolicyBinding_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -838,6 +922,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + autoProtectionPolicyBinding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1600,6 +1690,142 @@ public Builder setBackupPlanRevisionIdBytes(com.google.protobuf.ByteString value return this; } + private java.lang.Object autoProtectionPolicyBinding_ = ""; + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this datasource, if any.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + public java.lang.String getAutoProtectionPolicyBinding() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoProtectionPolicyBinding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this datasource, if any.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + public com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes() { + java.lang.Object ref = autoProtectionPolicyBinding_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoProtectionPolicyBinding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this datasource, if any.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The autoProtectionPolicyBinding to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBinding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicyBinding_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this datasource, if any.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAutoProtectionPolicyBinding() { + autoProtectionPolicyBinding_ = getDefaultInstance().getAutoProtectionPolicyBinding(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+     * manages this datasource, if any.
+     * Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+     * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for autoProtectionPolicyBinding to set. + * @return This builder for chaining. + */ + public Builder setAutoProtectionPolicyBindingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoProtectionPolicyBinding_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.GcpBackupConfig) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfigOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfigOrBuilder.java index b50b114535fc..ec4b29c5231f 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfigOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GcpBackupConfigOrBuilder.java @@ -211,4 +211,40 @@ public interface GcpBackupConfigOrBuilder * @return The bytes for backupPlanRevisionId. */ com.google.protobuf.ByteString getBackupPlanRevisionIdBytes(); + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this datasource, if any.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The autoProtectionPolicyBinding. + */ + java.lang.String getAutoProtectionPolicyBinding(); + + /** + * + * + *
+   * Output only. The resource name of the `AutoProtectionPolicyBinding` that
+   * manages this datasource, if any.
+   * Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
+   * 
+ * + * + * string auto_protection_policy_binding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for autoProtectionPolicyBinding. + */ + com.google.protobuf.ByteString getAutoProtectionPolicyBindingBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequest.java new file mode 100644 index 000000000000..6cbc9e088923 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for getting an AutoProtectionPolicyBinding.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetAutoProtectionPolicyBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) + GetAutoProtectionPolicyBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAutoProtectionPolicyBindingRequest"); + } + + // Use GetAutoProtectionPolicyBindingRequest.newBuilder() to construct. + private GetAutoProtectionPolicyBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAutoProtectionPolicyBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest.class, + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the binding to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the binding to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest other = + (com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for getting an AutoProtectionPolicyBinding.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest.class, + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest build() { + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest buildPartial() { + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest result = + new com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) { + return mergeFrom( + (com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest other) { + if (other + == com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the binding to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the binding to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the binding to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the binding to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the binding to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) + private static final com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest(); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAutoProtectionPolicyBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequestOrBuilder.java new file mode 100644 index 000000000000..7b4f9bb64f30 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyBindingRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface GetAutoProtectionPolicyBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the binding to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the binding to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequest.java new file mode 100644 index 000000000000..885a256374cc --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for getting an AutoProtectionPolicy.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAutoProtectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) + GetAutoProtectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAutoProtectionPolicyRequest"); + } + + // Use GetAutoProtectionPolicyRequest.newBuilder() to construct. + private GetAutoProtectionPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAutoProtectionPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the policy to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the policy to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest other = + (com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for getting an AutoProtectionPolicy.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_GetAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest build() { + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest buildPartial() { + com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest result = + new com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest other) { + if (other == com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the policy to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the policy to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the policy to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the policy to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the policy to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) + private static final com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest(); + } + + public static com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAutoProtectionPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..782d1da34eb1 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/GetAutoProtectionPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface GetAutoProtectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the policy to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the policy to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequest.java new file mode 100644 index 000000000000..1bee53effe29 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequest.java @@ -0,0 +1,1104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for initiating delete of an AutoProtectionPolicyBinding.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest} + */ +@com.google.protobuf.Generated +public final class InitiateDeleteAutoProtectionPolicyBindingRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) + InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InitiateDeleteAutoProtectionPolicyBindingRequest"); + } + + // Use InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder() to construct. + private InitiateDeleteAutoProtectionPolicyBindingRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InitiateDeleteAutoProtectionPolicyBindingRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest.class, + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the binding to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the binding to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest other = + (com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for initiating delete of an AutoProtectionPolicyBinding.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest.class, + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_InitiateDeleteAutoProtectionPolicyBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest build() { + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + buildPartial() { + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest result = + new com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) { + return mergeFrom( + (com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest other) { + if (other + == com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the binding to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the binding to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the binding to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the binding to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the binding to delete.
+     * Format:
+     * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) + private static final com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest(); + } + + public static com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + InitiateDeleteAutoProtectionPolicyBindingRequest>() { + @java.lang.Override + public InitiateDeleteAutoProtectionPolicyBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java new file mode 100644 index 000000000000..6929cc59e4ea --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the binding to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the binding to delete.
+   * Format:
+   * projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePair.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePair.java new file mode 100644 index 000000000000..44e0622cff27 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePair.java @@ -0,0 +1,958 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * KeyValuePair defines a key-value pair for matching resource labels.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.KeyValuePair} + */ +@com.google.protobuf.Generated +public final class KeyValuePair extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "KeyValuePair"); + } + + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KeyValuePair() { + key_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.KeyValuePair.class, + com.google.cloud.backupdr.v1.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * Required. The key of the label to match.
+   * This must be in the format `{label_key}`.
+   * The key must match the regex
+   * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The key of the label to match.
+   * This must be in the format `{label_key}`.
+   * The key must match the regex
+   * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.KeyValuePair)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.KeyValuePair other = + (com.google.cloud.backupdr.v1.KeyValuePair) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.KeyValuePair prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * KeyValuePair defines a key-value pair for matching resource labels.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.KeyValuePair} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.KeyValuePair) + com.google.cloud.backupdr.v1.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.KeyValuePair.class, + com.google.cloud.backupdr.v1.KeyValuePair.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.KeyValuePair.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_KeyValuePair_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePair getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePair build() { + com.google.cloud.backupdr.v1.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePair buildPartial() { + com.google.cloud.backupdr.v1.KeyValuePair result = + new com.google.cloud.backupdr.v1.KeyValuePair(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.KeyValuePair result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.KeyValuePair) { + return mergeFrom((com.google.cloud.backupdr.v1.KeyValuePair) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.KeyValuePair other) { + if (other == com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000002; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + 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 key_ = ""; + + /** + * + * + *
+     * Required. The key of the label to match.
+     * This must be in the format `{label_key}`.
+     * The key must match the regex
+     * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The key of the label to match.
+     * This must be in the format `{label_key}`.
+     * The key must match the regex
+     * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The key of the label to match.
+     * This must be in the format `{label_key}`.
+     * The key must match the regex
+     * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. The key of the label to match.
+     * This must be in the format `{label_key}`.
+     * The key must match the regex
+     * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The key of the label to match.
+     * This must be in the format `{label_key}`.
+     * The key must match the regex
+     * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The values of the label to match.
+     * There will be explicit "OR" between values of array.
+     * Each value must be in the format `{label_value}`.
+     * The value must match the regex
+     * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+     * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.KeyValuePair) + private static final com.google.cloud.backupdr.v1.KeyValuePair DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.KeyValuePair(); + } + + public static com.google.cloud.backupdr.v1.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePairOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePairOrBuilder.java new file mode 100644 index 000000000000..3cd122dcc9f4 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/KeyValuePairOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface KeyValuePairOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The key of the label to match.
+   * This must be in the format `{label_key}`.
+   * The key must match the regex
+   * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+   * Required. The key of the label to match.
+   * This must be in the format `{label_key}`.
+   * The key must match the regex
+   * Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + + /** + * + * + *
+   * Required. The values of the label to match.
+   * There will be explicit "OR" between values of array.
+   * Each value must be in the format `{label_value}`.
+   * The value must match the regex
+   * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
+   * 
+ * + * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequest.java new file mode 100644 index 000000000000..6b3e3d9d58a8 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequest.java @@ -0,0 +1,1317 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for listing AppliedAutoProtectionPolicies.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAppliedAutoProtectionPoliciesRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) + ListAppliedAutoProtectionPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAppliedAutoProtectionPoliciesRequest"); + } + + // Use ListAppliedAutoProtectionPoliciesRequest.newBuilder() to construct. + private ListAppliedAutoProtectionPoliciesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAppliedAutoProtectionPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest.class, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * applied policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * applied policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of applied policies to return in a single
+   * page. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000. If unspecified or set to 0, a default page size of 500 will be used.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAppliedAutoProtectionPolicies` call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAppliedAutoProtectionPolicies` call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest other = + (com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for listing AppliedAutoProtectionPolicies.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest.class, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest build() { + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest buildPartial() { + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest result = + new com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) { + return mergeFrom( + (com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest other) { + if (other + == com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * applied policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * applied policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * applied policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * applied policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * applied policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of applied policies to return in a single
+     * page. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000. If unspecified or set to 0, a default page size of 500 will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of applied policies to return in a single
+     * page. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000. If unspecified or set to 0, a default page size of 500 will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of applied policies to return in a single
+     * page. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000. If unspecified or set to 0, a default page size of 500 will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAppliedAutoProtectionPolicies` call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAppliedAutoProtectionPolicies` call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAppliedAutoProtectionPolicies` call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAppliedAutoProtectionPolicies` call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAppliedAutoProtectionPolicies` call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) + private static final com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest(); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAppliedAutoProtectionPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..a49693245324 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListAppliedAutoProtectionPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * applied policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * applied policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of applied policies to return in a single
+   * page. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000. If unspecified or set to 0, a default page size of 500 will be used.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAppliedAutoProtectionPolicies` call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAppliedAutoProtectionPolicies` call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponse.java new file mode 100644 index 000000000000..dc963ac6d675 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponse.java @@ -0,0 +1,1509 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Response message for ListAppliedAutoProtectionPolicies.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAppliedAutoProtectionPoliciesResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) + ListAppliedAutoProtectionPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAppliedAutoProtectionPoliciesResponse"); + } + + // Use ListAppliedAutoProtectionPoliciesResponse.newBuilder() to construct. + private ListAppliedAutoProtectionPoliciesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAppliedAutoProtectionPoliciesResponse() { + appliedAutoProtectionPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse.class, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse.Builder.class); + } + + public static final int APPLIED_AUTO_PROTECTION_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + appliedAutoProtectionPolicies_; + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getAppliedAutoProtectionPoliciesList() { + return appliedAutoProtectionPolicies_; + } + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getAppliedAutoProtectionPoliciesOrBuilderList() { + return appliedAutoProtectionPolicies_; + } + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + @java.lang.Override + public int getAppliedAutoProtectionPoliciesCount() { + return appliedAutoProtectionPolicies_.size(); + } + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy getAppliedAutoProtectionPolicies( + int index) { + return appliedAutoProtectionPolicies_.get(index); + } + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder + getAppliedAutoProtectionPoliciesOrBuilder(int index) { + return appliedAutoProtectionPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < appliedAutoProtectionPolicies_.size(); i++) { + output.writeMessage(1, appliedAutoProtectionPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < appliedAutoProtectionPolicies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, appliedAutoProtectionPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse other = + (com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) obj; + + if (!getAppliedAutoProtectionPoliciesList() + .equals(other.getAppliedAutoProtectionPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAppliedAutoProtectionPoliciesCount() > 0) { + hash = (37 * hash) + APPLIED_AUTO_PROTECTION_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAutoProtectionPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ListAppliedAutoProtectionPolicies.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse.class, + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (appliedAutoProtectionPoliciesBuilder_ == null) { + appliedAutoProtectionPolicies_ = java.util.Collections.emptyList(); + } else { + appliedAutoProtectionPolicies_ = null; + appliedAutoProtectionPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAppliedAutoProtectionPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse build() { + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse buildPartial() { + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse result = + new com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse result) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + appliedAutoProtectionPolicies_ = + java.util.Collections.unmodifiableList(appliedAutoProtectionPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.appliedAutoProtectionPolicies_ = appliedAutoProtectionPolicies_; + } else { + result.appliedAutoProtectionPolicies_ = appliedAutoProtectionPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) { + return mergeFrom( + (com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse other) { + if (other + == com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + .getDefaultInstance()) return this; + if (appliedAutoProtectionPoliciesBuilder_ == null) { + if (!other.appliedAutoProtectionPolicies_.isEmpty()) { + if (appliedAutoProtectionPolicies_.isEmpty()) { + appliedAutoProtectionPolicies_ = other.appliedAutoProtectionPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.addAll(other.appliedAutoProtectionPolicies_); + } + onChanged(); + } + } else { + if (!other.appliedAutoProtectionPolicies_.isEmpty()) { + if (appliedAutoProtectionPoliciesBuilder_.isEmpty()) { + appliedAutoProtectionPoliciesBuilder_.dispose(); + appliedAutoProtectionPoliciesBuilder_ = null; + appliedAutoProtectionPolicies_ = other.appliedAutoProtectionPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + appliedAutoProtectionPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAppliedAutoProtectionPoliciesFieldBuilder() + : null; + } else { + appliedAutoProtectionPoliciesBuilder_.addAllMessages( + other.appliedAutoProtectionPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy m = + input.readMessage( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.parser(), + extensionRegistry); + if (appliedAutoProtectionPoliciesBuilder_ == null) { + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.add(m); + } else { + appliedAutoProtectionPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + appliedAutoProtectionPolicies_ = java.util.Collections.emptyList(); + + private void ensureAppliedAutoProtectionPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + appliedAutoProtectionPolicies_ = + new java.util.ArrayList( + appliedAutoProtectionPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder> + appliedAutoProtectionPoliciesBuilder_; + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public java.util.List + getAppliedAutoProtectionPoliciesList() { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(appliedAutoProtectionPolicies_); + } else { + return appliedAutoProtectionPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public int getAppliedAutoProtectionPoliciesCount() { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + return appliedAutoProtectionPolicies_.size(); + } else { + return appliedAutoProtectionPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy + getAppliedAutoProtectionPolicies(int index) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + return appliedAutoProtectionPolicies_.get(index); + } else { + return appliedAutoProtectionPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder setAppliedAutoProtectionPolicies( + int index, com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy value) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.set(index, value); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder setAppliedAutoProtectionPolicies( + int index, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder builderForValue) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder addAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy value) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.add(value); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder addAppliedAutoProtectionPolicies( + int index, com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy value) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.add(index, value); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder addAppliedAutoProtectionPolicies( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder builderForValue) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.add(builderForValue.build()); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder addAppliedAutoProtectionPolicies( + int index, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder builderForValue) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder addAllAppliedAutoProtectionPolicies( + java.lang.Iterable + values) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + ensureAppliedAutoProtectionPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appliedAutoProtectionPolicies_); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder clearAppliedAutoProtectionPolicies() { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + appliedAutoProtectionPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public Builder removeAppliedAutoProtectionPolicies(int index) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + ensureAppliedAutoProtectionPoliciesIsMutable(); + appliedAutoProtectionPolicies_.remove(index); + onChanged(); + } else { + appliedAutoProtectionPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder + getAppliedAutoProtectionPoliciesBuilder(int index) { + return internalGetAppliedAutoProtectionPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder + getAppliedAutoProtectionPoliciesOrBuilder(int index) { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + return appliedAutoProtectionPolicies_.get(index); + } else { + return appliedAutoProtectionPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder> + getAppliedAutoProtectionPoliciesOrBuilderList() { + if (appliedAutoProtectionPoliciesBuilder_ != null) { + return appliedAutoProtectionPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(appliedAutoProtectionPolicies_); + } + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder + addAppliedAutoProtectionPoliciesBuilder() { + return internalGetAppliedAutoProtectionPoliciesFieldBuilder() + .addBuilder( + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder + addAppliedAutoProtectionPoliciesBuilder(int index) { + return internalGetAppliedAutoProtectionPoliciesFieldBuilder() + .addBuilder( + index, com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of the AppliedAutoProtectionPolicy resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + public java.util.List + getAppliedAutoProtectionPoliciesBuilderList() { + return internalGetAppliedAutoProtectionPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder> + internalGetAppliedAutoProtectionPoliciesFieldBuilder() { + if (appliedAutoProtectionPoliciesBuilder_ == null) { + appliedAutoProtectionPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder>( + appliedAutoProtectionPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + appliedAutoProtectionPolicies_ = null; + } + return appliedAutoProtectionPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached. For example,
+     * "projects/my-project/locations/us-east1"].
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) + private static final com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse(); + } + + public static com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAppliedAutoProtectionPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..9695caaaa3fb --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAppliedAutoProtectionPoliciesResponseOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListAppliedAutoProtectionPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + java.util.List + getAppliedAutoProtectionPoliciesList(); + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy getAppliedAutoProtectionPolicies( + int index); + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + int getAppliedAutoProtectionPoliciesCount(); + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + java.util.List + getAppliedAutoProtectionPoliciesOrBuilderList(); + + /** + * + * + *
+   * A list of the AppliedAutoProtectionPolicy resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + * + */ + com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicyOrBuilder + getAppliedAutoProtectionPoliciesOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached. For example,
+   * "projects/my-project/locations/us-east1"].
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequest.java new file mode 100644 index 000000000000..f552abbee3dc --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequest.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for ListAutoProtectionPolicies.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAutoProtectionPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) + ListAutoProtectionPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAutoProtectionPoliciesRequest"); + } + + // Use ListAutoProtectionPoliciesRequest.newBuilder() to construct. + private ListAutoProtectionPoliciesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAutoProtectionPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of policies to return in a single page.
+   * If unspecified, a server-default value will be used.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest other = + (com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ListAutoProtectionPolicies.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest build() { + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest buildPartial() { + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest result = + new com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest other) { + if (other + == com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of policies to return in a single page.
+     * If unspecified, a server-default value will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of policies to return in a single page.
+     * If unspecified, a server-default value will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of policies to return in a single page.
+     * If unspecified, a server-default value will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) + private static final com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest(); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoProtectionPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..064fb9940c55 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListAutoProtectionPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of policies to return in a single page.
+   * If unspecified, a server-default value will be used.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponse.java new file mode 100644 index 000000000000..067d7ed50401 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponse.java @@ -0,0 +1,1461 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Response message for ListAutoProtectionPolicies.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAutoProtectionPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) + ListAutoProtectionPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAutoProtectionPoliciesResponse"); + } + + // Use ListAutoProtectionPoliciesResponse.newBuilder() to construct. + private ListAutoProtectionPoliciesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAutoProtectionPoliciesResponse() { + autoProtectionPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.Builder.class); + } + + public static final int AUTO_PROTECTION_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List autoProtectionPolicies_; + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getAutoProtectionPoliciesList() { + return autoProtectionPolicies_; + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + @java.lang.Override + public java.util.List + getAutoProtectionPoliciesOrBuilderList() { + return autoProtectionPolicies_; + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + @java.lang.Override + public int getAutoProtectionPoliciesCount() { + return autoProtectionPolicies_.size(); + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicies(int index) { + return autoProtectionPolicies_.get(index); + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder + getAutoProtectionPoliciesOrBuilder(int index) { + return autoProtectionPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < autoProtectionPolicies_.size(); i++) { + output.writeMessage(1, autoProtectionPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < autoProtectionPolicies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, autoProtectionPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse other = + (com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) obj; + + if (!getAutoProtectionPoliciesList().equals(other.getAutoProtectionPoliciesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAutoProtectionPoliciesCount() > 0) { + hash = (37 * hash) + AUTO_PROTECTION_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ListAutoProtectionPolicies.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (autoProtectionPoliciesBuilder_ == null) { + autoProtectionPolicies_ = java.util.Collections.emptyList(); + } else { + autoProtectionPolicies_ = null; + autoProtectionPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse build() { + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse buildPartial() { + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse result = + new com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse result) { + if (autoProtectionPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autoProtectionPolicies_ = java.util.Collections.unmodifiableList(autoProtectionPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autoProtectionPolicies_ = autoProtectionPolicies_; + } else { + result.autoProtectionPolicies_ = autoProtectionPoliciesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) { + return mergeFrom((com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse other) { + if (other + == com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse.getDefaultInstance()) + return this; + if (autoProtectionPoliciesBuilder_ == null) { + if (!other.autoProtectionPolicies_.isEmpty()) { + if (autoProtectionPolicies_.isEmpty()) { + autoProtectionPolicies_ = other.autoProtectionPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.addAll(other.autoProtectionPolicies_); + } + onChanged(); + } + } else { + if (!other.autoProtectionPolicies_.isEmpty()) { + if (autoProtectionPoliciesBuilder_.isEmpty()) { + autoProtectionPoliciesBuilder_.dispose(); + autoProtectionPoliciesBuilder_ = null; + autoProtectionPolicies_ = other.autoProtectionPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + autoProtectionPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAutoProtectionPoliciesFieldBuilder() + : null; + } else { + autoProtectionPoliciesBuilder_.addAllMessages(other.autoProtectionPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.backupdr.v1.AutoProtectionPolicy m = + input.readMessage( + com.google.cloud.backupdr.v1.AutoProtectionPolicy.parser(), + extensionRegistry); + if (autoProtectionPoliciesBuilder_ == null) { + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.add(m); + } else { + autoProtectionPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + autoProtectionPolicies_ = java.util.Collections.emptyList(); + + private void ensureAutoProtectionPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autoProtectionPolicies_ = + new java.util.ArrayList( + autoProtectionPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder> + autoProtectionPoliciesBuilder_; + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public java.util.List + getAutoProtectionPoliciesList() { + if (autoProtectionPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(autoProtectionPolicies_); + } else { + return autoProtectionPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public int getAutoProtectionPoliciesCount() { + if (autoProtectionPoliciesBuilder_ == null) { + return autoProtectionPolicies_.size(); + } else { + return autoProtectionPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicies(int index) { + if (autoProtectionPoliciesBuilder_ == null) { + return autoProtectionPolicies_.get(index); + } else { + return autoProtectionPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder setAutoProtectionPolicies( + int index, com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.set(index, value); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder setAutoProtectionPolicies( + int index, com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder builderForValue) { + if (autoProtectionPoliciesBuilder_ == null) { + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder addAutoProtectionPolicies( + com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.add(value); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder addAutoProtectionPolicies( + int index, com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.add(index, value); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder addAutoProtectionPolicies( + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder builderForValue) { + if (autoProtectionPoliciesBuilder_ == null) { + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.add(builderForValue.build()); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder addAutoProtectionPolicies( + int index, com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder builderForValue) { + if (autoProtectionPoliciesBuilder_ == null) { + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder addAllAutoProtectionPolicies( + java.lang.Iterable values) { + if (autoProtectionPoliciesBuilder_ == null) { + ensureAutoProtectionPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoProtectionPolicies_); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder clearAutoProtectionPolicies() { + if (autoProtectionPoliciesBuilder_ == null) { + autoProtectionPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public Builder removeAutoProtectionPolicies(int index) { + if (autoProtectionPoliciesBuilder_ == null) { + ensureAutoProtectionPoliciesIsMutable(); + autoProtectionPolicies_.remove(index); + onChanged(); + } else { + autoProtectionPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder + getAutoProtectionPoliciesBuilder(int index) { + return internalGetAutoProtectionPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder + getAutoProtectionPoliciesOrBuilder(int index) { + if (autoProtectionPoliciesBuilder_ == null) { + return autoProtectionPolicies_.get(index); + } else { + return autoProtectionPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public java.util.List + getAutoProtectionPoliciesOrBuilderList() { + if (autoProtectionPoliciesBuilder_ != null) { + return autoProtectionPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autoProtectionPolicies_); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder + addAutoProtectionPoliciesBuilder() { + return internalGetAutoProtectionPoliciesFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder + addAutoProtectionPoliciesBuilder(int index) { + return internalGetAutoProtectionPoliciesFieldBuilder() + .addBuilder( + index, com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicy resources found.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + public java.util.List + getAutoProtectionPoliciesBuilderList() { + return internalGetAutoProtectionPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder> + internalGetAutoProtectionPoliciesFieldBuilder() { + if (autoProtectionPoliciesBuilder_ == null) { + autoProtectionPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder>( + autoProtectionPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autoProtectionPolicies_ = null; + } + return autoProtectionPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) + private static final com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse(); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoProtectionPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..255f50f395c3 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPoliciesResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListAutoProtectionPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + java.util.List getAutoProtectionPoliciesList(); + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicies(int index); + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + int getAutoProtectionPoliciesCount(); + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + java.util.List + getAutoProtectionPoliciesOrBuilderList(); + + /** + * + * + *
+   * A list of the AutoProtectionPolicy resources found.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policies = 1; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder getAutoProtectionPoliciesOrBuilder( + int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequest.java new file mode 100644 index 000000000000..544afca84a89 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequest.java @@ -0,0 +1,1327 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for ListAutoProtectionPolicyBindings.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListAutoProtectionPolicyBindingsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) + ListAutoProtectionPolicyBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAutoProtectionPolicyBindingsRequest"); + } + + // Use ListAutoProtectionPolicyBindingsRequest.newBuilder() to construct. + private ListAutoProtectionPolicyBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAutoProtectionPolicyBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of policies to return in a single page is 500.
+   * If unspecified, a server-default value will be used.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest other = + (com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ListAutoProtectionPolicyBindings.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest build() { + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest buildPartial() { + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest result = + new com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) { + return mergeFrom( + (com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest other) { + if (other + == com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project and location for which to retrieve the list of
+     * policies. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of policies to return in a single page is 500.
+     * If unspecified, a server-default value will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of policies to return in a single page is 500.
+     * If unspecified, a server-default value will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of policies to return in a single page is 500.
+     * If unspecified, a server-default value will be used.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+     * page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters resources listed in the
+     * response. The following fields are filterable:
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An expression that sorts the results in the response. The
+     * following fields are sortable:
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) + private static final com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest(); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoProtectionPolicyBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..0c5eefd40b12 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListAutoProtectionPolicyBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The project and location for which to retrieve the list of
+   * policies. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of policies to return in a single page is 500.
+   * If unspecified, a server-default value will be used.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
+   * page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter expression that filters resources listed in the
+   * response. The following fields are filterable:
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. An expression that sorts the results in the response. The
+   * following fields are sortable:
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponse.java new file mode 100644 index 000000000000..afd86997d376 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponse.java @@ -0,0 +1,1500 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Response message for ListAutoProtectionPolicyBindings.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListAutoProtectionPolicyBindingsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) + ListAutoProtectionPolicyBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAutoProtectionPolicyBindingsResponse"); + } + + // Use ListAutoProtectionPolicyBindingsResponse.newBuilder() to construct. + private ListAutoProtectionPolicyBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAutoProtectionPolicyBindingsResponse() { + autoProtectionPolicyBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse.Builder.class); + } + + public static final int AUTO_PROTECTION_POLICY_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + autoProtectionPolicyBindings_; + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + @java.lang.Override + public java.util.List + getAutoProtectionPolicyBindingsList() { + return autoProtectionPolicyBindings_; + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + @java.lang.Override + public java.util.List + getAutoProtectionPolicyBindingsOrBuilderList() { + return autoProtectionPolicyBindings_; + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + @java.lang.Override + public int getAutoProtectionPolicyBindingsCount() { + return autoProtectionPolicyBindings_.size(); + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBindings( + int index) { + return autoProtectionPolicyBindings_.get(index); + } + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder + getAutoProtectionPolicyBindingsOrBuilder(int index) { + return autoProtectionPolicyBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < autoProtectionPolicyBindings_.size(); i++) { + output.writeMessage(1, autoProtectionPolicyBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < autoProtectionPolicyBindings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, autoProtectionPolicyBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse other = + (com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) obj; + + if (!getAutoProtectionPolicyBindingsList().equals(other.getAutoProtectionPolicyBindingsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAutoProtectionPolicyBindingsCount() > 0) { + hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicyBindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ListAutoProtectionPolicyBindings.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse.class, + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (autoProtectionPolicyBindingsBuilder_ == null) { + autoProtectionPolicyBindings_ = java.util.Collections.emptyList(); + } else { + autoProtectionPolicyBindings_ = null; + autoProtectionPolicyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingProto + .internal_static_google_cloud_backupdr_v1_ListAutoProtectionPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse build() { + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse buildPartial() { + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse result = + new com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse result) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autoProtectionPolicyBindings_ = + java.util.Collections.unmodifiableList(autoProtectionPolicyBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autoProtectionPolicyBindings_ = autoProtectionPolicyBindings_; + } else { + result.autoProtectionPolicyBindings_ = autoProtectionPolicyBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) { + return mergeFrom( + (com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse other) { + if (other + == com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + .getDefaultInstance()) return this; + if (autoProtectionPolicyBindingsBuilder_ == null) { + if (!other.autoProtectionPolicyBindings_.isEmpty()) { + if (autoProtectionPolicyBindings_.isEmpty()) { + autoProtectionPolicyBindings_ = other.autoProtectionPolicyBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.addAll(other.autoProtectionPolicyBindings_); + } + onChanged(); + } + } else { + if (!other.autoProtectionPolicyBindings_.isEmpty()) { + if (autoProtectionPolicyBindingsBuilder_.isEmpty()) { + autoProtectionPolicyBindingsBuilder_.dispose(); + autoProtectionPolicyBindingsBuilder_ = null; + autoProtectionPolicyBindings_ = other.autoProtectionPolicyBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + autoProtectionPolicyBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAutoProtectionPolicyBindingsFieldBuilder() + : null; + } else { + autoProtectionPolicyBindingsBuilder_.addAllMessages( + other.autoProtectionPolicyBindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding m = + input.readMessage( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.parser(), + extensionRegistry); + if (autoProtectionPolicyBindingsBuilder_ == null) { + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.add(m); + } else { + autoProtectionPolicyBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + autoProtectionPolicyBindings_ = java.util.Collections.emptyList(); + + private void ensureAutoProtectionPolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autoProtectionPolicyBindings_ = + new java.util.ArrayList( + autoProtectionPolicyBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder> + autoProtectionPolicyBindingsBuilder_; + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public java.util.List + getAutoProtectionPolicyBindingsList() { + if (autoProtectionPolicyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(autoProtectionPolicyBindings_); + } else { + return autoProtectionPolicyBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public int getAutoProtectionPolicyBindingsCount() { + if (autoProtectionPolicyBindingsBuilder_ == null) { + return autoProtectionPolicyBindings_.size(); + } else { + return autoProtectionPolicyBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBindings( + int index) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + return autoProtectionPolicyBindings_.get(index); + } else { + return autoProtectionPolicyBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder setAutoProtectionPolicyBindings( + int index, com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding value) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.set(index, value); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder setAutoProtectionPolicyBindings( + int index, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder builderForValue) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder addAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding value) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.add(value); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder addAutoProtectionPolicyBindings( + int index, com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding value) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.add(index, value); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder addAutoProtectionPolicyBindings( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder builderForValue) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.add(builderForValue.build()); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder addAutoProtectionPolicyBindings( + int index, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder builderForValue) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder addAllAutoProtectionPolicyBindings( + java.lang.Iterable + values) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + ensureAutoProtectionPolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, autoProtectionPolicyBindings_); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder clearAutoProtectionPolicyBindings() { + if (autoProtectionPolicyBindingsBuilder_ == null) { + autoProtectionPolicyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public Builder removeAutoProtectionPolicyBindings(int index) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + ensureAutoProtectionPolicyBindingsIsMutable(); + autoProtectionPolicyBindings_.remove(index); + onChanged(); + } else { + autoProtectionPolicyBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder + getAutoProtectionPolicyBindingsBuilder(int index) { + return internalGetAutoProtectionPolicyBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder + getAutoProtectionPolicyBindingsOrBuilder(int index) { + if (autoProtectionPolicyBindingsBuilder_ == null) { + return autoProtectionPolicyBindings_.get(index); + } else { + return autoProtectionPolicyBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder> + getAutoProtectionPolicyBindingsOrBuilderList() { + if (autoProtectionPolicyBindingsBuilder_ != null) { + return autoProtectionPolicyBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autoProtectionPolicyBindings_); + } + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder + addAutoProtectionPolicyBindingsBuilder() { + return internalGetAutoProtectionPolicyBindingsFieldBuilder() + .addBuilder( + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder + addAutoProtectionPolicyBindingsBuilder(int index) { + return internalGetAutoProtectionPolicyBindingsFieldBuilder() + .addBuilder( + index, com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.getDefaultInstance()); + } + + /** + * + * + *
+     * A list of the AutoProtectionPolicyBindings resources found.
+     * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + public java.util.List + getAutoProtectionPolicyBindingsBuilderList() { + return internalGetAutoProtectionPolicyBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder> + internalGetAutoProtectionPolicyBindingsFieldBuilder() { + if (autoProtectionPolicyBindingsBuilder_ == null) { + autoProtectionPolicyBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder>( + autoProtectionPolicyBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autoProtectionPolicyBindings_ = null; + } + return autoProtectionPolicyBindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) + private static final com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse(); + } + + public static com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAutoProtectionPolicyBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..d533a53290fb --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListAutoProtectionPolicyBindingsResponseOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicybinding.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListAutoProtectionPolicyBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + java.util.List + getAutoProtectionPolicyBindingsList(); + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding getAutoProtectionPolicyBindings( + int index); + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + int getAutoProtectionPolicyBindingsCount(); + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + java.util.List + getAutoProtectionPolicyBindingsOrBuilderList(); + + /** + * + * + *
+   * A list of the AutoProtectionPolicyBindings resources found.
+   * 
+ * + * + * repeated .google.cloud.backupdr.v1.AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingOrBuilder + getAutoProtectionPolicyBindingsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token that can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequest.java new file mode 100644 index 000000000000..e9ded34f4d8d --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequest.java @@ -0,0 +1,1366 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for List BindingMatchingResources.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest} + */ +@com.google.protobuf.Generated +public final class ListBindingMatchingResourcesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) + ListBindingMatchingResourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListBindingMatchingResourcesRequest"); + } + + // Use ListBindingMatchingResourcesRequest.newBuilder() to construct. + private ListBindingMatchingResourcesRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBindingMatchingResourcesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.class, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The project, location, auto protection policy and binding for
+   * which to retrieve `BindingMatchingResources` information. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+   * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+   * example **us-central1**.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project, location, auto protection policy and binding for
+   * which to retrieve `BindingMatchingResources` information. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+   * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+   * example **us-central1**.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of `BindingMatchingResources` to return in a
+   * single response. The default page size is 100 and maximum page size is 200.
+   * Note that the response may include a partial list and a caller should
+   * only rely on the response's
+   * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+   * to determine if there are more instances left to be queried.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. The value of
+   * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+   * received from a previous `ListBindingMatchingResources` call. Provide this
+   * to retrieve the subsequent page in a multi-page list of results. When
+   * paginating, all other parameters provided to `ListBindingMatchingResources`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The value of
+   * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+   * received from a previous `ListBindingMatchingResources` call. Provide this
+   * to retrieve the subsequent page in a multi-page list of results. When
+   * paginating, all other parameters provided to `ListBindingMatchingResources`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Field match expression used to filter the results.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Field match expression used to filter the results.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Field by which to sort the results.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Field by which to sort the results.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest other = + (com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for List BindingMatchingResources.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.class, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest build() { + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest buildPartial() { + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest result = + new com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest other) { + if (other + == com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The project, location, auto protection policy and binding for
+     * which to retrieve `BindingMatchingResources` information. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+     * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+     * example **us-central1**.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project, location, auto protection policy and binding for
+     * which to retrieve `BindingMatchingResources` information. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+     * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+     * example **us-central1**.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project, location, auto protection policy and binding for
+     * which to retrieve `BindingMatchingResources` information. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+     * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+     * example **us-central1**.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project, location, auto protection policy and binding for
+     * which to retrieve `BindingMatchingResources` information. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+     * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+     * example **us-central1**.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project, location, auto protection policy and binding for
+     * which to retrieve `BindingMatchingResources` information. Format:
+     * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+     * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+     * example **us-central1**.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of `BindingMatchingResources` to return in a
+     * single response. The default page size is 100 and maximum page size is 200.
+     * Note that the response may include a partial list and a caller should
+     * only rely on the response's
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of `BindingMatchingResources` to return in a
+     * single response. The default page size is 100 and maximum page size is 200.
+     * Note that the response may include a partial list and a caller should
+     * only rely on the response's
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of `BindingMatchingResources` to return in a
+     * single response. The default page size is 100 and maximum page size is 200.
+     * Note that the response may include a partial list and a caller should
+     * only rely on the response's
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * to determine if there are more instances left to be queried.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. The value of
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * received from a previous `ListBindingMatchingResources` call. Provide this
+     * to retrieve the subsequent page in a multi-page list of results. When
+     * paginating, all other parameters provided to `ListBindingMatchingResources`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The value of
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * received from a previous `ListBindingMatchingResources` call. Provide this
+     * to retrieve the subsequent page in a multi-page list of results. When
+     * paginating, all other parameters provided to `ListBindingMatchingResources`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The value of
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * received from a previous `ListBindingMatchingResources` call. Provide this
+     * to retrieve the subsequent page in a multi-page list of results. When
+     * paginating, all other parameters provided to `ListBindingMatchingResources`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value of
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * received from a previous `ListBindingMatchingResources` call. Provide this
+     * to retrieve the subsequent page in a multi-page list of results. When
+     * paginating, all other parameters provided to `ListBindingMatchingResources`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The value of
+     * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+     * received from a previous `ListBindingMatchingResources` call. Provide this
+     * to retrieve the subsequent page in a multi-page list of results. When
+     * paginating, all other parameters provided to `ListBindingMatchingResources`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Field match expression used to filter the results.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Field match expression used to filter the results.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Field match expression used to filter the results.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field match expression used to filter the results.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field match expression used to filter the results.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Field by which to sort the results.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Field by which to sort the results.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Field by which to sort the results.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field by which to sort the results.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field by which to sort the results.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) + private static final com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest(); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBindingMatchingResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequestOrBuilder.java new file mode 100644 index 000000000000..e8d5fb0b88d0 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListBindingMatchingResourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project, location, auto protection policy and binding for
+   * which to retrieve `BindingMatchingResources` information. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+   * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+   * example **us-central1**.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The project, location, auto protection policy and binding for
+   * which to retrieve `BindingMatchingResources` information. Format:
+   * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
+   * In Google Cloud Backup and DR, locations map to Google Cloud regions, for
+   * example **us-central1**.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of `BindingMatchingResources` to return in a
+   * single response. The default page size is 100 and maximum page size is 200.
+   * Note that the response may include a partial list and a caller should
+   * only rely on the response's
+   * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+   * to determine if there are more instances left to be queried.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The value of
+   * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+   * received from a previous `ListBindingMatchingResources` call. Provide this
+   * to retrieve the subsequent page in a multi-page list of results. When
+   * paginating, all other parameters provided to `ListBindingMatchingResources`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The value of
+   * [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token]
+   * received from a previous `ListBindingMatchingResources` call. Provide this
+   * to retrieve the subsequent page in a multi-page list of results. When
+   * paginating, all other parameters provided to `ListBindingMatchingResources`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Field match expression used to filter the results.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Field match expression used to filter the results.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field by which to sort the results.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Field by which to sort the results.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponse.java new file mode 100644 index 000000000000..dd8356e15a14 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponse.java @@ -0,0 +1,1210 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * The response message for getting a list of `BindingMatchingResources`.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse} + */ +@com.google.protobuf.Generated +public final class ListBindingMatchingResourcesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) + ListBindingMatchingResourcesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListBindingMatchingResourcesResponse"); + } + + // Use ListBindingMatchingResourcesResponse.newBuilder() to construct. + private ListBindingMatchingResourcesResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBindingMatchingResourcesResponse() { + matchingResources_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.class, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.Builder.class); + } + + public static final int MATCHING_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List matchingResources_; + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + @java.lang.Override + public java.util.List + getMatchingResourcesList() { + return matchingResources_; + } + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + @java.lang.Override + public java.util.List + getMatchingResourcesOrBuilderList() { + return matchingResources_; + } + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + @java.lang.Override + public int getMatchingResourcesCount() { + return matchingResources_.size(); + } + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingMatchingResource getMatchingResources(int index) { + return matchingResources_.get(index); + } + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder + getMatchingResourcesOrBuilder(int index) { + return matchingResources_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token which may be sent as
+   * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+   * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+   * page of results. If this field is omitted or empty, then there are no more
+   * results to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token which may be sent as
+   * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+   * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+   * page of results. If this field is omitted or empty, then there are no more
+   * results to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < matchingResources_.size(); i++) { + output.writeMessage(1, matchingResources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < matchingResources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingResources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse other = + (com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) obj; + + if (!getMatchingResourcesList().equals(other.getMatchingResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchingResourcesCount() > 0) { + hash = (37 * hash) + MATCHING_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingResourcesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The response message for getting a list of `BindingMatchingResources`.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.class, + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (matchingResourcesBuilder_ == null) { + matchingResources_ = java.util.Collections.emptyList(); + } else { + matchingResources_ = null; + matchingResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BindingMatchingResourceProto + .internal_static_google_cloud_backupdr_v1_ListBindingMatchingResourcesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse build() { + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse buildPartial() { + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse result = + new com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse result) { + if (matchingResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + matchingResources_ = java.util.Collections.unmodifiableList(matchingResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchingResources_ = matchingResources_; + } else { + result.matchingResources_ = matchingResourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) { + return mergeFrom((com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse other) { + if (other + == com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.getDefaultInstance()) + return this; + if (matchingResourcesBuilder_ == null) { + if (!other.matchingResources_.isEmpty()) { + if (matchingResources_.isEmpty()) { + matchingResources_ = other.matchingResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchingResourcesIsMutable(); + matchingResources_.addAll(other.matchingResources_); + } + onChanged(); + } + } else { + if (!other.matchingResources_.isEmpty()) { + if (matchingResourcesBuilder_.isEmpty()) { + matchingResourcesBuilder_.dispose(); + matchingResourcesBuilder_ = null; + matchingResources_ = other.matchingResources_; + bitField0_ = (bitField0_ & ~0x00000001); + matchingResourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMatchingResourcesFieldBuilder() + : null; + } else { + matchingResourcesBuilder_.addAllMessages(other.matchingResources_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.backupdr.v1.BindingMatchingResource m = + input.readMessage( + com.google.cloud.backupdr.v1.BindingMatchingResource.parser(), + extensionRegistry); + if (matchingResourcesBuilder_ == null) { + ensureMatchingResourcesIsMutable(); + matchingResources_.add(m); + } else { + matchingResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + matchingResources_ = java.util.Collections.emptyList(); + + private void ensureMatchingResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + matchingResources_ = + new java.util.ArrayList( + matchingResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BindingMatchingResource, + com.google.cloud.backupdr.v1.BindingMatchingResource.Builder, + com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder> + matchingResourcesBuilder_; + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public java.util.List + getMatchingResourcesList() { + if (matchingResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchingResources_); + } else { + return matchingResourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public int getMatchingResourcesCount() { + if (matchingResourcesBuilder_ == null) { + return matchingResources_.size(); + } else { + return matchingResourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public com.google.cloud.backupdr.v1.BindingMatchingResource getMatchingResources(int index) { + if (matchingResourcesBuilder_ == null) { + return matchingResources_.get(index); + } else { + return matchingResourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder setMatchingResources( + int index, com.google.cloud.backupdr.v1.BindingMatchingResource value) { + if (matchingResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingResourcesIsMutable(); + matchingResources_.set(index, value); + onChanged(); + } else { + matchingResourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder setMatchingResources( + int index, com.google.cloud.backupdr.v1.BindingMatchingResource.Builder builderForValue) { + if (matchingResourcesBuilder_ == null) { + ensureMatchingResourcesIsMutable(); + matchingResources_.set(index, builderForValue.build()); + onChanged(); + } else { + matchingResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder addMatchingResources( + com.google.cloud.backupdr.v1.BindingMatchingResource value) { + if (matchingResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingResourcesIsMutable(); + matchingResources_.add(value); + onChanged(); + } else { + matchingResourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder addMatchingResources( + int index, com.google.cloud.backupdr.v1.BindingMatchingResource value) { + if (matchingResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchingResourcesIsMutable(); + matchingResources_.add(index, value); + onChanged(); + } else { + matchingResourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder addMatchingResources( + com.google.cloud.backupdr.v1.BindingMatchingResource.Builder builderForValue) { + if (matchingResourcesBuilder_ == null) { + ensureMatchingResourcesIsMutable(); + matchingResources_.add(builderForValue.build()); + onChanged(); + } else { + matchingResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder addMatchingResources( + int index, com.google.cloud.backupdr.v1.BindingMatchingResource.Builder builderForValue) { + if (matchingResourcesBuilder_ == null) { + ensureMatchingResourcesIsMutable(); + matchingResources_.add(index, builderForValue.build()); + onChanged(); + } else { + matchingResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder addAllMatchingResources( + java.lang.Iterable values) { + if (matchingResourcesBuilder_ == null) { + ensureMatchingResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingResources_); + onChanged(); + } else { + matchingResourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder clearMatchingResources() { + if (matchingResourcesBuilder_ == null) { + matchingResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchingResourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public Builder removeMatchingResources(int index) { + if (matchingResourcesBuilder_ == null) { + ensureMatchingResourcesIsMutable(); + matchingResources_.remove(index); + onChanged(); + } else { + matchingResourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public com.google.cloud.backupdr.v1.BindingMatchingResource.Builder getMatchingResourcesBuilder( + int index) { + return internalGetMatchingResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder + getMatchingResourcesOrBuilder(int index) { + if (matchingResourcesBuilder_ == null) { + return matchingResources_.get(index); + } else { + return matchingResourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public java.util.List + getMatchingResourcesOrBuilderList() { + if (matchingResourcesBuilder_ != null) { + return matchingResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchingResources_); + } + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public com.google.cloud.backupdr.v1.BindingMatchingResource.Builder + addMatchingResourcesBuilder() { + return internalGetMatchingResourcesFieldBuilder() + .addBuilder(com.google.cloud.backupdr.v1.BindingMatchingResource.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public com.google.cloud.backupdr.v1.BindingMatchingResource.Builder addMatchingResourcesBuilder( + int index) { + return internalGetMatchingResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.backupdr.v1.BindingMatchingResource.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of `BindingMatchingResources` in the project,location for the
+     * specified binding.
+     * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + * + */ + public java.util.List + getMatchingResourcesBuilderList() { + return internalGetMatchingResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BindingMatchingResource, + com.google.cloud.backupdr.v1.BindingMatchingResource.Builder, + com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder> + internalGetMatchingResourcesFieldBuilder() { + if (matchingResourcesBuilder_ == null) { + matchingResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.backupdr.v1.BindingMatchingResource, + com.google.cloud.backupdr.v1.BindingMatchingResource.Builder, + com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder>( + matchingResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + matchingResources_ = null; + } + return matchingResourcesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token which may be sent as
+     * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+     * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+     * page of results. If this field is omitted or empty, then there are no more
+     * results to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token which may be sent as
+     * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+     * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+     * page of results. If this field is omitted or empty, then there are no more
+     * results to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token which may be sent as
+     * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+     * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+     * page of results. If this field is omitted or empty, then there are no more
+     * results to return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token which may be sent as
+     * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+     * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+     * page of results. If this field is omitted or empty, then there are no more
+     * results to return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token which may be sent as
+     * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+     * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+     * page of results. If this field is omitted or empty, then there are no more
+     * results to return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) + private static final com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse(); + } + + public static com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBindingMatchingResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponseOrBuilder.java new file mode 100644 index 000000000000..1b0e894e42de --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ListBindingMatchingResourcesResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/bindingmatchingresource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface ListBindingMatchingResourcesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + java.util.List getMatchingResourcesList(); + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + com.google.cloud.backupdr.v1.BindingMatchingResource getMatchingResources(int index); + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + int getMatchingResourcesCount(); + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + java.util.List + getMatchingResourcesOrBuilderList(); + + /** + * + * + *
+   * The list of `BindingMatchingResources` in the project,location for the
+   * specified binding.
+   * 
+ * + * repeated .google.cloud.backupdr.v1.BindingMatchingResource matching_resources = 1; + */ + com.google.cloud.backupdr.v1.BindingMatchingResourceOrBuilder getMatchingResourcesOrBuilder( + int index); + + /** + * + * + *
+   * A token which may be sent as
+   * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+   * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+   * page of results. If this field is omitted or empty, then there are no more
+   * results to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token which may be sent as
+   * [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token]
+   * in a subsequent `ListBindingMatchingResources` call to retrieve the next
+   * page of results. If this field is omitted or empty, then there are no more
+   * results to return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingCondition.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingCondition.java new file mode 100644 index 000000000000..7c4a285bd1b4 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingCondition.java @@ -0,0 +1,830 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * MatchingCondition specifies a set of conditions for matching resources.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.MatchingCondition} + */ +@com.google.protobuf.Generated +public final class MatchingCondition extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.MatchingCondition) + MatchingConditionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MatchingCondition"); + } + + // Use MatchingCondition.newBuilder() to construct. + private MatchingCondition(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MatchingCondition() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_MatchingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_MatchingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.MatchingCondition.class, + com.google.cloud.backupdr.v1.MatchingCondition.Builder.class); + } + + private int conditionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object condition_; + + public enum ConditionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LABEL_CONDITION(1), + CONDITION_NOT_SET(0); + private final int value; + + private ConditionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConditionCase valueOf(int value) { + return forNumber(value); + } + + public static ConditionCase forNumber(int value) { + switch (value) { + case 1: + return LABEL_CONDITION; + case 0: + return CONDITION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConditionCase getConditionCase() { + return ConditionCase.forNumber(conditionCase_); + } + + public static final int LABEL_CONDITION_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. A condition that matches resources based on their labels.
+   * For MVP, this is limited to a single label match.
+   * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the labelCondition field is set. + */ + @java.lang.Override + public boolean hasLabelCondition() { + return conditionCase_ == 1; + } + + /** + * + * + *
+   * Optional. A condition that matches resources based on their labels.
+   * For MVP, this is limited to a single label match.
+   * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The labelCondition. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePair getLabelCondition() { + if (conditionCase_ == 1) { + return (com.google.cloud.backupdr.v1.KeyValuePair) condition_; + } + return com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. A condition that matches resources based on their labels.
+   * For MVP, this is limited to a single label match.
+   * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePairOrBuilder getLabelConditionOrBuilder() { + if (conditionCase_ == 1) { + return (com.google.cloud.backupdr.v1.KeyValuePair) condition_; + } + return com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conditionCase_ == 1) { + output.writeMessage(1, (com.google.cloud.backupdr.v1.KeyValuePair) condition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conditionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.backupdr.v1.KeyValuePair) condition_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.MatchingCondition)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.MatchingCondition other = + (com.google.cloud.backupdr.v1.MatchingCondition) obj; + + if (!getConditionCase().equals(other.getConditionCase())) return false; + switch (conditionCase_) { + case 1: + if (!getLabelCondition().equals(other.getLabelCondition())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (conditionCase_) { + case 1: + hash = (37 * hash) + LABEL_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getLabelCondition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.MatchingCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * MatchingCondition specifies a set of conditions for matching resources.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.MatchingCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.MatchingCondition) + com.google.cloud.backupdr.v1.MatchingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_MatchingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_MatchingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.MatchingCondition.class, + com.google.cloud.backupdr.v1.MatchingCondition.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.MatchingCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (labelConditionBuilder_ != null) { + labelConditionBuilder_.clear(); + } + conditionCase_ = 0; + condition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_MatchingCondition_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.MatchingCondition getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.MatchingCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.MatchingCondition build() { + com.google.cloud.backupdr.v1.MatchingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.MatchingCondition buildPartial() { + com.google.cloud.backupdr.v1.MatchingCondition result = + new com.google.cloud.backupdr.v1.MatchingCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.MatchingCondition result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.backupdr.v1.MatchingCondition result) { + result.conditionCase_ = conditionCase_; + result.condition_ = this.condition_; + if (conditionCase_ == 1 && labelConditionBuilder_ != null) { + result.condition_ = labelConditionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.MatchingCondition) { + return mergeFrom((com.google.cloud.backupdr.v1.MatchingCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.MatchingCondition other) { + if (other == com.google.cloud.backupdr.v1.MatchingCondition.getDefaultInstance()) return this; + switch (other.getConditionCase()) { + case LABEL_CONDITION: + { + mergeLabelCondition(other.getLabelCondition()); + break; + } + case CONDITION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetLabelConditionFieldBuilder().getBuilder(), extensionRegistry); + conditionCase_ = 1; + 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 conditionCase_ = 0; + private java.lang.Object condition_; + + public ConditionCase getConditionCase() { + return ConditionCase.forNumber(conditionCase_); + } + + public Builder clearCondition() { + conditionCase_ = 0; + condition_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.KeyValuePair, + com.google.cloud.backupdr.v1.KeyValuePair.Builder, + com.google.cloud.backupdr.v1.KeyValuePairOrBuilder> + labelConditionBuilder_; + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the labelCondition field is set. + */ + @java.lang.Override + public boolean hasLabelCondition() { + return conditionCase_ == 1; + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The labelCondition. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePair getLabelCondition() { + if (labelConditionBuilder_ == null) { + if (conditionCase_ == 1) { + return (com.google.cloud.backupdr.v1.KeyValuePair) condition_; + } + return com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } else { + if (conditionCase_ == 1) { + return labelConditionBuilder_.getMessage(); + } + return com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLabelCondition(com.google.cloud.backupdr.v1.KeyValuePair value) { + if (labelConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + labelConditionBuilder_.setMessage(value); + } + conditionCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLabelCondition( + com.google.cloud.backupdr.v1.KeyValuePair.Builder builderForValue) { + if (labelConditionBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + labelConditionBuilder_.setMessage(builderForValue.build()); + } + conditionCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLabelCondition(com.google.cloud.backupdr.v1.KeyValuePair value) { + if (labelConditionBuilder_ == null) { + if (conditionCase_ == 1 + && condition_ != com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance()) { + condition_ = + com.google.cloud.backupdr.v1.KeyValuePair.newBuilder( + (com.google.cloud.backupdr.v1.KeyValuePair) condition_) + .mergeFrom(value) + .buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + if (conditionCase_ == 1) { + labelConditionBuilder_.mergeFrom(value); + } else { + labelConditionBuilder_.setMessage(value); + } + } + conditionCase_ = 1; + return this; + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLabelCondition() { + if (labelConditionBuilder_ == null) { + if (conditionCase_ == 1) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } + } else { + if (conditionCase_ == 1) { + conditionCase_ = 0; + condition_ = null; + } + labelConditionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.backupdr.v1.KeyValuePair.Builder getLabelConditionBuilder() { + return internalGetLabelConditionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.KeyValuePairOrBuilder getLabelConditionOrBuilder() { + if ((conditionCase_ == 1) && (labelConditionBuilder_ != null)) { + return labelConditionBuilder_.getMessageOrBuilder(); + } else { + if (conditionCase_ == 1) { + return (com.google.cloud.backupdr.v1.KeyValuePair) condition_; + } + return com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. A condition that matches resources based on their labels.
+     * For MVP, this is limited to a single label match.
+     * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.KeyValuePair, + com.google.cloud.backupdr.v1.KeyValuePair.Builder, + com.google.cloud.backupdr.v1.KeyValuePairOrBuilder> + internalGetLabelConditionFieldBuilder() { + if (labelConditionBuilder_ == null) { + if (!(conditionCase_ == 1)) { + condition_ = com.google.cloud.backupdr.v1.KeyValuePair.getDefaultInstance(); + } + labelConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.KeyValuePair, + com.google.cloud.backupdr.v1.KeyValuePair.Builder, + com.google.cloud.backupdr.v1.KeyValuePairOrBuilder>( + (com.google.cloud.backupdr.v1.KeyValuePair) condition_, + getParentForChildren(), + isClean()); + condition_ = null; + } + conditionCase_ = 1; + onChanged(); + return labelConditionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.MatchingCondition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.MatchingCondition) + private static final com.google.cloud.backupdr.v1.MatchingCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.MatchingCondition(); + } + + public static com.google.cloud.backupdr.v1.MatchingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.MatchingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingConditionOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingConditionOrBuilder.java new file mode 100644 index 000000000000..b0ca5dea0615 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/MatchingConditionOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface MatchingConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.MatchingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A condition that matches resources based on their labels.
+   * For MVP, this is limited to a single label match.
+   * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the labelCondition field is set. + */ + boolean hasLabelCondition(); + + /** + * + * + *
+   * Optional. A condition that matches resources based on their labels.
+   * For MVP, this is limited to a single label match.
+   * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The labelCondition. + */ + com.google.cloud.backupdr.v1.KeyValuePair getLabelCondition(); + + /** + * + * + *
+   * Optional. A condition that matches resources based on their labels.
+   * For MVP, this is limited to a single label match.
+   * 
+ * + * + * .google.cloud.backupdr.v1.KeyValuePair label_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.backupdr.v1.KeyValuePairOrBuilder getLabelConditionOrBuilder(); + + com.google.cloud.backupdr.v1.MatchingCondition.ConditionCase getConditionCase(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummary.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummary.java new file mode 100644 index 000000000000..0ad53290c2f1 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummary.java @@ -0,0 +1,711 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * PolicyEvaluationSummary contains the summary of the last run of job that
+ * applies policy to matching resources.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.PolicyEvaluationSummary} + */ +@com.google.protobuf.Generated +public final class PolicyEvaluationSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.PolicyEvaluationSummary) + PolicyEvaluationSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PolicyEvaluationSummary"); + } + + // Use PolicyEvaluationSummary.newBuilder() to construct. + private PolicyEvaluationSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PolicyEvaluationSummary() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.class, + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder.class); + } + + public static final int MATCHING_RESOURCE_COUNT_FIELD_NUMBER = 1; + private long matchingResourceCount_ = 0L; + + /** + * + * + *
+   * Output only. The number of resources that currently match the policy's
+   * criteria.
+   * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchingResourceCount. + */ + @java.lang.Override + public long getMatchingResourceCount() { + return matchingResourceCount_; + } + + public static final int PROTECTED_RESOURCE_COUNT_FIELD_NUMBER = 2; + private long protectedResourceCount_ = 0L; + + /** + * + * + *
+   * Output only. The number of matching resources that are successfully
+   * protected.
+   * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protectedResourceCount. + */ + @java.lang.Override + public long getProtectedResourceCount() { + return protectedResourceCount_; + } + + public static final int FAILED_RESOURCE_COUNT_FIELD_NUMBER = 3; + private long failedResourceCount_ = 0L; + + /** + * + * + *
+   * Output only. The number of matching resources whose protection failed
+   * during job run.
+   * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedResourceCount. + */ + @java.lang.Override + public long getFailedResourceCount() { + return failedResourceCount_; + } + + 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 (matchingResourceCount_ != 0L) { + output.writeInt64(1, matchingResourceCount_); + } + if (protectedResourceCount_ != 0L) { + output.writeInt64(2, protectedResourceCount_); + } + if (failedResourceCount_ != 0L) { + output.writeInt64(3, failedResourceCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchingResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, matchingResourceCount_); + } + if (protectedResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, protectedResourceCount_); + } + if (failedResourceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedResourceCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.PolicyEvaluationSummary)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.PolicyEvaluationSummary other = + (com.google.cloud.backupdr.v1.PolicyEvaluationSummary) obj; + + if (getMatchingResourceCount() != other.getMatchingResourceCount()) return false; + if (getProtectedResourceCount() != other.getProtectedResourceCount()) return false; + if (getFailedResourceCount() != other.getFailedResourceCount()) 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) + MATCHING_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMatchingResourceCount()); + hash = (37 * hash) + PROTECTED_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProtectedResourceCount()); + hash = (37 * hash) + FAILED_RESOURCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedResourceCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.backupdr.v1.PolicyEvaluationSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * PolicyEvaluationSummary contains the summary of the last run of job that
+   * applies policy to matching resources.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.PolicyEvaluationSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.PolicyEvaluationSummary) + com.google.cloud.backupdr.v1.PolicyEvaluationSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.class, + com.google.cloud.backupdr.v1.PolicyEvaluationSummary.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.PolicyEvaluationSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchingResourceCount_ = 0L; + protectedResourceCount_ = 0L; + failedResourceCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_PolicyEvaluationSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary build() { + com.google.cloud.backupdr.v1.PolicyEvaluationSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary buildPartial() { + com.google.cloud.backupdr.v1.PolicyEvaluationSummary result = + new com.google.cloud.backupdr.v1.PolicyEvaluationSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.PolicyEvaluationSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchingResourceCount_ = matchingResourceCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protectedResourceCount_ = protectedResourceCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedResourceCount_ = failedResourceCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.PolicyEvaluationSummary) { + return mergeFrom((com.google.cloud.backupdr.v1.PolicyEvaluationSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.PolicyEvaluationSummary other) { + if (other == com.google.cloud.backupdr.v1.PolicyEvaluationSummary.getDefaultInstance()) + return this; + if (other.getMatchingResourceCount() != 0L) { + setMatchingResourceCount(other.getMatchingResourceCount()); + } + if (other.getProtectedResourceCount() != 0L) { + setProtectedResourceCount(other.getProtectedResourceCount()); + } + if (other.getFailedResourceCount() != 0L) { + setFailedResourceCount(other.getFailedResourceCount()); + } + 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: + { + matchingResourceCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + protectedResourceCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedResourceCount_ = input.readInt64(); + 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 long matchingResourceCount_; + + /** + * + * + *
+     * Output only. The number of resources that currently match the policy's
+     * criteria.
+     * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchingResourceCount. + */ + @java.lang.Override + public long getMatchingResourceCount() { + return matchingResourceCount_; + } + + /** + * + * + *
+     * Output only. The number of resources that currently match the policy's
+     * criteria.
+     * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The matchingResourceCount to set. + * @return This builder for chaining. + */ + public Builder setMatchingResourceCount(long value) { + + matchingResourceCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of resources that currently match the policy's
+     * criteria.
+     * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMatchingResourceCount() { + bitField0_ = (bitField0_ & ~0x00000001); + matchingResourceCount_ = 0L; + onChanged(); + return this; + } + + private long protectedResourceCount_; + + /** + * + * + *
+     * Output only. The number of matching resources that are successfully
+     * protected.
+     * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protectedResourceCount. + */ + @java.lang.Override + public long getProtectedResourceCount() { + return protectedResourceCount_; + } + + /** + * + * + *
+     * Output only. The number of matching resources that are successfully
+     * protected.
+     * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The protectedResourceCount to set. + * @return This builder for chaining. + */ + public Builder setProtectedResourceCount(long value) { + + protectedResourceCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of matching resources that are successfully
+     * protected.
+     * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProtectedResourceCount() { + bitField0_ = (bitField0_ & ~0x00000002); + protectedResourceCount_ = 0L; + onChanged(); + return this; + } + + private long failedResourceCount_; + + /** + * + * + *
+     * Output only. The number of matching resources whose protection failed
+     * during job run.
+     * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedResourceCount. + */ + @java.lang.Override + public long getFailedResourceCount() { + return failedResourceCount_; + } + + /** + * + * + *
+     * Output only. The number of matching resources whose protection failed
+     * during job run.
+     * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The failedResourceCount to set. + * @return This builder for chaining. + */ + public Builder setFailedResourceCount(long value) { + + failedResourceCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The number of matching resources whose protection failed
+     * during job run.
+     * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFailedResourceCount() { + bitField0_ = (bitField0_ & ~0x00000004); + failedResourceCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.PolicyEvaluationSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.PolicyEvaluationSummary) + private static final com.google.cloud.backupdr.v1.PolicyEvaluationSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.PolicyEvaluationSummary(); + } + + public static com.google.cloud.backupdr.v1.PolicyEvaluationSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyEvaluationSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.PolicyEvaluationSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummaryOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummaryOrBuilder.java new file mode 100644 index 000000000000..596bf9b5ab4d --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/PolicyEvaluationSummaryOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface PolicyEvaluationSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.PolicyEvaluationSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The number of resources that currently match the policy's
+   * criteria.
+   * 
+ * + * int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The matchingResourceCount. + */ + long getMatchingResourceCount(); + + /** + * + * + *
+   * Output only. The number of matching resources that are successfully
+   * protected.
+   * 
+ * + * int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protectedResourceCount. + */ + long getProtectedResourceCount(); + + /** + * + * + *
+   * Output only. The number of matching resources whose protection failed
+   * during job run.
+   * 
+ * + * int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedResourceCount. + */ + long getFailedResourceCount(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequest.java new file mode 100644 index 000000000000..c081021cc0c9 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequest.java @@ -0,0 +1,1324 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for updating an AutoProtectionPolicy.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAutoProtectionPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) + UpdateAutoProtectionPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateAutoProtectionPolicyRequest"); + } + + // Use UpdateAutoProtectionPolicyRequest.newBuilder() to construct. + private UpdateAutoProtectionPolicyRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAutoProtectionPolicyRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int AUTO_PROTECTION_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.backupdr.v1.AutoProtectionPolicy autoProtectionPolicy_; + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasAutoProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy() { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder + getAutoProtectionPolicyOrBuilder() { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AutoProtectionPolicy resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AutoProtectionPolicy resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AutoProtectionPolicy resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAutoProtectionPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAutoProtectionPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest other = + (com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) obj; + + if (hasAutoProtectionPolicy() != other.hasAutoProtectionPolicy()) return false; + if (hasAutoProtectionPolicy()) { + if (!getAutoProtectionPolicy().equals(other.getAutoProtectionPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAutoProtectionPolicy()) { + hash = (37 * hash) + AUTO_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAutoProtectionPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for updating an AutoProtectionPolicy.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.class, + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAutoProtectionPolicyFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoProtectionPolicy_ = null; + if (autoProtectionPolicyBuilder_ != null) { + autoProtectionPolicyBuilder_.dispose(); + autoProtectionPolicyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.AutoProtectionPolicyProto + .internal_static_google_cloud_backupdr_v1_UpdateAutoProtectionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest build() { + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest buildPartial() { + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest result = + new com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoProtectionPolicy_ = + autoProtectionPolicyBuilder_ == null + ? autoProtectionPolicy_ + : autoProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest other) { + if (other + == com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest.getDefaultInstance()) + return this; + if (other.hasAutoProtectionPolicy()) { + mergeAutoProtectionPolicy(other.getAutoProtectionPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetAutoProtectionPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.backupdr.v1.AutoProtectionPolicy autoProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder> + autoProtectionPolicyBuilder_; + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicy field is set. + */ + public boolean hasAutoProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicy. + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy() { + if (autoProtectionPolicyBuilder_ == null) { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } else { + return autoProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoProtectionPolicy( + com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoProtectionPolicy_ = value; + } else { + autoProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoProtectionPolicy( + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder builderForValue) { + if (autoProtectionPolicyBuilder_ == null) { + autoProtectionPolicy_ = builderForValue.build(); + } else { + autoProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutoProtectionPolicy( + com.google.cloud.backupdr.v1.AutoProtectionPolicy value) { + if (autoProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && autoProtectionPolicy_ != null + && autoProtectionPolicy_ + != com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance()) { + getAutoProtectionPolicyBuilder().mergeFrom(value); + } else { + autoProtectionPolicy_ = value; + } + } else { + autoProtectionPolicyBuilder_.mergeFrom(value); + } + if (autoProtectionPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutoProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + autoProtectionPolicy_ = null; + if (autoProtectionPolicyBuilder_ != null) { + autoProtectionPolicyBuilder_.dispose(); + autoProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder + getAutoProtectionPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAutoProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder + getAutoProtectionPolicyOrBuilder() { + if (autoProtectionPolicyBuilder_ != null) { + return autoProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return autoProtectionPolicy_ == null + ? com.google.cloud.backupdr.v1.AutoProtectionPolicy.getDefaultInstance() + : autoProtectionPolicy_; + } + } + + /** + * + * + *
+     * Required. The policy to update.
+     * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder> + internalGetAutoProtectionPolicyFieldBuilder() { + if (autoProtectionPolicyBuilder_ == null) { + autoProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.backupdr.v1.AutoProtectionPolicy, + com.google.cloud.backupdr.v1.AutoProtectionPolicy.Builder, + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder>( + getAutoProtectionPolicy(), getParentForChildren(), isClean()); + autoProtectionPolicy_ = null; + } + return autoProtectionPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AutoProtectionPolicy resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) + private static final com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest(); + } + + public static com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAutoProtectionPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..ae1e5569f6f7 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/UpdateAutoProtectionPolicyRequestOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/backupdr/v1/autoprotectionpolicy.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.backupdr.v1; + +@com.google.protobuf.Generated +public interface UpdateAutoProtectionPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoProtectionPolicy field is set. + */ + boolean hasAutoProtectionPolicy(); + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoProtectionPolicy. + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicy getAutoProtectionPolicy(); + + /** + * + * + *
+   * Required. The policy to update.
+   * 
+ * + * + * .google.cloud.backupdr.v1.AutoProtectionPolicy auto_protection_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.backupdr.v1.AutoProtectionPolicyOrBuilder getAutoProtectionPolicyOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AutoProtectionPolicy resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AutoProtectionPolicy resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AutoProtectionPolicy resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto new file mode 100644 index 000000000000..12dc08b65945 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto @@ -0,0 +1,141 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.backupdr.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/backupdr/v1/autoprotectionpolicy.proto"; +import "google/cloud/backupdr/v1/autoprotectionpolicybinding.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.BackupDR.V1"; +option go_package = "cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdrpb"; +option java_multiple_files = true; +option java_outer_classname = "AppliedAutoProtectionPolicyProto"; +option java_package = "com.google.cloud.backupdr.v1"; +option php_namespace = "Google\\Cloud\\BackupDR\\V1"; +option ruby_package = "Google::Cloud::BackupDR::V1"; + +// AppliedAutoProtectionPolicy is a read-only view of AutoProtectionPolicy +// and AutoProtectionPolicyBinding resources that apply to a given workload +// project. +message AppliedAutoProtectionPolicy { + option (google.api.resource) = { + type: "backupdr.googleapis.com/AppliedAutoProtectionPolicy" + pattern: "projects/{project}/locations/{location}/appliedAutoProtectionPolicies/{applied_auto_protection_policy}" + plural: "appliedAutoProtectionPolicies" + singular: "appliedAutoProtectionPolicy" + }; + + // Represents the various states an applied auto protection policy can be in. + enum State { + // State is not specified. + STATE_UNSPECIFIED = 0; + + // The policy is in the process of being applied. + CREATING = 1; + + // The policy has been applied and is active. + ACTIVE = 2; + + // The policy is in the process of being removed. + DELETION_INITIATED = 3; + } + + // Identifier. Canonical resource name. + // Format: + // projects/{workload-project-number}/locations/{location}/appliedAutoProtectionPolicies/{id}. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The full resource name of the AutoProtectionPolicyBinding that + // applies the source policy to a scope including this workload project. e.g., + // projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. + string source_binding = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; + + // Output only. The criteria resources must meet for this rule to apply. From + // AutoProtectionPolicy.criteria. + Criteria criteria = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The set of backup plan configurations, mirroring the + // backup_plan_details from the source AutoProtectionPolicy. Each element + // specifies a backup plan for a given resource type. + repeated BackupPlanDetail backup_plan_details = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp indicating when the binding was last modified. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp indicating when the binding was last created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The summary of the last policy application when the job has + // run. + BindingEvaluationSummary binding_evaluation_summary = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the applied auto protection policy. + State status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for listing AppliedAutoProtectionPolicies. +message ListAppliedAutoProtectionPoliciesRequest { + // Required. The project and location for which to retrieve the list of + // applied policies. Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The maximum number of applied policies to return in a single + // page. The maximum value is 1000; values above 1000 will be coerced to + // 1000. If unspecified or set to 0, a default page size of 500 will be used. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListAppliedAutoProtectionPolicies` call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters resources listed in the + // response. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that sorts the results in the response. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListAppliedAutoProtectionPolicies. +message ListAppliedAutoProtectionPoliciesResponse { + // A list of the AppliedAutoProtectionPolicy resources found. + repeated AppliedAutoProtectionPolicy applied_auto_protection_policies = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. For example, + // "projects/my-project/locations/us-east1"]. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicy.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicy.proto new file mode 100644 index 000000000000..dd2ba2f6a53f --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicy.proto @@ -0,0 +1,332 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.backupdr.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.BackupDR.V1"; +option go_package = "cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdrpb"; +option java_multiple_files = true; +option java_outer_classname = "AutoProtectionPolicyProto"; +option java_package = "com.google.cloud.backupdr.v1"; +option php_namespace = "Google\\Cloud\\BackupDR\\V1"; +option ruby_package = "Google::Cloud::BackupDR::V1"; + +// An AutoprotectionPolicy is a policy resource designed to automate backup +// management, moving from manual per-resource protection to a bulk approach. +// The policy dynamically discovers and applies a specified backup plan to all +// eligible resources that match its defined scope and criteria. +message AutoProtectionPolicy { + option (google.api.resource) = { + type: "backupdr.googleapis.com/AutoProtectionPolicy" + pattern: "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}" + plural: "autoProtectionPolicies" + singular: "autoProtectionPolicy" + }; + + // The state of an AutoProtectionPolicy. + enum State { + // The state of the policy is unspecified. + STATE_UNSPECIFIED = 0; + + // The policy is being created. + CREATING = 1; + + // The policy is active and protecting matching resources. + ACTIVE = 2; + + // The policy is being updated. + UPDATING = 3; + + // The policy is being deleted. + DELETING = 4; + } + + // Output only. Identifier. The resource name of the AutoProtectionPolicy. + // Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}` + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. A description of the policy. The description must be at most 2048 + // characters. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The backup plan details for matching resources. + repeated BackupPlanDetail backup_plan_details = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The criteria for matching resources. + Criteria criteria = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The current state of the AutoProtectionPolicy. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The etag for the policy. + // If this is provided on update, it must match the server's etag. + string etag = 6; + + // Output only. Summary of total count of different containers covered through + // this policy. + BindingSummary binding_summary = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary of last policy evaluation when job was run per + // workload type. + PolicyEvaluationSummary policy_evaluation_summary = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the policy was created. + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the policy was last updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// BackupPlanDetail defines configuration of protection. +message BackupPlanDetail { + // Required. The type of resource that this policy will automatically protect. + // Allowed values are, `compute.googleapis.com/Instance` and + // `compute.googleapis.com/Disk` are supported. + string resource_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the BackupPlan to apply to resources that + // match the policy's criteria. This backup plan must be in the same location + // as AutoProtectionPolicy. Format: + // projects/{project}/locations/{location}/backupPlans/{backupPlanId} + string backup_plan = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/BackupPlan" + } + ]; +} + +// Criteria specifies a set of criteria for matching resources. +message Criteria { + // Required. A list of matching conditions that a resource must meet to be + // protected by the policy. + repeated MatchingCondition matching_conditions = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// MatchingCondition specifies a set of conditions for matching resources. +message MatchingCondition { + // A condition that a resource must meet to be protected by the + // policy. + oneof condition { + // Optional. A condition that matches resources based on their labels. + // For MVP, this is limited to a single label match. + KeyValuePair label_condition = 1 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// PolicyEvaluationSummary contains the summary of the last run of job that +// applies policy to matching resources. +message PolicyEvaluationSummary { + // Output only. The number of resources that currently match the policy's + // criteria. + int64 matching_resource_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of matching resources that are successfully + // protected. + int64 protected_resource_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of matching resources whose protection failed + // during job run. + int64 failed_resource_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// BindingSummary contains count of different containers covered through this +// policy. +message BindingSummary { + // Output only. Total count of Projects protected with this policy. + int64 project_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// KeyValuePair defines a key-value pair for matching resource labels. +message KeyValuePair { + // Required. The key of the label to match. + // This must be in the format `{label_key}`. + // The key must match the regex + // Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + string key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The values of the label to match. + // There will be explicit "OR" between values of array. + // Each value must be in the format `{label_value}`. + // The value must match the regex + // Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`. + repeated string values = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for creating an AutoProtectionPolicy. +message CreateAutoProtectionPolicyRequest { + // Required. The parent resource where this policy will be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The ID to use for the policy. + // This will become the final component of the policy's resource name. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + string auto_protection_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AutoProtectionPolicy resource to create. + AutoProtectionPolicy auto_protection_policy = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for getting an AutoProtectionPolicy. +message GetAutoProtectionPolicyRequest { + // Required. The name of the policy to retrieve. + // Format: + // projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicy" + } + ]; +} + +// Request message for updating an AutoProtectionPolicy. +message UpdateAutoProtectionPolicyRequest { + // Required. The policy to update. + AutoProtectionPolicy auto_protection_policy = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to specify the fields to be overwritten in the + // AutoProtectionPolicy resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for deleting an AutoProtectionPolicy. +message DeleteAutoProtectionPolicyRequest { + // Required. The name of the policy to delete. + // Format: + // projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicy" + } + ]; + + // Optional. The current etag of the autoprotectionpolicy. + // If an etag is provided and does not match the current etag of the + // connection, deletion will be blocked. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for ListAutoProtectionPolicies. +message ListAutoProtectionPoliciesRequest { + // Required. The project and location for which to retrieve the list of + // policies. Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The maximum number of policies to return in a single page. + // If unspecified, a server-default value will be used. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent + // page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters resources listed in the + // response. The following fields are filterable: + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that sorts the results in the response. The + // following fields are sortable: + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListAutoProtectionPolicies. +message ListAutoProtectionPoliciesResponse { + // A list of the AutoProtectionPolicy resources found. + repeated AutoProtectionPolicy auto_protection_policies = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicybinding.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicybinding.proto new file mode 100644 index 000000000000..1875e70f58e4 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/autoprotectionpolicybinding.proto @@ -0,0 +1,237 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.backupdr.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.BackupDR.V1"; +option go_package = "cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdrpb"; +option java_multiple_files = true; +option java_outer_classname = "AutoProtectionPolicyBindingProto"; +option java_package = "com.google.cloud.backupdr.v1"; +option php_namespace = "Google\\Cloud\\BackupDR\\V1"; +option ruby_package = "Google::Cloud::BackupDR::V1"; + +// An AutoProtectionPolicyBinding (APPA) acts as the bridge between an +// AutoProtectionPolicy and the scope (Project) where +// the policy should be applied. +message AutoProtectionPolicyBinding { + option (google.api.resource) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + pattern: "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}" + plural: "autoProtectionPolicyBindings" + singular: "autoProtectionPolicyBinding" + }; + + // The state of an AutoProtectionPolicyBinding. + enum State { + // The state of the binding is unspecified. + STATE_UNSPECIFIED = 0; + + // The binding is being created. + CREATING = 1; + + // The binding is active. + ACTIVE = 2; + + // The binding deletion is initiated. + DELETION_INITIATED = 3; + } + + // Output only. Identifier. The resource name of the + // AutoProtectionPolicyBinding. Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}` + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Optional. A description of the binding. The description must be at most + // 2048 characters. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The current state of the AutoProtectionPolicyBinding. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Resource Id of target container on which policy will + // be applied. Format: projects/{project_id} + string scope = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { type: "*" } + ]; + + // Output only. Summaries of the last policy application when the job has run, + // with one entry per resource type specified in the AutoProtectionPolicy. + BindingEvaluationSummary binding_evaluation_summary = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the binding was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the binding was last updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The etag for the binding. + // If this is provided on update, it must match the server's etag. + string etag = 8; +} + +// BindingEvaluationSummary contains the summary of the last run of job +// that applies policy to matching resources for a given binding. +message BindingEvaluationSummary { + // Output only. The number of resources that currently match the policy's + // criteria. + int64 matching_resource_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of matching resources that are successfully + // protected. + int64 protected_resource_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of matching resources whose protection failed + // during job run. + int64 failed_resource_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for creating an AutoProtectionPolicyBinding. +message CreateAutoProtectionPolicyBindingRequest { + // Required. The parent resource where this binding will be created. + // Format: + // projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicy" + } + ]; + + // Required. The ID to use for the binding. + // This will become the final component of the binding's resource name. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. + string auto_protection_policy_binding_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The AutoProtectionPolicyBinding resource to create. + AutoProtectionPolicyBinding auto_protection_policy_binding = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for getting an AutoProtectionPolicyBinding. +message GetAutoProtectionPolicyBindingRequest { + // Required. The name of the binding to retrieve. + // Format: + // projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; +} + +// Request message for ListAutoProtectionPolicyBindings. +message ListAutoProtectionPolicyBindingsRequest { + // Required. The project and location for which to retrieve the list of + // policies. Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicy" + } + ]; + + // Optional. The maximum number of policies to return in a single page is 500. + // If unspecified, a server-default value will be used. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent + // page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A filter expression that filters resources listed in the + // response. The following fields are filterable: + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that sorts the results in the response. The + // following fields are sortable: + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListAutoProtectionPolicyBindings. +message ListAutoProtectionPolicyBindingsResponse { + // A list of the AutoProtectionPolicyBindings resources found. + repeated AutoProtectionPolicyBinding auto_protection_policy_bindings = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request message for initiating delete of an AutoProtectionPolicyBinding. +message InitiateDeleteAutoProtectionPolicyBindingRequest { + // Required. The name of the binding to delete. + // Format: + // projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; + + // Optional. The current etag of the AutoProtectionPolicyBinding. + // If an etag is provided and does not match the current etag of the + // binding, deletion will be blocked and an ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto index 3624e8b2ddd8..d39aa3a96fb1 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto @@ -21,10 +21,14 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/field_info.proto"; import "google/api/resource.proto"; +import "google/cloud/backupdr/v1/appliedautoprotectionpolicy.proto"; +import "google/cloud/backupdr/v1/autoprotectionpolicy.proto"; +import "google/cloud/backupdr/v1/autoprotectionpolicybinding.proto"; import "google/cloud/backupdr/v1/backupplan.proto"; import "google/cloud/backupdr/v1/backupplanassociation.proto"; import "google/cloud/backupdr/v1/backupvault.proto"; import "google/cloud/backupdr/v1/backupvault_cloudsql.proto"; +import "google/cloud/backupdr/v1/bindingmatchingresource.proto"; import "google/cloud/backupdr/v1/datasourcereference.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -457,6 +461,136 @@ service BackupDR { metadata_type: "OperationMetadata" }; } + + // Creates a new AutoProtectionPolicy in a given project and location. + rpc CreateAutoProtectionPolicy(CreateAutoProtectionPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/autoProtectionPolicies" + body: "auto_protection_policy" + }; + option (google.api.method_signature) = + "parent,auto_protection_policy,auto_protection_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "AutoProtectionPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Lists AutoProtectionPolicies for a given project and location. + rpc ListAutoProtectionPolicies(ListAutoProtectionPoliciesRequest) + returns (ListAutoProtectionPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/autoProtectionPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AutoProtectionPolicy. + rpc GetAutoProtectionPolicy(GetAutoProtectionPolicyRequest) + returns (AutoProtectionPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the parameters of a single AutoProtectionPolicy. + rpc UpdateAutoProtectionPolicy(UpdateAutoProtectionPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{auto_protection_policy.name=projects/*/locations/*/autoProtectionPolicies/*}" + body: "auto_protection_policy" + }; + option (google.api.method_signature) = "auto_protection_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AutoProtectionPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single AutoProtectionPolicy. + rpc DeleteAutoProtectionPolicy(DeleteAutoProtectionPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Creates a new AutoProtectionPolicyBinding in a given project and + // location. + rpc CreateAutoProtectionPolicyBinding( + CreateAutoProtectionPolicyBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/autoProtectionPolicies/*}/bindings" + body: "auto_protection_policy_binding" + }; + option (google.api.method_signature) = + "parent,auto_protection_policy_binding,auto_protection_policy_binding_id"; + option (google.longrunning.operation_info) = { + response_type: "AutoProtectionPolicyBinding" + metadata_type: "OperationMetadata" + }; + } + + // Returns the auto protection policy binding read from the CCFE tables. + rpc GetAutoProtectionPolicyBinding(GetAutoProtectionPolicyBindingRequest) + returns (AutoProtectionPolicyBinding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the auto protection policy bindings read from the CCFE tables. + rpc ListAutoProtectionPolicyBindings(ListAutoProtectionPolicyBindingsRequest) + returns (ListAutoProtectionPolicyBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/autoProtectionPolicies/*}/bindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists AppliedAutoProtectionPolicies in a given project and location. + rpc ListAppliedAutoProtectionPolicies( + ListAppliedAutoProtectionPoliciesRequest) + returns (ListAppliedAutoProtectionPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/appliedAutoProtectionPolicies" + }; + option (google.api.method_signature) = "parent"; + } + + // InitiateDeleteAutoProtectionPolicyBinding initiates delete for + // AutoProtectionPolicy Binding + rpc InitiateDeleteAutoProtectionPolicyBinding( + InitiateDeleteAutoProtectionPolicyBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}:initiateDelete" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "AutoProtectionPolicyBinding" + metadata_type: "OperationMetadata" + }; + } + + // Lists Binding Matching Resources for a given AutoProtectionPolicyBinding. + rpc ListBindingMatchingResources(ListBindingMatchingResourcesRequest) + returns (ListBindingMatchingResourcesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/autoProtectionPolicies/*/bindings/*}/matchingResources" + }; + option (google.api.method_signature) = "parent"; + } } // Network configuration for ManagementServer instance. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto index d1f19c338880..0166bee5779b 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto @@ -65,7 +65,7 @@ message BackupPlanAssociation { } // Output only. Identifier. The resource name of BackupPlanAssociation in - // below format Format : + // below format Format: // projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} string name = 1 [ (google.api.field_behavior) = IDENTIFIER, @@ -146,6 +146,16 @@ message BackupPlanAssociation { // `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}` string backup_plan_revision_name = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the `AutoProtectionPolicyBinding` that + // manages this association, if any. Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`. + string auto_protection_policy_binding = 16 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; } // Message for rules config info. @@ -371,6 +381,18 @@ message DeleteBackupPlanAssociationRequest { (google.api.field_info).format = UUID4, (google.api.field_behavior) = OPTIONAL ]; + + // Optional. This field is exclusively used by Backup and DR's auto-protection + // feature. The resource name of the `AutoProtectionPolicyBinding` that + // triggered the deletion of this association. + // Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`. + string auto_protection_policy_binding = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; } // Request message for updating a backup plan association. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto index 805332aa7b72..25fcf2077ae2 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto @@ -380,6 +380,17 @@ message GcpBackupConfig { // The user friendly id of the backup plan revision. // E.g. v0, v1 etc. string backup_plan_revision_id = 6; + + // Output only. The resource name of the `AutoProtectionPolicyBinding` that + // manages this datasource, if any. + // Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`. + string auto_protection_policy_binding = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; } // BackupApplianceBackupConfig captures the backup configuration for diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/bindingmatchingresource.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/bindingmatchingresource.proto new file mode 100644 index 000000000000..967116569e60 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/bindingmatchingresource.proto @@ -0,0 +1,168 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.backupdr.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.BackupDR.V1"; +option go_package = "cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdrpb"; +option java_multiple_files = true; +option java_outer_classname = "BindingMatchingResourceProto"; +option java_package = "com.google.cloud.backupdr.v1"; +option php_namespace = "Google\\Cloud\\BackupDR\\V1"; +option ruby_package = "Google::Cloud::BackupDR::V1"; + +// Request message for List BindingMatchingResources. +message ListBindingMatchingResourcesRequest { + // Required. The project, location, auto protection policy and binding for + // which to retrieve `BindingMatchingResources` information. Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`. + // In Google Cloud Backup and DR, locations map to Google Cloud regions, for + // example **us-central1**. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "backupdr.googleapis.com/BindingMatchingResource" + } + ]; + + // Optional. The maximum number of `BindingMatchingResources` to return in a + // single response. The default page size is 100 and maximum page size is 200. + // Note that the response may include a partial list and a caller should + // only rely on the response's + // [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token] + // to determine if there are more instances left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value of + // [next_page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse.next_page_token] + // received from a previous `ListBindingMatchingResources` call. Provide this + // to retrieve the subsequent page in a multi-page list of results. When + // paginating, all other parameters provided to `ListBindingMatchingResources` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field match expression used to filter the results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field by which to sort the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for getting a list of `BindingMatchingResources`. +message ListBindingMatchingResourcesResponse { + // The list of `BindingMatchingResources` in the project,location for the + // specified binding. + repeated BindingMatchingResource matching_resources = 1; + + // A token which may be sent as + // [page_token][google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest.page_token] + // in a subsequent `ListBindingMatchingResources` call to retrieve the next + // page of results. If this field is omitted or empty, then there are no more + // results to return. + string next_page_token = 2; +} + +// BindingMatchingResource contains the details of a resource that matches the +// criteria of a binding. +message BindingMatchingResource { + option (google.api.resource) = { + type: "backupdr.googleapis.com/BindingMatchingResource" + pattern: "projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}" + plural: "bindingMatchingResources" + singular: "bindingMatchingResource" + }; + + // Output only. Identifier. The resource name of the + // `BindingMatchingResource`. Format: + // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}` + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Resource name of the workload that matches the criteria of the + // binding. + // + // The format can be either a relative resource name (e.g., + // `projects/my-project/zones/us-central1-a/instances/my-instance`) or a + // schemeless full resource name (e.g., + // `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`). + string resource = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last evaluated for + // protection. + google.protobuf.Timestamp last_evaluation_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The auto protection details of the resource from the current + // binding's perspective. + AutoProtectionDetails auto_protection_details = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// AutoProtectionDetails contains the protection details of a resource from the +// current binding's perspective. +message AutoProtectionDetails { + // Enum for protection state of the resource. + enum State { + // State unspecified. + STATE_UNSPECIFIED = 0; + + // Resource is protected. + PROTECTED = 1; + + // Resource protection failed. + PROTECTION_FAILED = 2; + + // Resource is being unprotected. + UNPROTECTING = 3; + + // Resource unprotection failed. + UNPROTECTION_FAILED = 4; + } + + // Output only. Protection state of the resource from the current binding's + // perspective. Output only. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource name of backup plan association linked to the + // resource, if any. Format: + // projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} + string backup_plan_association = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/BackupPlanAssociation" + } + ]; + + // Output only. Resource name of the datasource linked to the resource, if + // any. Format: + // projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId} + string data_source = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/DataSource" + } + ]; + + // Output only. Error during last sync for protection/unprotection, if any. + google.rpc.Status error = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicy.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicy.java index 6e5661725b2c..b0ff55a9d368 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicy.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicy.java @@ -341,7 +341,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The sourceBinding. */ @@ -367,7 +369,9 @@ public java.lang.String getSourceBinding() { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sourceBinding. */ @@ -1479,7 +1483,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The sourceBinding. */ @@ -1504,7 +1510,9 @@ public java.lang.String getSourceBinding() { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sourceBinding. */ @@ -1529,7 +1537,9 @@ public com.google.protobuf.ByteString getSourceBindingBytes() { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @param value The sourceBinding to set. * @return This builder for chaining. @@ -1553,7 +1563,9 @@ public Builder setSourceBinding(java.lang.String value) { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1573,7 +1585,9 @@ public Builder clearSourceBinding() { * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for sourceBinding to set. * @return This builder for chaining. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyOrBuilder.java index a03aebcf4b2f..dd44e539b90d 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyOrBuilder.java @@ -65,7 +65,9 @@ public interface AppliedAutoProtectionPolicyOrBuilder * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The sourceBinding. */ @@ -80,7 +82,9 @@ public interface AppliedAutoProtectionPolicyOrBuilder * projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. * * - * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string source_binding = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sourceBinding. */ diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyProto.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyProto.java index 6efafa233090..2c6a0b6b3337 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AppliedAutoProtectionPolicyProto.java @@ -66,31 +66,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ackupdr.v1beta\032\037google/api/field_behavio" + "r.proto\032\031google/api/resource.proto\0327goog" + "le/cloud/backupdr/v1beta/autoprotectionpolicy.proto\032>google/cloud/backupdr/v1bet" - + "a/autoprotectionpolicybinding.proto\032\037google/protobuf/timestamp.proto\"\273\006\n" + + "a/autoprotectionpolicybinding.proto\032\037google/protobuf/timestamp.proto\"\363\006\n" + "\033AppliedAutoProtectionPolicy\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\010\022\034\n" - + "\016source_binding\030\002 \001(\tB\004\342A\001\003\022>\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022T\n" + + "\016source_binding\030\002 \001(\tB<\342A\001\003\372A5\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\022>\n" + "\010criteria\030\003" + " \001(\0132&.google.cloud.backupdr.v1beta.CriteriaB\004\342A\001\003\022Q\n" - + "\023backup_plan_details\030\004 " - + "\003(\0132..google.cloud.backupdr.v1beta.BackupPlanDetailB\004\342A\001\003\0225\n" + + "\023backup_plan_details\030\004" + + " \003(\0132..google.cloud.backupdr.v1beta.BackupPlanDetailB\004\342A\001\003\0225\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013create_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022`\n" - + "\032binding_evaluation_summary\030\007 " - + "\001(\01326.google.cloud.backupdr.v1beta.BindingEvaluationSummaryB\004\342A\001\003\022U\n" - + "\006status\030\010 \001(" - + "\0162?.google.cloud.backupdr.v1beta.AppliedAutoProtectionPolicy.StateB\004\342A\001\003\"P\n" + + "\032binding_evaluation_summary\030\007 \001(\01326.google.cloud.backu" + + "pdr.v1beta.BindingEvaluationSummaryB\004\342A\001\003\022U\n" + + "\006status\030\010 \001(\0162?.google.cloud.backupd" + + "r.v1beta.AppliedAutoProtectionPolicy.StateB\004\342A\001\003\"P\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" - + "\010CREATING\020\001\022\n" - + "\n" + + "\010CREATING\020\001\022\n\n" + "\006ACTIVE\020\002\022\026\n" + "\022DELETION_INITIATED\020\003:\335\001\352A\331\001\n" - + "3backupdr.googleapis.com/AppliedAutoProtectionPolicy\022fprojects/{project}/locat" - + "ions/{location}/appliedAutoProtectionPolicies/{applied_auto_protection_policy}*\035" - + "appliedAutoProtectionPolicies2\033appliedAutoProtectionPolicy\"\307\001\n" + + "3backupdr.googleapis.com/AppliedAutoProtectionPolicy\022fprojects" + + "/{project}/locations/{location}/appliedAutoProtectionPolicies/{applied_auto_prot" + + "ection_policy}*\035appliedAutoProtectionPolicies2\033appliedAutoProtectionPolicy\"\307\001\n" + "(ListAppliedAutoProtectionPoliciesRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022\027\n" @@ -99,15 +99,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\304\001\n" + ")ListAppliedAutoProtectionPoliciesResponse\022c\n" - + " applied_auto_protection_policies\030\001 \003(\01329.google.cl" - + "oud.backupdr.v1beta.AppliedAutoProtectionPolicy\022\027\n" + + " applied_auto_protection_policies\030\001" + + " \003(\01329.google.cloud.backupdr.v1beta.AppliedAutoProtectionPolicy\022\027\n" + "\017next_page_token\030\002 \001(\t\022\031\n" + "\013unreachable\030\003 \003(\tB\004\342A\001\006B\344\001\n" - + " com.google.cloud.backupdr.v1betaB AppliedAutoProtectionP" - + "olicyProtoP\001Z - * Identifier. The resource name of the AutoprotectionPolicy. + * Output only. Identifier. The resource name of the AutoprotectionPolicy. * Format: * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}` * * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -330,12 +332,14 @@ public java.lang.String getName() { * * *
-   * Identifier. The resource name of the AutoprotectionPolicy.
+   * Output only. Identifier. The resource name of the AutoprotectionPolicy.
    * Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -361,7 +365,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Optional. A description of the policy.
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -385,7 +390,8 @@ public java.lang.String getDescription() { * * *
-   * Optional. A description of the policy.
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1536,12 +1542,14 @@ public Builder mergeFrom( * * *
-     * Identifier. The resource name of the AutoprotectionPolicy.
+     * Output only. Identifier. The resource name of the AutoprotectionPolicy.
      * Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1561,12 +1569,14 @@ public java.lang.String getName() { * * *
-     * Identifier. The resource name of the AutoprotectionPolicy.
+     * Output only. Identifier. The resource name of the AutoprotectionPolicy.
      * Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1586,12 +1596,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Identifier. The resource name of the AutoprotectionPolicy.
+     * Output only. Identifier. The resource name of the AutoprotectionPolicy.
      * Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1610,12 +1622,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Identifier. The resource name of the AutoprotectionPolicy.
+     * Output only. Identifier. The resource name of the AutoprotectionPolicy.
      * Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1630,12 +1644,14 @@ public Builder clearName() { * * *
-     * Identifier. The resource name of the AutoprotectionPolicy.
+     * Output only. Identifier. The resource name of the AutoprotectionPolicy.
      * Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1657,7 +1673,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A description of the policy.
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1680,7 +1697,8 @@ public java.lang.String getDescription() { * * *
-     * Optional. A description of the policy.
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1703,7 +1721,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. A description of the policy.
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1725,7 +1744,8 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. A description of the policy.
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1743,7 +1763,8 @@ public Builder clearDescription() { * * *
-     * Optional. A description of the policy.
+     * Optional. A description of the policy. The description must be at most 2048
+     * characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBinding.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBinding.java index a9ee5e8774d6..006cdec89a75 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBinding.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBinding.java @@ -280,12 +280,14 @@ private State(int value) { * * *
-   * Identifier. The resource name of the AutoProtectionPolicyBinding.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -306,12 +308,14 @@ public java.lang.String getName() { * * *
-   * Identifier. The resource name of the AutoProtectionPolicyBinding.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -337,7 +341,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Optional. A description of the binding.
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -361,7 +366,8 @@ public java.lang.String getDescription() { * * *
-   * Optional. A description of the binding.
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -659,11 +665,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Optional. Output only. The etag for the binding.
+   * Output only. The etag for the binding.
    * If this is provided on update, it must match the server's etag.
    * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return The etag. */ @@ -684,11 +690,11 @@ public java.lang.String getEtag() { * * *
-   * Optional. Output only. The etag for the binding.
+   * Output only. The etag for the binding.
    * If this is provided on update, it must match the server's etag.
    * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return The bytes for etag. */ @@ -1243,12 +1249,14 @@ public Builder mergeFrom( * * *
-     * Identifier. The resource name of the AutoProtectionPolicyBinding.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1268,12 +1276,14 @@ public java.lang.String getName() { * * *
-     * Identifier. The resource name of the AutoProtectionPolicyBinding.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1293,12 +1303,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Identifier. The resource name of the AutoProtectionPolicyBinding.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1317,12 +1329,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Identifier. The resource name of the AutoProtectionPolicyBinding.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1337,12 +1351,14 @@ public Builder clearName() { * * *
-     * Identifier. The resource name of the AutoProtectionPolicyBinding.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * AutoProtectionPolicyBinding. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1364,7 +1380,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A description of the binding.
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1387,7 +1404,8 @@ public java.lang.String getDescription() { * * *
-     * Optional. A description of the binding.
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1410,7 +1428,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. A description of the binding.
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1432,7 +1451,8 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. A description of the binding.
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1450,7 +1470,8 @@ public Builder clearDescription() { * * *
-     * Optional. A description of the binding.
+     * Optional. A description of the binding. The description must be at most
+     * 2048 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2360,11 +2381,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Optional. Output only. The etag for the binding.
+     * Output only. The etag for the binding.
      * If this is provided on update, it must match the server's etag.
      * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return The etag. */ @@ -2384,11 +2405,11 @@ public java.lang.String getEtag() { * * *
-     * Optional. Output only. The etag for the binding.
+     * Output only. The etag for the binding.
      * If this is provided on update, it must match the server's etag.
      * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return The bytes for etag. */ @@ -2408,11 +2429,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Optional. Output only. The etag for the binding.
+     * Output only. The etag for the binding.
      * If this is provided on update, it must match the server's etag.
      * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @param value The etag to set. * @return This builder for chaining. @@ -2431,11 +2452,11 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Optional. Output only. The etag for the binding.
+     * Output only. The etag for the binding.
      * If this is provided on update, it must match the server's etag.
      * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return This builder for chaining. */ @@ -2450,11 +2471,11 @@ public Builder clearEtag() { * * *
-     * Optional. Output only. The etag for the binding.
+     * Output only. The etag for the binding.
      * If this is provided on update, it must match the server's etag.
      * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @param value The bytes for etag to set. * @return This builder for chaining. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingOrBuilder.java index 1d3fb5161d08..0fb1f42290b0 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingOrBuilder.java @@ -30,12 +30,14 @@ public interface AutoProtectionPolicyBindingOrBuilder * * *
-   * Identifier. The resource name of the AutoProtectionPolicyBinding.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -45,12 +47,14 @@ public interface AutoProtectionPolicyBindingOrBuilder * * *
-   * Identifier. The resource name of the AutoProtectionPolicyBinding.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * AutoProtectionPolicyBinding. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -60,7 +64,8 @@ public interface AutoProtectionPolicyBindingOrBuilder * * *
-   * Optional. A description of the binding.
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,7 +78,8 @@ public interface AutoProtectionPolicyBindingOrBuilder * * *
-   * Optional. A description of the binding.
+   * Optional. A description of the binding. The description must be at most
+   * 2048 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -275,11 +281,11 @@ public interface AutoProtectionPolicyBindingOrBuilder * * *
-   * Optional. Output only. The etag for the binding.
+   * Output only. The etag for the binding.
    * If this is provided on update, it must match the server's etag.
    * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return The etag. */ @@ -289,11 +295,11 @@ public interface AutoProtectionPolicyBindingOrBuilder * * *
-   * Optional. Output only. The etag for the binding.
+   * Output only. The etag for the binding.
    * If this is provided on update, it must match the server's etag.
    * 
* - * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 8; * * @return The bytes for etag. */ diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingProto.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingProto.java index cd1d04286dfc..92f6dad81c4b 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyBindingProto.java @@ -80,40 +80,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ">google/cloud/backupdr/v1beta/autoprotectionpolicybinding.proto\022\034google.cloud.b" + "ackupdr.v1beta\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\327\005\n" - + "\033AutoProtectionPolicyBinding\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + + "r.proto\032\033google/api/field_info.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\322\005\n" + + "\033AutoProtectionPolicyBinding\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\001\022T\n" - + "\005state\030\003 \001(" - + "\0162?.google.cloud.backupdr.v1beta.AutoProtectionPolicyBinding.StateB\004\342A\001\003\022\032\n" + + "\005state\030\003 \001(\0162?.google" + + ".cloud.backupdr.v1beta.AutoProtectionPolicyBinding.StateB\004\342A\001\003\022\032\n" + "\005scope\030\004 \001(\tB\013\342A\002\002\005\372A\003\n" + "\001*\022`\n" - + "\032binding_evaluation_summary\030\005 \001(\01326.google.cloud.backupdr" - + ".v1beta.BindingEvaluationSummaryB\004\342A\001\003\0225\n" + + "\032binding_evaluation_summary\030\005" + + " \001(\01326.google.cloud.backupdr.v1beta.BindingEvaluationSummaryB\004\342A\001\003\0225\n" + "\013create_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\022\n" - + "\004etag\030\010 \001(\tB\004\342A\001\001\"P\n" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\014\n" + + "\004etag\030\010 \001(\t\"P\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" - + "\010CREATING\020\001\022\n\n" + + "\010CREATING\020\001\022\n" + + "\n" + "\006ACTIVE\020\002\022\026\n" + "\022DELETION_INITIATED\020\003:\340\001\352A\334\001\n" - + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\022jprojects" - + "/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/" - + "bindings/{binding}*\034autoProtectionPolicy" - + "Bindings2\033autoProtectionPolicyBinding\"\216\001\n" + + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\022jprojects/{project}/locat" + + "ions/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{bindin" + + "g}*\034autoProtectionPolicyBindings2\033autoProtectionPolicyBinding\"\216\001\n" + "\030BindingEvaluationSummary\022%\n" + "\027matching_resource_count\030\001 \001(\003B\004\342A\001\003\022&\n" + "\030protected_resource_count\030\002 \001(\003B\004\342A\001\003\022#\n" - + "\025failed_resource_count\030\003 \001(\003B\004\342A\001\003\"\213\002\n" + + "\025failed_resource_count\030\003 \001(\003B\004\342A\001\003\"\255\002\n" + "(CreateAutoProtectionPolicyBindingRequest\022E\n" + "\006parent\030\001 \001(\tB5\342A\001\002\372A.\n" + ",backupdr.googleapis.com/AutoProtectionPolicy\022/\n" + "!auto_protection_policy_binding_id\030\002 \001(\tB\004\342A\001\002\022g\n" - + "\036auto_protection_policy_binding\030\003 \001(\01329.google.clo" - + "ud.backupdr.v1beta.AutoProtectionPolicyBindingB\004\342A\001\002\"s\n" + + "\036auto_protection_policy_binding\030\003" + + " \001(\01329.google.cloud.backupdr.v1beta.AutoProtectionPolicyBindingB\004\342A\001\002\022" + + " \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"s\n" + "%GetAutoProtectionPolicyBindingRequest\022J\n" + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" + "3backupdr.googleapis.com/AutoProtectionPolicyBinding\"\321\001\n" @@ -125,23 +128,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\302\001\n" + "(ListAutoProtectionPolicyBindingsResponse\022b\n" - + "\037auto_protection_policy_bindings\030\001 \003(\01329.google.clo" - + "ud.backupdr.v1beta.AutoProtectionPolicyBinding\022\027\n" + + "\037auto_protection_policy_bindings\030\001" + + " \003(\01329.google.cloud.backupdr.v1beta.AutoProtectionPolicyBinding\022\027\n" + "\017next_page_token\030\002 \001(\t\022\031\n" - + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"~\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\264\001\n" + "0InitiateDeleteAutoProtectionPolicyBindingRequest\022J\n" + "\004name\030\001 \001(\tB<\342A\001\002\372A5\n" - + "3backupdr.googleapis.com/AutoProtectionPolicyBindingB\344\001\n" - + " com.google.cloud.backupdr.v1betaB AutoProtectionP" - + "olicyBindingProtoP\001Z - * Identifier. The resource name of the AutoprotectionPolicy. + * Output only. Identifier. The resource name of the AutoprotectionPolicy. * Format: * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}` * * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -45,12 +47,14 @@ public interface AutoProtectionPolicyOrBuilder * * *
-   * Identifier. The resource name of the AutoprotectionPolicy.
+   * Output only. Identifier. The resource name of the AutoprotectionPolicy.
    * Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -60,7 +64,8 @@ public interface AutoProtectionPolicyOrBuilder * * *
-   * Optional. A description of the policy.
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,7 +78,8 @@ public interface AutoProtectionPolicyOrBuilder * * *
-   * Optional. A description of the policy.
+   * Optional. A description of the policy. The description must be at most 2048
+   * characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyProto.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyProto.java index 5065ebb2d45f..f73f7ccd4bb5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/AutoProtectionPolicyProto.java @@ -103,22 +103,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "7google/cloud/backupdr/v1beta/autoprotectionpolicy.proto\022\034google.cloud.backupdr" - + ".v1beta\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\342\006\n" - + "\024AutoProtectionPolicy\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\010\022\031\n" + + ".v1beta\032\037google/api/field_behavior.proto" + + "\032\033google/api/field_info.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\343\006\n" + + "\024AutoProtectionPolicy\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\003\010\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\001\022Q\n" - + "\023backup_plan_details\030\003 \003(\0132..go" - + "ogle.cloud.backupdr.v1beta.BackupPlanDetailB\004\342A\001\002\022>\n" + + "\023backup_plan_details\030\003 \003(\0132..google.cloud" + + ".backupdr.v1beta.BackupPlanDetailB\004\342A\001\002\022>\n" + "\010criteria\030\004" + " \001(\0132&.google.cloud.backupdr.v1beta.CriteriaB\004\342A\001\002\022M\n" - + "\005state\030\005" - + " \001(\01628.google.cloud.backupdr.v1beta.AutoProtectionPolicy.StateB\004\342A\001\003\022\014\n" + + "\005state\030\005 \001(\01628" + + ".google.cloud.backupdr.v1beta.AutoProtectionPolicy.StateB\004\342A\001\003\022\014\n" + "\004etag\030\006 \001(\t\022K\n" - + "\017binding_summary\030\007 \001(\0132,.google" - + ".cloud.backupdr.v1beta.BindingSummaryB\004\342A\001\003\022^\n" - + "\031policy_evaluation_summary\030\010 \001(\01325" - + ".google.cloud.backupdr.v1beta.PolicyEvaluationSummaryB\004\342A\001\003\0225\n" + + "\017binding_summary\030\007" + + " \001(\0132,.google.cloud.backupdr.v1beta.BindingSummaryB\004\342A\001\003\022^\n" + + "\031policy_evaluation_summary\030\010 \001(\01325.google.cl" + + "oud.backupdr.v1beta.PolicyEvaluationSummaryB\004\342A\001\003\0225\n" + "\013create_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\n" @@ -129,16 +130,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010UPDATING\020\003\022\014\n" + "\010DELETING\020\004:\271\001\352A\265\001\n" - + ",backupdr.googleapis.com/AutoProtectionPolicy\022Wprojects/{" - + "project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}*\026a" - + "utoProtectionPolicies2\024autoProtectionPolicy\"q\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\022Wprojects/{project}/l" + + "ocations/{location}/autoProtectionPolici" + + "es/{auto_protection_policy}*\026autoProtectionPolicies2\024autoProtectionPolicy\"q\n" + "\020BackupPlanDetail\022\033\n\r" + "resource_type\030\001 \001(\tB\004\342A\001\002\022@\n" + "\013backup_plan\030\002 \001(\tB+\342A\001\002\372A$\n" + "\"backupdr.googleapis.com/BackupPlan\"^\n" + "\010Criteria\022R\n" - + "\023matching_conditions\030\001 \003(\0132" - + "/.google.cloud.backupdr.v1beta.MatchingConditionB\004\342A\001\002\"m\n" + + "\023matching_conditions\030\001 \003(\0132/.google.c" + + "loud.backupdr.v1beta.MatchingConditionB\004\342A\001\002\"m\n" + "\021MatchingCondition\022K\n" + "\017label_condition\030\001" + " \001(\0132*.google.cloud.backupdr.v1beta.KeyValuePairB\004\342A\001\001H\000B\013\n" @@ -147,52 +148,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027matching_resource_count\030\001 \001(\003B\004\342A\001\003\022&\n" + "\030protected_resource_count\030\002 \001(\003B\004\342A\001\003\022#\n" + "\025failed_resource_count\030\003 \001(\003B\004\342A\001\003\"-\n" - + "\016BindingSummary\022\033\n\r" + + "\016BindingSummary\022\033\n" + + "\r" + "project_count\030\001 \001(\003B\004\342A\001\003\"7\n" + "\014KeyValuePair\022\021\n" + "\003key\030\001 \001(\tB\004\342A\001\002\022\024\n" - + "\006values\030\002 \003(\tB\004\342A\001\002\"\342\001\n" + + "\006values\030\002 \003(\tB\004\342A\001\002\"\204\002\n" + "!CreateAutoProtectionPolicyRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022\'\n" + "\031auto_protection_policy_id\030\002 \001(\tB\004\342A\001\002\022X\n" - + "\026auto_protection_policy\030\003 \001(\01322.google.cloud." - + "backupdr.v1beta.AutoProtectionPolicyB\004\342A\001\002\"e\n" + + "\026auto_protection_policy\030\003" + + " \001(\01322.google.cloud.backupdr.v1beta.AutoProtectionPolicyB\004\342A\001\002\022" + + " \n\n" + + "request_id\030\004 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"e\n" + "\036GetAutoProtectionPolicyRequest\022C\n" + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" - + ",backupdr.googleapis.com/AutoProtectionPolicy\"\264\001\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\"\326\001\n" + "!UpdateAutoProtectionPolicyRequest\022X\n" - + "\026auto_protection_policy\030\001" - + " \001(\01322.google.cloud.backupdr.v1beta.AutoProtectionPolicyB\004\342A\001\002\0225\n" - + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"v\n" + + "\026auto_protection_policy\030\001 \001(\0132" + + "2.google.cloud.backupdr.v1beta.AutoProtectionPolicyB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022" + + " \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\236\001\n" + "!DeleteAutoProtectionPolicyRequest\022C\n" + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" - + ",backupdr.googleapis.com/AutoProtectionPolicy\022\014\n" - + "\004etag\030\002 \001(\t\"\300\001\n" + + ",backupdr.googleapis.com/AutoProtectionPolicy\022\022\n" + + "\004etag\030\002 \001(\tB\004\342A\001\001\022 \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\300\001\n" + "!ListAutoProtectionPoliciesRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" - + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\250\001\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\256\001\n" + "\"ListAutoProtectionPoliciesResponse\022T\n" - + "\030auto_protection_policies\030\001 \003(\01322.g" - + "oogle.cloud.backupdr.v1beta.AutoProtectionPolicy\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\tB\335\001\n" - + " com.google.cloud.backupdr.v1betaB\031AutoProtectionPolicyProtoP\001" - + "Z - * Identifier. The resource name of the `BindingMatchingResource`. - * Format: + * Output only. Identifier. The resource name of the + * `BindingMatchingResource`. Format: * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}` * * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -108,12 +110,14 @@ public java.lang.String getName() { * * *
-   * Identifier. The resource name of the `BindingMatchingResource`.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -139,8 +143,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Immutable. Resource name of the workload that matches the
-   * criteria of the binding.
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
    *
    * The format can be either a relative resource name (e.g.,
    * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -148,9 +152,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resource. */ @@ -171,8 +173,8 @@ public java.lang.String getResource() { * * *
-   * Required. Immutable. Resource name of the workload that matches the
-   * criteria of the binding.
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
    *
    * The format can be either a relative resource name (e.g.,
    * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -180,9 +182,7 @@ public java.lang.String getResource() {
    * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for resource. */ @@ -751,12 +751,14 @@ public Builder mergeFrom( * * *
-     * Identifier. The resource name of the `BindingMatchingResource`.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -776,12 +778,14 @@ public java.lang.String getName() { * * *
-     * Identifier. The resource name of the `BindingMatchingResource`.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -801,12 +805,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Identifier. The resource name of the `BindingMatchingResource`.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -825,12 +831,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Identifier. The resource name of the `BindingMatchingResource`.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -845,12 +853,14 @@ public Builder clearName() { * * *
-     * Identifier. The resource name of the `BindingMatchingResource`.
-     * Format:
+     * Output only. Identifier. The resource name of the
+     * `BindingMatchingResource`. Format:
      * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -872,8 +882,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Immutable. Resource name of the workload that matches the
-     * criteria of the binding.
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
      *
      * The format can be either a relative resource name (e.g.,
      * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -881,9 +891,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resource. */ @@ -903,8 +911,8 @@ public java.lang.String getResource() { * * *
-     * Required. Immutable. Resource name of the workload that matches the
-     * criteria of the binding.
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
      *
      * The format can be either a relative resource name (e.g.,
      * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -912,9 +920,7 @@ public java.lang.String getResource() {
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for resource. */ @@ -934,8 +940,8 @@ public com.google.protobuf.ByteString getResourceBytes() { * * *
-     * Required. Immutable. Resource name of the workload that matches the
-     * criteria of the binding.
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
      *
      * The format can be either a relative resource name (e.g.,
      * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -943,9 +949,7 @@ public com.google.protobuf.ByteString getResourceBytes() {
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The resource to set. * @return This builder for chaining. @@ -964,8 +968,8 @@ public Builder setResource(java.lang.String value) { * * *
-     * Required. Immutable. Resource name of the workload that matches the
-     * criteria of the binding.
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
      *
      * The format can be either a relative resource name (e.g.,
      * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -973,9 +977,7 @@ public Builder setResource(java.lang.String value) {
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -990,8 +992,8 @@ public Builder clearResource() { * * *
-     * Required. Immutable. Resource name of the workload that matches the
-     * criteria of the binding.
+     * Output only. Resource name of the workload that matches the criteria of the
+     * binding.
      *
      * The format can be either a relative resource name (e.g.,
      * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -999,9 +1001,7 @@ public Builder clearResource() {
      * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for resource to set. * @return This builder for chaining. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceOrBuilder.java index 90b4641a6336..55d4fbc2d561 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceOrBuilder.java @@ -30,12 +30,14 @@ public interface BindingMatchingResourceOrBuilder * * *
-   * Identifier. The resource name of the `BindingMatchingResource`.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -45,12 +47,14 @@ public interface BindingMatchingResourceOrBuilder * * *
-   * Identifier. The resource name of the `BindingMatchingResource`.
-   * Format:
+   * Output only. Identifier. The resource name of the
+   * `BindingMatchingResource`. Format:
    * `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -60,8 +64,8 @@ public interface BindingMatchingResourceOrBuilder * * *
-   * Required. Immutable. Resource name of the workload that matches the
-   * criteria of the binding.
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
    *
    * The format can be either a relative resource name (e.g.,
    * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -69,9 +73,7 @@ public interface BindingMatchingResourceOrBuilder
    * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resource. */ @@ -81,8 +83,8 @@ public interface BindingMatchingResourceOrBuilder * * *
-   * Required. Immutable. Resource name of the workload that matches the
-   * criteria of the binding.
+   * Output only. Resource name of the workload that matches the criteria of the
+   * binding.
    *
    * The format can be either a relative resource name (e.g.,
    * `projects/my-project/zones/us-central1-a/instances/my-instance`) or a
@@ -90,9 +92,7 @@ public interface BindingMatchingResourceOrBuilder
    * `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`).
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * + * string resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for resource. */ diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceProto.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceProto.java index c165f47d6e3d..d80ca5e5be92 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/BindingMatchingResourceProto.java @@ -88,9 +88,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022matching_resources\030\001 \003(\01325." + "google.cloud.backupdr.v1beta.BindingMatchingResource\022\027\n" + "\017next_page_token\030\002 \001(\t\"\340\003\n" - + "\027BindingMatchingResource\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\010\022\027\n" - + "\010resource\030\002 \001(\tB\005\342A\002\005\002\022>\n" + + "\027BindingMatchingResource\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\010\003\022\026\n" + + "\010resource\030\002 \001(\tB\004\342A\001\003\022>\n" + "\024last_evaluation_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022Z\n" + "\027auto_protection_details\030\004" diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequest.java index fc53daf2eea4..e61e57af28e5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequest.java @@ -56,6 +56,7 @@ private CreateAutoProtectionPolicyBindingRequest( private CreateAutoProtectionPolicyBindingRequest() { parent_ = ""; autoProtectionPolicyBindingId_ = ""; + requestId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -147,6 +148,9 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * Required. The ID to use for the binding.
    * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -173,6 +177,9 @@ public java.lang.String getAutoProtectionPolicyBindingId() { *
    * Required. The ID to use for the binding.
    * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -254,6 +261,75 @@ public boolean hasAutoProtectionPolicyBinding() { : autoProtectionPolicyBinding_; } + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -277,6 +353,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getAutoProtectionPolicyBinding()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } getUnknownFields().writeTo(output); } @@ -298,6 +377,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getAutoProtectionPolicyBinding()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -323,6 +405,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAutoProtectionPolicyBinding().equals(other.getAutoProtectionPolicyBinding())) return false; } + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -342,6 +425,8 @@ public int hashCode() { hash = (37 * hash) + AUTO_PROTECTION_POLICY_BINDING_FIELD_NUMBER; hash = (53 * hash) + getAutoProtectionPolicyBinding().hashCode(); } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -502,6 +587,7 @@ public Builder clear() { autoProtectionPolicyBindingBuilder_.dispose(); autoProtectionPolicyBindingBuilder_ = null; } + requestId_ = ""; return this; } @@ -557,6 +643,9 @@ private void buildPartial0( : autoProtectionPolicyBindingBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } result.bitField0_ |= to_bitField0_; } @@ -590,6 +679,11 @@ public Builder mergeFrom( if (other.hasAutoProtectionPolicyBinding()) { mergeAutoProtectionPolicyBinding(other.getAutoProtectionPolicyBinding()); } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -636,6 +730,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -794,6 +894,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * Required. The ID to use for the binding.
      * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -819,6 +922,9 @@ public java.lang.String getAutoProtectionPolicyBindingId() { *
      * Required. The ID to use for the binding.
      * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -844,6 +950,9 @@ public com.google.protobuf.ByteString getAutoProtectionPolicyBindingIdBytes() { *
      * Required. The ID to use for the binding.
      * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -868,6 +977,9 @@ public Builder setAutoProtectionPolicyBindingId(java.lang.String value) { *
      * Required. The ID to use for the binding.
      * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -888,6 +1000,9 @@ public Builder clearAutoProtectionPolicyBindingId() { *
      * Required. The ID to use for the binding.
      * This will become the final component of the binding's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1128,6 +1243,157 @@ public Builder clearAutoProtectionPolicyBinding() { return autoProtectionPolicyBindingBuilder_; } + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1beta.CreateAutoProtectionPolicyBindingRequest) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequestOrBuilder.java index 414893d39346..778c43aeeae6 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyBindingRequestOrBuilder.java @@ -66,6 +66,9 @@ public interface CreateAutoProtectionPolicyBindingRequestOrBuilder *
    * Required. The ID to use for the binding.
    * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -81,6 +84,9 @@ public interface CreateAutoProtectionPolicyBindingRequestOrBuilder *
    * Required. The ID to use for the binding.
    * This will become the final component of the binding's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -133,4 +139,46 @@ public interface CreateAutoProtectionPolicyBindingRequestOrBuilder */ com.google.cloud.backupdr.v1beta.AutoProtectionPolicyBindingOrBuilder getAutoProtectionPolicyBindingOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequest.java index 62d9c2347ff2..9cc34a13d774 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequest.java @@ -55,6 +55,7 @@ private CreateAutoProtectionPolicyRequest( private CreateAutoProtectionPolicyRequest() { parent_ = ""; autoProtectionPolicyId_ = ""; + requestId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -143,6 +144,9 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * Required. The ID to use for the policy.
    * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -168,6 +172,9 @@ public java.lang.String getAutoProtectionPolicyId() { *
    * Required. The ID to use for the policy.
    * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -247,6 +254,75 @@ public com.google.cloud.backupdr.v1beta.AutoProtectionPolicy getAutoProtectionPo : autoProtectionPolicy_; } + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -270,6 +346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getAutoProtectionPolicy()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } getUnknownFields().writeTo(output); } @@ -289,6 +368,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutoProtectionPolicy()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -311,6 +393,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAutoProtectionPolicy()) { if (!getAutoProtectionPolicy().equals(other.getAutoProtectionPolicy())) return false; } + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -330,6 +413,8 @@ public int hashCode() { hash = (37 * hash) + AUTO_PROTECTION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getAutoProtectionPolicy().hashCode(); } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -489,6 +574,7 @@ public Builder clear() { autoProtectionPolicyBuilder_.dispose(); autoProtectionPolicyBuilder_ = null; } + requestId_ = ""; return this; } @@ -542,6 +628,9 @@ private void buildPartial0( : autoProtectionPolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } result.bitField0_ |= to_bitField0_; } @@ -574,6 +663,11 @@ public Builder mergeFrom( if (other.hasAutoProtectionPolicy()) { mergeAutoProtectionPolicy(other.getAutoProtectionPolicy()); } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -619,6 +713,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -772,6 +872,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * Required. The ID to use for the policy.
      * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -796,6 +899,9 @@ public java.lang.String getAutoProtectionPolicyId() { *
      * Required. The ID to use for the policy.
      * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -820,6 +926,9 @@ public com.google.protobuf.ByteString getAutoProtectionPolicyIdBytes() { *
      * Required. The ID to use for the policy.
      * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -843,6 +952,9 @@ public Builder setAutoProtectionPolicyId(java.lang.String value) { *
      * Required. The ID to use for the policy.
      * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -862,6 +974,9 @@ public Builder clearAutoProtectionPolicyId() { *
      * Required. The ID to use for the policy.
      * This will become the final component of the policy's resource name.
+     *
+     * This value must start with a lowercase letter followed by up to 62
+     * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
      * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1098,6 +1213,157 @@ public Builder clearAutoProtectionPolicy() { return autoProtectionPolicyBuilder_; } + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1beta.CreateAutoProtectionPolicyRequest) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequestOrBuilder.java index e1b6c8d9ca31..cd4de55597df 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/CreateAutoProtectionPolicyRequestOrBuilder.java @@ -64,6 +64,9 @@ public interface CreateAutoProtectionPolicyRequestOrBuilder *
    * Required. The ID to use for the policy.
    * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -78,6 +81,9 @@ public interface CreateAutoProtectionPolicyRequestOrBuilder *
    * Required. The ID to use for the policy.
    * This will become the final component of the policy's resource name.
+   *
+   * This value must start with a lowercase letter followed by up to 62
+   * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
    * 
* * string auto_protection_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -128,4 +134,46 @@ public interface CreateAutoProtectionPolicyRequestOrBuilder *
*/ com.google.cloud.backupdr.v1beta.AutoProtectionPolicyOrBuilder getAutoProtectionPolicyOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequest.java index 63711f26d04d..73bcb8294489 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequest.java @@ -55,6 +55,7 @@ private DeleteAutoProtectionPolicyRequest( private DeleteAutoProtectionPolicyRequest() { name_ = ""; etag_ = ""; + requestId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -142,12 +143,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The current etag of the AutoProtectionPolicy.
+   * Optional. The current etag of the AutoProtectionPolicy.
    * If an etag is provided and does not match the current etag of the
    * connection, the request will be rejected with an ABORTED error.
    * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -168,12 +169,12 @@ public java.lang.String getEtag() { * * *
-   * The current etag of the AutoProtectionPolicy.
+   * Optional. The current etag of the AutoProtectionPolicy.
    * If an etag is provided and does not match the current etag of the
    * connection, the request will be rejected with an ABORTED error.
    * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -190,6 +191,75 @@ public com.google.protobuf.ByteString getEtagBytes() { } } + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -210,6 +280,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } getUnknownFields().writeTo(output); } @@ -225,6 +298,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -243,6 +319,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getEtag().equals(other.getEtag())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,6 +335,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -403,6 +482,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; etag_ = ""; + requestId_ = ""; return this; } @@ -448,6 +528,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.etag_ = etag_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } } @java.lang.Override @@ -476,6 +559,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -514,6 +602,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -670,12 +764,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The current etag of the AutoProtectionPolicy.
+     * Optional. The current etag of the AutoProtectionPolicy.
      * If an etag is provided and does not match the current etag of the
      * connection, the request will be rejected with an ABORTED error.
      * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -695,12 +789,12 @@ public java.lang.String getEtag() { * * *
-     * The current etag of the AutoProtectionPolicy.
+     * Optional. The current etag of the AutoProtectionPolicy.
      * If an etag is provided and does not match the current etag of the
      * connection, the request will be rejected with an ABORTED error.
      * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -720,12 +814,12 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * The current etag of the AutoProtectionPolicy.
+     * Optional. The current etag of the AutoProtectionPolicy.
      * If an etag is provided and does not match the current etag of the
      * connection, the request will be rejected with an ABORTED error.
      * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The etag to set. * @return This builder for chaining. @@ -744,12 +838,12 @@ public Builder setEtag(java.lang.String value) { * * *
-     * The current etag of the AutoProtectionPolicy.
+     * Optional. The current etag of the AutoProtectionPolicy.
      * If an etag is provided and does not match the current etag of the
      * connection, the request will be rejected with an ABORTED error.
      * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -764,12 +858,12 @@ public Builder clearEtag() { * * *
-     * The current etag of the AutoProtectionPolicy.
+     * Optional. The current etag of the AutoProtectionPolicy.
      * If an etag is provided and does not match the current etag of the
      * connection, the request will be rejected with an ABORTED error.
      * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for etag to set. * @return This builder for chaining. @@ -785,6 +879,157 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1beta.DeleteAutoProtectionPolicyRequest) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequestOrBuilder.java index 1221fd8ab5ad..115fd577938b 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/DeleteAutoProtectionPolicyRequestOrBuilder.java @@ -64,12 +64,12 @@ public interface DeleteAutoProtectionPolicyRequestOrBuilder * * *
-   * The current etag of the AutoProtectionPolicy.
+   * Optional. The current etag of the AutoProtectionPolicy.
    * If an etag is provided and does not match the current etag of the
    * connection, the request will be rejected with an ABORTED error.
    * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -79,14 +79,56 @@ public interface DeleteAutoProtectionPolicyRequestOrBuilder * * *
-   * The current etag of the AutoProtectionPolicy.
+   * Optional. The current etag of the AutoProtectionPolicy.
    * If an etag is provided and does not match the current etag of the
    * connection, the request will be rejected with an ABORTED error.
    * 
* - * string etag = 2; + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequest.java index 40cc33071f36..4cfd895b4cf8 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequest.java @@ -56,6 +56,8 @@ private InitiateDeleteAutoProtectionPolicyBindingRequest( private InitiateDeleteAutoProtectionPolicyBindingRequest() { name_ = ""; + etag_ = ""; + requestId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -135,6 +137,132 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -152,6 +280,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } getUnknownFields().writeTo(output); } @@ -164,6 +298,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -183,6 +323,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.backupdr.v1beta.InitiateDeleteAutoProtectionPolicyBindingRequest) obj; if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -196,6 +338,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -348,6 +494,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + etag_ = ""; + requestId_ = ""; return this; } @@ -394,6 +542,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } } @java.lang.Override @@ -420,6 +574,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -452,6 +616,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -602,6 +778,278 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the AutoProtectionPolicyBinding.
+     * If an etag is provided and does not match the current etag of the
+     * binding, deletion will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1beta.InitiateDeleteAutoProtectionPolicyBindingRequest) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java index 43a0b217f05d..9cff29d3ba99 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder.java @@ -59,4 +59,76 @@ public interface InitiateDeleteAutoProtectionPolicyBindingRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. The current etag of the AutoProtectionPolicyBinding.
+   * If an etag is provided and does not match the current etag of the
+   * binding, deletion will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePair.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePair.java index 7e7e9a08d3fa..cacd76d96f1a 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePair.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePair.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getKeyBytes() { * *
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -160,7 +160,7 @@ public com.google.protobuf.ProtocolStringList getValuesList() {
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -179,7 +179,7 @@ public int getValuesCount() {
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -199,7 +199,7 @@ public java.lang.String getValues(int index) {
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -702,7 +702,7 @@ private void ensureValuesIsMutable() {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -722,7 +722,7 @@ public com.google.protobuf.ProtocolStringList getValuesList() {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -741,7 +741,7 @@ public int getValuesCount() {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -761,7 +761,7 @@ public java.lang.String getValues(int index) {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -781,7 +781,7 @@ public com.google.protobuf.ByteString getValuesBytes(int index) {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -809,7 +809,7 @@ public Builder setValues(int index, java.lang.String value) {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -836,7 +836,7 @@ public Builder addValues(java.lang.String value) {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -860,7 +860,7 @@ public Builder addAllValues(java.lang.Iterable values) {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -883,7 +883,7 @@ public Builder clearValues() {
      *
      * 
      * Required. The values of the label to match.
-     * There will be explicit “OR” between values of array.
+     * There will be explicit "OR" between values of array.
      * Each value must be in the format `{label_value}`.
      * The value must match the regex
      * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePairOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePairOrBuilder.java
index b8a6c85d78b1..2e91d39a196b 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePairOrBuilder.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/KeyValuePairOrBuilder.java
@@ -63,7 +63,7 @@ public interface KeyValuePairOrBuilder
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -80,7 +80,7 @@ public interface KeyValuePairOrBuilder
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -97,7 +97,7 @@ public interface KeyValuePairOrBuilder
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
@@ -115,7 +115,7 @@ public interface KeyValuePairOrBuilder
    *
    * 
    * Required. The values of the label to match.
-   * There will be explicit “OR” between values of array.
+   * There will be explicit "OR" between values of array.
    * Each value must be in the format `{label_value}`.
    * The value must match the regex
    * Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponse.java
index 49db5488c363..be4b3ba04054 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponse.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponse.java
@@ -223,10 +223,10 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
    *
    *
    * 
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return A list containing the unreachable. */ @@ -238,10 +238,10 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return The count of unreachable. */ @@ -253,10 +253,10 @@ public int getUnreachableCount() { * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index of the element to return. * @return The unreachable at the given index. @@ -269,10 +269,10 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. @@ -1263,10 +1263,10 @@ private void ensureUnreachableIsMutable() { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return A list containing the unreachable. */ @@ -1279,10 +1279,10 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return The count of unreachable. */ @@ -1294,10 +1294,10 @@ public int getUnreachableCount() { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index of the element to return. * @return The unreachable at the given index. @@ -1310,10 +1310,10 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. @@ -1326,10 +1326,10 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index to set the value at. * @param value The unreachable to set. @@ -1350,10 +1350,10 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param value The unreachable to add. * @return This builder for chaining. @@ -1373,10 +1373,10 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param values The unreachable to add. * @return This builder for chaining. @@ -1393,10 +1393,10 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return This builder for chaining. */ @@ -1412,10 +1412,10 @@ public Builder clearUnreachable() { * * *
-     * Locations that could not be reached.
+     * Unordered list. Locations that could not be reached.
      * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param value The bytes of the unreachable to add. * @return This builder for chaining. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponseOrBuilder.java index 9b05f38c14b3..fe255db389b3 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponseOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/ListAutoProtectionPoliciesResponseOrBuilder.java @@ -121,10 +121,10 @@ com.google.cloud.backupdr.v1beta.AutoProtectionPolicyOrBuilder getAutoProtection * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return A list containing the unreachable. */ @@ -134,10 +134,10 @@ com.google.cloud.backupdr.v1beta.AutoProtectionPolicyOrBuilder getAutoProtection * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @return The count of unreachable. */ @@ -147,10 +147,10 @@ com.google.cloud.backupdr.v1beta.AutoProtectionPolicyOrBuilder getAutoProtection * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index of the element to return. * @return The unreachable at the given index. @@ -161,10 +161,10 @@ com.google.cloud.backupdr.v1beta.AutoProtectionPolicyOrBuilder getAutoProtection * * *
-   * Locations that could not be reached.
+   * Unordered list. Locations that could not be reached.
    * 
* - * repeated string unreachable = 3; + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequest.java index 4bb1e577d223..ec555a398924 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequest.java @@ -52,7 +52,9 @@ private UpdateAutoProtectionPolicyRequest( super(builder); } - private UpdateAutoProtectionPolicyRequest() {} + private UpdateAutoProtectionPolicyRequest() { + requestId_ = ""; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.backupdr.v1beta.AutoProtectionPolicyProto @@ -137,14 +139,14 @@ public com.google.cloud.backupdr.v1beta.AutoProtectionPolicy getAutoProtectionPo * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Optional. Field mask is used to specify the fields to be overwritten in the
    * AutoProtectionPolicy resource by the update.
    * The fields specified in the update_mask are relative to the resource, not
    * the full request. A field will be overwritten if it is in the mask. If the
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -158,14 +160,14 @@ public boolean hasUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Optional. Field mask is used to specify the fields to be overwritten in the
    * AutoProtectionPolicy resource by the update.
    * The fields specified in the update_mask are relative to the resource, not
    * the full request. A field will be overwritten if it is in the mask. If the
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -179,14 +181,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Optional. Field mask is used to specify the fields to be overwritten in the
    * AutoProtectionPolicy resource by the update.
    * The fields specified in the update_mask are relative to the resource, not
    * the full request. A field will be overwritten if it is in the mask. If the
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -194,6 +196,75 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -214,6 +285,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } getUnknownFields().writeTo(output); } @@ -230,6 +304,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -254,6 +331,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,6 +351,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -436,6 +516,7 @@ public Builder clear() { updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } + requestId_ = ""; return this; } @@ -487,6 +568,9 @@ private void buildPartial0( result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } result.bitField0_ |= to_bitField0_; } @@ -512,6 +596,11 @@ public Builder mergeFrom( if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -552,6 +641,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -800,14 +895,14 @@ public Builder clearAutoProtectionPolicy() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -820,14 +915,14 @@ public boolean hasUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -846,14 +941,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { @@ -874,14 +969,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { @@ -899,14 +994,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { @@ -932,14 +1027,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearUpdateMask() { @@ -957,14 +1052,14 @@ public Builder clearUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -977,14 +1072,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -1001,14 +1096,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
+     * Optional. Field mask is used to specify the fields to be overwritten in the
      * AutoProtectionPolicy resource by the update.
      * The fields specified in the update_mask are relative to the resource, not
      * the full request. A field will be overwritten if it is in the mask. If the
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< @@ -1028,6 +1123,157 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1beta.UpdateAutoProtectionPolicyRequest) } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequestOrBuilder.java index b2a0107aaa99..acad7d8f6dbc 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/java/com/google/cloud/backupdr/v1beta/UpdateAutoProtectionPolicyRequestOrBuilder.java @@ -73,14 +73,14 @@ public interface UpdateAutoProtectionPolicyRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Optional. Field mask is used to specify the fields to be overwritten in the
    * AutoProtectionPolicy resource by the update.
    * The fields specified in the update_mask are relative to the resource, not
    * the full request. A field will be overwritten if it is in the mask. If the
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the updateMask field is set. @@ -91,14 +91,14 @@ public interface UpdateAutoProtectionPolicyRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Optional. Field mask is used to specify the fields to be overwritten in the
    * AutoProtectionPolicy resource by the update.
    * The fields specified in the update_mask are relative to the resource, not
    * the full request. A field will be overwritten if it is in the mask. If the
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The updateMask. @@ -109,15 +109,57 @@ public interface UpdateAutoProtectionPolicyRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
+   * Optional. Field mask is used to specify the fields to be overwritten in the
    * AutoProtectionPolicy resource by the update.
    * The fields specified in the update_mask are relative to the resource, not
    * the full request. A field will be overwritten if it is in the mask. If the
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy.proto b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy.proto index 9195d1819f83..f13307dbe7af 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy.proto @@ -64,7 +64,12 @@ message AppliedAutoProtectionPolicy { // Output only. The full resource name of the AutoProtectionPolicyBinding that // applies the source policy to a scope including this workload project. e.g., // projects/{admin-project}/locations/{location}/autoProtectionPolicies/{policy_id}/autoProtectionPolicyBindings/{binding_id}. - string source_binding = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string source_binding = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" + } + ]; // Output only. The criteria resources must meet for this rule to apply. From // AutoProtectionPolicy.criteria. diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicy.proto b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicy.proto index f29ae43a769b..a2fd7eae0c21 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicy.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicy.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.backupdr.v1beta; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -59,12 +60,16 @@ message AutoProtectionPolicy { DELETING = 4; } - // Identifier. The resource name of the AutoprotectionPolicy. + // Output only. Identifier. The resource name of the AutoprotectionPolicy. // Format: // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}` - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; - // Optional. A description of the policy. + // Optional. A description of the policy. The description must be at most 2048 + // characters. string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The backup plan details for matching resources. @@ -172,7 +177,7 @@ message KeyValuePair { string key = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The values of the label to match. - // There will be explicit “OR” between values of array. + // There will be explicit "OR" between values of array. // Each value must be in the format `{label_value}`. // The value must match the regex // Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`. @@ -192,11 +197,26 @@ message CreateAutoProtectionPolicyRequest { // Required. The ID to use for the policy. // This will become the final component of the policy's resource name. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. string auto_protection_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The AutoProtectionPolicy resource to create. AutoProtectionPolicy auto_protection_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for getting an AutoProtectionPolicy. @@ -218,13 +238,25 @@ message UpdateAutoProtectionPolicyRequest { AutoProtectionPolicy auto_protection_policy = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Field mask is used to specify the fields to be overwritten in the + // Optional. Field mask is used to specify the fields to be overwritten in the // AutoProtectionPolicy resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for deleting an AutoProtectionPolicy. @@ -239,10 +271,22 @@ message DeleteAutoProtectionPolicyRequest { } ]; - // The current etag of the AutoProtectionPolicy. + // Optional. The current etag of the AutoProtectionPolicy. // If an etag is provided and does not match the current etag of the // connection, the request will be rejected with an ABORTED error. - string etag = 2; + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for ListAutoProtectionPolicies. @@ -283,6 +327,7 @@ message ListAutoProtectionPoliciesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; - // Locations that could not be reached. - repeated string unreachable = 3; + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.proto b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.proto index f5bcc7e76738..fe372930c351 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.backupdr.v1beta; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; @@ -54,12 +55,16 @@ message AutoProtectionPolicyBinding { DELETION_INITIATED = 3; } - // Identifier. The resource name of the AutoProtectionPolicyBinding. - // Format: + // Output only. Identifier. The resource name of the + // AutoProtectionPolicyBinding. Format: // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}` - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; - // Optional. A description of the binding. + // Optional. A description of the binding. The description must be at most + // 2048 characters. string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. The current state of the AutoProtectionPolicyBinding. @@ -86,9 +91,9 @@ message AutoProtectionPolicyBinding { google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Output only. The etag for the binding. + // Output only. The etag for the binding. // If this is provided on update, it must match the server's etag. - string etag = 8 [(google.api.field_behavior) = OPTIONAL]; + string etag = 8; } // BindingEvaluationSummary contains the summary of the last run of job @@ -122,12 +127,27 @@ message CreateAutoProtectionPolicyBindingRequest { // Required. The ID to use for the binding. // This will become the final component of the binding's resource name. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. string auto_protection_policy_binding_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The AutoProtectionPolicyBinding resource to create. AutoProtectionPolicyBinding auto_protection_policy_binding = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request message for getting an AutoProtectionPolicyBinding. @@ -197,4 +217,21 @@ message InitiateDeleteAutoProtectionPolicyBindingRequest { type: "backupdr.googleapis.com/AutoProtectionPolicyBinding" } ]; + + // Optional. The current etag of the AutoProtectionPolicyBinding. + // If an etag is provided and does not match the current etag of the + // binding, deletion will be blocked and an ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/bindingmatchingresource.proto b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/bindingmatchingresource.proto index 076ed92fb0ee..1dfdaf9269ce 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/bindingmatchingresource.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1beta/src/main/proto/google/cloud/backupdr/v1beta/bindingmatchingresource.proto @@ -103,22 +103,22 @@ message BindingMatchingResource { singular: "bindingMatchingResource" }; - // Identifier. The resource name of the `BindingMatchingResource`. - // Format: + // Output only. Identifier. The resource name of the + // `BindingMatchingResource`. Format: // `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}` - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; - // Required. Immutable. Resource name of the workload that matches the - // criteria of the binding. + // Output only. Resource name of the workload that matches the criteria of the + // binding. // // The format can be either a relative resource name (e.g., // `projects/my-project/zones/us-central1-a/instances/my-instance`) or a // schemeless full resource name (e.g., // `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`). - string resource = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; + string resource = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp when the resource was last evaluated for // protection. diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java new file mode 100644 index 000000000000..9b4350af765e --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; +import com.google.cloud.backupdr.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAutoProtectionPolicy(); + } + + public static void asyncCreateAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + CreateAutoProtectionPolicyRequest request = + CreateAutoProtectionPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") + .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + backupDRClient.createAutoProtectionPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java new file mode 100644 index 000000000000..dd8b94ccb958 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; +import com.google.cloud.backupdr.v1.LocationName; +import com.google.cloud.backupdr.v1.OperationMetadata; + +public class AsyncCreateAutoProtectionPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAutoProtectionPolicyLRO(); + } + + public static void asyncCreateAutoProtectionPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + CreateAutoProtectionPolicyRequest request = + CreateAutoProtectionPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") + .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + backupDRClient.createAutoProtectionPolicyOperationCallable().futureCall(request); + // Do something. + AutoProtectionPolicy response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_LRO_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java new file mode 100644 index 000000000000..6a31df44aacc --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncCreateAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoProtectionPolicy(); + } + + public static void syncCreateAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + CreateAutoProtectionPolicyRequest request = + CreateAutoProtectionPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") + .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AutoProtectionPolicy response = backupDRClient.createAutoProtectionPolicyAsync(request).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString.java new file mode 100644 index 000000000000..e1bd44f8df72 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_LocationnameAutoprotectionpolicyString_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString(); + } + + public static void syncCreateAutoProtectionPolicyLocationnameAutoprotectionpolicyString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + AutoProtectionPolicy response = + backupDRClient + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_LocationnameAutoprotectionpolicyString_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyStringAutoprotectionpolicyString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyStringAutoprotectionpolicyString.java new file mode 100644 index 000000000000..d1d9fc0289ea --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicyStringAutoprotectionpolicyString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_StringAutoprotectionpolicyString_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncCreateAutoProtectionPolicyStringAutoprotectionpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAutoProtectionPolicyStringAutoprotectionpolicyString(); + } + + public static void syncCreateAutoProtectionPolicyStringAutoprotectionpolicyString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + String autoProtectionPolicyId = "autoProtectionPolicyId1759243253"; + AutoProtectionPolicy response = + backupDRClient + .createAutoProtectionPolicyAsync(parent, autoProtectionPolicy, autoProtectionPolicyId) + .get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicy_StringAutoprotectionpolicyString_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..00b7dda79454 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; +import com.google.longrunning.Operation; + +public class AsyncCreateAutoProtectionPolicyBinding { + + public static void main(String[] args) throws Exception { + asyncCreateAutoProtectionPolicyBinding(); + } + + public static void asyncCreateAutoProtectionPolicyBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + CreateAutoProtectionPolicyBindingRequest request = + CreateAutoProtectionPolicyBindingRequest.newBuilder() + .setParent( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") + .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + backupDRClient.createAutoProtectionPolicyBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java new file mode 100644 index 000000000000..2abd716568e0 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.OperationMetadata; + +public class AsyncCreateAutoProtectionPolicyBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAutoProtectionPolicyBindingLRO(); + } + + public static void asyncCreateAutoProtectionPolicyBindingLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + CreateAutoProtectionPolicyBindingRequest request = + CreateAutoProtectionPolicyBindingRequest.newBuilder() + .setParent( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") + .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + backupDRClient.createAutoProtectionPolicyBindingOperationCallable().futureCall(request); + // Do something. + AutoProtectionPolicyBinding response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_LRO_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..22e565ae1959 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.CreateAutoProtectionPolicyBindingRequest; + +public class SyncCreateAutoProtectionPolicyBinding { + + public static void main(String[] args) throws Exception { + syncCreateAutoProtectionPolicyBinding(); + } + + public static void syncCreateAutoProtectionPolicyBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + CreateAutoProtectionPolicyBindingRequest request = + CreateAutoProtectionPolicyBindingRequest.newBuilder() + .setParent( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") + .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AutoProtectionPolicyBinding response = + backupDRClient.createAutoProtectionPolicyBindingAsync(request).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString.java new file mode 100644 index 000000000000..96d37c109e9c --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_AutoprotectionpolicynameAutoprotectionpolicybindingString_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public +class SyncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString { + + public static void main(String[] args) throws Exception { + syncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString(); + } + + public static void + syncCreateAutoProtectionPolicyBindingAutoprotectionpolicynameAutoprotectionpolicybindingString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + AutoProtectionPolicyBinding response = + backupDRClient + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_AutoprotectionpolicynameAutoprotectionpolicybindingString_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString.java new file mode 100644 index 000000000000..67fa1bf09885 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_StringAutoprotectionpolicybindingString_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString { + + public static void main(String[] args) throws Exception { + syncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString(); + } + + public static void syncCreateAutoProtectionPolicyBindingStringAutoprotectionpolicybindingString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString(); + AutoProtectionPolicyBinding autoProtectionPolicyBinding = + AutoProtectionPolicyBinding.newBuilder().build(); + String autoProtectionPolicyBindingId = "autoProtectionPolicyBindingId2122957414"; + AutoProtectionPolicyBinding response = + backupDRClient + .createAutoProtectionPolicyBindingAsync( + parent, autoProtectionPolicyBinding, autoProtectionPolicyBindingId) + .get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_CreateAutoProtectionPolicyBinding_StringAutoprotectionpolicybindingString_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java new file mode 100644 index 000000000000..a28108924cec --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAutoProtectionPolicy(); + } + + public static void asyncDeleteAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + DeleteAutoProtectionPolicyRequest request = + DeleteAutoProtectionPolicyRequest.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + backupDRClient.deleteAutoProtectionPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java new file mode 100644 index 000000000000..c3edaec400ad --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; +import com.google.cloud.backupdr.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAutoProtectionPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAutoProtectionPolicyLRO(); + } + + public static void asyncDeleteAutoProtectionPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + DeleteAutoProtectionPolicyRequest request = + DeleteAutoProtectionPolicyRequest.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + backupDRClient.deleteAutoProtectionPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_LRO_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java new file mode 100644 index 000000000000..9c219ad617de --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.DeleteAutoProtectionPolicyRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAutoProtectionPolicy(); + } + + public static void syncDeleteAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + DeleteAutoProtectionPolicyRequest request = + DeleteAutoProtectionPolicyRequest.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") + .build(); + backupDRClient.deleteAutoProtectionPolicyAsync(request).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyAutoprotectionpolicyname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyAutoprotectionpolicyname.java new file mode 100644 index 000000000000..c4d44a6a83c4 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyAutoprotectionpolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_Autoprotectionpolicyname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAutoProtectionPolicyAutoprotectionpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAutoProtectionPolicyAutoprotectionpolicyname(); + } + + public static void syncDeleteAutoProtectionPolicyAutoprotectionpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + backupDRClient.deleteAutoProtectionPolicyAsync(name).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_Autoprotectionpolicyname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyString.java new file mode 100644 index 000000000000..4f46801b9e1d --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAutoProtectionPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteAutoProtectionPolicyString(); + } + + public static void syncDeleteAutoProtectionPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString(); + backupDRClient.deleteAutoProtectionPolicyAsync(name).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_DeleteAutoProtectionPolicy_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociation.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociation.java index a540fd30d00d..9cc3096dda4b 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociation.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociation.java @@ -18,6 +18,7 @@ // [START backupdr_v1_generated_BackupDR_DeleteBackupPlanAssociation_async] import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; import com.google.cloud.backupdr.v1.BackupDRClient; import com.google.cloud.backupdr.v1.BackupPlanAssociationName; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; @@ -43,6 +44,10 @@ public static void asyncDeleteBackupPlanAssociation() throws Exception { "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]") .toString()) .setRequestId("requestId693933066") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); ApiFuture future = backupDRClient.deleteBackupPlanAssociationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociationLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociationLRO.java index eff840dad780..a624105c771c 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociationLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/AsyncDeleteBackupPlanAssociationLRO.java @@ -18,6 +18,7 @@ // [START backupdr_v1_generated_BackupDR_DeleteBackupPlanAssociation_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; import com.google.cloud.backupdr.v1.BackupDRClient; import com.google.cloud.backupdr.v1.BackupPlanAssociationName; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; @@ -44,6 +45,10 @@ public static void asyncDeleteBackupPlanAssociationLRO() throws Exception { "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]") .toString()) .setRequestId("requestId693933066") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); OperationFuture future = backupDRClient.deleteBackupPlanAssociationOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/SyncDeleteBackupPlanAssociation.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/SyncDeleteBackupPlanAssociation.java index c7d0bb3b44a9..2880737e1da0 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/SyncDeleteBackupPlanAssociation.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupplanassociation/SyncDeleteBackupPlanAssociation.java @@ -17,6 +17,7 @@ package com.google.cloud.backupdr.v1.samples; // [START backupdr_v1_generated_BackupDR_DeleteBackupPlanAssociation_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; import com.google.cloud.backupdr.v1.BackupDRClient; import com.google.cloud.backupdr.v1.BackupPlanAssociationName; import com.google.cloud.backupdr.v1.DeleteBackupPlanAssociationRequest; @@ -42,6 +43,10 @@ public static void syncDeleteBackupPlanAssociation() throws Exception { "[PROJECT]", "[LOCATION]", "[BACKUP_PLAN_ASSOCIATION]") .toString()) .setRequestId("requestId693933066") + .setAutoProtectionPolicyBinding( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) .build(); backupDRClient.deleteBackupPlanAssociationAsync(request).get(); } diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/AsyncGetAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/AsyncGetAutoProtectionPolicy.java new file mode 100644 index 000000000000..a9859e1361a3 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/AsyncGetAutoProtectionPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest; + +public class AsyncGetAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + asyncGetAutoProtectionPolicy(); + } + + public static void asyncGetAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + GetAutoProtectionPolicyRequest request = + GetAutoProtectionPolicyRequest.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .build(); + ApiFuture future = + backupDRClient.getAutoProtectionPolicyCallable().futureCall(request); + // Do something. + AutoProtectionPolicy response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicy.java new file mode 100644 index 000000000000..0bbc8b9e7de6 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyRequest; + +public class SyncGetAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + syncGetAutoProtectionPolicy(); + } + + public static void syncGetAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + GetAutoProtectionPolicyRequest request = + GetAutoProtectionPolicyRequest.newBuilder() + .setName( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .build(); + AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(request); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyAutoprotectionpolicyname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyAutoprotectionpolicyname.java new file mode 100644 index 000000000000..3c0c58dcd980 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyAutoprotectionpolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_Autoprotectionpolicyname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncGetAutoProtectionPolicyAutoprotectionpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAutoProtectionPolicyAutoprotectionpolicyname(); + } + + public static void syncGetAutoProtectionPolicyAutoprotectionpolicyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyName name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(name); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_Autoprotectionpolicyname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyString.java new file mode 100644 index 000000000000..931f7720f470 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicy/SyncGetAutoProtectionPolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncGetAutoProtectionPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAutoProtectionPolicyString(); + } + + public static void syncGetAutoProtectionPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String name = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString(); + AutoProtectionPolicy response = backupDRClient.getAutoProtectionPolicy(name); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicy_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/AsyncGetAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/AsyncGetAutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..c32eca5d9edb --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/AsyncGetAutoProtectionPolicyBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest; + +public class AsyncGetAutoProtectionPolicyBinding { + + public static void main(String[] args) throws Exception { + asyncGetAutoProtectionPolicyBinding(); + } + + public static void asyncGetAutoProtectionPolicyBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + GetAutoProtectionPolicyBindingRequest request = + GetAutoProtectionPolicyBindingRequest.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .build(); + ApiFuture future = + backupDRClient.getAutoProtectionPolicyBindingCallable().futureCall(request); + // Do something. + AutoProtectionPolicyBinding response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..67fa1f0ef89c --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.GetAutoProtectionPolicyBindingRequest; + +public class SyncGetAutoProtectionPolicyBinding { + + public static void main(String[] args) throws Exception { + syncGetAutoProtectionPolicyBinding(); + } + + public static void syncGetAutoProtectionPolicyBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + GetAutoProtectionPolicyBindingRequest request = + GetAutoProtectionPolicyBindingRequest.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .build(); + AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(request); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java new file mode 100644 index 000000000000..d042e95512d8 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_Autoprotectionpolicybindingname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname { + + public static void main(String[] args) throws Exception { + syncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname(); + } + + public static void syncGetAutoProtectionPolicyBindingAutoprotectionpolicybindingname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(name); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_Autoprotectionpolicybindingname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingString.java new file mode 100644 index 000000000000..ce03b46caee8 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/getautoprotectionpolicybinding/SyncGetAutoProtectionPolicyBindingString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncGetAutoProtectionPolicyBindingString { + + public static void main(String[] args) throws Exception { + syncGetAutoProtectionPolicyBindingString(); + } + + public static void syncGetAutoProtectionPolicyBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString(); + AutoProtectionPolicyBinding response = backupDRClient.getAutoProtectionPolicyBinding(name); + } + } +} +// [END backupdr_v1_generated_BackupDR_GetAutoProtectionPolicyBinding_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..666b24362103 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; +import com.google.longrunning.Operation; + +public class AsyncInitiateDeleteAutoProtectionPolicyBinding { + + public static void main(String[] args) throws Exception { + asyncInitiateDeleteAutoProtectionPolicyBinding(); + } + + public static void asyncInitiateDeleteAutoProtectionPolicyBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + InitiateDeleteAutoProtectionPolicyBindingRequest request = + InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + backupDRClient.initiateDeleteAutoProtectionPolicyBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java new file mode 100644 index 000000000000..211e6dfc2ca6 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; +import com.google.cloud.backupdr.v1.OperationMetadata; + +public class AsyncInitiateDeleteAutoProtectionPolicyBindingLRO { + + public static void main(String[] args) throws Exception { + asyncInitiateDeleteAutoProtectionPolicyBindingLRO(); + } + + public static void asyncInitiateDeleteAutoProtectionPolicyBindingLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + InitiateDeleteAutoProtectionPolicyBindingRequest request = + InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + backupDRClient + .initiateDeleteAutoProtectionPolicyBindingOperationCallable() + .futureCall(request); + // Do something. + AutoProtectionPolicyBinding response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_LRO_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java new file mode 100644 index 000000000000..6c7275e86951 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.InitiateDeleteAutoProtectionPolicyBindingRequest; + +public class SyncInitiateDeleteAutoProtectionPolicyBinding { + + public static void main(String[] args) throws Exception { + syncInitiateDeleteAutoProtectionPolicyBinding(); + } + + public static void syncInitiateDeleteAutoProtectionPolicyBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + InitiateDeleteAutoProtectionPolicyBindingRequest request = + InitiateDeleteAutoProtectionPolicyBindingRequest.newBuilder() + .setName( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") + .build(); + AutoProtectionPolicyBinding response = + backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(request).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java new file mode 100644 index 000000000000..2514fe7a1c38 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_Autoprotectionpolicybindingname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname { + + public static void main(String[] args) throws Exception { + syncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname(); + } + + public static void syncInitiateDeleteAutoProtectionPolicyBindingAutoprotectionpolicybindingname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyBindingName name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + AutoProtectionPolicyBinding response = + backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_Autoprotectionpolicybindingname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingString.java new file mode 100644 index 000000000000..22c722fe70b9 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBindingString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncInitiateDeleteAutoProtectionPolicyBindingString { + + public static void main(String[] args) throws Exception { + syncInitiateDeleteAutoProtectionPolicyBindingString(); + } + + public static void syncInitiateDeleteAutoProtectionPolicyBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String name = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString(); + AutoProtectionPolicyBinding response = + backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(name).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitiateDeleteAutoProtectionPolicyBinding_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPolicies.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPolicies.java new file mode 100644 index 000000000000..d729a938591d --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPolicies.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class AsyncListAppliedAutoProtectionPolicies { + + public static void main(String[] args) throws Exception { + asyncListAppliedAutoProtectionPolicies(); + } + + public static void asyncListAppliedAutoProtectionPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAppliedAutoProtectionPoliciesRequest request = + ListAppliedAutoProtectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + backupDRClient.listAppliedAutoProtectionPoliciesPagedCallable().futureCall(request); + // Do something. + for (AppliedAutoProtectionPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPoliciesPaged.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPoliciesPaged.java new file mode 100644 index 000000000000..6893c7b60046 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/AsyncListAppliedAutoProtectionPoliciesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_Paged_async] +import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAppliedAutoProtectionPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAppliedAutoProtectionPoliciesPaged(); + } + + public static void asyncListAppliedAutoProtectionPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAppliedAutoProtectionPoliciesRequest request = + ListAppliedAutoProtectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAppliedAutoProtectionPoliciesResponse response = + backupDRClient.listAppliedAutoProtectionPoliciesCallable().call(request); + for (AppliedAutoProtectionPolicy element : + response.getAppliedAutoProtectionPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_Paged_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPolicies.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPolicies.java new file mode 100644 index 000000000000..1dcc57891dfb --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPolicies.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_sync] +import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAppliedAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListAppliedAutoProtectionPolicies { + + public static void main(String[] args) throws Exception { + syncListAppliedAutoProtectionPolicies(); + } + + public static void syncListAppliedAutoProtectionPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAppliedAutoProtectionPoliciesRequest request = + ListAppliedAutoProtectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AppliedAutoProtectionPolicy element : + backupDRClient.listAppliedAutoProtectionPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesLocationname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesLocationname.java new file mode 100644 index 000000000000..8d9892b0059c --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_Locationname_sync] +import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListAppliedAutoProtectionPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAppliedAutoProtectionPoliciesLocationname(); + } + + public static void syncListAppliedAutoProtectionPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AppliedAutoProtectionPolicy element : + backupDRClient.listAppliedAutoProtectionPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_Locationname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesString.java new file mode 100644 index 000000000000..97aa0f566895 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listappliedautoprotectionpolicies/SyncListAppliedAutoProtectionPoliciesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_String_sync] +import com.google.cloud.backupdr.v1.AppliedAutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListAppliedAutoProtectionPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAppliedAutoProtectionPoliciesString(); + } + + public static void syncListAppliedAutoProtectionPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AppliedAutoProtectionPolicy element : + backupDRClient.listAppliedAutoProtectionPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAppliedAutoProtectionPolicies_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPolicies.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPolicies.java new file mode 100644 index 000000000000..1a9d63e844dd --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPolicies.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class AsyncListAutoProtectionPolicies { + + public static void main(String[] args) throws Exception { + asyncListAutoProtectionPolicies(); + } + + public static void asyncListAutoProtectionPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAutoProtectionPoliciesRequest request = + ListAutoProtectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + backupDRClient.listAutoProtectionPoliciesPagedCallable().futureCall(request); + // Do something. + for (AutoProtectionPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPoliciesPaged.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPoliciesPaged.java new file mode 100644 index 000000000000..42c374450e79 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/AsyncListAutoProtectionPoliciesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_Paged_async] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesResponse; +import com.google.cloud.backupdr.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAutoProtectionPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAutoProtectionPoliciesPaged(); + } + + public static void asyncListAutoProtectionPoliciesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAutoProtectionPoliciesRequest request = + ListAutoProtectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAutoProtectionPoliciesResponse response = + backupDRClient.listAutoProtectionPoliciesCallable().call(request); + for (AutoProtectionPolicy element : response.getAutoProtectionPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_Paged_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPolicies.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPolicies.java new file mode 100644 index 000000000000..fe25a4c21b5c --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPolicies.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAutoProtectionPoliciesRequest; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListAutoProtectionPolicies { + + public static void main(String[] args) throws Exception { + syncListAutoProtectionPolicies(); + } + + public static void syncListAutoProtectionPolicies() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAutoProtectionPoliciesRequest request = + ListAutoProtectionPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AutoProtectionPolicy element : + backupDRClient.listAutoProtectionPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesLocationname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesLocationname.java new file mode 100644 index 000000000000..04f2647d87a7 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_Locationname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListAutoProtectionPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAutoProtectionPoliciesLocationname(); + } + + public static void syncListAutoProtectionPoliciesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AutoProtectionPolicy element : + backupDRClient.listAutoProtectionPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_Locationname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesString.java new file mode 100644 index 000000000000..f3b76a03fd6d --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicies/SyncListAutoProtectionPoliciesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.LocationName; + +public class SyncListAutoProtectionPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAutoProtectionPoliciesString(); + } + + public static void syncListAutoProtectionPoliciesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AutoProtectionPolicy element : + backupDRClient.listAutoProtectionPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicies_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindings.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindings.java new file mode 100644 index 000000000000..547d7090b859 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindings.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; + +public class AsyncListAutoProtectionPolicyBindings { + + public static void main(String[] args) throws Exception { + asyncListAutoProtectionPolicyBindings(); + } + + public static void asyncListAutoProtectionPolicyBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAutoProtectionPolicyBindingsRequest request = + ListAutoProtectionPolicyBindingsRequest.newBuilder() + .setParent( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + backupDRClient.listAutoProtectionPolicyBindingsPagedCallable().futureCall(request); + // Do something. + for (AutoProtectionPolicyBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindingsPaged.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindingsPaged.java new file mode 100644 index 000000000000..baa6805fa889 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/AsyncListAutoProtectionPolicyBindingsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_Paged_async] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsResponse; +import com.google.common.base.Strings; + +public class AsyncListAutoProtectionPolicyBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListAutoProtectionPolicyBindingsPaged(); + } + + public static void asyncListAutoProtectionPolicyBindingsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAutoProtectionPolicyBindingsRequest request = + ListAutoProtectionPolicyBindingsRequest.newBuilder() + .setParent( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAutoProtectionPolicyBindingsResponse response = + backupDRClient.listAutoProtectionPolicyBindingsCallable().call(request); + for (AutoProtectionPolicyBinding element : response.getAutoProtectionPolicyBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_Paged_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindings.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindings.java new file mode 100644 index 000000000000..4ea84569f798 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.ListAutoProtectionPolicyBindingsRequest; + +public class SyncListAutoProtectionPolicyBindings { + + public static void main(String[] args) throws Exception { + syncListAutoProtectionPolicyBindings(); + } + + public static void syncListAutoProtectionPolicyBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListAutoProtectionPolicyBindingsRequest request = + ListAutoProtectionPolicyBindingsRequest.newBuilder() + .setParent( + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AutoProtectionPolicyBinding element : + backupDRClient.listAutoProtectionPolicyBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsAutoprotectionpolicyname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsAutoprotectionpolicyname.java new file mode 100644 index 000000000000..3c5d517ab19d --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsAutoprotectionpolicyname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_Autoprotectionpolicyname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncListAutoProtectionPolicyBindingsAutoprotectionpolicyname { + + public static void main(String[] args) throws Exception { + syncListAutoProtectionPolicyBindingsAutoprotectionpolicyname(); + } + + public static void syncListAutoProtectionPolicyBindingsAutoprotectionpolicyname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyName parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]"); + for (AutoProtectionPolicyBinding element : + backupDRClient.listAutoProtectionPolicyBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_Autoprotectionpolicyname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsString.java new file mode 100644 index 000000000000..d3b7662f2311 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listautoprotectionpolicybindings/SyncListAutoProtectionPolicyBindingsString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBinding; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyName; +import com.google.cloud.backupdr.v1.BackupDRClient; + +public class SyncListAutoProtectionPolicyBindingsString { + + public static void main(String[] args) throws Exception { + syncListAutoProtectionPolicyBindingsString(); + } + + public static void syncListAutoProtectionPolicyBindingsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = + AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") + .toString(); + for (AutoProtectionPolicyBinding element : + backupDRClient.listAutoProtectionPolicyBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListAutoProtectionPolicyBindings_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResources.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResources.java new file mode 100644 index 000000000000..4cad053ca082 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResources.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListBindingMatchingResources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BindingMatchingResource; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; + +public class AsyncListBindingMatchingResources { + + public static void main(String[] args) throws Exception { + asyncListBindingMatchingResources(); + } + + public static void asyncListBindingMatchingResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListBindingMatchingResourcesRequest request = + ListBindingMatchingResourcesRequest.newBuilder() + .setParent( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + backupDRClient.listBindingMatchingResourcesPagedCallable().futureCall(request); + // Do something. + for (BindingMatchingResource element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListBindingMatchingResources_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResourcesPaged.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResourcesPaged.java new file mode 100644 index 000000000000..fb04730740f9 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/AsyncListBindingMatchingResourcesPaged.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListBindingMatchingResources_Paged_async] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BindingMatchingResource; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesResponse; +import com.google.common.base.Strings; + +public class AsyncListBindingMatchingResourcesPaged { + + public static void main(String[] args) throws Exception { + asyncListBindingMatchingResourcesPaged(); + } + + public static void asyncListBindingMatchingResourcesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListBindingMatchingResourcesRequest request = + ListBindingMatchingResourcesRequest.newBuilder() + .setParent( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListBindingMatchingResourcesResponse response = + backupDRClient.listBindingMatchingResourcesCallable().call(request); + for (BindingMatchingResource element : response.getMatchingResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListBindingMatchingResources_Paged_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResources.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResources.java new file mode 100644 index 000000000000..0341645016d2 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResources.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListBindingMatchingResources_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BindingMatchingResource; +import com.google.cloud.backupdr.v1.ListBindingMatchingResourcesRequest; + +public class SyncListBindingMatchingResources { + + public static void main(String[] args) throws Exception { + syncListBindingMatchingResources(); + } + + public static void syncListBindingMatchingResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + ListBindingMatchingResourcesRequest request = + ListBindingMatchingResourcesRequest.newBuilder() + .setParent( + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (BindingMatchingResource element : + backupDRClient.listBindingMatchingResources(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListBindingMatchingResources_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesAutoprotectionpolicybindingname.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesAutoprotectionpolicybindingname.java new file mode 100644 index 000000000000..9a03be370ae3 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesAutoprotectionpolicybindingname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListBindingMatchingResources_Autoprotectionpolicybindingname_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BindingMatchingResource; + +public class SyncListBindingMatchingResourcesAutoprotectionpolicybindingname { + + public static void main(String[] args) throws Exception { + syncListBindingMatchingResourcesAutoprotectionpolicybindingname(); + } + + public static void syncListBindingMatchingResourcesAutoprotectionpolicybindingname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicyBindingName parent = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]"); + for (BindingMatchingResource element : + backupDRClient.listBindingMatchingResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListBindingMatchingResources_Autoprotectionpolicybindingname_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesString.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesString.java new file mode 100644 index 000000000000..abd1612d1a2b --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/listbindingmatchingresources/SyncListBindingMatchingResourcesString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_ListBindingMatchingResources_String_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicyBindingName; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.BindingMatchingResource; + +public class SyncListBindingMatchingResourcesString { + + public static void main(String[] args) throws Exception { + syncListBindingMatchingResourcesString(); + } + + public static void syncListBindingMatchingResourcesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + String parent = + AutoProtectionPolicyBindingName.of( + "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") + .toString(); + for (BindingMatchingResource element : + backupDRClient.listBindingMatchingResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END backupdr_v1_generated_BackupDR_ListBindingMatchingResources_String_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java new file mode 100644 index 000000000000..820982feeac3 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAutoProtectionPolicy(); + } + + public static void asyncUpdateAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + UpdateAutoProtectionPolicyRequest request = + UpdateAutoProtectionPolicyRequest.newBuilder() + .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + backupDRClient.updateAutoProtectionPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java new file mode 100644 index 000000000000..c1fb27327c89 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.OperationMetadata; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAutoProtectionPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAutoProtectionPolicyLRO(); + } + + public static void asyncUpdateAutoProtectionPolicyLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + UpdateAutoProtectionPolicyRequest request = + UpdateAutoProtectionPolicyRequest.newBuilder() + .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + backupDRClient.updateAutoProtectionPolicyOperationCallable().futureCall(request); + // Do something. + AutoProtectionPolicy response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_LRO_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java new file mode 100644 index 000000000000..f14e16dbc168 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.UpdateAutoProtectionPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAutoProtectionPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAutoProtectionPolicy(); + } + + public static void syncUpdateAutoProtectionPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + UpdateAutoProtectionPolicyRequest request = + UpdateAutoProtectionPolicyRequest.newBuilder() + .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AutoProtectionPolicy response = backupDRClient.updateAutoProtectionPolicyAsync(request).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask.java new file mode 100644 index 000000000000..b8914ae82ffb --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_AutoprotectionpolicyFieldmask_sync] +import com.google.cloud.backupdr.v1.AutoProtectionPolicy; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask(); + } + + public static void syncUpdateAutoProtectionPolicyAutoprotectionpolicyFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + AutoProtectionPolicy autoProtectionPolicy = AutoProtectionPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AutoProtectionPolicy response = + backupDRClient.updateAutoProtectionPolicyAsync(autoProtectionPolicy, updateMask).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_UpdateAutoProtectionPolicy_AutoprotectionpolicyFieldmask_sync] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java index 13ea73764336..bd831331cd7c 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicy.java @@ -42,6 +42,7 @@ public static void asyncCreateAutoProtectionPolicy() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setRequestId("requestId693933066") .build(); ApiFuture future = backupDRClient.createAutoProtectionPolicyCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java index 1bbca74d14c7..6c0a3dd917b9 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/AsyncCreateAutoProtectionPolicyLRO.java @@ -42,6 +42,7 @@ public static void asyncCreateAutoProtectionPolicyLRO() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setRequestId("requestId693933066") .build(); OperationFuture future = backupDRClient.createAutoProtectionPolicyOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java index 5f2cf9cc2843..c958bde8376c 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicy/SyncCreateAutoProtectionPolicy.java @@ -40,6 +40,7 @@ public static void syncCreateAutoProtectionPolicy() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAutoProtectionPolicyId("autoProtectionPolicyId1759243253") .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) + .setRequestId("requestId693933066") .build(); AutoProtectionPolicy response = backupDRClient.createAutoProtectionPolicyAsync(request).get(); } diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java index 53b9e6596ae1..e67dbfeabc5b 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBinding.java @@ -44,6 +44,7 @@ public static void asyncCreateAutoProtectionPolicyBinding() throws Exception { .toString()) .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + .setRequestId("requestId693933066") .build(); ApiFuture future = backupDRClient.createAutoProtectionPolicyBindingCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java index 352c67d3a3f4..1417c04d25d1 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/AsyncCreateAutoProtectionPolicyBindingLRO.java @@ -44,6 +44,7 @@ public static void asyncCreateAutoProtectionPolicyBindingLRO() throws Exception .toString()) .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + .setRequestId("requestId693933066") .build(); OperationFuture future = backupDRClient.createAutoProtectionPolicyBindingOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java index 058e525b3375..3b9c5467e449 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/createautoprotectionpolicybinding/SyncCreateAutoProtectionPolicyBinding.java @@ -42,6 +42,7 @@ public static void syncCreateAutoProtectionPolicyBinding() throws Exception { .toString()) .setAutoProtectionPolicyBindingId("autoProtectionPolicyBindingId2122957414") .setAutoProtectionPolicyBinding(AutoProtectionPolicyBinding.newBuilder().build()) + .setRequestId("requestId693933066") .build(); AutoProtectionPolicyBinding response = backupDRClient.createAutoProtectionPolicyBindingAsync(request).get(); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java index bf80dbe435f9..90ed28de9848 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicy.java @@ -42,6 +42,7 @@ public static void asyncDeleteAutoProtectionPolicy() throws Exception { AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") .toString()) .setEtag("etag3123477") + .setRequestId("requestId693933066") .build(); ApiFuture future = backupDRClient.deleteAutoProtectionPolicyCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java index 1cf8ff8f6f05..577eb64f1285 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/AsyncDeleteAutoProtectionPolicyLRO.java @@ -43,6 +43,7 @@ public static void asyncDeleteAutoProtectionPolicyLRO() throws Exception { AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") .toString()) .setEtag("etag3123477") + .setRequestId("requestId693933066") .build(); OperationFuture future = backupDRClient.deleteAutoProtectionPolicyOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java index b2f9e8bb086e..b564f151dbf0 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/deleteautoprotectionpolicy/SyncDeleteAutoProtectionPolicy.java @@ -41,6 +41,7 @@ public static void syncDeleteAutoProtectionPolicy() throws Exception { AutoProtectionPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]") .toString()) .setEtag("etag3123477") + .setRequestId("requestId693933066") .build(); backupDRClient.deleteAutoProtectionPolicyAsync(request).get(); } diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java index 2c02baad0743..133e5e0620b1 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBinding.java @@ -42,6 +42,8 @@ public static void asyncInitiateDeleteAutoProtectionPolicyBinding() throws Excep AutoProtectionPolicyBindingName.of( "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") .build(); ApiFuture future = backupDRClient.initiateDeleteAutoProtectionPolicyBindingCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java index 7308a3dca811..1b418650dfc3 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/AsyncInitiateDeleteAutoProtectionPolicyBindingLRO.java @@ -43,6 +43,8 @@ public static void asyncInitiateDeleteAutoProtectionPolicyBindingLRO() throws Ex AutoProtectionPolicyBindingName.of( "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") .build(); OperationFuture future = backupDRClient diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java index 62e4b4827ca8..ee426bff9bbc 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/initiatedeleteautoprotectionpolicybinding/SyncInitiateDeleteAutoProtectionPolicyBinding.java @@ -41,6 +41,8 @@ public static void syncInitiateDeleteAutoProtectionPolicyBinding() throws Except AutoProtectionPolicyBindingName.of( "[PROJECT]", "[LOCATION]", "[AUTO_PROTECTION_POLICY]", "[BINDING]") .toString()) + .setEtag("etag3123477") + .setRequestId("requestId693933066") .build(); AutoProtectionPolicyBinding response = backupDRClient.initiateDeleteAutoProtectionPolicyBindingAsync(request).get(); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java index 5871dc051924..24657a76c368 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicy.java @@ -41,6 +41,7 @@ public static void asyncUpdateAutoProtectionPolicy() throws Exception { UpdateAutoProtectionPolicyRequest.newBuilder() .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") .build(); ApiFuture future = backupDRClient.updateAutoProtectionPolicyCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java index 96b3c9794c8f..1383aa865189 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/AsyncUpdateAutoProtectionPolicyLRO.java @@ -41,6 +41,7 @@ public static void asyncUpdateAutoProtectionPolicyLRO() throws Exception { UpdateAutoProtectionPolicyRequest.newBuilder() .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") .build(); OperationFuture future = backupDRClient.updateAutoProtectionPolicyOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java index bf8f6258e1b5..0140e3def777 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1beta/backupdr/updateautoprotectionpolicy/SyncUpdateAutoProtectionPolicy.java @@ -39,6 +39,7 @@ public static void syncUpdateAutoProtectionPolicy() throws Exception { UpdateAutoProtectionPolicyRequest.newBuilder() .setAutoProtectionPolicy(AutoProtectionPolicy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") .build(); AutoProtectionPolicy response = backupDRClient.updateAutoProtectionPolicyAsync(request).get(); } diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index e6eab3f877c5..67ec7fa1b797 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -1817,6 +1817,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.Citation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.Citation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CitedSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CitedSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CitedSource$Footer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CitedSource$Footer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CitedSource$Snippet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CitedSource$Snippet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.CompleteImportSpaceRequest", "queryAllDeclaredConstructors": true, @@ -2429,6 +2501,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.Elements", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.Elements$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ElementsImage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.ElementsImage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Emoji", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index 656ecb019c9f..ce6d11915a9e 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -121,6 +121,7 @@ public void createMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -196,6 +197,7 @@ public void createMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -563,6 +565,7 @@ public void getMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -634,6 +637,7 @@ public void getMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -705,6 +709,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -738,6 +743,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -797,6 +803,7 @@ public void updateMessageExceptionTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index 6e24a8cd21cb..9f8ed58440a2 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -124,6 +124,7 @@ public void createMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -195,6 +196,7 @@ public void createMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -522,6 +524,7 @@ public void getMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -587,6 +590,7 @@ public void getMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -652,6 +656,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setElements(Elements.newBuilder().build()) .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionStatusProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionStatusProto.java index e0c068bba98d..fc61de2c548a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionStatusProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ActionStatusProto.java @@ -54,19 +54,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\"google/chat/v1/action_status.proto\022\016go" - + "ogle.chat.v1\032\025google/rpc/code.proto\"R\n\014A" - + "ctionStatus\022%\n\013status_code\030\001 \001(\0162\020.googl" - + "e.rpc.Code\022\033\n\023user_facing_message\030\002 \001(\tB" - + "\252\001\n\022com.google.chat.v1B\021ActionStatusProt" - + "oP\001Z,cloud.google.com/go/chat/apiv1/chat" - + "pb;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Ch" - + "at.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Ap" - + "ps::Chat::V1b\006proto3" + + "ogle.chat.v1\032\037google/api/field_behavior." + + "proto\032\025google/rpc/code.proto\"R\n\014ActionSt" + + "atus\022%\n\013status_code\030\001 \001(\0162\020.google.rpc.C" + + "ode\022\033\n\023user_facing_message\030\002 \001(\tB\252\001\n\022com" + + ".google.chat.v1B\021ActionStatusProtoP\001Z,cl" + + "oud.google.com/go/chat/apiv1/chatpb;chat" + + "pb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002" + + "\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Cha" + + "t::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.rpc.CodeProto.getDescriptor(), }); internal_static_google_chat_v1_ActionStatus_descriptor = getDescriptor().getMessageType(0); @@ -77,6 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StatusCode", "UserFacingMessage", }); descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.rpc.CodeProto.getDescriptor(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Citation.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Citation.java new file mode 100644 index 000000000000..55a709babf03 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Citation.java @@ -0,0 +1,1205 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/citation.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Citations are inline references that can provide users more detailed
+ * information about the inline reference. Corresponding inline citations
+ * should be present in the message text in a markup format of
+ * `<chat-citation data-id="{id}">{text}</chat-citation>`. Citations are
+ * only supported when the message's `markup_syntax` is set to `MARKDOWN`.
+ *
+ * Unreferenced citations in `Elements.citations` (those without a matching
+ * `<chat-citation>` tag in the message text) are ignored and do not cause the
+ * message to be rejected.
+ * 
+ * + * Protobuf type {@code google.chat.v1.Citation} + */ +@com.google.protobuf.Generated +public final class Citation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.Citation) + CitationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Citation"); + } + + // Use Citation.newBuilder() to construct. + private Citation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Citation() { + id_ = ""; + citedSources_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitationProto.internal_static_google_chat_v1_Citation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitationProto + .internal_static_google_chat_v1_Citation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.Citation.class, com.google.chat.v1.Citation.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Required. The ID of the citation. This ID is defined by the app creating
+   * the citation and must match the `data-id` attribute of the
+   * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+   * and numbers, and less than 63 characters.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The ID of the citation. This ID is defined by the app creating
+   * the citation and must match the `data-id` attribute of the
+   * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+   * and numbers, and less than 63 characters.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CITED_SOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List citedSources_; + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCitedSourcesList() { + return citedSources_; + } + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCitedSourcesOrBuilderList() { + return citedSources_; + } + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCitedSourcesCount() { + return citedSources_.size(); + } + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitedSource getCitedSources(int index) { + return citedSources_.get(index); + } + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitedSourceOrBuilder getCitedSourcesOrBuilder(int index) { + return citedSources_.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.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + for (int i = 0; i < citedSources_.size(); i++) { + output.writeMessage(3, citedSources_.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.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + for (int i = 0; i < citedSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, citedSources_.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.google.chat.v1.Citation)) { + return super.equals(obj); + } + com.google.chat.v1.Citation other = (com.google.chat.v1.Citation) obj; + + if (!getId().equals(other.getId())) return false; + if (!getCitedSourcesList().equals(other.getCitedSourcesList())) 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 (getCitedSourcesCount() > 0) { + hash = (37 * hash) + CITED_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getCitedSourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.Citation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Citation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Citation parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Citation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Citation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Citation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Citation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Citation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.Citation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Citation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.Citation parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Citation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.Citation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Citations are inline references that can provide users more detailed
+   * information about the inline reference. Corresponding inline citations
+   * should be present in the message text in a markup format of
+   * `<chat-citation data-id="{id}">{text}</chat-citation>`. Citations are
+   * only supported when the message's `markup_syntax` is set to `MARKDOWN`.
+   *
+   * Unreferenced citations in `Elements.citations` (those without a matching
+   * `<chat-citation>` tag in the message text) are ignored and do not cause the
+   * message to be rejected.
+   * 
+ * + * Protobuf type {@code google.chat.v1.Citation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.Citation) + com.google.chat.v1.CitationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitationProto.internal_static_google_chat_v1_Citation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitationProto + .internal_static_google_chat_v1_Citation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.Citation.class, com.google.chat.v1.Citation.Builder.class); + } + + // Construct using com.google.chat.v1.Citation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + if (citedSourcesBuilder_ == null) { + citedSources_ = java.util.Collections.emptyList(); + } else { + citedSources_ = null; + citedSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.CitationProto.internal_static_google_chat_v1_Citation_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.Citation getDefaultInstanceForType() { + return com.google.chat.v1.Citation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.Citation build() { + com.google.chat.v1.Citation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.Citation buildPartial() { + com.google.chat.v1.Citation result = new com.google.chat.v1.Citation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.Citation result) { + if (citedSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + citedSources_ = java.util.Collections.unmodifiableList(citedSources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.citedSources_ = citedSources_; + } else { + result.citedSources_ = citedSourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.Citation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.Citation) { + return mergeFrom((com.google.chat.v1.Citation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.Citation other) { + if (other == com.google.chat.v1.Citation.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (citedSourcesBuilder_ == null) { + if (!other.citedSources_.isEmpty()) { + if (citedSources_.isEmpty()) { + citedSources_ = other.citedSources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCitedSourcesIsMutable(); + citedSources_.addAll(other.citedSources_); + } + onChanged(); + } + } else { + if (!other.citedSources_.isEmpty()) { + if (citedSourcesBuilder_.isEmpty()) { + citedSourcesBuilder_.dispose(); + citedSourcesBuilder_ = null; + citedSources_ = other.citedSources_; + bitField0_ = (bitField0_ & ~0x00000002); + citedSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitedSourcesFieldBuilder() + : null; + } else { + citedSourcesBuilder_.addAllMessages(other.citedSources_); + } + } + } + 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 26: + { + com.google.chat.v1.CitedSource m = + input.readMessage(com.google.chat.v1.CitedSource.parser(), extensionRegistry); + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.add(m); + } else { + citedSourcesBuilder_.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 java.lang.Object id_ = ""; + + /** + * + * + *
+     * Required. The ID of the citation. This ID is defined by the app creating
+     * the citation and must match the `data-id` attribute of the
+     * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+     * and numbers, and less than 63 characters.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The ID of the citation. This ID is defined by the app creating
+     * the citation and must match the `data-id` attribute of the
+     * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+     * and numbers, and less than 63 characters.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The ID of the citation. This ID is defined by the app creating
+     * the citation and must match the `data-id` attribute of the
+     * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+     * and numbers, and less than 63 characters.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. The ID of the citation. This ID is defined by the app creating
+     * the citation and must match the `data-id` attribute of the
+     * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+     * and numbers, and less than 63 characters.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the citation. This ID is defined by the app creating
+     * the citation and must match the `data-id` attribute of the
+     * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+     * and numbers, and less than 63 characters.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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.util.List citedSources_ = + java.util.Collections.emptyList(); + + private void ensureCitedSourcesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + citedSources_ = new java.util.ArrayList(citedSources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CitedSource, + com.google.chat.v1.CitedSource.Builder, + com.google.chat.v1.CitedSourceOrBuilder> + citedSourcesBuilder_; + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCitedSourcesList() { + if (citedSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(citedSources_); + } else { + return citedSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCitedSourcesCount() { + if (citedSourcesBuilder_ == null) { + return citedSources_.size(); + } else { + return citedSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource getCitedSources(int index) { + if (citedSourcesBuilder_ == null) { + return citedSources_.get(index); + } else { + return citedSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitedSources(int index, com.google.chat.v1.CitedSource value) { + if (citedSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSourcesIsMutable(); + citedSources_.set(index, value); + onChanged(); + } else { + citedSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitedSources( + int index, com.google.chat.v1.CitedSource.Builder builderForValue) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.set(index, builderForValue.build()); + onChanged(); + } else { + citedSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources(com.google.chat.v1.CitedSource value) { + if (citedSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSourcesIsMutable(); + citedSources_.add(value); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources(int index, com.google.chat.v1.CitedSource value) { + if (citedSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSourcesIsMutable(); + citedSources_.add(index, value); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources(com.google.chat.v1.CitedSource.Builder builderForValue) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.add(builderForValue.build()); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources( + int index, com.google.chat.v1.CitedSource.Builder builderForValue) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.add(index, builderForValue.build()); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCitedSources( + java.lang.Iterable values) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citedSources_); + onChanged(); + } else { + citedSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCitedSources() { + if (citedSourcesBuilder_ == null) { + citedSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + citedSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCitedSources(int index) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.remove(index); + onChanged(); + } else { + citedSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Builder getCitedSourcesBuilder(int index) { + return internalGetCitedSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSourceOrBuilder getCitedSourcesOrBuilder(int index) { + if (citedSourcesBuilder_ == null) { + return citedSources_.get(index); + } else { + return citedSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCitedSourcesOrBuilderList() { + if (citedSourcesBuilder_ != null) { + return citedSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citedSources_); + } + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Builder addCitedSourcesBuilder() { + return internalGetCitedSourcesFieldBuilder() + .addBuilder(com.google.chat.v1.CitedSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Builder addCitedSourcesBuilder(int index) { + return internalGetCitedSourcesFieldBuilder() + .addBuilder(index, com.google.chat.v1.CitedSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of sources that are relevant to the citation. Sources are
+     * displayed in the citation hover card.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCitedSourcesBuilderList() { + return internalGetCitedSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CitedSource, + com.google.chat.v1.CitedSource.Builder, + com.google.chat.v1.CitedSourceOrBuilder> + internalGetCitedSourcesFieldBuilder() { + if (citedSourcesBuilder_ == null) { + citedSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CitedSource, + com.google.chat.v1.CitedSource.Builder, + com.google.chat.v1.CitedSourceOrBuilder>( + citedSources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + citedSources_ = null; + } + return citedSourcesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.Citation) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.Citation) + private static final com.google.chat.v1.Citation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.Citation(); + } + + public static com.google.chat.v1.Citation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Citation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.Citation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationOrBuilder.java new file mode 100644 index 000000000000..35287bc57fd1 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/citation.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface CitationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.Citation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the citation. This ID is defined by the app creating
+   * the citation and must match the `data-id` attribute of the
+   * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+   * and numbers, and less than 63 characters.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Required. The ID of the citation. This ID is defined by the app creating
+   * the citation and must match the `data-id` attribute of the
+   * `<chat-citation>` tag in the message text. Must contain only ASCII letters
+   * and numbers, and less than 63 characters.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCitedSourcesList(); + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitedSource getCitedSources(int index); + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCitedSourcesCount(); + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCitedSourcesOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of sources that are relevant to the citation. Sources are
+   * displayed in the citation hover card.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitedSourceOrBuilder getCitedSourcesOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationProto.java new file mode 100644 index 000000000000..c066978a1c14 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitationProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/citation.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class CitationProto extends com.google.protobuf.GeneratedFile { + private CitationProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CitationProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_Citation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_Citation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\035google/chat/v1/citation.proto\022\016google." + + "chat.v1\032\037google/api/field_behavior.proto" + + "\032!google/chat/v1/cited_source.proto\"V\n\010C" + + "itation\022\020\n\002id\030\001 \001(\tB\004\342A\001\002\0228\n\rcited_sourc" + + "es\030\003 \003(\0132\033.google.chat.v1.CitedSourceB\004\342" + + "A\001\001B\230\001\n\022com.google.chat.v1B\rCitationProt" + + "oP\001Z,cloud.google.com/go/chat/apiv1/chat" + + "pb;chatpb\252\002\023Google.Apps.Chat.V1\312\002\023Google" + + "\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.chat.v1.CitedSourceProto.getDescriptor(), + }); + internal_static_google_chat_v1_Citation_descriptor = getDescriptor().getMessageType(0); + internal_static_google_chat_v1_Citation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_Citation_descriptor, + new java.lang.String[] { + "Id", "CitedSources", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.chat.v1.CitedSourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSource.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSource.java new file mode 100644 index 000000000000..07ae24ae7579 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSource.java @@ -0,0 +1,3056 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/cited_source.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * A reference to a source of information.
+ * 
+ * + * Protobuf type {@code google.chat.v1.CitedSource} + */ +@com.google.protobuf.Generated +public final class CitedSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.CitedSource) + CitedSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CitedSource"); + } + + // Use CitedSource.newBuilder() to construct. + private CitedSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CitedSource() { + title_ = ""; + uri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CitedSource.class, com.google.chat.v1.CitedSource.Builder.class); + } + + public interface SnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.CitedSource.Snippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. A short plaintext excerpt directly from the corpus that is
+     * rendered in the citation hover card or source preview. When footer
+     * sources are automatically populated from inline `citations` (because
+     * `Elements.cited_sources` is not set), snippets are omitted from the
+     * deduplicated footer sources. Does not support markdown format, and must
+     * not exceed 1,000 characters.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+     * Optional. A short plaintext excerpt directly from the corpus that is
+     * rendered in the citation hover card or source preview. When footer
+     * sources are automatically populated from inline `citations` (because
+     * `Elements.cited_sources` is not set), snippets are omitted from the
+     * deduplicated footer sources. Does not support markdown format, and must
+     * not exceed 1,000 characters.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+     * Optional. Image preview of the snippet provided as an input when creating
+     * the citation.
+     * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imagePreview field is set. + */ + boolean hasImagePreview(); + + /** + * + * + *
+     * Optional. Image preview of the snippet provided as an input when creating
+     * the citation.
+     * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imagePreview. + */ + com.google.chat.v1.ElementsImage getImagePreview(); + + /** + * + * + *
+     * Optional. Image preview of the snippet provided as an input when creating
+     * the citation.
+     * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.ElementsImageOrBuilder getImagePreviewOrBuilder(); + } + + /** + * + * + *
+   * A snippet object representing an excerpt from a larger corpus.
+   * 
+ * + * Protobuf type {@code google.chat.v1.CitedSource.Snippet} + */ + public static final class Snippet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.CitedSource.Snippet) + SnippetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Snippet"); + } + + // Use Snippet.newBuilder() to construct. + private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Snippet() { + text_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CitedSource.Snippet.class, + com.google.chat.v1.CitedSource.Snippet.Builder.class); + } + + private int bitField0_; + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
+     * Optional. A short plaintext excerpt directly from the corpus that is
+     * rendered in the citation hover card or source preview. When footer
+     * sources are automatically populated from inline `citations` (because
+     * `Elements.cited_sources` is not set), snippets are omitted from the
+     * deduplicated footer sources. Does not support markdown format, and must
+     * not exceed 1,000 characters.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. A short plaintext excerpt directly from the corpus that is
+     * rendered in the citation hover card or source preview. When footer
+     * sources are automatically populated from inline `citations` (because
+     * `Elements.cited_sources` is not set), snippets are omitted from the
+     * deduplicated footer sources. Does not support markdown format, and must
+     * not exceed 1,000 characters.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_PREVIEW_FIELD_NUMBER = 2; + private com.google.chat.v1.ElementsImage imagePreview_; + + /** + * + * + *
+     * Optional. Image preview of the snippet provided as an input when creating
+     * the citation.
+     * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imagePreview field is set. + */ + @java.lang.Override + public boolean hasImagePreview() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Image preview of the snippet provided as an input when creating
+     * the citation.
+     * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imagePreview. + */ + @java.lang.Override + public com.google.chat.v1.ElementsImage getImagePreview() { + return imagePreview_ == null + ? com.google.chat.v1.ElementsImage.getDefaultInstance() + : imagePreview_; + } + + /** + * + * + *
+     * Optional. Image preview of the snippet provided as an input when creating
+     * the citation.
+     * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.ElementsImageOrBuilder getImagePreviewOrBuilder() { + return imagePreview_ == null + ? com.google.chat.v1.ElementsImage.getDefaultInstance() + : imagePreview_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getImagePreview()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getImagePreview()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.CitedSource.Snippet)) { + return super.equals(obj); + } + com.google.chat.v1.CitedSource.Snippet other = (com.google.chat.v1.CitedSource.Snippet) obj; + + if (!getText().equals(other.getText())) return false; + if (hasImagePreview() != other.hasImagePreview()) return false; + if (hasImagePreview()) { + if (!getImagePreview().equals(other.getImagePreview())) 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) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + if (hasImagePreview()) { + hash = (37 * hash) + IMAGE_PREVIEW_FIELD_NUMBER; + hash = (53 * hash) + getImagePreview().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Snippet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource.Snippet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource.Snippet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.CitedSource.Snippet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A snippet object representing an excerpt from a larger corpus.
+     * 
+ * + * Protobuf type {@code google.chat.v1.CitedSource.Snippet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.CitedSource.Snippet) + com.google.chat.v1.CitedSource.SnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CitedSource.Snippet.class, + com.google.chat.v1.CitedSource.Snippet.Builder.class); + } + + // Construct using com.google.chat.v1.CitedSource.Snippet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetImagePreviewFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + imagePreview_ = null; + if (imagePreviewBuilder_ != null) { + imagePreviewBuilder_.dispose(); + imagePreviewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Snippet_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Snippet getDefaultInstanceForType() { + return com.google.chat.v1.CitedSource.Snippet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Snippet build() { + com.google.chat.v1.CitedSource.Snippet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Snippet buildPartial() { + com.google.chat.v1.CitedSource.Snippet result = + new com.google.chat.v1.CitedSource.Snippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.CitedSource.Snippet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.imagePreview_ = + imagePreviewBuilder_ == null ? imagePreview_ : imagePreviewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.CitedSource.Snippet) { + return mergeFrom((com.google.chat.v1.CitedSource.Snippet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.CitedSource.Snippet other) { + if (other == com.google.chat.v1.CitedSource.Snippet.getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasImagePreview()) { + mergeImagePreview(other.getImagePreview()); + } + 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: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetImagePreviewFieldBuilder().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 text_ = ""; + + /** + * + * + *
+       * Optional. A short plaintext excerpt directly from the corpus that is
+       * rendered in the citation hover card or source preview. When footer
+       * sources are automatically populated from inline `citations` (because
+       * `Elements.cited_sources` is not set), snippets are omitted from the
+       * deduplicated footer sources. Does not support markdown format, and must
+       * not exceed 1,000 characters.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. A short plaintext excerpt directly from the corpus that is
+       * rendered in the citation hover card or source preview. When footer
+       * sources are automatically populated from inline `citations` (because
+       * `Elements.cited_sources` is not set), snippets are omitted from the
+       * deduplicated footer sources. Does not support markdown format, and must
+       * not exceed 1,000 characters.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. A short plaintext excerpt directly from the corpus that is
+       * rendered in the citation hover card or source preview. When footer
+       * sources are automatically populated from inline `citations` (because
+       * `Elements.cited_sources` is not set), snippets are omitted from the
+       * deduplicated footer sources. Does not support markdown format, and must
+       * not exceed 1,000 characters.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A short plaintext excerpt directly from the corpus that is
+       * rendered in the citation hover card or source preview. When footer
+       * sources are automatically populated from inline `citations` (because
+       * `Elements.cited_sources` is not set), snippets are omitted from the
+       * deduplicated footer sources. Does not support markdown format, and must
+       * not exceed 1,000 characters.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A short plaintext excerpt directly from the corpus that is
+       * rendered in the citation hover card or source preview. When footer
+       * sources are automatically populated from inline `citations` (because
+       * `Elements.cited_sources` is not set), snippets are omitted from the
+       * deduplicated footer sources. Does not support markdown format, and must
+       * not exceed 1,000 characters.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.chat.v1.ElementsImage imagePreview_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ElementsImage, + com.google.chat.v1.ElementsImage.Builder, + com.google.chat.v1.ElementsImageOrBuilder> + imagePreviewBuilder_; + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imagePreview field is set. + */ + public boolean hasImagePreview() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imagePreview. + */ + public com.google.chat.v1.ElementsImage getImagePreview() { + if (imagePreviewBuilder_ == null) { + return imagePreview_ == null + ? com.google.chat.v1.ElementsImage.getDefaultInstance() + : imagePreview_; + } else { + return imagePreviewBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImagePreview(com.google.chat.v1.ElementsImage value) { + if (imagePreviewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imagePreview_ = value; + } else { + imagePreviewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImagePreview(com.google.chat.v1.ElementsImage.Builder builderForValue) { + if (imagePreviewBuilder_ == null) { + imagePreview_ = builderForValue.build(); + } else { + imagePreviewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeImagePreview(com.google.chat.v1.ElementsImage value) { + if (imagePreviewBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && imagePreview_ != null + && imagePreview_ != com.google.chat.v1.ElementsImage.getDefaultInstance()) { + getImagePreviewBuilder().mergeFrom(value); + } else { + imagePreview_ = value; + } + } else { + imagePreviewBuilder_.mergeFrom(value); + } + if (imagePreview_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImagePreview() { + bitField0_ = (bitField0_ & ~0x00000002); + imagePreview_ = null; + if (imagePreviewBuilder_ != null) { + imagePreviewBuilder_.dispose(); + imagePreviewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.ElementsImage.Builder getImagePreviewBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetImagePreviewFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.ElementsImageOrBuilder getImagePreviewOrBuilder() { + if (imagePreviewBuilder_ != null) { + return imagePreviewBuilder_.getMessageOrBuilder(); + } else { + return imagePreview_ == null + ? com.google.chat.v1.ElementsImage.getDefaultInstance() + : imagePreview_; + } + } + + /** + * + * + *
+       * Optional. Image preview of the snippet provided as an input when creating
+       * the citation.
+       * 
+ * + * + * .google.chat.v1.ElementsImage image_preview = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ElementsImage, + com.google.chat.v1.ElementsImage.Builder, + com.google.chat.v1.ElementsImageOrBuilder> + internalGetImagePreviewFieldBuilder() { + if (imagePreviewBuilder_ == null) { + imagePreviewBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ElementsImage, + com.google.chat.v1.ElementsImage.Builder, + com.google.chat.v1.ElementsImageOrBuilder>( + getImagePreview(), getParentForChildren(), isClean()); + imagePreview_ = null; + } + return imagePreviewBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.CitedSource.Snippet) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.CitedSource.Snippet) + private static final com.google.chat.v1.CitedSource.Snippet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.CitedSource.Snippet(); + } + + public static com.google.chat.v1.CitedSource.Snippet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Snippet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FooterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.CitedSource.Footer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The plaintext to display in the footer. Does not support
+     * markdown format.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+     * Optional. The plaintext to display in the footer. Does not support
+     * markdown format.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + } + + /** + * + * + *
+   * A footer for a source, used for attribution.
+   * 
+ * + * Protobuf type {@code google.chat.v1.CitedSource.Footer} + */ + public static final class Footer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.CitedSource.Footer) + FooterOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Footer"); + } + + // Use Footer.newBuilder() to construct. + private Footer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Footer() { + text_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Footer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Footer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CitedSource.Footer.class, + com.google.chat.v1.CitedSource.Footer.Builder.class); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
+     * Optional. The plaintext to display in the footer. Does not support
+     * markdown format.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The plaintext to display in the footer. Does not support
+     * markdown format.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.CitedSource.Footer)) { + return super.equals(obj); + } + com.google.chat.v1.CitedSource.Footer other = (com.google.chat.v1.CitedSource.Footer) obj; + + if (!getText().equals(other.getText())) 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) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Footer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource.Footer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource.Footer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.CitedSource.Footer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A footer for a source, used for attribution.
+     * 
+ * + * Protobuf type {@code google.chat.v1.CitedSource.Footer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.CitedSource.Footer) + com.google.chat.v1.CitedSource.FooterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Footer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Footer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CitedSource.Footer.class, + com.google.chat.v1.CitedSource.Footer.Builder.class); + } + + // Construct using com.google.chat.v1.CitedSource.Footer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_Footer_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Footer getDefaultInstanceForType() { + return com.google.chat.v1.CitedSource.Footer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Footer build() { + com.google.chat.v1.CitedSource.Footer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Footer buildPartial() { + com.google.chat.v1.CitedSource.Footer result = + new com.google.chat.v1.CitedSource.Footer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.CitedSource.Footer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.CitedSource.Footer) { + return mergeFrom((com.google.chat.v1.CitedSource.Footer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.CitedSource.Footer other) { + if (other == com.google.chat.v1.CitedSource.Footer.getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + 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: + { + text_ = 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 text_ = ""; + + /** + * + * + *
+       * Optional. The plaintext to display in the footer. Does not support
+       * markdown format.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The plaintext to display in the footer. Does not support
+       * markdown format.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The plaintext to display in the footer. Does not support
+       * markdown format.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The plaintext to display in the footer. Does not support
+       * markdown format.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The plaintext to display in the footer. Does not support
+       * markdown format.
+       * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.CitedSource.Footer) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.CitedSource.Footer) + private static final com.google.chat.v1.CitedSource.Footer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.CitedSource.Footer(); + } + + public static com.google.chat.v1.CitedSource.Footer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Footer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource.Footer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Required. The plaintext title of the `CitedSource`. Does not support
+   * markdown format.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The plaintext title of the `CitedSource`. Does not support
+   * markdown format.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Required. The URI pointing to the resource referenced by this
+   * `CitedSource`.
+   * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The URI pointing to the resource referenced by this
+   * `CitedSource`.
+   * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNIPPET_FIELD_NUMBER = 3; + private com.google.chat.v1.CitedSource.Snippet snippet_; + + /** + * + * + *
+   * Optional. Snippet containing information directly from the source.
+   * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippet field is set. + */ + @java.lang.Override + public boolean hasSnippet() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Snippet containing information directly from the source.
+   * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippet. + */ + @java.lang.Override + public com.google.chat.v1.CitedSource.Snippet getSnippet() { + return snippet_ == null + ? com.google.chat.v1.CitedSource.Snippet.getDefaultInstance() + : snippet_; + } + + /** + * + * + *
+   * Optional. Snippet containing information directly from the source.
+   * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitedSource.SnippetOrBuilder getSnippetOrBuilder() { + return snippet_ == null + ? com.google.chat.v1.CitedSource.Snippet.getDefaultInstance() + : snippet_; + } + + public static final int FOOTER_FIELD_NUMBER = 5; + private com.google.chat.v1.CitedSource.Footer footer_; + + /** + * + * + *
+   * Optional. Additional information to show alongside the snippet in the form
+   * of a footer.
+   * 
+ * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the footer field is set. + */ + @java.lang.Override + public boolean hasFooter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Additional information to show alongside the snippet in the form
+   * of a footer.
+   * 
+ * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The footer. + */ + @java.lang.Override + public com.google.chat.v1.CitedSource.Footer getFooter() { + return footer_ == null ? com.google.chat.v1.CitedSource.Footer.getDefaultInstance() : footer_; + } + + /** + * + * + *
+   * Optional. Additional information to show alongside the snippet in the form
+   * of a footer.
+   * 
+ * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitedSource.FooterOrBuilder getFooterOrBuilder() { + return footer_ == null ? com.google.chat.v1.CitedSource.Footer.getDefaultInstance() : footer_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSnippet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getFooter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnippet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFooter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.CitedSource)) { + return super.equals(obj); + } + com.google.chat.v1.CitedSource other = (com.google.chat.v1.CitedSource) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getUri().equals(other.getUri())) return false; + if (hasSnippet() != other.hasSnippet()) return false; + if (hasSnippet()) { + if (!getSnippet().equals(other.getSnippet())) return false; + } + if (hasFooter() != other.hasFooter()) return false; + if (hasFooter()) { + if (!getFooter().equals(other.getFooter())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasSnippet()) { + hash = (37 * hash) + SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSnippet().hashCode(); + } + if (hasFooter()) { + hash = (37 * hash) + FOOTER_FIELD_NUMBER; + hash = (53 * hash) + getFooter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.CitedSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CitedSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CitedSource parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CitedSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.CitedSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A reference to a source of information.
+   * 
+ * + * Protobuf type {@code google.chat.v1.CitedSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.CitedSource) + com.google.chat.v1.CitedSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CitedSource.class, com.google.chat.v1.CitedSource.Builder.class); + } + + // Construct using com.google.chat.v1.CitedSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetFieldBuilder(); + internalGetFooterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + uri_ = ""; + snippet_ = null; + if (snippetBuilder_ != null) { + snippetBuilder_.dispose(); + snippetBuilder_ = null; + } + footer_ = null; + if (footerBuilder_ != null) { + footerBuilder_.dispose(); + footerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.CitedSourceProto + .internal_static_google_chat_v1_CitedSource_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource getDefaultInstanceForType() { + return com.google.chat.v1.CitedSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.CitedSource build() { + com.google.chat.v1.CitedSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource buildPartial() { + com.google.chat.v1.CitedSource result = new com.google.chat.v1.CitedSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.CitedSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snippet_ = snippetBuilder_ == null ? snippet_ : snippetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.footer_ = footerBuilder_ == null ? footer_ : footerBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.CitedSource) { + return mergeFrom((com.google.chat.v1.CitedSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.CitedSource other) { + if (other == com.google.chat.v1.CitedSource.getDefaultInstance()) return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSnippet()) { + mergeSnippet(other.getSnippet()); + } + if (other.hasFooter()) { + mergeFooter(other.getFooter()); + } + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetSnippetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + input.readMessage(internalGetFooterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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 title_ = ""; + + /** + * + * + *
+     * Required. The plaintext title of the `CitedSource`. Does not support
+     * markdown format.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The plaintext title of the `CitedSource`. Does not support
+     * markdown format.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The plaintext title of the `CitedSource`. Does not support
+     * markdown format.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The plaintext title of the `CitedSource`. Does not support
+     * markdown format.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The plaintext title of the `CitedSource`. Does not support
+     * markdown format.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+     * Required. The URI pointing to the resource referenced by this
+     * `CitedSource`.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The URI pointing to the resource referenced by this
+     * `CitedSource`.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The URI pointing to the resource referenced by this
+     * `CitedSource`.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The URI pointing to the resource referenced by this
+     * `CitedSource`.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The URI pointing to the resource referenced by this
+     * `CitedSource`.
+     * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.chat.v1.CitedSource.Snippet snippet_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CitedSource.Snippet, + com.google.chat.v1.CitedSource.Snippet.Builder, + com.google.chat.v1.CitedSource.SnippetOrBuilder> + snippetBuilder_; + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippet field is set. + */ + public boolean hasSnippet() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippet. + */ + public com.google.chat.v1.CitedSource.Snippet getSnippet() { + if (snippetBuilder_ == null) { + return snippet_ == null + ? com.google.chat.v1.CitedSource.Snippet.getDefaultInstance() + : snippet_; + } else { + return snippetBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSnippet(com.google.chat.v1.CitedSource.Snippet value) { + if (snippetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snippet_ = value; + } else { + snippetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSnippet(com.google.chat.v1.CitedSource.Snippet.Builder builderForValue) { + if (snippetBuilder_ == null) { + snippet_ = builderForValue.build(); + } else { + snippetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSnippet(com.google.chat.v1.CitedSource.Snippet value) { + if (snippetBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && snippet_ != null + && snippet_ != com.google.chat.v1.CitedSource.Snippet.getDefaultInstance()) { + getSnippetBuilder().mergeFrom(value); + } else { + snippet_ = value; + } + } else { + snippetBuilder_.mergeFrom(value); + } + if (snippet_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSnippet() { + bitField0_ = (bitField0_ & ~0x00000004); + snippet_ = null; + if (snippetBuilder_ != null) { + snippetBuilder_.dispose(); + snippetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Snippet.Builder getSnippetBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSnippetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.SnippetOrBuilder getSnippetOrBuilder() { + if (snippetBuilder_ != null) { + return snippetBuilder_.getMessageOrBuilder(); + } else { + return snippet_ == null + ? com.google.chat.v1.CitedSource.Snippet.getDefaultInstance() + : snippet_; + } + } + + /** + * + * + *
+     * Optional. Snippet containing information directly from the source.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CitedSource.Snippet, + com.google.chat.v1.CitedSource.Snippet.Builder, + com.google.chat.v1.CitedSource.SnippetOrBuilder> + internalGetSnippetFieldBuilder() { + if (snippetBuilder_ == null) { + snippetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CitedSource.Snippet, + com.google.chat.v1.CitedSource.Snippet.Builder, + com.google.chat.v1.CitedSource.SnippetOrBuilder>( + getSnippet(), getParentForChildren(), isClean()); + snippet_ = null; + } + return snippetBuilder_; + } + + private com.google.chat.v1.CitedSource.Footer footer_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CitedSource.Footer, + com.google.chat.v1.CitedSource.Footer.Builder, + com.google.chat.v1.CitedSource.FooterOrBuilder> + footerBuilder_; + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the footer field is set. + */ + public boolean hasFooter() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The footer. + */ + public com.google.chat.v1.CitedSource.Footer getFooter() { + if (footerBuilder_ == null) { + return footer_ == null + ? com.google.chat.v1.CitedSource.Footer.getDefaultInstance() + : footer_; + } else { + return footerBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFooter(com.google.chat.v1.CitedSource.Footer value) { + if (footerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + footer_ = value; + } else { + footerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFooter(com.google.chat.v1.CitedSource.Footer.Builder builderForValue) { + if (footerBuilder_ == null) { + footer_ = builderForValue.build(); + } else { + footerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFooter(com.google.chat.v1.CitedSource.Footer value) { + if (footerBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && footer_ != null + && footer_ != com.google.chat.v1.CitedSource.Footer.getDefaultInstance()) { + getFooterBuilder().mergeFrom(value); + } else { + footer_ = value; + } + } else { + footerBuilder_.mergeFrom(value); + } + if (footer_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFooter() { + bitField0_ = (bitField0_ & ~0x00000008); + footer_ = null; + if (footerBuilder_ != null) { + footerBuilder_.dispose(); + footerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Footer.Builder getFooterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetFooterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.FooterOrBuilder getFooterOrBuilder() { + if (footerBuilder_ != null) { + return footerBuilder_.getMessageOrBuilder(); + } else { + return footer_ == null + ? com.google.chat.v1.CitedSource.Footer.getDefaultInstance() + : footer_; + } + } + + /** + * + * + *
+     * Optional. Additional information to show alongside the snippet in the form
+     * of a footer.
+     * 
+ * + * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CitedSource.Footer, + com.google.chat.v1.CitedSource.Footer.Builder, + com.google.chat.v1.CitedSource.FooterOrBuilder> + internalGetFooterFieldBuilder() { + if (footerBuilder_ == null) { + footerBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.CitedSource.Footer, + com.google.chat.v1.CitedSource.Footer.Builder, + com.google.chat.v1.CitedSource.FooterOrBuilder>( + getFooter(), getParentForChildren(), isClean()); + footer_ = null; + } + return footerBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.CitedSource) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.CitedSource) + private static final com.google.chat.v1.CitedSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.CitedSource(); + } + + public static com.google.chat.v1.CitedSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CitedSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.CitedSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceOrBuilder.java new file mode 100644 index 000000000000..229cde0dcbac --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/cited_source.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface CitedSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.CitedSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The plaintext title of the `CitedSource`. Does not support
+   * markdown format.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Required. The plaintext title of the `CitedSource`. Does not support
+   * markdown format.
+   * 
+ * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Required. The URI pointing to the resource referenced by this
+   * `CitedSource`.
+   * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Required. The URI pointing to the resource referenced by this
+   * `CitedSource`.
+   * 
+ * + * string uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional. Snippet containing information directly from the source.
+   * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippet field is set. + */ + boolean hasSnippet(); + + /** + * + * + *
+   * Optional. Snippet containing information directly from the source.
+   * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippet. + */ + com.google.chat.v1.CitedSource.Snippet getSnippet(); + + /** + * + * + *
+   * Optional. Snippet containing information directly from the source.
+   * 
+ * + * + * .google.chat.v1.CitedSource.Snippet snippet = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitedSource.SnippetOrBuilder getSnippetOrBuilder(); + + /** + * + * + *
+   * Optional. Additional information to show alongside the snippet in the form
+   * of a footer.
+   * 
+ * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the footer field is set. + */ + boolean hasFooter(); + + /** + * + * + *
+   * Optional. Additional information to show alongside the snippet in the form
+   * of a footer.
+   * 
+ * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The footer. + */ + com.google.chat.v1.CitedSource.Footer getFooter(); + + /** + * + * + *
+   * Optional. Additional information to show alongside the snippet in the form
+   * of a footer.
+   * 
+ * + * .google.chat.v1.CitedSource.Footer footer = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitedSource.FooterOrBuilder getFooterOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceProto.java new file mode 100644 index 000000000000..838a2d32d145 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CitedSourceProto.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/cited_source.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class CitedSourceProto extends com.google.protobuf.GeneratedFile { + private CitedSourceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CitedSourceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_CitedSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_CitedSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_CitedSource_Snippet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_CitedSource_Snippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_CitedSource_Footer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_CitedSource_Footer_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "!google/chat/v1/cited_source.proto\022\016goo" + + "gle.chat.v1\032\037google/api/field_behavior.p" + + "roto\032$google/chat/v1/elements_common.proto\"\244\002\n" + + "\013CitedSource\022\023\n" + + "\005title\030\001 \001(\tB\004\342A\001\002\022\021\n" + + "\003uri\030\002 \001(\tB\004\342A\001\002\022:\n" + + "\007snippet\030\003 \001(\0132#.go" + + "ogle.chat.v1.CitedSource.SnippetB\004\342A\001\001\0228\n" + + "\006footer\030\005" + + " \001(\0132\".google.chat.v1.CitedSource.FooterB\004\342A\001\001\032Y\n" + + "\007Snippet\022\022\n" + + "\004text\030\001 \001(\tB\004\342A\001\001\022:\n\r" + + "image_preview\030\002" + + " \001(\0132\035.google.chat.v1.ElementsImageB\004\342A\001\001\032\034\n" + + "\006Footer\022\022\n" + + "\004text\030\001 \001(\tB\004\342A\001\001B\233\001\n" + + "\022com.google.chat.v1B\020CitedSourceProtoP\001Z,cloud.google.com/g" + + "o/chat/apiv1/chatpb;chatpb\252\002\023Google.Apps" + + ".Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google:" + + ":Apps::Chat::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.chat.v1.ElementsCommonProto.getDescriptor(), + }); + internal_static_google_chat_v1_CitedSource_descriptor = getDescriptor().getMessageType(0); + internal_static_google_chat_v1_CitedSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_CitedSource_descriptor, + new java.lang.String[] { + "Title", "Uri", "Snippet", "Footer", + }); + internal_static_google_chat_v1_CitedSource_Snippet_descriptor = + internal_static_google_chat_v1_CitedSource_descriptor.getNestedType(0); + internal_static_google_chat_v1_CitedSource_Snippet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_CitedSource_Snippet_descriptor, + new java.lang.String[] { + "Text", "ImagePreview", + }); + internal_static_google_chat_v1_CitedSource_Footer_descriptor = + internal_static_google_chat_v1_CitedSource_descriptor.getNestedType(1); + internal_static_google_chat_v1_CitedSource_Footer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_CitedSource_Footer_descriptor, + new java.lang.String[] { + "Text", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.chat.v1.ElementsCommonProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index 742e9bdf2450..fc9eac63c4af 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { *
* * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return The threadKey. */ @java.lang.Override @@ -432,7 +432,7 @@ public java.lang.String getThreadKey() { *
* * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return The bytes for threadKey. */ @java.lang.Override @@ -1573,7 +1573,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return The threadKey. */ @java.lang.Deprecated @@ -1606,7 +1606,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1639,7 +1639,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1671,7 +1671,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1699,7 +1699,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index aad8694f1d4b..4a6ba38f5f61 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return The threadKey. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=637 + * google/chat/v1/message.proto;l=654 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Elements.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Elements.java new file mode 100644 index 000000000000..378d44adde75 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Elements.java @@ -0,0 +1,1612 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/elements.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Elements are additional message components,
+ * including inline `citations` (where each citation is associated with a
+ * specific portion of the message text) and `cited_sources` (which are general
+ * references used to generate the response and are not directly linked to
+ * specific segments of the text). Both `citations` and `cited_sources` can be
+ * provided as input when creating or updating a message and are populated on
+ * output when reading a message.
+ * 
+ * + * Protobuf type {@code google.chat.v1.Elements} + */ +@com.google.protobuf.Generated +public final class Elements extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.Elements) + ElementsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Elements"); + } + + // Use Elements.newBuilder() to construct. + private Elements(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Elements() { + citedSources_ = java.util.Collections.emptyList(); + citations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ElementsProto.internal_static_google_chat_v1_Elements_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ElementsProto + .internal_static_google_chat_v1_Elements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.Elements.class, com.google.chat.v1.Elements.Builder.class); + } + + public static final int CITED_SOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List citedSources_; + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCitedSourcesList() { + return citedSources_; + } + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCitedSourcesOrBuilderList() { + return citedSources_; + } + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCitedSourcesCount() { + return citedSources_.size(); + } + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitedSource getCitedSources(int index) { + return citedSources_.get(index); + } + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitedSourceOrBuilder getCitedSourcesOrBuilder(int index) { + return citedSources_.get(index); + } + + public static final int CITATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List citations_; + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCitationsList() { + return citations_; + } + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCitationsOrBuilderList() { + return citations_; + } + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCitationsCount() { + return citations_.size(); + } + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.Citation getCitations(int index) { + return citations_.get(index); + } + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CitationOrBuilder getCitationsOrBuilder(int index) { + return citations_.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 < citedSources_.size(); i++) { + output.writeMessage(1, citedSources_.get(i)); + } + for (int i = 0; i < citations_.size(); i++) { + output.writeMessage(2, citations_.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 < citedSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, citedSources_.get(i)); + } + for (int i = 0; i < citations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, citations_.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.google.chat.v1.Elements)) { + return super.equals(obj); + } + com.google.chat.v1.Elements other = (com.google.chat.v1.Elements) obj; + + if (!getCitedSourcesList().equals(other.getCitedSourcesList())) return false; + if (!getCitationsList().equals(other.getCitationsList())) 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 (getCitedSourcesCount() > 0) { + hash = (37 * hash) + CITED_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getCitedSourcesList().hashCode(); + } + if (getCitationsCount() > 0) { + hash = (37 * hash) + CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCitationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.Elements parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Elements parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Elements parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Elements parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Elements parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.Elements parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.Elements parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Elements parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.Elements parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Elements parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.Elements parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.Elements parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.Elements prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Elements are additional message components,
+   * including inline `citations` (where each citation is associated with a
+   * specific portion of the message text) and `cited_sources` (which are general
+   * references used to generate the response and are not directly linked to
+   * specific segments of the text). Both `citations` and `cited_sources` can be
+   * provided as input when creating or updating a message and are populated on
+   * output when reading a message.
+   * 
+ * + * Protobuf type {@code google.chat.v1.Elements} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.Elements) + com.google.chat.v1.ElementsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ElementsProto.internal_static_google_chat_v1_Elements_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ElementsProto + .internal_static_google_chat_v1_Elements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.Elements.class, com.google.chat.v1.Elements.Builder.class); + } + + // Construct using com.google.chat.v1.Elements.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (citedSourcesBuilder_ == null) { + citedSources_ = java.util.Collections.emptyList(); + } else { + citedSources_ = null; + citedSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + } else { + citations_ = null; + citationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.ElementsProto.internal_static_google_chat_v1_Elements_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.Elements getDefaultInstanceForType() { + return com.google.chat.v1.Elements.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.Elements build() { + com.google.chat.v1.Elements result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.Elements buildPartial() { + com.google.chat.v1.Elements result = new com.google.chat.v1.Elements(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.Elements result) { + if (citedSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + citedSources_ = java.util.Collections.unmodifiableList(citedSources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.citedSources_ = citedSources_; + } else { + result.citedSources_ = citedSourcesBuilder_.build(); + } + if (citationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + citations_ = java.util.Collections.unmodifiableList(citations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.citations_ = citations_; + } else { + result.citations_ = citationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.Elements result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.Elements) { + return mergeFrom((com.google.chat.v1.Elements) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.Elements other) { + if (other == com.google.chat.v1.Elements.getDefaultInstance()) return this; + if (citedSourcesBuilder_ == null) { + if (!other.citedSources_.isEmpty()) { + if (citedSources_.isEmpty()) { + citedSources_ = other.citedSources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCitedSourcesIsMutable(); + citedSources_.addAll(other.citedSources_); + } + onChanged(); + } + } else { + if (!other.citedSources_.isEmpty()) { + if (citedSourcesBuilder_.isEmpty()) { + citedSourcesBuilder_.dispose(); + citedSourcesBuilder_ = null; + citedSources_ = other.citedSources_; + bitField0_ = (bitField0_ & ~0x00000001); + citedSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitedSourcesFieldBuilder() + : null; + } else { + citedSourcesBuilder_.addAllMessages(other.citedSources_); + } + } + } + if (citationsBuilder_ == null) { + if (!other.citations_.isEmpty()) { + if (citations_.isEmpty()) { + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCitationsIsMutable(); + citations_.addAll(other.citations_); + } + onChanged(); + } + } else { + if (!other.citations_.isEmpty()) { + if (citationsBuilder_.isEmpty()) { + citationsBuilder_.dispose(); + citationsBuilder_ = null; + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000002); + citationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitationsFieldBuilder() + : null; + } else { + citationsBuilder_.addAllMessages(other.citations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.CitedSource m = + input.readMessage(com.google.chat.v1.CitedSource.parser(), extensionRegistry); + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.add(m); + } else { + citedSourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.chat.v1.Citation m = + input.readMessage(com.google.chat.v1.Citation.parser(), extensionRegistry); + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(m); + } else { + citationsBuilder_.addMessage(m); + } + 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.util.List citedSources_ = + java.util.Collections.emptyList(); + + private void ensureCitedSourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + citedSources_ = new java.util.ArrayList(citedSources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CitedSource, + com.google.chat.v1.CitedSource.Builder, + com.google.chat.v1.CitedSourceOrBuilder> + citedSourcesBuilder_; + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCitedSourcesList() { + if (citedSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(citedSources_); + } else { + return citedSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCitedSourcesCount() { + if (citedSourcesBuilder_ == null) { + return citedSources_.size(); + } else { + return citedSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource getCitedSources(int index) { + if (citedSourcesBuilder_ == null) { + return citedSources_.get(index); + } else { + return citedSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitedSources(int index, com.google.chat.v1.CitedSource value) { + if (citedSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSourcesIsMutable(); + citedSources_.set(index, value); + onChanged(); + } else { + citedSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitedSources( + int index, com.google.chat.v1.CitedSource.Builder builderForValue) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.set(index, builderForValue.build()); + onChanged(); + } else { + citedSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources(com.google.chat.v1.CitedSource value) { + if (citedSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSourcesIsMutable(); + citedSources_.add(value); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources(int index, com.google.chat.v1.CitedSource value) { + if (citedSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitedSourcesIsMutable(); + citedSources_.add(index, value); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources(com.google.chat.v1.CitedSource.Builder builderForValue) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.add(builderForValue.build()); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitedSources( + int index, com.google.chat.v1.CitedSource.Builder builderForValue) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.add(index, builderForValue.build()); + onChanged(); + } else { + citedSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCitedSources( + java.lang.Iterable values) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citedSources_); + onChanged(); + } else { + citedSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCitedSources() { + if (citedSourcesBuilder_ == null) { + citedSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + citedSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCitedSources(int index) { + if (citedSourcesBuilder_ == null) { + ensureCitedSourcesIsMutable(); + citedSources_.remove(index); + onChanged(); + } else { + citedSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Builder getCitedSourcesBuilder(int index) { + return internalGetCitedSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSourceOrBuilder getCitedSourcesOrBuilder(int index) { + if (citedSourcesBuilder_ == null) { + return citedSources_.get(index); + } else { + return citedSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCitedSourcesOrBuilderList() { + if (citedSourcesBuilder_ != null) { + return citedSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citedSources_); + } + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Builder addCitedSourcesBuilder() { + return internalGetCitedSourcesFieldBuilder() + .addBuilder(com.google.chat.v1.CitedSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitedSource.Builder addCitedSourcesBuilder(int index) { + return internalGetCitedSourcesFieldBuilder() + .addBuilder(index, com.google.chat.v1.CitedSource.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of sources to be displayed under the message as footer
+     * links. These are not referenced inline. For inline references, use
+     * `citations`.
+     * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCitedSourcesBuilderList() { + return internalGetCitedSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CitedSource, + com.google.chat.v1.CitedSource.Builder, + com.google.chat.v1.CitedSourceOrBuilder> + internalGetCitedSourcesFieldBuilder() { + if (citedSourcesBuilder_ == null) { + citedSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CitedSource, + com.google.chat.v1.CitedSource.Builder, + com.google.chat.v1.CitedSourceOrBuilder>( + citedSources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + citedSources_ = null; + } + return citedSourcesBuilder_; + } + + private java.util.List citations_ = + java.util.Collections.emptyList(); + + private void ensureCitationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + citations_ = new java.util.ArrayList(citations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Citation, + com.google.chat.v1.Citation.Builder, + com.google.chat.v1.CitationOrBuilder> + citationsBuilder_; + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCitationsList() { + if (citationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(citations_); + } else { + return citationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCitationsCount() { + if (citationsBuilder_ == null) { + return citations_.size(); + } else { + return citationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.Citation getCitations(int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitations(int index, com.google.chat.v1.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.set(index, value); + onChanged(); + } else { + citationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCitations(int index, com.google.chat.v1.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.set(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitations(com.google.chat.v1.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(value); + onChanged(); + } else { + citationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitations(int index, com.google.chat.v1.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(index, value); + onChanged(); + } else { + citationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitations(com.google.chat.v1.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCitations(int index, com.google.chat.v1.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCitations( + java.lang.Iterable values) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citations_); + onChanged(); + } else { + citationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCitations() { + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + citationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCitations(int index) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.remove(index); + onChanged(); + } else { + citationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.Citation.Builder getCitationsBuilder(int index) { + return internalGetCitationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CitationOrBuilder getCitationsOrBuilder(int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCitationsOrBuilderList() { + if (citationsBuilder_ != null) { + return citationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citations_); + } + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.Citation.Builder addCitationsBuilder() { + return internalGetCitationsFieldBuilder() + .addBuilder(com.google.chat.v1.Citation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.Citation.Builder addCitationsBuilder(int index) { + return internalGetCitationsFieldBuilder() + .addBuilder(index, com.google.chat.v1.Citation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. A list of inline citations referenced within the message text
+     * (via
+     * `<chat-citation>` tags) that render as interactive hover cards.
+     * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCitationsBuilderList() { + return internalGetCitationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Citation, + com.google.chat.v1.Citation.Builder, + com.google.chat.v1.CitationOrBuilder> + internalGetCitationsFieldBuilder() { + if (citationsBuilder_ == null) { + citationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Citation, + com.google.chat.v1.Citation.Builder, + com.google.chat.v1.CitationOrBuilder>( + citations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + citations_ = null; + } + return citationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.Elements) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.Elements) + private static final com.google.chat.v1.Elements DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.Elements(); + } + + public static com.google.chat.v1.Elements getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Elements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.Elements getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsCommonProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsCommonProto.java new file mode 100644 index 000000000000..44eadfc39631 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsCommonProto.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/elements_common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class ElementsCommonProto extends com.google.protobuf.GeneratedFile { + private ElementsCommonProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ElementsCommonProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ElementsImage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_ElementsImage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n$google/chat/v1/elements_common.proto\022\016" + + "google.chat.v1\032\037google/api/field_behavio" + + "r.proto\"3\n\rElementsImage\022\031\n\timage_uri\030\001 " + + "\001(\tB\004\342A\001\002H\000B\007\n\005imageB\236\001\n\022com.google.chat" + + ".v1B\023ElementsCommonProtoP\001Z,cloud.google" + + ".com/go/chat/apiv1/chatpb;chatpb\252\002\023Googl" + + "e.Apps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026G" + + "oogle::Apps::Chat::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_chat_v1_ElementsImage_descriptor = getDescriptor().getMessageType(0); + internal_static_google_chat_v1_ElementsImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_ElementsImage_descriptor, + new java.lang.String[] { + "ImageUri", "Image", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImage.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImage.java new file mode 100644 index 000000000000..35a164b2820f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImage.java @@ -0,0 +1,743 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/elements_common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * An object encapsulating different ways of representing an image.
+ * Currently supported representations:
+ *
+ * * An image fetched from a URI.
+ *
+ * Additional representations might be supported in the future.
+ * 
+ * + * Protobuf type {@code google.chat.v1.ElementsImage} + */ +@com.google.protobuf.Generated +public final class ElementsImage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ElementsImage) + ElementsImageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ElementsImage"); + } + + // Use ElementsImage.newBuilder() to construct. + private ElementsImage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ElementsImage() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ElementsCommonProto + .internal_static_google_chat_v1_ElementsImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ElementsCommonProto + .internal_static_google_chat_v1_ElementsImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ElementsImage.class, com.google.chat.v1.ElementsImage.Builder.class); + } + + private int imageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object image_; + + public enum ImageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IMAGE_URI(1), + IMAGE_NOT_SET(0); + private final int value; + + private ImageCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ImageCase valueOf(int value) { + return forNumber(value); + } + + public static ImageCase forNumber(int value) { + switch (value) { + case 1: + return IMAGE_URI; + case 0: + return IMAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public static final int IMAGE_URI_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Required. The URI of the image. Must be a publicly accessible URI so that
+   * Chat can fetch and display it.
+   * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the imageUri field is set. + */ + public boolean hasImageUri() { + return imageCase_ == 1; + } + + /** + * + * + *
+   * Required. The URI of the image. Must be a publicly accessible URI so that
+   * Chat can fetch and display it.
+   * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageUri. + */ + public java.lang.String getImageUri() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (imageCase_ == 1) { + image_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Required. The URI of the image. Must be a publicly accessible URI so that
+   * Chat can fetch and display it.
+   * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageUri. + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (imageCase_ == 1) { + image_ = 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 (imageCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, image_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (imageCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, image_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.ElementsImage)) { + return super.equals(obj); + } + com.google.chat.v1.ElementsImage other = (com.google.chat.v1.ElementsImage) obj; + + if (!getImageCase().equals(other.getImageCase())) return false; + switch (imageCase_) { + case 1: + if (!getImageUri().equals(other.getImageUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (imageCase_) { + case 1: + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ElementsImage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ElementsImage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ElementsImage parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ElementsImage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ElementsImage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ElementsImage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ElementsImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ElementsImage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ElementsImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ElementsImage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ElementsImage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ElementsImage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.ElementsImage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An object encapsulating different ways of representing an image.
+   * Currently supported representations:
+   *
+   * * An image fetched from a URI.
+   *
+   * Additional representations might be supported in the future.
+   * 
+ * + * Protobuf type {@code google.chat.v1.ElementsImage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ElementsImage) + com.google.chat.v1.ElementsImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ElementsCommonProto + .internal_static_google_chat_v1_ElementsImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ElementsCommonProto + .internal_static_google_chat_v1_ElementsImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ElementsImage.class, + com.google.chat.v1.ElementsImage.Builder.class); + } + + // Construct using com.google.chat.v1.ElementsImage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + imageCase_ = 0; + image_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.ElementsCommonProto + .internal_static_google_chat_v1_ElementsImage_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ElementsImage getDefaultInstanceForType() { + return com.google.chat.v1.ElementsImage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ElementsImage build() { + com.google.chat.v1.ElementsImage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ElementsImage buildPartial() { + com.google.chat.v1.ElementsImage result = new com.google.chat.v1.ElementsImage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.ElementsImage result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.chat.v1.ElementsImage result) { + result.imageCase_ = imageCase_; + result.image_ = this.image_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ElementsImage) { + return mergeFrom((com.google.chat.v1.ElementsImage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ElementsImage other) { + if (other == com.google.chat.v1.ElementsImage.getDefaultInstance()) return this; + switch (other.getImageCase()) { + case IMAGE_URI: + { + imageCase_ = 1; + image_ = other.image_; + onChanged(); + break; + } + case IMAGE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + imageCase_ = 1; + image_ = 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 imageCase_ = 0; + private java.lang.Object image_; + + public ImageCase getImageCase() { + return ImageCase.forNumber(imageCase_); + } + + public Builder clearImage() { + imageCase_ = 0; + image_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Required. The URI of the image. Must be a publicly accessible URI so that
+     * Chat can fetch and display it.
+     * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the imageUri field is set. + */ + @java.lang.Override + public boolean hasImageUri() { + return imageCase_ == 1; + } + + /** + * + * + *
+     * Required. The URI of the image. Must be a publicly accessible URI so that
+     * Chat can fetch and display it.
+     * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageUri. + */ + @java.lang.Override + public java.lang.String getImageUri() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (imageCase_ == 1) { + image_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The URI of the image. Must be a publicly accessible URI so that
+     * Chat can fetch and display it.
+     * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = ""; + if (imageCase_ == 1) { + ref = image_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (imageCase_ == 1) { + image_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The URI of the image. Must be a publicly accessible URI so that
+     * Chat can fetch and display it.
+     * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The imageUri to set. + * @return This builder for chaining. + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageCase_ = 1; + image_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The URI of the image. Must be a publicly accessible URI so that
+     * Chat can fetch and display it.
+     * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearImageUri() { + if (imageCase_ == 1) { + imageCase_ = 0; + image_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The URI of the image. Must be a publicly accessible URI so that
+     * Chat can fetch and display it.
+     * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for imageUri to set. + * @return This builder for chaining. + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageCase_ = 1; + image_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ElementsImage) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ElementsImage) + private static final com.google.chat.v1.ElementsImage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ElementsImage(); + } + + public static com.google.chat.v1.ElementsImage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ElementsImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.ElementsImage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImageOrBuilder.java new file mode 100644 index 000000000000..f2e1922d59c6 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsImageOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/elements_common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface ElementsImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ElementsImage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The URI of the image. Must be a publicly accessible URI so that
+   * Chat can fetch and display it.
+   * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the imageUri field is set. + */ + boolean hasImageUri(); + + /** + * + * + *
+   * Required. The URI of the image. Must be a publicly accessible URI so that
+   * Chat can fetch and display it.
+   * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageUri. + */ + java.lang.String getImageUri(); + + /** + * + * + *
+   * Required. The URI of the image. Must be a publicly accessible URI so that
+   * Chat can fetch and display it.
+   * 
+ * + * string image_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageUri. + */ + com.google.protobuf.ByteString getImageUriBytes(); + + com.google.chat.v1.ElementsImage.ImageCase getImageCase(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsOrBuilder.java new file mode 100644 index 000000000000..c532783ad431 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/elements.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface ElementsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.Elements) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCitedSourcesList(); + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitedSource getCitedSources(int index); + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCitedSourcesCount(); + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCitedSourcesOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of sources to be displayed under the message as footer
+   * links. These are not referenced inline. For inline references, use
+   * `citations`.
+   * 
+ * + * + * repeated .google.chat.v1.CitedSource cited_sources = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitedSourceOrBuilder getCitedSourcesOrBuilder(int index); + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCitationsList(); + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.Citation getCitations(int index); + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCitationsCount(); + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCitationsOrBuilderList(); + + /** + * + * + *
+   * Optional. A list of inline citations referenced within the message text
+   * (via
+   * `<chat-citation>` tags) that render as interactive hover cards.
+   * 
+ * + * + * repeated .google.chat.v1.Citation citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CitationOrBuilder getCitationsOrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsProto.java new file mode 100644 index 000000000000..7513914d55c6 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ElementsProto.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/elements.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class ElementsProto extends com.google.protobuf.GeneratedFile { + private ElementsProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ElementsProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_Elements_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_Elements_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\035google/chat/v1/elements.proto\022\016google." + + "chat.v1\032\037google/api/field_behavior.proto" + + "\032\035google/chat/v1/citation.proto\032!google/" + + "chat/v1/cited_source.proto\"w\n\010Elements\0228" + + "\n\rcited_sources\030\001 \003(\0132\033.google.chat.v1.C" + + "itedSourceB\004\342A\001\001\0221\n\tcitations\030\002 \003(\0132\030.go" + + "ogle.chat.v1.CitationB\004\342A\001\001B\230\001\n\022com.goog" + + "le.chat.v1B\rElementsProtoP\001Z,cloud.googl" + + "e.com/go/chat/apiv1/chatpb;chatpb\252\002\023Goog" + + "le.Apps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026" + + "Google::Apps::Chat::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.chat.v1.CitationProto.getDescriptor(), + com.google.chat.v1.CitedSourceProto.getDescriptor(), + }); + internal_static_google_chat_v1_Elements_descriptor = getDescriptor().getMessageType(0); + internal_static_google_chat_v1_Elements_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_Elements_descriptor, + new java.lang.String[] { + "CitedSources", "Citations", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.chat.v1.CitationProto.getDescriptor(); + com.google.chat.v1.CitedSourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java index 604fc6b4525f..0d51c5db64f0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java @@ -2092,6 +2092,94 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder( return accessoryWidgets_.get(index); } + public static final int ELEMENTS_FIELD_NUMBER = 45; + private com.google.chat.v1.Elements elements_; + + /** + * + * + *
+   * Optional. Additional message components, including inline `citations`
+   * (where each citation is associated with a specific portion of the message
+   * text) and `cited_sources` (which are general references used to generate
+   * the response and are not directly linked to specific segments of the text).
+   *
+   * On input, provide `elements` when creating or updating a message. On
+   * output, both `citations` and `cited_sources` are populated when reading a
+   * message that contains them. Callers can read structured citation metadata
+   * from `elements`, while `formatted_text` also includes inline citation tags
+   * or source links depending on `markup_syntax`.
+   *
+   * These differ from `annotations`, which are output-only and offer
+   * supplementary information tied to message fragments or the entire message
+   * text.
+   * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the elements field is set. + */ + @java.lang.Override + public boolean hasElements() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Optional. Additional message components, including inline `citations`
+   * (where each citation is associated with a specific portion of the message
+   * text) and `cited_sources` (which are general references used to generate
+   * the response and are not directly linked to specific segments of the text).
+   *
+   * On input, provide `elements` when creating or updating a message. On
+   * output, both `citations` and `cited_sources` are populated when reading a
+   * message that contains them. Callers can read structured citation metadata
+   * from `elements`, while `formatted_text` also includes inline citation tags
+   * or source links depending on `markup_syntax`.
+   *
+   * These differ from `annotations`, which are output-only and offer
+   * supplementary information tied to message fragments or the entire message
+   * text.
+   * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The elements. + */ + @java.lang.Override + public com.google.chat.v1.Elements getElements() { + return elements_ == null ? com.google.chat.v1.Elements.getDefaultInstance() : elements_; + } + + /** + * + * + *
+   * Optional. Additional message components, including inline `citations`
+   * (where each citation is associated with a specific portion of the message
+   * text) and `cited_sources` (which are general references used to generate
+   * the response and are not directly linked to specific segments of the text).
+   *
+   * On input, provide `elements` when creating or updating a message. On
+   * output, both `citations` and `cited_sources` are populated when reading a
+   * message that contains them. Callers can read structured citation metadata
+   * from `elements`, while `formatted_text` also includes inline citation tags
+   * or source links depending on `markup_syntax`.
+   *
+   * These differ from `annotations`, which are output-only and offer
+   * supplementary information tied to message fragments or the entire message
+   * text.
+   * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.chat.v1.ElementsOrBuilder getElementsOrBuilder() { + return elements_ == null ? com.google.chat.v1.Elements.getDefaultInstance() : elements_; + } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 47; private int markupSyntax_ = 0; @@ -2227,6 +2315,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < accessoryWidgets_.size(); i++) { output.writeMessage(44, accessoryWidgets_.get(i)); } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(45, getElements()); + } if (silent_ != false) { output.writeBool(46, silent_); } @@ -2325,6 +2416,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(44, accessoryWidgets_.get(i)); } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, getElements()); + } if (silent_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(46, silent_); } @@ -2410,6 +2504,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getAttachedGifsList().equals(other.getAttachedGifsList())) return false; if (!getAccessoryWidgetsList().equals(other.getAccessoryWidgetsList())) return false; + if (hasElements() != other.hasElements()) return false; + if (hasElements()) { + if (!getElements().equals(other.getElements())) return false; + } if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2514,6 +2612,10 @@ public int hashCode() { hash = (37 * hash) + ACCESSORY_WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getAccessoryWidgetsList().hashCode(); } + if (hasElements()) { + hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getElements().hashCode(); + } hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2673,6 +2775,7 @@ private void maybeForceBuilderInitialization() { internalGetQuotedMessageMetadataFieldBuilder(); internalGetAttachedGifsFieldBuilder(); internalGetAccessoryWidgetsFieldBuilder(); + internalGetElementsFieldBuilder(); } } @@ -2797,6 +2900,11 @@ public Builder clear() { accessoryWidgetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); + elements_ = null; + if (elementsBuilder_ != null) { + elementsBuilder_.dispose(); + elementsBuilder_ = null; + } markupSyntax_ = 0; return this; } @@ -2983,6 +3091,10 @@ private void buildPartial0(com.google.chat.v1.Message result) { to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x08000000) != 0)) { + result.elements_ = elementsBuilder_ == null ? elements_ : elementsBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { result.markupSyntax_ = markupSyntax_; } result.bitField0_ |= to_bitField0_; @@ -3261,6 +3373,9 @@ public Builder mergeFrom(com.google.chat.v1.Message other) { } } } + if (other.hasElements()) { + mergeElements(other.getElements()); + } if (other.markupSyntax_ != 0) { setMarkupSyntaxValue(other.getMarkupSyntaxValue()); } @@ -3500,6 +3615,13 @@ public Builder mergeFrom( } break; } // case 354 + case 362: + { + input.readMessage( + internalGetElementsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 362 case 368: { silent_ = input.readBool(); @@ -3509,7 +3631,7 @@ public Builder mergeFrom( case 376: { markupSyntax_ = input.readEnum(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 376 default: @@ -10841,6 +10963,322 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder(int return accessoryWidgetsBuilder_; } + private com.google.chat.v1.Elements elements_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Elements, + com.google.chat.v1.Elements.Builder, + com.google.chat.v1.ElementsOrBuilder> + elementsBuilder_; + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the elements field is set. + */ + public boolean hasElements() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The elements. + */ + public com.google.chat.v1.Elements getElements() { + if (elementsBuilder_ == null) { + return elements_ == null ? com.google.chat.v1.Elements.getDefaultInstance() : elements_; + } else { + return elementsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setElements(com.google.chat.v1.Elements value) { + if (elementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + elements_ = value; + } else { + elementsBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setElements(com.google.chat.v1.Elements.Builder builderForValue) { + if (elementsBuilder_ == null) { + elements_ = builderForValue.build(); + } else { + elementsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeElements(com.google.chat.v1.Elements value) { + if (elementsBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && elements_ != null + && elements_ != com.google.chat.v1.Elements.getDefaultInstance()) { + getElementsBuilder().mergeFrom(value); + } else { + elements_ = value; + } + } else { + elementsBuilder_.mergeFrom(value); + } + if (elements_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearElements() { + bitField0_ = (bitField0_ & ~0x08000000); + elements_ = null; + if (elementsBuilder_ != null) { + elementsBuilder_.dispose(); + elementsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.Elements.Builder getElementsBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return internalGetElementsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.ElementsOrBuilder getElementsOrBuilder() { + if (elementsBuilder_ != null) { + return elementsBuilder_.getMessageOrBuilder(); + } else { + return elements_ == null ? com.google.chat.v1.Elements.getDefaultInstance() : elements_; + } + } + + /** + * + * + *
+     * Optional. Additional message components, including inline `citations`
+     * (where each citation is associated with a specific portion of the message
+     * text) and `cited_sources` (which are general references used to generate
+     * the response and are not directly linked to specific segments of the text).
+     *
+     * On input, provide `elements` when creating or updating a message. On
+     * output, both `citations` and `cited_sources` are populated when reading a
+     * message that contains them. Callers can read structured citation metadata
+     * from `elements`, while `formatted_text` also includes inline citation tags
+     * or source links depending on `markup_syntax`.
+     *
+     * These differ from `annotations`, which are output-only and offer
+     * supplementary information tied to message fragments or the entire message
+     * text.
+     * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Elements, + com.google.chat.v1.Elements.Builder, + com.google.chat.v1.ElementsOrBuilder> + internalGetElementsFieldBuilder() { + if (elementsBuilder_ == null) { + elementsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Elements, + com.google.chat.v1.Elements.Builder, + com.google.chat.v1.ElementsOrBuilder>( + getElements(), getParentForChildren(), isClean()); + elements_ = null; + } + return elementsBuilder_; + } + private int markupSyntax_ = 0; /** @@ -10879,7 +11317,7 @@ public int getMarkupSyntaxValue() { */ public Builder setMarkupSyntaxValue(int value) { markupSyntax_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -10924,7 +11362,7 @@ public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; markupSyntax_ = value.getNumber(); onChanged(); return this; @@ -10945,7 +11383,7 @@ public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { * @return This builder for chaining. */ public Builder clearMarkupSyntax() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); markupSyntax_ = 0; onChanged(); return this; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java index f788bc5ec5df..22227feff098 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java @@ -1550,6 +1550,82 @@ public interface MessageOrBuilder */ com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(int index); + /** + * + * + *
+   * Optional. Additional message components, including inline `citations`
+   * (where each citation is associated with a specific portion of the message
+   * text) and `cited_sources` (which are general references used to generate
+   * the response and are not directly linked to specific segments of the text).
+   *
+   * On input, provide `elements` when creating or updating a message. On
+   * output, both `citations` and `cited_sources` are populated when reading a
+   * message that contains them. Callers can read structured citation metadata
+   * from `elements`, while `formatted_text` also includes inline citation tags
+   * or source links depending on `markup_syntax`.
+   *
+   * These differ from `annotations`, which are output-only and offer
+   * supplementary information tied to message fragments or the entire message
+   * text.
+   * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the elements field is set. + */ + boolean hasElements(); + + /** + * + * + *
+   * Optional. Additional message components, including inline `citations`
+   * (where each citation is associated with a specific portion of the message
+   * text) and `cited_sources` (which are general references used to generate
+   * the response and are not directly linked to specific segments of the text).
+   *
+   * On input, provide `elements` when creating or updating a message. On
+   * output, both `citations` and `cited_sources` are populated when reading a
+   * message that contains them. Callers can read structured citation metadata
+   * from `elements`, while `formatted_text` also includes inline citation tags
+   * or source links depending on `markup_syntax`.
+   *
+   * These differ from `annotations`, which are output-only and offer
+   * supplementary information tied to message fragments or the entire message
+   * text.
+   * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The elements. + */ + com.google.chat.v1.Elements getElements(); + + /** + * + * + *
+   * Optional. Additional message components, including inline `citations`
+   * (where each citation is associated with a specific portion of the message
+   * text) and `cited_sources` (which are general references used to generate
+   * the response and are not directly linked to specific segments of the text).
+   *
+   * On input, provide `elements` when creating or updating a message. On
+   * output, both `citations` and `cited_sources` are populated when reading a
+   * message that contains them. Callers can read structured citation metadata
+   * from `elements`, while `formatted_text` also includes inline citation tags
+   * or source links depending on `markup_syntax`.
+   *
+   * These differ from `annotations`, which are output-only and offer
+   * supplementary information tied to message fragments or the entire message
+   * text.
+   * 
+ * + * .google.chat.v1.Elements elements = 45 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.chat.v1.ElementsOrBuilder getElementsOrBuilder(); + /** * * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 134001a158e7..48cdcd724eb1 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -157,13 +157,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n_status.proto\032\037google/chat/v1/annotatio" + "n.proto\032\037google/chat/v1/attachment.proto" + "\032%google/chat/v1/contextual_addon.proto\032" - + "&google/chat/v1/deletion_metadata.proto\032\"google/chat/v1/markup_syntax.proto\032" - + " google/chat/v1/matched_url.proto\032\035google/ch" - + "at/v1/reaction.proto\032\"google/chat/v1/sla" - + "sh_command.proto\032\032google/chat/v1/space.p" - + "roto\032/google/chat/v1/space_notification_" - + "setting.proto\032\031google/chat/v1/user.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\271\013\n" + + "&google/chat/v1/deletion_metadata.proto\032" + + "\035google/chat/v1/elements.proto\032\"google/chat/v1/markup_syntax.proto\032" + + " google/chat/v1/matched_url.proto\032\035google/chat/v1/rea" + + "ction.proto\032\"google/chat/v1/slash_comman" + + "d.proto\032\032google/chat/v1/space.proto\032/goo" + + "gle/chat/v1/space_notification_setting.proto\032\031google/chat/v1/user.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\353\013\n" + "\007Message\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022*\n" + "\006sender\030\002 \001(\0132\024.google.chat.v1.UserB\004\342A\001\003\0226\n" @@ -187,8 +187,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017action_response\030\016" + " \001(\0132\036.google.chat.v1.ActionResponseB\004\342A\001\004\022\033\n\r" + "argument_text\030\017 \001(\tB\004\342A\001\003\0229\n\r" - + "slash_command\030\021 \001" - + "(\0132\034.google.chat.v1.SlashCommandB\004\342A\001\003\0224\n\n" + + "slash_command\030\021" + + " \001(\0132\034.google.chat.v1.SlashCommandB\004\342A\001\003\0224\n\n" + "attachment\030\022 \003(\0132\032.google.chat.v1.AttachmentB\004\342A\001\001\0225\n" + "\013matched_url\030\024" + " \001(\0132\032.google.chat.v1.MatchedUrlB\004\342A\001\003\022\032\n" @@ -201,11 +201,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\024.google.chat.v1.UserB\005\342A\002\005\001\022A\n" + "\021deletion_metadata\030& \001(\0132" + " .google.chat.v1.DeletionMetadataB\004\342A\001\003\022L\n" - + "\027quoted_message_metadata\030\' \001(\0132%" - + ".google.chat.v1.QuotedMessageMetadataB\004\342A\001\001\0228\n\r" + + "\027quoted_message_metadata\030\'" + + " \001(\0132%.google.chat.v1.QuotedMessageMetadataB\004\342A\001\001\0228\n\r" + "attached_gifs\030* \003(\0132\033.google.chat.v1.AttachedGifB\004\342A\001\003\022@\n" - + "\021accessory_widgets\030," - + " \003(\0132\037.google.chat.v1.AccessoryWidgetB\004\342A\001\001\0229\n\r" + + "\021accessory_widgets\030, \003(\0132" + + "\037.google.chat.v1.AccessoryWidgetB\004\342A\001\001\0220\n" + + "\010elements\030- \001(\0132\030.google.chat.v1.ElementsB\004\342A\001\001\0229\n\r" + "markup_syntax\030/" + " \001(\0162\034.google.chat.v1.MarkupSyntaxB\004\342A\001\001:C\352A@\n" + "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\" \n" @@ -226,8 +227,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005REPLY\020\001\022\013\n" + "\007FORWARD\020\002:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{message}/q" - + "uotedMessageMetadata/{quoted_message_metadata}\"\315\001\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{message}/" + + "quotedMessageMetadata/{quoted_message_metadata}\"\315\001\n" + "\025QuotedMessageSnapshot\022\024\n" + "\006sender\030\001 \001(\tB\004\342A\001\003\022\022\n" + "\004text\030\002 \001(\tB\004\342A\001\003\022\034\n" @@ -243,8 +244,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Thread\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\030\n\n" + "thread_key\030\003 \001(\tB\004\342A\001\001:Q\352AN\n" - + "\032chat.googleapis." - + "com/Thread\022\037spaces/{space}/threads/{thread}*\007threads2\006thread\"\326\004\n" + + "\032chat.googleapis" + + ".com/Thread\022\037spaces/{space}/threads/{thread}*\007threads2\006thread\"\326\004\n" + "\016ActionResponse\022?\n" + "\004type\030\001" + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\004\342A\001\004\022\021\n" @@ -275,8 +276,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021GetMessageRequest\0222\n" + "\004name\030\001 \001(\tB$\342A\001\002\372A\035\n" + "\033chat.googleapis.com/Message\0229\n\r" - + "markup_syntax\030\003 " - + "\001(\0162\034.google.chat.v1.MarkupSyntaxB\004\342A\001\001\"_\n" + + "markup_syntax\030\003" + + " \001(\0162\034.google.chat.v1.MarkupSyntaxB\004\342A\001\001\"_\n" + "\024DeleteMessageRequest\0222\n" + "\004name\030\001 \001(\tB$\342A\001\002\372A\035\n" + "\033chat.googleapis.com/Message\022\023\n" @@ -293,8 +294,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\027.google.chat.v1.MessageB\004\342A\001\002\022\032\n\n" + "thread_key\030\006 \001(\tB\006\030\001\342A\001\001\022\030\n\n" + "request_id\030\007 \001(\tB\004\342A\001\001\022[\n" - + "\024message_reply_option\030\010 \001(\01627.google.chat.v" - + "1.CreateMessageRequest.MessageReplyOptionB\004\342A\001\001\022\030\n\n" + + "\024message_reply_option\030\010 \001(\01627.google.chat." + + "v1.CreateMessageRequest.MessageReplyOptionB\004\342A\001\001\022\030\n\n" + "message_id\030\t \001(\tB\004\342A\001\001\022c\n" + "#create_message_notification_options\030\n" + " \001(\01320.google.chat.v1.CreateMessageNotificationOptionsB\004\342A\001\001\"\177\n" @@ -348,8 +349,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\005 \001(\tB\004\342A\001\001\0229\n\r" + "markup_syntax\030\006" + " \001(\0162\034.google.chat.v1.MarkupSyntaxB\004\342A\001\001\022L\n" - + "\004view\030\007 \001(\01628.google.cha" - + "t.v1.SearchMessagesRequest.SearchMessagesViewB\004\342A\001\001\"y\n" + + "\004view\030\007 \001(\01628.google.ch" + + "at.v1.SearchMessagesRequest.SearchMessagesViewB\004\342A\001\001\"y\n" + "\022SearchMessagesView\022$\n" + " SEARCH_MESSAGES_VIEW_UNSPECIFIED\020\000\022\036\n" + "\032SEARCH_MESSAGES_VIEW_BASIC\020\001\022\035\n" @@ -360,13 +361,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023SearchMessageResult\022(\n" + "\007message\030\001 \001(\0132\027.google.chat.v1.Message\022\021\n" + "\004read\030\003 \001(\010H\000\210\001\001\022P\n" - + "\022space_mute_setting\030\004 \001(\01624.googl" - + "e.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + + "\022space_mute_setting\030\004 \001(\01624.goog" + + "le.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + "\005_readB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat" - + "/apiv1/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Goo" - + "gle.Apps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002" - + "\026Google::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/cha" + + "t/apiv1/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Go" + + "ogle.Apps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352" + + "\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -380,6 +381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.AttachmentProto.getDescriptor(), com.google.chat.v1.ContextualAddOnProto.getDescriptor(), com.google.chat.v1.DeletionMetadataProto.getDescriptor(), + com.google.chat.v1.ElementsProto.getDescriptor(), com.google.chat.v1.MarkupSyntaxProto.getDescriptor(), com.google.chat.v1.MatchedUrlProto.getDescriptor(), com.google.chat.v1.ReactionProto.getDescriptor(), @@ -422,6 +424,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QuotedMessageMetadata", "AttachedGifs", "AccessoryWidgets", + "Elements", "MarkupSyntax", }); internal_static_google_chat_v1_AttachedGif_descriptor = getDescriptor().getMessageType(1); @@ -620,6 +623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.AttachmentProto.getDescriptor(); com.google.chat.v1.ContextualAddOnProto.getDescriptor(); com.google.chat.v1.DeletionMetadataProto.getDescriptor(); + com.google.chat.v1.ElementsProto.getDescriptor(); com.google.chat.v1.MarkupSyntaxProto.getDescriptor(); com.google.chat.v1.MatchedUrlProto.getDescriptor(); com.google.chat.v1.ReactionProto.getDescriptor(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java index 179c93b0e324..902e181aaa41 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java @@ -843,7 +843,7 @@ public interface SpaceDetailsOrBuilder * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -859,7 +859,7 @@ public interface SpaceDetailsOrBuilder * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -961,7 +961,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -988,7 +988,7 @@ public java.lang.String getDescription() { * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1406,7 +1406,7 @@ public Builder mergeFrom( * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1432,7 +1432,7 @@ public java.lang.String getDescription() { * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1458,7 +1458,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1483,7 +1483,7 @@ public Builder setDescription(java.lang.String value) { * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1504,7 +1504,7 @@ public Builder clearDescription() { * Optional. A description of the space. For example, describe the space's * discussion topic, functional purpose, or participants. * - * Supports up to 150 characters. + * Supports up to 4,096 characters. *
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto index fb5942b40e13..aa327ec8603b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/action_status.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.chat.v1; +import "google/api/field_behavior.proto"; import "google/rpc/code.proto"; option csharp_namespace = "Google.Apps.Chat.V1"; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/citation.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/citation.proto new file mode 100644 index 000000000000..26629c6894b4 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/citation.proto @@ -0,0 +1,50 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; +import "google/chat/v1/cited_source.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "CitationProto"; +option java_package = "com.google.chat.v1"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// Citations are inline references that can provide users more detailed +// information about the inline reference. Corresponding inline citations +// should be present in the message text in a markup format of +// `{text}`. Citations are +// only supported when the message's `markup_syntax` is set to `MARKDOWN`. +// +// Unreferenced citations in `Elements.citations` (those without a matching +// `` tag in the message text) are ignored and do not cause the +// message to be rejected. +message Citation { + // Required. The ID of the citation. This ID is defined by the app creating + // the citation and must match the `data-id` attribute of the + // `` tag in the message text. Must contain only ASCII letters + // and numbers, and less than 63 characters. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of sources that are relevant to the citation. Sources are + // displayed in the citation hover card. + repeated CitedSource cited_sources = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/cited_source.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/cited_source.proto new file mode 100644 index 000000000000..eac2d23f0cb9 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/cited_source.proto @@ -0,0 +1,68 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; +import "google/chat/v1/elements_common.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "CitedSourceProto"; +option java_package = "com.google.chat.v1"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// A reference to a source of information. +message CitedSource { + // A snippet object representing an excerpt from a larger corpus. + message Snippet { + // Optional. A short plaintext excerpt directly from the corpus that is + // rendered in the citation hover card or source preview. When footer + // sources are automatically populated from inline `citations` (because + // `Elements.cited_sources` is not set), snippets are omitted from the + // deduplicated footer sources. Does not support markdown format, and must + // not exceed 1,000 characters. + string text = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Image preview of the snippet provided as an input when creating + // the citation. + ElementsImage image_preview = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // A footer for a source, used for attribution. + message Footer { + // Optional. The plaintext to display in the footer. Does not support + // markdown format. + string text = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The plaintext title of the `CitedSource`. Does not support + // markdown format. + string title = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The URI pointing to the resource referenced by this + // `CitedSource`. + string uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Snippet containing information directly from the source. + Snippet snippet = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional information to show alongside the snippet in the form + // of a footer. + Footer footer = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements.proto new file mode 100644 index 000000000000..bb93f9ba2e8f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements.proto @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; +import "google/chat/v1/citation.proto"; +import "google/chat/v1/cited_source.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "ElementsProto"; +option java_package = "com.google.chat.v1"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// Elements are additional message components, +// including inline `citations` (where each citation is associated with a +// specific portion of the message text) and `cited_sources` (which are general +// references used to generate the response and are not directly linked to +// specific segments of the text). Both `citations` and `cited_sources` can be +// provided as input when creating or updating a message and are populated on +// output when reading a message. +message Elements { + // Optional. A list of sources to be displayed under the message as footer + // links. These are not referenced inline. For inline references, use + // `citations`. + repeated CitedSource cited_sources = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of inline citations referenced within the message text + // (via + // `` tags) that render as interactive hover cards. + repeated Citation citations = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements_common.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements_common.proto new file mode 100644 index 000000000000..00bd3a95239d --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/elements_common.proto @@ -0,0 +1,42 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "ElementsCommonProto"; +option java_package = "com.google.chat.v1"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// An object encapsulating different ways of representing an image. +// Currently supported representations: +// +// * An image fetched from a URI. +// +// Additional representations might be supported in the future. +message ElementsImage { + // Required. One of the supported image representations. + oneof image { + // Required. The URI of the image. Must be a publicly accessible URI so that + // Chat can fetch and display it. + string image_uri = 1 [(google.api.field_behavior) = REQUIRED]; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 9900c0403850..55553f2100ad 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -24,6 +24,7 @@ import "google/chat/v1/annotation.proto"; import "google/chat/v1/attachment.proto"; import "google/chat/v1/contextual_addon.proto"; import "google/chat/v1/deletion_metadata.proto"; +import "google/chat/v1/elements.proto"; import "google/chat/v1/markup_syntax.proto"; import "google/chat/v1/matched_url.proto"; import "google/chat/v1/reaction.proto"; @@ -281,6 +282,22 @@ message Message { repeated AccessoryWidget accessory_widgets = 44 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Additional message components, including inline `citations` + // (where each citation is associated with a specific portion of the message + // text) and `cited_sources` (which are general references used to generate + // the response and are not directly linked to specific segments of the text). + // + // On input, provide `elements` when creating or updating a message. On + // output, both `citations` and `cited_sources` are populated when reading a + // message that contains them. Callers can read structured citation metadata + // from `elements`, while `formatted_text` also includes inline citation tags + // or source links depending on `markup_syntax`. + // + // These differ from `annotations`, which are output-only and offer + // supplementary information tied to message fragments or the entire message + // text. + Elements elements = 45 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies how the server interprets the message `text` field // content. MarkupSyntax markup_syntax = 47 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index a7446e7bdbbe..78978a47bc66 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -98,7 +98,7 @@ message Space { // Optional. A description of the space. For example, describe the space's // discussion topic, functional purpose, or participants. // - // Supports up to 150 characters. + // Supports up to 4,096 characters. string description = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The space's rules, expectations, and etiquette. diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicy.java index 7f4c3c6e4e63..3d0888254c7c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicy.java @@ -88,6 +88,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -307,6 +310,9 @@ private FastIPMove(int value) { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -398,6 +404,9 @@ public boolean hasFastIPMove() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -497,6 +506,9 @@ public java.lang.String getFastIPMove() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -1039,6 +1051,9 @@ public Builder mergeFrom( * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -1129,6 +1144,9 @@ public boolean hasFastIPMove() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -1227,6 +1245,9 @@ public java.lang.String getFastIPMove() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -1325,6 +1346,9 @@ public com.google.protobuf.ByteString getFastIPMoveBytes() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -1422,6 +1446,9 @@ public Builder setFastIPMove(java.lang.String value) { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -1515,6 +1542,9 @@ public Builder clearFastIPMove() { * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicyOrBuilder.java index 6e68e8bb8f07..6d1da74080a9 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceHAPolicyOrBuilder.java @@ -45,6 +45,9 @@ public interface BackendServiceHAPolicyOrBuilder * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -133,6 +136,9 @@ public interface BackendServiceHAPolicyOrBuilder * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * @@ -221,6 +227,9 @@ public interface BackendServiceHAPolicyOrBuilder * Advertisement(RA) packet (IPv6). Google Cloud immediately but * temporarily associates the forwarding rule IP address with that VM, and * both new and in-flight packets are quickly delivered to that VM. + * - HA_CONTROLLER: The Backend Service is managed by a High Availability + * Controller. Failover and leader election are exclusively managed by the + * HA Controller service. * * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResource.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResource.java index 25761435f8dc..f9615ca828be 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResource.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResource.java @@ -128,7 +128,12 @@ public long getCount() { * * *
-   * A flexible specification of machine type of instances to create.
+   * A specification of alternative machine types to use when creating
+   * instances. A single bulkInsert request can create instances with multiple
+   * different machine types based on capacity and quota availability. This
+   * field is supported only for regional bulkInsert requests. For more
+   * information, see About
+   * instance flexibility for VMs created in bulk.
    * 
* * @@ -146,7 +151,12 @@ public boolean hasInstanceFlexibilityPolicy() { * * *
-   * A flexible specification of machine type of instances to create.
+   * A specification of alternative machine types to use when creating
+   * instances. A single bulkInsert request can create instances with multiple
+   * different machine types based on capacity and quota availability. This
+   * field is supported only for regional bulkInsert requests. For more
+   * information, see About
+   * instance flexibility for VMs created in bulk.
    * 
* * @@ -166,7 +176,12 @@ public com.google.cloud.compute.v1.InstanceFlexibilityPolicy getInstanceFlexibil * * *
-   * A flexible specification of machine type of instances to create.
+   * A specification of alternative machine types to use when creating
+   * instances. A single bulkInsert request can create instances with multiple
+   * different machine types based on capacity and quota availability. This
+   * field is supported only for regional bulkInsert requests. For more
+   * information, see About
+   * instance flexibility for VMs created in bulk.
    * 
* * @@ -1389,7 +1404,12 @@ public Builder clearCount() { * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1406,7 +1426,12 @@ public boolean hasInstanceFlexibilityPolicy() { * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1429,7 +1454,12 @@ public com.google.cloud.compute.v1.InstanceFlexibilityPolicy getInstanceFlexibil * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1455,7 +1485,12 @@ public Builder setInstanceFlexibilityPolicy( * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1478,7 +1513,12 @@ public Builder setInstanceFlexibilityPolicy( * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1510,7 +1550,12 @@ public Builder mergeInstanceFlexibilityPolicy( * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1532,7 +1577,12 @@ public Builder clearInstanceFlexibilityPolicy() { * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1550,7 +1600,12 @@ public Builder clearInstanceFlexibilityPolicy() { * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * @@ -1572,7 +1627,12 @@ public Builder clearInstanceFlexibilityPolicy() { * * *
-     * A flexible specification of machine type of instances to create.
+     * A specification of alternative machine types to use when creating
+     * instances. A single bulkInsert request can create instances with multiple
+     * different machine types based on capacity and quota availability. This
+     * field is supported only for regional bulkInsert requests. For more
+     * information, see About
+     * instance flexibility for VMs created in bulk.
      * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResourceOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResourceOrBuilder.java index 891c15daf66d..8e8a4b1fe4d4 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResourceOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BulkInsertInstanceResourceOrBuilder.java @@ -56,7 +56,12 @@ public interface BulkInsertInstanceResourceOrBuilder * * *
-   * A flexible specification of machine type of instances to create.
+   * A specification of alternative machine types to use when creating
+   * instances. A single bulkInsert request can create instances with multiple
+   * different machine types based on capacity and quota availability. This
+   * field is supported only for regional bulkInsert requests. For more
+   * information, see About
+   * instance flexibility for VMs created in bulk.
    * 
* * @@ -71,7 +76,12 @@ public interface BulkInsertInstanceResourceOrBuilder * * *
-   * A flexible specification of machine type of instances to create.
+   * A specification of alternative machine types to use when creating
+   * instances. A single bulkInsert request can create instances with multiple
+   * different machine types based on capacity and quota availability. This
+   * field is supported only for regional bulkInsert requests. For more
+   * information, see About
+   * instance flexibility for VMs created in bulk.
    * 
* * @@ -86,7 +96,12 @@ public interface BulkInsertInstanceResourceOrBuilder * * *
-   * A flexible specification of machine type of instances to create.
+   * A specification of alternative machine types to use when creating
+   * instances. A single bulkInsert request can create instances with multiple
+   * different machine types based on capacity and quota availability. This
+   * field is supported only for regional bulkInsert requests. For more
+   * information, see About
+   * instance flexibility for VMs created in bulk.
    * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java index ac17336ee168..50f718bd26cc 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java @@ -194,7 +194,9 @@ public com.google.protobuf.ByteString getCacheTagsBytes(int index) { * *
    * If set, this invalidation rule will only apply to requests with a Host
-   * header matching host.
+   * header matching host. This field also accepts wildcards (*) to replace the
+   * leftmost (or first) label of a hostname. For example, *.example.com will
+   * match www.example.com, but not sub1.dev.example.com.
    * 
* * optional string host = 3208616; @@ -211,7 +213,9 @@ public boolean hasHost() { * *
    * If set, this invalidation rule will only apply to requests with a Host
-   * header matching host.
+   * header matching host. This field also accepts wildcards (*) to replace the
+   * leftmost (or first) label of a hostname. For example, *.example.com will
+   * match www.example.com, but not sub1.dev.example.com.
    * 
* * optional string host = 3208616; @@ -236,7 +240,9 @@ public java.lang.String getHost() { * *
    * If set, this invalidation rule will only apply to requests with a Host
-   * header matching host.
+   * header matching host. This field also accepts wildcards (*) to replace the
+   * leftmost (or first) label of a hostname. For example, *.example.com will
+   * match www.example.com, but not sub1.dev.example.com.
    * 
* * optional string host = 3208616; @@ -981,7 +987,9 @@ public Builder addCacheTagsBytes(com.google.protobuf.ByteString value) { * *
      * If set, this invalidation rule will only apply to requests with a Host
-     * header matching host.
+     * header matching host. This field also accepts wildcards (*) to replace the
+     * leftmost (or first) label of a hostname. For example, *.example.com will
+     * match www.example.com, but not sub1.dev.example.com.
      * 
* * optional string host = 3208616; @@ -997,7 +1005,9 @@ public boolean hasHost() { * *
      * If set, this invalidation rule will only apply to requests with a Host
-     * header matching host.
+     * header matching host. This field also accepts wildcards (*) to replace the
+     * leftmost (or first) label of a hostname. For example, *.example.com will
+     * match www.example.com, but not sub1.dev.example.com.
      * 
* * optional string host = 3208616; @@ -1021,7 +1031,9 @@ public java.lang.String getHost() { * *
      * If set, this invalidation rule will only apply to requests with a Host
-     * header matching host.
+     * header matching host. This field also accepts wildcards (*) to replace the
+     * leftmost (or first) label of a hostname. For example, *.example.com will
+     * match www.example.com, but not sub1.dev.example.com.
      * 
* * optional string host = 3208616; @@ -1045,7 +1057,9 @@ public com.google.protobuf.ByteString getHostBytes() { * *
      * If set, this invalidation rule will only apply to requests with a Host
-     * header matching host.
+     * header matching host. This field also accepts wildcards (*) to replace the
+     * leftmost (or first) label of a hostname. For example, *.example.com will
+     * match www.example.com, but not sub1.dev.example.com.
      * 
* * optional string host = 3208616; @@ -1068,7 +1082,9 @@ public Builder setHost(java.lang.String value) { * *
      * If set, this invalidation rule will only apply to requests with a Host
-     * header matching host.
+     * header matching host. This field also accepts wildcards (*) to replace the
+     * leftmost (or first) label of a hostname. For example, *.example.com will
+     * match www.example.com, but not sub1.dev.example.com.
      * 
* * optional string host = 3208616; @@ -1087,7 +1103,9 @@ public Builder clearHost() { * *
      * If set, this invalidation rule will only apply to requests with a Host
-     * header matching host.
+     * header matching host. This field also accepts wildcards (*) to replace the
+     * leftmost (or first) label of a hostname. For example, *.example.com will
+     * match www.example.com, but not sub1.dev.example.com.
      * 
* * optional string host = 3208616; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRuleOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRuleOrBuilder.java index f1ac2ca06ff0..25f2a7531c35 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRuleOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRuleOrBuilder.java @@ -129,7 +129,9 @@ public interface CacheInvalidationRuleOrBuilder * *
    * If set, this invalidation rule will only apply to requests with a Host
-   * header matching host.
+   * header matching host. This field also accepts wildcards (*) to replace the
+   * leftmost (or first) label of a hostname. For example, *.example.com will
+   * match www.example.com, but not sub1.dev.example.com.
    * 
* * optional string host = 3208616; @@ -143,7 +145,9 @@ public interface CacheInvalidationRuleOrBuilder * *
    * If set, this invalidation rule will only apply to requests with a Host
-   * header matching host.
+   * header matching host. This field also accepts wildcards (*) to replace the
+   * leftmost (or first) label of a hostname. For example, *.example.com will
+   * match www.example.com, but not sub1.dev.example.com.
    * 
* * optional string host = 3208616; @@ -157,7 +161,9 @@ public interface CacheInvalidationRuleOrBuilder * *
    * If set, this invalidation rule will only apply to requests with a Host
-   * header matching host.
+   * header matching host. This field also accepts wildcards (*) to replace the
+   * leftmost (or first) label of a hostname. For example, *.example.com will
+   * match www.example.com, but not sub1.dev.example.com.
    * 
* * optional string host = 3208616; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java index bdbd8242fdcd..81c7b4953cd0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Commitment.java @@ -668,6 +668,26 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { MEMORY_OPTIMIZED_M3(276301372), /** MEMORY_OPTIMIZED_M4 = 276301373; */ MEMORY_OPTIMIZED_M4(276301373), + /** + * + * + *
+     * CUD bucket for M4N machines with less than 6TB of memory.
+     * 
+ * + * MEMORY_OPTIMIZED_M4N = 512278961; + */ + MEMORY_OPTIMIZED_M4N(512278961), + /** + * + * + *
+     * CUD bucket for M4N machines with 6TB of memory.
+     * 
+ * + * MEMORY_OPTIMIZED_M4N_6TB = 69895574; + */ + MEMORY_OPTIMIZED_M4N_6TB(69895574), /** MEMORY_OPTIMIZED_M4_6TB = 210543650; */ MEMORY_OPTIMIZED_M4_6TB(210543650), /** @@ -949,6 +969,28 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** MEMORY_OPTIMIZED_M4 = 276301373; */ public static final int MEMORY_OPTIMIZED_M4_VALUE = 276301373; + /** + * + * + *
+     * CUD bucket for M4N machines with less than 6TB of memory.
+     * 
+ * + * MEMORY_OPTIMIZED_M4N = 512278961; + */ + public static final int MEMORY_OPTIMIZED_M4N_VALUE = 512278961; + + /** + * + * + *
+     * CUD bucket for M4N machines with 6TB of memory.
+     * 
+ * + * MEMORY_OPTIMIZED_M4N_6TB = 69895574; + */ + public static final int MEMORY_OPTIMIZED_M4N_6TB_VALUE = 69895574; + /** MEMORY_OPTIMIZED_M4_6TB = 210543650; */ public static final int MEMORY_OPTIMIZED_M4_6TB_VALUE = 210543650; @@ -1215,6 +1257,10 @@ public static Type forNumber(int value) { return MEMORY_OPTIMIZED_M3; case 276301373: return MEMORY_OPTIMIZED_M4; + case 512278961: + return MEMORY_OPTIMIZED_M4N; + case 69895574: + return MEMORY_OPTIMIZED_M4N_6TB; case 210543650: return MEMORY_OPTIMIZED_M4_6TB; case 206669823: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java index ef1267e3fcd0..6abc7fa0191f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java @@ -12151,7 +12151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n" + "\026source_firewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\031\n" - + "\027_source_firewall_policy\"\244\030\n\n" + + "\027_source_firewall_policy\"\343\030\n\n" + "Commitment\022\033\n\n" + "auto_renew\030\375\227\244\354\001 \001(\010H\000\210\001\001\022\030\n" + "\010category\030\376\371\212\030 \001(\tH\001\210\001\001\022\"\n" @@ -12199,7 +12199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\261\362\200\024\022\020\n" + "\010CREATING\020\271\275\235\331\001\022\017\n" + "\007EXPIRED\020\205\346\210\346\001\022\025\n" - + "\016NOT_YET_ACTIVE\020\351\342\351\t\"\214\014\n" + + "\016NOT_YET_ACTIVE\020\351\342\351\t\"\313\014\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\035\n" + "\025ACCELERATOR_OPTIMIZED\020\223\320\365\205\001\022\037\n" @@ -12231,7 +12231,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032GRAPHICS_OPTIMIZED_G4_VGPU\020\274\351\310\216\001\022\030\n" + "\020MEMORY_OPTIMIZED\020\311\356\254\206\001\022\033\n" + "\023MEMORY_OPTIMIZED_M3\020\274\214\340\203\001\022\033\n" - + "\023MEMORY_OPTIMIZED_M4\020\275\214\340\203\001\022\036\n" + + "\023MEMORY_OPTIMIZED_M4\020\275\214\340\203\001\022\034\n" + + "\024MEMORY_OPTIMIZED_M4N\020\261\203\243\364\001\022\037\n" + + "\030MEMORY_OPTIMIZED_M4N_6TB\020\226\213\252!\022\036\n" + "\027MEMORY_OPTIMIZED_M4_6TB\020\242\310\262d\022#\n" + "\034MEMORY_OPTIMIZED_X4_1440_24T\020\377\217\306b\022\037\n" + "\030MEMORY_OPTIMIZED_X4_16TB\020\340\357\246W\022$\n" @@ -12265,8 +12267,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_paramsB\007\n" + "\005_planB\t\n" + "\007_regionB\022\n" - + "\020_resource_statusB\014\n" - + "\n" + + "\020_resource_statusB\014\n\n" + "_self_linkB\032\n" + "\030_split_source_commitmentB\022\n" + "\020_start_timestampB\t\n" @@ -12275,8 +12276,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\277\003\n" + "\030CommitmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ " - + "\003(\0132<.google.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.clou" + + "d.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12285,8 +12286,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..goo" - + "gle.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -12306,8 +12307,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\265\001\n" + "\020CommitmentParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.comp" - + "ute.v1.CommitmentParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 " + + "\003(\0132B.google.cloud.compute.v1.CommitmentParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"|\n" @@ -12345,8 +12346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\335\003\n" + "\"CompositeHealthCheckAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.googl" - + "e.cloud.compute.v1.CompositeHealthCheckAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v" + + "1.CompositeHealthCheckAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12355,16 +12356,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.goog" - + "le.cloud.compute.v1.CompositeHealthChecksScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.google.cloud.compute." + + "v1.CompositeHealthChecksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\272\002\n" + "\032CompositeHealthCheckHealth\022m\n" - + "\016health_sources\030\325\321\334\275\001 \003(\0132Q.google.cloud.compute." - + "v1.CompositeHealthChecksGetHealthResponseHealthSourceHealth\022\035\n" + + "\016health_sources\030\325\321\334\275\001 \003(\0132" + + "Q.google.cloud.compute.v1.CompositeHealt" + + "hChecksGetHealthResponseHealthSourceHealth\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\"^\n" + "\013HealthState\022\032\n" @@ -12376,8 +12378,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kind\"\271\002\n" + "\030CompositeHealthCheckList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.CompositeHealthCheck\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132-.google.cloud.compute.v1.CompositeHealthCheck\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -12423,8 +12425,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024draining_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001B\027\n" + "\025_draining_timeout_sec\"\210\002\n" + "\"ConsistentHashLoadBalancerSettings\022b\n" - + "\013http_cookie\030\373\253\227\003 \001(\0132E.google.cloud.compute.v1." - + "ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022 \n" + + "\013http_cookie\030\373\253\227\003 \001(\0132E.g" + + "oogle.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022" + + " \n" + "\020http_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!\n" + "\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n" + "\014_http_cookieB\023\n" @@ -12459,8 +12462,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*CreateInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\220\001\n" + "9instance_group_managers_create_instances_request_resource\030\223\372\332\013" - + " \001(\0132D.google." - + "cloud.compute.v1.InstanceGroupManagersCreateInstancesRequestB\004\342A\001\002\022\"\n" + + " \001(\0132D.google.cloud.compute.v1." + + "InstanceGroupManagersCreateInstancesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -12470,25 +12473,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\236\001\n" - + "@region_instance_" - + "group_managers_create_instances_request_resource\030\210\277\230\253\001" - + " \001(\0132J.google.cloud.comput" - + "e.v1.RegionInstanceGroupManagersCreateInstancesRequestB\004\342A\001\002\022\032\n\n" + + "@region_instance_group_managers_create_instances_request_resource\030\210\277\230\253\001" + + " \001(\0132J.google.cloud.compute.v1.RegionInstan" + + "ceGroupManagersCreateInstancesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\372\001\n" + "%CreateMembersInterconnectGroupRequest\022$\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\004\342A\001\002\022\206\001\n" + "3interconnect_groups_create_members_request_resource\030\355\374\213\246\001" - + " \001(\0132?.google.cloud.compute.v1.Inte" - + "rconnectGroupsCreateMembersRequestB\004\342A\001\002\022\"\n" + + " \001(\0132?.googl" + + "e.cloud.compute.v1.InterconnectGroupsCreateMembersRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\"\225\002\n" + "\031CreateSnapshotDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022F\n" - + "\021snapshot_resource\030\251\270\301\345\001" - + " \001(\0132!.google.cloud.compute.v1.SnapshotB\004\342A\001\002\022\034\n" + + "\021snapshot_resource\030\251\270\301\345\001 \001(\0132!." + + "google.cloud.compute.v1.SnapshotB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\016\n" + "\014_guest_flushB\r\n" + "\013_request_id\"\361\001\n" @@ -12517,8 +12519,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CrossSiteNetworkList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022;\n" - + "\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.CrossSiteNetwork\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132).google.cloud.compute.v1.CrossSiteNetwork\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -12532,9 +12534,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\270\001\n" + "\031CustomErrorResponsePolicy\022j\n" - + "\024error_response_rules\030\220\255\374\006 \003" - + "(\0132I.google.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n" - + "\r" + + "\024error_response_rules\030\220\255\374\006 \003(\0132I.google.cloud" + + ".compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + "error_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n" + "\016_error_service\"\266\001\n" + "0CustomErrorResponsePolicyCustomErrorResponseRule\022\037\n" @@ -12556,8 +12557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_rsa_encrypted_keyB\t\n" + "\007_sha256\"\265\001\n" + "\"CustomerEncryptionKeyProtectedDisk\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\013" + + "2..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\t\n" + "\007_source\"C\n" @@ -12645,10 +12646,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\202\001\n" + "\025DeleteFirewallRequest\022\032\n" - + "\010firewall\030\200\372\325\363\001 \001(\tB\004\342A\001\002\022\"\n" + + "\010firewall\030\200\372\325", + "\363\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" - + "request_id\030", - "\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\261\001\n" + "\033DeleteForwardingRuleRequest\022!\n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\004\342A\001\002\022\"\n" @@ -12696,8 +12697,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032global_vm_extension_policy\030\236\326\374\003 \001(" + "\tB\004\342A\001\002\022\242\001\n" + "Cglobal_vm_extension_policy_rollout_operation_rollout_input_resource\030\330\367\230F" - + " \001(\0132L.google.cloud.compute.v" - + "1.GlobalVmExtensionPolicyRolloutOperationRolloutInputB\004\342A\001\002\022\"\n" + + " \001(\0132L.google.cloud.compute.v1.GlobalVmExtensi" + + "onPolicyRolloutOperationRolloutInputB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\211\001\n" @@ -12714,8 +12715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!DeleteInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n" - + "\n" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\027\n" + "\025_no_graceful_shutdownB\r\n" @@ -12749,8 +12749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*DeleteInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\220\001\n" + "9instance_group_managers_delete_instances_request_resource\030\204\306\255O" - + " \001(\0132D." - + "google.cloud.compute.v1.InstanceGroupManagersDeleteInstancesRequestB\004\342A\001\002\022%\n" + + " \001(\0132D.google.cloud.comp" + + "ute.v1.InstanceGroupManagersDeleteInstancesRequestB\004\342A\001\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" @@ -12763,10 +12763,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\236\001\n" - + "@region_instance_group_mana" - + "gers_delete_instances_request_resource\030\371\212\353\356\001" - + " \001(\0132J.google.cloud.compute.v1.Regio" - + "nInstanceGroupManagersDeleteInstancesRequestB\004\342A\001\002\022\032\n\n" + + "@region_instance_group_managers_delete_instances_request_resource\030\371\212\353\356\001" + + " \001(\0132J.google" + + ".cloud.compute.v1.RegionInstanceGroupManagersDeleteInstancesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\027\n" + "\025_no_graceful_shutdownB\r\n" + "\013_request_id\"\271\001\n" @@ -12875,8 +12874,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\233\002\n" + "\033DeleteNodesNodeGroupRequest\022\034\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\004\342A\001\002\022q\n" - + ")node_groups_delete_nodes_request_resource\030\222\327\263W" - + " \001(\01325.google.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\004\342A\001\002\022\"\n" + + ")node_groups_delete_nodes_request_resource\030\222\327\263W \001(\01325.google.clo" + + "ud.compute.v1.NodeGroupsDeleteNodesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -12895,10 +12894,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\300\002\n" + "3DeletePerInstanceConfigsInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\235\001\n" - + "@instance_group_managers" - + "_delete_per_instance_configs_req_resource\030\240\352\350\254\001" - + " \001(\0132I.google.cloud.compute.v1.In" - + "stanceGroupManagersDeletePerInstanceConfigsReqB\004\342A\001\002\022\"\n" + + "@instance_group_managers_delete_per_instance_configs_req_resource\030\240\352\350\254\001" + + " \001(\0132I.goo" + + "gle.cloud.compute.v1.InstanceGroupManagersDeletePerInstanceConfigsReqB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zone\"\312\002\n" + "9DeletePerInstanceConfigsRegionInstanceGroupManagerRequest\022\'\n" @@ -12907,8 +12905,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\235\001\n" + "Aregion_instance_group_manager_delete_instance_config_req_resource\030\205\233-" - + " \001(\0132J.google.cloud.compute.v1.Regi" - + "onInstanceGroupManagerDeleteInstanceConfigReqB\004\342A\001\002\"\240\001\n" + + " \001(\0132J.googl" + + "e.cloud.compute.v1.RegionInstanceGroupManagerDeleteInstanceConfigReqB\004\342A\001\002\"\240\001\n" + "$DeletePublicAdvertisedPrefixeRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022)\n" + "\030public_advertised_prefix\030\236\367\3110 \001(\tB\004\342A\001\002\022\032\n\n" @@ -12974,7 +12972,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024health_check_service\030\333\233\335\302\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n\n" + + "\342A\001\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\263\001\n" + "\037DeleteRegionHealthSourceRequest\022\037\n\r" @@ -13013,8 +13012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\271\001\n" + "\"DeleteRegionInstantSnapshotRequest\022\"\n" + "\020instant_snapshot\030\342\334\337\272\001 \001(\tB\004\342A\001\002\022\"\n" @@ -13027,8 +13025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n" - + "\n" + + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\276\001\n" + "(DeleteRegionNetworkFirewallPolicyRequest\022!\n" @@ -13062,8 +13059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\032\n" - + "\010snapshot\030\304\253\353\207\001 \001(\tB\004\342A\001\002B\r" - + "\n" + + "\010snapshot\030\304\253\353\207\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\266\001\n" + "!DeleteRegionSslCertificateRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -13108,7 +13104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007url_map\030\214\225\201\257\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\245\001\n" + "\030DeleteReservationRequest\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013reservation\030\314\207\325\026 \001(\tB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -13207,13 +13204,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\021target_grpc_proxy\030\373\264\262\002 \001(\tB\004\342A\001\002B\r\n" - + "\013_request_id\"\221\001\n" + + "\013_re", + "quest_id\"\221\001\n" + "\034DeleteTargetHttpProxyRequest\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016", - "\342A\001\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" - + "\021target_http_proxy\030\345\276\322b \001(\tB\004\342A\001\002B\r" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n" + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + + "\021target_http_proxy\030\345\276\322b \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\223\001\n" + "\035DeleteTargetHttpsProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -13229,10 +13226,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027DeleteTargetPoolRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n" - + "\n" + + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" - + "\013target_pool\030\212\344\370\035 \001(\tB\004\342A\001\002B\r\n" + + "\013target_pool\030\212\344\370\035 \001(\tB\004\342A\001\002B\r" + + "\n" + "\013_request_id\"\220\001\n" + "\033DeleteTargetSslProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -13292,8 +13289,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ports\030\222\360\3712 \003(\tB\017\n\r" + "_I_p_protocol\"\331\001\n" + "\025DeprecateImageRequest\022Y\n" - + "\033deprecation_status_resource\030\360\211\345\236\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusB\004\342A\001\002\022\026\n" + + "\033deprecation_status_resource\030\360\211\345\236\001 \001" + + "(\0132*.google.cloud.compute.v1.DeprecationStatusB\004\342A\001\002\022\026\n" + "\005image\030\333\322\352/ \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13324,8 +13321,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\322\002\n" + "7DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest\022\235\001\n" + "@global_network_endpoint_groups_detach_endpoints_request_resource\030\335\215\237\004" - + " \001(\0132J.google.cl" - + "oud.compute.v1.GlobalNetworkEndpointGroupsDetachEndpointsRequestB\004\342A\001\002\022(\n" + + " \001(\0132J.google.cloud.compute.v1.Gl" + + "obalNetworkEndpointGroupsDetachEndpointsRequestB\004\342A\001\002\022(\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13334,8 +13331,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026network_endpoint_group\030\206\313\363\316\001 \001(" + "\tB\004\342A\001\002\022\221\001\n" + "9network_endpoint_groups_detach_endpoints_request_resource\030\371\240\356\365\001" - + " \001(\0132" - + "D.google.cloud.compute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\004\342A\001\002\022\"\n" + + " \001(\0132D.google.cloud.co" + + "mpute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -13345,10 +13342,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\236\001\n" - + "@region_network_endpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" - + " \001(\0132J.go" - + "ogle.cloud.compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\004\342A\001\002\022\032\n" - + "\n" + + "@region_network_e" + + "ndpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" + + " \001(\0132J.google.cloud.comput" + + "e.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"m\n" + "\034DisableXpnHostProjectRequest\022\"\n" @@ -13357,29 +13354,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\356\001\n" + " DisableXpnResourceProjectRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022{\n" - + ".projects_disable_xpn_resource_request_resource\030\252\324\334c " - + "\001(\0132:.google.cloud.compute.v1.ProjectsDisableXpnResourceRequestB\004\342A\001\002\022\032\n\n" + + ".projects_disable_xpn_resource_request_resource\030\252\324\334c" + + " \001(\0132:.google.clou" + + "d.compute.v1.ProjectsDisableXpnResourceRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\317\032\n" + "\004Disk\022\033\n" + "\013access_mode\030\236\367\317\023 \001(\tH\000\210\001\001\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n" - + "\022async_primary_disk\030\235\365\211V" - + " \001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" - + "\025async_secondary_disks\030\250\350\375\231\001" - + " \003(\01326.google.cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132-.go" + + "ogle.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" + + "\025async_secondary_disks\030\250\350\375\231\001 \003" + + "(\01326.google.cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132.." + + "google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\t\210\001\001\022=\n" - + "\006labels\030\377\277\301\356\001 \003(\0132)" - + ".google.cloud.compute.v1.Disk.LabelsEntry\022%\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132).google.cloud.compute.v1.Disk.LabelsEntry\022%\n" + "\025last_attach_timestamp\030\245\234\215\024 \001(\tH\n" + "\210\001\001\022%\n" + "\025last_detach_timestamp\030\363\333\366\032 \001(\tH\013\210\001\001\022\030\n\r" @@ -13400,8 +13398,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "replica_zones\030\200\270\214\027 \003(\t\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022L\n" - + "\017resource_status\030\303\372\367v" - + " \001(\0132+.google.cloud.compute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001(\0132+" + + ".google.cloud.compute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\025\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\026\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\027\210\001\001\022\030\n" @@ -13412,14 +13410,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013source_disk\030\301\356\264\327\001 \001(\tH\033\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\034\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\035\210\001\001\022\\\n" - + "\033source_image_encryption_key\030\253\221\365\265\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + + "\033source_image_encryption_key\030\253\221\365\265\001 \001(" + + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + "\017source_image_id\030\243\374\260\032 \001(\tH\037\210\001\001\022\'\n" + "\027source_instant_snapshot\030\206\204\303h \001(\tH \210\001\001\022+\n" + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037\n" + "\017source_snapshot\030\350\232\216< \001(\tH\"\210\001\001\022_\n" - + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..google.clo" - + "ud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n" + + "\036source_snapshot_encryption_key\030\332\216\347\220\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n" + "\022source_snapshot_id\030\322\226\230/ \001(\tH$\210\001\001\022%\n" + "\025source_storage_object\030\247\264\220o \001(\tH%\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH&\210\001\001\022\035\n" @@ -13429,8 +13427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tH)\210\001\001\032m\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002" - + " \001(\01321.google.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + + "\005value\030\002 \001(\01321.google" + + ".cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"q\n\n" @@ -13522,8 +13520,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_diskB\n\n" + "\010_disk_id\"\214\001\n" + "\030DiskAsyncReplicationList\022U\n" - + "\026async_replication_disk\030\223\313\303n" - + " \001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + + "\026async_replication_disk\030\223\313\303n \001(" + + "\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + "\027_async_replication_disk\"\244\003\n" + "\027DiskInstantiationConfig\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\034\n" @@ -13562,20 +13560,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\016\n" + "\014_target_disk\"\251\001\n\n" + "DiskParams\022_\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132<.google.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132<.g" + + "oogle.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" + "\022DiskResourceStatus\022e\n" - + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.c" - + "loud.compute.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" - + "\025async_secondary_disks\030\250\350\375\231\001 \003(\0132D.google.cloud.compute." - + "v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.cloud.compute.v1.D" + + "iskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" + + "\025async_secondary_disks\030\250\350\375\231\001 \003(\0132" + + "D.google.cloud.compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022P\n" - + "\005value\030\002 \001(\0132A.google.cloud.co" - + "mpute.v1.DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + + "\005value\030\002" + + " \001(\0132A.google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + "\023_async_primary_disk\"\332\001\n" + "(DiskResourceStatusAsyncReplicationStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n" @@ -13591,8 +13589,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DiskType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022%\n" + "\024default_disk_size_gb\030\365\244\205\201\001 \001(\003H\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.googl" + + "e.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" @@ -13615,8 +13613,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026DiskTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132" - + ":.google.cloud.compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google.cloud.co" + + "mpute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13625,8 +13623,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.google.cl" - + "oud.compute.v1.DiskTypesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.compute.v1.DiskTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -13678,8 +13676,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_enable_display\"\201\002\n" + "\022DistributionPolicy\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022N\n" - + "\005zones\030\307\244\2557" - + " \003(\0132<.google.cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + + "\005zones\030\307\244\2557 \003(\0132<.google" + + ".cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -13702,30 +13700,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037EnableXpnResourceProjectRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022z\n" + "-projects_enable_xpn_resource_request_resource\030\257\320\233\311\001" - + " \001(\01329.google." - + "cloud.compute.v1.ProjectsEnableXpnResourceRequestB\004\342A\001\002\022\032\n\n" + + " \001(\01329.google.cloud.compute.v1." + + "ProjectsEnableXpnResourceRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"<\n" + "\005Error\0223\n" + "\006errors\030\353\336\325\226\001" + " \003(\0132\037.google.cloud.compute.v1.Errors\"\327\002\n" + "\014ErrorDetails\022>\n\n" - + "error_info\030\205\241\205\014 \001(\013" - + "2\".google.cloud.compute.v1.ErrorInfoH\000\210\001\001\0223\n" + + "error_info\030\205\241\205\014" + + " \001(\0132\".google.cloud.compute.v1.ErrorInfoH\000\210\001\001\0223\n" + "\004help\030\301\236\303\001" + " \001(\0132\035.google.cloud.compute.v1.HelpH\001\210\001\001\022M\n" + "\021localized_message\030\303\376\362\300\001" + " \001(\0132).google.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" - + "quota_info\030\225\324\344, \001(\0132*.g" - + "oogle.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + + "quota_info\030\225\324\344," + + " \001(\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + "\013_error_infoB\007\n" + "\005_helpB\024\n" + "\022_localized_messageB\r\n" + "\013_quota_info\"\315\001\n" + "\tErrorInfo\022\027\n" + "\006domain\030\304\251\317\207\001 \001(\tH\000\210\001\001\022G\n" - + "\tmetadatas\030\244\326\207\004" - + " \003(\01321.google.cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + + "\tmetadatas\030\244\326\207\004 \003(\01321.google." + + "cloud.compute.v1.ErrorInfo.MetadatasEntry\022\026\n" + "\006reason\030\304\244\226B \001(\tH\001\210\001\001\0320\n" + "\016MetadatasEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -13760,8 +13758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\274\002\n" + "\032ExchangedPeeringRoutesList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/ \003(\0132" - + "..google.cloud.compute.v1.ExchangedPeeringRoute\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132..google.cloud.compute.v1.ExchangedPeeringRoute\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -13778,8 +13776,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\004\342A\001\002\022\201\001\n" - + "1subnetworks_expand_ip_cidr_range_request_resource\030\336\320\272\343\001 \001" - + "(\0132<.google.cloud.compute.v1.SubnetworksExpandIpCidrRangeRequestB\004\342A\001\002B\r\n" + + "1subnetworks_expand_ip_cidr_range_request_resource\030\336\320\272\343\001" + + " \001(\0132<.google.cloud" + + ".compute.v1.SubnetworksExpandIpCidrRangeRequestB\004\342A\001\002B\r\n" + "\013_request_id\"\251\001\n" + "\004Expr\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n\n" @@ -13794,15 +13793,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022K\n\n" - + "interfaces\030\332\364\340\005 \003(\01324.google.clo" - + "ud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + + "interfaces\030\332\364\340\005" + + " \003(\01324.google.cloud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327" - + ".google.cloud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud.com" + + "pute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022I\n" - + "\006params\030\206\363\253%" - + " \001(\01321.google.cloud.compute.v1.ExternalVpnGatewayParamsH\006\210\001\001\022 \n" + + "\006params\030\206\363\253% \001(\0132" + + "1.google.cloud.compute.v1.ExternalVpnGatewayParamsH\006\210\001\001\022 \n" + "\017redundancy_type\030\234\316\267\201\001 \001(\tH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -13827,16 +13826,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\001\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\002\210\001\001B\005\n" - + "\003_idB\r\n" + + "\003_idB\r" + + "\n" + "\013_ip_addressB\017\n\r" + "_ipv6_address\"\324\002\n" + "\026ExternalVpnGatewayList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022=\n" - + "\005items\030\300\317\367/" - + " \003(\0132+.google.cloud.compute.v1.ExternalVpnGateway\022\024\n" - + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022", - "\037\n" + + "\005items\030\300\317\367/ \003(\0132+.go", + "ogle.cloud.compute.v1.ExternalVpnGateway\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -13848,8 +13847,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\305\001\n" + "\030ExternalVpnGatewayParams\022m\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132J.google.cloud.compute.v1" - + ".ExternalVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132J." + + "google.cloud.compute.v1.ExternalVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\262\001\n" @@ -13861,8 +13860,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003BIN\020\347\201\004\022\020\n" + "\tUNDEFINED\020\260\342\335A\022\013\n" + "\004X509\020\246\233\243\001B\n\n" - + "\010_contentB\014\n" - + "\n" + + "\010_contentB\014\n\n" + "_file_type\"\234\007\n" + "\010Firewall\0224\n" + "\007allowed\030\250\203\270M \003(\0132 .google.cloud.compute.v1.Allowed\022\"\n" @@ -13928,26 +13926,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\013\n" + "\t_metadata\"\261\001\n" + "\016FirewallParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.g" - + "oogle.cloud.compute.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compu" + + "te.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\227\001\n" + "(FirewallPoliciesListAssociationsResponse\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322.goog" - + "le.cloud.compute.v1.FirewallPolicyAssociation\022\024\n" + + "\014associations\030\222\350\312\362\001" + + " \003(\01322.google.cloud.compute.v1.FirewallPolicyAssociation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\253\001\n" + "\032FirewallPoliciesScopedList\022F\n" - + "\021firewall_policies\030\257\213\225\273\001" - + " \003(\0132\'.google.cloud.compute.v1.FirewallPolicy\0229\n" + + "\021firewall_policies\030\257\213\225\273\001 \003(" + + "\0132\'.google.cloud.compute.v1.FirewallPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\254\007\n" + "\016FirewallPolicy\022L\n" - + "\014associations\030\222\350\312\362\001" - + " \003(\01322.google.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + + "\014associations\030\222\350\312\362\001 \003(\01322" + + ".google.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\002\210\001\001\022\033\n" @@ -13955,8 +13952,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\026\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+.goog" + + "le.cloud.compute.v1.FirewallPolicyRule\022\026\n" + "\006parent\030\252\221\254% \001(\tH\007\210\001\001\022\033\n" + "\013policy_type\030\247\244\324\010 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022!\n" @@ -13992,7 +13989,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\350\207\221\002 \001(\tH\001\210\001\001\022#\n" + "\022firewall_policy_id\030\311\275\252\252\001 \001(\tH\002\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\003\210\001\001\022\031\n" - + "\010priority\030\244\363\241\324\001 \001(\005H\004\210\001\001\022\033\n\n" + + "\010priority\030\244\363\241\324\001 \001(\005H\004\210\001\001\022\033\n" + + "\n" + "short_name\030\356\270\320\352\001 \001(\tH\005\210\001\001B\024\n" + "\022_attachment_targetB\017\n\r" + "_display_nameB\025\n" @@ -14002,8 +14000,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_name\"\203\002\n" + "\022FirewallPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(" - + "\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -14019,8 +14017,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\037\n" + "\016enable_logging\030\243\311\355\214\001 \001(\010H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022I\n" - + "\005match\030\305\263\2671" - + " \001(\01322.google.cloud.compute.v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n" + + "\005match\030\305\263\2671 \001(\01322.google" + + ".cloud.compute.v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\007\210\001\001\022\031\n" + "\trule_name\030\356\263\256\032 \001(\tH\010\210\001\001\022!\n" + "\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022&\n" @@ -14028,8 +14026,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022#\n" + "\027target_forwarding_rules\030\243\344\274\354\001 \003(\t\022\034\n" + "\020target_resources\030\367\321\360\373\001 \003(\t\022T\n" - + "\022target_secure_tags\030\263\304\234\337\001" - + " \003(\01324.google.cloud.compute.v1.FirewallPolicyRuleSecureTag\022#\n" + + "\022target_secure_tags\030\263\304\234\337\001 \003(\01324.g" + + "oogle.cloud.compute.v1.FirewallPolicyRuleSecureTag\022#\n" + "\027target_service_accounts\030\236\216\234\332\001 \003(\t\022\033\n" + "\013target_type\030\250\322\200\036 \001(\tH\013\210\001\001\022\033\n" + "\013tls_inspect\030\320\275\332\024 \001(\010H\014\210\001\001\"E\n" @@ -14062,8 +14060,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021dest_network_type\030\250\272\267\303\001 \001(\tH\001\210\001\001\022\034\n" + "\021dest_region_codes\030\230\253\371^ \003(\t\022$\n" + "\031dest_threat_intelligences\030\254\363\2259 \003(\t\022Z\n" - + "\016layer4_configs\030\265\334\216\262\001" - + " \003(\0132>.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + + "\016layer4_configs\030\265\334\216\262\001 \003(\0132>.google.cl" + + "oud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + "\022src_address_groups\030\272\230\215\320\001 \003(\t\022\025\n" + "\tsrc_fqdns\030\343\314\355\317\001 \003(\t\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\022#\n" @@ -14071,8 +14069,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020src_network_type\030\246\362\335\223\001 \001(\tH\003\210\001\001\022\027\n" + "\014src_networks\030\200\200\353u \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022Q\n" - + "\017src_secure_tags\030\206\224\316\362\001 \003(\01324.google.clou" - + "d.compute.v1.FirewallPolicyRuleSecureTag\022$\n" + + "\017src_secure_tags\030\206\224\316\362\001" + + " \003(\01324.google.cloud.compute.v1.FirewallPolicyRuleSecureTag\022$\n" + "\030src_threat_intelligences\030\252\357\250\232\001 \003(\t\"8\n" + "\022DestNetworkContext\022\"\n" + "\036UNDEFINED_DEST_NETWORK_CONTEXT\020\000\"2\n" @@ -14122,8 +14120,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tall_ports\030\364\257\243\324\001 \001(\010H\002\210\001\001\022$\n" + "\023allow_global_access\030\212\306\221\356\001 \001(\010H\003\210\001\001\022\'\n" + "\027allow_psc_global_access\030\313\205\321} \001(\010H\004\210\001\001\022Y\n" - + "\023attached_extensions\030\217\253\330\267\001 \003(\01328." - + "google.cloud.compute.v1.ForwardingRuleAttachedExtension\022 \n" + + "\023attached_extensions\030\217\253\330\267\001" + + " \003(\01328.google.cloud.compute.v1.ForwardingRuleAttachedExtension\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\005\210\001\001\022%\n" + "\024base_forwarding_rule\030\220\333\243\372\001 \001(\tH\006\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022\034\n" @@ -14141,8 +14139,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026is_mirroring_collector\030\374\340\3568 \001(\010H\017\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\020\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\021\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\01323.google.cloud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01323.google.cloud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + "\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\022\210\001\001\022E\n" + "\020metadata_filters\030\353\315\314\335\001" + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022\024\n" @@ -14157,16 +14155,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\032\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\033\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\034\210\001\001\022o\n" - + "\037service_directory_registrations\030\376\261\314j" - + " \003(\0132C.google.cloud.compute.v1." - + "ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + + "\037service_directory_registrations\030\376\261\314j \003(\0132C.g" + + "oogle.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + "service_label\030\352\231\354\306\001 \001(\tH\035\210\001\001\022\035\n" + "\014service_name\030\325\253\315\253\001 \001(\tH\036\210\001\001\022\033\n" - + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n\n" + + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n" + + "\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\037\210\001\001\022\026\n" + "\006target\030\221\343\371[ \001(\tH \210\001\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\261\001\n" + "*ExternalManagedBackendBucketMigrationState\022=\n" + "9UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE\020\000\022\017\n" @@ -14245,8 +14244,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_target\"\313\003\n" + "\034ForwardingRuleAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cl" - + "oud.compute.v1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132@.google.cloud.compute.v1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14255,8 +14254,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.cloud.c" - + "ompute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14286,19 +14285,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tnamespace\030\333\252\215U \001(\tH\000\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\001\210\001\001\022(\n" + "\030service_directory_region\030\320\272\246# \001(\tH\002\210\001\001B\014\n\n" - + "_namespaceB\n" - + "\n" + + "_namespaceB\n\n" + "\010_serviceB\033\n" + "\031_service_directory_region\"\251\001\n" + "\031ForwardingRulesScopedList\022E\n" - + "\020forwarding_rules\030\265\232\314\226\001" - + " \003(\0132\'.google.cloud.compute.v1.ForwardingRule\0229\n" + + "\020forwarding_rules\030\265\232\314\226\001 \003" + + "(\0132\'.google.cloud.compute.v1.ForwardingRule\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\206\027\n" + "\021FutureReservation\022_\n" - + "\025aggregate_reservation\030\314\362\203\213\001 \001(\01327.google.cl" - + "oud.compute.v1.AllocationAggregateReservationH\000\210\001\001\0225\n" + + "\025aggregate_reservation\030\314\362\203\213\001" + + " \001(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\000\210\001\001\0225\n" + "%auto_created_reservations_delete_time\030\320\331\346s \001(" + "\tH\001\210\001\001\022V\n" + "\"auto_created_reservations_duration\030\205\260\320\354\001" @@ -14306,8 +14304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%auto_delete_auto_created_reservations\030\252\343\245\352\001" + " \001(\010H\003\210\001\001\022#\n" + "\023colocation_resource\030\354\224\330\017 \001(\tH\004\210\001\001\022Y\n" - + "\017commitment_info\030\230\357\257N \001(\01328.goo" - + "gle.cloud.compute.v1.FutureReservationCommitmentInfoH\005\210\001\001\022*\n" + + "\017commitment_info\030\230\357\257N \001(\01328.google.cloud.compute" + + ".v1.FutureReservationCommitmentInfoH\005\210\001\001\022*\n" + "\031confidential_compute_type\030\231\357\242\270\001 \001(\tH\006\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022 \n" + "\017deployment_type\030\364\200\226\275\001 \001(\tH\010\210\001\001\022\034\n" @@ -14319,8 +14317,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\r" + "\210\001\001\022\033\n" + "\013name_prefix\030\306\245\335p \001(\tH\016\210\001\001\022H\n" - + "\006params\030\206\363\253% \001(\01320." - + "google.cloud.compute.v1.FutureReservationParamsH\017\210\001\001\022\037\n" + + "\006params\030\206\363\253%" + + " \001(\01320.google.cloud.compute.v1.FutureReservationParamsH\017\210\001\001\022\037\n" + "\017planning_status\030\224\246\263\t \001(\tH\020\210\001\001\022!\n" + "\020reservation_mode\030\266\334\234\204\001 \001(\tH\021\210\001\001\022!\n" + "\020reservation_name\030\236\336\235\204\001 \001(\tH\022\210\001\001\022L\n" @@ -14333,14 +14331,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016share_settings\030\203\221\224\177" + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\030\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l \001(\010H\031\210\001\001\022h\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\0132?.g" - + "oogle.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\032\210\001\001\022H\n" - + "\006status\030\362\237\267V" - + " \001(\01320.google.cloud.compute.v1.FutureReservationStatusH\033\210\001\001\022h\n" - + "\027storage_pool_properties\030\362\306\206\" \001(\0132?.google.cloud.compute." - + "v1.FutureReservationStoragePoolPropertiesH\034\210\001\001\022R\n" - + "\013time_window\030\242\353\330\311\001 \001(\01324.google" - + ".cloud.compute.v1.FutureReservationTimeWindowH\035\210\001\001\022\024\n" + + "\027specific_sku_properties\030\302\370\3653 \001(\0132?.google.cloud.compu" + + "te.v1.FutureReservationSpecificSKUPropertiesH\032\210\001\001\022H\n" + + "\006status\030\362\237\267V \001(\01320.google.cl" + + "oud.compute.v1.FutureReservationStatusH\033\210\001\001\022h\n" + + "\027storage_pool_properties\030\362\306\206\" \001(\0132" + + "?.google.cloud.compute.v1.FutureReservationStoragePoolPropertiesH\034\210\001\001\022R\n" + + "\013time_window\030\242\353\330\311\001" + + " \001(\01324.google.cloud.compute.v1.FutureReservationTimeWindowH\035\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\036\210\001\001\"\277\001\n" + "\027ConfidentialComputeType\022\'\n" + "#UNDEFINED_CONFIDENTIAL_COMPUTE_TYPE\020\000\022&\n" @@ -14414,15 +14412,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_commitment_planB\034\n" + "\032_previous_commitment_terms\"\303\001\n" + "\027FutureReservationParams\022l\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003" - + "(\0132I.google.cloud.compute.v1.FutureReservationParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132I.google.cloud" + + ".compute.v1.FutureReservationParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\256\002\n" + "&FutureReservationSpecificSKUProperties\022w\n" - + "\023instance_properties\030\235\236\330f \001(\0132R.google.cloud.compute.v1.A" - + "llocationSpecificSKUAllocationReservedInstancePropertiesH\000\210\001\001\022)\n" + + "\023instance_properties\030\235\236\330f \001(\0132R.go" + + "ogle.cloud.compute.v1.AllocationSpecific" + + "SKUAllocationReservedInstancePropertiesH\000\210\001\001\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(" + "\tH\001\210\001\001\022\033\n" + "\013total_count\030\324\230\310= \001(\003H\002\210\001\001B\026\n" @@ -14432,27 +14430,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027FutureReservationStatus\022 \n" + "\020amendment_status\030\344\242\253w \001(\tH\000\210\001\001\022$\n" + "\031auto_created_reservations\030\256\225\356B \003(\t\022r\n" - + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001 \001(\0132@.google.clo" - + "ud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\001\210\001\001\022x\n" - + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.google.cloud.comp" - + "ute.v1.FutureReservationStatusExistingMatchingUsageInfoH\002\210\001\001\022 \n" + + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001" + + " \001(\0132@.google.cloud.compute.v1.Sto" + + "ragePoolExapoolProvisionedCapacityGbH\001\210\001\001\022x\n" + + "\034existing_matching_usage_info\030\332\212\223\363\001 " + + "\001(\0132I.google.cloud.compute.v1.FutureRese" + + "rvationStatusExistingMatchingUsageInfoH\002\210\001\001\022 \n" + "\017fulfilled_count\030\357\223\246\230\001 \001(\003H\003\210\001\001\022i\n" - + "\025last_known_good_state\030\224\337\370[ \001(\0132B.google.cloud.compute.v1.Futur" - + "eReservationStatusLastKnownGoodStateH\004\210\001\001\022\031\n" + + "\025last_known_good_state\030\224\337\370[ \001(\0132B.google" + + ".cloud.compute.v1.FutureReservationStatusLastKnownGoodStateH\004\210\001\001\022\031\n" + "\tlock_time\030\341\222\307D \001(\tH\005\210\001\001\022\"\n" + "\022procurement_status\030\341\340\223k \001(\tH\006\210\001\001\022n\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\0132E.google.cloud.comp" - + "ute.v1.FutureReservationStatusSpecificSKUPropertiesH\007\210\001\001\022{\n" - + "!storage_pool_provisioned_capacity\030\344\237\346@ \001(\0132H.google.cloud.co" - + "mpute.v1.FutureReservationStoragePoolProvisionedCapacityH\010\210\001\001\"\251\001\n" + + "\027specific_sku_properties\030\302\370\3653 " + + "\001(\0132E.google.cloud.compute.v1.FutureRese" + + "rvationStatusSpecificSKUPropertiesH\007\210\001\001\022{\n" + + "!storage_pool_provisioned_capacity\030\344\237\346@" + + " \001(\0132H.google.cloud.compute.v1.FutureRe" + + "servationStoragePoolProvisionedCapacityH\010\210\001\001\"\251\001\n" + "\017AmendmentStatus\022\036\n" + "\032UNDEFINED_AMENDMENT_STATUS\020\000\022\031\n" + "\022AMENDMENT_APPROVED\020\311\237\346G\022\031\n" + "\022AMENDMENT_DECLINED\020\300\312\310!\022\032\n" - + "\023AMENDMENT_IN_REVIEW\020\340\311\250\014\022$\n" + + "\023AMENDM", + "ENT_IN_REVIEW\020\340\311\250\014\022$\n" + "\034AMENDMENT_STATUS_UNSPECIFIED\020\334\341\311\304\001\"\341\002\n" - + "\021Pr", - "ocurementStatus\022 \n" + + "\021ProcurementStatus\022 \n" + "\034UNDEFINED_PROCUREMENT_STATUS\020\000\022\020\n" + "\010APPROVED\020\267\255\255\252\001\022\020\n" + "\tCANCELLED\020\261\362\200\024\022\020\n" @@ -14483,11 +14485,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_timestamp\"\213\007\n" + ")FutureReservationStatusLastKnownGoodState\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022x\n" - + "\034existing_matching_usage_info\030\332\212\223\363\001 \001(\0132I.googl" - + "e.cloud.compute.v1.FutureReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022\202\001\n" - + "\030future_reservation_specs\030\351\224\255\' \001(\0132X.google." - + "cloud.compute.v1.FutureReservationStatus" - + "LastKnownGoodStateFutureReservationSpecsH\002\210\001\001\022\031\n" + + "\034existing_matching_usage_info\030\332\212\223\363\001" + + " \001(\0132I.google.cloud.compute.v" + + "1.FutureReservationStatusExistingMatchingUsageInfoH\001\210\001\001\022\202\001\n" + + "\030future_reservation_specs\030\351\224\255\' \001(\0132X.google.cloud.compute.v1." + + "FutureReservationStatusLastKnownGoodStateFutureReservationSpecsH\002\210\001\001\022\031\n" + "\tlock_time\030\341\222\307D \001(\tH\003\210\001\001\022\033\n" + "\013name_prefix\030\306\245\335p \001(\tH\004\210\001\001\022\"\n" + "\022procurement_status\030\341\340\223k \001(\tH\005\210\001\001\"\341\002\n" @@ -14513,12 +14515,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_name_prefixB\025\n" + "\023_procurement_status\"\206\003\n" + "?FutureReservationStatusLastKnownGoodStateFutureReservationSpecs\022F\n" - + "\016share_settings\030\203\221\224\177 \001(\0132" - + "&.google.cloud.compute.v1.ShareSettingsH\000\210\001\001\022h\n" - + "\027specific_sku_properties\030\302\370\3653 \001(\013" - + "2?.google.cloud.compute.v1.FutureReservationSpecificSKUPropertiesH\001\210\001\001\022R\n" - + "\013time_window\030\242\353\330\311\001" - + " \001(\01324.google.cloud.compute.v1.FutureReservationTimeWindowH\002\210\001\001B\021\n" + + "\016share_settings\030\203\221\224\177" + + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\000\210\001\001\022h\n" + + "\027specific_sku_properties\030\302\370\3653 \001(\0132?.google.cloud.c" + + "ompute.v1.FutureReservationSpecificSKUPropertiesH\001\210\001\001\022R\n" + + "\013time_window\030\242\353\330\311\001 \001(\01324" + + ".google.cloud.compute.v1.FutureReservationTimeWindowH\002\210\001\001B\021\n" + "\017_share_settingsB\032\n" + "\030_specific_sku_propertiesB\016\n" + "\014_time_window\"{\n" @@ -14526,11 +14528,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033source_instance_template_id\030\372\357\2025 \001(\tH\000\210\001\001B\036\n" + "\034_source_instance_template_id\"\306\003\n" + "&FutureReservationStoragePoolProperties\022{\n" - + ")requested_exapool_provisioned_capacity_gb\030\217\210\270S \001(\0132" - + "@.google.cloud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\000\210\001\001\022\206\001\n" + + ")requested_exapool_provisioned_capacity_gb\030\217\210\270S" + + " \001(\0132@.google.cloud.co" + + "mpute.v1.StoragePoolExapoolProvisionedCapacityGbH\000\210\001\001\022\206\001\n" + "+requested_storage_pool_provisioned_capacity\030\323\246\362\233\001" - + " \001(\0132H.google.cloud.compute.v1.Futur" - + "eReservationStoragePoolProvisionedCapacityH\001\210\001\001\022\"\n" + + " \001(\0132H.google" + + ".cloud.compute.v1.FutureReservationStoragePoolProvisionedCapacityH\001\210\001\001\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tH\002\210\001\001B,\n" + "*_requested_exapool_provisioned_capacity_gbB.\n" + ",_requested_storage_pool_provisioned_capacityB\024\n" @@ -14554,8 +14557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(FutureReservationsAggregatedListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.google.cloud.compute.v1.FutureRes" - + "ervationsAggregatedListResponse.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google.clo" + + "ud.compute.v1.FutureReservationsAggregatedListResponse.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -14564,8 +14567,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.FutureReservationsScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01325.goo" + + "gle.cloud.compute.v1.FutureReservationsScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -14575,8 +14578,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036FutureReservationsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\0132*.goo" - + "gle.cloud.compute.v1.FutureReservation\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.FutureReservation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -14598,15 +14601,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035FutureResourcesRecommendation\022\030\n" + "\010end_time\030\261\247\3476 \001(\tH\000\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\001\210\001\001\022f\n" - + "\017other_locations\030\357\371\300U \003(\0132J.google.cloud.compute.v1.Fu" - + "tureResourcesRecommendation.OtherLocationsEntry\022\"\n" + + "\017other_locations\030\357\371\300U \003(\0132J.goo" + + "gle.cloud.compute.v1.FutureResourcesRecommendation.OtherLocationsEntry\022\"\n" + "\021recommendation_id\030\341\326\243\342\001 \001(\tH\002\210\001\001\022#\n" + "\023recommendation_type\030\200\350\203n \001(\tH\003\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\004\210\001\001\032z\n" + "\023OtherLocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132" - + "C.google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation:\0028\001\"z\n" + + "\005value\030\002 \001(\0132C.google.cloud.co" + + "mpute.v1.FutureResourcesRecommendationOtherLocation:\0028\001\"z\n" + "\022RecommendationType\022!\n" + "\035UNDEFINED_RECOMMENDATION_TYPE\020\000\022\031\n" + "\022FUTURE_RESERVATION\020\260\326\310\023\022&\n" @@ -14630,10 +14633,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\366\003\n" + "\023FutureResourcesSpec\022 \n" + "\017deployment_type\030\364\200\226\275\001 \001(\tH\000\210\001\001\022\\\n" - + "\017location_policy\030\374\271\207\336\001 \001(\0132:.google.cloud.compute." - + "v1.FutureResourcesSpecLocationPolicyH\001\210\001\001\022^\n" - + "\020target_resources\030\367\321\360\373\001 \001(\0132;.google" - + ".cloud.compute.v1.FutureResourcesSpecTargetResourcesH\002\210\001\001\022K\n" + + "\017location_policy\030\374\271\207\336\001 \001(\0132" + + ":.google.cloud.compute.v1.FutureResourcesSpecLocationPolicyH\001\210\001\001\022^\n" + + "\020target_resources\030\367\321\360\373\001 \001(\0132;.google.cloud.compute.v1" + + ".FutureResourcesSpecTargetResourcesH\002\210\001\001\022K\n" + "\017time_range_spec\030\257\314\3077" + " \001(\0132*.google.cloud.compute.v1.FlexibleTimeRangeH\003\210\001\001\"a\n" + "\016DeploymentType\022\035\n" @@ -14676,12 +14679,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_disk_interfaceB\017\n\r" + "_disk_size_gb\"\373\001\n" + "!FutureResourcesSpecLocationPolicy\022`\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132I.googl" - + "e.cloud.compute.v1.FutureResourcesSpecLocationPolicy.LocationsEntry\032t\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132I.google.cloud.compute.v" + + "1.FutureResourcesSpecLocationPolicy.LocationsEntry\032t\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022Q\n" - + "\005value\030\002 \001(\0132B.goog" - + "le.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation:\0028\001\"\270\001\n" + + "\005value\030\002 \001(\0132B.google.cloud.compute." + + "v1.FutureResourcesSpecLocationPolicyLocation:\0028\001\"\270\001\n" + ")FutureResourcesSpecLocationPolicyLocation\022\032\n\n" + "preference\030\333\371\362G \001(\tH\000\210\001\001\"`\n\n" + "Preference\022\030\n" @@ -14692,16 +14695,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_preference\"\354\001\n" + "\'FutureResourcesSpecSpecificSKUResources\022\036\n" + "\016instance_count\030\345\211\357$ \001(\003H\000\210\001\001\022_\n" - + "\024local_ssd_partitions\030\270\306\270\340\001 \003" - + "(\0132=.google.cloud.compute.v1.FutureResourcesSpecLocalSsdPartition\022\034\n" + + "\024local_ssd_partitions\030\270\306\270\340\001 \003(\0132=.google.cloud" + + ".compute.v1.FutureResourcesSpecLocalSsdPartition\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\001\210\001\001B\021\n" + "\017_instance_countB\017\n\r" + "_machine_type\"\246\002\n" + "\"FutureResourcesSpecTargetResources\022c\n" - + "\023aggregate_resources\030\245\247\237V \001" - + "(\0132>.google.cloud.compute.v1.FutureResourcesSpecAggregateResourcesH\000\210\001\001\022h\n" - + "\026specific_sku_resources\030\266\342\254\177 \001(\0132@.google.clou" - + "d.compute.v1.FutureResourcesSpecSpecificSKUResourcesH\001\210\001\001B\026\n" + + "\023aggregate_resources\030\245\247\237V \001(\0132>.google.cloud" + + ".compute.v1.FutureResourcesSpecAggregateResourcesH\000\210\001\001\022h\n" + + "\026specific_sku_resources\030\266\342\254\177" + + " \001(\0132@.google.cloud.compute.v1.Futu" + + "reResourcesSpecSpecificSKUResourcesH\001\210\001\001B\026\n" + "\024_aggregate_resourcesB\031\n" + "\027_specific_sku_resources\"\315\002\n" + "\017GRPCHealthCheck\022!\n" @@ -14863,14 +14867,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036GetHealthBackendServiceRequest\022!\n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022c\n" - + "!resource_group_reference_resource\030\323\376\3555" - + " \001(\0132/.google.cloud.compute.v1.ResourceGroupReferenceB\004\342A\001\002\"Q\n" + + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google." + + "cloud.compute.v1.ResourceGroupReferenceB\004\342A\001\002\"Q\n" + "\025GetHealthCheckRequest\022\036\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\"\210\001\n" + "\032GetHealthOperationMetadata\022Z\n" - + "\013health_info\030\261\351\230p \001(\013" - + "2=.google.cloud.compute.v1.GetHealthOperationMetadataHealthInfoH\000\210\001\001B\016\n" + + "\013health_info\030\261\351\230p \001(\0132=.google.cloud.c" + + "ompute.v1.GetHealthOperationMetadataHealthInfoH\000\210\001\001B\016\n" + "\014_health_info\"\221\t\n" + "$GetHealthOperationMetadataHealthInfo\022\'\n" + "\027availability_slo_status\030\377\240\207z \001(\tH\000\210\001\001\022\036\n\r" @@ -14911,8 +14915,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017backend_service\030\212\300\256\222\001 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022c\n" - + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google.c" - + "loud.compute.v1.ResourceGroupReferenceB\004\342A\001\002\"\211\001\n" + + "!resource_group_reference_resource\030\323\376\3555" + + " \001(\0132/.google.cloud.compute.v1.ResourceGroupReferenceB\004\342A\001\002\"\211\001\n" + "*GetHealthRegionCompositeHealthCheckRequest\022(\n" + "\026composite_health_check\030\235\300\326\336\001 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" @@ -14929,8 +14933,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\310\001\n" + "\032GetHealthTargetPoolRequest\022Y\n" - + "\033instance_reference_resource\030\354\344\326\213\001 \001(\0132*.google." - + "cloud.compute.v1.InstanceReferenceB\004\342A\001\002\022\030\n" + + "\033instance_reference_resource\030\354\344\326\213\001" + + " \001(\0132*.google.cloud.compute.v1.InstanceReferenceB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\034\n" + "\013target_pool\030\212\344\370\035 \001(\tB\004\342A\001\002\"w\n" @@ -14994,10 +14998,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\000\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" - + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002B#\n" + + "\004zone\030\254\307\344\001 \001", + "(\tB\004\342A\001\002B#\n" + "!_options_requested_policy_version\"\275\001\n" - + ".GetIamPolicyI", - "nterconnectAttachmentGroupRequest\0221\n" + + ".GetIamPolicyInterconnectAttachmentGroupRequest\0221\n" + " options_requested_policy_version\030\275\374\205\356\001" + " \001(\005H\000\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" @@ -15553,11 +15557,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002B\013\n" + "\t_priority\"j\n" + "\034GetScreenshotInstanceRequest\022\031\n" - + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\030\n" + + "\010instance\030\225\251\332\010 \001(\tB\004\342", + "A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"V\n" - + "\030GetSecu", - "rityPolicyRequest\022\030\n" + + "\030GetSecurityPolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002\"\260\001\n" + "\"GetSerialPortOutputInstanceRequest\022\031\n" @@ -15603,7 +15607,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\320\001\n" + "\024GetSubnetworkRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" - + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\034\n\n" + + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\034\n" + + "\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\004\342A\001\002\022\025\n" + "\005views\030\356\264\3005 \001(\tH\000\210\001\001\"F\n" + "\005Views\022\023\n" @@ -15651,15 +15656,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\222\001\n" + "\033GetVersionOperationMetadata\022^\n" - + "\020inline_sbom_info\030\232\216\260\003" - + " \001(\0132<.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfoH\000\210\001\001B\023\n" + + "\020inline_sbom_info\030\232\216\260\003 \001(\0132<.google.c" + + "loud.compute.v1.GetVersionOperationMetadataSbomInfoH\000\210\001\001B\023\n" + "\021_inline_sbom_info\"\256\003\n" + "#GetVersionOperationMetadataSbomInfo\022\202\001\n" - + "\032current_component_versions\030\243\270\252\202\001" - + " \003(\0132Z.google.cloud.compute.v" - + "1.GetVersionOperationMetadataSbomInfo.CurrentComponentVersionsEntry\022\200\001\n" - + "\031target_component_versions\030\213\202\376\244\001 \003(\0132Y.google.clo" - + "ud.compute.v1.GetVersionOperationMetadataSbomInfo.TargetComponentVersionsEntry\032?\n" + + "\032current_component_versions\030\243\270\252\202\001 \003(\0132Z" + + ".google.cloud.compute.v1.GetVersionOpera" + + "tionMetadataSbomInfo.CurrentComponentVersionsEntry\022\200\001\n" + + "\031target_component_versions\030\213\202\376\244\001" + + " \003(\0132Y.google.cloud.compute.v1.Get" + + "VersionOperationMetadataSbomInfo.TargetComponentVersionsEntry\032?\n" + "\035CurrentComponentVersionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032>\n" @@ -15671,19 +15677,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\020reservation_slot\030\221\275\247\204\001 \001(\tB\004\342A\001\002\022|\n" - + ".reservation_slots_get_version_request_resource\030\253\210\362\237\001 \001(\0132:.go" - + "ogle.cloud.compute.v1.ReservationSlotsGetVersionRequestB\004\342A\001\002\022\034\n" + + ".reservation_slots_get_version_request_resource\030\253\210\362\237\001" + + " \001(\0132:.google.cloud.comput" + + "e.v1.ReservationSlotsGetVersionRequestB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\341\002\n" + "$GetVersionReservationSubBlockRequest\022\035\n" + "\013parent_name\030\200\212\200\344\001 \001(\tB\004\342A\001\002\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n" + "\025reservation_sub_block\030\233\312\354\n" + " \001(\tB\004\342A\001\002\022\204\001\n" + "3reservation_sub_blocks_get_version_request_resource\030\265\372\254j" - + " \001(\0132>.google.clo" - + "ud.compute.v1.ReservationSubBlocksGetVersionRequestB\004\342A\001\002\022\034\n" + + " \001(\0132>.google.cloud.compute.v1.Res" + + "ervationSubBlocksGetVersionRequestB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"h\n" + "\024GetVpnGatewayRequest\022\030\n" @@ -15696,8 +15704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vpn_tunnel\030\223\224\312D \001(\tB\004\342A\001\002\"q\n" + "\023GetWireGroupRequest\022#\n" + "\022cross_site_network\030\325\305\3133 \001(\tB\004\342A\001\002\022\030\n" - + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\033\n" - + "\n" + + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\033\n\n" + "wire_group\030\305\244\267: \001(\tB\004\342A\001\002\"4\n" + "\030GetXpnHostProjectRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\"\335\001\n" @@ -15735,8 +15742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\006\210\001\001\"u\n" - + "\n" + + "\tself_link\030\215\222\305\331\001 \001(\tH\006\210\001\001\"u\n\n" + "BundleType\022\031\n" + "\025UNDEFINED_BUNDLE_TYPE\020\000\022\037\n" + "\027BUNDLE_TYPE_UNSPECIFIED\020\257\237\276\336\001\022\027\n" @@ -15757,8 +15763,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021network_endpoints\030\255\221\272G" + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1GlobalNetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G" - + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\277\001\n" + + "\021network_endpoints\030\255\221\272G \003(\0132(." + + "google.cloud.compute.v1.NetworkEndpoint\"\277\001\n" + "\"GlobalOrganizationSetPolicyRequest\0226\n" + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" @@ -15769,8 +15775,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_policy\"\321\001\n" + "\026GlobalSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132;.google.cloud.compute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;.go" + + "ogle.cloud.compute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -15786,16 +15792,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027GlobalVmExtensionPolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022f\n" - + "\022extension_policies\030\320\272\315l \003(\0132G.google.cloud.compute.v1.Glob" - + "alVmExtensionPolicy.ExtensionPoliciesEntry\022\020\n" + + "\022extension_policies\030\320\272\315l \003(\0132G.googl" + + "e.cloud.compute.v1.GlobalVmExtensionPolicy.ExtensionPoliciesEntry\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022`\n" - + "\022instance_selectors\030\312\302\214\370\001 \003(\0132@.google.cloud.compute.v1.G" - + "lobalVmExtensionPolicyInstanceSelector\022\024\n" + + "\022instance_selectors\030\312\302\214\370\001 \003(\0132@.go" + + "ogle.cloud.compute.v1.GlobalVmExtensionPolicyInstanceSelector\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\005\210\001\001\022d\n" - + "\021rollout_operation\030\331\320\214\350\001 \001(\0132@.google.cloud.comp" - + "ute.v1.GlobalVmExtensionPolicyRolloutOperationH\006\210\001\001\022&\n" + + "\021rollout_operation\030\331\320\214\350\001 " + + "\001(\0132@.google.cloud.compute.v1.GlobalVmExtensionPolicyRolloutOperationH\006\210\001\001\022&\n" + "\026scoped_resource_status\030\224\377\342V \001(\tH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022 \n" @@ -15803,8 +15809,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\032y\n" + "\026ExtensionPoliciesEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001" - + "(\0132?.google.cloud.compute.v1.GlobalVmExtensionPolicyExtensionPolicy:\0028\001\"\221\001\n" + + "\005value\030\002 \001(\0132?.google.cloud" + + ".compute.v1.GlobalVmExtensionPolicyExtensionPolicy:\0028\001\"\221\001\n" + "\024ScopedResourceStatus\022$\n" + " UNDEFINED_SCOPED_RESOURCE_STATUS\020\000\022\'\n" + "\037SCOPED_RESOURCE_STATUS_DELETING\020\363\247\336\300\001\022*\n" @@ -15826,20 +15832,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_pinned_versionB\020\n" + "\016_string_config\"\234\001\n" + "\'GlobalVmExtensionPolicyInstanceSelector\022^\n" - + "\016label_selector\030\312\361\344\246\001 \001(\0132=.google.cloud.compu" - + "te.v1.GlobalVmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + + "\016label_selector\030\312\361\344\246\001 \001" + + "(\0132=.google.cloud.compute.v1.GlobalVmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + "\017_label_selector\"\320\001\n" + "$GlobalVmExtensionPolicyLabelSelector\022p\n" - + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132R.google.cloud.compute" - + ".v1.GlobalVmExtensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + + "\020inclusion_labels\030\202\331\205\357\001 \003(\013" + + "2R.google.cloud.compute.v1.GlobalVmExten" + + "sionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + "\024InclusionLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\367\002\n" + "\033GlobalVmExtensionPolicyList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022B\n" - + "\005items\030\300\317\367/" - + " \003(\01320.google.cloud.compute.v1.GlobalVmExtensionPolicy\022\024\n" + + "\005items\030\300\317\367/ \003(\01320.google." + + "cloud.compute.v1.GlobalVmExtensionPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -15853,11 +15860,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\002\n" + "\'GlobalVmExtensionPolicyRolloutOperation\022k\n\r" - + "rollout_input\030\274\347\333~ \001(\0132L.google.cloud.compute.v1.GlobalVm" - + "ExtensionPolicyRolloutOperationRolloutInputH\000\210\001\001\022n\n" - + "\016rollout_status\030\300\344\226\343\001 \001(\0132M.g" - + "oogle.cloud.compute.v1.GlobalVmExtension" - + "PolicyRolloutOperationRolloutStatusH\001\210\001\001B\020\n" + + "rollout_input\030\274\347\333~ \001(\0132L.google.cl" + + "oud.compute.v1.GlobalVmExtensionPolicyRolloutOperationRolloutInputH\000\210\001\001\022n\n" + + "\016rollout_status\030\300\344\226\343\001 \001(\0132M.google.cloud.compu" + + "te.v1.GlobalVmExtensionPolicyRolloutOperationRolloutStatusH\001\210\001\001B\020\n" + "\016_rollout_inputB\021\n" + "\017_rollout_status\"\213\003\n" + "3GlobalVmExtensionPolicyRolloutOperationRolloutInput\022!\n" @@ -15876,25 +15882,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030_predefined_rollout_planB\r\n" + "\013_retry_uuid\"\307\002\n" + "4GlobalVmExtensionPolicyRolloutOperationRolloutStatus\022y\n" - + "\020current_rollouts\030\350\201\377\022 \003(" - + "\0132\\.google.cloud.compute.v1.GlobalVmExte" - + "nsionPolicyRolloutOperationRolloutStatusRolloutMetadata\022\177\n" - + "\020previous_rollout\030\351\370\225\263\001" - + " \001(\0132\\.google.cloud.compute.v1.GlobalVm" - + "ExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataH\000\210\001\001B\023\n" + + "\020current_rollouts\030\350\201\377\022 \003(\0132\\.google.cloud." + + "compute.v1.GlobalVmExtensionPolicyRollou" + + "tOperationRolloutStatusRolloutMetadata\022\177\n" + + "\020previous_rollout\030\351\370\225\263\001 \001(\0132\\.google.cl" + + "oud.compute.v1.GlobalVmExtensionPolicyRo" + + "lloutOperationRolloutStatusRolloutMetadataH\000\210\001\001B\023\n" + "\021_previous_rollout\"\323\005\n" + "CGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata\022\234\001\n" - + "\027location_rollout_status\030\212\200\312\204\001 \003(\0132w.go" - + "ogle.cloud.compute.v1.GlobalVmExtensionP" - + "olicyRolloutOperationRolloutStatusRolloutMetadata.LocationRolloutStatusEntry\022\030\n" + + "\027location_rollout_status\030\212\200\312\204\001 \003(\0132w.google.cloud.comput" + + "e.v1.GlobalVmExtensionPolicyRolloutOpera" + + "tionRolloutStatusRolloutMetadata.LocationRolloutStatusEntry\022\030\n" + "\007rollout\030\261\203\324\220\001 \001(\tH\000\210\001\001\022\035\n" + "\014rollout_plan\030\367\321\362\332\001 \001(\tH\001\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\002\210\001\001\032\260\001\n" + "\032LocationRolloutStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022\200\001\n" - + "\005value\030\002 \001(\0132q.google.cloud.compute." - + "v1.GlobalVmExtensionPolicyRolloutOperati" - + "onRolloutStatusRolloutMetadataLocationRolloutStatus:\0028\001\"\302\001\n" + + "\005value\030\002 \001(\0132q.google.cloud.compute.v1.GlobalVmExtens" + + "ionPolicyRolloutOperationRolloutStatusRo" + + "lloutMetadataLocationRolloutStatus:\0028\001\"\302\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\027\n" + "\017STATE_CANCELLED\020\343\315\367\376\001\022\026\n" @@ -15907,8 +15913,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_rolloutB\017\n\r" + "_rollout_planB\010\n" + "\006_state\"\347\002\n" - + "XGlobalVmExtensionPolicyR" - + "olloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus\022\025\n" + + "XGlobalVmExtensionPolicyRolloutOperationRo" + + "lloutStatusRolloutMetadataLocationRolloutStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\351\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\'\n" @@ -15930,8 +15936,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\005\210\001\001\0229\n" + "(subblock_infra_maintenance_pending_count\030\232\331\301\221\001" + " \001(\005H\006\210\001\001\022Y\n" - + "\032upcoming_group_maintenance\030\360\311\315\273\001" - + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + + "\032upcoming_group_maintenance\030\360\311\315\273\001 \001" + + "(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + "\016SchedulingType\022\035\n" + "\031UNDEFINED_SCHEDULING_TYPE\020\000\022\017\n" + "\007GROUPED\020\276\326\243\342\001\022*\n" @@ -15948,15 +15954,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017GuestAttributes\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\033\n\n" + "query_path\030\274\202\341\257\001 \001(\tH\001\210\001\001\022J\n" - + "\013query_value\030\272\256\221K" - + " \001(\0132-.google.cloud.compute.v1.GuestAttributesValueH\002\210\001\001\022\032\n" + + "\013query_value\030\272\256\221K \001(\0132-" + + ".google.cloud.compute.v1.GuestAttributesValueH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\034\n" + "\014variable_key\030\234\204\260N \001(\tH\004\210\001\001\022\036\n" + "\016variable_value\030\356\363\263; \001(\tH\005\210\001\001B\007\n" + "\005_kindB\r\n" + "\013_query_pathB\016\n" - + "\014_query_valueB\014\n" - + "\n" + + "\014_query_valueB\014\n\n" + "_self_linkB\017\n\r" + "_variable_keyB\021\n" + "\017_variable_value\"|\n" @@ -15968,8 +15973,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_namespaceB\010\n" + "\006_value\"W\n" + "\024GuestAttributesValue\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.GuestAttributesEntry\"\373\003\n" + + "\005items\030\300\317\367/ \003(\0132-" + + ".google.cloud.compute.v1.GuestAttributesEntry\"\373\003\n" + "\016GuestOsFeature\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\000\210\001\001\"\311\003\n" + "\004Type\022\022\n" @@ -16066,8 +16071,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_request_pathB\013\n" + "\t_response\"\306\001\n" + "#HealthAggregationPoliciesScopedList\022X\n" - + "\033health_aggregation_policies\030\220\210\342)" - + " \003(\01320.google.cloud.compute.v1.HealthAggregationPolicy\0229\n" + + "\033health_aggregation_policies\030\220\210\342) \003(\01320.google.cl" + + "oud.compute.v1.HealthAggregationPolicy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\252\005\n" @@ -16105,8 +16110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\347\003\n" + "%HealthAggregationPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022[\n" - + "\005items\030\300\317\367/ \003(\0132I.google.cloud.compute.v1.Heal" - + "thAggregationPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132I.googl" + + "e.cloud.compute.v1.HealthAggregationPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16115,8 +16120,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032j\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022K\n" - + "\005value\030\002 \001(\0132<.google.cloud.compute.v1." - + "HealthAggregationPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132<.g" + + "oogle.cloud.compute.v1.HealthAggregationPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16124,8 +16129,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\277\002\n" + "\033HealthAggregationPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022B\n" - + "\005items\030\300\317\367/" - + " \003(\01320.google.cloud.compute.v1.HealthAggregationPolicy\022\024\n" + + "\005items\030\300\317\367/ \003(\01320.googl" + + "e.cloud.compute.v1.HealthAggregationPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16133,31 +16138,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\344\013\n" + "\013HealthCheck\022#\n" + "\022check_interval_sec\030\256\257\343\244\001 \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022K\n" - + "\021grpc_health_check\030\346\247\344(" - + " \001(\0132(.google.cloud.compute.v1.GRPCHealthCheckH\003\210\001\001\022R\n" - + "\025grpc_tls_health_check\030\252\210\271\177" - + " \001(\0132+.google.cloud.compute.v1.GRPCTLSHealthCheckH\004\210\001\001\022\"\n" + + "\021grpc_health_check\030\346\247\344( \001(\0132(.go" + + "ogle.cloud.compute.v1.GRPCHealthCheckH\003\210\001\001\022R\n" + + "\025grpc_tls_health_check\030\252\210\271\177 \001(\0132+.g" + + "oogle.cloud.compute.v1.GRPCTLSHealthCheckH\004\210\001\001\022\"\n" + "\021healthy_threshold\030\311\220\242\300\001 \001(\005H\005\210\001\001\022M\n" - + "\022http2_health_check\030\332\265\265\005" - + " \001(\0132).google.cloud.compute.v1.HTTP2HealthCheckH\006\210\001\001\022L\n" - + "\021http_health_check\030\274\247\336\304\001" - + " \001(\0132(.google.cloud.compute.v1.HTTPHealthCheckH\007\210\001\001\022N\n" - + "\022https_health_check\030\271", - "\230\366\317\001" - + " \001(\0132).google.cloud.compute.v1.HTTPSHealthCheckH\010\210\001\001\022\020\n" + + "\022http2_health_check\030\332\265\265\005 \001(\0132).goog" + + "le.cloud.compute.v1.HTTP2HealthCheckH\006\210\001\001\022L\n" + + "\021http_health_check\030\274\247\336\304\001 \001(\0132(.googl", + "e.cloud.compute.v1.HTTPHealthCheckH\007\210\001\001\022N\n" + + "\022https_health_check\030\271\230\366\317\001 \001(\0132).google" + + ".cloud.compute.v1.HTTPSHealthCheckH\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022J\n\n" - + "log_config\030\235\321\301\247\001 \001(\013" - + "2-.google.cloud.compute.v1.HealthCheckLogConfigH\013\210\001\001\022\024\n" + + "log_config\030\235\321\301\247\001" + + " \001(\0132-.google.cloud.compute.v1.HealthCheckLogConfigH\013\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\r" + "\210\001\001\022\032\n" @@ -16165,8 +16168,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016source_regions\030\333\367\261\301\001 \003(\t\022J\n" + "\020ssl_health_check\030\270\351\303\205\001" + " \001(\0132\'.google.cloud.compute.v1.SSLHealthCheckH\017\210\001\001\022J\n" - + "\020tcp_health_check\030\203\252\215\340\001" - + " \001(\0132\'.google.cloud.compute.v1.TCPHealthCheckH\020\210\001\001\022\033\n" + + "\020tcp_health_check\030\203\252\215\340\001 " + + "\001(\0132\'.google.cloud.compute.v1.TCPHealthCheckH\020\210\001\001\022\033\n" + "\013timeout_sec\030\363\300\222& \001(\005H\021\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\022\210\001\001\022#\n" + "\023unhealthy_threshold\030\320\275\331l \001(\005H\023\210\001\001\"\215\001\n" @@ -16248,8 +16251,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\327\003\n" + " HealthCheckServiceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022V\n" - + "\005items\030\300\317\367/ \003(\0132D.g" - + "oogle.cloud.compute.v1.HealthCheckServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132D.google.cloud.compu" + + "te.v1.HealthCheckServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16258,8 +16261,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032d\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.go" - + "ogle.cloud.compute.v1.HealthCheckServicesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01326.google.cloud.comput" + + "e.v1.HealthCheckServicesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16270,8 +16273,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_health_check_service\"\266\002\n" + "\027HealthCheckServicesList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022=\n" - + "\005items\030\300\317\367/ \003(\0132+.g" - + "oogle.cloud.compute.v1.HealthCheckService\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132+.google.cloud.compute.v1.HealthCheckService\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -16290,8 +16293,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\304\003\n" + "\032HealthChecksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/" - + " \003(\0132>.google.cloud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.google.clo" + + "ud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16300,8 +16303,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/." - + "google.cloud.compute.v1.HealthChecksScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.compute.v1.HealthChecksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16343,8 +16346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_source_type\"\305\003\n" + "\032HealthSourceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/ \003(\0132>.google.cloud.compute.v" - + "1.HealthSourceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>" + + ".google.cloud.compute.v1.HealthSourceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -16353,8 +16356,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032^\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002" - + " \001(\01320.google.cloud.compute.v1.HealthSourcesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01320.google" + + ".cloud.compute.v1.HealthSourcesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -16363,8 +16366,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022HealthSourceHealth\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022U\n" - + "\007sources\030\270\267\362; \003(\0132A.google.cloud.comp" - + "ute.v1.HealthSourcesGetHealthResponseSourceInfo\"^\n" + + "\007sources\030\270\267\362; " + + "\003(\0132A.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo\"^\n" + "\013HealthState\022\032\n" + "\026UNDEFINED_HEALTH_STATE\020\000\022\017\n" + "\007HEALTHY\020\375\252\333\321\001\022\021\n" @@ -16386,8 +16389,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\347\001\n" + "(HealthSourcesGetHealthResponseSourceInfo\022b\n" - + "\010backends\030\337\230\313\363\001 \003(\0132L.google.cloud.compute." - + "v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo\022 \n" + + "\010backends\030\337\230\313\363\001 \003(\0132" + + "L.google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\022\n" + "\020_forwarding_ruleB\t\n" @@ -16406,8 +16409,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\362\006\n" + "\014HealthStatus\022N\n" - + "\013annotations\030\244\366\2655 \003(\0132" - + "6.google.cloud.compute.v1.HealthStatus.AnnotationsEntry\022 \n" + + "\013annotations\030\244\366\2655" + + " \003(\01326.google.cloud.compute.v1.HealthStatus.AnnotationsEntry\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\"\n" + "\022forwarding_rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\002\210\001\001\022\030\n" @@ -16444,14 +16447,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_weightB\017\n\r" + "_weight_error\"\324\005\n" + "\036HealthStatusForNetworkEndpoint\022R\n" - + "\017backend_service\030\212\300\256\222\001 \001(\01320.google.clo" - + "ud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" - + "\017forwarding_rule\030\376\245\335\200\001 \001(\01320.google" - + ".cloud.compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" - + "\014health_check\030\345\252\244\223\001 \001(\0132-.googl" - + "e.cloud.compute.v1.HealthCheckReferenceH\002\210\001\001\022[\n" - + "\024health_check_service\030\333\233\335\302\001 \001(\01324" - + ".google.cloud.compute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + + "\017backend_service\030\212\300\256\222\001" + + " \001(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + + "\017forwarding_rule\030\376\245\335\200\001" + + " \001(\01320.google.cloud.compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" + + "\014health_check\030\345\252\244\223\001" + + " \001(\0132-.google.cloud.compute.v1.HealthCheckReferenceH\002\210\001\001\022[\n" + + "\024health_check_service\030\333\233\335\302\001 \001(\01324.google.cloud.com" + + "pute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\004\210\001\001\022!\n" + "\021ipv6_health_state\030\306\200\340Z \001(\tH\005\210\001\001\"p\n" + "\013HealthState\022\032\n" @@ -16521,8 +16524,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\017\n\r" + "_path_matcher\"\224\001\n\n" + "HostStatus\022Q\n" - + "\021physical_topology\030\327\251\264\205\001" - + " \001(\0132-.google.cloud.compute.v1.HostPhysicalTopologyH\000\210\001\001\022\035\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\0132-.google" + + ".cloud.compute.v1.HostPhysicalTopologyH\000\210\001\001\022\035\n" + "\021running_instances\030\376\327\334\377\001 \003(\tB\024\n" + "\022_physical_topology\"\310\001\n" + "\026HostsGetVersionRequest\022\032\n" @@ -16555,24 +16558,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_http_statusB\r\n" + "\013_percentage\"\214\001\n" + "\016HttpFaultDelay\022?\n" - + "\013fixed_delay\030\370\271\226\227\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022\032\n\n" + + "\013fixed_delay\030\370\271\226\227\001 \001(\0132" + + "!.google.cloud.compute.v1.DurationH\000\210\001\001\022\032\n\n" + "percentage\030\232\345\267H \001(\001H\001\210\001\001B\016\n" + "\014_fixed_delayB\r\n" + "\013_percentage\"\250\001\n" + "\022HttpFaultInjection\022>\n" - + "\005abort\030\260\306\224, \001(\0132\'.g" - + "oogle.cloud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n" - + "\005delay\030\203\363\302-" - + " \001(\0132\'.google.cloud.compute.v1.HttpFaultDelayH\001\210\001\001B\010\n" + + "\005abort\030\260\306\224," + + " \001(\0132\'.google.cloud.compute.v1.HttpFaultAbortH\000\210\001\001\022>\n" + + "\005delay\030\203\363\302- " + + "\001(\0132\'.google.cloud.compute.v1.HttpFaultDelayH\001\210\001\001B\010\n" + "\006_abortB\010\n" + "\006_delay\"\374\001\n" + "\020HttpHeaderAction\022L\n" + "\026request_headers_to_add\030\346\256\261\"" + " \003(\0132).google.cloud.compute.v1.HttpHeaderOption\022$\n" + "\031request_headers_to_remove\030\237\317\223h \003(\t\022M\n" - + "\027response_headers_to_add\030\364\266\251\017" - + " \003(\0132).google.cloud.compute.v1.HttpHeaderOption\022%\n" + + "\027response_headers_to_add\030\364\266\251\017 \003" + + "(\0132).google.cloud.compute.v1.HttpHeaderOption\022%\n" + "\032response_headers_to_remove\030\321\201\373# \003(\t\"\260\003\n" + "\017HttpHeaderMatch\022\034\n" + "\013exact_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\033\n" @@ -16580,8 +16583,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014invert_match\030\234\310\372\356\001 \001(\010H\002\210\001\001\022\034\n" + "\014prefix_match\030\330\363\374z \001(\tH\003\210\001\001\022\035\n\r" + "present_match\030\301\372\223 \001(\010H\004\210\001\001\022E\n" - + "\013range_match\030\303\250\257." - + " \001(\0132(.google.cloud.compute.v1.Int64RangeMatchH\005\210\001\001\022\033\n" + + "\013range_match\030\303\250\257. \001(\0132" + + "(.google.cloud.compute.v1.Int64RangeMatchH\005\210\001\001\022\033\n" + "\013regex_match\030\315\267\2323 \001(\tH\006\210\001\001\022\035\n" + "\014suffix_match\030\327\346\256\313\001 \001(\tH\007\210\001\001B\016\n" + "\014_exact_matchB\016\n" @@ -16638,8 +16641,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_num_retriesB\022\n" + "\020_per_try_timeout\"\307\006\n" + "\017HttpRouteAction\022C\n" - + "\014cache_policy\030\217\271\213\332\001 \001(" - + "\0132$.google.cloud.compute.v1.CachePolicyH\000\210\001\001\022A\n" + + "\014cache_policy\030\217\271\213\332\001" + + " \001(\0132$.google.cloud.compute.v1.CachePolicyH\000\210\001\001\022A\n" + "\013cors_policy\030\204\314\235\276\001" + " \001(\0132#.google.cloud.compute.v1.CorsPolicyH\001\210\001\001\022T\n" + "\026fault_injection_policy\030\227\224\352\304\001" @@ -16648,14 +16651,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.DurationH\003\210\001\001\022S\n" + "\025request_mirror_policy\030\202\340\377h" + " \001(\0132,.google.cloud.compute.v1.RequestMirrorPolicyH\004\210\001\001\022F\n" - + "\014retry_policy\030\251\345\212\033" - + " \001(\0132(.google.cloud.compute.v1.HttpRetryPolicyH\005\210\001\001\022;\n" + + "\014retry_policy\030\251\345\212\033 \001" + + "(\0132(.google.cloud.compute.v1.HttpRetryPolicyH\005\210\001\001\022;\n" + "\007timeout\030\341\232\275\215\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022A\n" + "\013url_rewrite\030\274\375\252\202\001" + " \001(\0132#.google.cloud.compute.v1.UrlRewriteH\007\210\001\001\022V\n" - + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132/.goog" - + "le.cloud.compute.v1.WeightedBackendServiceB\017\n\r" + + "\031weighted_backend_services\030\321\307\332\240\001" + + " \003(\0132/.google.cloud.compute.v1.WeightedBackendServiceB\017\n\r" + "_cache_policyB\016\n" + "\014_cors_policyB\031\n" + "\027_fault_injection_policyB\026\n" @@ -16665,19 +16668,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_timeoutB\016\n" + "\014_url_rewrite\"\350\004\n\r" + "HttpRouteRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332`" - + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + + "\034custom_error_response_policy\030\353\370\332` \001(\0132" + + "2.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" - + "\013match_rules\030\375\273\261\263\001 " - + "\003(\0132+.google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + + "header_action\030\250\240\270\234\001 \001(\0132).goog" + + "le.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" + + "\013match_rules\030\375\273\261\263\001" + + " \003(\0132+.google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001 \001(\013" - + "2+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + "\035_custom_error_response_policyB\016\n" + "\014_descriptionB\020\n" + "\016_header_actionB\013\n" @@ -16687,15 +16690,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_url_redirect\"\365\003\n" + "\022HttpRouteRuleMatch\022\037\n" + "\017full_path_match\030\333\211\252f \001(\tH\000\210\001\001\022D\n" - + "\016header_matches\030\201\353\310\254\001" - + " \003(\0132(.google.cloud.compute.v1.HttpHeaderMatch\022\034\n" + + "\016header_matches\030\201\353\310\254\001 " + + "\003(\0132(.google.cloud.compute.v1.HttpHeaderMatch\022\034\n" + "\013ignore_case\030\375\222\264\335\001 \001(\010H\001\210\001\001\022E\n" - + "\020metadata_filters\030\353\315\314\335\001 \003" - + "(\0132\'.google.cloud.compute.v1.MetadataFilter\022$\n" + + "\020metadata_filters\030\353\315\314\335\001" + + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022$\n" + "\023path_template_match\030\232\302\263\213\001 \001(\tH\002\210\001\001\022\034\n" + "\014prefix_match\030\330\363\374z \001(\tH\003\210\001\001\022U\n" - + "\027query_parameter_matches\030\346\225\276\210\001 \003(\01320.google.cl" - + "oud.compute.v1.HttpQueryParameterMatch\022\033\n" + + "\027query_parameter_matches\030\346\225\276\210\001" + + " \003(\01320.google.cloud.compute.v1.HttpQueryParameterMatch\022\033\n" + "\013regex_match\030\315\267\2323 \001(\tH\004\210\001\001B\022\n" + "\020_full_path_matchB\016\n" + "\014_ignore_caseB\026\n" @@ -16706,8 +16709,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022#\n" + "\022archive_size_bytes\030\312\214\334\265\001 \001(\003H\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(" + + "\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022\027\n" @@ -16715,13 +16718,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022U\n" - + "\024image_encryption_key\030\207\316\373\264\001 \001(" - + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + + "\024image_encryption_key\030\207\316\373\264\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022>\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132*.google.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\0132*.goo" + + "gle.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022<\n" @@ -16796,11 +16799,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_source_snapshot_idB\016\n" + "\014_source_typeB\t\n" + "\007_status\"R\n" - + "\017ImageFamilyView\0225\n" + + "\017ImageFamilyView\022", + "5\n" + "\005image\030\333\322\352/" + " \001(\0132\036.google.cloud.compute.v1.ImageH\000\210\001\001B\010\n" - + "\006_imag", - "e\"\233\002\n" + + "\006_image\"\233\002\n" + "\tImageList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0220\n" + "\005items\030\300\317\367/ \003(\0132\036.google.cloud.compute.v1.Image\022\024\n" @@ -16815,8 +16818,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013ImageParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.google.cloud.comput" - + "e.v1.ImageParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(" + + "\0132=.google.cloud.compute.v1.ImageParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"L\n" @@ -16842,12 +16845,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\216\002\n" + "\022InitialStateConfig\0229\n" + "\003dbs\030\265\207\006 \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004dbxs\030\371\347\273\001 \003(\0132*." - + "google.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004keks\030\302\330\310\001" - + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022<\n" - + "\002pk\030\373\033 \001(\0132*.go" - + "ogle.cloud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + + "\004dbxs\030\371\347\273\001" + + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" + + "\004keks\030\302\330\310\001 \003(" + + "\0132*.google.cloud.compute.v1.FileContentBuffer\022<\n" + + "\002pk\030\373\033" + + " \001(\0132*.google.cloud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + "\003_pk\"\315\001\n" + "\024InsertAddressRequest\022D\n" + "\020address_resource\030\371\227\336\346\001 \001(\0132" @@ -16858,31 +16861,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\321\001\n" + "\027InsertAutoscalerRequest\022I\n" - + "\023autoscaler_resource\030\366\360\377b \001(\0132" - + "#.google.cloud.compute.v1.AutoscalerB\004\342A\001\002\022\"\n" + + "\023autoscaler_resource\030\366\360\377b" + + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\276\001\n" + "\032InsertBackendBucketRequest\022Q\n" - + "\027backend_bucket_resource\030\230\316\307\265\001" - + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001" + + "(\0132&.google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\301\001\n" + "\033InsertBackendServiceRequest\022S\n" - + "\030backend_service_resource\030\243\201\337\245\001" - + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'." + + "google.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\035InsertCrossSiteNetworkRequest\022W\n" - + "\033cross_site_network_resource\030\270\344\335\016" - + " \001(\0132).google.cloud.compute.v1.CrossSiteNetworkB\004\342A\001\002\022\"\n" + + "\033cross_site_network_resource\030\270\344\335\016 \001(\0132)." + + "google.cloud.compute.v1.CrossSiteNetworkB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\r" - + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r" - + "\n" + + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" + "\016_validate_only\"\356\001\n" + "\021InsertDiskRequest\022=\n\r" @@ -16895,14 +16897,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\017\n\r" + "_source_image\"\316\001\n" + "\037InsertExternalVpnGatewayRequest\022\\\n" - + "\035external_vpn_gateway_resource\030\210\337\220\350\001 \001(\0132+.google" - + ".cloud.compute.v1.ExternalVpnGatewayB\004\342A\001\002\022\"\n" + + "\035external_vpn_gateway_resource\030\210\337\220\350\001" + + " \001(\0132+.google.cloud.compute.v1.ExternalVpnGatewayB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\325\001\n" + "\033InsertFirewallPolicyRequest\022S\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'.google" - + ".cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022(\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022(\n" + "\tparent_id\030\320\341\232\333\001 \001(\tB\014\362G" + "\tparent_idH\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\014\n\n" @@ -16923,8 +16925,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\350\001\n" + "\036InsertFutureReservationRequest\022Y\n" - + "\033future_reservation_resource\030\235\230\310\336\001" - + " \001(\0132*.google.cloud.compute.v1.FutureReservationB\004\342A\001\002\022\"\n" + + "\033future_reservation_resource\030\235\230\310\336\001 \001" + + "(\0132*.google.cloud.compute.v1.FutureReservationB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -16936,33 +16938,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\307\001\n" + "!InsertGlobalForwardingRuleRequest\022S\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\0132\'.goo" - + "gle.cloud.compute.v1.ForwardingRuleB\004\342A\001\002\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n" - + "\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001" + + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\004\342A\001\002\022\"\n" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\332\001\n" + "\'InsertGlobalNetworkEndpointGroupRequest\022`\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001" - + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\004\342A\001\002\022\"\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.googl" + + "e.cloud.compute.v1.NetworkEndpointGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\335\001\n" + ")InsertGlobalPublicDelegatedPrefixeRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022a\n" - + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google.cl" - + "oud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026" + + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\335\001\n" + "$InsertGlobalVmExtensionPolicyRequest\022f\n" - + "#global_vm_extension_policy_resource\030\217\330\2650" - + " \001(\01320.google.cloud.compute.v1.GlobalVmExtensionPolicyB\004\342A\001\002\022\"\n" + + "#global_vm_extension_policy_resource\030\217\330\2650 \001(\01320." + + "google.cloud.compute.v1.GlobalVmExtensionPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\267\001\n" + "\030InsertHealthCheckRequest\022L\n" - + "\025health_check_resource\030\250\303\244`" - + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + + "\025health_check_resource\030\250\303\244` \001(\0132$.go" + + "ogle.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\324\001\n" @@ -16972,11 +16973,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\036.google.cloud.compute.v1.ImageB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n\r" - + "_force_createB\r\n" + + "_force_createB\r" + + "\n" + "\013_request_id\"\361\001\n" + "!InsertInstanceGroupManagerRequest\022_\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.googl" - + "e.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -16984,8 +16986,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InsertInstanceGroupManagerResizeRequestRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022|\n" + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" - + " \001(\0132:.google.clou" - + "d.compute.v1.InstanceGroupManagerResizeRequestB\004\342A\001\002\022\"\n" + + " \001(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -16998,10 +16999,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\322\002\n" + "\025InsertInstanceRequest\022E\n" - + "\021instance_resource\030\370\360\376f \001(\013" - + "2!.google.cloud.compute.v1.InstanceB\004\342A\001\002\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n" - + "\n" + + "\021instance_resource\030\370\360\376f" + + " \001(\0132!.google.cloud.compute.v1.InstanceB\004\342A\001\002\022\"\n" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(\tH\001\210\001\001\022$\n" + "\024source_machine_image\030\277\334\260\n" @@ -17011,54 +17011,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_source_instance_templateB\027\n" + "\025_source_machine_image\"\306\001\n" + "\035InsertInstanceTemplateRequest\022V\n" - + "\032instance_template_resource\030\211\352\213\005 \001(\0132)" - + ".google.cloud.compute.v1.InstanceTemplateB\004\342A\001\002\022\"\n" + + "\032instance_template_resource\030\211\352\213\005" + + " \001(\0132).google.cloud.compute.v1.InstanceTemplateB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\271\002\n" + "!InsertInstantSnapshotGroupRequest\022_\n" - + "\037instant_snapshot_group_resource\030\313\232\226E" - + " \001(\0132-.google.cloud.compute.v1.InstantSnapshotGroupB\004\342A\001\002\022\"\n" + + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.google" + + ".cloud.compute.v1.InstantSnapshotGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022)\n" + "\030source_consistency_group\030\364\314\257\375\001 \001(" + "\tH\001\210\001\001\022\034\n" - + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r" - + "\n" + + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_idB\033\n" + "\031_source_consistency_group\"\342\001\n" + "\034InsertInstantSnapshotRequest\022U\n" - + "\031instant_snapshot_resource\030\313\252\210\267\001 \001(\0132(.goo" - + "gle.cloud.compute.v1.InstantSnapshotB\004\342A\001\002\022\"\n" + + "\031instant_snapshot_resource\030\313\252\210\267\001" + + " \001(\0132(.google.cloud.compute.v1.InstantSnapshotB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\350\001\n" + "(InsertInterconnectAttachmentGroupRequest\022m\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004" - + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\004\342A\001\002\022\"\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.google." + + "cloud.compute.v1.InterconnectAttachmentGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\002\n" + "#InsertInterconnectAttachmentRequest\022b\n" - + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.google" - + ".cloud.compute.v1.InterconnectAttachmentB\004\342A\001\002\022\"\n" + + " interconnect_attachment_resource\030\371\244\240e" + + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n\r" - + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r" + + "\n" + "\013_request_idB\020\n" + "\016_validate_only\"\311\001\n" + "\036InsertInterconnectGroupRequest\022X\n" - + "\033interconnect_group_resource\030\237\363\346( " - + "\001(\0132*.google.cloud.compute.v1.InterconnectGroupB\004\342A\001\002\022\"\n" + + "\033interconnect_group_resource\030\237\363\346(" + + " \001(\0132*.google.cloud.compute.v1.InterconnectGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\272\001\n" + "\031InsertInterconnectRequest\022N\n" - + "\025interconnect_resource\030\237\241\314\275\001 \001(\0132%." - + "google.cloud.compute.v1.InterconnectB\004\342A\001\002\022\"\n" + + "\025interconnect_resource\030\237\241\314\275\001" + + " \001(\0132%.google.cloud.compute.v1.InterconnectB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\001\n" @@ -17069,24 +17069,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\360\001\n" + "\031InsertMachineImageRequest\022N\n" - + "\026machine_image_resource\030\352\252\373\034 \001(\013" - + "2%.google.cloud.compute.v1.MachineImageB\004\342A\001\002\022\"\n" + + "\026machine_image_resource\030\352\252\373\034" + + " \001(\0132%.google.cloud.compute.v1.MachineImageB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\022\n" + "\020_source_instance\"\353\001\n" + "\036InsertNetworkAttachmentRequest\022X\n" - + "\033network_attachment_resource\030\231\360\314d" - + " \001(\0132*.google.cloud.compute.v1.NetworkAttachmentB\004\342A\001\002\022\"\n" + + "\033network_attachment_resource\030\231\360\314d \001(\0132*.g" + + "oogle.cloud.compute.v1.NetworkAttachmentB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\272\002\n" + "\'InsertNetworkEdgeSecurityServiceRequest\022m\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(\01323.googl" - + "e.cloud.compute.v1.NetworkEdgeSecurityServiceB\004\342A\001\002\022\"\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001" + + " \001(\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -17095,15 +17095,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\020\n" + "\016_validate_only\"\362\001\n" + "!InsertNetworkEndpointGroupRequest\022`\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001" - + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\004\342A\001\002\022\"\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132" + + "-.google.cloud.compute.v1.NetworkEndpointGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\310\001\n" + "\"InsertNetworkFirewallPolicyRequest\022S\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'" + + ".google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\252\001\n" @@ -17133,8 +17133,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tparent_id\030\320\341\232\333\001 \001(\tB\014\362G" + "\tparent_idH\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022R\n" - + "\030security_policy_resource\030\374\252\211g" - + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002B\014\n\n" + + "\030security_policy_resource\030\374\252\211g \001(\0132" + + "\'.google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002B\014\n\n" + "_parent_idB\r\n" + "\013_request_id\"\346\001\n" + "\034InsertPacketMirroringRequest\022U\n" @@ -17147,14 +17147,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\332\001\n" + "$InsertPublicAdvertisedPrefixeRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022c\n" - + "!public_advertised_prefix_resource\030\217\327\262o" - + " \001(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefixB\004\342A\001\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.google" + + ".cloud.compute.v1.PublicAdvertisedPrefixB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "#InsertPublicDelegatedPrefixeRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022a\n" - + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google.clo" - + "ud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022 \n" + + " public_delegated_prefix_resource\030\205\370\330\026" + + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -17168,41 +17168,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\346\001\n" + " InsertRegionBackendBucketRequest\022Q\n" - + "\027backend_bucket_resource\030\230\316\307\265\001" - + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&." + + "google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\351\001\n" + "!InsertRegionBackendServiceRequest\022S\n" - + "\030backend_service_resource\030\243\201\337\245\001" - + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.googl" + + "e.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\333\001\n" + "\035InsertRegionCommitmentRequest\022I\n" - + "\023commitment_resource\030\370\243\273t \001(\0132#.go" - + "ogle.cloud.compute.v1.CommitmentB\004\342A\001\002\022\"\n" + + "\023commitment_resource\030\370\243\273t" + + " \001(\0132#.google.cloud.compute.v1.CommitmentB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\373\001\n" + "\'InsertRegionCompositeHealthCheckRequest\022_\n" - + "\037composite_health_check_resource\030\360\313\204? \001(\0132" - + "-.google.cloud.compute.v1.CompositeHealthCheckB\004\342A\001\002\022\"\n" + + "\037composite_health_check_resource\030\360\313\204?" + + " \001(\0132-.google.cloud.compute.v1.CompositeHealthCheckB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\027InsertRegionDiskRequest\022=\n\r" - + "disk_resource\030\360\320\253\014" - + " \001(\0132\035.google.cloud.compute.v1.DiskB\004\342A\001\002\022\"\n" + + "disk_resource\030\360\320\253\014 \001" + + "(\0132\035.google.cloud.compute.v1.DiskB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -17211,12 +17210,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\017\n\r" + "_source_image\"\205\002\n" + "*InsertRegionHealthAggregationPolicyRequest\022f\n" - + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320.google" - + ".cloud.compute.v1.HealthAggregationPolicyB\004\342A\001\002\022\"\n" + + "\"health_aggregation_policy_resource\030\273\273\373\213\001" + + " \001(\01320.google.cloud.compute.v1.HealthAggregationPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n" - + "\n" + + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\337\001\n" + "\036InsertRegionHealthCheckRequest\022L\n" @@ -17228,8 +17226,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "%InsertRegionHealthCheckServiceRequest\022\\\n" - + "\035health_check_service_resource\030\362\233\320\343\001 \001(\0132+.google" - + ".cloud.compute.v1.HealthCheckServiceB\004\342A\001\002\022\"\n" + + "\035health_check_service_resource\030\362\233\320\343\001" + + " \001(\0132+.google.cloud.compute.v1.HealthCheckServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -17244,8 +17242,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\373\001\n" + "\'InsertRegionInstanceGroupManagerRequest\022_\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.goog" - + "le.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -17253,24 +17251,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\316\002\n" + "4InsertRegionInstanceGroupManagerResizeRequestRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022|\n" - + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001 \001(\0132:." - + "google.cloud.compute.v1.InstanceGroupManagerResizeRequestB\004\342A\001\002\022\"\n" + + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" + + " \001(\0132:.google.cloud.comp" + + "ute.v1.InstanceGroupManagerResizeRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\356\001\n" + "#InsertRegionInstanceTemplateRequest\022V\n" - + "\032instance_template_resource\030\211\352\213\005" - + " \001(\0132).google.cloud.compute.v1.InstanceTemplateB\004\342A\001\002\022\"\n" + + "\032instance_template_resource\030\211\352\213\005 \001(\0132)" + + ".google.cloud.compute.v1.InstanceTemplateB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n\n" + + "\342A\001\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\303\002\n" + "\'InsertRegionInstantSnapshotGroupRequest\022_\n" - + "\037instant_snapshot_group_resource\030\313\232\226E \001(\0132-.google.cloud" - + ".compute.v1.InstantSnapshotGroupB\004\342A\001\002\022\"\n" + + "\037instant_snapshot_group_resource\030\313\232\226E" + + " \001(\0132-.google.cloud.compute.v1.InstantSnapshotGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -17287,25 +17287,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\374\001\n" + "\'InsertRegionNetworkEndpointGroupRequest\022`\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.google" - + ".cloud.compute.v1.NetworkEndpointGroupB\004\342A\001\002\022\"\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\360\001\n" + "(InsertRegionNetworkFirewallPolicyRequest\022S\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\013" - + "2\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n" - + "\n" + + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\373\001\n" + "\'InsertRegionNotificationEndpointRequest\022_\n" - + "\036notification_endpoint_resource\030\244\372\261\241\001" - + " \001(\0132-.google.cloud.compute.v1.NotificationEndpointB\004\342A\001\002\022\"\n" + + "\036notification_endpoint_resource\030\244\372\261\241\001 \001(\0132-.google" + + ".cloud.compute.v1.NotificationEndpointB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -17326,16 +17325,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022F\n" - + "\021snapshot_resource\030\251\270\301\345\001" - + " \001(\0132!.google.cloud.compute.v1.SnapshotB\004\342A\001\002B\r\n" + + "\021snapshot_resource\030\251\270\301\345\001 \001" + + "(\0132!.google.cloud.compute.v1.SnapshotB\004\342A\001\002B\r\n" + "\013_request_id\"\350\001\n" + "!InsertRegionSslCertificateRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n\n" + + "\342A\001\002\362G\006", + "region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030ssl_certificate_resource\030", - "\211\324\225V \001(\0132\'.google.cloud.compute.v1.SslCertificateB\004\342A\001\002B\r\n" + + "\030ssl_certificate_resource\030\211\324\225V" + + " \001(\0132\'.google.cloud.compute.v1.SslCertificateB\004\342A\001\002B\r" + + "\n" + "\013_request_id\"\332\001\n" + "\034InsertRegionSslPolicyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -17359,8 +17360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022X\n" + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\004\342A\001\002B\r" - + "\n" + + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\004\342A\001\002B\r\n" + "\013_request_id\"\351\001\n" + "!InsertRegionTargetTcpProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -17390,8 +17390,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030resource_policy_resource\030\312\214\321$ " - + "\001(\0132\'.google.cloud.compute.v1.ResourcePolicyB\004\342A\001\002B\r\n" + + "\030resource_policy_resource\030\312\214\321$" + + " \001(\0132\'.google.cloud.compute.v1.ResourcePolicyB\004\342A\001\002B\r\n" + "\013_request_id\"\267\001\n" + "\030InsertRolloutPlanRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -17416,8 +17416,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033InsertSecurityPolicyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030security_policy_resource\030\374\252\211g \001(\0132\'.go" - + "ogle.cloud.compute.v1.SecurityPolicyB\004\342A\001\002\022\035\n\r" + + "\030security_policy_resource\030\374\252\211g" + + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" + "\016_validate_only\"\354\001\n" @@ -17426,8 +17426,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Y\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001(\013" - + "2*.google.cloud.compute.v1.ServiceAttachmentB\004\342A\001\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001" + + " \001(\0132*.google.cloud.compute.v1.ServiceAttachmentB\004\342A\001\002B\r\n" + "\013_request_id\"\256\001\n" + "\025InsertSnapshotRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -17438,14 +17438,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033InsertSslCertificateRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\030ssl_certificate_resource\030\211\324\225V" - + " \001(\0132\'.google.cloud.compute.v1.SslCertificateB\004\342A\001\002B\r\n" + + "\030ssl_certificate_resource\030\211\324\225V \001(\0132\'" + + ".google.cloud.compute.v1.SslCertificateB\004\342A\001\002B\r\n" + "\013_request_id\"\262\001\n" + "\026InsertSslPolicyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n" - + "\023ssl_policy_resource\030\310\210\212\203\001 \001(" - + "\0132\".google.cloud.compute.v1.SslPolicyB\004\342A\001\002B\r\n" + + "\023ssl_policy_resource\030\310\210\212\203\001" + + " \001(\0132\".google.cloud.compute.v1.SslPolicyB\004\342A\001\002B\r\n" + "\013_request_id\"\325\001\n" + "\030InsertStoragePoolRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -17492,8 +17492,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022J\n" - + "\024target_pool_resource\030\243\335\2450 \001(\0132#." - + "google.cloud.compute.v1.TargetPoolB\004\342A\001\002B\r\n" + + "\024target_pool_resource\030\243\335\2450" + + " \001(\0132#.google.cloud.compute.v1.TargetPoolB\004\342A\001\002B\r\n" + "\013_request_id\"\301\001\n" + "\033InsertTargetSslProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -17512,15 +17512,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022V\n" - + "\033target_vpn_gateway_resource\030\202\263\036" - + " \001(\0132).google.cloud.compute.v1.TargetVpnGatewayB\004\342A\001\002B\r\n" + + "\033target_vpn_gateway_resource\030\202\263\036 \001(" + + "\0132).google.cloud.compute.v1.TargetVpnGatewayB\004\342A\001\002B\r\n" + "\013_request_id\"\250\001\n" + "\023InsertUrlMapRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022B\n" + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\004\342A\001\002B\r" - + "\n" + + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\004\342A\001\002B\r\n" + "\013_request_id\"\326\001\n" + "\027InsertVpnGatewayRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -17528,7 +17527,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022J\n" + "\024vpn_gateway_resource\030\224\267\216W" - + " \001(\0132#.google.cloud.compute.v1.VpnGatewayB\004\342A\001\002B\r\n" + + " \001(\0132#.google.cloud.compute.v1.VpnGatewayB\004\342A\001\002B\r" + + "\n" + "\013_request_id\"\323\001\n" + "\026InsertVpnTunnelRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -17550,16 +17550,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"InsertZoneVmExtensionPolicyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n" - + "\034vm_extension_policy_resource\030\363\371\361\365\001" - + " \001(\0132*.google.cloud.compute.v1.VmExtensionPolicyB\004\342A\001\002\022\034\n" - + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" - + "\013_request_id\"\201!\n" + + "\034vm_extension_policy_resource\030\363\371\361\365\001 \001(\0132*" + + ".google.cloud.compute.v1.VmExtensionPolicyB\004\342A\001\002\022\034\n" + + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r" + + "\n" + + "\013_request_id\"\201!\n" + "\010Instance\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001 \001" - + "(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.google.cloud" + + ".compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001" - + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + + "\034confidential_instance_config\030\365\222\372\351\001 \001(\01323.go" + + "ogle.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + "\014cpu_platform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n" @@ -17568,19 +17569,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016display_device\030\363\210\274{" + " \001(\0132&.google.cloud.compute.v1.DisplayDeviceH\007\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\010\210\001\001\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.go" - + "ogle.cloud.compute.v1.AcceleratorConfig\022\030\n" + + "\022guest_accelerators\030\357\314\207\335\001" + + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022\030\n" + "\010hostname\030\263\270\205q \001(\tH\t\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022W\n" - + "\027instance_encryption_key\030\215\301\357\036 \001(\0132" - + "..google.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + + "\027instance_encryption_key\030\215\301\357\036" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\014\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\r" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\016\210\001\001\022A\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132-.google.cloud.compute.v1.Instance.LabelsEntry\022%\n" + + "\006labels\030\377\277\301\356\001 \003(\0132-.g" + + "oogle.cloud.compute.v1.Instance.LabelsEntry\022%\n" + "\024last_start_timestamp\030\320\243\321\323\001 \001(\tH\017\210\001\001\022$\n" + "\023last_stop_timestamp\030\342\333\354\304\001 \001(\tH\020\210\001\001\022)\n" + "\030last_suspended_timestamp\030\211\251\361\251\001 \001(\tH\021\210\001\001\022)\n" @@ -17590,20 +17591,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.MetadataH\024\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\025\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\026\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031 \003(" - + "\0132).google.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001" - + " \001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\027\210\001\001\022?\n" - + "\006params\030\206\363\253% \001(\0132" - + "\'.google.cloud.compute.v1.InstanceParamsH\030\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031" + + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001 \001(\01321.google.clo" + + "ud.compute.v1.NetworkPerformanceConfigH\027\210\001\001\022?\n" + + "\006params\030\206\363\253%" + + " \001(\0132\'.google.cloud.compute.v1.InstanceParamsH\030\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\031\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001" - + "(\0132,.google.cloud.compute.v1.ReservationAffinityH\032\210\001\001\022\034\n" + + "\024reservation_affinity\030\273\270\242K" + + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\032\210\001\001\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022H\n" + "\017resource_status\030\303\372\367v" - + " \001(\0132\'.google.cloud.compute.v1.ResourceStatusH\033\210\001\001\022\036\n" - + "\r" + + " \001(\0132\'.google.cloud.compute.v1.ResourceStatusH\033\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\034\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\035\210\001\001\022@\n\n" + "scheduling\030\224\313\261\270\001" @@ -17613,19 +17613,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" + "\030shielded_instance_config\030\265\213\221\006" + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH \210\001\001\022l\n" - + "\"shielded_instance_integrity_policy\030\227\242\207N" - + " \001(\01328.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH!\210\001\001\022$\n" + + "\"shielded_instance_integrity_policy\030\227\242\207N \001(\01328.google.clo" + + "ud.compute.v1.ShieldedInstanceIntegrityPolicyH!\210\001\001\022$\n" + "\024source_machine_image\030\277\334\260\n" + " \001(\tH\"\210\001\001\022c\n" - + "#source_machine_image_encryption_key\030\243\373\371[ \001(\0132..goog" - + "le.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022 \n" + + "#source_machine_image_encryption_key\030\243\373\371[" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022 \n" + "\020start_restricted\030\330\320\375: \001(\010H$\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH%\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH&\210\001\001\0223\n" + "\004tags\030\231\350\330\001" + " \001(\0132\035.google.cloud.compute.v1.TagsH\'\210\001\001\022Z\n" - + "\030workload_identity_config\030\233\202\242\241\001 \001(\0132/.google.cl" - + "oud.compute.v1.WorkloadIdentityConfigH(\210\001\001\022\024\n" + + "\030workload_identity_config\030\233\202\242\241\001" + + " \001(\0132/.google.cloud.compute.v1.WorkloadIdentityConfigH(\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH)\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -17688,8 +17688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_reservation_affinityB\022\n" + "\020_resource_statusB\020\n" + "\016_satisfies_pziB\020\n" - + "\016_satisfies_pzsB\r" - + "\n" + + "\016_satisfies_pzsB\r\n" + "\013_schedulingB\014\n\n" + "_self_linkB\033\n" + "\031_shielded_instance_configB%\n" @@ -17704,8 +17703,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026InstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(" - + "\0132:.google.cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google.cloud." + + "compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17714,16 +17713,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.google." - + "cloud.compute.v1.InstancesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.compute.v1.InstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\027InstanceConsumptionData\022R\n" - + "\020consumption_info\030\322\345\344E \001(\0132" - + "0.google.cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + + "\020consumption_info\030\322\345\344E" + + " \001(\01320.google.cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001B\023\n" + "\021_consumption_infoB\013\n" + "\t_instance\"\320\001\n" @@ -17738,15 +17737,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_min_node_cpus\"\207\002\n" + "\031InstanceFlexibilityPolicy\022j\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132J.google.clo" - + "ud.compute.v1.InstanceFlexibilityPolicy.InstanceSelectionsEntry\032~\n" + + " \003(\0132J.google.cloud.compute.v1.Ins" + + "tanceFlexibilityPolicy.InstanceSelectionsEntry\032~\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132C" - + ".google.cloud.compute.v1.InstanceFlexibilityPolicyInstanceSelection:\0028\001\"\325\001\n" + + "\005value\030\002 \001(\0132C.google.cloud.com" + + "pute.v1.InstanceFlexibilityPolicyInstanceSelection:\0028\001\"\325\001\n" + "*InstanceFlexibilityPolicyInstanceSelection\0227\n" - + "\005disks\030\366\314\312-" - + " \003(\0132%.google.cloud.compute.v1.AttachedDisk\022\030\n\r" + + "\005disks\030\366\314\312- \003(\0132" + + "%.google.cloud.compute.v1.AttachedDisk\022\030\n\r" + "machine_types\030\201\335\201& \003(\t\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\000\210\001\001\022\024\n" + "\004rank\030\254\230\325\001 \001(\003H\001\210\001\001B\023\n" @@ -17782,8 +17781,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\310\003\n" + "\033InstanceGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" - + "\005items\030\300\317\367/" - + " \003(\0132?.google.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132?.goo" + + "gle.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17792,8 +17791,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002" - + " \001(\01321.google.cloud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01321.google.cl" + + "oud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -17813,24 +17812,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\367\023\n" + "\024InstanceGroupManager\022e\n" - + "\024all_instances_config\030\201\256\3305 \001" - + "(\0132?.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" - + "\025auto_healing_policies\030\205\347\350\331\001 \003(\0132>.google.clo" - + "ud.compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132?.google.cloud" + + ".compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" + + "\025auto_healing_policies\030\205\347\350\331\001" + + " \003(\0132>.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + "\022base_instance_name\030\207\226\305\271\001 \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\\\n" - + "\017current_actions\030\267\310\234N \001(\0132;.googl" - + "e.cloud.compute.v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + + "\017current_actions\030\267\310\234N \001(\0132;.google.cloud.compute.v" + + "1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022Q\n" - + "\023distribution_policy\030\315\356\362\376\001 \001(" - + "\0132+.google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + + "\023distribution_policy\030\315\356\362\376\001" + + " \001(\0132+.google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022s\n" - + "\033instance_flexibility_policy\030\202\216\354\014 \001(\0132F.google.cloud.comput" - + "e.v1.InstanceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + + "\033instance_flexibility_policy\030\202\216\354\014 \001(" + + "\0132F.google.cloud.compute.v1.InstanceGrou" + + "pManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tH\t\210\001\001\022p\n" - + "\031instance_lifecycle_policy\030\221\264\315\325\001" - + " \001(\0132D.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.google.c" + + "loud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + "\210\001\001\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n" @@ -17841,26 +17841,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\".google.cloud.compute.v1.NamedPort\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022`\n" + "\021resource_policies\030\341\234\314\n" - + " \001(\0132=.google.cloud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + + " \001(\0132=.google.cl" + + "oud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022[\n" - + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.goog" - + "le.cloud.compute.v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google.cloud.compute." + + "v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + "\017stateful_policy\030\205\303\325\026" + " \001(\0132\'.google.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" - + "\006status\030\362\237\267V \001(\01323.google" - + ".cloud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + + "\006status\030\362\237\267V" + + " \001(\01323.google.cloud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + "\014target_pools\030\251\237\240\240\001 \003(\t\022\033\n" + "\013target_size\030\357\363\375\035 \001(\005H\027\210\001\001\022a\n" - + "\022target_size_policy\030\202\333\263= \001(\0132=.google.cloud.compute.v" - + "1.InstanceGroupManagerTargetSizePolicyH\030\210\001\001\022#\n" + + "\022target_size_policy\030\202\333\263= \001(\0132=" + + ".google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicyH\030\210\001\001\022#\n" + "\023target_stopped_size\030\241\326\223\001 \001(\005H\031\210\001\001\022&\n" + "\025target_suspended_size\030\323\210\364\222\001 \001(\005H\032\210\001\001\022X\n\r" - + "update_policy\030\350\312\352S \001(\01329.google.clou" - + "d.compute.v1.InstanceGroupManagerUpdatePolicyH\033\210\001\001\022I\n" - + "\010versions\030\233\375\271M \003(\01324.google" - + ".cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + + "update_policy\030\350\312\352S" + + " \001(\01329.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicyH\033\210\001\001\022I\n" + + "\010versions\030\233\375\271M" + + " \003(\01324.google.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\034\210\001\001\"n\n" + "\033ListManagedInstancesResults\022,\n" + "(UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS\020\000\022\017\n" @@ -17897,11 +17898,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\323\004\n" + "\"InstanceGroupManagerActionsSummary\022\033\n\n" + "abandoning\030\315\362\350\321\001 \001(\005H\000\210\001\001\022\030\n" - + "\010creating\030\271\335\205d \001(\005H\001\210\001\001\022)\n" + + "\010creatin", + "g\030\271\335\205d \001(\005H\001\210\001\001\022)\n" + "\030creating_without_retries\030\311\366\261\260\001" + " \001(\005H\002\210\001\001\022\031\n" - + "\010d", - "eleting\030\250\307\357\206\001 \001(\005H\003\210\001\001\022\024\n" + + "\010deleting\030\250\307\357\206\001 \001(\005H\003\210\001\001\022\024\n" + "\004none\030\270\336\316\001 \001(\005H\004\210\001\001\022\033\n\n" + "recreating\030\354\263\326\241\001 \001(\005H\005\210\001\001\022\032\n\n" + "refreshing\030\247\246\305f \001(\005H\006\210\001\001\022\033\n\n" @@ -17918,8 +17919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_creating_without_retriesB\013\n" + "\t_deletingB\007\n" + "\005_noneB\r\n" - + "\013_recreatingB\r" - + "\n" + + "\013_recreatingB\r\n" + "\013_refreshingB\r\n" + "\013_restartingB\013\n" + "\t_resumingB\013\n" @@ -17929,8 +17929,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_verifying\"\335\003\n" + "\"InstanceGroupManagerAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1.In" - + "stanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.goo" + + "gle.cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17939,16 +17939,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002" - + " \001(\01328.google.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.go" + + "ogle.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\205\001\n" + "&InstanceGroupManagerAllInstancesConfig\022L\n\n" - + "properties\030\263\232\266F \001" - + "(\01320.google.cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + + "properties\030\263\232\266F \001(\01320.google.cloud" + + ".compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + "\013_properties\"\220\001\n" + "%InstanceGroupManagerAutoHealingPolicy\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001\022!\n" @@ -17957,12 +17957,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_sec\"\304\002\n" + "-InstanceGroupManagerInstanceFlexibilityPolicy\022~\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132^.google.cloud.compute.v1.InstanceGroupManagerInstanceFlex" - + "ibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + + " \003(\0132^.google.cloud.compute.v1.InstanceG" + + "roupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022f\n" - + "\005value\030\002 \001(\0132W.google.cloud.compute.v1." - + "InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"\351\001\n" + + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.InstanceGroupMana" + + "gerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"\351\001\n" + ">InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection\0227\n" + "\005disks\030\366\314\312-" + " \003(\0132%.google.cloud.compute.v1.AttachedDisk\022\030\n\r" @@ -17975,8 +17975,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031default_action_on_failure\030\325\304\242\035 \001(\tH\000\210\001\001\022\'\n" + "\026force_update_on_repair\030\313\371\362\251\001 \001(\tH\001\210\001\001\022&\n" + "\026on_failed_health_check\030\307\327\375\022 \001(\tH\002\210\001\001\022h\n" - + "\ton_repair\030\355\213\246\261\001 \001(\0132L.google.cloud.compute" - + ".v1.InstanceGroupManagerInstanceLifecyclePolicyOnRepairH\003\210\001\001\"d\n" + + "\ton_repair\030\355\213\246\261\001 \001(\0132L.google.cloud.compute.v1.InstanceGroup" + + "ManagerInstanceLifecyclePolicyOnRepairH\003\210\001\001\"d\n" + "\026DefaultActionOnFailure\022\'\n" + "#UNDEFINED_DEFAULT_ACTION_ON_FAILURE\020\000\022\022\n\n" + "DO_NOTHING\020\371\317\231\327\001\022\r\n" @@ -18029,8 +18029,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\n" + "\210\001\001\022X\n" - + "\006status\030\362\237\267V \001(\013" - + "2@.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatusH\013\210\001\001\022\024\n" + + "\006status\030\362\237\267V \001(\0132@.google.cloud.c" + + "ompute.v1.InstanceGroupManagerResizeRequestStatusH\013\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\014\210\001\001\"\217\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\017\n" @@ -18054,10 +18054,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_statusB\007\n" + "\005_zone\"\347\001\n" + "\'InstanceGroupManagerResizeRequestStatus\0225\n" - + "\005error\030\210\244\223. " - + "\001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.clou" - + "d.compute.v1.InstanceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + + "\005error\030\210\244\223." + + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v1.Inst" + + "anceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + "\006_errorB\017\n\r" + "_last_attempt\"u\n" + "2InstanceGroupManagerResizeRequestStatusLastAttempt\0225\n" @@ -18066,8 +18066,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_error\"\334\002\n" + ".InstanceGroupManagerResizeRequestsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google.cloud.com" - + "pute.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18091,22 +18091,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_secB\007\n" + "\005_mode\"\351\006\n" + "\032InstanceGroupManagerStatus\022k\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132E.goog" - + "le.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022r\n" - + "\036applied_accelerator_topologies\030\243\357\305\345\001 \003(\0132F.goog" - + "le.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology\022\033\n\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.compute." + + "v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022r\n" + + "\036applied_accelerator_topologies\030\243\357\305\345\001" + + " \003(\0132F.google.cloud.compute." + + "v1.InstanceGroupManagerStatusAcceleratorTopology\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\001\210\001\001\022r\n" - + "\027bulk_instance_operation\030\212\255\233\357\001" - + " \001(\0132H.google.cloud.compute.v1.In" - + "stanceGroupManagerStatusBulkInstanceOperationH\002\210\001\001\022t\n" - + "\031current_instance_statuses\030\304\356\274\200\001" - + " \001(\0132H.google.cloud.compute.v1.Inst" - + "anceGroupManagerStatusInstanceStatusSummaryH\003\210\001\001\022\031\n" + + "\027bulk_instance_operation\030\212\255\233\357\001 \001(\0132H.goo" + + "gle.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationH\002\210\001\001\022t\n" + + "\031current_instance_statuses\030\304\356\274\200\001 \001(\0132H.googl" + + "e.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummaryH\003\210\001\001\022\031\n" + "\tis_stable\030\360\357\3303 \001(\010H\004\210\001\001\022U\n" - + "\010stateful\030\314\346\310t \001(\0132;.google.cloud.compute." - + "v1.InstanceGroupManagerStatusStatefulH\005\210\001\001\022a\n" - + "\016version_target\030\330\335\376\211\001 \001(\0132@.google." - + "cloud.compute.v1.InstanceGroupManagerStatusVersionTargetH\006\210\001\001B\027\n" + + "\010stateful\030\314\346\310t \001(\0132" + + ";.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulH\005\210\001\001\022a\n" + + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud.compute.v1." + + "InstanceGroupManagerStatusVersionTargetH\006\210\001\001B\027\n" + "\025_all_instances_configB\r\n" + "\013_autoscalerB\032\n" + "\030_bulk_instance_operationB\034\n" @@ -18117,9 +18116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-InstanceGroupManagerStatusAcceleratorTopology\022%\n" + "\024accelerator_topology\030\303\263\322\271\001 \001(\tH\000\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\001\210\001\001\022\204\001\n\r" - + "state_details\030\224\371\310- \001(\0132e.google.cloud." - + "compute.v1.InstanceGroupManagerStatusAcc" - + "eleratorTopologyAcceleratorTopologyStateDetailsH\002\210\001\001\"\215\001\n" + + "state_details\030\224\371\310- \001(\0132e.google.cloud.compute.v1.Instan" + + "ceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsH\002\210\001\001\"\215\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\022\n\n" + "ACTIVATING\020\360\331\321\264\001\022\016\n" @@ -18144,8 +18142,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_effective\"\367\001\n" + "/InstanceGroupManagerStatusBulkInstanceOperation\022\034\n" + "\013in_progress\030\207\300\327\230\001 \001(\010H\000\210\001\001\022~\n" - + "\023last_progress_check\030\277\242\276c \001(\0132Y.google.cloud.compute.v" - + "1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckH\001\210\001\001B\016\n" + + "\023last_progress_check\030\277\242\276c \001(\0132Y" + + ".google.cloud.compute.v1.InstanceGroupMa" + + "nagerStatusBulkInstanceOperationLastProgressCheckH\001\210\001\001B\016\n" + "\014_in_progressB\026\n" + "\024_last_progress_check\"\254\001\n" + "@InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck\0225\n" @@ -18185,9 +18184,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_terminated\"\360\001\n" + "\"InstanceGroupManagerStatusStateful\022#\n" + "\023has_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022t\n" - + "\024per_instance_configs\030\251\325\370\372\001 \001" - + "(\0132M.google.cloud.compute.v1.InstanceGro" - + "upManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.google.cloud" + + ".compute.v1.InstanceGroupManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + "\024_has_stateful_configB\027\n" + "\025_per_instance_configs\"h\n" + "4InstanceGroupManagerStatusStatefulPerInstanceConfigs\022\036\n\r" @@ -18207,8 +18205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " InstanceGroupManagerUpdatePolicy\022-\n" + "\034instance_redistribution_type\030\230\337\304\213\001 \001(" + "\tH\000\210\001\001\022C\n" - + "\tmax_surge\030\223\311\243\220\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.FixedOrPercentH\001\210\001\001\022I\n" + + "\tmax_surge\030\223\311\243\220\001" + + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\001\210\001\001\022I\n" + "\017max_unavailable\030\365\313\213\301\001" + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\002\210\001\001\022\037\n" + "\016minimal_action\030\224\215\202\201\001 \001(\tH\003\210\001\001\022.\n" @@ -18271,27 +18269,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0InstanceGroupManagersDeletePerInstanceConfigsReq\022\020\n" + "\005names\030\310\256\3571 \003(\t\"\244\001\n" + "\'InstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/" - + " \003(\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(\01322.google." + + "cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\261\001\n" + "1InstanceGroupManagersListManagedInstancesResponse\022G\n" - + "\021managed_instances\030\336\233\251\240\001 \003(\0132(." - + "google.cloud.compute.v1.ManagedInstance\022\037\n" + + "\021managed_instances\030\336\233\251\240\001" + + " \003(\0132(.google.cloud.compute.v1.ManagedInstance\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\353\001\n" + "/InstanceGroupManagersListPerInstanceConfigsResp\022<\n" - + "\005items\030\300\317\367/ \003" - + "(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\001\210\001\001B\022\n" - + "\020_next_page_tokenB\n" - + "\n" + + "\020_next_page_tokenB\n\n" + "\010_warning\"\177\n" + "/InstanceGroupManagersPatchPerInstanceConfigsReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001" - + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"E\n" + + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132*" + + ".google.cloud.compute.v1.PerInstanceConfig\"E\n" + "-InstanceGroupManagersRecreateInstancesRequest\022\024\n" + "\tinstances\030\376\374\357\r" + " \003(\t\"C\n" @@ -18299,8 +18296,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tinstances\030\376\374\357\r" + " \003(\t\"\273\001\n" + "\037InstanceGroupManagersScopedList\022Q\n" - + "\027instance_group_managers\030\220\372\211f \003(\0132-.google" - + ".cloud.compute.v1.InstanceGroupManager\0229\n" + + "\027instance_group_managers\030\220\372\211f" + + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"k\n" @@ -18326,15 +18323,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\tB\020\n" + "\016_force_suspend\"\200\001\n" + "0InstanceGroupManagersUpdatePerInstanceConfigsReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132" - + "*.google.cloud.compute.v1.PerInstanceConfig\"e\n" + + "\024per_instance_configs\030\251\325\370\372\001" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"e\n" + "!InstanceGroupsAddInstancesRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"\276\002\n" + "\033InstanceGroupsListInstances\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/." + + "google.cloud.compute.v1.InstanceWithNamedPorts\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18343,7 +18340,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\241\001\n" + "\"InstanceGroupsListInstancesRequest\022\036\n" + "\016instance_state\030\347\360\374+ \001(\tH\000\210\001\001\"H\n\r" @@ -18376,8 +18374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\253\002\n" + "\025InstanceListReferrers\022\020\n" @@ -18394,11 +18391,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\274\002\n" + "\031InstanceManagedByIgmError\022]\n" - + "\005error\030\210\244\223. \001(\0132F.google.cloud.compute.v1." - + "InstanceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" - + "\027instance_action_details\030\243\374\253\213\001" - + " \001(\0132G.google.cloud.compute.v1.Instan" - + "ceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + + "\005error\030\210\244\223. \001(\0132F.g" + + "oogle.cloud.compute.v1.InstanceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" + + "\027instance_action_details\030\243\374\253\213\001 \001(\0132G.google." + + "cloud.compute.v1.InstanceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010\n" + "\006_errorB\032\n" + "\030_instance_action_detailsB\014\n\n" @@ -18406,8 +18402,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InstanceManagedByIgmErrorInstanceActionDetails\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001" - + " \001(\0132/.google.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + + "\007version\030\330\271\324\247\001 \001(\0132/.google.c" + + "loud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + "\006Action\022\024\n" + "\020UNDEFINED_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -18439,53 +18435,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016InstanceParams\022M\n" + "\032request_valid_for_duration\030\335\226\2677" + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132@.google.cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google." + + "cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\035\n" + "\033_request_valid_for_duration\"\314\023\n" + "\022InstanceProperties\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.google.clou" - + "d.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001" + + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001 \001(\01323.g" - + "oogle.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + + "\034confidential_instance_config\030\365\222\372\351\001" + + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001" - + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.g" + + "oogle.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\01327.google.cloud.compute.v1.InstanceProperties.LabelsEntry\022)\n" + + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud." + + "compute.v1.InstanceProperties.LabelsEntry\022)\n" + "\031local_ssd_encryption_mode\030\320\343\3749 \001(\tH\005\210\001\001\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\006\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\007\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\010\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031" - + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001" - + " \001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\t\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031 \003(\013" + + "2).google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001 " + + "\001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\t\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\n" + "\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K \001(\0132,.goog" - + "le.cloud.compute.v1.ReservationAffinityH\013\210\001\001\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132" - + "D.google.cloud.compute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + + "\024reservation_affinity\030\273\270\242K" + + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\013\210\001\001\022g\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.co" + + "mpute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022@\n\n" - + "scheduling\030\224\313\261\270\001 " - + "\001(\0132#.google.cloud.compute.v1.SchedulingH\014\210\001\001\022E\n" + + "scheduling\030\224\313\261\270\001" + + " \001(\0132#.google.cloud.compute.v1.SchedulingH\014\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" - + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.goog" - + "le.cloud.compute.v1.ShieldedInstanceConfigH\r" + + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.google.cloud.compute.", + "v1.ShieldedInstanceConfigH\r" + "\210\001\001\0223\n" - + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.", - "compute.v1.TagsH\016\210\001\001\022Z\n" - + "\030workload_identity_config\030\233\202\242\241\001" - + " \001(\0132/.google.cloud.compute.v1.WorkloadIdentityConfigH\017\210\001\001\032-\n" + + "\004tags\030\231\350\330\001" + + " \001(\0132\035.google.cloud.compute.v1.TagsH\016\210\001\001\022Z\n" + + "\030workload_identity_config\030\233\202\242\241\001 \001(" + + "\0132/.google.cloud.compute.v1.WorkloadIdentityConfigH\017\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032:\n" @@ -18525,10 +18521,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_workload_identity_config\"\340\002\n" + "\027InstancePropertiesPatch\022%\n" + "\024expose_host_topology\030\353\263\253\314\001 \001(\010H\000\210\001\001\022P\n" - + "\006labels\030\377\277\301\356\001 \003" - + "(\0132<.google.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" - + "\010metadata\030\257\366\265)" - + " \003(\0132>.google.cloud.compute.v1.InstancePropertiesPatch.MetadataEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132<.google.cloud" + + ".compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" + + "\010metadata\030\257\366\265) \003(\0132>.google.cl" + + "oud.compute.v1.InstancePropertiesPatch.MetadataEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" @@ -18542,16 +18538,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020InstanceSettings\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022K\n" - + "\010metadata\030\257\366\265) \001(\01321.google.cloud.c" - + "ompute.v1.InstanceSettingsMetadataH\002\210\001\001\022\024\n" + + "\010metadata\030\257\366\265)" + + " \001(\01321.google.cloud.compute.v1.InstanceSettingsMetadataH\002\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\003\210\001\001B\016\n" + "\014_fingerprintB\007\n" + "\005_kindB\013\n" + "\t_metadataB\007\n" + "\005_zone\"\267\001\n" + "\030InstanceSettingsMetadata\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.go" - + "ogle.cloud.compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud.comput" + + "e.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\032,\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -18568,8 +18564,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\010\210\001\001\022U\n" - + "\026source_instance_params\030\314\320\304@ \001(\0132-." - + "google.cloud.compute.v1.SourceInstanceParamsH\t\210\001\001B\025\n" + + "\026source_instance_params\030\314\320\304@" + + " \001(\0132-.google.cloud.compute.v1.SourceInstanceParamsH\t\210\001\001B\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\005\n" + "\003_idB\007\n" @@ -18582,8 +18578,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_source_instance_params\"\270\003\n" + "\036InstanceTemplateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google" - + ".cloud.compute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.compute.v1" + + ".InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18591,8 +18587,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 " - + "\001(\01324.google.cloud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.google.clou" + + "d.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18613,8 +18609,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n" + "\033InstanceTemplatesScopedList\022I\n" - + "\022instance_templates\030\217\270\245\333\001" - + " \003(\0132).google.cloud.compute.v1.InstanceTemplate\0229\n" + + "\022instance_templates\030\217\270\245\333\001 \003(\0132)" + + ".google.cloud.compute.v1.InstanceTemplate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\244\003\n" @@ -18643,16 +18639,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resource_policies\030\341\234\314\n" + " \003(\t\"\212\002\n" + "$InstancesBulkInsertOperationMetadata\022t\n" - + "\023per_location_status\030\232\351\204P \003(\0132T.google.cloud.compute.v1" - + ".InstancesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + + "\023per_location_status\030\232\351\204P \003(\0132T." + + "google.cloud.compute.v1.InstancesBulkIns" + + "ertOperationMetadata.PerLocationStatusEntry\032l\n" + "\026PerLocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.goo" - + "gle.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + "&InstancesGetEffectiveFirewallsResponse\022t\n" - + "\020firewall_policys\030\302\312\374\303\001 " - + "\003(\0132V.google.cloud.compute.v1.InstancesG" - + "etEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.google.clou" + + "d.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\254\004\n" + "=InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" @@ -18661,8 +18657,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026packet_mirroring_rules\030\304\377\300\375\001" + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" - + "\005rules\030\367\221\3653 \003(\0132+.goog" - + "le.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" + + "\005rules\030\367\221\3653" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" + "short_name\030\356\270\320\352\001 \001(\tH\003\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"\231\001\n" + "\004Type\022\022\n" @@ -18683,8 +18679,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\"\310\002\n" + "\"InstancesReportHostAsFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022`\n\r" - + "fault_reasons\030\222\253\221P \003" - + "(\0132F.google.cloud.compute.v1.InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + + "fault_reasons\030\222\253\221P \003(\0132F.google.cloud" + + ".compute.v1.InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\016\n" @@ -18711,15 +18707,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\327\001\n" + "\031InstancesSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022R\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132>.google.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132>.g" + + "oogle.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" + "\022_label_fingerprint\"q\n" + "#InstancesSetMachineResourcesRequest\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001" - + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\"O\n" + + "\022guest_accelerators\030\357\314\207\335\001 \003(\013" + + "2*.google.cloud.compute.v1.AcceleratorConfig\"O\n" + "\036InstancesSetMachineTypeRequest\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\000\210\001\001B\017\n\r" + "_machine_type\"Z\n" @@ -18740,8 +18736,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"w\n" + "&InstancesStartWithEncryptionKeyRequest\022M\n" - + "\005disks\030\366\314\312-" - + " \003(\0132;.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\275\013\n" + + "\005disks\030\366\314\312- \003(\0132;.goog" + + "le.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\275\013\n" + "\017InstantSnapshot\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -18750,14 +18746,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n" - + "\006labels\030\377\277\301\356\001 \003(\01324.goo" - + "gle.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01324.google.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022F\n" - + "\006params\030\206\363\253%" - + " \001(\0132..google.cloud.compute.v1.InstantSnapshotParamsH\010\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001(\0132..googl" + + "e.cloud.compute.v1.InstantSnapshotParamsH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022W\n" - + "\017resource_status\030\303\372\367v \001(\01326.goo" - + "gle.cloud.compute.v1.InstantSnapshotResourceStatusH\n" + + "\017resource_status\030\303\372\367v" + + " \001(\01326.google.cloud.compute.v1.InstantSnapshotResourceStatusH\n" + "\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\013\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\014\210\001\001\022\032\n" @@ -18809,8 +18805,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\316\003\n" + "\035InstantSnapshotAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.google.cloud.compute.v1." - + "InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.g" + + "oogle.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18819,8 +18815,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.googl" + + "e.cloud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18833,8 +18829,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\005\210\001\001\022\\\n" - + "\017resource_status\030\303\372\367v \001(\0132;.google.cloud.compute.v1." - + "InstantSnapshotGroupResourceStatusH\006\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v \001(\0132;.g" + + "oogle.cloud.compute.v1.InstantSnapshotGroupResourceStatusH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022)\n" + "\030source_consistency_group\030\364\314\257\375\001 \001(\tH\t\210\001\001\022\026\n" @@ -18867,8 +18863,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"InstantSnapshotGroupResourceStatus\0227\n" + "&consistency_membership_resolution_time\030\236\265\247\245\001 \001(" + "\tH\000\210\001\001\022U\n" - + "\013source_info\030\322\234\276\327\001 \001(\01327.google.cloud.com" - + "pute.v1.InstantSnapshotGroupSourceInfoH\001\210\001\001B)\n" + + "\013source_info\030\322\234\276\327\001" + + " \001(\01327.google.cloud.compute.v1.InstantSnapshotGroupSourceInfoH\001\210\001\001B)\n" + "\'_consistency_membership_resolution_timeB\016\n" + "\014_source_info\"\231\001\n" + "\036InstantSnapshotGroupSourceInfo\022\"\n" @@ -18878,8 +18874,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_consistency_group_id\"\257\002\n" + "\023InstantSnapshotList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/ \003(\0132(" - + ".google.cloud.compute.v1.InstantSnapshot\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132(.google.cloud.compute.v1.InstantSnapshot\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18891,8 +18887,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\277\001\n" + "\025InstantSnapshotParams\022j\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132G.google.cloud" - + ".compute.v1.InstantSnapshotParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132G.google.cloud.compute.v1.Insta" + + "ntSnapshotParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"[\n" @@ -18913,9 +18910,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014Interconnect\022\034\n" + "\013aai_enabled\030\313\242\261\271\001 \001(\010H\000\210\001\001\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\001\210\001\001\022r\n" - + "\036application_aware_interconnect\030\236\370\315\314\001" - + " \001(\0132A.google.cloud.compute.v" - + "1.InterconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + + "\036application_aware_interconnect\030\236\370\315\314\001 \001(\0132A" + + ".google.cloud.compute.v1.InterconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + "\022available_features\030\363\271\326\354\001 \003(\t\022J\n\r" + "circuit_infos\030\257\203\315N" + " \003(\01320.google.cloud.compute.v1.InterconnectCircuitInfo\022\"\n" @@ -18923,8 +18919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "customer_name\030\314\334\337\001 \001(\tH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022#\n" + "\022effective_location\030\315\246\226\220\001 \001(\tH\006\210\001\001\022T\n" - + "\020expected_outages\030\233\352\216~ \003(\01327" - + ".google.cloud.compute.v1.InterconnectOutageNotification\022\"\n" + + "\020expected_outages\030\233\352\216~ \003(\01327.google.cloud.com" + + "pute.v1.InterconnectOutageNotification\022\"\n" + "\021google_ip_address\030\242\205\245\323\001 \001(\tH\007\210\001\001\022$\n" + "\023google_reference_id\030\325\265\212\377\001 \001(\tH\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022$\n" @@ -18934,19 +18930,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + + "\006labels\030\377\277\301\356\001 \003(\01321.goog" + + "le.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + "\tlink_type\030\337\210\276\371\001 \001(\tH\r" + "\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\016\210\001\001\022D\n" - + "\006macsec\030\242\301\227\374\001" - + " \001(\0132+.google.cloud.compute.v1.InterconnectMacsecH\017\210\001\001\022\036\n" + + "\006macsec\030\242\301\227\374\001 \001(\0132" + + "+.google.cloud.compute.v1.InterconnectMacsecH\017\210\001\001\022\036\n" + "\016macsec_enabled\030\244\241\315\\ \001(\010H\020\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\021\210\001\001\022!\n" + "\021noc_contact_email\030\200\370\332\006 \001(\tH\022\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\023\210\001\001\022C\n" - + "\006params\030\206\363\253%" - + " \001(\0132+.google.cloud.compute.v1.InterconnectParamsH\024\210\001\001\022\037\n" + + "\006params\030\206\363\253% \001(\0132+.goog" + + "le.cloud.compute.v1.InterconnectParamsH\024\210\001\001\022\037\n" + "\017peer_ip_address\030\331\227\207c \001(\tH\025\210\001\001\022\'\n" + "\026provisioned_link_count\030\365\322\366\303\001 \001(\005H\026\210\001\001\022 \n" + "\017remote_location\030\216\217\327\232\001 \001(\tH\027\210\001\001\022\036\n" @@ -19018,14 +19014,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\n\n" + "\010_subzone\"\247\004\n" + "(InterconnectApplicationAwareInterconnect\022\207\001\n" - + "\033bandwidth_percentage_policy\030\351\334\226Y" - + " \001(\0132Z.google.cloud.compute.v1.Intercon" - + "nectApplicationAwareInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + + "\033bandwidth_percentage_policy\030\351\334\226Y \001(\0132Z.google.cl" + + "oud.compute.v1.InterconnectApplicationAw" + + "areInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + "\023profile_description\030\346\354\250} \001(\tH\001\210\001\001\022z\n" - + "\031shape_average_percentages\030\331\270\364{ \003(\0132T.google.cloud.compute" - + ".v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\022}\n" - + "\026strict_priority_policy\030\267\225\227E \001(\0132U.google.cloud.comput" - + "e.v1.InterconnectApplicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + + "\031shape_average_percentages\030\331\270\364{ \003(\013" + + "2T.google.cloud.compute.v1.InterconnectA" + + "pplicationAwareInterconnectBandwidthPercentage\022}\n" + + "\026strict_priority_policy\030\267\225\227E \001(" + + "\0132U.google.cloud.compute.v1.Interconnect" + + "ApplicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + "\034_bandwidth_percentage_policyB\026\n" + "\024_profile_descriptionB\031\n" + "\027_strict_priority_policy\"\210\002\n" @@ -19044,9 +19042,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_percentageB\020\n" + "\016_traffic_class\"\273\001\n" + "AInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy\022v\n" - + "\025bandwidth_percentages\030\213\375\243o" - + " \003(\0132T.google.cloud.compute.v1.Interconn" - + "ectApplicationAwareInterconnectBandwidthPercentage\">\n" + + "\025bandwidth_percentages\030\213\375\243o \003(\0132T.google.clo" + + "ud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\">\n" + ".google.cloud.compute.v1.InterconnectAttachmentPartnerMetadataH\037\210\001\001\022e\n" - + "\031private_interconnect_info\030\203\354\221q \001(\0132:.google.c" - + "loud.compute.v1.InterconnectAttachmentPrivateInfoH \210\001\001\022\026\n" + + "\020partner_metadata\030\306\341\266\037 \001(\0132>.google.cloud" + + ".compute.v1.InterconnectAttachmentPartnerMetadataH\037\210\001\001\022e\n" + + "\031private_interconnect_info\030\203\354\221q" + + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentPrivateInfoH" + + " \210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH!\210\001\001\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\"\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tH#\210\001\001\022\036\n\r" @@ -19209,8 +19208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_vlan_tag8021q\"\343\003\n" + "$InterconnectAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n" - + "\005items\030\300\317\367/ \003(\0132" - + "H.google.cloud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132H.google.cloud.co" + + "mpute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19219,8 +19218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001" - + "(\0132:.google.cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google.cloud" + + ".compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -19228,9 +19227,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + ".InterconnectAttachmentConfigurationConstraints\022\030\n" + "\007bgp_md5\030\212\350\363\261\001 \001(\tH\000\210\001\001\022w\n" - + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V" - + ".google.cloud.compute.v1.InterconnectAtt" - + "achmentConfigurationConstraintsBgpPeerASNRange\"b\n" + + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.google.cloud.com" + + "pute.v1.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + "\006BgpMd5\022\025\n" + "\021UNDEFINED_BGP_MD5\020\000\022\024\n" + "\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n" @@ -19245,27 +19243,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_maxB\006\n" + "\004_min\"\201\007\n" + "\033InterconnectAttachmentGroup\022^\n" - + "\013attachments\030\260\227\317\237\001 \003(\0132E.google.cloud.compute." - + "v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.google" - + ".cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + + "\013attachments\030\260\227\317\237\001 \003(\0132" + + "E.google.cloud.compute.v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud.compute.v1" + + ".InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\0132:.google.clou" - + "d.compute.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + + "\006intent\030\234\355\304\313\001" + + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tH\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022g\n" - + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.comp" - + "ute.v1.InterconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.compute.v1.Interconne" + + "ctAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\032r\n" + "\020AttachmentsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.goog" - + "le.cloud.compute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + + "\005value\030\002 \001(\0132>.google.cloud.compute." + + "v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -19281,14 +19279,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "attachment\030\243\262\335W \001(\tH\000\210\001\001B\r\n" + "\013_attachment\"\256\001\n" + "%InterconnectAttachmentGroupConfigured\022p\n" - + "\020availability_sla\030\304\270\263\341\001 \001(\0132M.google.cloud.compute.v" - + "1.InterconnectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + + "\020availability_sla\030\304\270\263\341\001 \001(\0132M" + + ".google.cloud.compute.v1.InterconnectAtt" + + "achmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + "\021_availability_sla\"\212\003\n" + "4InterconnectAttachmentGroupConfiguredAvailabilitySLA\022\035\n\r" + "effective_sla\030\220\325\337D \001(\tH\000\210\001\001\022\203\001\n" - + "\025intended_sla_blockers\030\204\255\346\325\001" - + " \003(\0132`.google.cloud.compute.v1.Interconn" - + "ectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`.google.clo" + + "ud.compute.v1.InterconnectAttachmentGrou" + + "pConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + "\014EffectiveSla\022\033\n" + "\027UNDEFINED_EFFECTIVE_SLA\020\000\022!\n" + "\031EFFECTIVE_SLA_UNSPECIFIED\020\250\247\220\352\001\022\r\n" @@ -19326,23 +19325,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PRODUCTION_NON_CRITICAL\020\267\275\3757B\023\n" + "\021_availability_sla\"\215\001\n" + "+InterconnectAttachmentGroupLogicalStructure\022^\n" - + "\007regions\030\377\357\362\005 \003(\0132J.google.cloud.compute.v1.Interconnec" - + "tAttachmentGroupLogicalStructureRegion\"\273\001\n" + + "\007regions\030\377\357\362\005 \003(\0132J.google.cloud" + + ".compute.v1.InterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + "1InterconnectAttachmentGroupLogicalStructureRegion\022c\n" - + "\006metros\030\372\354\227\376\001 \003(\0132O.googl" - + "e.cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + + "\006metros\030\372\354\227\376\001 \003(\0132O.google.cloud.compute.v" + + "1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\312\001\n" + "6InterconnectAttachmentGroupLogicalStructureRegionMetro\022o\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132W.google" - + ".cloud.compute.v1.InterconnectAttachment" - + "GroupLogicalStructureRegionMetroFacility\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud.compute.v1" + + ".InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\327\001\n" + ">InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022m\n" - + "\005zones\030\307\244\2557 \003(\0132[.google.cloud" - + ".compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.compute.v1.Inter" + + "connectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + "\t_facility\"|\n" + "BInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone\022\027\n" + "\013attachments\030\260\227\317\237\001 \003(\t\022\024\n" @@ -19350,15 +19348,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\304\001\n" + "8InterconnectAttachmentGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022^\n" - + "\006result\030\235\220\267B \001(\0132" - + "F.google.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132F.google.cloud.co" + + "mpute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\210\003\n" + "(InterconnectAttachmentGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022F\n" - + "\005items\030\300\317\367/ \003(\0132" - + "4.google.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01324.google.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -19372,15 +19370,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\210\005\n" + "-InterconnectAttachmentGroupsOperationalStatus\022w\n" - + "\023attachment_statuses\030\274\257\230\352\001 \003(\0132V.google.cloud.compute.v1" - + ".InterconnectAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" - + "configured\030\276\364\373\214\001" - + " \001(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + + "\023attachment_statuses\030\274\257\230\352\001 \003(\0132V." + + "google.cloud.compute.v1.InterconnectAtta" + + "chmentGroupsOperationalStatusAttachmentStatus\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.google.c" + + "loud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" - + "\013operational\030\322\307\354= \001(\0132>.google.cloud.compute.v" - + "1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.google.c" + + "loud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" + + "\013operational\030\322\307\354= \001(\0132>" + + ".google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -19423,29 +19422,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_is_activeB\t\n" + "\007_status\"\333\004\n" + "\"InterconnectAttachmentL2Forwarding\022r\n" - + "\022appliance_mappings\030\267\277\313\262\001" - + " \003(\0132R.google.cloud.compute.v1.Interconn" - + "ectAttachmentL2Forwarding.ApplianceMappingsEntry\022-\n" + + "\022appliance_mappings\030\267\277\313\262\001 \003(\0132R.google.clo" + + "ud.compute.v1.InterconnectAttachmentL2Forwarding.ApplianceMappingsEntry\022-\n" + "\034default_appliance_ip_address\030\354\343\350\377\001 \001(" + "\tH\000\210\001\001\022f\n\r" - + "geneve_header\030\250\225\3148 \001(\0132G.google.cloud.compute.v1.Interconnect" - + "AttachmentL2ForwardingGeneveHeaderH\001\210\001\001\022\027\n" + + "geneve_header\030\250\225\3148 \001(\0132G.google.cloud." + + "compute.v1.InterconnectAttachmentL2ForwardingGeneveHeaderH\001\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\002\210\001\001\022+\n" + "\032tunnel_endpoint_ip_address\030\357\326\301\337\001 \001(" + "\tH\003\210\001\001\032\205\001\n" + "\026ApplianceMappingsEntry\022\013\n" + "\003key\030\001 \001(\t\022Z\n" - + "\005value\030\002 \001(\0132K.google.cloud.compute.v1.Interconn" - + "ectAttachmentL2ForwardingApplianceMapping:\0028\001B\037\n" + + "\005value\030\002 \001(\0132K.google.clo" + + "ud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping:\0028\001B\037\n" + "\035_default_appliance_ip_addressB\020\n" + "\016_geneve_headerB\n\n" + "\010_networkB\035\n" + "\033_tunnel_endpoint_ip_address\"\250\002\n" + "2InterconnectAttachmentL2ForwardingApplianceMapping\022$\n" + "\024appliance_ip_address\030\256\225\323\033 \001(\tH\000\210\001\001\022\223\001\n" - + " inner_vlan_to_appliance_mappings\030\250\213\270. \003(\0132f" - + ".google.cloud.compute.v1.InterconnectAtt" - + "achmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping\022\024\n" + + " inner_vlan_to_appliance_mappings\030\250\213\270. \003(\0132f.google.cloud.com" + + "pute.v1.InterconnectAttachmentL2Forwardi" + + "ngApplianceMappingInnerVlanToApplianceMapping\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\027\n" + "\025_appliance_ip_addressB\007\n" + "\005_name\"\270\001\n" @@ -19460,8 +19458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_vni\"\275\002\n" + "\032InterconnectAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.goog" + + "le.cloud.compute.v1.InterconnectAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -19469,14 +19467,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\315\001\n" + "\034InterconnectAttachmentParams\022q\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132N.google.cloud.compute.v1.In" - + "terconnectAttachmentParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132N.goo" + + "gle.cloud.compute.v1.InterconnectAttachmentParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\274\001\n" @@ -19492,8 +19488,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001B\013\n" + "\t_tag8021q\"\301\001\n" + "!InterconnectAttachmentsScopedList\022U\n" - + "\030interconnect_attachments\030\377\322\353\312\001" - + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\0229\n" + + "\030interconnect_attachments\030\377\322\353\312\001 \003(\0132/" + + ".google.cloud.compute.v1.InterconnectAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\305\001\n" @@ -19506,12 +19502,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_google_circuit_idB\023\n" + "\021_google_demarc_id\"\225\005\n" + "\027InterconnectDiagnostics\022P\n\n" - + "arp_caches\030\221\326\330\305\001 \003(\01328.google.clo" - + "ud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + + "arp_caches\030\221\326\330\305\001" + + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + "\027bundle_aggregation_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n" + "\031bundle_operational_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n" - + "\005links\030\271\237\2151 \003(\0132:.google.cl" - + "oud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + + "\005links\030\271\237\2151" + + " \003(\0132:.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + "\013mac_address\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n" + "\025BundleAggregationType\022%\n" + "!UNDEFINED_BUNDLE_AGGREGATION_TYPE\020\000\022#\n" @@ -19554,19 +19550,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\010\n" + "\006_value\"\361\006\n" + "!InterconnectDiagnosticsLinkStatus\022P\n\n" - + "arp_caches\030\221\326\330\305\001 \003(\01328.google.c" - + "loud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + + "arp_caches\030\221\326\330\305\001" + + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + "circuit_id\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\r" + "google_demarc\030\214\217\003 \001(\tH\001\210\001\001\022\\\n" - + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.google.cloud.compute.v1.Int" - + "erconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" - + "\006macsec\030\242\301\227\374\001 \001(\0132<.google.cloud.compu" - + "te.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.goog" + + "le.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" + + "\006macsec\030\242\301\227\374\001 \001" + + "(\0132<.google.cloud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\004\210\001\001\022i\n" - + "\027receiving_optical_power\030\337\255\330t \001(\0132@" - + ".google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" - + "\032transmitting_optical_power\030\235\272\211\333\001 \001(\0132@.google.c" - + "loud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.cloud.com" + + "pute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" + + "\032transmitting_optical_power\030\235\272\211\333\001" + + " \001(\0132@.google.cloud.compute.v1.I" + + "nterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + "\021OperationalStatus\022 \n" + "\034UNDEFINED_OPERATIONAL_STATUS\020\000\022$\n" + "\034LINK_OPERATIONAL_STATUS_DOWN\020\375\344\246\206\001\022\"\n" @@ -19584,25 +19581,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_cknB\016\n" + "\014_operational\"\224\006\n" + "\021InterconnectGroup\022Q\n\n" - + "configured\030\276\364\373\214\001" - + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + + "configured\030\276\364\373\214\001 \001(\01324.googl" + + "e.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001 \001(\01320.goo" - + "gle.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132=.g" - + "oogle.cloud.compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + + "\006intent\030\234\355\304\313\001" + + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" + + "interconnects\030\245\333\205\370\001 \003(\0132=.google.cloud.compu" + + "te.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022_\n" - + "\022physical_structure\030\213\320\220] \001(\0132;.google.cloud.compute.v1" - + ".InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + + "\022physical_structure\030\213\320\220] \001(\0132;." + + "google.cloud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326" - + ".google.cloud.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + + "\005value\030\002 \001(\01326.google.cloud.com" + + "pute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -19614,13 +19611,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_physical_structureB\014\n\n" + "_self_link\"\242\001\n" + "\033InterconnectGroupConfigured\022k\n" - + "\023topology_capability\030\350\331\340D \001(\0132F.google.cloud.comput" - + "e.v1.InterconnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + + "\023topology_capability\030\350\331\340D \001(" + + "\0132F.google.cloud.compute.v1.Interconnect" + + "GroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + "\024_topology_capability\"\374\002\n" + "-InterconnectGroupConfiguredTopologyCapability\022\212\001\n" - + "\034intended_capability_blockers\030\354\375\300\375\001" - + " \003(\0132`.google.cloud.compute.v1.I" - + "nterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\0132`.go" + + "ogle.cloud.compute.v1.InterconnectGroupC" + + "onfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + "supported_sla\030\227\364\242\034 \001(\tH\000\210\001\001\"\214\001\n" + "\014SupportedSla\022\033\n" + "\027UNDEFINED_SUPPORTED_SLA\020\000\022\r\n" @@ -19639,8 +19637,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005zones\030\307\244\2557 \003(\t\"\305\001\n" + "\013BlockerType\022\032\n" + "\026UNDEFINED_BLOCKER_TYPE\020\000\022\033\n" - + "\023INCOMPATIBLE_METROS\020\300\237\275\212\001\022\024\n" - + "\r" + + "\023INCOMPATIBLE_METROS\020\300\237\275\212\001\022\024\n\r" + "NOT_AVAILABLE\020\235\200\215C\022\030\n" + "\020NO_INTERCONNECTS\020\207\367\322\371\001\022*\n" + "\"NO_INTERCONNECTS_IN_METRO_AND_ZONE\020\334\272\242\322\001\022\014\n" @@ -19662,17 +19659,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001B\017\n\r" + "_interconnect\"{\n" + "\"InterconnectGroupPhysicalStructure\022U\n" - + "\006metros\030\372\354\227\376\001 \003" - + "(\0132A.google.cloud.compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + + "\006metros\030\372\354\227\376\001 \003(\0132A.google.cloud" + + ".compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + "(InterconnectGroupPhysicalStructureMetros\022c\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.comput" - + "e.v1.InterconnectGroupPhysicalStructureMetrosFacilities\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.compute.v1.Interconnect" + + "GroupPhysicalStructureMetrosFacilities\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\300\001\n" - + "2InterconnectGroupPhysicalStructureMetrosFacilities\022\031\n" + + "2InterconnectGroupPhysicalStructureMetrosFaci", + "lities\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022b\n" - + "\005zones\030\307\244\2557 \003(\0132P.google.cl", - "oud.compute.v1.InterconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute.v1.In" + + "terconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + "\t_facility\"s\n" + "7InterconnectGroupPhysicalStructureMetrosFacilitiesZones\022\031\n\r" + "interconnects\030\245\333\205\370\001 \003(\t\022\024\n" @@ -19680,10 +19678,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\320\003\n" + "\037InterconnectGroupsCreateMembers\022(\n" + "\030intent_mismatch_behavior\030\300\325\262N \001(\tH\000\210\001\001\022d\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132I.google.cloud" - + ".compute.v1.InterconnectGroupsCreateMembersInterconnectInput\022p\n" - + "\025template_interconnect\030\263\260\225k \001(\0132I.google.cloud.compute.v1" - + ".InterconnectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + + "interconnects\030\245\333\205\370\001 \003(\0132I.google.cloud.compute.v1.Inter" + + "connectGroupsCreateMembersInterconnectInput\022p\n" + + "\025template_interconnect\030\263\260\225k \001(\0132I." + + "google.cloud.compute.v1.InterconnectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + "\026IntentMismatchBehavior\022&\n" + "\"UNDEFINED_INTENT_MISMATCH_BEHAVIOR\020\000\022\016\n" + "\006CREATE\020\374\251\342\267\001\022\r\n" @@ -19730,19 +19728,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_requested_link_count\"\207\001\n" + "&InterconnectGroupsCreateMembersRequest\022Q\n" + "\007request\030\217\345\273\n" - + " \001(\01328.google.cloud.compute.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + + " \001(\01328.google" + + ".cloud.compute.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + "\010_request\"\260\001\n" + ".InterconnectGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022T\n" - + "\006result\030\235\220\267B \001(\0132<.google.cloud.compute.v" - + "1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132<" + + ".google.cloud.compute.v1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\364\002\n" + "\036InterconnectGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ \003(\0132*.go" - + "ogle.cloud.compute.v1.InterconnectGroup\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.InterconnectGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -19755,17 +19754,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\350\004\n" - + "#InterconnectGroupsOperationalStatus\022Q\n" - + "\n" - + "configured\030\276\364\373\214\001 \001(\01324.google.cloud.com" - + "pute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + + "#InterconnectGroupsOperationalStatus\022Q\n\n" + + "configured\030\276\364\373\214\001" + + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" - + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google.cloud.com" - + "pute.v1.InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" - + "\013operational\030\322\307\354=" - + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + + "\006intent\030\234\355\304\313\001 \001(\01320.goo" + + "gle.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" + + "\025interconnect_statuses\030\261\351\203\325\001" + + " \003(\0132N.google.cloud.compute.v1.Interconn" + + "ectGroupsOperationalStatusInterconnectStatus\022Q\n" + + "\013operational\030\322\307\354= \001(\01324.google.cl" + + "oud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -19778,8 +19777,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_operational\"\207\003\n" + "5InterconnectGroupsOperationalStatusInterconnectStatus\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022N\n" - + "\013diagnostics\030\254\263\372\236\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + + "\013diagnostics\030\254\263\372\236\001 \001(\01320.goo" + + "gle.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\002\210\001\001\022\031\n" + "\tis_active\030\273\327\3406 \001(\tH\003\210\001\001\"d\n" + "\010IsActive\022\027\n" @@ -19812,8 +19811,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022p\n" - + "\035cross_site_interconnect_infos\030\215\337\303v \003(\0132F.google.c" - + "loud.compute.v1.InterconnectLocationCrossSiteInterconnectInfo\022\034\n" + + "\035cross_site_interconnect_infos\030\215\337\303v" + + " \003(\0132F.google.cloud.compute.v1.I" + + "nterconnectLocationCrossSiteInterconnectInfo\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\"\n" + "\021facility_provider\030\215\240\246\376\001 \001(\tH\006\210\001\001\022-\n" + "\035facility_provider_facility_id\030\205\276\316) \001(\tH\007\210\001\001\022\020\n" @@ -19822,8 +19822,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\013\210\001\001\022Q\n" - + "\014region_infos\030\372\350\356\224\001 \003(\01327.google.cloud.co" - + "mpute.v1.InterconnectLocationRegionInfo\022\032\n" + + "\014region_infos\030\372\350\356\224\001" + + " \003(\01327.google.cloud.compute.v1.InterconnectLocationRegionInfo\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022<\n" + "0single_region_production_critical_peer_locations\030\317\233\313\321\001 \003(" + "\t\022\026\n" @@ -19850,7 +19850,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017C_NORTH_AMERICA\020\230\233\273\203\001\022\027\n" + "\017C_SOUTH_AMERICA\020\340\214\260\275\001\022\016\n" + "\006EUROPE\020\242\323\312\324\001\022\025\n\r" - + "NORTH_AMERICA\020\224\331\320\325\001\022\024\n\r" + + "NORTH_AMERICA\020\224\331\320\325\001\022\024\n" + + "\r" + "SOUTH_AMERICA\020\334\312\305\017\"A\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\021\n" @@ -19911,12 +19912,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_region\"\224\001\n" + "\022InterconnectMacsec\022\032\n" + "\tfail_open\030\313\225\373\375\001 \001(\010H\000\210\001\001\022T\n" - + "\017pre_shared_keys\030\362\313\265\310\001" - + " \003(\01327.google.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + + "\017pre_shared_keys\030\362\313\265\310\001 \003(\01327" + + ".google.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + "_fail_open\"v\n" + "\030InterconnectMacsecConfig\022Z\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003(\0132=.google.cloud.c" - + "ompute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + + "\017pre_shared_keys\030\362\313\265\310\001" + + " \003(\0132=.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + "$InterconnectMacsecConfigPreSharedKey\022\022\n" + "\003cak\030\315\377\005 \001(\tH\000\210\001\001\022\022\n" + "\003ckn\030\206\202\006 \001(\tH\001\210\001\001\022\024\n" @@ -19943,7 +19944,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tIssueType\022\030\n" + "\024UNDEFINED_ISSUE_TYPE\020\000\022\020\n" + "\tIT_OUTAGE\020\205\341\350S\022\030\n" - + "\021IT_PARTIAL_OUTAGE\020\243\312\365+\022\r\n" + + "\021IT_PARTIAL_OUTAGE\020\243\312\365+\022\r" + + "\n" + "\006OUTAGE\020\361\245\217]\022\025\n" + "\016PARTIAL_OUTAGE\020\217\267\217F\"C\n" + "\006Source\022\024\n" @@ -19965,18 +19967,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_start_timeB\010\n" + "\006_state\"\271\001\n" + "\022InterconnectParams\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google" - + ".cloud.compute.v1.InterconnectParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.compute.v1" + + ".InterconnectParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\212\014\n" + "\032InterconnectRemoteLocation\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n" - + "$attachment_configuration_constraints\030\321\350\353\233\001 \001(\0132G.google.cl" - + "oud.compute.v1.InterconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + + "$attachment_configuration_constraints\030\321\350\353\233\001" + + " \001(\0132G.google.cloud.compute.v1.In" + + "terconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022[\n" - + "\013constraints\030\266\314\356\001 \001(\0132>.googl" - + "e.cloud.compute.v1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud.compute.v" + + "1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\004\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n" @@ -19992,8 +19995,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024max_lag_size400_gbps\030\322\214\2052 \001(\005H\016\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\017\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\020\210\001\001\022j\n" - + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google." - + "cloud.compute.v1.InterconnectRemoteLocationPermittedConnections\022\037\n" + + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google.cloud.compute.v1." + + "InterconnectRemoteLocationPermittedConnections\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\021\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\023\210\001\001\"\202\001\n" @@ -20036,8 +20039,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031port_pair_remote_location\030\247\262\274\354\001 \001(" + "\tH\000\210\001\001\022\037\n" + "\016port_pair_vlan\030\352\362\203\344\001 \001(\tH\001\210\001\001\022t\n" - + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.com" - + "pute.v1.InterconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.compute.v1.Interconn" + + "ectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + "\026PortPairRemoteLocation\022\'\n" + "#UNDEFINED_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n" + "\"PORT_PAIR_MATCHING_REMOTE_LOCATION\020\323\213\354b\022.\n" @@ -20056,8 +20059,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_min\"\305\002\n" + "\036InterconnectRemoteLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022E\n" - + "\005items\030\300\317\367/ \003(\0132" - + "3.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01323.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20072,13 +20075,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025interconnect_location\030\306\330\333\352\001 \001(\tH\000\210\001\001B\030\n" + "\026_interconnect_location\"z\n" + "#InterconnectsGetDiagnosticsResponse\022H\n" - + "\006result\030\235\220\267B \001(\01320.google." - + "cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B" + + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + "\007_result\"\233\001\n" + "$InterconnectsGetMacsecConfigResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n" - + "\006result\030\235\220\267B" - + " \001(\01321.google.cloud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(" + + "\01321.google.cloud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"l\n" + "\033InterconnectsSetNameRequest\022\035\n" @@ -20092,8 +20095,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_end_timeB\r\n" + "\013_start_time\"\354\001\n" + "\034InvalidateCacheUrlMapRequest\022b\n" - + " cache_invalidation_rule_resource\030\255\303\223\225\001" - + " \001(\0132..google.cloud.compute.v1.CacheInvalidationRuleB\004\342A\001\002\022\"\n" + + " cache_invalidation_rule_resource\030\255\303\223\225\001 \001(\013" + + "2..google.cloud.compute.v1.CacheInvalidationRuleB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\031\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\004\342A\001\002B\r\n" @@ -20119,12 +20122,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\033\n\n" + "os_license\030\346\251\330\350\001 \001(\010H\n" + "\210\001\001\022>\n" - + "\006params\030\206\363\253% \001(\0132&.g" - + "oogle.cloud.compute.v1.LicenseParamsH\013\210\001\001\022#\n" + + "\006params\030\206\363\253%" + + " \001(\0132&.google.cloud.compute.v1.LicenseParamsH\013\210\001\001\022#\n" + "\023removable_from_disk\030\256\205\252\014 \001(\010H\014\210\001\001\022\'\n" + "\034required_coattached_licenses\030\201\272\315= \003(\t\022[\n" - + "\025resource_requirements\030\241\262\227f \001(\01324.goog" - + "le.cloud.compute.v1.LicenseResourceRequirementsH\r" + + "\025resource_requirements\030\241\262\227f" + + " \001(\01324.google.cloud.compute.v1.LicenseResourceRequirementsH\r" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\017\210\001\001\022!\n" @@ -20158,8 +20161,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022!\n" + "\025incompatible_licenses\030\230\260\260\237\001 \003(\t\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n\r" - + "license_alias\030\322\221\342\024" - + " \003(\01320.google.cloud.compute.v1.LicenseCodeLicenseAlias\022D\n" + + "license_alias\030\322\221\342\024 \003(\01320.g" + + "oogle.cloud.compute.v1.LicenseCodeLicenseAlias\022D\n" + "\021minimum_retention\030\255\340\214J" + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022\"\n" + "\021multi_tenant_only\030\233\340\353\202\001 \001(\010H\006\210\001\001\022\024\n" @@ -20202,8 +20205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\014\n\n" + "_self_link\"\257\001\n\r" + "LicenseParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?" - + ".google.cloud.compute.v1.LicenseParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.cloud.com" + + "pute.v1.LicenseParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\234\001\n" @@ -20308,17 +20311,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_token\"\331\001\n" - + "\032ListBackendServicesRequest\022\027\n" + + "\032Li", + "stBackendServicesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" - + "\013max_result", - "s\030\233\310\213\032 \001(\r" + + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\312\005\n" + "\033ListBgpRoutesRoutersRequest\022\036\n" + "\016address_family\030\217\304\354R \001(\tH\000\210\001\001\022\"\n" @@ -20603,8 +20607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" @@ -20616,8 +20619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002B\t\n" @@ -20663,8 +20665,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"ListInstancesInstanceGroupsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\037\n" + "\016instance_group\030\325\324\325& \001(\tB\004\342A\001\002\022~\n" - + "/instance_groups_list_instances_request_resource\030\237\250\214\343\001 \001(\013" - + "2;.google.cloud.compute.v1.InstanceGroupsListInstancesRequestB\004\342A\001\002\022\033\n" + + "/instance_groups_list_instances_request_resource\030\237\250\214\343\001" + + " \001(\0132;.google.cloud.c" + + "ompute.v1.InstanceGroupsListInstancesRequestB\004\342A\001\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -20684,9 +20687,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\212\001\n" - + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027 \001(\0132" - + "A.google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestB\004\342A\001\002B" - + "\t\n" + + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027" + + " \001(\0132A.google.cloud.co" + + "mpute.v1.RegionInstanceGroupsListInstancesRequestB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" @@ -20706,8 +20709,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListInstantSnapshotGroups\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.InstantSnapshotGroup\022\024\n" + + "\005items\030\300\317\367/ \003(\0132-.go" + + "ogle.cloud.compute.v1.InstantSnapshotGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -20724,7 +20727,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002B\t\n" @@ -20742,7 +20746,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\346\001\n" + "\'ListInterconnectAttachmentGroupsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -20937,8 +20942,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\001\210\001\001\022(\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(" + "\tB\004\342A\001\002\022\214\001\n" - + "7network_endpoint_groups_list_endpoints_request_resource\030\216\230\257\034 \001" - + "(\0132B.google.cloud.compute.v1.NetworkEndpointGroupsListEndpointsRequestB\004\342A\001\002\022\030\n" + + "7network_endpoint_groups_list_endpoints_request_resource\030\216\230\257\034" + + " \001(\0132B.google.cloud" + + ".compute.v1.NetworkEndpointGroupsListEndpointsRequestB\004\342A\001\002\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\025\n" @@ -21009,8 +21015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002B\t\n" @@ -21064,11 +21069,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" - + "\014_max_resultsB\013\n" + + "\014_", + "max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_token\"\276\003\n" - + " ListPeeringRoutesNe", - "tworksRequest\022\031\n" + + " ListPeeringRoutesNetworksRequest\022\031\n" + "\tdirection\030\377\216\2005 \001(\tH\000\210\001\001\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\001\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" @@ -21087,8 +21092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" - + "\013_page_tokenB\017\n" - + "\r" + + "\013_page_tokenB\017\n\r" + "_peering_nameB\t\n" + "\007_region\"\261\002\n" + "2ListPerInstanceConfigsInstanceGroupManagersRequest\022\027\n" @@ -21102,8 +21106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\271\002\n" + "8ListPerInstanceConfigsRegionInstanceGroupManagersRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\'\n" @@ -21139,8 +21142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\331\001\n" + "\032ListPreviewFeaturesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21452,7 +21454,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\362\001\n" + "\032ListRegionSnapshotsRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21488,8 +21491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\372\001\n" + "\"ListRegionTargetHttpProxiesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21812,7 +21814,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_token\"\334\001\n" + "\035ListTargetHttpsProxiesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21823,8 +21826,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_token\"\360\001\n" + "\032ListTargetInstancesRequest\022\027\n" + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" @@ -21839,11 +21841,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_order_byB\r\n" + "\013_page_token\"\356\001\n" + "\026ListTargetPoolsRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + + "\006filter\030\370\226\243", + "\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002", - "\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002B\t\n" @@ -21998,8 +22000,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022o\n" - + "(projects_list_xpn_hosts_request_resource\030\227\320\316q \001(\01324.google." - + "cloud.compute.v1.ProjectsListXpnHostsRequestB\004\342A\001\002B\t\n" + + "(projects_list_xpn_hosts_request_resource\030\227\320\316q" + + " \001(\01324.google.cloud.compute.v1.ProjectsListXpnHostsRequestB\004\342A\001\002B" + + "\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" @@ -22052,15 +22055,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_localeB\n\n" + "\010_message\"\236\003\n" + "\016LocationPolicy\022M\n" - + "\tlocations\030\336\256\221\305\001" - + " \003(\01326.google.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + + "\tlocations\030\336\256\221\305\001 \003(\01326.goog" + + "le.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022J\n" - + "\005zones\030\307\244\2557 \003(\01328.go" - + "ogle.cloud.compute.v1.LocationPolicyZoneConfiguration\032a\n" + + "\005zones\030\307\244\2557" + + " \003(\01328.google.cloud.compute.v1.LocationPolicyZoneConfiguration\032a\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + + "\005value\030\002 \001" + + "(\0132/.google.cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -22068,8 +22071,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BALANCED\020\210\272\255\337\001B\017\n\r" + "_target_shape\"\216\002\n" + "\026LocationPolicyLocation\022W\n" - + "\013constraints\030\266\314\356\001 \001(\0132:.g" - + "oogle.cloud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + + "\013constraints\030\266\314\356\001 \001(\0132:.google.cloud.compu" + + "te.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + "preference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" @@ -22089,29 +22092,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022P\n" - + "\023instance_properties\030\235\236\330f" - + " \001(\0132+.google.cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + + "\023instance_properties\030\235\236\330f \001(\0132+.google.c" + + "loud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" - + "\034machine_image_encryption_key\030\377\377\347\373\001 \001(\0132..google.clou" - + "d.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01321.g" + + "oogle.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" + + "\034machine_image_encryption_key\030\377\377\347\373\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022C\n" + "\006params\030\206\363\253% \001(\0132+.google.cloud.compute.v1.MachineImageParamsH" + "\t\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\n" + "\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\013\210\001\001\022;\n" - + "\013saved_disks\030\276\355\300\275\001" - + " \003(\0132\".google.cloud.compute.v1.SavedDisk\022\032\n" + + "\013saved_disks\030\276\355\300\275\001 \003" + + "(\0132\".google.cloud.compute.v1.SavedDisk\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022Y\n" + "\033source_disk_encryption_keys\030\262\370\317\260\001" + " \003(\01320.google.cloud.compute.v1.SourceDiskEncryptionKey\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\r" + "\210\001\001\022^\n" - + "\032source_instance_properties\030\371\321\313\342\001" - + " \001(\01321.google.cloud.compute.v1.SourceInstancePropertiesH\016\210\001\001\022\026\n" + + "\032source_instance_properties\030\371\321\313\342\001 \001(\01321.google" + + ".cloud.compute.v1.SourceInstancePropertiesH\016\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\017\210\001\001\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\022#\n" + "\023total_storage_bytes\030\354\207\204\' \001(\003H\020\210\001\001\032-\n" @@ -22156,20 +22159,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\022MachineImageParams\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud." - + "compute.v1.MachineImageParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132D.google.cloud.compute.v1.MachineImageParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\213\010\n" + "\013MachineType\022?\n" + "\014accelerators\030\350\326\305\200\001" + " \003(\0132%.google.cloud.compute.v1.Accelerators\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022N\n" - + "\022bundled_local_ssds\030\200\347\340\270\001" - + " \001(\0132).google.cloud.compute.v1.BundledLocalSsdsH\001\210\001\001\022\"\n" + + "\022bundled_local_ssds\030\200\347\340\270\001 \001(" + + "\0132).google.cloud.compute.v1.BundledLocalSsdsH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.google.c" + + "loud.compute.v1.DeprecationStatusH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n\n" + "guest_cpus\030\322\313\310\273\001 \001(\005H\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\036\n" @@ -22208,8 +22212,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\302\003\n" + "\031MachineTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.google.cloud.comput" - + "e.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132=.google.cloud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22218,8 +22222,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.MachineTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132/.goog" + + "le.cloud.compute.v1.MachineTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22235,8 +22239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\237\001\n" + "\026MachineTypesScopedList\022>\n\r" @@ -22248,27 +22251,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016current_action\030\274\247\215U \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022S\n" - + "\017instance_health\030\306\222\274\266\001 \003(\01326.google." - + "cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + + "\017instance_health\030\306\222\274\266\001" + + " \003(\01326.google.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + "\017instance_status\030\334\255\237S \001(\tH\003\210\001\001\022R\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\01323.google.cloud" - + ".compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + + "\014last_attempt\030\244\254\250\317\001" + + " \001(\01323.google.cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022T\n" + "\033preserved_state_from_config\030\342\353\205/" + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" - + "\033preserved_state_from_policy\030\322\257\276\340\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" - + "\"properties_from_flexibility_policy\030\301\305\224J" - + " \001(\0132G.google.cloud.compute.v1.ManagedI" - + "nstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022O\n\n" - + "scheduling\030\224\313\261\270\001 \001(\01322.google.clo" - + "ud.compute.v1.ManagedInstanceSchedulingH\t\210\001\001\022Y\n" - + "\020shutdown_details\030\331\322\237\007 \001(\01327.goog" - + "le.cloud.compute.v1.ManagedInstanceShutdownDetailsH\n" + + "\033preserved_state_from_policy\030\322\257\276\340\001" + + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" + + "\"properties_from_flexibility_policy\030\301\305\224J \001(\0132G.google.cl" + + "oud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022O\n\n" + + "scheduling\030\224\313\261\270\001" + + " \001(\01322.google.cloud.compute.v1.ManagedInstanceSchedulingH\t\210\001\001\022Y\n" + + "\020shutdown_details\030\331\322\237\007" + + " \001(\01327.google.cloud.compute.v1.ManagedInstanceShutdownDetailsH\n" + "\210\001\001\022\036\n\r" + "target_status\030\340\314\342\222\001 \001(\tH\013\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001 \001(\0132/.google.cl" - + "oud.compute.v1.ManagedInstanceVersionH\014\210\001\001\"\205\002\n\r" + + "\007version\030\330\271\324\247\001" + + " \001(\0132/.google.cloud.compute.v1.ManagedInstanceVersionH\014\210\001\001\"\205\002\n\r" + "CurrentAction\022\034\n" + "\030UNDEFINED_CURRENT_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -22324,11 +22326,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007TIMEOUT\020\301\262\353\343\001\022\021\n" + "\tUNHEALTHY\020\304\271\255\334\001\022\017\n" + "\007UNKNOWN\020\252\360\304\316\001B\030\n" - + "\026_detailed_health_stateB\017\n\r" + + "\026_detailed_health_stateB\017\n" + + "\r" + "_health_check\"{\n" + "\032ManagedInstanceLastAttempt\022R\n" - + "\006errors\030\353\336\325\226\001 \001(" - + "\01329.google.cloud.compute.v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + + "\006errors\030\353\336\325\226\001 \001(\01329.google.cloud." + + "compute.v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + "\007_errors\"W\n" + " ManagedInstanceLastAttemptErrors\0223\n" + "\006errors\030\353\336\325\226\001" @@ -22388,8 +22391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001B\016\n" + "\014_fingerprintB\007\n" + "\005_kind\"\217\002\n" - + "\016MetadataFilter\022L\n" - + "\r" + + "\016MetadataFilter\022L\n\r" + "filter_labels\030\246\365\350\222\001" + " \003(\01321.google.cloud.compute.v1.MetadataFilterLabelMatch\022%\n" + "\025filter_match_criteria\030\300\320\266r \001(\tH\000\210\001\001\"n\n" @@ -22416,13 +22418,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022m\n" - + "®ion_addresses_move_request_resource\030\304\260\210\303\001 \001(\013" - + "23.google.cloud.compute.v1.RegionAddressesMoveRequestB\004\342A\001\002\022\032\n\n" + + "®ion_addresses_move_request_resource\030\304\260\210\303\001" + + " \001(\01323.google.cloud.c" + + "ompute.v1.RegionAddressesMoveRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\277\001\n" + "\026MoveDiskProjectRequest\022V\n" - + "\032disk_move_request_resource\030\312\302\240\225\001" - + " \001(\0132(.google.cloud.compute.v1.DiskMoveRequestB\004\342A\001\002\022\"\n" + + "\032disk_move_request_resource\030\312\302\240\225\001 \001(\0132(.googl" + + "e.cloud.compute.v1.DiskMoveRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\241\001\n" @@ -22435,8 +22438,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\363\001\n" + "\030MoveGlobalAddressRequest\022\031\n" + "\007address\030\364\267\336\334\001 \001(\tB\004\342A\001\002\022m\n" - + "&global_addresses_move_request_resource\030\363\361\261\220\001" - + " \001(\01323.google.cloud.compute.v1.GlobalAddressesMoveRequestB\004\342A\001\002\022\"\n" + + "&global_addresses_move_request_resource\030\363\361\261\220\001 \001(\01323.google" + + ".cloud.compute.v1.GlobalAddressesMoveRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\313\001\n" @@ -22474,8 +22477,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\007\n" + "\005_type\"\210\001\n" + "\tNatIpInfo\022S\n" - + "\024nat_ip_info_mappings\030\234\200\216s \003(\0132" - + "2.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + + "\024nat_ip_info_mappings\030\234\200\216s" + + " \003(\01322.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + "\010nat_name\030\351\255\370\312\001 \001(\tH\000\210\001\001B\013\n" + "\t_nat_name\"\362\001\n" + "\031NatIpInfoNatIpInfoMapping\022\024\n" @@ -22502,8 +22505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022)\n" + "\030enable_ula_internal_ipv6\030\230\217\210\312\001 \001(\010H\004\210\001\001\022 \n" - + "\017firewall_policy\030\321\212\306\355\001 \001(\tH\005\210\001\001\022\035\n" - + "\r" + + "\017firewall_policy\030\321\212\306\355\001 \001(\tH\005\210\001\001\022\035\n\r" + "gateway_i_pv4\030\335\330\231U \001(\tH\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022$\n" + "\023internal_ipv6_range\030\247\317\246\204\001 \001(\tH\010\210\001\001\022\024\n" @@ -22515,15 +22517,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\014\210\001\001\022\037\n" + "\017network_profile\030\230\371\305R \001(\tH\r" + "\210\001\001\022>\n" - + "\006params\030\206\363\253%" - + " \001(\0132&.google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" + + "\006params\030\206\363\253% \001" + + "(\0132&.google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" + "\010peerings\030\263\252\251!" + " \003(\0132\'.google.cloud.compute.v1.NetworkPeering\022N\n" - + "\016routing_config\030\333\251\323\371\001 \001(\0132-.goo" - + "gle.cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + + "\016routing_config\030\333\251\323\371\001 \001(\0132-.google.cloud.compute", + ".v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022!\n" - + "\021se", - "lf_link_with_id\030\202\254\235\025 \001(\tH\021\210\001\001\022\027\n" + + "\021self_link_with_id\030\202\254\235\025 \001(\tH\021\210\001\001\022\027\n" + "\013subnetworks\030\305\324\245\306\001 \003(\t\"\240\001\n" + "%NetworkFirewallPolicyEnforcementOrder\0227\n" + "3UNDEFINED_NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER\020\000\022\035\n" @@ -22548,8 +22549,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\024\n" + "\022_self_link_with_id\"\247\006\n" + "\021NetworkAttachment\022]\n" - + "\024connection_endpoints\030\335\242\276\233\001" - + " \003(\0132;.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint\022&\n" + + "\024connection_endpoints\030\335\242\276\233\001 \003(\0132;.go" + + "ogle.cloud.compute.v1.NetworkAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\033\n" @@ -22583,8 +22584,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\273\003\n" + "\037NetworkAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003(\0132C" - + ".google.cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.google.cloud.com" + + "pute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -22592,8 +22593,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.goo" + + "gle.cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22625,8 +22626,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_subnetwork_cidr_range\"\263\002\n" + "\025NetworkAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022<\n" - + "\005items\030\300\317\367/" - + " \003(\0132*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(\0132*.go" + + "ogle.cloud.compute.v1.NetworkAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -22667,8 +22668,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(NetworkEdgeSecurityServiceAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132" - + "L.google.cloud.compute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google.cloud.co" + + "mpute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -22677,8 +22678,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032l\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002" - + " \001(\0132>.google.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132>.google.c" + + "loud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -22686,14 +22687,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\316\001\n" + "%NetworkEdgeSecurityServicesScopedList\022^\n" - + "\036network_edge_security_services\030\254\313\370\020 \003(\01323.google." - + "cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + + "\036network_edge_security_services\030\254\313\370\020" + + " \003(\01323.google.cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\236\003\n" + "\017NetworkEndpoint\022Q\n" - + "\013annotations\030\244\366\2655 \003(\01329" - + ".google.cloud.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + + "\013annotations\030\244\366\2655 \003(\01329.google.cloud.com" + + "pute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + "\027client_destination_port\030\206\210\202; \001(\005H\000\210\001\001\022\024\n" + "\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\n" @@ -22710,14 +22711,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_ipv6_addressB\007\n" + "\005_port\"\256\013\n" + "\024NetworkEndpointGroup\022V\n" - + "\013annotations\030\244\366\2655 \003(\0132>.google.cloud.comp" - + "ute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" - + "app_engine\030\240\214\300\242\001 \001(\01326.google.cl" - + "oud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" - + "\016cloud_function\030\242\345\363\367\001 \001(\0132:." - + "google.cloud.compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" - + "\tcloud_run\030\201\313\3724" - + " \001(\01325.google.cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + + "\013annotations\030\244\366\2655 " + + "\003(\0132>.google.cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" + + "app_engine\030\240\214\300\242\001" + + " \001(\01326.google.cloud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" + + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.google.cloud.comp" + + "ute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" + + "\tcloud_run\030\201\313\3724 \001(\01325.google.clo" + + "ud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n" + "\014default_port\030\277\367\360\311\001 \001(\005H\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\020\n" @@ -22727,8 +22728,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\t\210\001\001\022%\n" + "\025network_endpoint_type\030\323\306\2648 \001(\tH\n" + "\210\001\001\022N\n" - + "\010psc_data\030\311\333\246\" \001(\01324.google.cl" - + "oud.compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + + "\010psc_data\030\311\333\246\"" + + " \001(\01324.google.cloud.compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + "\022psc_target_service\030\346\302\252\200\001 \001(\tH\014\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\r" + "\210\001\001\022\032\n" @@ -22771,8 +22772,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\335\003\n" + "\"NetworkEndpointGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.c" - + "ompute.v1.NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1.Network" + + "EndpointGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22781,8 +22782,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.google.cloud." - + "compute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01328.google.cloud.compute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22803,15 +22804,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034NetworkEndpointGroupCloudRun\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001\022\022\n" + "\003tag\030\232\377\006 \001(\tH\001\210\001\001\022\030\n" - + "\010url_mask\030\274\217\2441 \001(\tH\002\210\001\001B\n" - + "\n" + + "\010url_mask\030\274\217\2441 \001(\tH\002\210\001\001B\n\n" + "\010_serviceB\006\n" + "\004_tagB\013\n" + "\t_url_mask\"\271\002\n" + "\030NetworkEndpointGroupList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.NetworkEndpointGroup\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "-.google.cloud.compute.v1.NetworkEndpointGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -22820,7 +22820,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\275\003\n" + "\033NetworkEndpointGroupPscData\022%\n" + "\024consumer_psc_address\030\254\255\353\327\001 \001(\tH\000\210\001\001\022\036\n\r" @@ -22854,8 +22855,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_health_status\"\253\002\n" + ")NetworkEndpointGroupsListNetworkEndpoints\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003" - + "(\01328.google.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.google.cloud" + + ".compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -22871,15 +22872,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\317\001\n" + "\037NetworkEndpointWithHealthStatus\022K\n" - + "\007healths\030\227\223\255{ \003(\01327.google.cl" - + "oud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" - + "\020network_endpoint\030\206\221\212\033 \001(\0132(.goo" - + "gle.cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" + + "\007healths\030\227\223\255{" + + " \003(\01327.google.cloud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" + + "\020network_endpoint\030\206\221\212\033" + + " \001(\0132(.google.cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" + "\021_network_endpoint\"\332\003\n" + "#NetworkFirewallPolicyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.cloud.comput" - + "e.v1.NetworkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132G.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22888,8 +22889,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002 " + + "\001(\01323.google.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22900,14 +22901,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.compute.v1.AccessConfig\022A\n" + "\017alias_ip_ranges\030\277\203\334N" + " \003(\0132%.google.cloud.compute.v1.AliasIpRange\022C\n" - + "\021alias_ipv6_ranges\030\277\261\3151 " - + "\003(\0132%.google.cloud.compute.v1.AliasIpRange\022&\n" + + "\021alias_ipv6_ranges\030\277\261\3151" + + " \003(\0132%.google.cloud.compute.v1.AliasIpRange\022&\n" + "\025enable_vpc_scoped_dns\030\314\370\222\207\001 \001(\010H\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\032\n\n" + "igmp_query\030\312\244\266\016 \001(\tH\002\210\001\001\022+\n" + "\033internal_ipv6_prefix_length\030\235\203\231a \001(\005H\003\210\001\001\022F\n" - + "\023ipv6_access_configs\030\356\345\304\346\001" - + " \003(\0132%.google.cloud.compute.v1.AccessConfig\022!\n" + + "\023ipv6_access_configs\030\356\345\304\346\001 \003(\013" + + "2%.google.cloud.compute.v1.AccessConfig\022!\n" + "\020ipv6_access_type\030\335\365\321\360\001 \001(\tH\004\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" @@ -22962,7 +22963,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_nic_typeB\022\n" + "\020_parent_nic_nameB\016\n" + "\014_queue_countB\023\n" - + "\021_service_class_idB\r\n" + + "\021_service_class_idB\r" + + "\n" + "\013_stack_typeB\r\n" + "\013_subnetworkB\007\n" + "\005_vlan\"\237\002\n" @@ -22980,15 +22982,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n\r" + "NetworkParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?." - + "google.cloud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.cloud.comp" + + "ute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\316\010\n" + "\016NetworkPeering\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022[\n" - + "\021connection_status\030\363\360\321\372\001" - + " \001(\01327.google.cloud.compute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + + "\021connection_status\030\363\360\321\372\001 \001(\01327.google" + + ".cloud.compute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + "\026exchange_subnet_routes\030\320\312\306\014 \001(\010H\002\210\001\001\022$\n" + "\024export_custom_routes\030\215\245\337\034 \001(\010H\003\210\001\001\0223\n" + "#export_subnet_routes_with_public_ip\030\342\352\331." @@ -23035,11 +23037,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_state_detailsB\022\n" + "\020_update_strategy\"\314\003\n" + "\036NetworkPeeringConnectionStatus\022g\n" - + "\017consensus_state\030\311\275\213\265\001 \001(\0132E.google.cloud.compute.v1.Ne" - + "tworkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" - + "\025traffic_configuration\030\264\324\266? \001(" - + "\0132K.google.cloud.compute.v1.NetworkPeeri" - + "ngConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + + "\017consensus_state\030\311\275\213\265\001 \001(\0132E.goo" + + "gle.cloud.compute.v1.NetworkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" + + "\025traffic_configuration\030\264\324\266? \001(\0132K.google.cloud." + + "compute.v1.NetworkPeeringConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + "\017update_strategy\030\251\334\365\002 \001(\tH\002\210\001\001\"j\n" + "\016UpdateStrategy\022\035\n" + "\031UNDEFINED_UPDATE_STRATEGY\020\000\022\020\n" @@ -23099,15 +23100,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NetworkProfile\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022P\n" - + "\010features\030\275\310\263u \001(\01326.go" - + "ogle.cloud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + + "\010features\030\275\310\263u \001(\01326.google.cloud.comput" + + "e.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n" - + "\010location\030\265\277\276\212\001 \001(\0132/" - + ".google.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + + "\010location\030\265\277\276\212\001" + + " \001(\0132/.google.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022P\n" - + "\014profile_type\030\220\300\315G" - + " \001(\01322.google.cloud.compute.v1.NetworkProfileProfileTypeH\007\210\001\001\022\032\n" + + "\014profile_type\030\220\300\315G \001" + + "(\01322.google.cloud.compute.v1.NetworkProfileProfileTypeH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\t\210\001\001B\025\n" + "\023_creation_timestampB\016\n" @@ -23160,15 +23161,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031allow_subnetwork_creation\030\232\224\203\333\001 \001(\tH\027\210\001\001\022)\n" + "\030allow_vpc_firewall_rules\030\304\307\337\362\001 \001(\tH\030\210\001\001\022!\n" + "\021allow_vpc_peering\030\364\313\2037 \001(\tH\031\210\001\001\022\032\n" - + "\tallow_vpn\030\376\235\307\261\001 \001(\tH\032\210\001\001\022!\n" + + "\tallow_", + "vpn\030\376\235\307\261\001 \001(\tH\032\210\001\001\022!\n" + "\025firewall_policy_types\030\213\200\251\272\001 \003(\t\022\032\n" - + "\017interf", - "ace_types\030\363\263\252K \003(\t\022\032\n" + + "\017interface_types\030\363\263\252K \003(\t\022\032\n" + "\tmulticast\030\370\227\330\300\001 \001(\tH\033\210\001\001\0227\n" + "&predefined_network_internal_ipv6_range\030\335\202\327\373\001 \001(" + "\tH\034\210\001\001\022y\n" - + "\034predefined_subnetwork_ranges\030\316\304\363\302\001 \003(\0132O.google.cloud" - + ".compute.v1.NetworkProfileNetworkFeaturesPredefinedSubnetworkRange\022\033\n" + + "\034predefined_subnetwork_ranges\030\316\304\363\302\001" + + " \003(\0132O.google.cloud.compute.v1.Netwo" + + "rkProfileNetworkFeaturesPredefinedSubnetworkRange\022\033\n" + "\017subnet_purposes\030\267\233\330\217\001 \003(\t\022\036\n" + "\022subnet_stack_types\030\240\354\267\370\001 \003(\t\022\037\n" + "\023subnetwork_purposes\030\306\240\361\373\001 \003(\t\022\"\n" @@ -23427,7 +23429,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\004\210\001\001\022\035\n" + "\014routing_mode\030\374\272\310\342\001 \001(\tH\005\210\001\001\"g\n" + "\030BgpBestPathSelectionMode\022*\n" - + "&UNDEFINED_BGP_BEST_PATH_SELECTION_MODE\020\000\022\r\n" + + "&UNDEFINED_BGP_BEST_PATH_SELECTION_MODE\020\000\022\r" + + "\n" + "\006LEGACY\020\311\317\367,\022\020\n" + "\010STANDARD\020\275\235\214\347\001\"b\n" + "\022BgpInterRegionCost\022#\n" @@ -23449,8 +23452,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031NetworksAddPeeringRequest\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n" - + "\017network_peering\030\257\214\354\234\001 \001(\0132\'.go" - + "ogle.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + + "\017network_peering\030\257\214\354\234\001" + + " \001(\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + "\014peer_network\030\321\340\333\356\001 \001(\tH\003\210\001\001B\025\n" + "\023_auto_create_routesB\007\n" + "\005_nameB\022\n" @@ -23460,8 +23463,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\326\001\n" + "%NetworksGetEffectiveFirewallsResponse\022s\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132U.google.cloud.compute.v1.Netw" - + "orksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132U.googl" + + "e.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\363\003\n" + ".google.cloud.compute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.g" + + "oogle.cloud.compute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -23743,8 +23743,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032^\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002" - + " \001(\01320.google.cloud.compute.v1.NodeTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01320.google.c" + + "loud.compute.v1.NodeTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -23779,14 +23779,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010NodeType\022\035\n" + "\014cpu_platform\030\252\352\321\303\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*." - + "google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\n" - + "guest_cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n" + + "guest_cpus\030\322\313\310\273\001 ", + "\001(\005H\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\035\n" - + "\014local_ssd_g", - "b\030\312\210\377\234\001 \001(\005H\007\210\001\001\022\030\n" + + "\014local_ssd_gb\030\312\210\377\234\001 \001(\005H\007\210\001\001\022\030\n" + "\007max_vms\030\301\226\325\222\001 \001(\005H\010\210\001\001\022\031\n" + "\tmemory_mb\030\223\223\2507 \001(\005H\t\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\n" @@ -23808,8 +23808,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026NodeTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google.cloud.com" - + "pute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132:.google.cloud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -23818,8 +23818,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002" - + " \001(\0132,.google.cloud.compute.v1.NodeTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132,.goog" + + "le.cloud.compute.v1.NodeTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -23846,8 +23846,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024NotificationEndpoint\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022Y\n\r" - + "grpc_settings\030\244\306\300\331\001" - + " \001(\01329.google.cloud.compute.v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + + "grpc_settings\030\244\306\300\331\001 \001(\01329.google.c" + + "loud.compute.v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n" @@ -23859,13 +23859,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\007\n" + "\005_nameB\t\n" - + "\007_regionB\014\n" - + "\n" + + "\007_regionB\014\n\n" + "_self_link\"\335\003\n" + "\"NotificationEndpointAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1.Notific" - + "ationEndpointAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.c" + + "loud.compute.v1.NotificationEndpointAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -23874,8 +23873,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002" - + " \001(\01328.google.cloud.compute.v1.NotificationEndpointsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.google." + + "cloud.compute.v1.NotificationEndpointsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -23885,8 +23884,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tauthority\030\303\216\320\277\001 \001(\tH\000\210\001\001\022\030\n" + "\010endpoint\030\225\273\234> \001(\tH\001\210\001\001\022\035\n" + "\014payload_name\030\234\265\234\217\001 \001(\tH\002\210\001\001\022C\n" - + "\017resend_interval\030\311\270\210\344\001 \001" - + "(\0132!.google.cloud.compute.v1.DurationH\003\210\001\001\022\"\n" + + "\017resend_interval\030\311\270\210\344\001" + + " \001(\0132!.google.cloud.compute.v1.DurationH\003\210\001\001\022\"\n" + "\022retry_duration_sec\030\335\316\2247 \001(\r" + "H\004\210\001\001B\014\n\n" + "_authorityB\013\n" @@ -23909,8 +23908,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\255\001\n" + "\037NotificationEndpointsScopedList\022C\n" - + "\tresources\030\245\374\262N" - + " \003(\0132-.google.cloud.compute.v1.NotificationEndpoint\0229\n" + + "\tresources\030\245\374\262N \003" + + "(\0132-.google.cloud.compute.v1.NotificationEndpoint\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\315\016\n" @@ -23919,20 +23918,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\030\n" + "\010end_time\030\261\247\3476 \001(\tH\003\210\001\001\0225\n" - + "\005error\030\210\244\223." - + " \001(\0132\036.google.cloud.compute.v1.ErrorH\004\210\001\001\022c\n" - + "\035get_health_operation_metadata\030\241\244\365\220\001" - + " \001(\01323.google.cloud.compute.v1.GetHealthOperationMetadataH\005\210\001\001\022d\n" - + "\036get_version_operation_metadata\030\327\220\315R \001(\013" - + "24.google.cloud.compute.v1.GetVersionOperationMetadataH\006\210\001\001\022\'\n" + + "\005error\030\210\244\223. \001" + + "(\0132\036.google.cloud.compute.v1.ErrorH\004\210\001\001\022c\n" + + "\035get_health_operation_metadata\030\241\244\365\220\001 \001" + + "(\01323.google.cloud.compute.v1.GetHealthOperationMetadataH\005\210\001\001\022d\n" + + "\036get_version_operation_metadata\030\327\220\315R \001(\01324.google.cloud.c" + + "ompute.v1.GetVersionOperationMetadataH\006\210\001\001\022\'\n" + "\022http_error_message\030\331\372\310` \001(\tB\003\350G\004H\007\210\001\001\022,\n" + "\026http_error_status_code\030\354\204\370\224\001" + " \001(\005B\003\350G\003H\010\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\t\210\001\001\022\034\n" + "\013insert_time\030\223\251\350\316\001 \001(\tH\n" + "\210\001\001\022w\n" - + "(instances_bulk_insert_operation_metadata\030\301\206\301*" - + " \001(\0132=.google.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\013\210\001\001\022\024\n" + + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132=.google." + + "cloud.compute.v1.InstancesBulkInsertOperationMetadataH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022\031\n" + "\004name\030\213\365\315\001 \001(\tB\003\350G\001H\r" + "\210\001\001\022\"\n" @@ -23942,11 +23941,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\021\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022\205\001\n" + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001" - + " \001(\0132C.google.cloud.compute.v1.S" - + "etCommonInstanceMetadataOperationMetadataH\023\210\001\001\022\032\n\n" + + " \001(\0132C.go" + + "ogle.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataH\023\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\024\210\001\001\022F\n" - + "\006status\030\362\237\267V" - + " \001(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\025\210\001\001\022\037\n" + + "\006status\030\362\237\267V \001(\0162).g" + + "oogle.cloud.compute.v1.Operation.StatusB\003\350G\002H\025\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH\026\210\001\001\022\031\n" + "\ttarget_id\030\211\225\215{ \001(\004H\027\210\001\001\022\033\n" + "\013target_link\030\350\223\361\035 \001(\tH\030\210\001\001\022\024\n" @@ -23988,8 +23987,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\274\003\n" + "\027OperationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132;.goog" - + "le.cloud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132;.google.cloud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24024,13 +24023,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\243\001\n" + "4OrganizationSecurityPoliciesListAssociationsResponse\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322.google.cl" - + "oud.compute.v1.SecurityPolicyAssociation\022\024\n" + + "\014associations\030\222\350\312\362\001" + + " \003(\01322.google.cloud.compute.v1.SecurityPolicyAssociation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\332\006\n" + "\020OutlierDetection\022E\n" - + "\022base_ejection_time\030\207\327\317& " - + "\001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + + "\022base_ejection_time\030\207\327\317&" + + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + "\022consecutive_errors\030\240\263\320\270\001 \001(\005H\001\210\001\001\022,\n" + "\033consecutive_gateway_failure\030\372\267\212\307\001" + " \001(\005H\002\210\001\001\022,\n" @@ -24084,21 +24083,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_num_intervalsB\007\n" + "\005_type\"\272\006\n" + "\017PacketMirroring\022Z\n\r" - + "collector_ilb\030\355\211\266\313\001 \001(\0132:.g" - + "oogle.cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + + "collector_ilb\030\355\211\266\313\001 \001(\0132:.google.cloud.compu" + + "te.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\003\210\001\001\022G\n" - + "\006filter\030\370\226\243\240\001" - + " \001(\0132..google.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + + "\006filter\030\370\226\243\240\001 \001(\0132..go" + + "ogle.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022`\n" - + "\022mirrored_resources\030\304\237\302; \001(\0132<.google.cloud.compute." - + "v1.PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + + "\022mirrored_resources\030\304\237\302; \001(\0132" + + "<.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022L\n" - + "\007network\030\256\264\205o" - + " \001(\01323.google.cloud.compute.v1.PacketMirroringNetworkInfoH" - + "\t\210\001\001\022\031\n" + + "\007network\030\256\264\205o \001(\01323.google.cl" + + "oud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\r" + "H\n" + "\210\001\001\022\026\n" @@ -24123,8 +24121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\316\003\n" + "\035PacketMirroringAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google" + + ".cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24133,8 +24131,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.google.clo" + + "ud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24157,8 +24155,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_url\"\257\002\n" + "\023PacketMirroringList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/" - + " \003(\0132(.google.cloud.compute.v1.PacketMirroring\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132(.google.cloud.compute.v1.PacketMirroring\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -24171,10 +24169,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\367\001\n" + "#PacketMirroringMirroredResourceInfo\022^\n" + "\tinstances\030\376\374\357\r" - + " \003(\0132H.google.cloud.compute.v1.Packet" - + "MirroringMirroredResourceInfoInstanceInfo\022_\n" - + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.clou" - + "d.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + + " \003(\0132H.google." + + "cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.compute.v1.Pack" + + "etMirroringMirroredResourceInfoSubnetInfo\022\017\n" + "\004tags\030\231\350\330\001 \003(\t\"\177\n" + "/PacketMirroringMirroredResourceInfoInstanceInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" @@ -24192,15 +24190,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_canonical_urlB\006\n" + "\004_url\"\253\001\n" + "\032PacketMirroringsScopedList\022F\n" - + "\021packet_mirrorings\030\247\372\334I" - + " \003(\0132(.google.cloud.compute.v1.PacketMirroring\0229\n" + + "\021packet_mirrorings\030\247\372\334I " + + "\003(\0132(.google.cloud.compute.v1.PacketMirroring\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\263\002\n" + "2PatchAssociationRegionNetworkFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022i\n" - + "$firewall_policy_association_resource\030\272\270\341{ \001(\01322.googl" - + "e.cloud.compute.v1.FirewallPolicyAssociationB\004\342A\001\002\022\"\n" + + "$firewall_policy_association_resource\030\272\270\341{" + + " \001(\01322.google.cloud.compute.v1.FirewallPolicyAssociationB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24217,8 +24215,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\336\001\n" + "\031PatchBackendBucketRequest\022\037\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\004\342A\001\002\022Q\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&" - + ".google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + + "\027backend_bucket_resource\030\230\316\307\265\001" + + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\343\001\n" @@ -24243,14 +24241,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032PatchFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022S\n" + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\032\n" - + "\n" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\310\001\n" + "\024PatchFirewallRequest\022\032\n" + "\010firewall\030\200\372\325\363\001 \001(\tB\004\342A\001\002\022E\n" - + "\021firewall_resource\030\355\260\340\023 " - + "\001(\0132!.google.cloud.compute.v1.FirewallB\004\342A\001\002\022\"\n" + + "\021firewall_resource\030\355\260\340\023" + + " \001(\0132!.google.cloud.compute.v1.FirewallB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\205\002\n" @@ -24265,14 +24262,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\351\001\n" + " PatchGlobalForwardingRuleRequest\022!\n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\004\342A\001\002\022S\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001" - + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\004\342A\001\002\022\"\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\013" + + "2\'.google.cloud.compute.v1.ForwardingRuleB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\373\001\n" + "!PatchGlobalFrontendSettingRequest\022c\n" - + "!global_frontend_settings_resource\030\331\233\244o \001(\0132/.google.clo" - + "ud.compute.v1.GlobalFrontendSettingsB\004\342A\001\002\022\030\n" + + "!global_frontend_settings_resource\030\331\233\244o" + + " \001(\0132/.google.cloud.compute.v1.GlobalFrontendSettingsB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" @@ -24281,14 +24278,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(PatchGlobalPublicDelegatedPrefixeRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022(\n" + "\027public_delegated_prefix\030\350\334\261a \001(\tB\004\342A\001\002\022a\n" - + " public_delegated_prefix_resource\030\205\370\330\026" - + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google.cl" + + "oud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\326\001\n" + "\027PatchHealthCheckRequest\022\036\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\004\342A\001\002\022L\n" - + "\025health_check_resource\030\250\303\244` \001(\0132$.g" - + "oogle.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\274\001\n" @@ -24297,12 +24294,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016image_resource\030\362\304\376\260\001" + " \001(\0132\036.google.cloud.compute.v1.ImageB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\231\002\n" + " PatchInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022_\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.googl" - + "e.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -24318,8 +24316,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\305\002\n" + "\'PatchInterconnectAttachmentGroupRequest\022.\n" + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\004\342A\001\002\022m\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004" - + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\004\342A\001\002\022\"\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.g" + + "oogle.cloud.compute.v1.InterconnectAttachmentGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" @@ -24327,18 +24325,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\244\002\n" + "\"PatchInterconnectAttachmentRequest\022)\n" + "\027interconnect_attachment\030\364\212\367\222\001 \001(\tB\004\342A\001\002\022b\n" - + " interconnect_attachment_resource\030\371\244\240e" - + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\004\342A\001\002\022\"\n" + + " interconnect_attachment_resource\030\371\244\240e \001(\0132/.google.cl" + + "oud.compute.v1.InterconnectAttachmentB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\234\002\n" + "\035PatchInterconnectGroupRequest\022$\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\004\342A\001\002\022X\n" - + "\033interconnect_group_resource\030\237\363\346(" - + " \001(\0132*.google.cloud.compute.v1.InterconnectGroupB\004\342A\001\002\022\"\n" + + "\033interconnect_group_resource\030\237\363\346( \001(\0132*.google.cl" + + "oud.compute.v1.InterconnectGroupB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" @@ -24346,8 +24343,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\330\001\n" + "\030PatchInterconnectRequest\022\035\n" + "\014interconnect\030\216\311\214k \001(\tB\004\342A\001\002\022N\n" - + "\025interconnect_resource\030\237\241\314\275\001 \001(\0132%.go" - + "ogle.cloud.compute.v1.InterconnectB\004\342A\001\002\022\"\n" + + "\025interconnect_resource\030\237\241\314\275\001" + + " \001(\0132%.google.cloud.compute.v1.InterconnectB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\357\001\n" @@ -24362,8 +24359,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\217\002\n" + "\035PatchNetworkAttachmentRequest\022#\n" + "\022network_attachment\030\324\227\217k \001(\tB\004\342A\001\002\022X\n" - + "\033network_attachment_resource\030\231\360\314d \001(\0132*.googl" - + "e.cloud.compute.v1.NetworkAttachmentB\004\342A\001\002\022\"\n" + + "\033network_attachment_resource\030\231\360\314d" + + " \001(\0132*.google.cloud.compute.v1.NetworkAttachmentB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24371,31 +24368,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\207\003\n" + "&PatchNetworkEdgeSecurityServiceRequest\022.\n" + "\035network_edge_security_service\030\247\237\357J \001(\tB\004\342A\001\002\022m\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001" - + " \001(\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\004\342A\001\002\022\025\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(" + + "\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\004\342A\001\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001B\010\n" - + "\006_pathsB\r" - + "\n" + + "\006_pathsB\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\352\001\n" + "!PatchNetworkFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022S\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 " + + "\001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\303\001\n" + "\023PatchNetworkRequest\022\030\n" + "\007network\030\256\264\205o \001(\tB\004\342A\001\002\022C\n" - + "\020network_resource\030\377\335\234: \001(\0132" - + " .google.cloud.compute.v1.NetworkB\004\342A\001\002\022\"\n" - + "\007project\030\231\226\301", - "l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + + "\020network_resource\030", + "\377\335\234: \001(\0132 .google.cloud.compute.v1.NetworkB\004\342A\001\002\022\"\n" + + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\355\001\n" + "\025PatchNodeGroupRequest\022\034\n\n" @@ -24415,8 +24410,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033PatchPacketMirroringRequest\022!\n" + "\020packet_mirroring\030\314\271\321\n" + " \001(\tB\004\342A\001\002\022U\n" - + "\031packet_mirroring_resource\030\241\374\250\353\001" - + " \001(\0132(.google.cloud.compute.v1.PacketMirroringB\004\342A\001\002\022\"\n" + + "\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132(." + + "google.cloud.compute.v1.PacketMirroringB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24424,8 +24419,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\255\002\n" + "4PatchPacketMirroringRuleNetworkFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022[\n" - + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.google.c" - + "loud.compute.v1.FirewallPolicyRuleB\004\342A\001\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w" + + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\004\342A\001\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" @@ -24433,10 +24428,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\350\002\n" + "2PatchPerInstanceConfigsInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\233\001\n" - + "?instance_group_manag" - + "ers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" - + " \001(\0132H.google.cloud.compute.v1." - + "InstanceGroupManagersPatchPerInstanceConfigsReqB\004\342A\001\002\022\"\n" + + "?instance_group_managers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" + + " \001(\0132H.g" + + "oogle.cloud.compute.v1.InstanceGroupManagersPatchPerInstanceConfigsReqB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -24447,8 +24441,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\234\001\n" + "@region_instance_group_manager_patch_instance_config_req_resource\030\312\315\241^" - + " \001(\0132I.google.cloud.compute.v1.R" - + "egionInstanceGroupManagerPatchInstanceConfigReqB\004\342A\001\002\022\032\n\n" + + " \001(\0132I.go" + + "ogle.cloud.compute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\204\002\n" + "#PatchPublicAdvertisedPrefixeRequest\022\"\n" @@ -24461,8 +24455,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"PatchPublicDelegatedPrefixeRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022(\n" + "\027public_delegated_prefix\030\350\334\261a \001(\tB\004\342A\001\002\022a\n" - + " public_delegated_prefix_resource\030\205\370\330\026 \001(" - + "\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022 \n" + + " public_delegated_prefix_resource\030\205\370\330\026" + + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\004\342A\001\002\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -24488,8 +24482,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\213\002\n" + " PatchRegionBackendServiceRequest\022!\n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\004\342A\001\002\022S\n" - + "\030backend_service_resource\030\243\201\337\245\001" - + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.go" + + "ogle.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24506,8 +24500,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\260\002\n" + ")PatchRegionHealthAggregationPolicyRequest\022*\n" + "\031health_aggregation_policy\030\362\317\313r \001(\tB\004\342A\001\002\022f\n" - + "\"health_aggregation_policy_resource\030\273\273\373\213\001" - + " \001(\01320.google.cloud.compute.v1.HealthAggregationPolicyB\004\342A\001\002\022\"\n" + + "\"health_aggregation_policy_resource\030\273\273\373\213\001 \001(\01320.google.cl" + + "oud.compute.v1.HealthAggregationPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24515,8 +24509,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\376\001\n" + "\035PatchRegionHealthCheckRequest\022\036\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\004\342A\001\002\022L\n" - + "\025health_check_resource\030\250\303\244` \001(\0132$.goo" - + "gle.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24524,8 +24518,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\235\002\n" + "$PatchRegionHealthCheckServiceRequest\022&\n" + "\024health_check_service\030\333\233\335\302\001 \001(\tB\004\342A\001\002\022\\\n" - + "\035health_check_service_resource\030\362\233\320\343\001 \001(\0132+.go" - + "ogle.cloud.compute.v1.HealthCheckServiceB\004\342A\001\002\022\"\n" + + "\035health_check_service_resource\030\362\233\320\343\001" + + " \001(\0132+.google.cloud.compute.v1.HealthCheckServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24542,8 +24536,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\243\002\n" + "&PatchRegionInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022_\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google.c" - + "loud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24551,8 +24545,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\222\002\n" + "\'PatchRegionNetworkFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022S\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'.googl" - + "e.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -24564,25 +24558,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002\022R\n" - + "\030security_policy_resource\030\374\252\211g \001(\0132\'" - + ".google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002\022\034\n" + + "\030security_policy_resource\030\374\252\211g" + + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\233\002\n" + "!PatchRegionSnapshotSettingRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n\n" + + "\342A\001\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n" - + "\032snapshot_settings_resource\030\357\215\306\252\001 \001" - + "(\0132).google.cloud.compute.v1.SnapshotSettingsB\004\342A\001\002\022\034\n" + + "\032snapshot_settings_resource\030\357\215\306\252\001" + + " \001(\0132).google.cloud.compute.v1.SnapshotSettingsB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\367\001\n" + "\033PatchRegionSslPolicyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n\n" + + "\342A\001\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\004\342A\001\002\022I\n" + "\023ssl_policy_resource\030\310\210\212\203\001" @@ -24594,8 +24590,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002\022X\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\004\342A\001\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\013" + + "2).google.cloud.compute.v1.TargetHttpsProxyB\004\342A\001\002B\r\n" + "\013_request_id\"\352\001\n" + "\030PatchRegionUrlMapRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -24612,8 +24608,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" + "\017resource_policy\030\203\245\367K \001(\tB\004\342A\001\002\022R\n" - + "\030resource_policy_resource\030\312\214\321$ \001(\0132\'" - + ".google.cloud.compute.v1.ResourcePolicyB\004\342A\001\002\022\034\n" + + "\030resource_policy_resource\030\312\214\321$" + + " \001(\0132\'.google.cloud.compute.v1.ResourcePolicyB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\367\001\n" @@ -24637,16 +24633,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\363\001\n" + "\036PatchRuleFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022[\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\004\342A\001\002\022\031\n" - + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132" + + "+.google.cloud.compute.v1.FirewallPolicyRuleB\004\342A\001\002\022\031\n" + + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" - + "\t_priorityB\r\n" + + "\t_priorityB\r" + + "\n" + "\013_request_id\"\236\002\n" + "%PatchRuleNetworkFirewallPolicyRequest\022!\n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\004\342A\001\002\022[\n" - + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.google.c" - + "loud.compute.v1.FirewallPolicyRuleB\004\342A\001\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w" + + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\004\342A\001\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" @@ -24656,8 +24654,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002\022\\\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001" - + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\004\342A\001\002B\013\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(" + + "\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\004\342A\001\002B\013\n" + "\t_priorityB\r\n" + "\013_request_id\"\306\002\n" + "+PatchRuleRegionNetworkFirewallPolicyRequest\022!\n" @@ -24677,8 +24675,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002\022\\\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(" - + "\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\004\342A\001\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001" + + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -24688,8 +24686,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002\022\\\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001" - + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\004\342A\001\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+" + + ".google.cloud.compute.v1.SecurityPolicyRuleB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -24699,8 +24697,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002\022R\n" - + "\030security_policy_resource\030\374\252\211g" - + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002\022\034\n" + + "\030security_policy_resource\030\374\252\211g " + + "\001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\221\002\n" @@ -24710,14 +24708,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022$\n" + "\022service_attachment\030\355\251\320\241\001 \001(\tB\004\342A\001\002\022Y\n" - + "\033service_attachment_resource\030\240\266\304\341\001" - + " \001(\0132*.google.cloud.compute.v1.ServiceAttachmentB\004\342A\001\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001 \001" + + "(\0132*.google.cloud.compute.v1.ServiceAttachmentB\004\342A\001\002B\r\n" + "\013_request_id\"\363\001\n" + "\033PatchSnapshotSettingRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n" - + "\032snapshot_settings_resource\030\357\215\306\252\001" - + " \001(\0132).google.cloud.compute.v1.SnapshotSettingsB\004\342A\001\002\022\034\n" + + "\032snapshot_settings_resource\030\357\215\306\252\001 " + + "\001(\0132).google.cloud.compute.v1.SnapshotSettingsB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\317\001\n" @@ -24725,15 +24723,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\004\342A\001\002\022I\n" - + "\023ssl_policy_resource\030\310\210\212\203\001 " - + "\001(\0132\".google.cloud.compute.v1.SslPolicyB\004\342A\001\002B\r\n" + + "\023ssl_policy_resource\030\310\210\212\203\001" + + " \001(\0132\".google.cloud.compute.v1.SslPolicyB\004\342A\001\002B\r\n" + "\013_request_id\"\264\002\n" + "\026PatchSubnetworkRequest\022&\n" + "\025drain_timeout_seconds\030\332\332\310\252\001 \001(\005H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" - + "\342A\001\002\362G\006region\022\032\n" - + "\n" + + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\004\342A\001\002\022I\n" + "\023subnetwork_resource\030\277\332\221\024" @@ -24751,15 +24748,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\004\342A\001\002\022U\n" - + "\032target_http_proxy_resource\030\250\257\343\013" - + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\004\342A\001\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013 \001(\013" + + "2(.google.cloud.compute.v1.TargetHttpProxyB\004\342A\001\002B\r\n" + "\013_request_id\"\354\001\n" + "\034PatchTargetHttpsProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002\022X\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\004\342A\001\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132)" + + ".google.cloud.compute.v1.TargetHttpsProxyB\004\342A\001\002B\r\n" + "\013_request_id\"\302\001\n" + "\022PatchUrlMapRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" @@ -24781,16 +24778,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_maskB\020\n" + "\016_validate_only\"\322\005\n" + "\013PathMatcher\022h\n" - + "$default_custom_error_response_policy\030\251\213\340& \001(" - + "\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" - + "\024default_route_action\030\252\264\327\264\001" - + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + + "$default_custom_error_response_policy\030\251\213\340& \001(\01322.google.cloud." + + "compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" + + "\024default_route_action\030\252\264\327\264\001 \001(\0132(.go" + + "ogle.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\002\210\001\001\022R\n" - + "\024default_url_redirect\030\352\253\266\253\001" - + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + + "\024default_url_redirect\030\352\253\266\253\001 \001(\0132+.google." + + "cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132).goo" - + "gle.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001" + + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\n" + "path_rules\030\335\300\3461 \003(\0132!.google.cloud.compute.v1.PathRule\022?\n" + "\013route_rules\030\201\207\267\263\001" @@ -24803,16 +24800,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_header_actionB\007\n" + "\005_name\"\374\002\n" + "\010PathRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332` \001(\01322.go" - + "ogle.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + + "\034custom_error_response_policy\030\353\370\332`" + + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + "\005paths\030\356\301\3402 \003(\t\022G\n" - + "\014route_action\030\354\251\271\312\001" - + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + + "\014route_action\030\354\251\271\312\001 \001(\0132" + + "(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\002\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001 \001(\0132+.go" - + "ogle.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" + "\035_custom_error_response_policyB\017\n\r" - + "_route_actionB\n\n" + + "_route_actionB\n" + + "\n" + "\010_serviceB\017\n\r" + "_url_redirect\"\236\001\n" + "\023PauseRolloutRequest\022\024\n" @@ -24848,8 +24846,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\260\002\n" + "\"PerformMaintenanceNodeGroupRequest\022\034\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\004\342A\001\002\022\177\n" - + "0node_groups_perform_maintenance_request_resource\030\326\270\256X " - + "\001(\0132<.google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequestB\004\342A\001\002\022\"\n" + + "0node_groups_perform_maintenance_request_resource\030\326\270\256X" + + " \001(\0132<.google.clou" + + "d.compute.v1.NodeGroupsPerformMaintenanceRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -24860,8 +24859,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013reservation\030\314\207\325\026 \001(\tB\004\342A\001\002\022#\n" + "\021reservation_block\030\332\304\211\376\001 \001(\tB\004\342A\001\002\022\220\001\n" + "8reservations_blocks_perform_maintenance_request_resource\030\211\251\324\347\001" - + " \001(\0132D.google.cl" - + "oud.compute.v1.ReservationsBlocksPerformMaintenanceRequestB\004\342A\001\002\022\034\n" + + " \001(\0132D.google.cloud.compute.v1.Re" + + "servationsBlocksPerformMaintenanceRequestB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\266\002\n" + "$PerformMaintenanceReservationRequest\022\"\n" @@ -24869,8 +24868,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013reservation\030\314\207\325\026 \001(\tB\004\342A\001\002\022\202\001\n" + "1reservations_perform_maintenance_request_resource\030\240\365\224\016" - + " \001(\0132>.google.clo" - + "ud.compute.v1.ReservationsPerformMaintenanceRequestB\004\342A\001\002\022\034\n" + + " \001(\0132>.google.cloud.compute.v1.Res" + + "ervationsPerformMaintenanceRequestB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\342\001\n" + ",PerformMaintenanceReservationSubBlockRequest\022\035\n" @@ -24885,8 +24884,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010sub_type\030\331\343\261 \001(\tH\000\210\001\001\022 \n" + "\017target_resource\030\374\355\352\336\001 \001(\tH\001\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\002\210\001\001\022C\n" - + "\017window_end_time\030\240\256\316\201\001 \001(" - + "\0132!.google.cloud.compute.v1.DateTimeH\003\210\001\001\022E\n" + + "\017window_end_time\030\240\256\316\201\001" + + " \001(\0132!.google.cloud.compute.v1.DateTimeH\003\210\001\001\022E\n" + "\021window_start_time\030\271\260\311\341\001" + " \001(\0132!.google.cloud.compute.v1.DateTimeH\004\210\001\001\"\353\001\n" + "\007SubType\022\026\n" @@ -24918,26 +24917,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expression_sets\030\230\253\203\342\001" + " \003(\0132).google.cloud.compute.v1.WafExpressionSet\"\276\005\n" + "\016PreservedState\022D\n" - + "\005disks\030\366\314\312- \003(\01322.google.clou" - + "d.compute.v1.PreservedState.DisksEntry\022S\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\01328.google.cloud" - + ".compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" - + "internal_i_ps\030\333\233\357f \003(\01328.google.c" - + "loud.compute.v1.PreservedState.InternalIPsEntry\022J\n" - + "\010metadata\030\257\366\265) \003(\01325.google.cl", - "oud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + + "\005disks\030\366\314\312-" + + " \003(\01322.google.cloud.compute.v1.PreservedState.DisksEntry\022S\n\r" + + "external_i_ps\030\215\323\200\376\001" + + " \003(\01328.google.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" + + "internal_i_ps\030\333\233\357f \003(\01328.google.cloud.compute.v1.P", + "reservedState.InternalIPsEntry\022J\n" + + "\010metadata\030\257\366\265)" + + " \003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002" - + " \001(\01324.google.cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + + "\005value\030\002 \001(\01324.google.cl" + + "oud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google" - + ".cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.co" - + "mpute.v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + + "\005value\030\002" + + " \001(\01329.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\254\002\n" @@ -24958,8 +24957,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_source\"\236\002\n" + " PreservedStatePreservedNetworkIp\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\n" - + "ip_address\030\334\361\334\301\001 \001(\0132B.google.cloud.compute.v1.Prese" - + "rvedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + + "ip_address\030\334\361\334\301\001 \001(\0132B.google" + + ".cloud.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" + "\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" + "\005NEVER\020\354\244\257#\022%\n" @@ -24978,11 +24977,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022[\n" - + "\021rollout_operation\030\331\320\214\350\001 \001(\01327.google.cloud.compu" - + "te.v1.PreviewFeatureRolloutOperationH\006\210\001\001\022\032\n" + + "\021rollout_operation\030\331\320\214\350\001 \001" + + "(\01327.google.cloud.compute.v1.PreviewFeatureRolloutOperationH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022E\n" - + "\006status\030\362\237\267V" - + " \001(\0132-.google.cloud.compute.v1.PreviewFeatureStatusH\010\210\001\001\"y\n" + + "\006status\030\362\237\267V \001(\0132-.google" + + ".cloud.compute.v1.PreviewFeatureStatusH\010\210\001\001\"y\n" + "\020ActivationStatus\022\037\n" + "\033UNDEFINED_ACTIVATION_STATUS\020\000\022\"\n" + "\034ACTIVATION_STATE_UNSPECIFIED\020\340\312&\022\020\n" @@ -25000,8 +24999,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022PreviewFeatureList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(\0132\'." - + "google.cloud.compute.v1.PreviewFeature\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.PreviewFeature\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" @@ -25013,8 +25012,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\226\001\n" + "\036PreviewFeatureRolloutOperation\022b\n\r" - + "rollout_input\030\274\347\333~ \001(\0132C.google.clou" - + "d.compute.v1.PreviewFeatureRolloutOperationRolloutInputH\000\210\001\001B\020\n" + + "rollout_input\030\274\347\333~ \001(\0132C.google.cloud.compute.v1.Prev" + + "iewFeatureRolloutOperationRolloutInputH\000\210\001\001B\020\n" + "\016_rollout_input\"\273\002\n" + "*PreviewFeatureRolloutOperationRolloutInput\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022(\n" @@ -25030,8 +25029,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024PreviewFeatureStatus\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\031\n" + "\thelp_link\030\270\364\303j \001(\tH\001\210\001\001\022[\n" - + "\016release_status\030\252\276\237\362\001 \001(\0132:.google.clou" - + "d.compute.v1.PreviewFeatureStatusReleaseStatusH\002\210\001\001B\016\n" + + "\016release_status\030\252\276\237\362\001" + + " \001(\0132:.google.cloud.compute.v1.PreviewFeatureStatusReleaseStatusH\002\210\001\001B\016\n" + "\014_descriptionB\014\n\n" + "_help_linkB\021\n" + "\017_release_status\"\367\001\n" @@ -25051,12 +25050,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\027\n" + "\006router\030\311\256\356F \001(\tB\004\342A\001\002\022A\n" - + "\017router_resource\030\304\200\202J \001(\0132" - + "\037.google.cloud.compute.v1.RouterB\004\342A\001\002\"\352\n\n" + + "\017router_resource\030\304\200\202J" + + " \001(\0132\037.google.cloud.compute.v1.RouterB\004\342A\001\002\"\352\n\n" + "\007Project\022 \n" + "\020cloud_armor_tier\030\254\232\216\002 \001(\tH\000\210\001\001\022K\n" - + "\030common_instance_metadata\030\305\374\313X \001(" - + "\0132!.google.cloud.compute.v1.MetadataH\001\210\001\001\022\"\n" + + "\030common_instance_metadata\030\305\374\313X" + + " \001(\0132!.google.cloud.compute.v1.MetadataH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022%\n" + "\024default_network_tier\030\221\305\371\340\001 \001(\tH\003\210\001\001\022(\n" + "\027default_service_account\030\245\371\267\216\001 \001(\tH\004\210\001\001\022\034\n" @@ -25067,8 +25066,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022T\n" - + "\025usage_export_location\030\302\262\334\245\001 \001(\0132,.goo" - + "gle.cloud.compute.v1.UsageExportLocationH\n" + + "\025usage_export_location\030\302\262\334\245\001" + + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationH\n" + "\210\001\001\022\036\n" + "\016vm_dns_setting\030\262\247\210\034 \001(\tH\013\210\001\001\022\"\n" + "\022xpn_project_status\030\301\315\365l \001(\tH\014\210\001\001\"~\n" @@ -25111,12 +25110,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.ProjectH\000\210\001\001B\n\n" + "\010_project\"z\n" + "!ProjectsDisableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(\0132&" + + ".google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"y\n" + " ProjectsEnableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(" + + "\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"\253\001\n" + "\027ProjectsGetXpnResources\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\037\n" @@ -25157,9 +25156,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tpdp_scope\030\321\312\376\371\001 \001(\tH\n" + "\210\001\001\022j\n" - + "\030public_delegated_prefixs\030\213\276\205\313\001" - + " \003(\0132D.google.cloud.compute.v" - + "1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(\0132D" + + ".google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\013\210\001\001\022\036\n\r" + "shared_secret\030\312\247\217\266\001 \001(\tH\014\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\r" @@ -25204,8 +25202,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032PublicAdvertisedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/" - + " \003(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + + "\005items\030\300\317\367/ \003(\0132/.go" + + "ogle.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25245,8 +25243,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022\035\n\r" + "parent_prefix\030\307\347\241\007 \001(\tH\r" + "\210\001\001\022o\n" - + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.g" - + "oogle.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.google.cloud.compu" + + "te.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + "\006region\030\364\315\240B \001(\tH\016\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\017\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\020\210\001\001\"D\n" @@ -25292,8 +25290,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\341\003\n" + "#PublicDelegatedPrefixAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\013" - + "2G.google.cloud.compute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132G.google.cloud.c" + + "ompute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25302,8 +25300,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001" - + "(\0132:.google.cloud.compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google.cloud" + + ".compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25311,8 +25309,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\273\002\n" + "\031PublicDelegatedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/ \003(\0132..goo" - + "gle.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25328,7 +25326,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021delegatee_project\030\332\212\351\305\001 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022/\n" + "\037enable_enhanced_ipv4_allocation\030\355\267\203\032" - + " \001(\010H\003\210\001\001\022\035\n\r" + + " \001(\010H\003\210\001\001\022\035\n" + + "\r" + "ip_cidr_range\030\312\315\344. \001(\tH\004\210\001\001\022!\n" + "\020ipv6_access_type\030\335\365\321\360\001 \001(\tH\005\210\001\001\022\033\n\n" + "is_address\030\337\213\222\250\001 \001(\010H\006\210\001\001\022\024\n" @@ -25363,8 +25362,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\t\n" + "\007_status\"\301\001\n" + "!PublicDelegatedPrefixesScopedList\022U\n" - + "\031public_delegated_prefixes\030\226\202\252\226\001" - + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + + "\031public_delegated_prefixes\030\226\202\252\226\001 \003(\0132..google." + + "cloud.compute.v1.PublicDelegatedPrefix\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\346(\n" @@ -25535,10 +25534,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023TARGET_VPN_GATEWAYS\020\250\273\343#\022\032\n" + "\022TPU_LITE_DEVICE_V5\020\375\204\260\326\001\022\033\n" + "\024TPU_LITE_PODSLICE_V5\020\306\323\207\006\022\026\n" - + "\017TPU_PODSLICE_V4\020\312\207\242f\022\020\n" - + "\010URL_MAPS\020\207\317\307\264\001\022.\n" - + "\'VARIABLE_IPV6_PUBLIC_DELEGATED_PREFIXES\020\241\366\234=", - "\022\023\n" + + "\017TPU_PODSLICE_V4\020\312\207\242f\022\020\n", + "\010URL_MAPS\020\207\317\307\264\001\022.\n" + + "\'VARIABLE_IPV6_PUBLIC_DELEGATED_PREFIXES\020\241\366\234=\022\023\n" + "\014VPN_GATEWAYS\020\272\213\376\020\022\022\n" + "\013VPN_TUNNELS\020\200\321\3371\022\033\n" + "\024XPN_SERVICE_PROJECTS\020\255\207\262-B\010\n" @@ -25547,8 +25545,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_ownerB\010\n" + "\006_usage\"\340\003\n" + "\021QuotaExceededInfo\022R\n\n" - + "dimensions\030\315\377\310\305\001 \003(\0132:." - + "google.cloud.compute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + + "dimensions\030\315\377\310\305\001 \003(\0132:.google.cloud.comp" + + "ute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + "\014future_limit\030\277\274\332\331\001 \001(\001H\000\210\001\001\022\025\n" + "\005limit\030\273\227\2151 \001(\001H\001\210\001\001\022\033\n\n" + "limit_name\030\217\211\360\275\001 \001(\tH\002\210\001\001\022\034\n" @@ -25556,12 +25554,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016rollout_status\030\300\344\226\343\001 \001(\tH\004\210\001\001\0321\n" + "\017DimensionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"e\n\r" + + "\005value\030\002 \001(\t:\0028\001\"e\n" + + "\r" + "RolloutStatus\022\034\n" + "\030UNDEFINED_ROLLOUT_STATUS\020\000\022\023\n" + "\013IN_PROGRESS\020\207\250\335\337\001\022!\n" - + "\032ROLLOUT_STATUS_UNSPECIFIED\020\270\327\347\014B\017\n" - + "\r" + + "\032ROLLOUT_STATUS_UNSPECIFIED\020\270\327\347\014B\017\n\r" + "_future_limitB\010\n" + "\006_limitB\r\n" + "\013_limit_nameB\016\n" @@ -25617,8 +25615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",RecreateInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\224\001\n" + ";instance_group_managers_recreate_instances_request_resource\030\200\302\232\n" - + " \001(\0132F.google.cloud.compute.v1.Instan" - + "ceGroupManagersRecreateInstancesRequestB\004\342A\001\002\022%\n" + + " \001(\0132F.google." + + "cloud.compute.v1.InstanceGroupManagersRecreateInstancesRequestB\004\342A\001\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" @@ -25632,8 +25630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\216\001\n" + "8region_instance_group_managers_recreate_request_resource\030\224\374\304Q" - + " \001(\0132C.google.cloud.compute.v1." - + "RegionInstanceGroupManagersRecreateRequestB\004\342A\001\002\022\032\n\n" + + " \001(\0132C.g" + + "oogle.cloud.compute.v1.RegionInstanceGroupManagersRecreateRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\027\n" + "\025_no_graceful_shutdownB\r\n" + "\013_request_id\"\250\001\n" @@ -25653,14 +25651,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_path_substitution\"\204\005\n" + "\006Region\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132" - + "*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022R\n" - + "\024quota_status_warning\030\366\211\272\220\001" - + " \001(\0132+.google.cloud.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n" + + "\024quota_status_warning\030\366\211\272\220\001 \001(\0132+." + + "google.cloud.compute.v1.QuotaStatusWarningH\006\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\010\210\001\001\022\034\n" @@ -25743,8 +25741,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005names\030\310\256\3571 \003(\t\"\277\002\n" + "\036RegionInstanceGroupManagerList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003" - + "(\0132-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25756,13 +25754,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\200\001\n" + "0RegionInstanceGroupManagerPatchInstanceConfigReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001" - + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"\232\003\n" + + "\024per_instance_configs\030\251\325\370\372\001 " + + "\003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"\232\003\n" + "4RegionInstanceGroupManagerResizeRequestsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google.cloud.compu" - + "te.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -25809,8 +25807,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\356\001\n" + "2RegionInstanceGroupManagersListInstanceConfigsResp\022<\n" - + "\005items\030\300\317\367/ \003(\0132" - + "*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\001\210\001\001B\022\n" @@ -25890,23 +25888,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"{\n" + "1RegionNetworkEndpointGroupsAttachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G" - + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + + "\021network_endpoints\030\255\221\272G \003(\0132(." + + "google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1RegionNetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G" - + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + + "\021network_endpoints\030\255\221\272G \003" + + "(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + ":RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse\022\210\001\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.go" - + "ogle.cloud.compute.v1.RegionNetworkFirew" - + "allPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google.cloud.comput" + + "e.v1.RegionNetworkFirewallPoliciesGetEff" + + "ectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\224\004\n" - + "QRegionNetworkFirewallPoliciesGetEf" - + "fectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + + "QRegionNetwo" + + "rkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+" + + ".google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" + "\005rules\030\367\221\3653" + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\024\n" @@ -25925,8 +25923,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\321\001\n" + "\026RegionSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(\0132;.google.cloud.comput" - + "e.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(" + + "\0132;.google.cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -25956,8 +25954,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022K\n" - + "\016recommendation\030\271\377\300\025 \001(" - + "\0132+.google.cloud.compute.v1.RiskRecommendationH\006\210\001\001\022\032\n" + + "\016recommendation\030\271\377\300\025" + + " \001(\0132+.google.cloud.compute.v1.RiskRecommendationH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001B\025\n" + "\023_creation_timestampB\016\n" @@ -25972,8 +25970,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ReliabilityRisksListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022:\n" - + "\005items\030\300\317\367/" - + " \003(\0132(.google.cloud.compute.v1.ReliabilityRisk\022\037\n" + + "\005items\030\300\317\367/ \003(\0132" + + "(.google.cloud.compute.v1.ReliabilityRisk\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" @@ -26018,8 +26016,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013target_pool\030\212\344\370\035 \001(\tB\004\342A\001\002\022\201\001\n" - + "1target_pools_remove_health_check_request_resource\030\263\347\266\221\001 \001(" - + "\0132<.google.cloud.compute.v1.TargetPoolsRemoveHealthCheckRequestB\004\342A\001\002B\r\n" + + "1target_pools_remove_health_check_request_resource\030\263\347\266\221\001" + + " \001(\0132<.google.cloud." + + "compute.v1.TargetPoolsRemoveHealthCheckRequestB\004\342A\001\002B\r\n" + "\013_request_id\"\253\002\n" + "\037RemoveInstanceTargetPoolRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" @@ -26028,13 +26027,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013target_pool\030\212\344\370\035 \001(\tB\004\342A\001\002\022y\n" + "-target_pools_remove_instance_request_resource\030\203\300\213\016" - + " \001(\01329.google.clou" - + "d.compute.v1.TargetPoolsRemoveInstanceRequestB\004\342A\001\002B\r\n" + + " \001(\01329.google.cloud.compute.v1.TargetPoolsRemoveInstanceRequestB\004\342A\001\002B\r\n" + "\013_request_id\"\270\002\n" + "#RemoveInstancesInstanceGroupRequest\022\037\n" + "\016instance_group\030\325\324\325& \001(\tB\004\342A\001\002\022\202\001\n" - + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001 " - + "\001(\0132=.google.cloud.compute.v1.InstanceGroupsRemoveInstancesRequestB\004\342A\001\002\022\"\n" + + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001" + + " \001(\0132=.google.clou" + + "d.compute.v1.InstanceGroupsRemoveInstancesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -26049,23 +26048,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033RemovePeeringNetworkRequest\022\030\n" + "\007network\030\256\264\205o \001(\tB\004\342A\001\002\022q\n" + "(networks_remove_peering_request_resource\030\376\333\351\310\001" - + " \001(\01325.google.cloud" - + ".compute.v1.NetworksRemovePeeringRequestB\004\342A\001\002\022\"\n" + + " \001(\01325.google.cloud.compute.v1.NetworksRemovePeeringRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\247\002\n" + "!RemoveResourcePoliciesDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022~\n" + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001" - + " \001(\0132;.google.cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\004\342A\001\002\022\"\n" + + " \001(\0132;.google." + + "cloud.compute.v1.DisksRemoveResourcePoliciesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\267\002\n" + "%RemoveResourcePoliciesInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\205\001\n" - + "3instances_remove_resource_policies_request_resource\030\366\335\274\027 \001(\0132?." - + "google.cloud.compute.v1.InstancesRemoveResourcePoliciesRequestB\004\342A\001\002\022\"\n" + + "3instances_remove_resource_policies_request_resource\030\366\335\274\027" + + " \001(\0132?.google.cloud.comp" + + "ute.v1.InstancesRemoveResourcePoliciesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -26076,8 +26076,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\212\001\n" + "6region_disks_remove_resource_policies_request_resource\030\243\303\225\004" - + " \001(\0132A.google.cloud.co" - + "mpute.v1.RegionDisksRemoveResourcePoliciesRequestB\004\342A\001\002\022\032\n\n" + + " \001(\0132A.google.cloud.compute.v1.RegionDi" + + "sksRemoveResourcePoliciesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\227\001\n" + "\037RemoveRuleFirewallPolicyRequest\022!\n" @@ -26119,24 +26119,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\017security_policy\030\221\206\312Q \001(\tB\004\342A\001\002B\013\n" - + "\t_priority\"\350\002\n" + + "\t_pr", + "iority\"\350\002\n" + "&ReportFaultyReservationSubBlockRequest\022\035\n" - + "\013parent_nam", - "e\030\200\212\200\344\001 \001(\tB\004\342A\001\002\022\"\n" + + "\013parent_name\030\200\212\200\344\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n" + "\025reservation_sub_block\030\233\312\354\n" + " \001(\tB\004\342A\001\002\022\211\001\n" + "5reservation_sub_blocks_report_faulty_request_resource\030\302\311\375\326\001" - + " \001(\0132@.google.c" - + "loud.compute.v1.ReservationSubBlocksReportFaultyRequestB\004\342A\001\002\022\034\n" + + " \001(\0132@.google.cloud.compute.v1.R" + + "eservationSubBlocksReportFaultyRequestB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\254\002\n" + "!ReportHostAsFaultyInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\177\n" + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001" - + " \001(\0132;.goog" - + "le.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\004\342A\001\002\022\"\n" + + " \001(\0132;.google.cloud.compute." + + "v1.InstancesReportHostAsFaultyRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -26149,21 +26149,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RequestRemovePeeringNetworkRequest\022\030\n" + "\007network\030\256\264\205o \001(\tB\004\342A\001\002\022\177\n" + "0networks_request_remove_peering_request_resource\030\316\344\367G" - + " \001(\0132<.google.cloud." - + "compute.v1.NetworksRequestRemovePeeringRequestB\004\342A\001\002\022\"\n" + + " \001(\0132<.google.cloud.compute.v1.NetworksRequestRemovePeeringRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\313\026\n" + "\013Reservation\022k\n" - + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\0132=.google.cl" - + "oud.compute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" - + "\025aggregate_reservation\030\314\362\203\213\001" - + " \001(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\001\210\001\001\022\033\n\n" + + "\033advanced_deployment_control\030\240\222\346\303\001" + + " \001(\0132=.google.cloud.compute.v1.Re" + + "servationAdvancedDeploymentControlH\000\210\001\001\022_\n" + + "\025aggregate_reservation\030\314\362\203\213\001 \001(\01327.goo" + + "gle.cloud.compute.v1.AllocationAggregateReservationH\001\210\001\001\022\033\n\n" + "commitment\030\225\226\363\345\001 \001(\tH\002\210\001\001\022*\n" + "\031confidential_compute_type\030\231\357\242\270\001 \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022I\n" - + "\025delete_after_duration\030\253\233\277\232\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022\036\n" + + "\025delete_after_duration\030\253\233\277\232\001 \001(\013" + + "2!.google.cloud.compute.v1.DurationH\005\210\001\001\022\036\n" + "\016delete_at_time\030\305\361\333\' \001(\tH\006\210\001\001\022 \n" + "\017deployment_type\030\364\200\226\275\001 \001(\tH\007\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\010\210\001\001\022)\n" @@ -26175,24 +26175,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022linked_commitments\030\330\375\310\340\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\r" + "\210\001\001\022B\n" - + "\006params\030\206\363\253% \001(\0132*.go" - + "ogle.cloud.compute.v1.ReservationParamsH\016\210\001\001\022 \n" + + "\006params\030\206\363\253%" + + " \001(\0132*.google.cloud.compute.v1.ReservationParamsH\016\210\001\001\022 \n" + "\017protection_tier\030\210\237\247\360\001 \001(\tH\017\210\001\001\022g\n" - + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;." - + "google.cloud.compute.v1.AllocationReservationSharingPolicyH\020\210\001\001\022L\n" - + "\021resource_metadata\030\300\260\236/" - + " \001(\0132).google.cloud.compute.v1.ResourceMetadataH\021\210\001\001\022X\n" + + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;.google.cloud.comp" + + "ute.v1.AllocationReservationSharingPolicyH\020\210\001\001\022L\n" + + "\021resource_metadata\030\300\260\236/ \001(\0132).g" + + "oogle.cloud.compute.v1.ResourceMetadataH\021\210\001\001\022X\n" + "\021resource_policies\030\341\234\314\n" + " \003(\0132:.google.cloud.compute.v1.Reservation.ResourcePoliciesEntry\022R\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01321.google.cloud.compute.v1.AllocationResourceStatusH\022\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001" + + "(\01321.google.cloud.compute.v1.AllocationResourceStatusH\022\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\023\210\001\001\022\037\n" + "\017scheduling_type\030\205\376\244_ \001(\tH\024\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\025\210\001\001\022F\n" - + "\016share_settings\030\203\221\224\177 \001(\0132&.go" - + "ogle.cloud.compute.v1.ShareSettingsH\026\210\001\001\022`\n" - + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.goo" - + "gle.cloud.compute.v1.AllocationSpecificSKUReservationH\027\210\001\001\022-\n" + + "\016share_settings\030\203\221\224\177" + + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\026\210\001\001\022`\n" + + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.google.cloud.compute" + + ".v1.AllocationSpecificSKUReservationH\027\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l" + " \001(\010H\030\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\031\210\001\001\022\024\n" @@ -26282,8 +26282,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_key\"\302\003\n" + "\031ReservationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.google.cloud.compu" - + "te.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132=.google.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26292,8 +26292,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.ReservationsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132/.goo" + + "gle.cloud.compute.v1.ReservationsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -26302,15 +26302,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ReservationBlock\022\025\n" + "\005count\030\217\242\235- \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022P\n" - + "\013health_info\030\261\351\230p \001(\01323.google." - + "cloud.compute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p" + + " \001(\01323.google.cloud.compute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\004\210\001\001\022\"\n" + "\021in_use_host_count\030\312\207\315\255\001 \001(\005H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022]\n" - + "\021physical_topology\030\327\251\264\205\001" - + " \001(\01329.google.cloud.compute.v1.ReservationBlockPhysicalTopologyH\010\210\001\001\022W\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\01329.google" + + ".cloud.compute.v1.ReservationBlockPhysicalTopologyH\010\210\001\001\022W\n" + "\027reservation_maintenance\030\240\206\265\242\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\t\210\001\001\022,\n" + "\033reservation_sub_block_count\030\353\261\335\235\001 \001(\005H\n" @@ -26366,9 +26366,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_cluster\"\235\002\n" + "(ReservationBlockPhysicalTopologyInstance\022\033\n" + "\013instance_id\030\205\262\330\025 \001(\004H\000\210\001\001\022~\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001(" - + "\0132U.google.cloud.compute.v1.ReservationB" - + "lockPhysicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132U.google.cloud." + + "compute.v1.ReservationBlockPhysicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + "project_id\030\201\310\322T \001(\004H\002\210\001\001B\016\n" + "\014_instance_idB\031\n" + "\027_physical_host_topologyB\r\n" @@ -26379,8 +26378,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\014\n\n" + "_sub_block\"p\n" + "\034ReservationBlocksGetResponse\022C\n" - + "\010resource\030\216\210\257]" - + " \001(\0132).google.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\0132).goog" + + "le.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + "\t_resource\"\272\002\n" + "\035ReservationBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" @@ -26410,8 +26409,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\267\001\n" + "\021ReservationParams\022f\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud.c" - + "ompute.v1.ReservationParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132C.google.cloud.compute.v1.ReservationParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\005\n" @@ -26420,12 +26419,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\001\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\003\210\001\001\022\\\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\01328.google.cloud.com" - + "pute.v1.ReservationSlotPhysicalTopologyH\004\210\001\001\022\032\n" + + "\021physical_topology\030\327\251\264\205\001" + + " \001(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\004\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\005\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\006\210\001\001\022F\n" - + "\016share_settings\030\203\221\224\177" - + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\007\210\001\001\022\025\n" + + "\016share_settings\030\203\221\224\177 \001(\0132&." + + "google.cloud.compute.v1.ShareSettingsH\007\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\010\210\001\001\022F\n" + "\006status\030\362\237\267V \001(\0132..google.cloud.compute.v1.ReservationSlotStatusH" + "\t\210\001\001\022\024\n" @@ -26459,14 +26458,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\014\n\n" + "_sub_block\"\310\001\n" + "\025ReservationSlotStatus\022\\\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\01328.google.cloud.compu" - + "te.v1.ReservationSlotPhysicalTopologyH\000\210\001\001\022\034\n" + + "\021physical_topology\030\327\251\264\205\001 \001" + + "(\01328.google.cloud.compute.v1.ReservationSlotPhysicalTopologyH\000\210\001\001\022\034\n" + "\021rdma_ip_addresses\030\343\245\204P \003(\t\022\035\n" + "\021running_instances\030\376\327\334\377\001 \003(\tB\024\n" + "\022_physical_topology\"n\n" + "\033ReservationSlotsGetResponse\022B\n" - + "\010resource\030\216\210\257]" - + " \001(\0132(.google.cloud.compute.v1.ReservationSlotH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257] \001(\013" + + "2(.google.cloud.compute.v1.ReservationSlotH\000\210\001\001B\013\n" + "\t_resource\"\323\001\n" + "!ReservationSlotsGetVersionRequest\022\032\n" + "\017sbom_selections\030\371\366\374 \003(\t\"\221\001\n" @@ -26477,8 +26476,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032SBOM_SELECTION_UNSPECIFIED\020\362\364\201\265\001\"\270\002\n" + "\034ReservationSlotsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/ \003(\013" - + "2(.google.cloud.compute.v1.ReservationSlot\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132(.google.cloud.compute.v1.ReservationSlot\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -26490,19 +26489,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\241\010\n" + "\023ReservationSubBlock\022_\n" - + "\033accelerator_topologies_info\030\214\351\271( \001(\01322.google." - + "cloud.compute.v1.AcceleratorTopologiesInfoH\000\210\001\001\022\025\n" + + "\033accelerator_topologies_info\030\214\351\271(" + + " \001(\01322.google.cloud.compute.v1.AcceleratorTopologiesInfoH\000\210\001\001\022\025\n" + "\005count\030\217\242\235- \001(\005H\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022S\n" - + "\013health_info\030\261\351\230p" - + " \001(\01326.google.cloud.compute.v1.ReservationSubBlockHealthInfoH\003\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p \001(\01326.goog" + + "le.cloud.compute.v1.ReservationSubBlockHealthInfoH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\005\210\001\001\022\"\n" + "\021in_use_host_count\030\312\207\315\255\001 \001(\005H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022`\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google" - + ".cloud.compute.v1.ReservationSubBlockPhysicalTopologyH\t\210\001\001\022a\n" + + "\021physical_topology\030\327\251\264\205\001" + + " \001(\0132<.google.cloud.compute.v1.ReservationSubBlockPhysicalTopologyH" + + "\t\210\001\001\022a\n" + "!reservation_sub_block_maintenance\030\357\313\342\263\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\n" + "\210\001\001\022\032\n" @@ -26552,13 +26552,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005block\030\215\211\337, \001(\tH\000\210\001\001\022\030\n" + "\007cluster\030\372\243\354\237\001 \001(\tH\001\210\001\001\022\032\n" + "\tsub_block\030\316\353\370\343\001 \001(\tH\002\210\001\001B\010\n" - + "\006_blockB\n" - + "\n" + + "\006_blockB\n\n" + "\010_clusterB\014\n\n" + "_sub_block\"v\n" + "\037ReservationSubBlocksGetResponse\022F\n" - + "\010resource\030\216\210\257] \001(\013" - + "2,.google.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257]" + + " \001(\0132,.google.cloud.compute.v1.ReservationSubBlockH\000\210\001\001B\013\n" + "\t_resource\"\327\001\n" + "%ReservationSubBlocksGetVersionRequest\022\032\n" + "\017sbom_selections\030\371\366\374 \003(\t\"\221\001\n" @@ -26569,8 +26568,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032SBOM_SELECTION_UNSPECIFIED\020\362\364\201\265\001\"\300\002\n" + " ReservationSubBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022>\n" - + "\005items\030\300\317\367/ \003(\0132,.go" - + "ogle.cloud.compute.v1.ReservationSubBlock\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132,.google.cloud.compute.v1.ReservationSubBlock\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -26584,8 +26583,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'ReservationSubBlocksReportFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022!\n" + "\021failure_component\030\210\311\255\014 \001(\tH\001\210\001\001\022e\n\r" - + "fault_reasons\030\222\253\221P \003(\0132K.google.clo" - + "ud.compute.v1.ReservationSubBlocksReportFaultyRequestFaultReason\"r\n" + + "fault_reasons\030\222\253\221P \003(\0132K.google.cloud.compute.v1.Res" + + "ervationSubBlocksReportFaultyRequestFaultReason\"r\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\020\n" @@ -26637,7 +26636,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014reservations\030\247\354\314\276\001" + " \003(\0132$.google.cloud.compute.v1.Reservation\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" + + "\n" + "\010_warning\"\236\001\n" + "\024ResetInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\"\n" @@ -26647,8 +26647,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\364\001\n" + "\021ResizeDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022[\n" - + "\035disks_resize_request_resource\030\240\302\253% \001(\0132+.go" - + "ogle.cloud.compute.v1.DisksResizeRequestB\004\342A\001\002\022\"\n" + + "\035disks_resize_request_resource\030\240\302\253%" + + " \001(\0132+.google.cloud.compute.v1.DisksResizeRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -26665,8 +26665,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022i\n" - + "$region_disks_resize_request_resource\030\225\252\374\324\001" - + " \001(\01321.google.cloud.compute.v1.RegionDisksResizeRequestB\004\342A\001\002\022\032\n\n" + + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001(\013" + + "21.google.cloud.compute.v1.RegionDisksResizeRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\332\001\n" + "\'ResizeRegionInstanceGroupManagerRequest\022\'\n" @@ -26681,8 +26681,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\013reservation\030\314\207\325\026 \001(\tB\004\342A\001\002\022j\n" - + "$reservations_resize_request_resource\030\321\333\316\271\001 \001(\01322.google" - + ".cloud.compute.v1.ReservationsResizeRequestB\004\342A\001\002\022\034\n" + + "$reservations_resize_request_resource\030\321\333\316\271\001" + + " \001(\01322.google.cloud.compute.v1.ReservationsResizeRequestB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\202\002\n" + "\022ResourceCommitment\022 \n" @@ -26716,26 +26716,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ResourcePolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022q\n" - + "\035disk_consistency_group_policy\030\233\204\362\341\001 \001(\0132A.google" - + ".cloud.compute.v1.ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" - + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.google.cloud.comput" - + "e.v1.ResourcePolicyGroupPlacementPolicyH", - "\003\210\001\001\022\020\n" + + "\035disk_consistency_group_policy\030\233\204\362\341\001" + + " \001(\0132A.google.cloud.compute.v1" + + ".ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" + + "\026group_placement_policy\030\214\233\233\005 \001(", + "\0132;.google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022h\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.google.cloud.comp" - + "ute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 " + + "\001(\0132=.google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022V\n" - + "\017resource_status\030\303\372\367v \001(\01325.google.cloud." - + "compute.v1.ResourcePolicyResourceStatusH\t\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v" + + " \001(\01325.google.cloud.compute.v1.ResourcePolicyResourceStatusH" + + "\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022g\n" - + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132=.google.c" - + "loud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132=.google.cloud.compute.v1.R" + + "esourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\014\210\001\001\022V\n" - + "\017workload_policy\030\372\205\3326 \001(\01325.google.c" - + "loud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + + "\017workload_policy\030\372\205\3326" + + " \001(\01325.google.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + "\210\001\001\"r\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -26761,8 +26762,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ResourcePolicyAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.go" - + "ogle.cloud.compute.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.comput" + + "e.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -26771,8 +26772,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google." - + "cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -26811,17 +26812,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016hours_in_cycle\030\374\210\227\373\001 \001(\005H\001\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\002\210\001\001B\013\n" + "\t_durationB\021\n" - + "\017_hours_in_cycleB\r" - + "\n" + + "\017_hours_in_cycleB\r\n" + "\013_start_time\"\256\003\n" + "$ResourcePolicyInstanceSchedulePolicy\022\037\n" + "\017expiration_time\030\335\254\350m \001(\tH\000\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031\n" + "\ttime_zone\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n" - + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.cloud.compute.v1.R" - + "esourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" - + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E" - + ".google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.go" + + "ogle.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" + + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google.cloud.com" + + "pute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + "\020_expiration_timeB\r\n" + "\013_start_timeB\014\n\n" + "_time_zoneB\024\n" @@ -26833,8 +26833,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ResourcePolicyList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.ResourcePolicy\022\024\n" + + "\005items\030\300\317\367/ \003(\0132\'" + + ".google.cloud.compute.v1.ResourcePolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\0229\n" @@ -26847,8 +26847,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\034ResourcePolicyResourceStatus\022|\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.google.cloud.comp" - + "ute.v1.ResourcePolicyResourceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 " + + "\001(\0132Q.google.cloud.compute.v1.ResourcePo" + + "licyResourceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + "\031_instance_schedule_policy\"\266\001\n" + "8ResourcePolicyResourceStatusInstanceSchedulePolicyStatus\022$\n" + "\023last_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022$\n" @@ -26856,12 +26857,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_last_run_start_timeB\026\n" + "\024_next_run_start_time\"\250\003\n" + "$ResourcePolicySnapshotSchedulePolicy\022n\n" - + "\020retention_policy\030\363\312\334 \001(\0132L.googl" - + "e.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" - + "\010schedule\030\227\245\232\263\001 \001(\0132E.google.cloud.compute" - + ".v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" - + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.compute.v1.Resource" - + "PolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud.compute.v" + + "1.ResourcePolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" + + "\010schedule\030\227\245\232\263\001 \001(\013" + + "2E.google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" + + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cl" + + "oud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + "\021_retention_policyB\013\n" + "\t_scheduleB\026\n" + "\024_snapshot_properties\"\325\002\n" @@ -26876,21 +26877,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_max_retention_daysB\030\n" + "\026_on_source_disk_delete\"\347\002\n" + ",ResourcePolicySnapshotSchedulePolicySchedule\022Q\n" - + "\016daily_schedule\030\375\343\212)" - + " \001(\01321.google.cloud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" - + "\017hourly_schedule\030\245\261\243\022" - + " \001(\01322.google.cloud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" - + "\017weekly_schedule\030\225\211\271\253\001" - + " \001(\01322.google.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + + "\016daily_schedule\030\375\343\212) \001(\01321.googl" + + "e.cloud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" + + "\017hourly_schedule\030\245\261\243\022 \001(\01322.g" + + "oogle.cloud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" + + "\017weekly_schedule\030\225\211\271\253\001 \001" + + "(\01322.google.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + "\017_daily_scheduleB\022\n" + "\020_hourly_scheduleB\022\n" + "\020_weekly_schedule\"\320\002\n" + "6ResourcePolicySnapshotSchedulePolicySnapshotProperties\022\032\n\n" + "chain_name\030\311\332\335 \001(\tH\000\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\001\210\001\001\022o\n" - + "\006labels\030\377\277\301\356\001 \003(\0132[.googl" - + "e.cloud.compute.v1.ResourcePolicySnapsho" - + "tSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v" + + "1.ResourcePolicySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -26898,8 +26898,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_chain_nameB\016\n" + "\014_guest_flush\"q\n" + "\031ResourcePolicyWeeklyCycle\022T\n" - + "\014day_of_weeks\030\332\237\373z" - + " \003(\0132;.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + + "\014day_of_weeks\030\332\237\373z \003(\0132;.google" + + ".cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + "\"ResourcePolicyWeeklyCycleDayOfWeek\022\022\n" + "\003day\030\234\207\006 \001(\tH\000\210\001\001\022\030\n" + "\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\n" @@ -26940,20 +26940,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_max_topology_distanceB\007\n" + "\005_type\"\237\006\n" + "\016ResourceStatus\022m\n" - + "\033effective_instance_metadata\030\201\216\240\032" - + " \001(\0132@.google.cloud.compute.v1.Resou" - + "rceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + + "\033effective_instance_metadata\030\201\216\240\032 \001(\0132@.google" + + ".cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + "physical_host\030\220\370\266\335\001 \001(\tH\001\210\001\001\022d\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;.google.clo" - + "ud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022o\n" - + "\034reservation_consumption_info\030\345\305\357_ \001(\0132A.google.cloud.compute.v1" - + ".ResourceStatusReservationConsumptionInfoH\003\210\001\001\022N\n\n" - + "scheduling\030\224\313\261\270\001 \001(\01321.google." - + "cloud.compute.v1.ResourceStatusSchedulingH\004\210\001\001\022X\n" - + "\020shutdown_details\030\331\322\237\007 \001(\01326.go" - + "ogle.cloud.compute.v1.ResourceStatusShutdownDetailsH\005\210\001\001\022R\n" - + "\024upcoming_maintenance\030\360\240\264l" - + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\006\210\001\001B\036\n" + + "\026physical_host_topology\030\276\223\257\272\001" + + " \001(\0132;.google.cloud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022o\n" + + "\034reservation_consumption_info\030\345\305\357_ \001(\0132A." + + "google.cloud.compute.v1.ResourceStatusReservationConsumptionInfoH\003\210\001\001\022N\n\n" + + "scheduling\030\224\313\261\270\001" + + " \001(\01321.google.cloud.compute.v1.ResourceStatusSchedulingH\004\210\001\001\022X\n" + + "\020shutdown_details\030\331\322\237\007 \001(\01326.google.cloud.comput" + + "e.v1.ResourceStatusShutdownDetailsH\005\210\001\001\022R\n" + + "\024upcoming_maintenance\030\360\240\264l \001(\0132,.googl" + + "e.cloud.compute.v1.UpcomingMaintenanceH\006\210\001\001B\036\n" + "\034_effective_instance_metadataB\020\n" + "\016_physical_hostB\031\n" + "\027_physical_host_topologyB\037\n" @@ -26988,8 +26987,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*_serial_port_logging_enable_metadata_valueB \n" + "\036_vm_dns_setting_metadata_value\"\303\002\n" + "\"ResourceStatusPhysicalHostTopology\022v\n" - + "\025additional_attributes\030\357\360\300# \001(\0132O.google.cloud." - + "compute.v1.ResourceStatusPhysicalHostTopologyAdditionalAttributesH\000\210\001\001\022\025\n" + + "\025additional_attributes\030\357\360\300# \001(\0132O.google.cloud.compute.v1.Resour" + + "ceStatusPhysicalHostTopologyAdditionalAttributesH\000\210\001\001\022\025\n" + "\005block\030\215\211\337, \001(\tH\001\210\001\001\022\030\n" + "\007cluster\030\372\243\354\237\001 \001(\tH\002\210\001\001\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\003\210\001\001\022\030\n" @@ -27000,9 +26999,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_hostB\013\n" + "\t_subblock\"\213\002\n" + "6ResourceStatusPhysicalHostTopologyAdditionalAttributes\022\221\001\n" - + "\030accelerator_topology_ids\030\274\214\243\241\001" - + " \003(\0132k.google.cloud.compute.v1.ResourceStatusPhysicalHostTopologyAddi" - + "tionalAttributes.AcceleratorTopologyIdsEntry\032=\n" + + "\030accelerator_topology_ids\030\274\214\243\241\001 \003(\0132k" + + ".google.cloud.compute.v1.ResourceStatusP" + + "hysicalHostTopologyAdditionalAttributes.AcceleratorTopologyIdsEntry\032=\n" + "\033AcceleratorTopologyIdsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\211\002\n" @@ -27049,8 +27048,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*ResumeInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\220\001\n" + "9instance_group_managers_resume_instances_request_resource\030\302\276\302=" - + " \001(\0132D.google." - + "cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestB\004\342A\001\002\022\"\n" + + " \001(\0132D.google.cloud.compute.v1." + + "InstanceGroupManagersResumeInstancesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -27060,10 +27059,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\236\001\n" - + "@region_instance_" - + "group_managers_resume_instances_request_resource\030\267\203\200\335\001" - + " \001(\0132J.google.cloud.comput" - + "e.v1.RegionInstanceGroupManagersResumeInstancesRequestB\004\342A\001\002\022\032\n\n" + + "@region_instance_group_managers_resume_instances_request_resource\030\267\203\200\335\001" + + " \001(\0132J.google.cloud.compute.v1.RegionInstan" + + "ceGroupManagersResumeInstancesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\237\001\n" + "\024ResumeRolloutRequest\022\024\n" @@ -27075,8 +27073,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\365\003\n" + "\013RiskDetails\022\030\n" + "\010duration\030\224\233\221J \001(\tH\000\210\001\001\022Y\n" - + "\022global_dns_insight\030\346\347\304\365\001 \001(\01324.google.cloud.compu" - + "te.v1.RiskDetailsGlobalDnsInsightH\001\210\001\001\022%\n" + + "\022global_dns_insight\030\346\347\304\365\001 \001" + + "(\01324.google.cloud.compute.v1.RiskDetailsGlobalDnsInsightH\001\210\001\001\022%\n" + "\025last_update_timestamp\030\251\207\361\005 \001(\tH\002\210\001\001\022\031\n" + "\010severity\030\375\245\364\300\001 \001(\tH\003\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\004\210\001\001\"x\n" @@ -27124,8 +27122,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pause_time\030\366\336\300\351\001 \001(\tH\t\210\001\001\022\034\n" + "\013resume_time\030\237\257\251\332\001 \001(\tH\n" + "\210\001\001\022M\n" - + "\016rollout_entity\030\261\214\327!" - + " \001(\0132-.google.cloud.compute.v1.RolloutRolloutEntityH\013\210\001\001\022\035\n" + + "\016rollout_entity\030\261\214\327! \001(\0132-." + + "google.cloud.compute.v1.RolloutRolloutEntityH\013\210\001\001\022\035\n" + "\014rollout_plan\030\367\321\362\332\001 \001(\tH\014\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022!\n" @@ -27189,26 +27187,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\021\n" + "\017_location_scopeB\007\n" - + "\005_nameB\014\n" - + "\n" + + "\005_nameB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_id\"\213\003\n" + "\017RolloutPlanWave\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\026\n" + "\006number\030\311\266\343\022 \001(\003H\001\210\001\001\022c\n" - + "\025orchestration_options\030\240\315\271, \001(\0132<.google.cloud.com" - + "pute.v1.RolloutPlanWaveOrchestrationOptionsH\002\210\001\001\022G\n" - + "\tselectors\030\364\220\342\315\001 \003(\01320.google" - + ".cloud.compute.v1.RolloutPlanWaveSelector\022O\n\n" - + "validation\030\371\220\235\353\001 \001(\01322.google.cloud" - + ".compute.v1.RolloutPlanWaveValidationH\003\210\001\001B\017\n\r" + + "\025orchestration_options\030\240\315\271," + + " \001(\0132<.google.cloud.compute.v1.RolloutPlanWaveOrchestrationOptionsH\002\210\001\001\022G\n" + + "\tselectors\030\364\220\342\315\001" + + " \003(\01320.google.cloud.compute.v1.RolloutPlanWaveSelector\022O\n\n" + + "validation\030\371\220\235\353\001" + + " \001(\01322.google.cloud.compute.v1.RolloutPlanWaveValidationH\003\210\001\001B\017\n\r" + "_display_nameB\t\n" + "\007_numberB\030\n" + "\026_orchestration_optionsB\r\n" + "\013_validation\"\245\002\n" + "#RolloutPlanWaveOrchestrationOptions\022U\n" - + "\006delays\030\320\356\231\203\001 \003(\0132A.google.cloud.compute.v1.Ro" - + "lloutPlanWaveOrchestrationOptionsDelay\022)\n" + + "\006delays\030\320\356\231\203\001 \003(\0132A.goo" + + "gle.cloud.compute.v1.RolloutPlanWaveOrchestrationOptionsDelay\022)\n" + "\030max_concurrent_locations\030\321\365\270\353\001 \001(\003H\000\210\001\001\0225\n" + "%max_concurrent_resources_per_location\030\336\337\210U" + " \001(\003H\001\210\001\001B\033\n" @@ -27232,10 +27229,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_durationB\007\n" + "\005_type\"\255\002\n" + "\027RolloutPlanWaveSelector\022d\n" - + "\021location_selector\030\251\302\255\311\001 \001(\0132@" - + ".google.cloud.compute.v1.RolloutPlanWaveSelectorLocationSelectorH\000\210\001\001\022v\n" - + "\033resource_hierarchy_selector\030\372\364\353\037 \001(\0132I.google.c" - + "loud.compute.v1.RolloutPlanWaveSelectorResourceHierarchySelectorH\001\210\001\001B\024\n" + + "\021location_selector\030\251\302\255\311\001 \001(\0132@.google.cloud.com" + + "pute.v1.RolloutPlanWaveSelectorLocationSelectorH\000\210\001\001\022v\n" + + "\033resource_hierarchy_selector\030\372\364\353\037" + + " \001(\0132I.google.cloud.compute.v1.R" + + "olloutPlanWaveSelectorResourceHierarchySelectorH\001\210\001\001B\024\n" + "\022_location_selectorB\036\n" + "\034_resource_hierarchy_selector\"H\n" + "\'RolloutPlanWaveSelectorLocationSelector\022\035\n" @@ -27245,8 +27243,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026included_organizations\030\335\246\347\227\001 \003(\t\022\034\n" + "\021included_projects\030\235\271\320\036 \003(\t\"\334\001\n" + "\031RolloutPlanWaveValidation\022}\n" - + "\036time_based_validation_metadata\030\267\365\221! \001(\0132M.google.cloud.compu" - + "te.v1.RolloutPlanWaveValidationTimeBasedValidationMetadataH\000\210\001\001\022\024\n" + + "\036time_based_validation_metadata\030\267\365\221! \001" + + "(\0132M.google.cloud.compute.v1.RolloutPlan" + + "WaveValidationTimeBasedValidationMetadataH\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001B!\n" + "\037_time_based_validation_metadataB\007\n" + "\005_type\"h\n" @@ -27268,8 +27267,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\225\001\n" + "\024RolloutRolloutEntity\022e\n" - + "\023orchestrated_entity\030\374\255\245\303\001 \001(\0132?.google.cloud" - + ".compute.v1.RolloutRolloutEntityOrchestratedEntityH\000\210\001\001B\026\n" + + "\023orchestrated_entity\030\374\255\245\303\001" + + " \001(\0132?.google.cloud.compute.v1.Rollo" + + "utRolloutEntityOrchestratedEntityH\000\210\001\001B\026\n" + "\024_orchestrated_entity\"\337\001\n" + "&RolloutRolloutEntityOrchestratedEntity\022!\n" + "\021conflict_behavior\030\237\310\2277 \001(\tH\000\210\001\001\022$\n" @@ -27279,9 +27279,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_orchestration_actionB\027\n" + "\025_orchestration_source\"\211\002\n" + "\022RolloutWaveDetails\022n\n" - + "\031orchestrated_wave_details\030\325\276\214\311\001" - + " \001(\0132B.google.cloud.compute.v1.Rollou" - + "tWaveDetailsOrchestratedWaveDetailsH\000\210\001\001\022!\n" + + "\031orchestrated_wave_details\030\325\276\214\311\001 \001(\0132B.google." + + "cloud.compute.v1.RolloutWaveDetailsOrchestratedWaveDetailsH\000\210\001\001\022!\n" + "\021wave_display_name\030\356\356\211\016 \001(\tH\001\210\001\001\022\034\n" + "\013wave_number\030\317\326\266\352\001 \001(\003H\002\210\001\001B\034\n" + "\032_orchestrated_wave_detailsB\024\n" @@ -27289,18 +27288,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_wave_number\"\362\004\n" + ")RolloutWaveDetailsOrchestratedWaveDetails\022)\n" + "\031completed_resources_count\030\201\261\253c \001(\003H\000\210\001\001\022)\n" - + "\031estimated_completion_time\030\315\236\3440 \001(\tH\001\210\001\001\0220\n" + + "\031estimated_completion_time\030\315\236\3440 ", + "\001(\tH\001\210\001\001\0220\n" + "\037estimated_total_resources_count\030\267\257\231\332\001" + " \001(\003H\002\210\001\001\022\033\n" - + "\020f", - "ailed_locations\030\334\373\305\016 \003(\t\022\'\n" + + "\020failed_locations\030\334\373\305\016 \003(\t\022\'\n" + "\026failed_resources_count\030\363\244\351\272\001 \001(\003H\003\210\001\001\022r\n" - + "\017location_status\030\274\217\210\t \003(\0132V.google.cloud.compute.v1." - + "RolloutWaveDetailsOrchestratedWaveDetails.LocationStatusEntry\032\207\001\n" + + "\017location_status\030\274\217\210\t \003(\0132V.g" + + "oogle.cloud.compute.v1.RolloutWaveDetail" + + "sOrchestratedWaveDetails.LocationStatusEntry\032\207\001\n" + "\023LocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022_\n" - + "\005value\030\002 \001(\0132P.google.cloud.compute.v1.RolloutWaveDetailsOr" - + "chestratedWaveDetailsLocationStatus:\0028\001B\034\n" + + "\005value\030\002 \001(\0132P.google.cloud.compute." + + "v1.RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus:\0028\001B\034\n" + "\032_completed_resources_countB\034\n" + "\032_estimated_completion_timeB\"\n" + " _estimated_total_resources_countB\031\n" @@ -27403,7 +27403,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_next_hop_vpn_tunnelB\t\n" + "\007_paramsB\013\n" + "\t_priorityB\017\n\r" - + "_route_statusB\r\n" + + "_route_statusB\r" + + "\n" + "\013_route_typeB\014\n\n" + "_self_link\"\347\001\n" + "\013RouteAsPath\022\023\n" @@ -27412,8 +27413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021path_segment_type\030\240\265\353\364\001 \001(\tH\000\210\001\001\"\210\001\n" + "\017PathSegmentType\022\037\n" + "\033UNDEFINED_PATH_SEGMENT_TYPE\020\000\022\031\n" - + "\022AS_CONFED_SEQUENCE\020\260\217\367i\022\025\n" - + "\r" + + "\022AS_CONFED_SEQUENCE\020\260\217\367i\022\025\n\r" + "AS_CONFED_SET\020\363\315\255\262\001\022\022\n" + "\013AS_SEQUENCE\020\256\322\3622\022\016\n" + "\006AS_SET\020\265\235\244\235\001B\024\n" @@ -27432,8 +27432,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013RouteParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.google.cloud.compute.v" - + "1.RouteParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=" + + ".google.cloud.compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\310\002\n" @@ -27441,8 +27441,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022@\n" - + "\005terms\030\207\223\3114" - + " \003(\0132..google.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + + "\005terms\030\207\223\3114 \003(\0132..g" + + "oogle.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"^\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022 \n" @@ -27460,8 +27460,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_matchB\013\n" + "\t_priority\"\321\006\n" + "\006Router\0226\n" - + "\003bgp\030\313\371\005 \001(\0132\"." - + "google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" + + "\003bgp\030\313\371\005" + + " \001(\0132\".google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" + "\tbgp_peers\030\335\255\356\327\001" + " \003(\0132&.google.cloud.compute.v1.RouterBgpPeer\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -27469,11 +27469,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035encrypted_interconnect_router\030\237\242\214\216\001" + " \001(\010H\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022?\n\n" - + "interfaces\030\332\364\340\005" - + " \003(\0132(.google.cloud.compute.v1.RouterInterface\022\024\n" + + "interfaces\030\332\364\340\005 \003(\0132" + + "(.google.cloud.compute.v1.RouterInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022W\n" - + "\027md5_authentication_keys\030\232\256\361! \003(\01323.g" - + "oogle.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + + "\027md5_authentication_keys\030\232\256\361!" + + " \003(\01323.google.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0223\n" + "\004nats\030\362\366\315\001 \003(\0132\".google.cloud.compute.v1.RouterNat\022\033\n" + "\013ncc_gateway\030\323\320\261S \001(\tH\007\210\001\001\022\027\n" @@ -27490,7 +27490,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\007\n" + "\005_nameB\016\n" - + "\014_ncc_gatewayB\n\n" + + "\014_ncc_gatewayB\n" + + "\n" + "\010_networkB\t\n" + "\007_paramsB\t\n" + "\007_regionB\014\n\n" @@ -27502,8 +27503,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_range\"\263\003\n" + "\024RouterAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/ \003(\01328.google." - + "cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01328.google.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -27512,8 +27513,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002" - + " \001(\0132*.google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "2*.google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -27523,8 +27524,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320." - + "google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + + "\024advertised_ip_ranges\030\314\330\363\020" + + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + "\003asn\030\374\364\005 \001(\r" + "H\001\210\001\001\022!\n" + "\020identifier_range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n" @@ -27545,14 +27546,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020 \003(\01320.g" - + "oogle.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + + "\024advertised_ip_ranges\030\314\330\363\020" + + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + "\031advertised_route_priority\030\274\234\366X \001(\r" + "H\001\210\001\001\022=\n" + "\003bfd\030\240\371\005" + " \001(\0132).google.cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n" - + "\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.google." - + "cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + + "\030custom_learned_ip_ranges\030\304\210\304\345\001" + + " \003(\0132:.google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + "\035custom_learned_route_priority\030\304\342\306\235\001" + " \001(\005H\003\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\004\210\001\001\022\033\n" @@ -27688,8 +27689,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\003\210\001\001\022\032\n" + "\016endpoint_types\030\317\252\326\357\001 \003(\t\022%\n" + "\025icmp_idle_timeout_sec\030\312\320\336\001 \001(\005H\004\210\001\001\022H\n\n" - + "log_config\030\235\321\301\247\001" - + " \001(\0132+.google.cloud.compute.v1.RouterNatLogConfigH\005\210\001\001\022 \n" + + "log_config\030\235\321\301\247\001 \001(\0132+.g" + + "oogle.cloud.compute.v1.RouterNatLogConfigH\005\210\001\001\022 \n" + "\020max_ports_per_vm\030\341\311\236w \001(\005H\006\210\001\001\022 \n" + "\020min_ports_per_vm\030\263\255\344X \001(\005H\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022Q\n" @@ -27701,8 +27702,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"source_subnetwork_ip_ranges_to_nat\030\333\357\241x \001(\tH\n" + "\210\001\001\0224\n" + "$source_subnetwork_ip_ranges_to_nat64\030\331\347\247v \001(\tH\013\210\001\001\022J\n" - + "\013subnetworks\030\305\324\245\306\001" - + " \003(\01321.google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\01321.google.c" + + "loud.compute.v1.RouterNatSubnetworkToNat\0220\n" + " tcp_established_idle_timeout_sec\030\355\353\260j \001(\005H\014\210\001\001\022*\n" + "\031tcp_time_wait_timeout_sec\030\375\273\363\364\001 \001(\005H\r" + "\210\001\001\022/\n" @@ -27766,8 +27767,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\t\n" + "\007_filter\"\335\001\n\r" + "RouterNatRule\022D\n" - + "\006action\030\266\374\275Y \001(\0132," - + ".google.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + + "\006action\030\266\374\275Y" + + " \001(\0132,.google.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n" + "\005match\030\305\263\2671 \001(\tH\002\210\001\001\022\034\n" + "\013rule_number\030\354\333\232\377\001 \001(\r" @@ -27795,8 +27796,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\255\001\n" + "\014RouterParams\022a\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132>.google.cloud." - + "compute.v1.RouterParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132>.google.cloud.compute.v1.RouterParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\363\002\n" @@ -27805,10 +27806,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\036.google.cloud.compute.v1.Route\022A\n" + "\026best_routes_for_router\030\371\373\3668" + " \003(\0132\036.google.cloud.compute.v1.Route\022N\n" - + "\017bgp_peer_status\030\373\327\225h \003(\01322." - + "google.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" - + "nat_status\030\320\231\213\036 \003(\0132..googl" - + "e.cloud.compute.v1.RouterStatusNatStatus\022\033\n" + + "\017bgp_peer_status\030\373\327\225h" + + " \003(\01322.google.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" + + "nat_status\030\320\231\213\036" + + " \003(\0132..google.cloud.compute.v1.RouterStatusNatStatus\022\033\n" + "\013ncc_gateway\030\323\320\261S \001(\tH\000\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\001\210\001\001B\016\n" + "\014_ncc_gatewayB\n\n" @@ -27816,8 +27817,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031RouterStatusBgpPeerStatus\022=\n" + "\021advertised_routes\030\254\331\374\236\001" + " \003(\0132\036.google.cloud.compute.v1.Route\022?\n\n" - + "bfd_status\030\361\270\323\274\001 \001(\0132" - + "\".google.cloud.compute.v1.BfdStatusH\000\210\001\001\022\033\n" + + "bfd_status\030\361\270\323\274\001" + + " \001(\0132\".google.cloud.compute.v1.BfdStatusH\000\210\001\001\022\033\n" + "\013enable_ipv4\030\241\366\303V \001(\010H\001\210\001\001\022\033\n" + "\013enable_ipv6\030\243\366\303V \001(\010H\002\210\001\001\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\003\210\001\001\022$\n" @@ -27879,8 +27880,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n" + "\"num_vm_endpoints_with_nat_mappings\030\354\266\250\364\001" + " \001(\005H\002\210\001\001\022S\n" - + "\013rule_status\030\225\305\356B \003(\0132;" - + ".google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + + "\013rule_status\030\225\305\356B \003(\0132;.google.cloud.com" + + "pute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + "\037user_allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n" + "\026user_allocated_nat_ips\030\242\262\331\361\001 \003(\tB\033\n" + "\031_min_extra_nat_ips_neededB\007\n" @@ -27898,8 +27899,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_rule_number\"\177\n" + "\024RouterStatusResponse\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022=\n" - + "\006result\030\235\220\267B" - + " \001(\0132%.google.cloud.compute.v1.RouterStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132" + + "%.google.cloud.compute.v1.RouterStatusH\001\210\001\001B\007\n" + "\005_kindB\t\n" + "\007_result\"\205\001\n" + "\032RoutersGetNamedSetResponse\022\024\n" @@ -27936,13 +27937,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006result\030\235\220\267B \003(\0132!.google.cloud.compute.v1.NamedSet\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\005\210\001\001B\007\n" + + "\007warning\030\234\337\226\030 \001(\0132 .goog", + "le.cloud.compute.v1.WarningH\005\210\001\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_n", - "ext_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\351\002\n" + "\030RoutersListRoutePolicies\022\024\n" @@ -27998,12 +27999,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\024\n" + "\004boot\030\362\365\270\001 \001(\010H\001\210\001\001\022\033\n" + "\013device_name\030\324\265\232 \001(\tH\002\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + + "\023disk_encryption_key\030\205\355\304\201\001 " + + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001\001\022\031\n" + "\tdisk_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n" - + "\021guest_os_features\030\321\340\347% \003(" - + "\0132\'.google.cloud.compute.v1.GuestOsFeature\022\025\n" + + "\021guest_os_features\030\321\340\347%" + + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\025\n" + "\005index\030\322\321\354/ \001(\005H\006\210\001\001\022\032\n" + "\tinterface\030\271\332\325\357\001 \001(\tH\007\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022\024\n" @@ -28082,8 +28083,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021automatic_restart\030\373\267\244\247\001 \001(\010H\000\210\001\001\022#\n" + "\023availability_domain\030\250\240\264x \001(\005H\001\210\001\001\022%\n" + "\024expose_host_topology\030\353\263\253\314\001 \001(\010H\002\210\001\001\022V\n" - + "\021graceful_shutdown\030\220\345\365k \001(\0132" - + "3.google.cloud.compute.v1.SchedulingGracefulShutdownH\003\210\001\001\022+\n" + + "\021graceful_shutdown\030\220\345\365k \001(\01323.google.cloud.co" + + "mpute.v1.SchedulingGracefulShutdownH\003\210\001\001\022+\n" + "\032host_error_timeout_seconds\030\223\334\331\302\001" + " \001(\005H\004\210\001\001\022+\n" + "\033instance_termination_action\030\273\377\2313 \001(\tH\005\210\001\001\022M\n" @@ -28093,12 +28094,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020max_run_duration\030\303\257\270\315\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\010\210\001\001\022\036\n\r" + "min_node_cpus\030\273\244\242\227\001 \001(\005H\t\210\001\001\022L\n" - + "\017node_affinities\030\243\204\232\334\001 \003(\0132/.google.c" - + "loud.compute.v1.SchedulingNodeAffinity\022#\n" + + "\017node_affinities\030\243\204\232\334\001" + + " \003(\0132/.google.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + "\023on_host_maintenance\030\334\362\347\036 \001(\tH\n" + "\210\001\001\022a\n" - + "\027on_instance_stop_action\030\311\215\325\374\001 \001(\01327.googl" - + "e.cloud.compute.v1.SchedulingOnInstanceStopActionH\013\210\001\001\022\034\n" + + "\027on_instance_stop_action\030\311\215\325\374\001" + + " \001(\01327.google.cloud.compute.v1.SchedulingOnInstanceStopActionH\013\210\001\001\022\034\n" + "\013preemptible\030\241\345\313\232\001 \001(\010H\014\210\001\001\022N\n" + "\032preemption_notice_duration\030\265\355\351\347\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\r" @@ -28166,8 +28167,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036SecurityPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022T\n" - + "\005items\030\300\317\367/ " - + "\003(\0132B.google.cloud.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.clou" + + "d.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -28176,8 +28177,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\013" - + "23.google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01323.google.cloud.c" + + "ompute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -28185,8 +28186,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\277\001\n" + "7SecurityPoliciesListPreconfiguredExpressionSetsResponse\022b\n" - + "\035preconfigured_expression_sets\030\372\214\327\377\001 \001(\01322.google" - + ".cloud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + + "\035preconfigured_expression_sets\030\372\214\327\377\001" + + " \001(\01322.google.cloud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + "\036_preconfigured_expression_sets\"\252\001\n" + "\032SecurityPoliciesScopedList\022E\n" + "\021security_policies\030\357\246\367<" @@ -28196,34 +28197,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"r\n" + "\031SecurityPoliciesWafConfig\022G\n" + "\twaf_rules\030\324\303\333#" - + " \001(\0132,.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n" - + "\n" + + " \001(\0132,.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + "_waf_rules\"\314\013\n" + "\016SecurityPolicy\022k\n" - + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google.c" - + "loud.compute.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" - + "\027advanced_options_config\030\300\323\235\326\001 \001(\0132<.google.cloud.compute." - + "v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322.google.c" - + "loud.compute.v1.SecurityPolicyAssociation\022\"\n" + + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google.cloud.compute.v1.S" + + "ecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" + + "\027advanced_options_config\030\300\323\235\326\001 \001(\0132" + + "<.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022L\n" + + "\014associations\030\222\350\312\362\001" + + " \003(\01322.google.cloud.compute.v1.SecurityPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022c\n" - + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.googl" - + "e.cloud.compute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.google.cloud.compute.v" + + "1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01323.google.cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01323.go" + + "ogle.cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\026\n" + "\006parent\030\252\221\254% \001(\tH\n" + "\210\001\001\022h\n" - + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google.c" - + "loud.compute.v1.SecurityPolicyRecaptchaOptionsConfigH\013\210\001\001\022\026\n" + + "\030recaptcha_options_config\030\333\324\275\367\001" + + " \001(\0132=.google.cloud.compute.v1.S" + + "ecurityPolicyRecaptchaOptionsConfigH\013\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022=\n" - + "\005rules\030\367\221\3653" - + " \003(\0132+.google.cloud.compute.v1.SecurityPolicyRule\022\032\n" + + "\005rules\030\367\221\3653 \003" + + "(\0132+.google.cloud.compute.v1.SecurityPolicyRule\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022\033\n\n" + "short_name\030\356\270\320\352\001 \001(\tH\016\210\001\001\022\024\n" @@ -28255,15 +28256,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_nameB\007\n" + "\005_type\"\315\001\n" + "&SecurityPolicyAdaptiveProtectionConfig\022\203\001\n" - + "\032layer7_ddos_defense_config\030\243\331\303\320\001 \001(\0132V.google.cloud.co" - + "mpute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + + "\032layer7_ddos_defense_config\030\243\331\303\320\001" + + " \001(\0132V.google.cloud.compute.v1.Security" + + "PolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + "\033_layer7_ddos_defense_config\"\363\002\n" + "=SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022 \n" + "\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001\022\203\001\n" - + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.co" - + "mpute.v1.SecurityPolicyAdaptiveProtectio" - + "nConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.compute.v1.Security" + + "PolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + "\016RuleVisibility\022\035\n" + "\031UNDEFINED_RULE_VISIBILITY\020\000\022\017\n" + "\007PREMIUM\020\267\264\301\276\001\022\020\n" @@ -28282,9 +28283,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"detection_relative_to_baseline_qps\030\205\233\366\212\001" + " \001(\002H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\245\001\n" - + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}" - + ".google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefense" - + "ConfigThresholdConfigTrafficGranularityConfigB#\n" + + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.google.cloud.com" + + "pute.v1.SecurityPolicyAdaptiveProtection" + + "ConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigB#\n" + "!_auto_deploy_confidence_thresholdB\035\n" + "\033_auto_deploy_expiration_secB*\n" + "(_auto_deploy_impacted_baseline_thresholdB\035\n" @@ -28293,8 +28294,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_detection_load_thresholdB%\n" + "#_detection_relative_to_baseline_qpsB\007\n" + "\005_name\"\320\002\n" - + "dSecurityPolicyAdaptiveP" - + "rotectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + + "dSecurityPolicyAdaptiveProtectionConfigLa" + + "yer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + "\030enable_each_unique_value\030\305\212\336\337\001" + " \001(\010H\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n" @@ -28308,8 +28309,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_typeB\010\n" + "\006_value\"\255\004\n" + "#SecurityPolicyAdvancedOptionsConfig\022p\n" - + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.co" - + "mpute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.compute.v1.Security" + + "PolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + "\014json_parsing\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n" + "\tlog_level\030\311\275\204C \001(\tH\002\210\001\001\022,\n" + "\034request_body_inspection_size\030\377\215\232[ \001(\tH\003\210\001\001\022#\n" @@ -28363,8 +28364,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_ddos_protection\"\203\002\n" + "\022SecurityPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.SecurityPolicy\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "\'.google.cloud.compute.v1.SecurityPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -28382,21 +28383,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SecurityPolicyRule\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022[\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132;.google.cloud.com" - + "pute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001" + + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022I\n" - + "\005match\030\305\263\2671" - + " \001(\01322.google.cloud.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" - + "network_match\030\364\370\372\334\001" - + " \001(\01329.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" - + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.googl" - + "e.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + + "\005match\030\305\263\2671 \001(\01322.google." + + "cloud.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" + + "network_match\030\364\370\372\334\001 \001(\01329.goo" + + "gle.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" + + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google.cloud.compute.v" + + "1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + "\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\010\210\001\001\022_\n" - + "\022rate_limit_options\030\373\311\232 \001(\0132;.google.clo" - + "ud.compute.v1.SecurityPolicyRuleRateLimitOptionsH\t\210\001\001\022\\\n" - + "\020redirect_options\030\273\222\356M \001" - + "(\0132:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + + "\022rate_limit_options\030\373\311\232 " + + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsH" + + "\t\210\001\001\022\\\n" + + "\020redirect_options\030\273\222\356M \001(\0132:.google.cloud" + + ".compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + "\210\001\001B\t\n" + "\007_actionB\016\n" + "\014_descriptionB\020\n" @@ -28410,21 +28412,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_rate_limit_optionsB\023\n" + "\021_redirect_options\"\225\001\n" + "\"SecurityPolicyRuleHttpHeaderAction\022o\n" - + "\027request_headers_to_adds\030\315\253\372) \003" - + "(\0132K.google.cloud.compute.v1.SecurityPol" - + "icyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + + "\027request_headers_to_adds\030\315\253\372) \003(\0132K.google.cloud" + + ".compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + "2SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\022\033\n" + "\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n" + "\014header_value\030\277\362\353` \001(\tH\001\210\001\001B\016\n" + "\014_header_nameB\017\n\r" + "_header_value\"\233\003\n" + "\031SecurityPolicyRuleMatcher\022P\n" - + "\006config\030\302\206\376y \001(\01328.go" - + "ogle.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + + "\006config\030\302\206\376y \001(\01328.google.cloud.comput" + + "e.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + "\004expr\030\365\363\276\001" + " \001(\0132\035.google.cloud.compute.v1.ExprH\001\210\001\001\022\\\n" - + "\014expr_options\030\324\304\354\347\001 \001(\0132=.google.cloud.compute" - + ".v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + + "\014expr_options\030\324\304\354\347\001 \001(\013" + + "2=.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + "\016versioned_expr\030\275\343\326\231\001 \001(\tH\003\210\001\001\"@\n\r" + "VersionedExpr\022\034\n" + "\030UNDEFINED_VERSIONED_EXPR\020\000\022\021\n\n" @@ -28436,8 +28437,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SecurityPolicyRuleMatcherConfig\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n" + "$SecurityPolicyRuleMatcherExprOptions\022q\n" - + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.cloud.compute.v1" - + ".SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M." + + "google.cloud.compute.v1.SecurityPolicyRu" + + "leMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + "\022_recaptcha_options\"~\n" + "4SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions\022!\n" + "\026action_token_site_keys\030\235\352\311\034 \003(\t\022#\n" @@ -28452,30 +28454,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tsrc_ports\030\367\273\236\324\001 \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022n\n" + "\023user_defined_fields\030\243\211\300\r" - + " \003(\0132N.google.cloud.compute.v1" - + ".SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + + " \003(\0132N." + + "google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + "5SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n" + "\006values\030\242\272\226w \003(\tB\007\n" + "\005_name\"\215\001\n" + "(SecurityPolicyRulePreconfiguredWafConfig\022a\n\n" - + "exclusions\030\345\370\277c \003(\0132J.google.c" - + "loud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion\"\377\005\n" + + "exclusions\030\345\370\277c \003(\0132J.google.cloud.compute.v1.S" + + "ecurityPolicyRulePreconfiguredWafConfigExclusion\"\377\005\n" + "1SecurityPolicyRulePreconfiguredWafConfigExclusion\022{\n" - + "\031request_bodies_to_exclude\030\305\344\351\034 \003(\0132U." - + "google.cloud.compute.v1.SecurityPolicyRu" - + "lePreconfiguredWafConfigExclusionFieldParams\022|\n" - + "\032request_cookies_to_exclude\030\366\336\337J " - + "\003(\0132U.google.cloud.compute.v1.SecurityPo" - + "licyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" - + "\032request_headers_to_exclude\030\237\244\223\036" - + " \003(\0132U.google.cloud.compute.v1.Secu" - + "rityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" + + "\031request_bodies_to_exclude\030\305\344\351\034 \003(\0132U.google.cloud.comp" + + "ute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" + + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.google.clou" + + "d.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" + + "\032request_headers_to_exclude\030\237\244\223\036 \003(\0132U.googl" + + "e.cloud.compute.v1.SecurityPolicyRulePre" + + "configuredWafConfigExclusionFieldParams\022\202\001\n" + "\037request_query_params_to_exclude\030\210\236\272\242\001" - + " \003(\0132U.google.cloud.co" - + "mpute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" - + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.google.cloud" - + ".compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + + " \003(\0132U.google.cloud.compute.v1.Security" + + "PolicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" + + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.google.cloud.compute.v1.Secur" + + "ityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + "\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 \n" + "\017target_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n" + "\020_target_rule_set\"\347\001\n" @@ -28486,25 +28486,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014UNDEFINED_OP\020\000\022\017\n" + "\010CONTAINS\020\237\314\315f\022\021\n" + "\tENDS_WITH\020\255\343\353\351\001\022\016\n" - + "\006EQUALS\020\277\347\355\322\001\022\022\n\n" + + "\006EQUALS\020\277\347\355\322\001\022\022\n" + + "\n" + "EQUALS_ANY\020\314\322\346\240\001\022\022\n" + "\013STARTS_WITH\020\364\337\302BB\005\n" + "\003_opB\006\n" + "\004_val\"\245\010\n" + "\"SecurityPolicyRuleRateLimitOptions\022 \n" + "\020ban_duration_sec\030\326\232\272\024 \001(\005H\000\210\001\001\022d\n\r" - + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.cloud.compute.v1.Secu" - + "rityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + + "ban_threshold\030\273\250\377\356\001 \001(\0132D.googl" + + "e.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + "\016conform_action\030\317\306\350\366\001 \001(\tH\002\210\001\001\022\037\n" + "\016enforce_on_key\030\374\235\326\306\001 \001(\tH\003\210\001\001\022p\n" - + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132M.google.cloud" - + ".compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + + "\026enforce_on_key_configs\030\256\276\225\020" + + " \003(\0132M.google.cloud.compute.v1.Secur" + + "ityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + "\023enforce_on_key_name\030\356\303\232? \001(\tH\004\210\001\001\022\035\n\r" + "exceed_action\030\241\312\332O \001(\tH\005\210\001\001\022d\n" - + "\027exceed_redirect_options\030\346\214\355\341\001" - + " \001(\0132:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" - + "\024rate_limit_threshold\030\210\277\317\226\001 \001(\0132D.google.cl" - + "oud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\377\001\n" + + "\027exceed_redirect_options\030\346\214\355\341\001 \001(\0132:.googl" + + "e.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" + + "\024rate_limit_threshold\030\210\277\317\226\001" + + " \001(\0132D.google.cloud.compute.v1.Se" + + "curityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\377\001\n" + "\014EnforceOnKey\022\034\n" + "\030UNDEFINED_ENFORCE_ON_KEY\020\000\022\t\n" + "\003ALL\020\201\373\003\022\t\n" @@ -28525,10 +28528,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_enforce_on_keyB\026\n" + "\024_enforce_on_key_nameB\020\n" + "\016_exceed_actionB\032\n" - + "\030_exceed_redirect_optionsB\027\n" + + "\030_exceed_redir", + "ect_optionsB\027\n" + "\025_rate_limit_threshold\"\273\003\n" - + "4SecurityPolicyRuleRate", - "LimitOptionsEnforceOnKeyConfig\022#\n" + + "4SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + "\023enforce_on_key_name\030\356\303\232? \001(\tH\000\210\001\001\022#\n" + "\023enforce_on_key_type\030\235\355\246? \001(\tH\001\210\001\001\"\210\002\n" + "\020EnforceOnKeyType\022!\n" @@ -28579,8 +28582,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_offsetB\007\n" + "\005_size\"\326\001\n" + "\020SecuritySettings\022O\n" - + "\025aws_v4_authentication\030\227\353\370\316\001" - + " \001(\0132\'.google.cloud.compute.v1.AWSV4SignatureH\000\210\001\001\022\"\n" + + "\025aws_v4_authentication\030\227\353\370\316\001 \001(\0132\'.go" + + "ogle.cloud.compute.v1.AWSV4SignatureH\000\210\001\001\022\"\n" + "\021client_tls_policy\030\352\213\272\334\001 \001(\tH\001\210\001\001\022\035\n" + "\021subject_alt_names\030\337\263\257\235\001 \003(\tB\030\n" + "\026_aws_v4_authenticationB\024\n" @@ -28614,11 +28617,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"\261\013\n" + "\021ServiceAttachment\022[\n" - + "\023connected_endpoints\030\310\227\270\"" - + " \003(\0132;.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + + "\023connected_endpoints\030\310\227\270\" \003(\0132;.goog" + + "le.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022a\n" - + "\025consumer_accept_lists\030\307\266\204\300\001 \003(\0132>.google.clou" - + "d.compute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + + "\025consumer_accept_lists\030\307\266\204\300\001" + + " \003(\0132>.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + "\025consumer_reject_lists\030\236\231\245a \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" @@ -28627,8 +28630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022M\n" - + "\010metadata\030\257\366\265) \003(\01328.google.cloud" - + ".compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + + "\010metadata\030\257\366\265)" + + " \003(\01328.google.cloud.compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022%\n" + "\024nat_ips_per_endpoint\030\210\216\220\261\001 \001(\r" + "H\010\210\001\001\022\027\n" @@ -28670,8 +28673,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_target_service\"\324\003\n" + "\037ServiceAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/" - + " \003(\0132C.google.cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.google" + + ".cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -28680,8 +28683,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.google.c" + + "loud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -28735,8 +28738,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034ServiceAttachmentsScopedList\022K\n" - + "\023service_attachments\030\246\222\272\222\001 \003(" - + "\0132*.google.cloud.compute.v1.ServiceAttachment\0229\n" + + "\023service_attachments\030\246\222\272\222\001" + + " \003(\0132*.google.cloud.compute.v1.ServiceAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\251\002\n" @@ -28744,16 +28747,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_ssl_proxies_set_backend_service_request_resource\030\244\351\250B" - + " \001(\0132A.google.cloud.compute.v1.T" - + "argetSslProxiesSetBackendServiceRequestB\004\342A\001\002\022\"\n" + + " \001(\0132A.go" + + "ogle.cloud.compute.v1.TargetSslProxiesSetBackendServiceRequestB\004\342A\001\002\022\"\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\252\002\n" + "&SetBackendServiceTargetTcpProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n" + "7target_tcp_proxies_set_backend_service_request_resource\030\357\321\302\202\001" - + " \001(\0132A.goog" - + "le.cloud.compute.v1.TargetTcpProxiesSetBackendServiceRequestB\004\342A\001\002\022\"\n" + + " \001(\0132A.google.cloud.compute." + + "v1.TargetTcpProxiesSetBackendServiceRequestB\004\342A\001\002\022\"\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\265\002\n" + "\032SetBackupTargetPoolRequest\022\036\n" @@ -28771,33 +28774,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n" + "9target_https_proxies_set_certificate_map_request_resource\030\273\266\376\336\001" - + " \001(\0132C.google.cloud.compute.v1.Tar" - + "getHttpsProxiesSetCertificateMapRequestB\004\342A\001\002\022#\n" + + " \001(\0132C.goog" + + "le.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\004\342A\001\002\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\252\002\n" + "&SetCertificateMapTargetSslProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n" + "7target_ssl_proxies_set_certificate_map_request_resource\030\272\226\203\244\001" - + " \001(\0132A.goo" - + "gle.cloud.compute.v1.TargetSslProxiesSetCertificateMapRequestB\004\342A\001\002\022\"\n" + + " \001(\0132A.google.cloud.compute" + + ".v1.TargetSslProxiesSetCertificateMapRequestB\004\342A\001\002\022\"\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\354\001\n" + "\037SetCloudArmorTierProjectRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022z\n" - + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$" - + " \001(\01329.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\004\342A\001\002\022\032\n\n" + + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$ \001(\01329.googl" + + "e.cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\214\003\n" + "*SetCommonInstanceMetadataOperationMetadata\022$\n" + "\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001\n" - + "\027per_location_operations\030\224\321\202\303\001 \003(\013" - + "2^.google.cloud.compute.v1.SetCommonInst" - + "anceMetadataOperationMetadata.PerLocationOperationsEntry\032\231\001\n" + + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud.c" + + "ompute.v1.SetCommonInstanceMetadataOpera" + + "tionMetadata.PerLocationOperationsEntry\032\231\001\n" + "\032PerLocationOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022j\n" - + "\005value\030\002 \001(\0132[.google.cloud.compute.v1.SetCommonInstanceM" - + "etadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + + "\005value\030\002 \001(\0132[.google.cloud.comput" + + "e.v1.SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + "\024_client_operation_id\"\262\002\n" + "BSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo\0226\n" + "\005error\030\210\244\223." @@ -28814,15 +28817,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_errorB\010\n" + "\006_state\"\300\001\n" + "\'SetCommonInstanceMetadataProjectRequest\022F\n" - + "\021metadata_resource\030\236\276\346\212\001" - + " \001(\0132!.google.cloud.compute.v1.MetadataB\004\342A\001\002\022\"\n" + + "\021metadata_resource\030\236\276\346\212\001 " + + "\001(\0132!.google.cloud.compute.v1.MetadataB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "#SetDefaultNetworkTierProjectRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\202\001\n" - + "2projects_set_default_network_tier_request_resource\030\212\300\243< \001(\013" - + "2=.google.cloud.compute.v1.ProjectsSetDefaultNetworkTierRequestB\004\342A\001\002\022\032\n\n" + + "2projects_set_default_network_tier_request_resource\030\212\300\243<" + + " \001(\0132=.google.cloud.c" + + "ompute.v1.ProjectsSetDefaultNetworkTierRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\354\001\n" + "$SetDeletionProtectionInstanceRequest\022$\n" @@ -28845,117 +28849,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016backend_bucket\030\365\343\335+ \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022e\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320" + + ".google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + "\013_request_id\"\205\002\n" + "*SetEdgeSecurityPolicyBackendServiceRequest\022!\n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022e\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\0132" - + "0.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r" + + "\n" + "\013_request_id\"\276\001\n" + " SetIamPolicyBackendBucketRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.go" - + "ogle.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\277\001\n" + "!SetIamPolicyBackendServiceRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.c" - + "loud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\310\001\n" + "\027SetIamPolicyDiskRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\275\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google." + + "cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\275\001\n" + "!SetIamPolicyFirewallPolicyRequest\022}\n" - + "/global_organization_set_policy_request_resource\030\336\224\314T \001(\0132;" - + ".google.cloud.compute.v1.GlobalOrganizationSetPolicyRequestB\004\342A\001\002\022\031\n" + + "/global_organization_set_policy_request_resource\030\336\224\314T" + + " \001(\0132;.google.cloud.com" + + "pute.v1.GlobalOrganizationSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\266\001\n" + "\030SetIamPolicyImageRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.googl" + + "e.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\314\001\n" + "\033SetIamPolicyInstanceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google" - + ".cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\301\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001" + + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\301\001\n" + "#SetIamPolicyInstanceTemplateRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\330\001\n" + "\'SetIamPolicyInstantSnapshotGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\323\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.c" + + "loud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\323\001\n" + "\"SetIamPolicyInstantSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\314\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 " + + "\001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\314\001\n" + ".SetIamPolicyInterconnectAttachmentGroupRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\302\001\n" + "$SetIamPolicyInterconnectGroupRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.googl" + + "e.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\274\001\n" + "\036SetIamPolicyLicenseCodeRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\013" - + "2/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.c" + + "ompute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\270\001\n" + "\032SetIamPolicyLicenseRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.clo" - + "ud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\275\001\n" + "\037SetIamPolicyMachineImageRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001" + + "(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\333\001\n" + "$SetIamPolicyNetworkAttachmentRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.clo" - + "ud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\306\001\n" + "(SetIamPolicyNetworkFirewallPolicyRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001" - + "(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.cloud" + + ".compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\315\001\n" + "\034SetIamPolicyNodeGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.cloud" - + ".compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\326\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001" + + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\326\001\n" + "\037SetIamPolicyNodeTemplateRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\335\001\n" + "&SetIamPolicyRegionBackendBucketRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." - + "google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\336\001\n" + "\'SetIamPolicyRegionBackendServiceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" @@ -28966,93 +28973,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SetIamPolicyRegionDiskRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." - + "google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\344\001\n" + "-SetIamPolicyRegionInstantSnapshotGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.cl" - + "oud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\337\001\n" + "(SetIamPolicyRegionInstantSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." + + "google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\345\001\n" + ".SetIamPolicyRegionNetworkFirewallPolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.c" + + "loud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\330\001\n" + "!SetIamPolicyRegionSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.cloud" - + ".compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\202\002\n" + "#SetIamPolicyReservationBlockRequest\022 \n" + "\017parent_resource\030\203\230\320\010 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022m\n" - + "\'zone_set_nested_policy_request_resource\030\323\361\200\177 \001(\01323.google.c" - + "loud.compute.v1.ZoneSetNestedPolicyRequestB\004\342A\001\002\"\317\001\n" + + "\'zone_set_nested_policy_request_resource\030\323\361\200\177" + + " \001(\01323.google.cloud.compute.v1.ZoneSetNestedPolicyRequestB\004\342A\001\002\"\317\001\n" + "\036SetIamPolicyReservationRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\205\002\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.cl" + + "oud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\205\002\n" + "&SetIamPolicyReservationSubBlockRequest\022 \n" + "\017parent_resource\030\203\230\320\010 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022m\n" + "\'zone_set_nested_policy_request_resource\030\323\361\200\177" - + " \001(\01323.google.cloud.c" - + "ompute.v1.ZoneSetNestedPolicyRequestB\004\342A\001\002\"\330\001\n" + + " \001(\01323.google.cloud.compute.v1.ZoneSetNestedPolicyRequestB\004\342A\001\002\"\330\001\n" + "!SetIamPolicyResourcePolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001" + + "(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\333\001\n" + "$SetIamPolicyServiceAttachmentRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(" - + "\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.cloud." + + "compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\271\001\n" + "\033SetIamPolicySnapshotRequest\022e\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 " - + "\001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.clou" + + "d.compute.v1.GlobalSetPolicyRequestB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\317\001\n" + "\036SetIamPolicyStoragePoolRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\022a\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.cl" - + "oud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\324\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001" + + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\004\342A\001\002\"\324\001\n" + "\035SetIamPolicySubnetworkRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022e\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" - + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"\342\002\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/." + + "google.cloud.compute.v1.RegionSetPolicyRequestB\004\342A\001\002\022\031\n" + + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\"", + "\342\002\n" + ".SetInstanceTemplateInstanceGroupManagerRequest\022\'\n" - + "\026instance_", - "group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\231\001\n" + + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\231\001\n" + ">instance_group_managers_set_instance_template_request_resource\030\305\331\326\004" - + " \001(\0132H.google.cloud." - + "compute.v1.InstanceGroupManagersSetInstanceTemplateRequestB\004\342A\001\002\022\"\n" + + " \001(\0132H.google.cloud.compute.v1.Instan" + + "ceGroupManagersSetInstanceTemplateRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" - + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r" - + "\n" + + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\350\002\n" + "4SetInstanceTemplateRegionInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\"\n" @@ -29060,16 +29065,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\225\001\n" + ".google.cloud.compute.v1.Targ" - + "etSslProxiesSetProxyHeaderRequestB\004\342A\001\002\022\"\n" + + " \001(\0132>.googl" + + "e.cloud.compute.v1.TargetSslProxiesSetProxyHeaderRequestB\004\342A\001\002\022\"\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\240\002\n" + "#SetProxyHeaderTargetTcpProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\205\001\n" - + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h" - + " \001(\0132>.google.cloud.comp" - + "ute.v1.TargetTcpProxiesSetProxyHeaderRequestB\004\342A\001\002\022\"\n" + + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h " + + "\001(\0132>.google.cloud.compute.v1.TargetTcpProxiesSetProxyHeaderRequestB\004\342A\001\002\022\"\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\252\002\n" + "&SetQuicOverrideTargetHttpsProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\"" - + " \001(\0132A." - + "google.cloud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\004\342A\001\002\022#\n" + + " \001(\0132A.google.cloud.comp" + + "ute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\004\342A\001\002\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\362\001\n" + "\034SetSchedulingInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022J\n" - + "\023scheduling_resource\030\331\254\356\334\001 \001(\0132" - + "#.google.cloud.compute.v1.SchedulingB\004\342A\001\002\022\034\n" + + "\023scheduling_resource\030\331\254\356\334\001" + + " \001(\0132#.google.cloud.compute.v1.SchedulingB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\201\002\n" + "&SetSecurityPolicyBackendServiceRequest\022!\n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022e\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.g" - + "oogle.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + "\013_request_id\"\247\002\n" + " SetSecurityPolicyInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022{\n" - + ".instances_set_security_policy_request_resource\030\212\321\272v \001(\0132:.google." - + "cloud.compute.v1.InstancesSetSecurityPolicyRequestB\004\342A\001\002\022\"\n" + + ".instances_set_security_policy_request_resource\030\212\321\272v" + + " \001(\0132:.google.cloud.compute.v1." + + "InstancesSetSecurityPolicyRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -29358,14 +29361,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022e\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.goo" - + "gle.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002B\r\n" + "\013_request_id\"\237\002\n" + "&SetSecurityPolicyTargetInstanceRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022e\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002\022!\n" + + "\"security_policy_reference_resource\030\360\264\253a \001" + + "(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002\022!\n" + "\017target_instance\030\203\217\226\212\001 \001(\tB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\232\002\n" @@ -29374,14 +29377,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022e\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002\022\034\n" + + "\"security_policy_reference_resource\030\360\264\253a \001" + + "(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\004\342A\001\002\022\034\n" + "\013target_pool\030\212\344\370\035 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\250\002\n" + " SetServiceAccountInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022|\n" + ".instances_set_service_account_request_resource\030\270\236\262\203\001" - + " \001(\0132:.google.cloud.compute.v1.InstancesSetServiceAccountRequestB\004\342A\001\002\022\"\n" + + " \001(\0132:.google.clo" + + "ud.compute.v1.InstancesSetServiceAccountRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -29391,18 +29395,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022w\n" + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001" - + " \001(\01328.google.cloud.com" - + "pute.v1.ShieldedInstanceIntegrityPolicyB\004\342A\001\002\022\034\n" + + " \001(\01328.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\351\002\n" + "/SetSslCertificatesRegionTargetHttpsProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\237\001\n" - + "Aregion_target_https_pro" - + "xies_set_ssl_certificates_request_resource\030\207\204\246\272\001" - + " \001(\0132J.google.cloud.compute.v1.R" - + "egionTargetHttpsProxiesSetSslCertificatesRequestB\004\342A\001\002\022\032\n\n" + + "Aregion_target_https_proxies_set_ssl_certificates_request_resource\030\207\204\246\272\001" + + " \001(\0132J.go" + + "ogle.cloud.compute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequestB\004\342A\001\002\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\263\002\n" @@ -29410,30 +29413,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\221\001\n" + ":target_https_proxies_set_ssl_certificates_request_resource\030\334\253\262j" - + " \001(\0132D.g" - + "oogle.cloud.compute.v1.TargetHttpsProxiesSetSslCertificatesRequestB\004\342A\001\002\022#\n" + + " \001(\0132D.google.cloud.compu" + + "te.v1.TargetHttpsProxiesSetSslCertificatesRequestB\004\342A\001\002\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\254\002\n" + "\'SetSslCertificatesTargetSslProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\215\001\n" + "8target_ssl_proxies_set_ssl_certificates_request_resource\030\275\313\305F" - + " \001(\0132B.google.cloud.co" - + "mpute.v1.TargetSslProxiesSetSslCertificatesRequestB\004\342A\001\002\022\"\n" + + " \001(\0132B.google.cloud.compute.v1.TargetSs" + + "lProxiesSetSslCertificatesRequestB\004\342A\001\002\022\"\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\366\001\n" + "#SetSslPolicyTargetHttpsProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022[\n" - + "\035ssl_policy_reference_resource\030\274\364\237p" - + " \001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\004\342A\001\002\022#\n" + + "\035ssl_policy_reference_resource\030\274\364\237p \001(\0132+.g" + + "oogle.cloud.compute.v1.SslPolicyReferenceB\004\342A\001\002\022#\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\363\001\n" + "!SetSslPolicyTargetSslProxyRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022[\n" - + "\035ssl_policy_reference_resource\030\274\364\237p" - + " \001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\004\342A\001\002\022\"\n" + + "\035ssl_policy_reference_resource\030\274\364\237p " + + "\001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\004\342A\001\002\022\"\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\340\001\n" + "\026SetTagsInstanceRequest\022\031\n" @@ -29450,21 +29453,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n" - + "\031target_reference_resource\030\360\267\335\371\001 \001(\0132(.g" - + "oogle.cloud.compute.v1.TargetReferenceB\004\342A\001\002B\r\n" + + "\031target_reference_resource\030\360\267\335\371\001" + + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\004\342A\001\002B\r\n" + "\013_request_id\"\357\001\n" + "$SetTargetGlobalForwardingRuleRequest\022!\n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n" - + "\031target_reference_resource\030\360\267\335\371\001 \001(\0132(" - + ".google.cloud.compute.v1.TargetReferenceB\004\342A\001\002B\r\n" + + "\031target_reference_resource\030\360\267\335\371\001" + + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\004\342A\001\002B\r\n" + "\013_request_id\"\324\002\n" + ")SetTargetPoolsInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\220\001\n" - + "9instance_group_managers_set_target_pools_request_resource\030\210\206\210\206\001" - + " \001(\0132C.google.cloud.comp" - + "ute.v1.InstanceGroupManagersSetTargetPoolsRequestB\004\342A\001\002\022\"\n" + + "9instance_group_managers_set_target_pools_request_resource\030\210\206\210\206\001 " + + "\001(\0132C.google.cloud.compute.v1.InstanceGr" + + "oupManagersSetTargetPoolsRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -29475,8 +29478,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\234\001\n" + "@region_instance_group_managers_set_target_pools_request_resource\030\375\312\305%" - + " \001(\0132I.google.cloud.compute.v1.RegionIn" - + "stanceGroupManagersSetTargetPoolsRequestB\004\342A\001\002\022\032\n\n" + + " \001(\0132I.google.cl" + + "oud.compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\224\002\n" + "%SetUrlMapRegionTargetHttpProxyRequest\022\"\n" @@ -29512,20 +29515,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\004\342A\001\002B\r\n" + "\013_request_id\"\322\001\n" + "\"SetUsageExportBucketProjectRequest\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + + "\007proje", + "ct\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022]\n" - + "\036usag", - "e_export_location_resource\030\353\314\324\t \001(\0132,.go" - + "ogle.cloud.compute.v1.UsageExportLocationB\004\342A\001\002B\r\n" + + "\036usage_export_location_resource\030\353\314\324\t" + + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationB\004\342A\001\002B\r\n" + "\013_request_id\"\372\002\n\r" + "ShareSettings\022N\n" - + "\013project_map\030\266\326\377? \003(\01326.google.cloud." - + "compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + + "\013project_map\030\266\326\377?" + + " \003(\01326.google.cloud.compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + "share_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.g" - + "oogle.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + "\tShareType\022\030\n" + "\024UNDEFINED_SHARE_TYPE\020\000\022\014\n" + "\005LOCAL\020\313\316\317\"\022\024\n" @@ -29545,15 +29548,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpm\"\201\004\n" + "\030ShieldedInstanceIdentity\022`\n" - + "\027ecc_p256_encryption_key\030\305\307\366\337\001 \001(\01326.google" - + ".cloud.compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022]\n" - + "\024ecc_p256_signing_key\030\303\226\343\343\001" - + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\001\210\001\001\022W\n" - + "\016encryption_key\030\243\307\351\350\001" - + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001\022\024\n" + + "\027ecc_p256_encryption_key\030\305\307\366\337\001" + + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022]\n" + + "\024ecc_p256_signing_key\030\303\226\343\343\001 \001(\01326.google.c" + + "loud.compute.v1.ShieldedInstanceIdentityEntryH\001\210\001\001\022W\n" + + "\016encryption_key\030\243\307\351\350\001 \001(\01326" + + ".google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022T\n" - + "\013signing_key\030\245\220\205\231\001 " - + "\001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\004\210\001\001B\032\n" + + "\013signing_key\030\245\220\205\231\001 \001(\01326.google.clou" + + "d.compute.v1.ShieldedInstanceIdentityEntryH\004\210\001\001B\032\n" + "\030_ecc_p256_encryption_keyB\027\n" + "\025_ecc_p256_signing_keyB\021\n" + "\017_encryption_keyB\007\n" @@ -29584,8 +29587,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(SimulateMaintenanceEventNodeGroupRequest\022\034\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\004\342A\001\002\022\215\001\n" + "7node_groups_simulate_maintenance_event_request_resource\030\334\371\313\247\001" - + " \001(\0132B.go" - + "ogle.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequestB\004\342A\001\002\022\"\n" + + " \001(\0132B.google.cloud.comput" + + "e.v1.NodeGroupsSimulateMaintenanceEventRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -29607,33 +29610,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022A\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132-.google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\0132-.googl" + + "e.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\r" + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022?\n" - + "\006params\030\206\363\253%" - + " \001(\0132\'.google.cloud.compute.v1.SnapshotParamsH\017\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001(\013" + + "2\'.google.cloud.compute.v1.SnapshotParamsH\017\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022W\n" - + "\027snapshot_encryption_key\030\376\366\324\024" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\024\210\001\001\022!\n" + + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132." + + ".google.cloud.compute.v1.CustomerEncryptionKeyH\024\210\001\001\022!\n" + "\021snapshot_group_id\030\366\235\314y \001(\tH\025\210\001\001\022#\n" + "\023snapshot_group_name\030\246\343\265u \001(\tH\026\210\001\001\022\035\n\r" + "snapshot_type\030\325\331\245; \001(\tH\027\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\030\210\001\001\022[\n" - + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(" - + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\031\210\001\001\0224\n" + + "\032source_disk_encryption_key\030\341\240\270\375\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\031\210\001\001\0224\n" + "#source_disk_for_recovery_checkpoint\030\376\341\312\253\001 \001(" + "\tH\032\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\033\210\001\001\022\'\n" + "\027source_instant_snapshot\030\206\204\303h \001(\tH\034\210\001\001\022g\n" - + "&source_instant_snapshot_encryption_key\030\374\205\224\320\001 \001(\0132..goo" - + "gle.cloud.compute.v1.CustomerEncryptionKeyH\035\210\001\001\022+\n" + + "&source_instant_snapshot_encryption_key\030\374\205\224\320\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\035\210\001\001\022+\n" + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH\036\210\001\001\022/\n" + "\037source_snapshot_schedule_policy\030\203\266\265p \001(\tH\037\210\001\001\0222\n" + "\"source_snapshot_schedule_policy_id\030\327\247\316! \001(\tH \210\001\001\022\026\n" @@ -29669,8 +29672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_chain_nameB\026\n" + "\024_creation_size_bytesB\025\n" + "\023_creation_timestampB\016\n" - + "\014_descriptionB\017\n" - + "\r" + + "\014_descriptionB\017\n\r" + "_disk_size_gbB\021\n" + "\017_download_bytesB\036\n" + "\034_enable_confidential_computeB\016\n" @@ -29721,26 +29723,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\261\001\n" + "\016SnapshotParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.c" - + "ompute.v1.SnapshotParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132@.google.cloud.compute.v1.SnapshotParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\001\n" + "\020SnapshotSettings\022X\n" - + "\017access_location\030\260\330\343\010 \001(\01327" - + ".google.cloud.compute.v1.SnapshotSettingsAccessLocationH\000\210\001\001\022c\n" - + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google.cloud.compute.v1.Sna" - + "pshotSettingsStorageLocationSettingsH\001\210\001\001B\022\n" + + "\017access_location\030\260\330\343\010 \001(\01327.google.cloud.com" + + "pute.v1.SnapshotSettingsAccessLocationH\000\210\001\001\022c\n" + + "\020storage_location\030\371\321\340\333\001 \001(\0132@.goog" + + "le.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsH\001\210\001\001B\022\n" + "\020_access_locationB\023\n" + "\021_storage_location\"\220\003\n" + "\036SnapshotSettingsAccessLocation\022]\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132F.google.cloud.comp" - + "ute.v1.SnapshotSettingsAccessLocation.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 " + + "\003(\0132F.google.cloud.compute.v1.SnapshotSettingsAccessLocation.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\201\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022^\n" - + "\005value\030\002 \001(\0132O.google.cloud.compute.v1.SnapshotSe" - + "ttingsAccessLocationAccessLocationPreference:\0028\001\"h\n" + + "\005value\030\002 \001(\0132O.google.clou" + + "d.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference:\0028\001\"h\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\023\n" + "\013ALL_REGIONS\020\241\256\237\202\001\022\031\n" @@ -29751,13 +29753,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\336\003\n" + "\'SnapshotSettingsStorageLocationSettings\022f\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.cloud.compute.v1.Snapshot" - + "SettingsStorageLocationSettings.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.cl" + + "oud.compute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022h\n" - + "\005value\030\002 \001(\0132Y.google.cloud.compute.v1.SnapshotSettings" - + "StorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + + "\005value\030\002 \001(\0132Y.google.cloud.comp" + + "ute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\024\n" + "\014LOCAL_REGION\020\350\354\265\300\001\022\033\n" @@ -29772,14 +29774,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014kms_key_name\030\231\353\373\346\001 \001(\tH\000\210\001\001B\017\n\r" + "_kms_key_name\"\265\001\n" + "\027SourceDiskEncryptionKey\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(" + + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\016\n" + "\014_source_disk\"a\n" + "\024SourceInstanceParams\022I\n" - + "\014disk_configs\030\317\331\252p \003(\01320.google." - + "cloud.compute.v1.DiskInstantiationConfig\"\350\n\n" + + "\014disk_configs\030\317\331\252p" + + " \003(\01320.google.cloud.compute.v1.DiskInstantiationConfig\"\350\n\n" + "\030SourceInstanceProperties\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\000\210\001\001\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\001\210\001\001\022\034\n" @@ -29789,8 +29791,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022guest_accelerators\030\357\314\207\335\001" + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\003\210\001\001\022Q\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132=.google.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001 \003(\0132=.go" + + "ogle.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\004\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\005\210\001\001\022 \n" @@ -29801,8 +29803,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\007\210\001\001\022@\n\n" + "scheduling\030\224\313\261\270\001" + " \001(\0132#.google.cloud.compute.v1.SchedulingH\010\210\001\001\022E\n" - + "\020service_accounts\030\260\304\253\204\001" - + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + + "\020service_accounts\030\260\304\253\204\001 " + + "\003(\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH" + "\t\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -29835,15 +29837,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\355\323\221\322\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022V\n" - + "\007managed\030\237\237\244\216\001 \001(\0132<.goog" - + "le.cloud.compute.v1.SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + + "\007managed\030\237\237\244\216\001 \001(\0132<.google.cloud.compute." + + "v1.SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n" + "\013private_key\030\243\363\245\254\001 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022_\n" - + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google." - + "cloud.compute.v1.SslCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud.compute.v1." + + "SslCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + "\031subject_alternative_names\030\343\357\223\374\001 \003(\t\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n" + "\004Type\022\022\n" @@ -29866,8 +29868,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\313\003\n" + "\034SslCertificateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compu" - + "te.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132@.google.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -29876,8 +29878,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322." + + "google.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -29898,8 +29900,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\320\003\n" + "#SslCertificateManagedSslCertificate\022i\n\r" - + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.c" - + "ompute.v1.SslCertificateManagedSslCertificate.DomainStatusEntry\022\022\n" + + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.compute.v1.SslCert" + + "ificateManagedSslCertificate.DomainStatusEntry\022\022\n" + "\007domains\030\257\210\233l \003(\t\022\026\n" + "\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n" + "\021DomainStatusEntry\022\013\n" @@ -29920,16 +29922,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_certificateB\016\n" + "\014_private_key\"\251\001\n" + "\031SslCertificatesScopedList\022E\n" - + "\020ssl_certificates\030\217\242\303\256\001" - + " \003(\0132\'.google.cloud.compute.v1.SslCertificate\0229\n" + + "\020ssl_certificates\030\217\242\303\256\001 \003" + + "(\0132\'.google.cloud.compute.v1.SslCertificate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\340\003\n" + "\031SslPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.google.cloud.compu" - + "te.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132=.google.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -29938,8 +29940,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132..goo" + + "gle.cloud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -30009,7 +30011,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\022\n" + "\020_min_tls_versionB\007\n" + "\005_nameB\034\n" - + "\032_post_quantum_key_exchangeB\n\n" + + "\032_post_quantum_key_exchangeB\n" + + "\n" + "\010_profileB\t\n" + "\007_regionB\014\n\n" + "_self_link\"@\n" @@ -30018,12 +30021,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_ssl_policy\"\244\002\n" + " StartAsyncReplicationDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022|\n" - + ".disks_start_async_replication_request_resource\030\332\236\300\340\001 \001(\0132:" - + ".google.cloud.compute.v1.DisksStartAsyncReplicationRequestB\004\342A\001\002\022\"\n" + + ".disks_start_async_replication_request_resource\030\332\236\300\340\001" + + " \001(\0132:.google.cloud.com" + + "pute.v1.DisksStartAsyncReplicationRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" - + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r" - + "\n" + + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\274\002\n" + "&StartAsyncReplicationRegionDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022\"\n" @@ -30031,22 +30034,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\211\001\n" + "5region_disks_start_async_replication_request_resource\030\205\310\226\342\001" - + " \001(\0132@.google.cloud.compute" - + ".v1.RegionDisksStartAsyncReplicationRequestB\004\342A\001\002\022\032\n\n" + + " \001(\013" + + "2@.google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\236\001\n" + "\024StartInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" - + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r" - + "\n" + + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\322\002\n" + ")StartInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\216\001\n" + "8instance_group_managers_start_instances_request_resource\030\253\245\277|" - + " \001(\0132C.google.cloud.compute.v1.Ins" - + "tanceGroupManagersStartInstancesRequestB\004\342A\001\002\022\"\n" + + " \001(\0132C.goog" + + "le.cloud.compute.v1.InstanceGroupManagersStartInstancesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -30056,43 +30058,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\234\001\n" - + "?region_instance_group_managers_start_instances_request_resource\030\226\233\377\354\001" - + " \001(\0132I.go" - + "ogle.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestB\004\342A\001\002\022\032\n\n" + + "?region_instance" + + "_group_managers_start_instances_request_resource\030\226\233\377\354\001" + + " \001(\0132I.google.cloud.comput" + + "e.v1.RegionInstanceGroupManagersStartInstancesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\271\002\n" + "%StartWithEncryptionKeyInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\207\001\n" + "4instances_start_with_encryption_key_request_resource\030\377\376\317\322\001" - + " \001(\0132?.google.cloud.compute.v" - + "1.InstancesStartWithEncryptionKeyRequestB\004\342A\001\002\022\"\n" + + " \001(\0132?" + + ".google.cloud.compute.v1.InstancesStartWithEncryptionKeyRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"|\n" + "\016StatefulPolicy\022V\n" - + "\017preserved_state\030\252\342\240\001 \001(" - + "\01325.google.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + + "\017preserved_state\030\252\342\240\001 \001(\01325.google.cloud." + + "compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + "\020_preserved_state\"\216\005\n" + "\034StatefulPolicyPreservedState\022R\n" - + "\005disks\030\366\314\312- \003(\0132@.google.cloud.compute.v1.S" - + "tatefulPolicyPreservedState.DisksEntry\022a\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google.cloud" - + ".compute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" - + "internal_i_ps\030\333\233\357f " - + "\003(\0132F.google.cloud.compute.v1.StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + + "\005disks\030\366\314\312- \003(\0132@.go" + + "ogle.cloud.compute.v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" + + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google.cloud.compute.v1.State" + + "fulPolicyPreservedState.ExternalIPsEntry\022`\n\r" + + "internal_i_ps\030\333\233\357f \003(\0132F.google.clou" + + "d.compute.v1.StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001(\0132?." - + "google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + + "\005value\030\002 \001(\0132?.google.cloud.comp" + + "ute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.goo" - + "gle.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + + "\005value\030\002 \001(\0132>.google.cloud.compute" + + ".v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.google." - + "cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + + "\005value\030\002 \001(\0132>.google.cloud.compute.v1." + + "StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + "&StatefulPolicyPreservedStateDiskDevice\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" @@ -30101,11 +30104,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ON_PERMANENT_INSTANCE_DELETION\020\347\340\322-B\016\n" + "\014_auto_delete\"\263\001\n" + "%StatefulPolicyPreservedStateNetworkIp\022\034\n" - + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + + "\013auto_delet", + "e\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" + "\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" - + "\005NE", - "VER\020\354\244\257#\022%\n" + + "\005NEVER\020\354\244\257#\022%\n" + "\036ON_PERMANENT_INSTANCE_DELETION\020\347\340\322-B\016\n" + "\014_auto_delete\"x\n" + "\006Status\022\024\n" @@ -30129,16 +30132,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\235\002\n" + "$StopGroupAsyncReplicationDiskRequest\022\207\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132" - + "?.google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\004\342A\001\002\022\"\n" + + " \001(\0132?.google.cloud.co" + + "mpute.v1.DisksStopGroupAsyncReplicationResourceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\247\002\n" + "*StopGroupAsyncReplicationRegionDiskRequest\022\207\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?.google.cloud.compute.v1." - + "DisksStopGroupAsyncReplicationResourceB\004\342A\001\002\022\"\n" + + " \001(\0132?.g" + + "oogle.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -30157,8 +30160,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(StopInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\214\001\n" + "7instance_group_managers_stop_instances_request_resource\030\215\245\364\021" - + " \001(\0132B.goo" - + "gle.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestB\004\342A\001\002\022%\n" + + " \001(\0132B.google.cloud.compute" + + ".v1.InstanceGroupManagersStopInstancesRequestB\004\342A\001\002\022%\n" + "\024no_graceful_shutdown\030\222\267\253\240\001 \001(\010H\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" @@ -30171,9 +30174,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\232\001\n" - + ">region_instance_group_managers_stop_instances_request_resource\030\302\234\362\200\001" - + " \001(\0132H.google.cloud.compute.v1.RegionInstance" - + "GroupManagersStopInstancesRequestB\004\342A\001\002\022\032\n\n" + + ">region_ins" + + "tance_group_managers_stop_instances_request_resource\030\302\234\362\200\001" + + " \001(\0132H.google.cloud.co" + + "mpute.v1.RegionInstanceGroupManagersStopInstancesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\027\n" + "\025_no_graceful_shutdownB\r\n" + "\013_request_id\"\322\r\n" @@ -30181,32 +30185,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032capacity_provisioning_type\030\207\212\375w \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022r\n" - + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001 \001(\0132@" - + ".google.cloud.compute.v1.StoragePoolExapoolProvisionedCapacityGbH\003\210\001\001\022\020\n" + + "\037exapool_provisioned_capacity_gb\030\340\341\313\244\001" + + " \001(\0132@.google.cloud.com" + + "pute.v1.StoragePoolExapoolProvisionedCapacityGbH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022D\n" + "\006labels\030\377\277\301\356\001" + " \003(\01320.google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022B\n" - + "\006params\030\206\363\253%" - + " \001(\0132*.google.cloud.compute.v1.StoragePoolParamsH\010\210\001\001\022.\n" + + "\006params\030\206\363\253% \001(\0132*" + + ".google.cloud.compute.v1.StoragePoolParamsH\010\210\001\001\022.\n" + "\035performance_provisioning_type\030\375\235\266\337\001 \001(\tH" + "\t\210\001\001\022-\n" + "\034pool_provisioned_capacity_gb\030\322\317\227\344\001 \001(\003H\n" + "\210\001\001\022%\n" + "\025pool_provisioned_iops\030\227\311\2715 \001(\003H\013\210\001\001\022+\n" + "\033pool_provisioned_throughput\030\230\215\330P \001(\003H\014\210\001\001\022S\n" - + "\017resource_status\030\303\372\367v \001(\01322.google" - + ".cloud.compute.v1.StoragePoolResourceStatusH\r" + + "\017resource_status\030\303\372\367v" + + " \001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\r" + "\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\016\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\017\210\001\001\022Q\n" - + "\016share_settings\030\203\221\224\177" - + " \001(\01321.google.cloud.compute.v1.StoragePoolShareSettingsH\020\210\001\001\022\025\n" + + "\016share_settings\030\203\221\224\177 \001(" + + "\01321.google.cloud.compute.v1.StoragePoolShareSettingsH\020\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\021\210\001\001\022J\n" - + "\006status\030\362\237\267V \001(\01322.g" - + "oogle.cloud.compute.v1.StoragePoolResourceStatusH\022\210\001\001\022\"\n" + + "\006status\030\362\237\267V" + + " \001(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\022\210\001\001\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tH\023\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\024\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -30246,18 +30251,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031StoragePoolAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=.google.cloud." - + "compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132=.google.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n\n" + + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n" + + "\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132" + + "/.google.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -30321,8 +30327,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024StoragePoolListDisks\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022:\n" - + "\005items\030\300\317\367/ \003(\0132(." - + "google.cloud.compute.v1.StoragePoolDisk\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132(.google.cloud.compute.v1.StoragePoolDisk\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -30336,8 +30342,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\267\001\n" + "\021StoragePoolParams\022f\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C.google.cloud.compute.v1" - + ".StoragePoolParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132C." + + "google.cloud.compute.v1.StoragePoolParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\220\010\n" @@ -30378,12 +30384,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034_total_provisioned_disk_iopsB$\n" + "\"_total_provisioned_disk_throughput\"\350\001\n" + "\030StoragePoolShareSettings\022Y\n" - + "\013project_map\030\266\326\377? \003(\0132" - + "A.google.cloud.compute.v1.StoragePoolShareSettings.ProjectMapEntry\032q\n" + + "\013project_map\030\266\326\377? \003(\0132A.google.cloud.co" + + "mpute.v1.StoragePoolShareSettings.ProjectMapEntry\032q\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.goog" - + "le.cloud.compute.v1.StoragePoolShareSettingsProjectConfig:\0028\001\"R\n" + + "\005value\030\002 \001(\0132>.google.cloud.compute." + + "v1.StoragePoolShareSettingsProjectConfig:\0028\001\"R\n" + "%StoragePoolShareSettingsProjectConfig\022\032\n\n" + "project_id\030\201\310\322T \001(\tH\000\210\001\001B\r\n" + "\013_project_id\"\347\007\n" @@ -30427,8 +30433,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\265\003\n" + "\035StoragePoolTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.google.cloud.compute" - + ".v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2A.google.cloud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -30436,12 +30442,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.cl" - + "oud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\257\002\n" + "\023StoragePoolTypeList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" @@ -30458,14 +30465,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\255\001\n" + "\032StoragePoolTypesScopedList\022H\n" - + "\022storage_pool_types\030\332\255\320\203\001 \003(\0132(.g" - + "oogle.cloud.compute.v1.StoragePoolType\0229\n" + + "\022storage_pool_types\030\332\255\320\203\001" + + " \003(\0132(.google.cloud.compute.v1.StoragePoolType\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\240\001\n" + "\026StoragePoolsScopedList\022?\n\r" - + "storage_pools\030\223\222\300\320\001 " - + "\003(\0132$.google.cloud.compute.v1.StoragePool\0229\n" + + "storage_pools\030\223\222\300\320\001" + + " \003(\0132$.google.cloud.compute.v1.StoragePool\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\263\026\n\n" @@ -30487,8 +30494,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ipv6_gce_endpoint\030\343\312\342\230\001 \001(\tH\r" + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\016\210\001\001\022I\n\n" - + "log_config\030\235\321\301\247\001" - + " \001(\0132,.google.cloud.compute.v1.SubnetworkLogConfigH\017\210\001\001\022\024\n" + + "log_config\030\235\321\301\247\001 \001(\0132,.google" + + ".cloud.compute.v1.SubnetworkLogConfigH\017\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\020\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\021\210\001\001\022A\n" + "\006params\030\206\363\253%" @@ -30500,15 +30507,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027reserved_internal_range\030\262\236\277\210\001 \001(\tH\027\210\001\001\022$\n" + "\023resolve_subnet_mask\030\273\331\355\366\001 \001(\tH\030\210\001\001\022\024\n" + "\004role\030\366\200\326\001 \001(\tH\031\210\001\001\022Q\n" - + "\023secondary_ip_ranges\030\343\377\224A" - + " \003(\01321.google.cloud.compute.v1.SubnetworkSecondaryRange\022\032\n" + + "\023secondary_ip_ranges\030\343\377\224A \003(\01321.google.clo" + + "ud.compute.v1.SubnetworkSecondaryRange\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\032\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\033\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\034\210\001\001\022/\n" + "$system_reserved_external_ipv6_ranges\030\341\210\223\037 \003(\t\0220\n" + "$system_reserved_internal_ipv6_ranges\030\323\230\221\316\001 \003(\t\022Z\n" - + "\023utilization_details\030\245\212\346; \001(\01325.google.clou" - + "d.compute.v1.SubnetworkUtilizationDetailsH\035\210\001\001\"S\n" + + "\023utilization_details\030\245\212\346;" + + " \001(\01325.google.cloud.compute.v1.SubnetworkUtilizationDetailsH\035\210\001\001\"S\n" + "\016Ipv6AccessType\022\036\n" + "\032UNDEFINED_IPV6_ACCESS_TYPE\020\000\022\017\n" + "\010EXTERNAL\020\313\247\375\020\022\020\n" @@ -30585,8 +30592,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_utilization_details\"\277\003\n" + "\030SubnetworkAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google." + + "cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -30595,8 +30602,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132." - + ".google.cloud.compute.v1.SubnetworksScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.SubnetworksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -30641,8 +30648,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_flow_samplingB\013\n" + "\t_metadata\"\265\001\n" + "\020SubnetworkParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.googl" - + "e.cloud.compute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.compute.v" + + "1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" @@ -30664,14 +30671,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030_reserved_internal_range\"\310\004\n" + "\034SubnetworkUtilizationDetails\022y\n" + "\"external_ipv6_instance_utilization\030\334\302\223\310\001" - + " \001(\0132D.google.cloud.co" - + "mpute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\000\210\001\001\022r\n" - + "\034external_ipv6_lb_utilization\030\275\227\217A \001(\0132D.google.cloud.comput" - + "e.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\001\210\001\001\022o\n" - + "\031internal_ipv6_utilization\030\214\312\236! \001(\0132D.google.cloud.compute.v1.Su" - + "bnetworkUtilizationDetailsIPV6UtilizationH\002\210\001\001\022b\n" - + "\021ipv4_utilizations\030\253\235\250b \003(\0132D.g" - + "oogle.cloud.compute.v1.SubnetworkUtilizationDetailsIPV4UtilizationB%\n" + + " \001(\0132D.google.cloud.compute.v1.Subnetwo" + + "rkUtilizationDetailsIPV6UtilizationH\000\210\001\001\022r\n" + + "\034external_ipv6_lb_utilization\030\275\227\217A \001(" + + "\0132D.google.cloud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\001\210\001\001\022o\n" + + "\031internal_ipv6_utilization\030\214\312\236! \001(\0132D.goo" + + "gle.cloud.compute.v1.SubnetworkUtilizationDetailsIPV6UtilizationH\002\210\001\001\022b\n" + + "\021ipv4_utilizations\030\253\235\250b \003(\0132D.google.cloud.compu" + + "te.v1.SubnetworkUtilizationDetailsIPV4UtilizationB%\n" + "#_external_ipv6_instance_utilizationB\037\n" + "\035_external_ipv6_lb_utilizationB\034\n" + "\032_internal_ipv6_utilization\"\306\001\n" @@ -30701,18 +30708,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030SubnetworksScopedWarning\022\033\n\n" + "scope_name\030\226\223\343\244\001 \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\001\210\001\001B\r" - + "\n" + + " .google.cloud.compute.v1.WarningH\001\210\001\001B\r\n" + "\013_scope_nameB\n\n" + "\010_warning\"t\n" + "*SubnetworksSetPrivateIpGoogleAccessRequest\022)\n" + "\030private_ip_google_access\030\316\350\375\310\001 \001(\010H\000\210\001\001B\033\n" - + "\031_private_ip_google_access\"\177\n\n" + + "\031_private_ip_google_", + "access\"\177\n\n" + "Subsetting\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\"N\n" + "\006Policy\022\024\n" - + "\020UNDEF", - "INED_POLICY\020\000\022!\n" + + "\020UNDEFINED_POLICY\020\000\022!\n" + "\032CONSISTENT_HASH_SUBSETTING\020\264\230\3743\022\013\n" + "\004NONE\020\270\316\222\001B\t\n" + "\007_policy\"\332\001\n" @@ -30722,14 +30728,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\024\n" - + "\022_discard_local_ssdB\r" - + "\n" + + "\022_discard_local_ssdB\r\n" + "\013_request_id\"\330\002\n" + "+SuspendInstancesInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\222\001\n" + ":instance_group_managers_suspend_instances_request_resource\030\321\215\241\026" - + " \001(\0132E.google.cloud.compute.v1" - + ".InstanceGroupManagersSuspendInstancesRequestB\004\342A\001\002\022\"\n" + + " \001(\0132E." + + "google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -30740,8 +30745,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\237\001\n" + "Aregion_instance_group_managers_suspend_instances_request_resource\030\374\345\224f" - + " \001(\0132K.google.cloud.compute.v1.RegionIns" - + "tanceGroupManagersSuspendInstancesRequestB\004\342A\001\002\022\032\n\n" + + " \001(\0132K.google.clo" + + "ud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\213\001\n" + " SwitchToCustomModeNetworkRequest\022\030\n" @@ -30799,8 +30804,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_validate_for_proxyless\"\257\002\n" + "\023TargetGrpcProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/" - + " \003(\0132(.google.cloud.compute.v1.TargetGrpcProxy\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132(.google.cloud.compute.v1.TargetGrpcProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -30844,20 +30849,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\210\003\n" + "\035TargetHttpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.c" + + "loud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.cloud.c" - + "ompute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_link\"\257\002\n" + "\023TargetHttpProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" @@ -30921,7 +30925,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004NONE\020\270\316\222\001\"x\n" + "\014TlsEarlyData\022\034\n" + "\030UNDEFINED_TLS_EARLY_DATA\020\000\022\020\n" - + "\010DISABLED\020\374\324\260\366\001\022\022\n\n" + + "\010DISABLED\020\374\324\260\366\001\022\022\n" + + "\n" + "PERMISSIVE\020\237\345\276\360\001\022\016\n" + "\006STRICT\020\311\245\241\223\001\022\024\n" + "\014UNRESTRICTED\020\264\247\205\332\001B\027\n" @@ -30944,8 +30949,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\322\003\n" + "\036TargetHttpsProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.clou" - + "d.compute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132B.google.cloud.compute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -30954,8 +30959,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002 \001(\01325.google.cloud.c" - + "ompute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01325.google.cloud.compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31004,8 +31009,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\313\003\n" + "\034TargetInstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.googl" - + "e.cloud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v" + + "1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31014,8 +31019,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.clo" - + "ud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31081,8 +31086,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_session_affinity\"\277\003\n" + "\030TargetPoolAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<." + + "google.cloud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31091,8 +31096,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132..google.cl" + + "oud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31117,14 +31122,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"l\n" + " TargetPoolsAddHealthCheckRequest\022H\n\r" - + "health_checks\030\256\257\346\325\001 " - + "\003(\0132-.google.cloud.compute.v1.HealthCheckReference\"a\n" + + "health_checks\030\256\257\346\325\001" + + " \003(\0132-.google.cloud.compute.v1.HealthCheckReference\"a\n" + "\035TargetPoolsAddInstanceRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"o\n" + "#TargetPoolsRemoveHealthCheckRequest\022H\n\r" - + "health_checks\030\256\257\346\325\001" - + " \003(\0132-.google.cloud.compute.v1.HealthCheckReference\"d\n" + + "health_checks\030\256\257\346\325\001 \003(\0132-" + + ".google.cloud.compute.v1.HealthCheckReference\"d\n" + " TargetPoolsRemoveInstanceRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"\235\001\n" @@ -31193,8 +31198,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\032TargetTcpProxiesScopedList\022F\n" - + "\022target_tcp_proxies\030\200\327\372|" - + " \003(\0132\'.google.cloud.compute.v1.TargetTcpProxy\0229\n" + + "\022target_tcp_proxies\030\200\327\372| " + + "\003(\0132\'.google.cloud.compute.v1.TargetTcpProxy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"P\n" @@ -31244,8 +31249,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_service\"\314\003\n" + "\034TargetTcpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v" - + "1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@" + + ".google.cloud.compute.v1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31254,8 +31259,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.goog" + + "le.cloud.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31282,12 +31287,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022I\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01325.google.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01325.google.cl" + + "oud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\006\210\001\001\022G\n" - + "\006params\030\206\363\253%" - + " \001(\0132/.google.cloud.compute.v1.TargetVpnGatewayParamsH\007\210\001\001\022\026\n" + + "\006params\030\206\363\253% \001(\0132/.google.c" + + "loud.compute.v1.TargetVpnGatewayParamsH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\n" @@ -31315,8 +31320,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\321\003\n" + "\036TargetVpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B." - + "google.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.comp" + + "ute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -31325,8 +31330,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.goo" - + "gle.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -31334,8 +31339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\261\002\n" + "\024TargetVpnGatewayList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.TargetVpnGateway\022\024\n" + + "\005items\030\300\317\367/ \003(\0132)" + + ".google.cloud.compute.v1.TargetVpnGateway\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -31347,15 +31352,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\301\001\n" + "\026TargetVpnGatewayParams\022k\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132H.google.cloud.compute.v1.TargetVpn" - + "GatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132H.google.clo" + + "ud.compute.v1.TargetVpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\260\001\n" + "\033TargetVpnGatewaysScopedList\022J\n" - + "\023target_vpn_gateways\030\210\223\312\277\001 " - + "\003(\0132).google.cloud.compute.v1.TargetVpnGateway\0229\n" + + "\023target_vpn_gateways\030\210\223\312\277\001" + + " \003(\0132).google.cloud.compute.v1.TargetVpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\223\004\n" @@ -31384,136 +31388,136 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\327\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\327\001\n" + "#TestIamPermissionsAutoscalerRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestP", - "ermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permiss", + "ions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + + ".cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\303\001\n" + "&TestIamPermissionsBackendBucketRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" - + "loud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\304\001\n" + "\'TestIamPermissionsBackendServiceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\321\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\321\001\n" + "\035TestIamPermissionsDiskRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" + + "2/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\310\001\n" + "+TestIamPermissionsExternalVpnGatewayRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\252\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" + + "d.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\252\001\n" + "\'TestIamPermissionsFirewallPolicyRequest\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\276\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\276\001\n" + "!TestIamPermissionsFirewallRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\303\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" + + "e.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\303\001\n" + "&TestIamPermissionsGlobalAddressRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\301\001\n" + "$TestIamPermissionsHealthCheckRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" + + "d.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\273\001\n" + "\036TestIamPermissionsImageRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" - + "le.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\332\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\332\001\n" + "&TestIamPermissionsInstanceGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" - + ".cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\325\001\n" + "!TestIamPermissionsInstanceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\306\001\n" + ")TestIamPermissionsInstanceTemplateRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" - + ".cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\341\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\341\001\n" + "-TestIamPermissionsInstantSnapshotGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\334\001\n" + "(TestIamPermissionsInstantSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001" + + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\321\001\n" + "4TestIamPermissionsInterconnectAttachmentGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\307\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." + + "google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\307\001\n" + "*TestIamPermissionsInterconnectGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\301\001\n" + "$TestIamPermissionsLicenseCodeRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\275\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\275\001\n" + " TestIamPermissionsLicenseRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\302\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\302\001\n" + "%TestIamPermissionsMachineImageRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\340\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." + + "compute.v1.TestPermissionsRequestB\004\342A\001\002\"\340\001\n" + "*TestIamPermissionsNetworkAttachmentRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\341\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\341\001\n" + "-TestIamPermissionsNetworkEndpointGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" - + "le.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\313\001\n" + ".TestIamPermissionsNetworkFirewallPolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.co" - + "mpute.v1.TestPermissionsRequestB\004\342A\001\002\"\326\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\326\001\n" + "\"TestIamPermissionsNodeGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" + + "/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\333\001\n" + "%TestIamPermissionsNodeTemplateRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" @@ -31525,14 +31529,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\337\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\337\001\n" + ")TestIamPermissionsRegionAutoscalerRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" - + "e.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\342\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\342\001\n" + ",TestIamPermissionsRegionBackendBucketRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" @@ -31543,167 +31547,167 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\351\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\351\001\n" + "3TestIamPermissionsRegionCompositeHealthCheckRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\331\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\331\001\n" + "#TestIamPermissionsRegionDiskRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" - + "ud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\354\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\354\001\n" + "6TestIamPermissionsRegionHealthAggregationPolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\340\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\340\001\n" + "*TestIamPermissionsRegionHealthCheckRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\347\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" + + "oogle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\347\001\n" + "1TestIamPermissionsRegionHealthCheckServiceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\341\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\341\001\n" + "+TestIamPermissionsRegionHealthSourceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.go" - + "ogle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\342\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\342\001\n" + ",TestIamPermissionsRegionInstanceGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." - + "compute.v1.TestPermissionsRequestB\004\342A\001\002\"\351\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\351\001\n" + "3TestIamPermissionsRegionInstantSnapshotGroupRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\344\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 " + + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\344\001\n" + ".TestIamPermissionsRegionInstantSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\352\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goo" + + "gle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\352\001\n" + "4TestIamPermissionsRegionNetworkFirewallPolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\351\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + + ".cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\351\001\n" + "3TestIamPermissionsRegionNotificationEndpointRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\335\001\n" + "\'TestIamPermissionsRegionSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\377\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\377\001\n" + ")TestIamPermissionsReservationBlockRequest\022 \n" + "\017parent_resource\030\203\230\320\010 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\330\001\n" + "$TestIamPermissionsReservationRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001" - + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\202\002\n" + ",TestIamPermissionsReservationSubBlockRequest\022 \n" + "\017parent_resource\030\203\230\320\010 \001(\tB\004\342A\001\002\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\335\001\n" + "\'TestIamPermissionsResourcePolicyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\273\001\n" + "\036TestIamPermissionsRouteRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\340\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 " + + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\340\001\n" + "*TestIamPermissionsServiceAttachmentRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\276\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\276\001\n" + "!TestIamPermissionsSnapshotRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\330\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" + + "ompute.v1.TestPermissionsRequestB\004\342A\001\002\"\330\001\n" + "$TestIamPermissionsStoragePoolRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\331\001\n" + "#TestIamPermissionsSubnetworkRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" - + "/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\333\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.co" + + "mpute.v1.TestPermissionsRequestB\004\342A\001\002\"\333\001\n" + "\'TestIamPermissionsTargetInstanceRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" - + ".google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\022\025\n" + "\004zone\030\254\307\344\001 \001(\tB\004\342A\001\002\"\331\001\n" + "#TestIamPermissionsTargetPoolRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." + + "compute.v1.TestPermissionsRequestB\004\342A\001\002\"\304\001\n" + "\'TestIamPermissionsTargetSslProxyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\013" - + "2/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" + + "ompute.v1.TestPermissionsRequestB\004\342A\001\002\"\304\001\n" + "\'TestIamPermissionsTargetTcpProxyRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" - + "/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\274\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.co" + + "mpute.v1.TestPermissionsRequestB\004\342A\001\002\"\274\001\n" + "\037TestIamPermissionsUrlMapRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\331\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"\331\001\n" + "#TestIamPermissionsVpnGatewayRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022\031\n" + "\010resource\030\216\210\257] \001(\tB\004\342A\001\002\022d\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"0\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsRequestB\004\342A\001\002\"0\n" + "\026TestPermissionsRequest\022\026\n" + "\013permissions\030\204\351\313\034 \003(\t\"1\n" + "\027TestPermissionsResponse\022\026\n" @@ -31784,8 +31788,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\337\001\n" + "\032UpdateBackendBucketRequest\022\037\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\004\342A\001\002\022Q\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&" - + ".google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + + "\027backend_bucket_resource\030\230\316\307\265\001" + + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\344\001\n" @@ -31835,19 +31839,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\212\002\n" + "$UpdateGlobalVmExtensionPolicyRequest\022+\n" + "\032global_vm_extension_policy\030\236\326\374\003 \001(\tB\004\342A\001\002\022f\n" - + "#global_vm_extension_policy_resource\030\217\330\2650" - + " \001(\01320.google.cloud.compute.v1.GlobalVmExtensionPolicyB\004\342A\001\002\022\"\n" + + "#global_vm_extension_policy_resource\030\217\330\2650 \001(\01320.google.clo" + + "ud.compute.v1.GlobalVmExtensionPolicyB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\327\001\n" + "\030UpdateHealthCheckRequest\022\036\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\004\342A\001\002\022L\n" - + "\025health_check_resource\030\250\303\244` \001(\0132$.goo" - + "gle.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" - + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\004\342A\001\002\022\"\n" + + "\007project\030\231\226\301l \001(", + "\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" - + "\013_request_id\"\243\004", - "\n" + + "\013_request_id\"\243\004\n" + "\025UpdateInstanceRequest\022\"\n" + "\021discard_local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022E\n" @@ -31869,8 +31873,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\206\002\n" + "\027UpdateKmsKeyDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022g\n" - + "$disk_update_kms_key_request_resource\030\340\353\361T" - + " \001(\01320.google.cloud.compute.v1.DiskUpdateKmsKeyRequestB\004\342A\001\002\022\"\n" + + "$disk_update_kms_key_request_resource\030\340\353\361T \001(\01320.google." + + "cloud.compute.v1.DiskUpdateKmsKeyRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -31880,8 +31884,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022t\n" - + "+region_disk_update_kms_key_request_resource\030\313\250\343\004 \001(\01326.go" - + "ogle.cloud.compute.v1.RegionDiskUpdateKmsKeyRequestB\004\342A\001\002\022\032\n\n" + + "+region_disk_update_kms_key_request_resource\030\313\250\343\004" + + " \001(\01326.google.cloud.comput" + + "e.v1.RegionDiskUpdateKmsKeyRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\257\002\n" + "!UpdateKmsKeyRegionSnapshotRequest\022\"\n" @@ -31889,8 +31894,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022}\n" + "/region_snapshot_update_kms_key_request_resource\030\362\245\234\205\001" - + " \001(\0132:.google.c" - + "loud.compute.v1.RegionSnapshotUpdateKmsKeyRequestB\004\342A\001\002\022\032\n\n" + + " \001(\0132:.google.cloud.compute.v1.R" + + "egionSnapshotUpdateKmsKeyRequestB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\032\n" + "\010snapshot\030\304\253\353\207\001 \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\371\001\n" @@ -31898,8 +31903,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\032\n" + "\010snapshot\030\304\253\353\207\001 \001(\tB\004\342A\001\002\022o\n" - + "(snapshot_update_kms_key_request_resource\030\207\304\2271 \001(\01324.google.cloud.c" - + "ompute.v1.SnapshotUpdateKmsKeyRequestB\004\342A\001\002B\r\n" + + "(snapshot_update_kms_key_request_resource\030\207\304\2271" + + " \001(\01324.google.cloud.compute.v1.SnapshotUpdateKmsKeyRequestB\004\342A\001\002B\r\n" + "\013_request_id\"\363\001\n" + "\024UpdateLicenseRequest\022\030\n" + "\007license\030\301\210\302O \001(\tB\004\342A\001\002\022D\n" @@ -31922,24 +31927,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%UpdateNetworkInterfaceInstanceRequest\022\031\n" + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022#\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\004\342A\001\002\022W\n" - + "\032network_interface_resource\030\205\224\256\233\001" - + " \001(\0132).google.cloud.compute.v1.NetworkInterfaceB\004\342A\001\002\022\"\n" + + "\032network_interface_resource\030\205\224\256\233\001 \001(\0132).g" + + "oogle.cloud.compute.v1.NetworkInterfaceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\370\001\n" + "\033UpdatePeeringNetworkRequest\022\030\n" + "\007network\030\256\264\205o \001(\tB\004\342A\001\002\022p\n" - + "(networks_update_peering_request_resource\030\331\252\202k \001" - + "(\01325.google.cloud.compute.v1.NetworksUpdatePeeringRequestB\004\342A\001\002\022\"\n" + + "(networks_update_peering_request_resource\030\331\252\202k \001(\01325.google.cloud" + + ".compute.v1.NetworksUpdatePeeringRequestB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\352\002\n" + "3UpdatePerInstanceConfigsInstanceGroupManagerRequest\022\'\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\004\342A\001\002\022\234\001\n" + "@instance_group_managers_update_per_instance_configs_req_resource\030\276\301\266C" - + " \001(\0132I.google.cloud.compute.v1.InstanceGroupMan" - + "agersUpdatePerInstanceConfigsReqB\004\342A\001\002\022\"\n" + + " \001(\0132I.google.cloud.comp" + + "ute.v1.InstanceGroupManagersUpdatePerInstanceConfigsReqB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" @@ -31950,8 +31955,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\236\001\n" + "Aregion_instance_group_manager_update_instance_config_req_resource\030\247\256\272*" - + " \001(\0132J.google.cloud.compute.v1.RegionInstance" - + "GroupManagerUpdateInstanceConfigReqB\004\342A\001\002\022\032\n\n" + + " \001(\0132J.google.cloud.co" + + "mpute.v1.RegionInstanceGroupManagerUpdateInstanceConfigReqB\004\342A\001\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\343\001\n" + "\033UpdatePreviewFeatureRequest\022!\n" @@ -31973,8 +31978,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\214\002\n" + "!UpdateRegionBackendServiceRequest\022!\n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\004\342A\001\002\022S\n" - + "\030backend_service_resource\030\243\201\337\245\001" - + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.goo" + + "gle.cloud.compute.v1.BackendServiceB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" @@ -31995,8 +32000,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\257\002\n" + "\027UpdateRegionDiskRequest\022\025\n" + "\004disk\030\235\233\274\001 \001(\tB\004\342A\001\002\022=\n\r" - + "disk_resource\030\360\320\253\014" - + " \001(\0132\035.google.cloud.compute.v1.DiskB\004\342A\001\002\022\025\n" + + "disk_resource\030\360\320\253\014 \001" + + "(\0132\035.google.cloud.compute.v1.DiskB\004\342A\001\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022 \n" + "\006region\030\364\315\240B \001(\tB\r" @@ -32033,8 +32038,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.cloud.compute.v1.ReservationB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\010\n" - + "\006_pathsB\r" - + "\n" + + "\006_pathsB\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\250\002\n" + "\034UpdateReservationSlotRequest\022\035\n" @@ -32051,8 +32055,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\r" + "\342A\001\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022L\n" - + "\025route_policy_resource\030\205\275\2657" - + " \001(\0132$.google.cloud.compute.v1.RoutePolicyB\004\342A\001\002\022\027\n" + + "\025route_policy_resource\030\205\275\2657 \001(\0132$" + + ".google.cloud.compute.v1.RoutePolicyB\004\342A\001\002\022\027\n" + "\006router\030\311\256\356F \001(\tB\004\342A\001\002B\r\n" + "\013_request_id\"\342\001\n" + "\023UpdateRouterRequest\022\"\n" @@ -32068,16 +32072,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010instance\030\225\251\332\010 \001(\tB\004\342A\001\002\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "!shielded_instance_config_resource\030\330\226\335\201\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.ShieldedInstanceConfigB\004\342A\001\002\022\034\n" + + "!shielded_instance_config_resource\030\330\226\335\201\001" + + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\243\002\n" + "\030UpdateStoragePoolRequest\022\"\n" + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\036\n" + "\014storage_pool\030\340\306\361\253\001 \001(\tB\004\342A\001\002\022L\n" - + "\025storage_pool_resource\030\215\274\371J" - + " \001(\0132$.google.cloud.compute.v1.StoragePoolB\004\342A\001\002\022\034\n" + + "\025storage_pool_resource\030\215\274\371J \001(\0132$.g" + + "oogle.cloud.compute.v1.StoragePoolB\004\342A\001\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_idB\016\n" @@ -32093,19 +32097,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\016\342A\001\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022%\n" + "\023vm_extension_policy\030\272\223\213\236\001 \001(\tB\004\342A\001\002\022Z\n" - + "\034vm_extension_policy_resource\030\363\371\361\365\001" - + " \001(\0132*.google.cloud.compute.v1.VmExtensionPolicyB\004\342A\001\002\022\034\n" + + "\034vm_extension_policy_resource\030\363\371\361\365\001 \001(\0132*.goog" + + "le.cloud.compute.v1.VmExtensionPolicyB\004\342A\001\002\022\034\n" + "\004zone\030\254\307\344\001 \001(\tB\013\342A\001\002\362G\004zoneB\r\n" + "\013_request_id\"\362\007\n" + "\006UrlMap\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022h\n" - + "$default_custom_error_response_policy\030\251\213\340& \001(" - + "\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\001\210\001\001\022O\n" - + "\024default_route_action\030\252\264\327\264\001" - + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\002\210\001\001\022 \n" + + "$default_custom_error_response_policy\030\251\213\340& \001(\01322.google.cloud." + + "compute.v1.CustomErrorResponsePolicyH\001\210\001\001\022O\n" + + "\024default_route_action\030\252\264\327\264\001 \001(\0132(.go" + + "ogle.cloud.compute.v1.HttpRouteActionH\002\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\003\210\001\001\022R\n" - + "\024default_url_redirect\030\352\253\266\253\001" - + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + + "\024default_url_redirect\030\352\253\266\253\001 \001(\0132+.google." + + "cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\r" + "header_action\030\250\240\270\234\001" @@ -32116,8 +32120,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\t\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022?\n\r" - + "path_matchers\030\333\210\305\201\001" - + " \003(\0132$.google.cloud.compute.v1.PathMatcher\022\026\n" + + "path_matchers\030\333\210\305\201\001 \003" + + "(\0132$.google.cloud.compute.v1.PathMatcher\022\026\n" + "\006region\030\364\315\240B \001(\tH\013\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\0225\n" + "\005tests\030\241\234\3114 \003(\0132#.google.cloud.compute.v1.UrlMapTestB\025\n" @@ -32155,8 +32159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023expected_output_url\030\230\242\367\316\001 \001(\tH\001\210\001\001\022/\n" + "\037expected_redirect_response_code\030\357\352\200\t" + " \001(\005H\002\210\001\001\022=\n" - + "\007headers\030\206\337\235{" - + " \003(\0132).google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + + "\007headers\030\206\337\235{ \003(\0132)" + + ".google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\003\210\001\001\022\024\n" + "\004path\030\245\310\321\001 \001(\tH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001B\016\n" @@ -32181,8 +32185,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_test_passed\"\265\003\n" + "\025UrlMapsAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022K\n" - + "\005items\030\300\317\367/ \003(\01329.goog" - + "le.cloud.compute.v1.UrlMapsAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01329.google.cloud.compute.v1.UrlMapsAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -32205,8 +32209,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\230\002\n" + "\026UrlMapsValidateRequest\022!\n" + "\026load_balancing_schemes\030\257\205\201\003 \003(\t\0229\n" - + "\010resource\030\216\210\257] \001(" - + "\0132\037.google.cloud.compute.v1.UrlMapH\000\210\001\001\"\222\001\n" + + "\010resource\030\216\210\257]" + + " \001(\0132\037.google.cloud.compute.v1.UrlMapH\000\210\001\001\"\222\001\n" + "\024LoadBalancingSchemes\022$\n" + " UNDEFINED_LOAD_BALANCING_SCHEMES\020\000\022\017\n" + "\010EXTERNAL\020\313\247\375\020\022\030\n" @@ -32214,8 +32218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\274\273\207\373\001B\013\n" + "\t_resource\"m\n" + "\027UrlMapsValidateResponse\022G\n" - + "\006result\030\235\220\267B" - + " \001(\0132/.google.cloud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\0132/.google." + + "cloud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + "\007_result\"\223\002\n\n" + "UrlRewrite\022\034\n" + "\014host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n" @@ -32235,8 +32239,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\004\210\001\001\022\030\n" + "\007purpose\030\236\372\357\226\001 \001(\tH\005\210\001\001\022\024\n" + "\004role\030\366\200\326\001 \001(\tH\006\210\001\001\022W\n" - + "\023secondary_ip_ranges\030\343\377\224A" - + " \003(\01327.google.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + + "\023secondary_ip_ranges\030\343\377\224A \003" + + "(\01327.google.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\007\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\010\210\001\001\"S\n" + "\016Ipv6AccessType\022\036\n" @@ -32280,12 +32284,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_range_name\"\244\003\n" + "\037UsableSubnetworksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.UsableSubnetwork\022\024\n" + + "\005items\030\300\317\367/ \003(\0132)." + + "google.cloud.compute.v1.UsableSubnetwork\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022M\n" - + "\017scoped_warnings\030\246\226\370f" - + " \003(\01321.google.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + + "\017scoped_warnings\030\246\226\370f " + + "\003(\01321.google.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -32303,28 +32307,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ValidateRegionUrlMapRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\027\n" + "\006region\030\364\315\240B \001(\tB\004\342A\001\002\022q\n" - + ")region_url_maps_validate_request_resource\030\232\314\200\033 \001(\01325.google" - + ".cloud.compute.v1.RegionUrlMapsValidateRequestB\004\342A\001\002\022\031\n" + + ")region_url_maps_validate_request_resource\030\232\314\200\033" + + " \001(\01325.google.cloud.compute.v1.RegionUrlMapsValidateRequestB\004\342A\001\002\022\031\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\004\342A\001\002\"\263\001\n" + "\025ValidateUrlMapRequest\022\030\n" + "\007project\030\231\226\301l \001(\tB\004\342A\001\002\022\031\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\004\342A\001\002\022e\n" - + "\"url_maps_validate_request_resource\030\357\321\344\274\001" - + " \001(\0132/.google.cloud.compute.v1.UrlMapsValidateRequestB\004\342A\001\002\"\257\001\n" + + "\"url_maps_validate_request_resource\030\357\321\344\274\001 \001(\0132/.google.c" + + "loud.compute.v1.UrlMapsValidateRequestB\004\342A\001\002\"\257\001\n" + "\025VmEndpointNatMappings\022\035\n\r" + "instance_name\030\365\347\330l \001(\tH\000\210\001\001\022e\n" - + "\026interface_nat_mappings\030\211\200\225z \003(\0132B.goog" - + "le.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + + "\026interface_nat_mappings\030\211\200\225z \003(\0132B.google.cloud.compute." + + "v1.VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + "\016_instance_name\"\342\003\n" + ")VmEndpointNatMappingsInterfaceNatMappings\022$\n" + "\030drain_nat_ip_port_ranges\030\301\343\307\274\001 \003(\t\022\036\n" + "\022nat_ip_port_ranges\030\232\260\314\375\001 \003(\t\022*\n" + "\031num_total_drain_nat_ports\030\371\245\377\237\001" + " \001(\005H\000\210\001\001\022$\n" - + "\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n" - + "\r" - + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.google.cloud." - + "compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + + "\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n\r" + + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.google.cloud.compute.v1.VmEndp" + + "ointNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + "\025source_alias_ip_range\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n" + "\021source_virtual_ip\030\377\242\271G \001(\tH\003\210\001\001B\034\n" + "\032_num_total_drain_nat_portsB\026\n" @@ -32345,8 +32348,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022A\n" - + "\006result\030\235\220\267B \003(\0132" - + "..google.cloud.compute.v1.VmEndpointNatMappings\022\032\n" + + "\006result\030\235\220\267B" + + " \003(\0132..google.cloud.compute.v1.VmEndpointNatMappings\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" @@ -32364,12 +32367,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021VmExtensionPolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022`\n" - + "\022extension_policies\030\320\272\315l \003(\0132A.google.cloud.comput" - + "e.v1.VmExtensionPolicy.ExtensionPoliciesEntry\022%\n" + + "\022extension_policies\030\320\272\315l \003(" + + "\0132A.google.cloud.compute.v1.VmExtensionPolicy.ExtensionPoliciesEntry\022%\n" + "\024global_resource_link\030\357\363\250\366\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022Z\n" - + "\022instance_selectors\030\312\302\214\370\001" - + " \003(\0132:.google.cloud.compute.v1.VmExtensionPolicyInstanceSelector\022\024\n" + + "\022instance_selectors\030\312\302\214\370\001 \003(\0132:." + + "google.cloud.compute.v1.VmExtensionPolicyInstanceSelector\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021managed_by_global\030\353\207\240* \001(\010H\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\031\n" @@ -32381,8 +32384,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020update_timestamp\030\240\352\3229 \001(\tH\013\210\001\001\032s\n" + "\026ExtensionPoliciesEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.goo" - + "gle.cloud.compute.v1.VmExtensionPolicyExtensionPolicy:\0028\001\"Y\n" + + "\005value\030\002 \001(\01329.google.cloud.compute" + + ".v1.VmExtensionPolicyExtensionPolicy:\0028\001\"Y\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\016\n" + "\006ACTIVE\020\206\346\211\226\001\022\020\n" @@ -32403,8 +32406,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'VmExtensionPolicyAggregatedListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022]\n" - + "\005items\030\300\317\367/ \003(\0132K.google.cloud.compute.v1.VmExtensionP" - + "olicyAggregatedListResponse.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132K.google.cloud." + + "compute.v1.VmExtensionPolicyAggregatedListResponse.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -32413,8 +32416,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032d\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002" - + " \001(\01326.google.cloud.compute.v1.VmExtensionPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01326.google." + + "cloud.compute.v1.VmExtensionPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -32423,17 +32426,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\210\001\n" + " VmExtensionPolicyExtensionPolicy\022\037\n" + "\016pinned_version\030\361\376\345\324\001 \001(\tH\000\210\001\001\022\036\n\r" - + "string_config\030\260\266\210\230\001 \001(\tH\001\210\001\001B\021\n" + + "strin", + "g_config\030\260\266\210\230\001 \001(\tH\001\210\001\001B\021\n" + "\017_pinned_versionB\020\n" - + "\016_string_config\"\220\001", - "\n" + + "\016_string_config\"\220\001\n" + "!VmExtensionPolicyInstanceSelector\022X\n" - + "\016label_selector\030\312\361\344\246\001 \001(\01327.google.cloud.c" - + "ompute.v1.VmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + + "\016label_selector\030\312\361\344\246\001" + + " \001(\01327.google.cloud.compute.v1.VmExtensionPolicyLabelSelectorH\000\210\001\001B\021\n" + "\017_label_selector\"\304\001\n" + "\036VmExtensionPolicyLabelSelector\022j\n" - + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132L.google.cloud.compute.v1.VmEx" - + "tensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + + "\020inclusion_labels\030\202\331\205\357\001 \003(\0132L.googl" + + "e.cloud.compute.v1.VmExtensionPolicyLabelSelector.InclusionLabelsEntry\0326\n" + "\024InclusionLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\353\002\n" @@ -32461,18 +32464,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022C\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\0132/.google.cloud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132/.google.cloud.compute.v1.VpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022A\n" - + "\006params\030\206\363\253% \001(\0132).g" - + "oogle.cloud.compute.v1.VpnGatewayParamsH\010\210\001\001\022\026\n" + + "\006params\030\206\363\253%" + + " \001(\0132).google.cloud.compute.v1.VpnGatewayParamsH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\013\210\001\001\022Q\n" - + "\016vpn_interfaces\030\205\315\345+ \003(\01326.googl" - + "e.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + + "\016vpn_interfaces\030\205\315\345+" + + " \003(\01326.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"N\n" @@ -32501,23 +32504,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_stack_type\"\277\003\n" + "\030VpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud" - + ".compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n" + + "\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132" + + "..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\245\002\n" + "\016VpnGatewayList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0225\n" @@ -32533,14 +32536,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\265\001\n" + "\020VpnGatewayParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003" - + "(\0132B.google.cloud.compute.v1.VpnGatewayParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud" + + ".compute.v1.VpnGatewayParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"g\n" + "\020VpnGatewayStatus\022S\n" - + "\017vpn_connections\030\212\355\276\321\001" - + " \003(\01326.google.cloud.compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + + "\017vpn_connections\030\212\355\276\321\001 \003" + + "(\01326.google.cloud.compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + "0VpnGatewayStatusHighAvailabilityRequirementState\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n" + "\022unsatisfied_reason\030\212\367\235\032 \001(\tH\001\210\001\001\"f\n" @@ -32565,10 +32568,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035VpnGatewayStatusVpnConnection\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\000\210\001\001\022!\n" + "\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001\001\022`\n" - + "\005state\030\221\211\2534 \001(\0132I.google.cl" - + "oud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" - + "\007tunnels\030\213\372\3551" - + " \003(\0132/.google.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + + "\005state\030\221\211\2534 \001(\0132I.google.cloud.compute.v1.Vp" + + "nGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + + "\007tunnels\030\213\372\3551 \003(\0132/.google" + + ".cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + "\026_peer_external_gatewayB\023\n" + "\021_peer_gcp_gatewayB\010\n" + "\006_state\"\332\001\n" @@ -32594,8 +32597,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\307\r\n" + "\tVpnTunnel\022L\n" - + "\014cipher_suite\030\304\327\316\323\001" - + " \001(\0132-.google.cloud.compute.v1.VpnTunnelCipherSuiteH\000\210\001\001\022\"\n" + + "\014cipher_suite\030\304\327\316\323\001 \001(\0132-.google.clo" + + "ud.compute.v1.VpnTunnelCipherSuiteH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022 \n" + "\017detailed_status\030\341\244\203\237\001 \001(\tH\003\210\001\001\022\020\n" @@ -32603,8 +32606,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ike_version\030\234\320\220h \001(\005H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\007\210\001\001\022B\n" - + "\006labels\030\377\277\301\356\001 \003(\013" - + "2..google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132..google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + "\026local_traffic_selector\030\265\254\247\227\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022@\n" + "\006params\030\206\363\253% \001(\0132(.google.cloud.compute.v1.VpnTunnelParamsH" @@ -32669,8 +32672,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_vpn_gateway_interface\"\274\003\n" + "\027VpnTunnelAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/" - + " \003(\0132;.google.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.google.c" + + "loud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -32679,18 +32682,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032[\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002 \001(\0132-.g" - + "oogle.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132-.google.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\304\001\n" + "\024VpnTunnelCipherSuite\022J\n" - + "\006phase1\030\226\314\230( \001(\01322.goog" - + "le.cloud.compute.v1.VpnTunnelPhase1AlgorithmsH\000\210\001\001\022J\n" - + "\006phase2\030\227\314\230( \001(\01322.google.c" - + "loud.compute.v1.VpnTunnelPhase2AlgorithmsH\001\210\001\001B\t\n" + + "\006phase1\030\226\314\230(" + + " \001(\01322.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsH\000\210\001\001\022J\n" + + "\006phase2\030\227\314\230(" + + " \001(\01322.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsH\001\210\001\001B\t\n" + "\007_phase1B\t\n" + "\007_phase2\"\243\002\n\r" + "VpnTunnelList\022\020\n" @@ -32707,8 +32710,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\263\001\n" + "\017VpnTunnelParams\022d\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132A.google.cloud.compute" - + ".v1.VpnTunnelParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\013" + + "2A.google.cloud.compute.v1.VpnTunnelParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"e\n" @@ -32728,8 +32731,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\214\001\n" + "\020WafExpressionSet\022\022\n" + "\007aliases\030\376\235\365K \003(\t\022K\n" - + "\013expressions\030\333\201\333S \003(\01323" - + ".google.cloud.compute.v1.WafExpressionSetExpression\022\020\n" + + "\013expressions\030\333\201\333S" + + " \003(\01323.google.cloud.compute.v1.WafExpressionSetExpression\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001B\005\n" + "\003_id\"b\n" + "\032WafExpressionSetExpression\022\020\n" @@ -32851,8 +32854,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022H\n" - + "\tendpoints\030\376\252\362\210\001 \003(\01321.g" - + "oogle.cloud.compute.v1.WireGroup.EndpointsEntry\022\020\n" + + "\tendpoints\030\376\252\362\210\001" + + " \003(\01321.google.cloud.compute.v1.WireGroup.EndpointsEntry\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\034\n" @@ -32865,8 +32868,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005wires\030\216\301\3715 \003(\0132\035.google.cloud.compute.v1.Wire\032\\\n" + "\016EndpointsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002" - + " \001(\0132*.google.cloud.compute.v1.WireGroupEndpoint:\0028\001B\020\n" + + "\005value\030\002 \001(\0132*.google." + + "cloud.compute.v1.WireGroupEndpoint:\0028\001B\020\n" + "\016_admin_enabledB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\005\n" @@ -32878,12 +32881,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_topologyB\022\n" + "\020_wire_properties\"\333\001\n" + "\021WireGroupEndpoint\022X\n\r" - + "interconnects\030\245\333\205\370\001" - + " \003(\0132=.google.cloud.compute.v1.WireGroupEndpoint.InterconnectsEntry\032l\n" + + "interconnects\030\245\333\205\370\001 \003(\0132=.googl" + + "e.cloud.compute.v1.WireGroupEndpoint.InterconnectsEntry\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001" - + "(\01326.google.cloud.compute.v1.WireGroupEndpointInterconnect:\0028\001\"e\n" + + "\005value\030\002 \001(\01326.google.cloud" + + ".compute.v1.WireGroupEndpointInterconnect:\0028\001\"e\n" + "\035WireGroupEndpointInterconnect\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001\022\025\n" + "\tvlan_tags\030\365\232\262\267\001 \003(\005B\017\n\r" @@ -32905,8 +32908,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"^\n" + "\021WireGroupTopology\022I\n" - + "\tendpoints\030\376\252\362\210\001 \003(\0132" - + "2.google.cloud.compute.v1.WireGroupTopologyEndpoint\"[\n" + + "\tendpoints\030\376\252\362\210\001" + + " \003(\01322.google.cloud.compute.v1.WireGroupTopologyEndpoint\"[\n" + "\031WireGroupTopologyEndpoint\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\000\210\001\001\022\025\n" + "\005label\030\364\375\3750 \001(\tH\001\210\001\001B\007\n" @@ -32970,15 +32973,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Zone\022\"\n" + "\027available_cpu_platforms\030\223\363\331S \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(" - + "\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022L\n" - + "\017resource_status\030\303\372\367v \001(\0132+.goo" - + "gle.cloud.compute.v1.ZoneResourceStatusH\007\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v" + + " \001(\0132+.google.cloud.compute.v1.ZoneResourceStatusH\007\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\010\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\t\210\001\001\022\034\n" + "\014supports_pzs\030\356\366\205( \001(\010H\n" @@ -33012,12 +33015,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"s\n" + "\022ZoneResourceStatus\022]\n" - + "\025upcoming_maintenances\030\203\374\323 \003(\0132;.googl" - + "e.cloud.compute.v1.PeriodicPartialMaintenanceSchedule\"\315\001\n" + + "\025upcoming_maintenances\030\203\374\323 " + + " \003(\0132;.google.cloud.compute.v1.PeriodicPartialMaintenanceSchedule\"\315\001\n" + "\024ZoneSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01329.google.cloud.compute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\01329.g" + + "oogle.cloud.compute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -33039,7211 +33042,7212 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\t\n" + "\007_policy2\303\006\n" + "\020AcceleratorTypes\022\326\001\n" - + "\016AggregatedList\022>.google.cloud.compute.v1.AggregatedListAcceleratorT" - + "ypesRequest\0326.google.cloud.compute.v1.Ac" - + "celeratorTypeAggregatedList\"L\332A\007project\202" - + "\323\344\223\002<\022:/compute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" - + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRe" - + "quest\032(.google.cloud.compute.v1.Accelera" - + "torType\"w\332A\035project,zone,accelerator_typ" - + "e\202\323\344\223\002Q\022O/compute/v1/projects/{project}/" - + "zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" - + "\004List\0224.google.cloud.compute.v1.ListAcceleratorTypesRequest\032,.google" - + ".cloud.compute.v1.AcceleratorTypeList\"S\332" - + "A\014project,zone\202\323\344\223\002>\022.google.cloud.compute.v1.Agg" + + "regatedListAcceleratorTypesRequest\0326.google.cloud.compute.v1.AcceleratorTypeAggr" + + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" + + "1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" + + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequest\032(.google.cl" + + "oud.compute.v1.AcceleratorType\"w\332A\035proje" + + "ct,zone,accelerator_type\202\323\344\223\002Q\022O/compute" + + "/v1/projects/{project}/zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" + + "\004List\0224.google.cloud.compute.v1.ListAccelerat" + + "orTypesRequest\032,.google.cloud.compute.v1" + + ".AcceleratorTypeList\"S\332A\014project,zone\202\323\344" + + "\223\002>\022proje" - + "ct,zone,disk,disks_add_resource_policies" - + "_request_resource\212N\016ZoneOperations\202\323\344\223\002|" - + "\"L/compute/v1/projects/{project}/zones/{" - + "zone}/disks/{disk}/addResourcePolicies:," - + "disks_add_resource_policies_request_reso", - "urce\022\265\001\n\016AggregatedList\0223.google.cloud.c" - + "ompute.v1.AggregatedListDisksRequest\032+.g" - + "oogle.cloud.compute.v1.DiskAggregatedLis" - + "t\"A\332A\007project\202\323\344\223\0021\022//compute/v1/project" - + "s/{project}/aggregated/disks\022\216\002\n\nBulkIns" - + "ert\022..google.cloud.compute.v1.BulkInsert" - + "DiskRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\253\001\332A/project,zone,bulk_insert_di" - + "sk_resource_resource\212N\016ZoneOperations\202\323\344" - + "\223\002b\"project,zone,disk,disk" + + "s_add_resource_policies_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002|\"L/compute/v1/pro" + + "jects/{project}/zones/{zone}/disks/{disk", + "}/addResourcePolicies:,disks_add_resourc" + + "e_policies_request_resource\022\265\001\n\016Aggregat" + + "edList\0223.google.cloud.compute.v1.Aggrega" + + "tedListDisksRequest\032+.google.cloud.compu" + + "te.v1.DiskAggregatedList\"A\332A\007project\202\323\344\223" + + "\0021\022//compute/v1/projects/{project}/aggre" + + "gated/disks\022\216\002\n\nBulkInsert\022..google.clou" + + "d.compute.v1.BulkInsertDiskRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\253\001\332A/proj" + + "ect,zone,bulk_insert_disk_resource_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002b\"." + + "google.cloud.compute.v1.ListAssociations" + + "FirewallPolicyRequest\032A.google.cloud.com" + + "pute.v1.FirewallPoliciesListAssociations" + + "Response\"I\332A\000\202\323\344\223\002@\022>/compute/v1/locatio" + + "ns/global/firewallPolicies/listAssociati" + + "ons\022\335\001\n\004Move\0222.google.cloud.compute.v1.M" + + "oveFirewallPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"}\332A\017firewall_policy" + + "\212N\034GlobalOrganizationOperations\202\323\344\223\002F\"D/" + + "compute/v1/locations/global/firewallPoli" + + "cies/{firewall_policy}/move\022\216\002\n\005Patch\0223." + + "google.cloud.compute.v1.PatchFirewallPol" + + "icyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\253\001\332A(firewall_policy,firewall_pol" + + "icy_resource\212N\034GlobalOrganizationOperati" + + "ons\202\323\344\223\002[2?/compute/v1/locations/global/" + + "firewallPolicies/{firewall_policy}:\030fire" + + "wall_policy_resource\022\252\002\n\tPatchRule\0227.goo" + + "gle.cloud.compute.v1.PatchRuleFirewallPo" + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\275\001\332A-firewall_policy,firewall_po" + + "eration\"\277\001\332A-firewall_policy,firewall_po" + "licy_rule_resource\212N\034GlobalOrganizationO" - + "perations\202\323\344\223\002h\"G/compute/v1/locations/g" + + "perations\202\323\344\223\002j\"I/compute/v1/locations/g" + "lobal/firewallPolicies/{firewall_policy}" - + "/addRule:\035firewall_policy_rule_resource\022" - + "\360\001\n\nCloneRules\0228.google.cloud.compute.v1" - + ".CloneRulesFirewallPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\203\001\332A\017firewa" - + "ll_policy\212N\034GlobalOrganizationOperations" - + "\202\323\344\223\002L\"J/compute/v1/locations/global/fir" - + "ewallPolicies/{firewall_policy}/cloneRul" - + "es\022\334\001\n\006Delete\0224.google.cloud.compute.v1." - + "DeleteFirewallPolicyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"x\332A\017firewall_pol" - + "icy\212N\034GlobalOrganizationOperations\202\323\344\223\002A" - + "*?/compute/v1/locations/global/firewallP" - + "olicies/{firewall_policy}\022\274\001\n\003Get\0221.goog" - + "le.cloud.compute.v1.GetFirewallPolicyReq" - + "uest\032\'.google.cloud.compute.v1.FirewallP" - + "olicy\"Y\332A\017firewall_policy\202\323\344\223\002A\022?/comput" - + "e/v1/locations/global/firewallPolicies/{" - + "firewall_policy}\022\354\001\n\016GetAssociation\022<.go" - + "ogle.cloud.compute.v1.GetAssociationFire" - + "wallPolicyRequest\0322.google.cloud.compute" - + ".v1.FirewallPolicyAssociation\"h\332A\017firewa" - + "ll_policy\202\323\344\223\002P\022N/compute/v1/locations/g" - + "lobal/firewallPolicies/{firewall_policy}" - + "/getAssociation\022\305\001\n\014GetIamPolicy\022:.googl" - + "e.cloud.compute.v1.GetIamPolicyFirewallP" - + "olicyRequest\032\037.google.cloud.compute.v1.P" - + "olicy\"X\332A\010resource\202\323\344\223\002G\022E/compute/v1/lo" - + "cations/global/firewallPolicies/{resourc" - + "e}/getIamPolicy\022\320\001\n\007GetRule\0225.google.clo" - + "ud.compute.v1.GetRuleFirewallPolicyReque" - + "st\032+.google.cloud.compute.v1.FirewallPol" - + "icyRule\"a\332A\017firewall_policy\202\323\344\223\002I\022G/comp" - + "ute/v1/locations/global/firewallPolicies" - + "/{firewall_policy}/getRule\022\356\001\n\006Insert\0224." - + "google.cloud.compute.v1.InsertFirewallPo" - + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\211\001\332A\030firewall_policy_resource\212N\034" - + "GlobalOrganizationOperations\202\323\344\223\002I\"-/com" - + "pute/v1/locations/global/firewallPolicie" - + "s:\030firewall_policy_resource\022\243\001\n\004List\0224.g" - + "oogle.cloud.compute.v1.ListFirewallPolic" - + "iesRequest\032+.google.cloud.compute.v1.Fir" - + "ewallPolicyList\"8\332A\000\202\323\344\223\002/\022-/compute/v1/" - + "locations/global/firewallPolicies\022\340\001\n\020Li" - + "stAssociations\022>.google.cloud.compute.v1" - + ".ListAssociationsFirewallPolicyRequest\032A" - + ".google.cloud.compute.v1.FirewallPolicie" - + "sListAssociationsResponse\"I\332A\000\202\323\344\223\002@\022>/c" - + "ompute/v1/locations/global/firewallPolic" - + "ies/listAssociations\022\335\001\n\004Move\0222.google.c" - + "loud.compute.v1.MoveFirewallPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"}\332" - + "A\017firewall_policy\212N\034GlobalOrganizationOp" - + "erations\202\323\344\223\002F\"D/compute/v1/locations/gl" - + "obal/firewallPolicies/{firewall_policy}/" - + "move\022\216\002\n\005Patch\0223.google.cloud.compute.v1" - + ".PatchFirewallPolicyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\253\001\332A(firewall_po" - + "licy,firewall_policy_resource\212N\034GlobalOr" - + "ganizationOperations\202\323\344\223\002[2?/compute/v1/" - + "locations/global/firewallPolicies/{firew" - + "all_policy}:\030firewall_policy_resource\022\252\002" - + "\n\tPatchRule\0227.google.cloud.compute.v1.Pa" - + "tchRuleFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\277\001\332A-firewall_p" - + "olicy,firewall_policy_rule_resource\212N\034Gl" - + "obalOrganizationOperations\202\323\344\223\002j\"I/compu" + + "/patchRule:\035firewall_policy_rule_resourc" + + "e\022\205\002\n\021RemoveAssociation\022?.google.cloud.c" + + "ompute.v1.RemoveAssociationFirewallPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\212\001\332A\017firewall_policy\212N\034GlobalOrgani" + + "zationOperations\202\323\344\223\002S\"Q/compute/v1/loca" + + "tions/global/firewallPolicies/{firewall_" + + "policy}/removeAssociation\022\360\001\n\nRemoveRule" + + "\0228.google.cloud.compute.v1.RemoveRuleFir" + + "ewallPolicyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\203\001\332A\017firewall_policy\212N\034Gl" + + "obalOrganizationOperations\202\323\344\223\002L\"J/compu" + "te/v1/locations/global/firewallPolicies/" - + "{firewall_policy}/patchRule:\035firewall_po" - + "licy_rule_resource\022\205\002\n\021RemoveAssociation" - + "\022?.google.cloud.compute.v1.RemoveAssocia" - + "tionFirewallPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\212\001\332A\017firewall_poli" - + "cy\212N\034GlobalOrganizationOperations\202\323\344\223\002S\"" - + "Q/compute/v1/locations/global/firewallPo" - + "licies/{firewall_policy}/removeAssociati" - + "on\022\360\001\n\nRemoveRule\0228.google.cloud.compute" - + ".v1.RemoveRuleFirewallPolicyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\203\001\332A\017fir" - + "ewall_policy\212N\034GlobalOrganizationOperati" - + "ons\202\323\344\223\002L\"J/compute/v1/locations/global/" - + "firewallPolicies/{firewall_policy}/remov" - + "eRule\022\247\002\n\014SetIamPolicy\022:.google.cloud.co" - + "mpute.v1.SetIamPolicyFirewallPolicyReque" - + "st\032\037.google.cloud.compute.v1.Policy\"\271\001\332A" - + "8resource,global_organization_set_policy" - + "_request_resource\202\323\344\223\002x\"E/compute/v1/loc" - + "ations/global/firewallPolicies/{resource" - + "}/setIamPolicy:/global_organization_set_" - + "policy_request_resource\022\256\002\n\022TestIamPermi" - + "ssions\022@.google.cloud.compute.v1.TestIam" - + "PermissionsFirewallPolicyRequest\0320.googl" - + "e.cloud.compute.v1.TestPermissionsRespon" - + "se\"\243\001\332A*resource,test_permissions_reques" - + "t_resource\202\323\344\223\002p\"K/compute/v1/locations/" - + "global/firewallPolicies/{resource}/testI" - + "amPermissions:!test_permissions_request_" - + "resource\032\202\001\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform\212\324\333\322\017\n2026-09-012\225\r\n\tFirewalls\022\306\001\n\006" - + "Delete\022..google.cloud.compute.v1.DeleteF" - + "irewallRequest\032\".google.cloud.compute.v1" - + ".Operation\"h\332A\020project,firewall\212N\020Global" - + "Operations\202\323\344\223\002<*:/compute/v1/projects/{" - + "project}/global/firewalls/{firewall}\022\254\001\n" - + "\003Get\022+.google.cloud.compute.v1.GetFirewa" - + "llRequest\032!.google.cloud.compute.v1.Fire" - + "wall\"U\332A\020project,firewall\202\323\344\223\002<\022:/comput" - + "e/v1/projects/{project}/global/firewalls" - + "/{firewall}\022\327\001\n\006Insert\022..google.cloud.co" - + "mpute.v1.InsertFirewallRequest\032\".google." - + "cloud.compute.v1.Operation\"y\332A\031project,f" - + "irewall_resource\212N\020GlobalOperations\202\323\344\223\002" - + "D\"//compute/v1/projects/{project}/global" - + "/firewalls:\021firewall_resource\022\237\001\n\004List\022-" - + ".google.cloud.compute.v1.ListFirewallsRe" - + "quest\032%.google.cloud.compute.v1.Firewall" - + "List\"A\332A\007project\202\323\344\223\0021\022//compute/v1/proj" - + "ects/{project}/global/firewalls\022\352\001\n\005Patc" - + "h\022-.google.cloud.compute.v1.PatchFirewal" - + "lRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\215\001\332A\"project,firewall,firewall_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002O2:/compute/" - + "v1/projects/{project}/global/firewalls/{" - + "firewall}:\021firewall_resource\022\262\002\n\022TestIam" - + "Permissions\022:.google.cloud.compute.v1.Te" - + "stIamPermissionsFirewallRequest\0320.google" - + ".cloud.compute.v1.TestPermissionsRespons" - + "e\"\255\001\332A2project,resource,test_permissions" - + "_request_resource\202\323\344\223\002r\"M/compute/v1/pro" - + "jects/{project}/global/firewalls/{resour" - + "ce}/testIamPermissions:!test_permissions" - + "_request_resource\022\354\001\n\006Update\022..google.cl" - + "oud.compute.v1.UpdateFirewallRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\215\001\332A\"pr" - + "oject,firewall,firewall_resource\212N\020Globa" - + "lOperations\202\323\344\223\002O\032:/compute/v1/projects/" - + "{project}/global/firewalls/{firewall}:\021f" - + "irewall_resource\032\202\001\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform\212\324\333\322\017\n2026-09-012\252\021\n\017Forwar" - + "dingRules\022\323\001\n\016AggregatedList\022=.google.cl" - + "oud.compute.v1.AggregatedListForwardingR" - + "ulesRequest\0325.google.cloud.compute.v1.Fo" - + "rwardingRuleAggregatedList\"K\332A\007project\202\323" - + "\344\223\002;\0229/compute/v1/projects/{project}/agg" - + "regated/forwardingRules\022\362\001\n\006Delete\0224.goo" - + "gle.cloud.compute.v1.DeleteForwardingRul" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\215\001\332A\036project,region,forwarding_rule" - + "\212N\020RegionOperations\202\323\344\223\002S*Q/compute/v1/p" - + "rojects/{project}/regions/{region}/forwa" - + "rdingRules/{forwarding_rule}\022\335\001\n\003Get\0221.g" - + "oogle.cloud.compute.v1.GetForwardingRule" - + "Request\032\'.google.cloud.compute.v1.Forwar" - + "dingRule\"z\332A\036project,region,forwarding_r" - + "ule\202\323\344\223\002S\022Q/compute/v1/projects/{project" - + "}/regions/{region}/forwardingRules/{forw" - + "arding_rule}\022\203\002\n\006Insert\0224.google.cloud.c" - + "ompute.v1.InsertForwardingRuleRequest\032\"." - + "google.cloud.compute.v1.Operation\"\236\001\332A\'p" - + "roject,region,forwarding_rule_resource\212N" - + "\020RegionOperations\202\323\344\223\002[\"?/compute/v1/pro" - + "jects/{project}/regions/{region}/forward" - + "ingRules:\030forwarding_rule_resource\022\302\001\n\004L" - + "ist\0223.google.cloud.compute.v1.ListForwar" - + "dingRulesRequest\032+.google.cloud.compute." - + "v1.ForwardingRuleList\"X\332A\016project,region" - + "\202\323\344\223\002A\022?/compute/v1/projects/{project}/r" - + "egions/{region}/forwardingRules\022\243\002\n\005Patc" - + "h\0223.google.cloud.compute.v1.PatchForward" - + "ingRuleRequest\032\".google.cloud.compute.v1" - + ".Operation\"\300\001\332A7project,region,forwardin" - + "g_rule,forwarding_rule_resource\212N\020Region" - + "Operations\202\323\344\223\002m2Q/compute/v1/projects/{" - + "project}/regions/{region}/forwardingRule" - + "s/{forwarding_rule}:\030forwarding_rule_res" - + "ource\022\273\002\n\tSetLabels\0227.google.cloud.compu" - + "te.v1.SetLabelsForwardingRuleRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\320\001\332A:pr" - + "oject,region,resource,region_set_labels_" - + "request_resource\212N\020RegionOperations\202\323\344\223\002" - + "z\"T/compute/v1/projects/{project}/region" - + "s/{region}/forwardingRules/{resource}/se" - + "tLabels:\"region_set_labels_request_resou" - + "rce\022\267\002\n\tSetTarget\0227.google.cloud.compute" - + ".v1.SetTargetForwardingRuleRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\314\001\332A8proj" - + "ect,region,forwarding_rule,target_refere" - + "nce_resource\212N\020RegionOperations\202\323\344\223\002x\"[/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/forwardingRules/{forwarding_rule}" + + "{firewall_policy}/removeRule\022\247\002\n\014SetIamP" + + "olicy\022:.google.cloud.compute.v1.SetIamPo" + + "licyFirewallPolicyRequest\032\037.google.cloud" + + ".compute.v1.Policy\"\271\001\332A8resource,global_" + + "organization_set_policy_request_resource" + + "\202\323\344\223\002x\"E/compute/v1/locations/global/fir" + + "ewallPolicies/{resource}/setIamPolicy:/g" + + "lobal_organization_set_policy_request_re" + + "source\022\256\002\n\022TestIamPermissions\022@.google.c" + + "loud.compute.v1.TestIamPermissionsFirewa" + + "llPolicyRequest\0320.google.cloud.compute.v" + + "1.TestPermissionsResponse\"\243\001\332A*resource," + + "test_permissions_request_resource\202\323\344\223\002p\"" + + "K/compute/v1/locations/global/firewallPo" + + "licies/{resource}/testIamPermissions:!te" + + "st_permissions_request_resource\032\202\001\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" + + "9-012\225\r\n\tFirewalls\022\306\001\n\006Delete\022..google.c" + + "loud.compute.v1.DeleteFirewallRequest\032\"." + + "google.cloud.compute.v1.Operation\"h\332A\020pr" + + "oject,firewall\212N\020GlobalOperations\202\323\344\223\002<*" + + ":/compute/v1/projects/{project}/global/f" + + "irewalls/{firewall}\022\254\001\n\003Get\022+.google.clo" + + "ud.compute.v1.GetFirewallRequest\032!.googl" + + "e.cloud.compute.v1.Firewall\"U\332A\020project," + + "firewall\202\323\344\223\002<\022:/compute/v1/projects/{pr" + + "oject}/global/firewalls/{firewall}\022\327\001\n\006I" + + "nsert\022..google.cloud.compute.v1.InsertFi" + + "rewallRequest\032\".google.cloud.compute.v1." + + "Operation\"y\332A\031project,firewall_resource\212" + + "N\020GlobalOperations\202\323\344\223\002D\"//compute/v1/pr" + + "ojects/{project}/global/firewalls:\021firew" + + "all_resource\022\237\001\n\004List\022-.google.cloud.com" + + "pute.v1.ListFirewallsRequest\032%.google.cl" + + "oud.compute.v1.FirewallList\"A\332A\007project\202" + + "\323\344\223\0021\022//compute/v1/projects/{project}/gl" + + "obal/firewalls\022\352\001\n\005Patch\022-.google.cloud." + + "compute.v1.PatchFirewallRequest\032\".google" + + ".cloud.compute.v1.Operation\"\215\001\332A\"project" + + ",firewall,firewall_resource\212N\020GlobalOper" + + "ations\202\323\344\223\002O2:/compute/v1/projects/{proj" + + "ect}/global/firewalls/{firewall}:\021firewa" + + "ll_resource\022\262\002\n\022TestIamPermissions\022:.goo" + + "gle.cloud.compute.v1.TestIamPermissionsF" + + "irewallRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\255\001\332A2project,re" + + "source,test_permissions_request_resource" + + "\202\323\344\223\002r\"M/compute/v1/projects/{project}/g" + + "lobal/firewalls/{resource}/testIamPermis" + + "sions:!test_permissions_request_resource" + + "\022\354\001\n\006Update\022..google.cloud.compute.v1.Up" + + "dateFirewallRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\215\001\332A\"project,firewall,fi" + + "rewall_resource\212N\020GlobalOperations\202\323\344\223\002O" + + "\032:/compute/v1/projects/{project}/global/" + + "firewalls/{firewall}:\021firewall_resource\032" + + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform\212\324\333\322" + + "\017\n2026-09-012\252\021\n\017ForwardingRules\022\323\001\n\016Agg" + + "regatedList\022=.google.cloud.compute.v1.Ag" + + "gregatedListForwardingRulesRequest\0325.goo" + + "gle.cloud.compute.v1.ForwardingRuleAggre" + + "gatedList\"K\332A\007project\202\323\344\223\002;\0229/compute/v1" + + "/projects/{project}/aggregated/forwardin" + + "gRules\022\362\001\n\006Delete\0224.google.cloud.compute" + + ".v1.DeleteForwardingRuleRequest\032\".google" + + ".cloud.compute.v1.Operation\"\215\001\332A\036project" + + ",region,forwarding_rule\212N\020RegionOperatio" + + "ns\202\323\344\223\002S*Q/compute/v1/projects/{project}" + + "/regions/{region}/forwardingRules/{forwa" + + "rding_rule}\022\335\001\n\003Get\0221.google.cloud.compu" + + "te.v1.GetForwardingRuleRequest\032\'.google." + + "cloud.compute.v1.ForwardingRule\"z\332A\036proj" + + "ect,region,forwarding_rule\202\323\344\223\002S\022Q/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/forwardingRules/{forwarding_rule}\022\203\002\n\006" + + "Insert\0224.google.cloud.compute.v1.InsertF" + + "orwardingRuleRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\236\001\332A\'project,region,for" + + "warding_rule_resource\212N\020RegionOperations" + + "\202\323\344\223\002[\"?/compute/v1/projects/{project}/r" + + "egions/{region}/forwardingRules:\030forward" + + "ing_rule_resource\022\302\001\n\004List\0223.google.clou" + + "d.compute.v1.ListForwardingRulesRequest\032" + + "+.google.cloud.compute.v1.ForwardingRule" + + "List\"X\332A\016project,region\202\323\344\223\002A\022?/compute/" + + "v1/projects/{project}/regions/{region}/f" + + "orwardingRules\022\243\002\n\005Patch\0223.google.cloud." + + "compute.v1.PatchForwardingRuleRequest\032\"." + + "google.cloud.compute.v1.Operation\"\300\001\332A7p" + + "roject,region,forwarding_rule,forwarding" + + "_rule_resource\212N\020RegionOperations\202\323\344\223\002m2" + + "Q/compute/v1/projects/{project}/regions/" + + "{region}/forwardingRules/{forwarding_rul" + + "e}:\030forwarding_rule_resource\022\273\002\n\tSetLabe" + + "ls\0227.google.cloud.compute.v1.SetLabelsFo" + + "rwardingRuleRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\320\001\332A:project,region,reso" + + "urce,region_set_labels_request_resource\212" + + "N\020RegionOperations\202\323\344\223\002z\"T/compute/v1/pr" + + "ojects/{project}/regions/{region}/forwar" + + "dingRules/{resource}/setLabels:\"region_s" + + "et_labels_request_resource\022\267\002\n\tSetTarget" + + "\0227.google.cloud.compute.v1.SetTargetForw" + + "ardingRuleRequest\032\".google.cloud.compute" + + ".v1.Operation\"\314\001\332A8project,region,forwar" + + "ding_rule,target_reference_resource\212N\020Re" + + "gionOperations\202\323\344\223\002x\"[/compute/v1/projec" + + "ts/{project}/regions/{region}/forwarding" + + "Rules/{forwarding_rule}/setTarget:\031targe" + + "t_reference_resource\032\202\001\312A\026compute.google" + + "apis.com\322AVhttps://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform\212\324\333\322\017\n2026-09-012\360\016\n\022Fu" + + "tureReservations\022\345\001\n\016AggregatedList\022@.go" + + "ogle.cloud.compute.v1.AggregatedListFutu" + + "reReservationsRequest\032A.google.cloud.com" + + "pute.v1.FutureReservationsAggregatedList" + + "Response\"N\332A\007project\202\323\344\223\002>\022/compute/v1/projects/{project}/zones/{z" + + "one}/futureReservations:\033future_reservat" + + "ion_resource\022\316\001\n\004List\0226.google.cloud.com" + + "pute.v1.ListFutureReservationsRequest\0327." + + "google.cloud.compute.v1.FutureReservatio" + + "nsListResponse\"U\332A\014project,zone\202\323\344\223\002@\022>/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/futureReservations\022\257\002\n\006Update\0227.googl" + + "e.cloud.compute.v1.UpdateFutureReservati" + + "onRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\307\001\332A;project,zone,future_reservati" + + "on,future_reservation_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002r2S/compute/v1/projects/{pro" + + "ject}/zones/{zone}/futureReservations/{f" + + "uture_reservation}:\033future_reservation_r" + + "esource\032\202\001\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form\212\324\333\322\017\n2026-09-012\224\016\n\017GlobalAddresses" + + "\022\311\001\n\006Delete\0223.google.cloud.compute.v1.De" + + "leteGlobalAddressRequest\032\".google.cloud." + + "compute.v1.Operation\"f\332A\017project,address" + + "\212N\020GlobalOperations\202\323\344\223\002;*9/compute/v1/p" + + "rojects/{project}/global/addresses/{addr" + + "ess}\022\256\001\n\003Get\0220.google.cloud.compute.v1.G" + + "etGlobalAddressRequest\032 .google.cloud.co" + + "mpute.v1.Address\"S\332A\017project,address\202\323\344\223" + + "\002;\0229/compute/v1/projects/{project}/globa" + + "l/addresses/{address}\022\332\001\n\006Insert\0223.googl" + + "e.cloud.compute.v1.InsertGlobalAddressRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"w\332A\030project,address_resource\212N\020GlobalO" + + "perations\202\323\344\223\002C\"//compute/v1/projects/{p" + + "roject}/global/addresses:\020address_resour" + + "ce\022\244\001\n\004List\0223.google.cloud.compute.v1.Li" + + "stGlobalAddressesRequest\032$.google.cloud." + + "compute.v1.AddressList\"A\332A\007project\202\323\344\223\0021" + + "\022//compute/v1/projects/{project}/global/" + + "addresses\022\232\002\n\004Move\0221.google.cloud.comput" + + "e.v1.MoveGlobalAddressRequest\032\".google.c" + + "loud.compute.v1.Operation\"\272\001\332A6project,a" + + "ddress,global_addresses_move_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002h\">/compute" + + "/v1/projects/{project}/global/addresses/" + + "{address}/move:&global_addresses_move_re" + + "quest_resource\022\243\002\n\tSetLabels\0226.google.cl" + + "oud.compute.v1.SetLabelsGlobalAddressReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\271\001\332A3project,resource,global_set_labels" + + "_request_resource\212N\020GlobalOperations\202\323\344\223" + + "\002j\"D/compute/v1/projects/{project}/globa" + + "l/addresses/{resource}/setLabels:\"global" + + "_set_labels_request_resource\022\267\002\n\022TestIam" + + "Permissions\022?.google.cloud.compute.v1.Te" + + "stIamPermissionsGlobalAddressRequest\0320.g" + + "oogle.cloud.compute.v1.TestPermissionsRe" + + "sponse\"\255\001\332A2project,resource,test_permis" + + "sions_request_resource\202\323\344\223\002r\"M/compute/v" + + "1/projects/{project}/global/addresses/{r" + + "esource}/testIamPermissions:!test_permis" + + "sions_request_resource\032\202\001\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\214\017\n\025" + + "GlobalForwardingRules\022\346\001\n\006Delete\022:.googl" + + "e.cloud.compute.v1.DeleteGlobalForwardin" + + "gRuleRequest\032\".google.cloud.compute.v1.O" + + "peration\"|\332A\027project,forwarding_rule\212N\020G" + + "lobalOperations\202\323\344\223\002I*G/compute/v1/proje" + + "cts/{project}/global/forwardingRules/{fo" + + "rwarding_rule}\022\322\001\n\003Get\0227.google.cloud.co" + + "mpute.v1.GetGlobalForwardingRuleRequest\032" + + "\'.google.cloud.compute.v1.ForwardingRule" + + "\"i\332A\027project,forwarding_rule\202\323\344\223\002I\022G/com" + + "pute/v1/projects/{project}/global/forwar" + + "dingRules/{forwarding_rule}\022\370\001\n\006Insert\022:" + + ".google.cloud.compute.v1.InsertGlobalFor" + + "wardingRuleRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\215\001\332A project,forwarding_r" + + "ule_resource\212N\020GlobalOperations\202\323\344\223\002Q\"5/" + + "compute/v1/projects/{project}/global/for" + + "wardingRules:\030forwarding_rule_resource\022\267" + + "\001\n\004List\0229.google.cloud.compute.v1.ListGl" + + "obalForwardingRulesRequest\032+.google.clou" + + "d.compute.v1.ForwardingRuleList\"G\332A\007proj" + + "ect\202\323\344\223\0027\0225/compute/v1/projects/{project" + + "}/global/forwardingRules\022\230\002\n\005Patch\0229.goo" + + "gle.cloud.compute.v1.PatchGlobalForwardi" + + "ngRuleRequest\032\".google.cloud.compute.v1." + + "Operation\"\257\001\332A0project,forwarding_rule,f" + + "orwarding_rule_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002c2G/compute/v1/projects/{project}" + + "/global/forwardingRules/{forwarding_rule" + + "}:\030forwarding_rule_resource\022\260\002\n\tSetLabel" + + "s\022=.google.cloud.compute.v1.SetLabelsGlo" + + "balForwardingRuleRequest\032\".google.cloud." + + "compute.v1.Operation\"\277\001\332A3project,resour" + + "ce,global_set_labels_request_resource\212N\020" + + "GlobalOperations\202\323\344\223\002p\"J/compute/v1/proj" + + "ects/{project}/global/forwardingRules/{r" + + "esource}/setLabels:\"global_set_labels_re" + + "quest_resource\022\254\002\n\tSetTarget\022=.google.cl" + + "oud.compute.v1.SetTargetGlobalForwarding" + + "RuleRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\273\001\332A1project,forwarding_rule,tar" + + "get_reference_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002n\"Q/compute/v1/projects/{project}/" + + "global/forwardingRules/{forwarding_rule}" + "/setTarget:\031target_reference_resource\032\202\001" + "\312A\026compute.googleapis.com\322AVhttps://www." + "googleapis.com/auth/compute,https://www." + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" - + "2026-09-012\360\016\n\022FutureReservations\022\345\001\n\016Ag" - + "gregatedList\022@.google.cloud.compute.v1.A" - + "ggregatedListFutureReservationsRequest\032A" - + ".google.cloud.compute.v1.FutureReservati" - + "onsAggregatedListResponse\"N\332A\007project\202\323\344" - + "\223\002>\022/compute/v1/projects/{" - + "project}/zones/{zone}/futureReservations" - + ":\033future_reservation_resource\022\316\001\n\004List\0226" - + ".google.cloud.compute.v1.ListFutureReser" - + "vationsRequest\0327.google.cloud.compute.v1" - + ".FutureReservationsListResponse\"U\332A\014proj" - + "ect,zone\202\323\344\223\002@\022>/compute/v1/projects/{pr" - + "oject}/zones/{zone}/futureReservations\022\257" - + "\002\n\006Update\0227.google.cloud.compute.v1.Upda" - + "teFutureReservationRequest\032\".google.clou" - + "d.compute.v1.Operation\"\307\001\332A;project,zone" - + ",future_reservation,future_reservation_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002r2S/compute" - + "/v1/projects/{project}/zones/{zone}/futu" - + "reReservations/{future_reservation}:\033fut" - + "ure_reservation_resource\032\202\001\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\224\016" - + "\n\017GlobalAddresses\022\311\001\n\006Delete\0223.google.cl" - + "oud.compute.v1.DeleteGlobalAddressReques" - + "t\032\".google.cloud.compute.v1.Operation\"f\332" - + "A\017project,address\212N\020GlobalOperations\202\323\344\223" - + "\002;*9/compute/v1/projects/{project}/globa" - + "l/addresses/{address}\022\256\001\n\003Get\0220.google.c" - + "loud.compute.v1.GetGlobalAddressRequest\032" - + " .google.cloud.compute.v1.Address\"S\332A\017pr" - + "oject,address\202\323\344\223\002;\0229/compute/v1/project" - + "s/{project}/global/addresses/{address}\022\332" - + "\001\n\006Insert\0223.google.cloud.compute.v1.Inse" - + "rtGlobalAddressRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"w\332A\030project,address_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002C\"//compu" - + "te/v1/projects/{project}/global/addresse" - + "s:\020address_resource\022\244\001\n\004List\0223.google.cl" - + "oud.compute.v1.ListGlobalAddressesReques" - + "t\032$.google.cloud.compute.v1.AddressList\"" - + "A\332A\007project\202\323\344\223\0021\022//compute/v1/projects/" - + "{project}/global/addresses\022\232\002\n\004Move\0221.go" - + "ogle.cloud.compute.v1.MoveGlobalAddressR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\272\001\332A6project,address,global_addresses" - + "_move_request_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002h\">/compute/v1/projects/{project}/" - + "global/addresses/{address}/move:&global_" - + "addresses_move_request_resource\022\243\002\n\tSetL" - + "abels\0226.google.cloud.compute.v1.SetLabel" - + "sGlobalAddressRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\271\001\332A3project,resource," - + "global_set_labels_request_resource\212N\020Glo" - + "balOperations\202\323\344\223\002j\"D/compute/v1/project" - + "s/{project}/global/addresses/{resource}/" - + "setLabels:\"global_set_labels_request_res" - + "ource\022\267\002\n\022TestIamPermissions\022?.google.cl" - + "oud.compute.v1.TestIamPermissionsGlobalA" - + "ddressRequest\0320.google.cloud.compute.v1." - + "TestPermissionsResponse\"\255\001\332A2project,res" - + "ource,test_permissions_request_resource\202" - + "\323\344\223\002r\"M/compute/v1/projects/{project}/gl" - + "obal/addresses/{resource}/testIamPermiss" - + "ions:!test_permissions_request_resource\032" - + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform\212\324\333\322" - + "\017\n2026-09-012\214\017\n\025GlobalForwardingRules\022\346" - + "\001\n\006Delete\022:.google.cloud.compute.v1.Dele" - + "teGlobalForwardingRuleRequest\032\".google.c" - + "loud.compute.v1.Operation\"|\332A\027project,fo" - + "rwarding_rule\212N\020GlobalOperations\202\323\344\223\002I*G" - + "/compute/v1/projects/{project}/global/fo" - + "rwardingRules/{forwarding_rule}\022\322\001\n\003Get\022" - + "7.google.cloud.compute.v1.GetGlobalForwa" - + "rdingRuleRequest\032\'.google.cloud.compute." - + "v1.ForwardingRule\"i\332A\027project,forwarding" - + "_rule\202\323\344\223\002I\022G/compute/v1/projects/{proje" - + "ct}/global/forwardingRules/{forwarding_r" - + "ule}\022\370\001\n\006Insert\022:.google.cloud.compute.v" - + "1.InsertGlobalForwardingRuleRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\215\001\332A pro" - + "ject,forwarding_rule_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002Q\"5/compute/v1/projects/{pr" - + "oject}/global/forwardingRules:\030forwardin" - + "g_rule_resource\022\267\001\n\004List\0229.google.cloud." - + "compute.v1.ListGlobalForwardingRulesRequ" - + "est\032+.google.cloud.compute.v1.Forwarding" - + "RuleList\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/" - + "projects/{project}/global/forwardingRule" - + "s\022\230\002\n\005Patch\0229.google.cloud.compute.v1.Pa" - + "tchGlobalForwardingRuleRequest\032\".google." - + "cloud.compute.v1.Operation\"\257\001\332A0project," - + "forwarding_rule,forwarding_rule_resource" - + "\212N\020GlobalOperations\202\323\344\223\002c2G/compute/v1/p" - + "rojects/{project}/global/forwardingRules" - + "/{forwarding_rule}:\030forwarding_rule_reso" - + "urce\022\260\002\n\tSetLabels\022=.google.cloud.comput" - + "e.v1.SetLabelsGlobalForwardingRuleReques" - + "t\032\".google.cloud.compute.v1.Operation\"\277\001" - + "\332A3project,resource,global_set_labels_re" - + "quest_resource\212N\020GlobalOperations\202\323\344\223\002p\"" - + "J/compute/v1/projects/{project}/global/f" - + "orwardingRules/{resource}/setLabels:\"glo" - + "bal_set_labels_request_resource\022\254\002\n\tSetT" - + "arget\022=.google.cloud.compute.v1.SetTarge" - + "tGlobalForwardingRuleRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\273\001\332A1project,fo" - + "rwarding_rule,target_reference_resource\212" - + "N\020GlobalOperations\202\323\344\223\002n\"Q/compute/v1/pr" - + "ojects/{project}/global/forwardingRules/" - + "{forwarding_rule}/setTarget:\031target_refe" - + "rence_resource\032\202\001\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform\212\324\333\322\017\n2026-09-012\201\005\n\035GlobalFr" - + "ontendSettingsService\022\300\001\n\003Get\0228.google.c" - + "loud.compute.v1.GetGlobalFrontendSetting" - + "Request\032/.google.cloud.compute.v1.Global" - + "FrontendSettings\"N\332A\007project\202\323\344\223\002>\022\022.google.cloud.co" + + "mpute.v1.AggregatedListGlobalOperationsR" + + "equest\0320.google.cloud.compute.v1.Operati" + + "onAggregatedList\"F\332A\007project\202\323\344\223\0026\0224/com" + + "pute/v1/projects/{project}/aggregated/op" + + "erations\022\321\001\n\006Delete\0225.google.cloud.compu" + + "te.v1.DeleteGlobalOperationRequest\0326.goo" + + "gle.cloud.compute.v1.DeleteGlobalOperati" + + "onResponse\"X\332A\021project,operation\202\323\344\223\002>*<" + + "/compute/v1/projects/{project}/global/op" + + "erations/{operation}\022\272\001\n\003Get\0222.google.cl" + + "oud.compute.v1.GetGlobalOperationRequest" + + "\032\".google.cloud.compute.v1.Operation\"[\332A" + + "\021project,operation\220N\001\202\323\344\223\002>\022.google.cloud.compute.v1.GetGlob" + + "alOrganizationOperationRequest\032\".google." + + "cloud.compute.v1.Operation\"J\332A\toperation" + + "\220N\001\202\323\344\223\0025\0223/compute/v1/locations/global/" + + "operations/{operation}\022\244\001\n\004List\022@.google" + + ".cloud.compute.v1.ListGlobalOrganization" + + "OperationsRequest\032&.google.cloud.compute" + + ".v1.OperationList\"2\332A\000\202\323\344\223\002)\022\'/compute/v" + + "1/locations/global/operations\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\342\013\n\035GlobalPublicDelegatedPrefixes\022\207\002\n" + + "\006Delete\022B.google.cloud.compute.v1.Delete" + + "GlobalPublicDelegatedPrefixeRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\224\001\332A\037pro" + + "ject,public_delegated_prefix\212N\020GlobalOpe" + + "rations\202\323\344\223\002Y*W/compute/v1/projects/{pro" + + "ject}/global/publicDelegatedPrefixes/{pu" + + "blic_delegated_prefix}\022\372\001\n\003Get\022?.google." + + "cloud.compute.v1.GetGlobalPublicDelegate" + + "dPrefixeRequest\032..google.cloud.compute.v" + + "1.PublicDelegatedPrefix\"\201\001\332A\037project,pub" + + "lic_delegated_prefix\202\323\344\223\002Y\022W/compute/v1/" + + "projects/{project}/global/publicDelegate" + + "dPrefixes/{public_delegated_prefix}\022\230\002\n\006" + + "Insert\022B.google.cloud.compute.v1.InsertG" + + "lobalPublicDelegatedPrefixeRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\245\001\332A(proj" + + "ect,public_delegated_prefix_resource\212N\020G" + + "lobalOperations\202\323\344\223\002a\"=/compute/v1/proje" + + "cts/{project}/global/publicDelegatedPref" + + "ixes: public_delegated_prefix_resource\022\316" + + "\001\n\004List\022A.google.cloud.compute.v1.ListGl" + + "obalPublicDelegatedPrefixesRequest\0322.goo" + + "gle.cloud.compute.v1.PublicDelegatedPref" + + "ixList\"O\332A\007project\202\323\344\223\002?\022=/compute/v1/pr" + + "ojects/{project}/global/publicDelegatedP" + + "refixes\022\310\002\n\005Patch\022A.google.cloud.compute" + + ".v1.PatchGlobalPublicDelegatedPrefixeReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\327\001\332A@project,public_delegated_prefix,pu" + + "blic_delegated_prefix_resource\212N\020GlobalO" + + "perations\202\323\344\223\002{2W/compute/v1/projects/{p" + + "roject}/global/publicDelegatedPrefixes/{" + + "public_delegated_prefix}: public_delegat" + + "ed_prefix_resource\032\202\001\312A\026compute.googleap" + "is.com\322AVhttps://www.googleapis.com/auth" + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform\212\324\333\322\017\n2026-09-012\275\022\n\033Glob" - + "alNetworkEndpointGroups\022\274\003\n\026AttachNetwor" - + "kEndpoints\022P.google.cloud.compute.v1.Att" - + "achNetworkEndpointsGlobalNetworkEndpoint" - + "GroupRequest\032\".google.cloud.compute.v1.O" - + "peration\"\253\002\332A_project,network_endpoint_g" - + "roup,global_network_endpoint_groups_atta" - + "ch_endpoints_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002\257\001\"k/compute/v1/projects/{p" - + "roject}/global/networkEndpointGroups/{ne" - + "twork_endpoint_group}/attachNetworkEndpo" - + "ints:@global_network_endpoint_groups_att" - + "ach_endpoints_request_resource\022\201\002\n\006Delet" - + "e\022@.google.cloud.compute.v1.DeleteGlobal" - + "NetworkEndpointGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\220\001\332A\036project,net" - + "work_endpoint_group\212N\020GlobalOperations\202\323" - + "\344\223\002V*T/compute/v1/projects/{project}/glo" - + "bal/networkEndpointGroups/{network_endpo" - + "int_group}\022\274\003\n\026DetachNetworkEndpoints\022P." - + "google.cloud.compute.v1.DetachNetworkEnd" - + "pointsGlobalNetworkEndpointGroupRequest\032" - + "\".google.cloud.compute.v1.Operation\"\253\002\332A" - + "_project,network_endpoint_group,global_n" - + "etwork_endpoint_groups_detach_endpoints_" - + "request_resource\212N\020GlobalOperations\202\323\344\223\002" - + "\257\001\"k/compute/v1/projects/{project}/globa" - + "l/networkEndpointGroups/{network_endpoin" - + "t_group}/detachNetworkEndpoints:@global_" - + "network_endpoint_groups_detach_endpoints" - + "_request_resource\022\362\001\n\003Get\022=.google.cloud" - + ".compute.v1.GetGlobalNetworkEndpointGrou" - + "pRequest\032-.google.cloud.compute.v1.Netwo" - + "rkEndpointGroup\"}\332A\036project,network_endp" - + "oint_group\202\323\344\223\002V\022T/compute/v1/projects/{" - + "project}/global/networkEndpointGroups/{n" - + "etwork_endpoint_group}\022\222\002\n\006Insert\022@.goog" - + "le.cloud.compute.v1.InsertGlobalNetworkE" - + "ndpointGroupRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\241\001\332A\'project,network_end" - + "point_group_resource\212N\020GlobalOperations\202" - + "\323\344\223\002^\";/compute/v1/projects/{project}/gl" - + "obal/networkEndpointGroups:\037network_endp" - + "oint_group_resource\022\311\001\n\004List\022?.google.cl" - + "oud.compute.v1.ListGlobalNetworkEndpoint" - + "GroupsRequest\0321.google.cloud.compute.v1." - + "NetworkEndpointGroupList\"M\332A\007project\202\323\344\223" - + "\002=\022;/compute/v1/projects/{project}/globa" - + "l/networkEndpointGroups\022\300\002\n\024ListNetworkE" - + "ndpoints\022O.google.cloud.compute.v1.ListN" - + "etworkEndpointsGlobalNetworkEndpointGrou" - + "psRequest\032B.google.cloud.compute.v1.Netw" - + "orkEndpointGroupsListNetworkEndpoints\"\222\001" - + "\332A\036project,network_endpoint_group\202\323\344\223\002k\"" - + "i/compute/v1/projects/{project}/global/n" - + "etworkEndpointGroups/{network_endpoint_g" - + "roup}/listNetworkEndpoints\032\202\001\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" - + "\341\010\n\020GlobalOperations\022\312\001\n\016AggregatedList\022" - + ">.google.cloud.compute.v1.AggregatedList" - + "GlobalOperationsRequest\0320.google.cloud.c" - + "ompute.v1.OperationAggregatedList\"F\332A\007pr" - + "oject\202\323\344\223\0026\0224/compute/v1/projects/{proje" - + "ct}/aggregated/operations\022\321\001\n\006Delete\0225.g" - + "oogle.cloud.compute.v1.DeleteGlobalOpera" - + "tionRequest\0326.google.cloud.compute.v1.De" - + "leteGlobalOperationResponse\"X\332A\021project," - + "operation\202\323\344\223\002>*\022.google.cloud.c" - + "ompute.v1.GetGlobalOrganizationOperation" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"J\332A\toperation\220N\001\202\323\344\223\0025\0223/compute/v1/" - + "locations/global/operations/{operation}\022" - + "\244\001\n\004List\022@.google.cloud.compute.v1.ListG" - + "lobalOrganizationOperationsRequest\032&.goo" - + "gle.cloud.compute.v1.OperationList\"2\332A\000\202" - + "\323\344\223\002)\022\'/compute/v1/locations/global/oper" - + "ations\032\202\001\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm\212\324\333\322\017\n2026-09-012\342\013\n\035GlobalPublicDele" - + "gatedPrefixes\022\207\002\n\006Delete\022B.google.cloud." - + "compute.v1.DeleteGlobalPublicDelegatedPr" - + "efixeRequest\032\".google.cloud.compute.v1.O" - + "peration\"\224\001\332A\037project,public_delegated_p" - + "refix\212N\020GlobalOperations\202\323\344\223\002Y*W/compute" - + "/v1/projects/{project}/global/publicDele" - + "gatedPrefixes/{public_delegated_prefix}\022" - + "\372\001\n\003Get\022?.google.cloud.compute.v1.GetGlo" - + "balPublicDelegatedPrefixeRequest\032..googl" - + "e.cloud.compute.v1.PublicDelegatedPrefix" - + "\"\201\001\332A\037project,public_delegated_prefix\202\323\344" - + "\223\002Y\022W/compute/v1/projects/{project}/glob" - + "al/publicDelegatedPrefixes/{public_deleg" - + "ated_prefix}\022\230\002\n\006Insert\022B.google.cloud.c" - + "ompute.v1.InsertGlobalPublicDelegatedPre" - + "fixeRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\245\001\332A(project,public_delegated_pr" - + "efix_resource\212N\020GlobalOperations\202\323\344\223\002a\"=" - + "/compute/v1/projects/{project}/global/pu" - + "blicDelegatedPrefixes: public_delegated_" - + "prefix_resource\022\316\001\n\004List\022A.google.cloud." - + "compute.v1.ListGlobalPublicDelegatedPref" - + "ixesRequest\0322.google.cloud.compute.v1.Pu" - + "blicDelegatedPrefixList\"O\332A\007project\202\323\344\223\002" - + "?\022=/compute/v1/projects/{project}/global" - + "/publicDelegatedPrefixes\022\310\002\n\005Patch\022A.goo" - + "gle.cloud.compute.v1.PatchGlobalPublicDe" - + "legatedPrefixeRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\327\001\332A@project,public_de" - + "legated_prefix,public_delegated_prefix_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002{2W/compu" - + "te/v1/projects/{project}/global/publicDe" - + "legatedPrefixes/{public_delegated_prefix" - + "}: public_delegated_prefix_resource\032\202\001\312A" - + "\026compute.googleapis.com\322AVhttps://www.go" - + "ogleapis.com/auth/compute,https://www.go" - + "ogleapis.com/auth/cloud-platform\212\324\333\322\017\n20" - + "26-09-012\326\016\n\031GlobalVmExtensionPolicies\022\354" - + "\001\n\016AggregatedList\022G.google.cloud.compute" - + ".v1.AggregatedListGlobalVmExtensionPolic" - + "iesRequest\032@.google.cloud.compute.v1.VmE" - + "xtensionPolicyAggregatedListResponse\"O\332A" - + "\007project\202\323\344\223\002?\022=/compute/v1/projects/{pr" - + "oject}/aggregated/vmExtensionPolicies\022\225\003" - + "\n\006Delete\022=.google.cloud.compute.v1.Delet" - + "eGlobalVmExtensionPolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\247\002\332Afproject" - + ",global_vm_extension_policy,global_vm_ex" - + "tension_policy_rollout_operation_rollout" - + "_input_resource\212N\020GlobalOperations\202\323\344\223\002\244" - + "\001\"]/compute/v1/projects/{project}/global" - + "/vmExtensionPolicies/{global_vm_extensio" - + "n_policy}/delete:Cglobal_vm_extension_po" - + "licy_rollout_operation_rollout_input_res" - + "ource\022\371\001\n\003Get\022:.google.cloud.compute.v1." - + "GetGlobalVmExtensionPolicyRequest\0320.goog" - + "le.cloud.compute.v1.GlobalVmExtensionPol" - + "icy\"\203\001\332A\"project,global_vm_extension_pol" - + "icy\202\323\344\223\002X\022V/compute/v1/projects/{project" - + "}/global/vmExtensionPolicies/{global_vm_" - + "extension_policy}\022\225\002\n\006Insert\022=.google.cl" - + "oud.compute.v1.InsertGlobalVmExtensionPo" - + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\247\001\332A+project,global_vm_extension" - + "_policy_resource\212N\020GlobalOperations\202\323\344\223\002" - + "`\"9/compute/v1/projects/{project}/global" - + "/vmExtensionPolicies:#global_vm_extensio" - + "n_policy_resource\022\310\001\n\004List\022=.google.clou" - + "d.compute.v1.ListGlobalVmExtensionPolici" - + "esRequest\0324.google.cloud.compute.v1.Glob" - + "alVmExtensionPolicyList\"K\332A\007project\202\323\344\223\002" - + ";\0229/compute/v1/projects/{project}/global" - + "/vmExtensionPolicies\022\315\002\n\006Update\022=.google" - + ".cloud.compute.v1.UpdateGlobalVmExtensio" - + "nPolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\337\001\332AFproject,global_vm_extens" - + "ion_policy,global_vm_extension_policy_re" - + "source\212N\020GlobalOperations\202\323\344\223\002}2V/comput" - + "e/v1/projects/{project}/global/vmExtensi" - + "onPolicies/{global_vm_extension_policy}:" - + "#global_vm_extension_policy_resource\032\202\001\312" + + "-012\313\004\n\nImageViews\022\306\001\n\003Get\022,.google.clou" + + "d.compute.v1.GetImageViewRequest\032\".googl" + + "e.cloud.compute.v1.ImageView\"m\332A\032project" + + ",region,resource_id\202\323\344\223\002J\022H/compute/v1/p" + + "rojects/{project}/regions/{region}/image" + + "Views/{resource_id}\022\274\001\n\004List\022..google.cl" + + "oud.compute.v1.ListImageViewsRequest\032/.g" + + "oogle.cloud.compute.v1.ImageViewsListRes" + + "ponse\"S\332A\016project,region\202\323\344\223\002<\022:/compute" + + "/v1/projects/{project}/regions/{region}/" + + "imageViews\032\264\001\312A\026compute.googleapis.com\322A" + + "\207\001https://www.googleapis.com/auth/comput" + + "e.readonly,https://www.googleapis.com/au" + + "th/compute,https://www.googleapis.com/au" + + "th/cloud-platform\212\324\333\322\017\n2026-09-012\215\024\n\006Im" + + "ages\022\272\001\n\006Delete\022+.google.cloud.compute.v" + + "1.DeleteImageRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"_\332A\rproject,image\212N\020Glo" + + "balOperations\202\323\344\223\0026*4/compute/v1/project" + + "s/{project}/global/images/{image}\022\204\002\n\tDe" + + "precate\022..google.cloud.compute.v1.Deprec" + + "ateImageRequest\032\".google.cloud.compute.v" + + "1.Operation\"\242\001\332A)project,image,deprecati" + + "on_status_resource\212N\020GlobalOperations\202\323\344" + + "\223\002]\">/compute/v1/projects/{project}/glob" + + "al/images/{image}/deprecate:\033deprecation" + + "_status_resource\022\235\001\n\003Get\022(.google.cloud." + + "compute.v1.GetImageRequest\032\036.google.clou" + + "d.compute.v1.Image\"L\332A\rproject,image\202\323\344\223" + + "\0026\0224/compute/v1/projects/{project}/globa" + + "l/images/{image}\022\272\001\n\rGetFromFamily\0222.goo" + + "gle.cloud.compute.v1.GetFromFamilyImageR" + + "equest\032\036.google.cloud.compute.v1.Image\"U" + + "\332A\016project,family\202\323\344\223\002>\022\",/compute/v1" + + "/projects/{project}/global/images:\016image" + + "_resource\022\226\001\n\004List\022*.google.cloud.comput" + + "e.v1.ListImagesRequest\032\".google.cloud.co" + + "mpute.v1.ImageList\">\332A\007project\202\323\344\223\002.\022,/c" + + "ompute/v1/projects/{project}/global/imag" + + "es\022\327\001\n\005Patch\022*.google.cloud.compute.v1.P" + + "atchImageRequest\032\".google.cloud.compute." + + "v1.Operation\"~\332A\034project,image,image_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002F24/compute" + + "/v1/projects/{project}/global/images/{im" + + "age}:\016image_resource\022\213\002\n\014SetIamPolicy\0221." + + "google.cloud.compute.v1.SetIamPolicyImag" + + "eRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"\246\001\332A3project,resource,global_set_polic" + + "y_request_resource\202\323\344\223\002j\"D/compute/v1/pr" + + "ojects/{project}/global/images/{resource" + + "}/setIamPolicy:\"global_set_policy_reques" + + "t_resource\022\230\002\n\tSetLabels\022..google.cloud." + + "compute.v1.SetLabelsImageRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\266\001\332A3projec" + + "t,resource,global_set_labels_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002g\"A/compute" + + "/v1/projects/{project}/global/images/{re" + + "source}/setLabels:\"global_set_labels_req" + + "uest_resource\022\254\002\n\022TestIamPermissions\0227.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sImageRequest\0320.google.cloud.compute.v1." + + "TestPermissionsResponse\"\252\001\332A2project,res" + + "ource,test_permissions_request_resource\202" + + "\323\344\223\002o\"J/compute/v1/projects/{project}/gl" + + "obal/images/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\032\202\001\312" + "A\026compute.googleapis.com\322AVhttps://www.g" + "oogleapis.com/auth/compute,https://www.g" + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" - + "026-09-012\317\017\n\014HealthChecks\022\313\001\n\016Aggregate" - + "dList\022:.google.cloud.compute.v1.Aggregat" - + "edListHealthChecksRequest\0323.google.cloud" - + ".compute.v1.HealthChecksAggregatedList\"H" - + "\332A\007project\202\323\344\223\0028\0226/compute/v1/projects/{" - + "project}/aggregated/healthChecks\022\324\001\n\006Del" - + "ete\0221.google.cloud.compute.v1.DeleteHeal" - + "thCheckRequest\032\".google.cloud.compute.v1" - + ".Operation\"s\332A\024project,health_check\212N\020Gl" - + "obalOperations\202\323\344\223\002C*A/compute/v1/projec" - + "ts/{project}/global/healthChecks/{health" - + "_check}\022\275\001\n\003Get\022..google.cloud.compute.v" - + "1.GetHealthCheckRequest\032$.google.cloud.c" - + "ompute.v1.HealthCheck\"`\332A\024project,health" - + "_check\202\323\344\223\002C\022A/compute/v1/projects/{proj" - + "ect}/global/healthChecks/{health_check}\022" - + "\346\001\n\006Insert\0221.google.cloud.compute.v1.Ins" - + "ertHealthCheckRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\204\001\332A\035project,health_ch" - + "eck_resource\212N\020GlobalOperations\202\323\344\223\002K\"2/" - + "compute/v1/projects/{project}/global/hea" - + "lthChecks:\025health_check_resource\022\250\001\n\004Lis" - + "t\0220.google.cloud.compute.v1.ListHealthCh" - + "ecksRequest\032(.google.cloud.compute.v1.He" - + "althCheckList\"D\332A\007project\202\323\344\223\0024\0222/comput" - + "e/v1/projects/{project}/global/healthChe" - + "cks\022\200\002\n\005Patch\0220.google.cloud.compute.v1." - + "PatchHealthCheckRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\240\001\332A*project,health_" - + "check,health_check_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002Z2A/compute/v1/projects/{proj" - + "ect}/global/healthChecks/{health_check}:" - + "\025health_check_resource\022\270\002\n\022TestIamPermis" - + "sions\022=.google.cloud.compute.v1.TestIamP" - + "ermissionsHealthCheckRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\260" - + "\001\332A2project,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002u\"P/compute/v1/projec" - + "ts/{project}/global/healthChecks/{resour" - + "ce}/testIamPermissions:!test_permissions" - + "_request_resource\022\202\002\n\006Update\0221.google.cl" - + "oud.compute.v1.UpdateHealthCheckRequest\032" - + "\".google.cloud.compute.v1.Operation\"\240\001\332A" - + "*project,health_check,health_check_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002Z\032A/compute/v" - + "1/projects/{project}/global/healthChecks" - + "/{health_check}:\025health_check_resource\032\202" - + "\001\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" - + "\n2026-09-012\307\006\n\005Hosts\022\275\001\n\003Get\022\'.google.c" - + "loud.compute.v1.GetHostRequest\032\035.google." - + "cloud.compute.v1.Host\"n\332A\035project,zone,a" - + "ssociation,host\202\323\344\223\002H\022F/compute/v1/proje" - + "cts/{project}/zones/{zone}/{association}" - + "/hosts/{host}\022\264\002\n\nGetVersion\022..google.cl" - + "oud.compute.v1.GetVersionHostRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\321\001\332A@pr" - + "oject,zone,association,host,hosts_get_ve" - + "rsion_request_resource\212N\016ZoneOperations\202" - + "\323\344\223\002w\"Q/compute/v1/projects/{project}/zo" - + "nes/{zone}/{association}/hosts/{host}/ge" - + "tVersion:\"hosts_get_version_request_reso" - + "urce\022\301\001\n\004List\022).google.cloud.compute.v1." - + "ListHostsRequest\032*.google.cloud.compute." - + "v1.HostsListResponse\"b\332A\030project,zone,as" - + "sociation\202\323\344\223\002A\022?/compute/v1/projects/{p" - + "roject}/zones/{zone}/{association}/hosts" - + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" - + "ww.googleapis.com/auth/compute,https://w", - "ww.googleapis.com/auth/cloud-platform\212\324\333" - + "\322\017\n2026-09-012\224\003\n\020ImageFamilyViews\022\310\001\n\003G" - + "et\0222.google.cloud.compute.v1.GetImageFam" - + "ilyViewRequest\032(.google.cloud.compute.v1" - + ".ImageFamilyView\"c\332A\023project,zone,family" - + "\202\323\344\223\002G\022E/compute/v1/projects/{project}/z" - + "ones/{zone}/imageFamilyViews/{family}\032\264\001" - + "\312A\026compute.googleapis.com\322A\207\001https://www" - + ".googleapis.com/auth/compute.readonly,ht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form\212\324\333\322\017\n2026-09-012\313\004\n\nImageViews\022\306\001\n\003" - + "Get\022,.google.cloud.compute.v1.GetImageVi" - + "ewRequest\032\".google.cloud.compute.v1.Imag" - + "eView\"m\332A\032project,region,resource_id\202\323\344\223" - + "\002J\022H/compute/v1/projects/{project}/regio" - + "ns/{region}/imageViews/{resource_id}\022\274\001\n" - + "\004List\022..google.cloud.compute.v1.ListImag" - + "eViewsRequest\032/.google.cloud.compute.v1." - + "ImageViewsListResponse\"S\332A\016project,regio" - + "n\202\323\344\223\002<\022:/compute/v1/projects/{project}/" - + "regions/{region}/imageViews\032\264\001\312A\026compute" - + ".googleapis.com\322A\207\001https://www.googleapi" - + "s.com/auth/compute.readonly,https://www." - + "googleapis.com/auth/compute,https://www." - + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" - + "2026-09-012\215\024\n\006Images\022\272\001\n\006Delete\022+.googl" - + "e.cloud.compute.v1.DeleteImageRequest\032\"." - + "google.cloud.compute.v1.Operation\"_\332A\rpr" - + "oject,image\212N\020GlobalOperations\202\323\344\223\0026*4/c" - + "ompute/v1/projects/{project}/global/imag" - + "es/{image}\022\204\002\n\tDeprecate\022..google.cloud." - + "compute.v1.DeprecateImageRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\242\001\332A)projec" - + "t,image,deprecation_status_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002]\">/compute/v1/projec" - + "ts/{project}/global/images/{image}/depre" - + "cate:\033deprecation_status_resource\022\235\001\n\003Ge" - + "t\022(.google.cloud.compute.v1.GetImageRequ" - + "est\032\036.google.cloud.compute.v1.Image\"L\332A\r" - + "project,image\202\323\344\223\0026\0224/compute/v1/project" - + "s/{project}/global/images/{image}\022\272\001\n\rGe" - + "tFromFamily\0222.google.cloud.compute.v1.Ge" - + "tFromFamilyImageRequest\032\036.google.cloud.c" - + "ompute.v1.Image\"U\332A\016project,family\202\323\344\223\002>" - + "\022\",/compute/v1/projects/{project}/glo" - + "bal/images:\016image_resource\022\226\001\n\004List\022*.go" - + "ogle.cloud.compute.v1.ListImagesRequest\032" - + "\".google.cloud.compute.v1.ImageList\">\332A\007" - + "project\202\323\344\223\002.\022,/compute/v1/projects/{pro" - + "ject}/global/images\022\327\001\n\005Patch\022*.google.c" - + "loud.compute.v1.PatchImageRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"~\332A\034projec" - + "t,image,image_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002F24/compute/v1/projects/{project}/" - + "global/images/{image}:\016image_resource\022\213\002" - + "\n\014SetIamPolicy\0221.google.cloud.compute.v1" - + ".SetIamPolicyImageRequest\032\037.google.cloud" - + ".compute.v1.Policy\"\246\001\332A3project,resource" - + ",global_set_policy_request_resource\202\323\344\223\002" - + "j\"D/compute/v1/projects/{project}/global" - + "/images/{resource}/setIamPolicy:\"global_" - + "set_policy_request_resource\022\230\002\n\tSetLabel" - + "s\022..google.cloud.compute.v1.SetLabelsIma" - + "geRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\266\001\332A3project,resource,global_set_l" - + "abels_request_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002g\"A/compute/v1/projects/{project}/" - + "global/images/{resource}/setLabels:\"glob" - + "al_set_labels_request_resource\022\254\002\n\022TestI" - + "amPermissions\0227.google.cloud.compute.v1." - + "TestIamPermissionsImageRequest\0320.google." - + "cloud.compute.v1.TestPermissionsResponse" - + "\"\252\001\332A2project,resource,test_permissions_" - + "request_resource\202\323\344\223\002o\"J/compute/v1/proj" - + "ects/{project}/global/images/{resource}/" - + "testIamPermissions:!test_permissions_req" - + "uest_resource\032\202\001\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform\212\324\333\322\017\n2026-09-012\263\016\n\"InstanceG" - + "roupManagerResizeRequests\022\311\002\n\006Cancel\022G.g" - + "oogle.cloud.compute.v1.CancelInstanceGro" - + "upManagerResizeRequestRequest\032\".google.c" - + "loud.compute.v1.Operation\"\321\001\332A2project,z" - + "one,instance_group_manager,resize_reques" - + "t\212N\016ZoneOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/" + + "026-09-012\263\016\n\"InstanceGroupManagerResize" + + "Requests\022\311\002\n\006Cancel\022G.google.cloud.compu" + + "te.v1.CancelInstanceGroupManagerResizeRe" + + "questRequest\032\".google.cloud.compute.v1.O" + + "peration\"\321\001\332A2project,zone,instance_grou" + + "p_manager,resize_request\212N\016ZoneOperation" + + "s\202\323\344\223\002\204\001\"\201\001/compute/v1/projects/{project" + + "}/zones/{zone}/instanceGroupManagers/{in" + + "stance_group_manager}/resizeRequests/{re" + + "size_request}/cancel\022\300\002\n\006Delete\022G.google" + + ".cloud.compute.v1.DeleteInstanceGroupMan" + + "agerResizeRequestRequest\032\".google.cloud." + + "compute.v1.Operation\"\310\001\332A2project,zone,i" + + "nstance_group_manager,resize_request\212N\016Z" + + "oneOperations\202\323\344\223\002|*z/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/resizeRe" + + "quests/{resize_request}\022\301\002\n\003Get\022D.google" + + ".cloud.compute.v1.GetInstanceGroupManage" + + "rResizeRequestRequest\032:.google.cloud.com" + + "pute.v1.InstanceGroupManagerResizeReques" + + "t\"\267\001\332A2project,zone,instance_group_manag" + + "er,resize_request\202\323\344\223\002|\022z/compute/v1/pro" + + "jects/{project}/zones/{zone}/instanceGro" + + "upManagers/{instance_group_manager}/resi" + + "zeRequests/{resize_request}\022\200\003\n\006Insert\022G" + + ".google.cloud.compute.v1.InsertInstanceG" + + "roupManagerResizeRequestRequest\032\".google" + + ".cloud.compute.v1.Operation\"\210\002\332ARproject" + + ",zone,instance_group_manager,instance_gr" + + "oup_manager_resize_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\233\001\"i/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/resizeRe" + + "quests:.instance_group_manager_resize_re" + + "quest_resource\022\261\002\n\004List\022F.google.cloud.c" + + "ompute.v1.ListInstanceGroupManagerResize" + + "RequestsRequest\032G.google.cloud.compute.v" + + "1.InstanceGroupManagerResizeRequestsList" + + "Response\"\227\001\332A#project,zone,instance_grou" + + "p_manager\202\323\344\223\002k\022i/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroupManage" + + "rs/{instance_group_manager}/resizeReques" + + "ts\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\346E\n\025InstanceGroupManager" + + "s\022\241\003\n\020AbandonInstances\022D.google.cloud.co" + + "mpute.v1.AbandonInstancesInstanceGroupMa" + + "nagerRequest\032\".google.cloud.compute.v1.O" + + "peration\"\242\002\332A^project,zone,instance_grou" + + "p_manager,instance_group_managers_abando" + + "n_instances_request_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\251\001\"k/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroupManagers/" + + "{instance_group_manager}/abandonInstance" + + "s::instance_group_managers_abandon_insta" + + "nces_request_resource\022\345\001\n\016AggregatedList" + + "\022C.google.cloud.compute.v1.AggregatedLis" + + "tInstanceGroupManagersRequest\032;.google.c" + + "loud.compute.v1.InstanceGroupManagerAggr" + + "egatedList\"Q\332A\007project\202\323\344\223\002A\022?/compute/v" + + "1/projects/{project}/aggregated/instance" + + "GroupManagers\022\256\003\n\027ApplyUpdatesToInstance" + + "s\022K.google.cloud.compute.v1.ApplyUpdates" + + "ToInstancesInstanceGroupManagerRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\241\002\332AZ" + + "project,zone,instance_group_manager,inst" + + "ance_group_managers_apply_updates_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}/applyUpdatesToInstances:6instance" + + "_group_managers_apply_updates_request_re" + + "source\022\234\003\n\017CreateInstances\022C.google.clou" + + "d.compute.v1.CreateInstancesInstanceGrou" + + "pManagerRequest\032\".google.cloud.compute.v" + + "1.Operation\"\237\002\332A]project,zone,instance_g" + + "roup_manager,instance_group_managers_cre" + + "ate_instances_request_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002\247\001\"j/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroupManager" + + "s/{instance_group_manager}/createInstanc" + + "es:9instance_group_managers_create_insta" + + "nces_request_resource\022\204\002\n\006Delete\022:.googl" + + "e.cloud.compute.v1.DeleteInstanceGroupMa" + + "nagerRequest\032\".google.cloud.compute.v1.O" + + "peration\"\231\001\332A#project,zone,instance_grou" + + "p_manager\212N\016ZoneOperations\202\323\344\223\002\\*Z/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stanceGroupManagers/{instance_group_mana" + + "ger}\022\234\003\n\017DeleteInstances\022C.google.cloud." + + "compute.v1.DeleteInstancesInstanceGroupM" + + "anagerRequest\032\".google.cloud.compute.v1." + + "Operation\"\237\002\332A]project,zone,instance_gro" + + "up_manager,instance_group_managers_delet" + + "e_instances_request_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\247\001\"j/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroupManagers/" + + "{instance_group_manager}/deleteInstances" + + ":9instance_group_managers_delete_instanc" + + "es_request_resource\022\305\003\n\030DeletePerInstanc" + + "eConfigs\022L.google.cloud.compute.v1.Delet" + + "ePerInstanceConfigsInstanceGroupManagerR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\266\002\332Adproject,zone,instance_group_mana" + + "ger,instance_group_managers_delete_per_i" + + "nstance_configs_req_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\267\001\"s/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroupManagers/" + + "{instance_group_manager}/deletePerInstan" + + "ceConfigs:@instance_group_managers_delet" + + "e_per_instance_configs_req_resource\022\370\001\n\003" + + "Get\0227.google.cloud.compute.v1.GetInstanc" + + "eGroupManagerRequest\032-.google.cloud.comp" + + "ute.v1.InstanceGroupManager\"\210\001\332A#project" + + ",zone,instance_group_manager\202\323\344\223\002\\\022Z/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}\022\225\002\n\006Insert\022:.google.cloud.compute" + + ".v1.InsertInstanceGroupManagerRequest\032\"." + + "google.cloud.compute.v1.Operation\"\252\001\332A,p" + + "roject,zone,instance_group_manager_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002d\"A/compute/v1/" + "projects/{project}/zones/{zone}/instance" - + "GroupManagers/{instance_group_manager}/r" - + "esizeRequests/{resize_request}/cancel\022\300\002" - + "\n\006Delete\022G.google.cloud.compute.v1.Delet" - + "eInstanceGroupManagerResizeRequestReques" - + "t\032\".google.cloud.compute.v1.Operation\"\310\001" - + "\332A2project,zone,instance_group_manager,r" - + "esize_request\212N\016ZoneOperations\202\323\344\223\002|*z/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instanceGroupManagers/{instance_group_" - + "manager}/resizeRequests/{resize_request}" - + "\022\301\002\n\003Get\022D.google.cloud.compute.v1.GetIn" - + "stanceGroupManagerResizeRequestRequest\032:" - + ".google.cloud.compute.v1.InstanceGroupMa" - + "nagerResizeRequest\"\267\001\332A2project,zone,ins" - + "tance_group_manager,resize_request\202\323\344\223\002|" - + "\022z/compute/v1/projects/{project}/zones/{" - + "zone}/instanceGroupManagers/{instance_gr" - + "oup_manager}/resizeRequests/{resize_requ" - + "est}\022\200\003\n\006Insert\022G.google.cloud.compute.v" - + "1.InsertInstanceGroupManagerResizeReques" - + "tRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\210\002\332ARproject,zone,instance_group_ma" - + "nager,instance_group_manager_resize_requ" - + "est_resource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instanceGroupManagers/{instance_group_" - + "manager}/resizeRequests:.instance_group_" - + "manager_resize_request_resource\022\261\002\n\004List" - + "\022F.google.cloud.compute.v1.ListInstanceG" - + "roupManagerResizeRequestsRequest\032G.googl" - + "e.cloud.compute.v1.InstanceGroupManagerR" - + "esizeRequestsListResponse\"\227\001\332A#project,z" - + "one,instance_group_manager\202\323\344\223\002k\022i/compu" + + "GroupManagers:\037instance_group_manager_re" + + "source\022\316\001\n\004List\0229.google.cloud.compute.v" + + "1.ListInstanceGroupManagersRequest\0321.goo" + + "gle.cloud.compute.v1.InstanceGroupManage" + + "rList\"X\332A\014project,zone\202\323\344\223\002C\022A/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers\022\245\002\n\nListErrors\022?.google." + + "cloud.compute.v1.ListErrorsInstanceGroup" + + "ManagersRequest\032@.google.cloud.compute.v" + + "1.InstanceGroupManagersListErrorsRespons" + + "e\"\223\001\332A#project,zone,instance_group_manag" + + "er\202\323\344\223\002g\022e/compute/v1/projects/{project}" + + "/zones/{zone}/instanceGroupManagers/{ins" + + "tance_group_manager}/listErrors\022\315\002\n\024List" + + "ManagedInstances\022I.google.cloud.compute." + + "v1.ListManagedInstancesInstanceGroupMana" + + "gersRequest\032J.google.cloud.compute.v1.In" + + "stanceGroupManagersListManagedInstancesR" + + "esponse\"\235\001\332A#project,zone,instance_group" + + "_manager\202\323\344\223\002q\"o/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroupManager" + + "s/{instance_group_manager}/listManagedIn" + + "stances\022\321\002\n\026ListPerInstanceConfigs\022K.goo" + + "gle.cloud.compute.v1.ListPerInstanceConf" + + "igsInstanceGroupManagersRequest\032H.google" + + ".cloud.compute.v1.InstanceGroupManagersL" + + "istPerInstanceConfigsResp\"\237\001\332A#project,z" + + "one,instance_group_manager\202\323\344\223\002s\"q/compu" + "te/v1/projects/{project}/zones/{zone}/in" + "stanceGroupManagers/{instance_group_mana" - + "ger}/resizeRequests\032\202\001\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\346E\n\025Ins" - + "tanceGroupManagers\022\241\003\n\020AbandonInstances\022" - + "D.google.cloud.compute.v1.AbandonInstanc" - + "esInstanceGroupManagerRequest\032\".google.c" - + "loud.compute.v1.Operation\"\242\002\332A^project,z" - + "one,instance_group_manager,instance_grou" - + "p_managers_abandon_instances_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}/abandonInstances::instance_group_manag" - + "ers_abandon_instances_request_resource\022\345" - + "\001\n\016AggregatedList\022C.google.cloud.compute" - + ".v1.AggregatedListInstanceGroupManagersR" - + "equest\032;.google.cloud.compute.v1.Instanc" - + "eGroupManagerAggregatedList\"Q\332A\007project\202" - + "\323\344\223\002A\022?/compute/v1/projects/{project}/ag" - + "gregated/instanceGroupManagers\022\256\003\n\027Apply" - + "UpdatesToInstances\022K.google.cloud.comput" - + "e.v1.ApplyUpdatesToInstancesInstanceGrou" + + "ger}/listPerInstanceConfigs\022\303\002\n\005Patch\0229." + + "google.cloud.compute.v1.PatchInstanceGro" + + "upManagerRequest\032\".google.cloud.compute." + + "v1.Operation\"\332\001\332ACproject,zone,instance_" + + "group_manager,instance_group_manager_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002}2Z/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers/{instance_group_manager}" + + ":\037instance_group_manager_resource\022\300\003\n\027Pa" + + "tchPerInstanceConfigs\022K.google.cloud.com" + + "pute.v1.PatchPerInstanceConfigsInstanceG" + + "roupManagerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\263\002\332Acproject,zone,instanc" + + "e_group_manager,instance_group_managers_" + + "patch_per_instance_configs_req_resource\212" + + "N\016ZoneOperations\202\323\344\223\002\265\001\"r/compute/v1/pro" + + "jects/{project}/zones/{zone}/instanceGro" + + "upManagers/{instance_group_manager}/patc" + + "hPerInstanceConfigs:?instance_group_mana" + + "gers_patch_per_instance_configs_req_reso" + + "urce\022\246\003\n\021RecreateInstances\022E.google.clou" + + "d.compute.v1.RecreateInstancesInstanceGr" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\245\002\332A_project,zone,instance" + + "_group_manager,instance_group_managers_r" + + "ecreate_instances_request_resource\212N\016Zon" + + "eOperations\202\323\344\223\002\253\001\"l/compute/v1/projects" + + "/{project}/zones/{zone}/instanceGroupMan" + + "agers/{instance_group_manager}/recreateI" + + "nstances:;instance_group_managers_recrea" + + "te_instances_request_resource\022\220\002\n\006Resize" + + "\022:.google.cloud.compute.v1.ResizeInstanc" + + "eGroupManagerRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\245\001\332A(project,zone,insta" + + "nce_group_manager,size\212N\016ZoneOperations\202" + + "\323\344\223\002c\"a/compute/v1/projects/{project}/zo" + + "nes/{zone}/instanceGroupManagers/{instan" + + "ce_group_manager}/resize\022\234\003\n\017ResumeInsta" + + "nces\022C.google.cloud.compute.v1.ResumeIns" + + "tancesInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\237\002\332A]proje" + + "ct,zone,instance_group_manager,instance_" + + "group_managers_resume_instances_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stanceGroupManagers/{instance_group_mana" + + "ger}/resumeInstances:9instance_group_man" + + "agers_resume_instances_request_resource\022" + + "\262\003\n\023SetInstanceTemplate\022G.google.cloud.c" + + "ompute.v1.SetInstanceTemplateInstanceGro" + + "upManagerRequest\032\".google.cloud.compute." + + "v1.Operation\"\255\002\332Abproject,zone,instance_" + + "group_manager,instance_group_managers_se" + + "t_instance_template_request_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\260\001\"n/compute/v1/projec" + + "ts/{project}/zones/{zone}/instanceGroupM" + + "anagers/{instance_group_manager}/setInst" + + "anceTemplate:>instance_group_managers_se" + + "t_instance_template_request_resource\022\231\003\n" + + "\016SetTargetPools\022B.google.cloud.compute.v" + + "1.SetTargetPoolsInstanceGroupManagerRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\236\002\332A]project,zone,instance_group_manager" + + ",instance_group_managers_set_target_pool" + + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\246\001\"i/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/setTargetPools:9instance_" + + "group_managers_set_target_pools_request_" + + "resource\022\227\003\n\016StartInstances\022B.google.clo" + + "ud.compute.v1.StartInstancesInstanceGrou" + "pManagerRequest\032\".google.cloud.compute.v" - + "1.Operation\"\241\002\332AZproject,zone,instance_g" - + "roup_manager,instance_group_managers_app" - + "ly_updates_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\254\001\"r/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}/applyUpdatesToIn" - + "stances:6instance_group_managers_apply_u" - + "pdates_request_resource\022\234\003\n\017CreateInstan" - + "ces\022C.google.cloud.compute.v1.CreateInst" - + "ancesInstanceGroupManagerRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\237\002\332A]projec" - + "t,zone,instance_group_manager,instance_g" - + "roup_managers_create_instances_request_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}/createInstances:9instance_group_mana" - + "gers_create_instances_request_resource\022\204" - + "\002\n\006Delete\022:.google.cloud.compute.v1.Dele" - + "teInstanceGroupManagerRequest\032\".google.c" - + "loud.compute.v1.Operation\"\231\001\332A#project,z" - + "one,instance_group_manager\212N\016ZoneOperati" - + "ons\202\323\344\223\002\\*Z/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}\022\234\003\n\017DeleteInstance" - + "s\022C.google.cloud.compute.v1.DeleteInstan" - + "cesInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\237\002\332A]project," - + "zone,instance_group_manager,instance_gro" - + "up_managers_delete_instances_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}/deleteInstances:9instance_group_manage" - + "rs_delete_instances_request_resource\022\305\003\n" - + "\030DeletePerInstanceConfigs\022L.google.cloud" - + ".compute.v1.DeletePerInstanceConfigsInst" + + "1.Operation\"\234\002\332A\\project,zone,instance_g" + + "roup_manager,instance_group_managers_sta" + + "rt_instances_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\245\001\"i/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroupManagers" + + "/{instance_group_manager}/startInstances" + + ":8instance_group_managers_start_instance" + + "s_request_resource\022\222\003\n\rStopInstances\022A.g" + + "oogle.cloud.compute.v1.StopInstancesInst" + "anceGroupManagerRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\266\002\332Adproject,zone,in" + + "ompute.v1.Operation\"\231\002\332A[project,zone,in" + "stance_group_manager,instance_group_mana" - + "gers_delete_per_instance_configs_req_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}/deletePerInstanceConfigs:@instance_gro" - + "up_managers_delete_per_instance_configs_" - + "req_resource\022\370\001\n\003Get\0227.google.cloud.comp" - + "ute.v1.GetInstanceGroupManagerRequest\032-." - + "google.cloud.compute.v1.InstanceGroupMan" - + "ager\"\210\001\332A#project,zone,instance_group_ma" - + "nager\202\323\344\223\002\\\022Z/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}\022\225\002\n\006Insert\022:.goo" - + "gle.cloud.compute.v1.InsertInstanceGroup" - + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\252\001\332A,project,zone,instance_gr" - + "oup_manager_resource\212N\016ZoneOperations\202\323\344" - + "\223\002d\"A/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroupManagers:\037instance" - + "_group_manager_resource\022\316\001\n\004List\0229.googl" - + "e.cloud.compute.v1.ListInstanceGroupMana" - + "gersRequest\0321.google.cloud.compute.v1.In" - + "stanceGroupManagerList\"X\332A\014project,zone\202" - + "\323\344\223\002C\022A/compute/v1/projects/{project}/zo" - + "nes/{zone}/instanceGroupManagers\022\245\002\n\nLis" - + "tErrors\022?.google.cloud.compute.v1.ListEr" - + "rorsInstanceGroupManagersRequest\032@.googl" - + "e.cloud.compute.v1.InstanceGroupManagers" - + "ListErrorsResponse\"\223\001\332A#project,zone,ins" - + "tance_group_manager\202\323\344\223\002g\022e/compute/v1/p" - + "rojects/{project}/zones/{zone}/instanceG" - + "roupManagers/{instance_group_manager}/li" - + "stErrors\022\315\002\n\024ListManagedInstances\022I.goog" - + "le.cloud.compute.v1.ListManagedInstances" - + "InstanceGroupManagersRequest\032J.google.cl" - + "oud.compute.v1.InstanceGroupManagersList" - + "ManagedInstancesResponse\"\235\001\332A#project,zo" - + "ne,instance_group_manager\202\323\344\223\002q\"o/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}/listManagedInstances\022\321\002\n\026ListPerInst" - + "anceConfigs\022K.google.cloud.compute.v1.Li" - + "stPerInstanceConfigsInstanceGroupManager" - + "sRequest\032H.google.cloud.compute.v1.Insta" - + "nceGroupManagersListPerInstanceConfigsRe" - + "sp\"\237\001\332A#project,zone,instance_group_mana" - + "ger\202\323\344\223\002s\"q/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/listPerInstanceCon" - + "figs\022\303\002\n\005Patch\0229.google.cloud.compute.v1" - + ".PatchInstanceGroupManagerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\332\001\332ACproje" - + "ct,zone,instance_group_manager,instance_" - + "group_manager_resource\212N\016ZoneOperations\202" - + "\323\344\223\002}2Z/compute/v1/projects/{project}/zo" - + "nes/{zone}/instanceGroupManagers/{instan" - + "ce_group_manager}:\037instance_group_manage" - + "r_resource\022\300\003\n\027PatchPerInstanceConfigs\022K" - + ".google.cloud.compute.v1.PatchPerInstanc" - + "eConfigsInstanceGroupManagerRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\263\002\332Acpro" - + "ject,zone,instance_group_manager,instanc" - + "e_group_managers_patch_per_instance_conf" - + "igs_req_resource\212N\016ZoneOperations\202\323\344\223\002\265\001" - + "\"r/compute/v1/projects/{project}/zones/{" - + "zone}/instanceGroupManagers/{instance_gr" - + "oup_manager}/patchPerInstanceConfigs:?in" - + "stance_group_managers_patch_per_instance" - + "_configs_req_resource\022\246\003\n\021RecreateInstan" - + "ces\022E.google.cloud.compute.v1.RecreateIn" + + "gers_stop_instances_request_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\243\001\"h/compute/v1/projec" + + "ts/{project}/zones/{zone}/instanceGroupM" + + "anagers/{instance_group_manager}/stopIns" + + "tances:7instance_group_managers_stop_ins" + + "tances_request_resource\022\241\003\n\020SuspendInsta" + + "nces\022D.google.cloud.compute.v1.SuspendIn" + "stancesInstanceGroupManagerRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\245\002\332A_proj" + + "gle.cloud.compute.v1.Operation\"\242\002\332A^proj" + "ect,zone,instance_group_manager,instance" - + "_group_managers_recreate_instances_reque" - + "st_resource\212N\016ZoneOperations\202\323\344\223\002\253\001\"l/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/recreateInstances:;instance_grou" - + "p_managers_recreate_instances_request_re" - + "source\022\220\002\n\006Resize\022:.google.cloud.compute" - + ".v1.ResizeInstanceGroupManagerRequest\032\"." - + "google.cloud.compute.v1.Operation\"\245\001\332A(p" - + "roject,zone,instance_group_manager,size\212" - + "N\016ZoneOperations\202\323\344\223\002c\"a/compute/v1/proj" - + "ects/{project}/zones/{zone}/instanceGrou" - + "pManagers/{instance_group_manager}/resiz" - + "e\022\234\003\n\017ResumeInstances\022C.google.cloud.com" - + "pute.v1.ResumeInstancesInstanceGroupMana" - + "gerRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\237\002\332A]project,zone,instance_group_" - + "manager,instance_group_managers_resume_i" - + "nstances_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\247\001\"j/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/resumeInstances:9i" - + "nstance_group_managers_resume_instances_" - + "request_resource\022\262\003\n\023SetInstanceTemplate" - + "\022G.google.cloud.compute.v1.SetInstanceTe" - + "mplateInstanceGroupManagerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\255\002\332Abproje" - + "ct,zone,instance_group_manager,instance_" - + "group_managers_set_instance_template_req" - + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\260\001\"n/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/instanceGroupManagers/{instance_group" - + "_manager}/setInstanceTemplate:>instance_" - + "group_managers_set_instance_template_req" - + "uest_resource\022\231\003\n\016SetTargetPools\022B.googl" - + "e.cloud.compute.v1.SetTargetPoolsInstanc" - + "eGroupManagerRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\236\002\332A]project,zone,insta" - + "nce_group_manager,instance_group_manager" - + "s_set_target_pools_request_resource\212N\016Zo" - + "neOperations\202\323\344\223\002\246\001\"i/compute/v1/project" - + "s/{project}/zones/{zone}/instanceGroupMa" - + "nagers/{instance_group_manager}/setTarge" - + "tPools:9instance_group_managers_set_targ" - + "et_pools_request_resource\022\227\003\n\016StartInsta" - + "nces\022B.google.cloud.compute.v1.StartInst" - + "ancesInstanceGroupManagerRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\234\002\332A\\projec" - + "t,zone,instance_group_manager,instance_g" - + "roup_managers_start_instances_request_re" - + "source\212N\016ZoneOperations\202\323\344\223\002\245\001\"i/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "anceGroupManagers/{instance_group_manage" - + "r}/startInstances:8instance_group_manage" - + "rs_start_instances_request_resource\022\222\003\n\r" - + "StopInstances\022A.google.cloud.compute.v1." - + "StopInstancesInstanceGroupManagerRequest" - + "\032\".google.cloud.compute.v1.Operation\"\231\002\332" - + "A[project,zone,instance_group_manager,in" - + "stance_group_managers_stop_instances_req" - + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\243\001\"h/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/instanceGroupManagers/{instance_group" - + "_manager}/stopInstances:7instance_group_" - + "managers_stop_instances_request_resource" - + "\022\241\003\n\020SuspendInstances\022D.google.cloud.com" - + "pute.v1.SuspendInstancesInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\242\002\332A^project,zone,instance_group" - + "_manager,instance_group_managers_suspend" - + "_instances_request_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002\251\001\"k/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instanceGroupManagers/{" - + "instance_group_manager}/suspendInstances" - + "::instance_group_managers_suspend_instan" - + "ces_request_resource\022\305\003\n\030UpdatePerInstan" - + "ceConfigs\022L.google.cloud.compute.v1.Upda" - + "tePerInstanceConfigsInstanceGroupManager" + + "_group_managers_suspend_instances_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instanceGroupManagers/{instance_group_ma" + + "nager}/suspendInstances::instance_group_" + + "managers_suspend_instances_request_resou" + + "rce\022\305\003\n\030UpdatePerInstanceConfigs\022L.googl" + + "e.cloud.compute.v1.UpdatePerInstanceConf" + + "igsInstanceGroupManagerRequest\032\".google." + + "cloud.compute.v1.Operation\"\266\002\332Adproject," + + "zone,instance_group_manager,instance_gro" + + "up_managers_update_per_instance_configs_" + + "req_resource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroupManagers/{instance_group_" + + "manager}/updatePerInstanceConfigs:@insta" + + "nce_group_managers_update_per_instance_c" + + "onfigs_req_resource\032\202\001\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform\212\324\333\322\017\n2026-09-012\313\027\n\016Ins" + + "tanceGroups\022\337\002\n\014AddInstances\0229.google.cl" + + "oud.compute.v1.AddInstancesInstanceGroup" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\266\002\332Adproject,zone,instance_group_man" - + "ager,instance_group_managers_update_per_" - + "instance_configs_req_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002\267\001\"s/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instanceGroupManagers" - + "/{instance_group_manager}/updatePerInsta" - + "nceConfigs:@instance_group_managers_upda" - + "te_per_instance_configs_req_resource\032\202\001\312" - + "A\026compute.googleapis.com\322AVhttps://www.g" - + "oogleapis.com/auth/compute,https://www.g" - + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" - + "026-09-012\313\027\n\016InstanceGroups\022\337\002\n\014AddInst" - + "ances\0229.google.cloud.compute.v1.AddInsta" - + "ncesInstanceGroupRequest\032\".google.cloud." - + "compute.v1.Operation\"\357\001\332AJproject,zone,i" - + "nstance_group,instance_groups_add_instan" - + "ces_request_resource\212N\016ZoneOperations\202\323\344" - + "\223\002\212\001\"X/compute/v1/projects/{project}/zon" - + "es/{zone}/instanceGroups/{instance_group" - + "}/addInstances:.instance_groups_add_inst" - + "ances_request_resource\022\320\001\n\016AggregatedLis" - + "t\022<.google.cloud.compute.v1.AggregatedLi" - + "stInstanceGroupsRequest\0324.google.cloud.c" - + "ompute.v1.InstanceGroupAggregatedList\"J\332" - + "A\007project\202\323\344\223\002:\0228/compute/v1/projects/{p" - + "roject}/aggregated/instanceGroups\022\346\001\n\006De" - + "lete\0223.google.cloud.compute.v1.DeleteIns" - + "tanceGroupRequest\032\".google.cloud.compute" - + ".v1.Operation\"\202\001\332A\033project,zone,instance" - + "_group\212N\016ZoneOperations\202\323\344\223\002M*K/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroups/{instance_group}\022\322\001\n\003Get\0220.goo" - + "gle.cloud.compute.v1.GetInstanceGroupReq" - + "uest\032&.google.cloud.compute.v1.InstanceG" - + "roup\"q\332A\033project,zone,instance_group\202\323\344\223" - + "\002M\022K/compute/v1/projects/{project}/zones" - + "/{zone}/instanceGroups/{instance_group}\022" - + "\367\001\n\006Insert\0223.google.cloud.compute.v1.Ins" - + "ertInstanceGroupRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\223\001\332A$project,zone,in" - + "stance_group_resource\212N\016ZoneOperations\202\323" - + "\344\223\002U\":/compute/v1/projects/{project}/zon" - + "es/{zone}/instanceGroups:\027instance_group" - + "_resource\022\271\001\n\004List\0222.google.cloud.comput" - + "e.v1.ListInstanceGroupsRequest\032*.google." - + "cloud.compute.v1.InstanceGroupList\"Q\332A\014p" - + "roject,zone\202\323\344\223\002<\022:/compute/v1/projects/" - + "{project}/zones/{zone}/instanceGroups\022\346\002" - + "\n\rListInstances\022;.google.cloud.compute.v" - + "1.ListInstancesInstanceGroupsRequest\0324.g" - + "oogle.cloud.compute.v1.InstanceGroupsLis", - "tInstances\"\341\001\332AKproject,zone,instance_gr" - + "oup,instance_groups_list_instances_reque" - + "st_resource\202\323\344\223\002\214\001\"Y/compute/v1/projects" - + "/{project}/zones/{zone}/instanceGroups/{" - + "instance_group}/listInstances:/instance_" - + "groups_list_instances_request_resource\022\356" - + "\002\n\017RemoveInstances\022<.google.cloud.comput" - + "e.v1.RemoveInstancesInstanceGroupRequest" - + "\032\".google.cloud.compute.v1.Operation\"\370\001\332" - + "AMproject,zone,instance_group,instance_g" - + "roups_remove_instances_request_resource\212" - + "N\016ZoneOperations\202\323\344\223\002\220\001\"[/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "ups/{instance_group}/removeInstances:1in" - + "stance_groups_remove_instances_request_r" - + "esource\022\346\002\n\rSetNamedPorts\022:.google.cloud" - + ".compute.v1.SetNamedPortsInstanceGroupRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\364\001\332ALproject,zone,instance_group,insta" - + "nce_groups_set_named_ports_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/compute/v1" + + "ion\"\357\001\332AJproject,zone,instance_group,ins" + + "tance_groups_add_instances_request_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002\212\001\"X/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "eGroups/{instance_group}/setNamedPorts:0" - + "instance_groups_set_named_ports_request_" - + "resource\022\307\002\n\022TestIamPermissions\022?.google" - + ".cloud.compute.v1.TestIamPermissionsInst" - + "anceGroupRequest\0320.google.cloud.compute." - + "v1.TestPermissionsResponse\"\275\001\332A7project," - + "zone,resource,test_permissions_request_r" - + "esource\202\323\344\223\002}\"X/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instanceGroups/{resou" - + "rce}/testIamPermissions:!test_permission" - + "s_request_resource\032\202\001\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform\212\324\333\322\017\n2026-09-012\334\004\n\027Inst" - + "anceSettingsService\022\271\001\n\003Get\0222.google.clo" - + "ud.compute.v1.GetInstanceSettingRequest\032" - + ").google.cloud.compute.v1.InstanceSettin" - + "gs\"S\332A\014project,zone\202\323\344\223\002>\022proje" - + "ct,zone,instance,network_interface,acces" - + "s_config_resource\212N\016ZoneOperations\202\323\344\223\002j" - + "\"P/compute/v1/projects/{project}/zones/{" - + "zone}/instances/{instance}/addAccessConf" - + "ig:\026access_config_resource\022\265\002\n\023AddNetwor" - + "kInterface\022;.google.cloud.compute.v1.Add" - + "NetworkInterfaceInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"\274\001\332A0project" - + ",zone,instance,network_interface_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002r\"T/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{instance}/addNetworkInterface:\032network_" - + "interface_resource\022\342\002\n\023AddResourcePolici" - + "es\022;.google.cloud.compute.v1.AddResource" - + "PoliciesInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\351\001\332AFproject,zone,in" - + "stance,instances_add_resource_policies_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\210\001\"" - + "T/compute/v1/projects/{project}/zones/{z" - + "one}/instances/{instance}/addResourcePol" - + "icies:0instances_add_resource_policies_r" - + "equest_resource\022\301\001\n\016AggregatedList\0227.goo" - + "gle.cloud.compute.v1.AggregatedListInsta" - + "ncesRequest\032/.google.cloud.compute.v1.In" - + "stanceAggregatedList\"E\332A\007project\202\323\344\223\0025\0223" + + "eGroups/{instance_group}/addInstances:.i" + + "nstance_groups_add_instances_request_res" + + "ource\022\320\001\n\016AggregatedList\022<.google.cloud." + + "compute.v1.AggregatedListInstanceGroupsR" + + "equest\0324.google.cloud.compute.v1.Instanc" + + "eGroupAggregatedList\"J\332A\007project\202\323\344\223\002:\0228" + "/compute/v1/projects/{project}/aggregate" - + "d/instances\022\222\002\n\nAttachDisk\0222.google.clou" - + "d.compute.v1.AttachDiskInstanceRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\253\001\332A," - + "project,zone,instance,attached_disk_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002e\"K/compute/v1" + + "d/instanceGroups\022\346\001\n\006Delete\0223.google.clo" + + "ud.compute.v1.DeleteInstanceGroupRequest" + + "\032\".google.cloud.compute.v1.Operation\"\202\001\332" + + "A\033project,zone,instance_group\212N\016ZoneOper" + + "ations\202\323\344\223\002M*K/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroups/{instan" + + "ce_group}\022\322\001\n\003Get\0220.google.cloud.compute" + + ".v1.GetInstanceGroupRequest\032&.google.clo" + + "ud.compute.v1.InstanceGroup\"q\332A\033project," + + "zone,instance_group\202\323\344\223\002M\022K/compute/v1/p" + + "rojects/{project}/zones/{zone}/instanceG" + + "roups/{instance_group}\022\367\001\n\006Insert\0223.goog" + + "le.cloud.compute.v1.InsertInstanceGroupR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\223\001\332A$project,zone,instance_group_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002U\":/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/attachDisk:\026attached_disk_" - + "resource\022\236\002\n\nBulkInsert\0222.google.cloud.c" - + "ompute.v1.BulkInsertInstanceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\267\001\332A3pro" - + "ject,zone,bulk_insert_instance_resource_" - + "resource\212N\016ZoneOperations\202\323\344\223\002j\"@/comput" - + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/bulkInsert:&bulk_insert_instance_" - + "resource_resource\022\317\001\n\006Delete\022..google.cl" - + "oud.compute.v1.DeleteInstanceRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"q\332A\025pro" - + "ject,zone,instance\212N\016ZoneOperations\202\323\344\223\002" - + "B*@/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{instance}\022\233\002\n\022DeleteAc" - + "cessConfig\022:.google.cloud.compute.v1.Del" - + "eteAccessConfigInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\244\001\332A5project," - + "zone,instance,access_config,network_inte" - + "rface\212N\016ZoneOperations\202\323\344\223\002U\"S/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces/{instance}/deleteAccessConfig\022\236\002\n\026De" - + "leteNetworkInterface\022>.google.cloud.comp" - + "ute.v1.DeleteNetworkInterfaceInstanceReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\237\001\332A,project,zone,instance,network_inte" - + "rface_name\212N\016ZoneOperations\202\323\344\223\002Y\"W/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstances/{instance}/deleteNetworkInterfa" - + "ce\022\357\001\n\nDetachDisk\0222.google.cloud.compute" - + ".v1.DetachDiskInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\210\001\332A!project,z" - + "one,instance,device_name\212N\016ZoneOperation" - + "s\202\323\344\223\002M\"K/compute/v1/projects/{project}/" - + "zones/{zone}/instances/{instance}/detach" - + "Disk\022\267\001\n\003Get\022+.google.cloud.compute.v1.G" - + "etInstanceRequest\032!.google.cloud.compute" - + ".v1.Instance\"`\332A\025project,zone,instance\202\323" - + "\344\223\002B\022@/compute/v1/projects/{project}/zon" - + "es/{zone}/instances/{instance}\022\242\002\n\025GetEf" - + "fectiveFirewalls\022=.google.cloud.compute." - + "v1.GetEffectiveFirewallsInstanceRequest\032" - + "?.google.cloud.compute.v1.InstancesGetEf" - + "fectiveFirewallsResponse\"\210\001\332A\'project,zo" - + "ne,instance,network_interface\202\323\344\223\002X\022V/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instances/{instance}/getEffectiveFirewa" - + "lls\022\357\001\n\022GetGuestAttributes\022:.google.clou" - + "d.compute.v1.GetGuestAttributesInstanceR" - + "equest\032(.google.cloud.compute.v1.GuestAt" - + "tributes\"s\332A\025project,zone,instance\202\323\344\223\002U" - + "\022S/compute/v1/projects/{project}/zones/{" - + "zone}/instances/{instance}/getGuestAttri" - + "butes\022\324\001\n\014GetIamPolicy\0224.google.cloud.co" - + "mpute.v1.GetIamPolicyInstanceRequest\032\037.g" - + "oogle.cloud.compute.v1.Policy\"m\332A\025projec" - + "t,zone,resource\202\323\344\223\002O\022M/compute/v1/proje" - + "cts/{project}/zones/{zone}/instances/{re" - + "source}/getIamPolicy\022\330\001\n\rGetScreenshot\0225" - + ".google.cloud.compute.v1.GetScreenshotIn" - + "stanceRequest\032#.google.cloud.compute.v1." - + "Screenshot\"k\332A\025project,zone,instance\202\323\344\223" - + "\002M\022K/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/screenshot\022" - + "\352\001\n\023GetSerialPortOutput\022;.google.cloud.c" - + "ompute.v1.GetSerialPortOutputInstanceReq" - + "uest\032).google.cloud.compute.v1.SerialPor" - + "tOutput\"k\332A\025project,zone,instance\202\323\344\223\002M\022" - + "K/compute/v1/projects/{project}/zones/{z" - + "one}/instances/{instance}/serialPort\022\223\002\n" - + "\033GetShieldedInstanceIdentity\022C.google.cl" - + "oud.compute.v1.GetShieldedInstanceIdenti" - + "tyInstanceRequest\0321.google.cloud.compute" - + ".v1.ShieldedInstanceIdentity\"|\332A\025project" - + ",zone,instance\202\323\344\223\002^\022\\/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/getShieldedInstanceIdentity\022\341\001\n\006I" - + "nsert\022..google.cloud.compute.v1.InsertIn" - + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\202\001\332A\036project,zone,instance_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002J\"5/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ces:\021instance_resource\022\252\001\n\004List\022-.google" - + ".cloud.compute.v1.ListInstancesRequest\032%" - + ".google.cloud.compute.v1.InstanceList\"L\332" - + "A\014project,zone\202\323\344\223\0027\0225/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances\022\343\001\n\r" - + "ListReferrers\0226.google.cloud.compute.v1." - + "ListReferrersInstancesRequest\032..google.c" - + "loud.compute.v1.InstanceListReferrers\"j\332" - + "A\025project,zone,instance\202\323\344\223\002L\022J/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nces/{instance}/referrers\022\373\001\n\022PerformMai" - + "ntenance\022:.google.cloud.compute.v1.Perfo" - + "rmMaintenanceInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\204\001\332A\025project,zo" - + "ne,instance\212N\016ZoneOperations\202\323\344\223\002U\"S/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "instances/{instance}/performMaintenance\022" - + "\361\002\n\026RemoveResourcePolicies\022>.google.clou" - + "d.compute.v1.RemoveResourcePoliciesInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\362\001\332AIproject,zone,instance,instan" - + "ces_remove_resource_policies_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\216\001\"W/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nces/{instance}/removeResourcePolicies:3" - + "instances_remove_resource_policies_reque" - + "st_resource\022\337\002\n\022ReportHostAsFaulty\022:.goo" - + "gle.cloud.compute.v1.ReportHostAsFaultyI" + + "eGroups:\027instance_group_resource\022\271\001\n\004Lis" + + "t\0222.google.cloud.compute.v1.ListInstance" + + "GroupsRequest\032*.google.cloud.compute.v1." + + "InstanceGroupList\"Q\332A\014project,zone\202\323\344\223\002<" + + "\022:/compute/v1/projects/{project}/zones/{" + + "zone}/instanceGroups\022\346\002\n\rListInstances\022;" + + ".google.cloud.compute.v1.ListInstancesIn", + "stanceGroupsRequest\0324.google.cloud.compu" + + "te.v1.InstanceGroupsListInstances\"\341\001\332AKp" + + "roject,zone,instance_group,instance_grou" + + "ps_list_instances_request_resource\202\323\344\223\002\214" + + "\001\"Y/compute/v1/projects/{project}/zones/" + + "{zone}/instanceGroups/{instance_group}/l" + + "istInstances:/instance_groups_list_insta" + + "nces_request_resource\022\356\002\n\017RemoveInstance" + + "s\022<.google.cloud.compute.v1.RemoveInstan" + + "cesInstanceGroupRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\370\001\332AMproject,zone,in" + + "stance_group,instance_groups_remove_inst" + + "ances_request_resource\212N\016ZoneOperations\202" + + "\323\344\223\002\220\001\"[/compute/v1/projects/{project}/z" + + "ones/{zone}/instanceGroups/{instance_gro" + + "up}/removeInstances:1instance_groups_rem" + + "ove_instances_request_resource\022\346\002\n\rSetNa" + + "medPorts\022:.google.cloud.compute.v1.SetNa" + + "medPortsInstanceGroupRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\364\001\332ALproject,zo" + + "ne,instance_group,instance_groups_set_na" + + "med_ports_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002\215\001\"Y/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroups/{instance" + + "_group}/setNamedPorts:0instance_groups_s" + + "et_named_ports_request_resource\022\307\002\n\022Test" + + "IamPermissions\022?.google.cloud.compute.v1" + + ".TestIamPermissionsInstanceGroupRequest\032" + + "0.google.cloud.compute.v1.TestPermission" + + "sResponse\"\275\001\332A7project,zone,resource,tes" + + "t_permissions_request_resource\202\323\344\223\002}\"X/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroups/{resource}/testIamPermi" + + "ssions:!test_permissions_request_resourc" + + "e\032\202\001\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform\212\324" + + "\333\322\017\n2026-09-012\334\004\n\027InstanceSettingsServi" + + "ce\022\271\001\n\003Get\0222.google.cloud.compute.v1.Get" + + "InstanceSettingRequest\032).google.cloud.co" + + "mpute.v1.InstanceSettings\"S\332A\014project,zo" + + "ne\202\323\344\223\002>\022project,zone,instance," + + "network_interface,access_config_resource" + + "\212N\016ZoneOperations\202\323\344\223\002j\"P/compute/v1/pro" + + "jects/{project}/zones/{zone}/instances/{" + + "instance}/addAccessConfig:\026access_config" + + "_resource\022\265\002\n\023AddNetworkInterface\022;.goog" + + "le.cloud.compute.v1.AddNetworkInterfaceI" + "nstanceRequest\032\".google.cloud.compute.v1" - + ".Operation\"\350\001\332AFproject,zone,instance,in" - + "stances_report_host_as_faulty_request_re" - + "source\212N\016ZoneOperations\202\323\344\223\002\207\001\"S/compute" + + ".Operation\"\274\001\332A0project,zone,instance,ne" + + "twork_interface_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002r\"T/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{instance}/addNet" + + "workInterface:\032network_interface_resourc" + + "e\022\342\002\n\023AddResourcePolicies\022;.google.cloud" + + ".compute.v1.AddResourcePoliciesInstanceR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\351\001\332AFproject,zone,instance,instances_" + + "add_resource_policies_request_resource\212N" + + "\016ZoneOperations\202\323\344\223\002\210\001\"T/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/addResourcePolicies:0instances_" + + "add_resource_policies_request_resource\022\301" + + "\001\n\016AggregatedList\0227.google.cloud.compute" + + ".v1.AggregatedListInstancesRequest\032/.goo" + + "gle.cloud.compute.v1.InstanceAggregatedL" + + "ist\"E\332A\007project\202\323\344\223\0025\0223/compute/v1/proje" + + "cts/{project}/aggregated/instances\022\222\002\n\nA" + + "ttachDisk\0222.google.cloud.compute.v1.Atta" + + "chDiskInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\253\001\332A,project,zone,inst" + + "ance,attached_disk_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002e\"K/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/att" + + "achDisk:\026attached_disk_resource\022\236\002\n\nBulk" + + "Insert\0222.google.cloud.compute.v1.BulkIns" + + "ertInstanceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\267\001\332A3project,zone,bulk_in" + + "sert_instance_resource_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002j\"@/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/bulkInsert" + + ":&bulk_insert_instance_resource_resource" + + "\022\317\001\n\006Delete\022..google.cloud.compute.v1.De" + + "leteInstanceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"q\332A\025project,zone,instanc" + + "e\212N\016ZoneOperations\202\323\344\223\002B*@/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{instance}\022\233\002\n\022DeleteAccessConfig\022:.goog" + + "le.cloud.compute.v1.DeleteAccessConfigIn" + + "stanceRequest\032\".google.cloud.compute.v1." + + "Operation\"\244\001\332A5project,zone,instance,acc" + + "ess_config,network_interface\212N\016ZoneOpera" + + "tions\202\323\344\223\002U\"S/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/de" + + "leteAccessConfig\022\236\002\n\026DeleteNetworkInterf" + + "ace\022>.google.cloud.compute.v1.DeleteNetw" + + "orkInterfaceInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\237\001\332A,project,zon" + + "e,instance,network_interface_name\212N\016Zone" + + "Operations\202\323\344\223\002Y\"W/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}/deleteNetworkInterface\022\357\001\n\nDetachDisk" + + "\0222.google.cloud.compute.v1.DetachDiskIns" + + "tanceRequest\032\".google.cloud.compute.v1.O" + + "peration\"\210\001\332A!project,zone,instance,devi" + + "ce_name\212N\016ZoneOperations\202\323\344\223\002M\"K/compute" + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{instance}/reportHostAsFaulty:0ins" - + "tances_report_host_as_faulty_request_res" - + "ource\022\323\001\n\005Reset\022-.google.cloud.compute.v" - + "1.ResetInstanceRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"w\332A\025project,zone,inst" - + "ance\212N\016ZoneOperations\202\323\344\223\002H\"F/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/reset\022\326\001\n\006Resume\022..google." - + "cloud.compute.v1.ResumeInstanceRequest\032\"" - + ".google.cloud.compute.v1.Operation\"x\332A\025p" - + "roject,zone,instance\212N\016ZoneOperations\202\323\344" - + "\223\002I\"G/compute/v1/projects/{project}/zone" - + "s/{zone}/instances/{instance}/resume\022\226\002\n" - + "\027SendDiagnosticInterrupt\022?.google.cloud." - + "compute.v1.SendDiagnosticInterruptInstan" - + "ceRequest\032@.google.cloud.compute.v1.Send" - + "DiagnosticInterruptInstanceResponse\"x\332A\025" - + "project,zone,instance\202\323\344\223\002Z\"X/compute/v1" + + "ances/{instance}/detachDisk\022\267\001\n\003Get\022+.go" + + "ogle.cloud.compute.v1.GetInstanceRequest" + + "\032!.google.cloud.compute.v1.Instance\"`\332A\025" + + "project,zone,instance\202\323\344\223\002B\022@/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/sendDiagnosticInterrupt\022\204\002" - + "\n\025SetDeletionProtection\022=.google.cloud.c" - + "ompute.v1.SetDeletionProtectionInstanceR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\207\001\332A\025project,zone,resource\212N\016ZoneOper" - + "ations\202\323\344\223\002X\"V/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{resource}/s" - + "etDeletionProtection\022\220\002\n\021SetDiskAutoDele" - + "te\0229.google.cloud.compute.v1.SetDiskAuto" - + "DeleteInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\233\001\332A-project,zone,inst" - + "ance,auto_delete,device_name\212N\016ZoneOpera" - + "tions\202\323\344\223\002T\"R/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instances/{instance}/se" - + "tDiskAutoDelete\022\230\002\n\014SetIamPolicy\0224.googl" - + "e.cloud.compute.v1.SetIamPolicyInstanceR" - + "equest\032\037.google.cloud.compute.v1.Policy\"" - + "\260\001\332A6project,zone,resource,zone_set_poli" - + "cy_request_resource\202\323\344\223\002q\"M/compute/v1/p" - + "rojects/{project}/zones/{zone}/instances" - + "/{resource}/setIamPolicy: zone_set_polic" - + "y_request_resource\022\255\002\n\tSetLabels\0221.googl" - + "e.cloud.compute.v1.SetLabelsInstanceRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\310\001\332A;project,zone,instance,instances_set" - + "_labels_request_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002s\"J/compute/v1/projects/{project}/" - + "zones/{zone}/instances/{instance}/setLab" - + "els:%instances_set_labels_request_resour" - + "ce\022\342\002\n\023SetMachineResources\022;.google.clou" - + "d.compute.v1.SetMachineResourcesInstance" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\351\001\332AFproject,zone,instance,instances" - + "_set_machine_resources_request_resource\212" - + "N\016ZoneOperations\202\323\344\223\002\210\001\"T/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances/{" - + "instance}/setMachineResources:0instances" - + "_set_machine_resources_request_resource\022" - + "\310\002\n\016SetMachineType\0226.google.cloud.comput" - + "e.v1.SetMachineTypeInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\331\001\332AAproj" - + "ect,zone,instance,instances_set_machine_" - + "type_request_resource\212N\016ZoneOperations\202\323" - + "\344\223\002~\"O/compute/v1/projects/{project}/zon" - + "es/{zone}/instances/{instance}/setMachin" - + "eType:+instances_set_machine_type_reques" - + "t_resource\022\213\002\n\013SetMetadata\0223.google.clou" - + "d.compute.v1.SetMetadataInstanceRequest\032" - + "\".google.cloud.compute.v1.Operation\"\242\001\332A" - + "\'project,zone,instance,metadata_resource" - + "\212N\016ZoneOperations\202\323\344\223\002a\"L/compute/v1/pro" + + "es/{instance}\022\242\002\n\025GetEffectiveFirewalls\022" + + "=.google.cloud.compute.v1.GetEffectiveFi" + + "rewallsInstanceRequest\032?.google.cloud.co" + + "mpute.v1.InstancesGetEffectiveFirewallsR" + + "esponse\"\210\001\332A\'project,zone,instance,netwo" + + "rk_interface\202\323\344\223\002X\022V/compute/v1/projects" + + "/{project}/zones/{zone}/instances/{insta" + + "nce}/getEffectiveFirewalls\022\357\001\n\022GetGuestA" + + "ttributes\022:.google.cloud.compute.v1.GetG" + + "uestAttributesInstanceRequest\032(.google.c" + + "loud.compute.v1.GuestAttributes\"s\332A\025proj" + + "ect,zone,instance\202\323\344\223\002U\022S/compute/v1/pro" + "jects/{project}/zones/{zone}/instances/{" - + "instance}/setMetadata:\021metadata_resource" - + "\022\332\002\n\021SetMinCpuPlatform\0229.google.cloud.co" - + "mpute.v1.SetMinCpuPlatformInstanceReques" - + "t\032\".google.cloud.compute.v1.Operation\"\345\001" - + "\332AEproject,zone,instance,instances_set_m" - + "in_cpu_platform_request_resource\212N\016ZoneO" - + "perations\202\323\344\223\002\205\001\"R/compute/v1/projects/{" - + "project}/zones/{zone}/instances/{instanc" - + "e}/setMinCpuPlatform:/instances_set_min_" - + "cpu_platform_request_resource\022\243\002\n\007SetNam" - + "e\022/.google.cloud.compute.v1.SetNameInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\302\001\332A9project,zone,instance,instan" - + "ces_set_name_request_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002o\"H/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{instance}/s" - + "etName:#instances_set_name_request_resou" - + "rce\022\225\002\n\rSetScheduling\0225.google.cloud.com" - + "pute.v1.SetSchedulingInstanceRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\250\001\332A)pr" - + "oject,zone,instance,scheduling_resource\212" - + "N\016ZoneOperations\202\323\344\223\002e\"N/compute/v1/proj" + + "instance}/getGuestAttributes\022\324\001\n\014GetIamP" + + "olicy\0224.google.cloud.compute.v1.GetIamPo" + + "licyInstanceRequest\032\037.google.cloud.compu" + + "te.v1.Policy\"m\332A\025project,zone,resource\202\323" + + "\344\223\002O\022M/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{resource}/getIamPol" + + "icy\022\330\001\n\rGetScreenshot\0225.google.cloud.com" + + "pute.v1.GetScreenshotInstanceRequest\032#.g" + + "oogle.cloud.compute.v1.Screenshot\"k\332A\025pr" + + "oject,zone,instance\202\323\344\223\002M\022K/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + "/{instance}/screenshot\022\352\001\n\023GetSerialPort" + + "Output\022;.google.cloud.compute.v1.GetSeri" + + "alPortOutputInstanceRequest\032).google.clo" + + "ud.compute.v1.SerialPortOutput\"k\332A\025proje" + + "ct,zone,instance\202\323\344\223\002M\022K/compute/v1/proj" + "ects/{project}/zones/{zone}/instances/{i" - + "nstance}/setScheduling:\023scheduling_resou" - + "rce\022\330\002\n\021SetSecurityPolicy\0229.google.cloud" - + ".compute.v1.SetSecurityPolicyInstanceReq" + + "nstance}/serialPort\022\223\002\n\033GetShieldedInsta" + + "nceIdentity\022C.google.cloud.compute.v1.Ge" + + "tShieldedInstanceIdentityInstanceRequest" + + "\0321.google.cloud.compute.v1.ShieldedInsta" + + "nceIdentity\"|\332A\025project,zone,instance\202\323\344" + + "\223\002^\022\\/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/getShielde" + + "dInstanceIdentity\022\341\001\n\006Insert\022..google.cl" + + "oud.compute.v1.InsertInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\202\001\332A\036pr" + + "oject,zone,instance_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002J\"5/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances:\021instance_res" + + "ource\022\252\001\n\004List\022-.google.cloud.compute.v1" + + ".ListInstancesRequest\032%.google.cloud.com" + + "pute.v1.InstanceList\"L\332A\014project,zone\202\323\344" + + "\223\0027\0225/compute/v1/projects/{project}/zone" + + "s/{zone}/instances\022\343\001\n\rListReferrers\0226.g" + + "oogle.cloud.compute.v1.ListReferrersInst" + + "ancesRequest\032..google.cloud.compute.v1.I" + + "nstanceListReferrers\"j\332A\025project,zone,in" + + "stance\202\323\344\223\002L\022J/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instances/{instance}/r" + + "eferrers\022\373\001\n\022PerformMaintenance\022:.google" + + ".cloud.compute.v1.PerformMaintenanceInst" + + "anceRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\204\001\332A\025project,zone,instance\212N\016Zon" + + "eOperations\202\323\344\223\002U\"S/compute/v1/projects/" + + "{project}/zones/{zone}/instances/{instan" + + "ce}/performMaintenance\022\361\002\n\026RemoveResourc" + + "ePolicies\022>.google.cloud.compute.v1.Remo" + + "veResourcePoliciesInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\362\001\332AIproje" + + "ct,zone,instance,instances_remove_resour" + + "ce_policies_request_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\216\001\"W/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instances/{instance}/r" + + "emoveResourcePolicies:3instances_remove_" + + "resource_policies_request_resource\022\337\002\n\022R" + + "eportHostAsFaulty\022:.google.cloud.compute" + + ".v1.ReportHostAsFaultyInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\350\001\332AFp" + + "roject,zone,instance,instances_report_ho" + + "st_as_faulty_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\207\001\"S/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "reportHostAsFaulty:0instances_report_hos" + + "t_as_faulty_request_resource\022\323\001\n\005Reset\022-" + + ".google.cloud.compute.v1.ResetInstanceRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"w\332A\025project,zone,instance\212N\016ZoneOperat" + + "ions\202\323\344\223\002H\"F/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/res" + + "et\022\326\001\n\006Resume\022..google.cloud.compute.v1." + + "ResumeInstanceRequest\032\".google.cloud.com" + + "pute.v1.Operation\"x\332A\025project,zone,insta" + + "nce\212N\016ZoneOperations\202\323\344\223\002I\"G/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/resume\022\226\002\n\027SendDiagnosticIn" + + "terrupt\022?.google.cloud.compute.v1.SendDi" + + "agnosticInterruptInstanceRequest\032@.googl" + + "e.cloud.compute.v1.SendDiagnosticInterru" + + "ptInstanceResponse\"x\332A\025project,zone,inst" + + "ance\202\323\344\223\002Z\"X/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/sen" + + "dDiagnosticInterrupt\022\204\002\n\025SetDeletionProt" + + "ection\022=.google.cloud.compute.v1.SetDele" + + "tionProtectionInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\207\001\332A\025project,z" + + "one,resource\212N\016ZoneOperations\202\323\344\223\002X\"V/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instances/{resource}/setDeletionProtect" + + "ion\022\220\002\n\021SetDiskAutoDelete\0229.google.cloud" + + ".compute.v1.SetDiskAutoDeleteInstanceReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\343\001\332ADproject,zone,instance,instances_se" - + "t_security_policy_request_resource\212N\016Zon" - + "eOperations\202\323\344\223\002\204\001\"R/compute/v1/projects" - + "/{project}/zones/{zone}/instances/{insta" - + "nce}/setSecurityPolicy:.instances_set_se" - + "curity_policy_request_resource\022\330\002\n\021SetSe" - + "rviceAccount\0229.google.cloud.compute.v1.S" - + "etServiceAccountInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"\343\001\332ADproject" - + ",zone,instance,instances_set_service_acc" - + "ount_request_resource\212N\016ZoneOperations\202\323" - + "\344\223\002\204\001\"R/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/setServi" - + "ceAccount:.instances_set_service_account" - + "_request_resource\022\205\003\n\"SetShieldedInstanc" - + "eIntegrityPolicy\022J.google.cloud.compute." - + "v1.SetShieldedInstanceIntegrityPolicyIns" - + "tanceRequest\032\".google.cloud.compute.v1.O" - + "peration\"\356\001\332AAproject,zone,instance,shie" - + "lded_instance_integrity_policy_resource\212" - + "N\016ZoneOperations\202\323\344\223\002\222\0012c/compute/v1/pro" - + "jects/{project}/zones/{zone}/instances/{" - + "instance}/setShieldedInstanceIntegrityPo" - + "licy:+shielded_instance_integrity_policy" - + "_resource\022\367\001\n\007SetTags\022/.google.cloud.com" - + "pute.v1.SetTagsInstanceRequest\032\".google." - + "cloud.compute.v1.Operation\"\226\001\332A#project," - + "zone,instance,tags_resource\212N\016ZoneOperat" - + "ions\202\323\344\223\002Y\"H/compute/v1/projects/{projec" - + "t}/zones/{zone}/instances/{instance}/set" - + "Tags:\rtags_resource\022\215\002\n\030SimulateMaintena" - + "nceEvent\022@.google.cloud.compute.v1.Simul" - + "ateMaintenanceEventInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\212\001\332A\025proj" - + "ect,zone,instance\212N\016ZoneOperations\202\323\344\223\002[" - + "\"Y/compute/v1/projects/{project}/zones/{" - + "zone}/instances/{instance}/simulateMaint" - + "enanceEvent\022\323\001\n\005Start\022-.google.cloud.com" - + "pute.v1.StartInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"w\332A\025project,zon" - + "e,instance\212N\016ZoneOperations\202\323\344\223\002H\"F/comp" + + "\"\233\001\332A-project,zone,instance,auto_delete," + + "device_name\212N\016ZoneOperations\202\323\344\223\002T\"R/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instances/{instance}/setDiskAutoDelete\022\230" + + "\002\n\014SetIamPolicy\0224.google.cloud.compute.v" + + "1.SetIamPolicyInstanceRequest\032\037.google.c" + + "loud.compute.v1.Policy\"\260\001\332A6project,zone" + + ",resource,zone_set_policy_request_resour" + + "ce\202\323\344\223\002q\"M/compute/v1/projects/{project}" + + "/zones/{zone}/instances/{resource}/setIa" + + "mPolicy: zone_set_policy_request_resourc" + + "e\022\255\002\n\tSetLabels\0221.google.cloud.compute.v" + + "1.SetLabelsInstanceRequest\032\".google.clou" + + "d.compute.v1.Operation\"\310\001\332A;project,zone" + + ",instance,instances_set_labels_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002s\"J/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/setLabels:%instances_se" + + "t_labels_request_resource\022\342\002\n\023SetMachine" + + "Resources\022;.google.cloud.compute.v1.SetM" + + "achineResourcesInstanceRequest\032\".google." + + "cloud.compute.v1.Operation\"\351\001\332AFproject," + + "zone,instance,instances_set_machine_reso" + + "urces_request_resource\212N\016ZoneOperations\202" + + "\323\344\223\002\210\001\"T/compute/v1/projects/{project}/z" + + "ones/{zone}/instances/{instance}/setMach" + + "ineResources:0instances_set_machine_reso" + + "urces_request_resource\022\310\002\n\016SetMachineTyp" + + "e\0226.google.cloud.compute.v1.SetMachineTy" + + "peInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\331\001\332AAproject,zone,instance" + + ",instances_set_machine_type_request_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002~\"O/compute/v1" + + "/projects/{project}/zones/{zone}/instanc" + + "es/{instance}/setMachineType:+instances_" + + "set_machine_type_request_resource\022\213\002\n\013Se" + + "tMetadata\0223.google.cloud.compute.v1.SetM" + + "etadataInstanceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\242\001\332A\'project,zone,ins" + + "tance,metadata_resource\212N\016ZoneOperations" + + "\202\323\344\223\002a\"L/compute/v1/projects/{project}/z" + + "ones/{zone}/instances/{instance}/setMeta" + + "data:\021metadata_resource\022\332\002\n\021SetMinCpuPla" + + "tform\0229.google.cloud.compute.v1.SetMinCp" + + "uPlatformInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\345\001\332AEproject,zone,i" + + "nstance,instances_set_min_cpu_platform_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"" + + "R/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}/setMinCpuPlatf" + + "orm:/instances_set_min_cpu_platform_requ" + + "est_resource\022\243\002\n\007SetName\022/.google.cloud." + + "compute.v1.SetNameInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\302\001\332A9proje" + + "ct,zone,instance,instances_set_name_requ" + + "est_resource\212N\016ZoneOperations\202\323\344\223\002o\"H/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instances/{instance}/setName:#instances" + + "_set_name_request_resource\022\225\002\n\rSetSchedu" + + "ling\0225.google.cloud.compute.v1.SetSchedu" + + "lingInstanceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\250\001\332A)project,zone,instan" + + "ce,scheduling_resource\212N\016ZoneOperations\202" + + "\323\344\223\002e\"N/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{instance}/setSched" + + "uling:\023scheduling_resource\022\330\002\n\021SetSecuri" + + "tyPolicy\0229.google.cloud.compute.v1.SetSe" + + "curityPolicyInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\343\001\332ADproject,zon" + + "e,instance,instances_set_security_policy" + + "_request_resource\212N\016ZoneOperations\202\323\344\223\002\204" + + "\001\"R/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{instance}/setSecurityP" + + "olicy:.instances_set_security_policy_req" + + "uest_resource\022\330\002\n\021SetServiceAccount\0229.go" + + "ogle.cloud.compute.v1.SetServiceAccountI" + + "nstanceRequest\032\".google.cloud.compute.v1" + + ".Operation\"\343\001\332ADproject,zone,instance,in" + + "stances_set_service_account_request_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/{instance}/setServiceAccount:.instan" + + "ces_set_service_account_request_resource" + + "\022\205\003\n\"SetShieldedInstanceIntegrityPolicy\022" + + "J.google.cloud.compute.v1.SetShieldedIns" + + "tanceIntegrityPolicyInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\356\001\332AApro" + + "ject,zone,instance,shielded_instance_int" + + "egrity_policy_resource\212N\016ZoneOperations\202" + + "\323\344\223\002\222\0012c/compute/v1/projects/{project}/z" + + "ones/{zone}/instances/{instance}/setShie" + + "ldedInstanceIntegrityPolicy:+shielded_in" + + "stance_integrity_policy_resource\022\367\001\n\007Set" + + "Tags\022/.google.cloud.compute.v1.SetTagsIn" + + "stanceRequest\032\".google.cloud.compute.v1." + + "Operation\"\226\001\332A#project,zone,instance,tag" + + "s_resource\212N\016ZoneOperations\202\323\344\223\002Y\"H/comp" + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstances/{instance}/start\022\363\002\n\026StartWithE" - + "ncryptionKey\022>.google.cloud.compute.v1.S" - + "tartWithEncryptionKeyInstanceRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\364\001\332AJpr" - + "oject,zone,instance,instances_start_with" - + "_encryption_key_request_resource\212N\016ZoneO" - + "perations\202\323\344\223\002\217\001\"W/compute/v1/projects/{", - "project}/zones/{zone}/instances/{instanc" - + "e}/startWithEncryptionKey:4instances_sta" - + "rt_with_encryption_key_request_resource\022" - + "\320\001\n\004Stop\022,.google.cloud.compute.v1.StopI" + + "nstances/{instance}/setTags:\rtags_resour" + + "ce\022\215\002\n\030SimulateMaintenanceEvent\022@.google" + + ".cloud.compute.v1.SimulateMaintenanceEve" + + "ntInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\212\001\332A\025project,zone,instance" + + "\212N\016ZoneOperations\202\323\344\223\002[\"Y/compute/v1/pro" + + "jects/{project}/zones/{zone}/instances/{" + + "instance}/simulateMaintenanceEvent\022\323\001\n\005S" + + "tart\022-.google.cloud.compute.v1.StartInst" + + "anceRequest\032\".google.cloud.compute.v1.Op" + + "eration\"w\332A\025project,zone,instance\212N\016Zone" + + "Operations\202\323\344\223\002H\"F/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}/start\022\363\002\n\026StartWithEncryptionKey\022>.go" + + "ogle.cloud.compute.v1.StartWithEncryptio" + + "nKeyInstanceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\364\001\332AJproject,zone,instan" + + "ce,instances_start_with_encryption_key_r", + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\217\001\"" + + "W/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}/startWithEncry" + + "ptionKey:4instances_start_with_encryptio" + + "n_key_request_resource\022\320\001\n\004Stop\022,.google" + + ".cloud.compute.v1.StopInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"v\332A\025pr" + + "oject,zone,instance\212N\016ZoneOperations\202\323\344\223" + + "\002G\"E/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/stop\022\331\001\n\007Su" + + "spend\022/.google.cloud.compute.v1.SuspendI" + "nstanceRequest\032\".google.cloud.compute.v1" - + ".Operation\"v\332A\025project,zone,instance\212N\016Z" - + "oneOperations\202\323\344\223\002G\"E/compute/v1/project" + + ".Operation\"y\332A\025project,zone,instance\212N\016Z" + + "oneOperations\202\323\344\223\002J\"H/compute/v1/project" + "s/{project}/zones/{zone}/instances/{inst" - + "ance}/stop\022\331\001\n\007Suspend\022/.google.cloud.co" - + "mpute.v1.SuspendInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"y\332A\025project," - + "zone,instance\212N\016ZoneOperations\202\323\344\223\002J\"H/c" - + "ompute/v1/projects/{project}/zones/{zone" - + "}/instances/{instance}/suspend\022\275\002\n\022TestI" - + "amPermissions\022:.google.cloud.compute.v1." - + "TestIamPermissionsInstanceRequest\0320.goog" - + "le.cloud.compute.v1.TestPermissionsRespo" - + "nse\"\270\001\332A7project,zone,resource,test_perm" - + "issions_request_resource\202\323\344\223\002x\"S/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{resource}/testIamPermissions:!tes" - + "t_permissions_request_resource\022\365\001\n\006Updat" - + "e\022..google.cloud.compute.v1.UpdateInstan" - + "ceRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\226\001\332A\'project,zone,instance,instanc" - + "e_resource\212N\016ZoneOperations\202\323\344\223\002U\032@/comp" - + "ute/v1/projects/{project}/zones/{zone}/i" - + "nstances/{instance}:\021instance_resource\022\274" - + "\002\n\022UpdateAccessConfig\022:.google.cloud.com" - + "pute.v1.UpdateAccessConfigInstanceReques" - + "t\032\".google.cloud.compute.v1.Operation\"\305\001" - + "\332A>project,zone,instance,network_interfa" - + "ce,access_config_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002m\"S/compute/v1/projects/{project}" - + "/zones/{zone}/instances/{instance}/updat" - + "eAccessConfig:\026access_config_resource\022\257\002" - + "\n\023UpdateDisplayDevice\022;.google.cloud.com" - + "pute.v1.UpdateDisplayDeviceInstanceReque" - + "st\032\".google.cloud.compute.v1.Operation\"\266" - + "\001\332A-project,zone,instance,display_device" - + "_resource\212N\016ZoneOperations\202\323\344\223\002o2T/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stances/{instance}/updateDisplayDevice:\027" - + "display_device_resource\022\320\002\n\026UpdateNetwor" - + "kInterface\022>.google.cloud.compute.v1.Upd" - + "ateNetworkInterfaceInstanceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\321\001\332ABproj" - + "ect,zone,instance,network_interface,netw" - + "ork_interface_resource\212N\016ZoneOperations\202" - + "\323\344\223\002u2W/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/updateNe" - + "tworkInterface:\032network_interface_resour" - + "ce\022\337\002\n\034UpdateShieldedInstanceConfig\022D.go" - + "ogle.cloud.compute.v1.UpdateShieldedInst" - + "anceConfigInstanceRequest\032\".google.cloud" - + ".compute.v1.Operation\"\324\001\332A7project,zone," - + "instance,shielded_instance_config_resour" - + "ce\212N\016ZoneOperations\202\323\344\223\002\202\0012]/compute/v1/" - + "projects/{project}/zones/{zone}/instance" - + "s/{instance}/updateShieldedInstanceConfi" - + "g:!shielded_instance_config_resource\032\202\001\312" - + "A\026compute.googleapis.com\322AVhttps://www.g" - + "oogleapis.com/auth/compute,https://www.g" - + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" - + "026-09-012\203\020\n\025InstantSnapshotGroups\022\204\002\n\006" - + "Delete\022:.google.cloud.compute.v1.DeleteI" - + "nstantSnapshotGroupRequest\032\".google.clou" - + "d.compute.v1.Operation\"\231\001\332A#project,zone" - + ",instant_snapshot_group\212N\016ZoneOperations" - + "\202\323\344\223\002\\*Z/compute/v1/projects/{project}/z" - + "ones/{zone}/instantSnapshotGroups/{insta" - + "nt_snapshot_group}\022\370\001\n\003Get\0227.google.clou" - + "d.compute.v1.GetInstantSnapshotGroupRequ" - + "est\032-.google.cloud.compute.v1.InstantSna" - + "pshotGroup\"\210\001\332A#project,zone,instant_sna" - + "pshot_group\202\323\344\223\002\\\022Z/compute/v1/projects/" - + "{project}/zones/{zone}/instantSnapshotGr" - + "oups/{instant_snapshot_group}\022\354\001\n\014GetIam" - + "Policy\022@.google.cloud.compute.v1.GetIamP" - + "olicyInstantSnapshotGroupRequest\032\037.googl" - + "e.cloud.compute.v1.Policy\"y\332A\025project,zo" - + "ne,resource\202\323\344\223\002[\022Y/compute/v1/projects/" - + "{project}/zones/{zone}/instantSnapshotGr" - + "oups/{resource}/getIamPolicy\022\225\002\n\006Insert\022" - + ":.google.cloud.compute.v1.InsertInstantS" - + "napshotGroupRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\252\001\332A,project,zone,instan" - + "t_snapshot_group_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002d\"A/compute/v1/projects/{project}" - + "/zones/{zone}/instantSnapshotGroups:\037ins" - + "tant_snapshot_group_resource\022\317\001\n\004List\0229." - + "google.cloud.compute.v1.ListInstantSnaps" - + "hotGroupsRequest\0322.google.cloud.compute." - + "v1.ListInstantSnapshotGroups\"X\332A\014project" - + ",zone\202\323\344\223\002C\022A/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instantSnapshotGroups\022\260" - + "\002\n\014SetIamPolicy\022@.google.cloud.compute.v" - + "1.SetIamPolicyInstantSnapshotGroupReques" - + "t\032\037.google.cloud.compute.v1.Policy\"\274\001\332A6" - + "project,zone,resource,zone_set_policy_re" - + "quest_resource\202\323\344\223\002}\"Y/compute/v1/projec" - + "ts/{project}/zones/{zone}/instantSnapsho" - + "tGroups/{resource}/setIamPolicy: zone_se" - + "t_policy_request_resource\022\326\002\n\022TestIamPer" - + "missions\022F.google.cloud.compute.v1.TestI" - + "amPermissionsInstantSnapshotGroupRequest" - + "\0320.google.cloud.compute.v1.TestPermissio" - + "nsResponse\"\305\001\332A7project,zone,resource,te" - + "st_permissions_request_resource\202\323\344\223\002\204\001\"_" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instantSnapshotGroups/{resource}/tes" - + "tIamPermissions:!test_permissions_reques" - + "t_resource\032\202\001\312A\026compute.googleapis.com\322A" - + "Vhttps://www.googleapis.com/auth/compute" - + ",https://www.googleapis.com/auth/cloud-p" - + "latform\212\324\333\322\017\n2026-09-012\224\023\n\020InstantSnaps" - + "hots\022\326\001\n\016AggregatedList\022>.google.cloud.c" - + "ompute.v1.AggregatedListInstantSnapshots" - + "Request\0326.google.cloud.compute.v1.Instan" - + "tSnapshotAggregatedList\"L\332A\007project\202\323\344\223\002" - + "<\022:/compute/v1/projects/{project}/aggreg" - + "ated/instantSnapshots\022\356\001\n\006Delete\0225.googl" - + "e.cloud.compute.v1.DeleteInstantSnapshot" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\210\001\332A\035project,zone,instant_snapshot\212N" - + "\016ZoneOperations\202\323\344\223\002Q*O/compute/v1/proje" - + "cts/{project}/zones/{zone}/instantSnapsh" - + "ots/{instant_snapshot}\022\334\001\n\003Get\0222.google." - + "cloud.compute.v1.GetInstantSnapshotReque" - + "st\032(.google.cloud.compute.v1.InstantSnap" - + "shot\"w\332A\035project,zone,instant_snapshot\202\323" - + "\344\223\002Q\022O/compute/v1/projects/{project}/zon" - + "es/{zone}/instantSnapshots/{instant_snap" - + "shot}\022\342\001\n\014GetIamPolicy\022;.google.cloud.co" - + "mpute.v1.GetIamPolicyInstantSnapshotRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"t\332A" - + "\025project,zone,resource\202\323\344\223\002V\022T/compute/v" + + "ance}/suspend\022\275\002\n\022TestIamPermissions\022:.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sInstanceRequest\0320.google.cloud.compute." + + "v1.TestPermissionsResponse\"\270\001\332A7project," + + "zone,resource,test_permissions_request_r" + + "esource\202\323\344\223\002x\"S/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\022\365\001\n\006Update\022..google.cloud." + + "compute.v1.UpdateInstanceRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\226\001\332A\'projec" + + "t,zone,instance,instance_resource\212N\016Zone" + + "Operations\202\323\344\223\002U\032@/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}:\021instance_resource\022\274\002\n\022UpdateAccessCo" + + "nfig\022:.google.cloud.compute.v1.UpdateAcc" + + "essConfigInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\305\001\332A>project,zone,i" + + "nstance,network_interface,access_config_" + + "resource\212N\016ZoneOperations\202\323\344\223\002m\"S/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tances/{instance}/updateAccessConfig:\026ac" + + "cess_config_resource\022\257\002\n\023UpdateDisplayDe" + + "vice\022;.google.cloud.compute.v1.UpdateDis" + + "playDeviceInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"\266\001\332A-project,zone," + + "instance,display_device_resource\212N\016ZoneO" + + "perations\202\323\344\223\002o2T/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{instance" + + "}/updateDisplayDevice:\027display_device_re" + + "source\022\320\002\n\026UpdateNetworkInterface\022>.goog" + + "le.cloud.compute.v1.UpdateNetworkInterfa" + + "ceInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\321\001\332ABproject,zone,instance" + + ",network_interface,network_interface_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002u2W/compute/v" + "1/projects/{project}/zones/{zone}/instan" - + "tSnapshots/{resource}/getIamPolicy\022\377\001\n\006I" - + "nsert\0225.google.cloud.compute.v1.InsertIn" - + "stantSnapshotRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\231\001\332A&project,zone,insta" - + "nt_snapshot_resource\212N\016ZoneOperations\202\323\344" - + "\223\002Y\"\022.google.cloud.compute.v1.GetInterconn" - + "ectAttachmentGroupRequest\0324.google.cloud" - + ".compute.v1.InterconnectAttachmentGroup\"" - + "\222\001\332A%project,interconnect_attachment_gro" - + "up\202\323\344\223\002d\022b/compute/v1/projects/{project}" - + "/global/interconnectAttachmentGroups/{in" - + "terconnect_attachment_group}\022\357\001\n\014GetIamP" - + "olicy\022G.google.cloud.compute.v1.GetIamPo" - + "licyInterconnectAttachmentGroupRequest\032\037" - + ".google.cloud.compute.v1.Policy\"u\332A\020proj" - + "ect,resource\202\323\344\223\002\\\022Z/compute/v1/projects" - + "/{project}/global/interconnectAttachment" - + "Groups/{resource}/getIamPolicy\022\344\002\n\024GetOp" - + "erationalStatus\022O.google.cloud.compute.v" - + "1.GetOperationalStatusInterconnectAttach" - + "mentGroupRequest\032Q.google.cloud.compute." - + "v1.InterconnectAttachmentGroupsGetOperat" - + "ionalStatusResponse\"\247\001\332A%project,interco" - + "nnect_attachment_group\202\323\344\223\002y\022w/compute/v" - + "1/projects/{project}/global/interconnect" - + "AttachmentGroups/{interconnect_attachmen" - + "t_group}/getOperationalStatus\022\250\002\n\006Insert" - + "\022A.google.cloud.compute.v1.InsertInterco" - + "nnectAttachmentGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\266\001\332A.project,int" - + "erconnect_attachment_group_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002l\"B/compute/v1/projec" - + "ts/{project}/global/interconnectAttachme" - + "ntGroups:&interconnect_attachment_group_" - + "resource\022\341\001\n\004List\022@.google.cloud.compute" - + ".v1.ListInterconnectAttachmentGroupsRequ" - + "est\032A.google.cloud.compute.v1.Interconne" - + "ctAttachmentGroupsListResponse\"T\332A\007proje" - + "ct\202\323\344\223\002D\022B/compute/v1/projects/{project}" - + "/global/interconnectAttachmentGroups\022\345\002\n" - + "\005Patch\022@.google.cloud.compute.v1.PatchIn" - + "terconnectAttachmentGroupRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\365\001\332ALprojec" - + "t,interconnect_attachment_group,intercon" - + "nect_attachment_group_resource\212N\020GlobalO" - + "perations\202\323\344\223\002\214\0012b/compute/v1/projects/{" - + "project}/global/interconnectAttachmentGr" - + "oups/{interconnect_attachment_group}:&in" - + "terconnect_attachment_group_resource\022\270\002\n" - + "\014SetIamPolicy\022G.google.cloud.compute.v1." - + "SetIamPolicyInterconnectAttachmentGroupR" - + "equest\032\037.google.cloud.compute.v1.Policy\"" - + "\275\001\332A3project,resource,global_set_policy_" - + "request_resource\202\323\344\223\002\200\001\"Z/compute/v1/pro" - + "jects/{project}/global/interconnectAttac" - + "hmentGroups/{resource}/setIamPolicy:\"glo" - + "bal_set_policy_request_resource\022\331\002\n\022Test" - + "IamPermissions\022M.google.cloud.compute.v1" - + ".TestIamPermissionsInterconnectAttachmen" - + "tGroupRequest\0320.google.cloud.compute.v1." - + "TestPermissionsResponse\"\301\001\332A2project,res" - + "ource,test_permissions_request_resource\202" - + "\323\344\223\002\205\001\"`/compute/v1/projects/{project}/g" - + "lobal/interconnectAttachmentGroups/{reso" - + "urce}/testIamPermissions:!test_permissio" - + "ns_request_resource\032\202\001\312A\026compute.googlea" + + "ces/{instance}/updateNetworkInterface:\032n" + + "etwork_interface_resource\022\337\002\n\034UpdateShie" + + "ldedInstanceConfig\022D.google.cloud.comput" + + "e.v1.UpdateShieldedInstanceConfigInstanc" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\324\001\332A7project,zone,instance,shielded" + + "_instance_config_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\202\0012]/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/upda" + + "teShieldedInstanceConfig:!shielded_insta" + + "nce_config_resource\032\202\001\312A\026compute.googlea" + "pis.com\322AVhttps://www.googleapis.com/aut" + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\323\020\n\027Int" - + "erconnectAttachments\022\353\001\n\016AggregatedList\022" - + "E.google.cloud.compute.v1.AggregatedList" - + "InterconnectAttachmentsRequest\032=.google." - + "cloud.compute.v1.InterconnectAttachmentA" - + "ggregatedList\"S\332A\007project\202\323\344\223\002C\022A/comput" - + "e/v1/projects/{project}/aggregated/inter" - + "connectAttachments\022\222\002\n\006Delete\022<.google.c" - + "loud.compute.v1.DeleteInterconnectAttach" - + "mentRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\245\001\332A&project,region,interconnect" - + "_attachment\212N\020RegionOperations\202\323\344\223\002c*a/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/interconnectAttachments/{interconn" - + "ect_attachment}\022\206\002\n\003Get\0229.google.cloud.c" - + "ompute.v1.GetInterconnectAttachmentReque" - + "st\032/.google.cloud.compute.v1.Interconnec" - + "tAttachment\"\222\001\332A&project,region,intercon" - + "nect_attachment\202\323\344\223\002c\022a/compute/v1/proje" - + "cts/{project}/regions/{region}/interconn" - + "ectAttachments/{interconnect_attachment}" - + "\022\243\002\n\006Insert\022<.google.cloud.compute.v1.In" - + "sertInterconnectAttachmentRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\266\001\332A/proje" - + "ct,region,interconnect_attachment_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002k\"G/compute/v1" - + "/projects/{project}/regions/{region}/int" - + "erconnectAttachments: interconnect_attac" - + "hment_resource\022\332\001\n\004List\022;.google.cloud.c" - + "ompute.v1.ListInterconnectAttachmentsReq" - + "uest\0323.google.cloud.compute.v1.Interconn" - + "ectAttachmentList\"`\332A\016project,region\202\323\344\223" - + "\002I\022G/compute/v1/projects/{project}/regio" - + "ns/{region}/interconnectAttachments\022\324\002\n\005" - + "Patch\022;.google.cloud.compute.v1.PatchInt" - + "erconnectAttachmentRequest\032\".google.clou" - + "d.compute.v1.Operation\"\351\001\332AGproject,regi" - + "on,interconnect_attachment,interconnect_" - + "attachment_resource\212N\020RegionOperations\202\323" - + "\344\223\002\205\0012a/compute/v1/projects/{project}/re" - + "gions/{region}/interconnectAttachments/{" - + "interconnect_attachment}: interconnect_a" - + "ttachment_resource\022\314\002\n\tSetLabels\022?.googl" - + "e.cloud.compute.v1.SetLabelsInterconnect" - + "AttachmentRequest\032\".google.cloud.compute" - + ".v1.Operation\"\331\001\332A:project,region,resour" - + "ce,region_set_labels_request_resource\212N\020" - + "RegionOperations\202\323\344\223\002\202\001\"\\/compute/v1/pro" - + "jects/{project}/regions/{region}/interco" - + "nnectAttachments/{resource}/setLabels:\"r" - + "egion_set_labels_request_resource\032\202\001\312A\026c" + + "h/cloud-platform\212\324\333\322\017\n2026-09-012\203\020\n\025Ins" + + "tantSnapshotGroups\022\204\002\n\006Delete\022:.google.c" + + "loud.compute.v1.DeleteInstantSnapshotGro" + + "upRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\231\001\332A#project,zone,instant_snapshot" + + "_group\212N\016ZoneOperations\202\323\344\223\002\\*Z/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "ntSnapshotGroups/{instant_snapshot_group" + + "}\022\370\001\n\003Get\0227.google.cloud.compute.v1.GetI" + + "nstantSnapshotGroupRequest\032-.google.clou" + + "d.compute.v1.InstantSnapshotGroup\"\210\001\332A#p" + + "roject,zone,instant_snapshot_group\202\323\344\223\002\\" + + "\022Z/compute/v1/projects/{project}/zones/{" + + "zone}/instantSnapshotGroups/{instant_sna" + + "pshot_group}\022\354\001\n\014GetIamPolicy\022@.google.c" + + "loud.compute.v1.GetIamPolicyInstantSnaps" + + "hotGroupRequest\032\037.google.cloud.compute.v" + + "1.Policy\"y\332A\025project,zone,resource\202\323\344\223\002[" + + "\022Y/compute/v1/projects/{project}/zones/{" + + "zone}/instantSnapshotGroups/{resource}/g" + + "etIamPolicy\022\225\002\n\006Insert\022:.google.cloud.co" + + "mpute.v1.InsertInstantSnapshotGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\252" + + "\001\332A,project,zone,instant_snapshot_group_" + + "resource\212N\016ZoneOperations\202\323\344\223\002d\"A/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tantSnapshotGroups:\037instant_snapshot_gro" + + "up_resource\022\317\001\n\004List\0229.google.cloud.comp" + + "ute.v1.ListInstantSnapshotGroupsRequest\032" + + "2.google.cloud.compute.v1.ListInstantSna" + + "pshotGroups\"X\332A\014project,zone\202\323\344\223\002C\022A/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instantSnapshotGroups\022\260\002\n\014SetIamPolicy\022@" + + ".google.cloud.compute.v1.SetIamPolicyIns" + + "tantSnapshotGroupRequest\032\037.google.cloud." + + "compute.v1.Policy\"\274\001\332A6project,zone,reso" + + "urce,zone_set_policy_request_resource\202\323\344" + + "\223\002}\"Y/compute/v1/projects/{project}/zone" + + "s/{zone}/instantSnapshotGroups/{resource" + + "}/setIamPolicy: zone_set_policy_request_" + + "resource\022\326\002\n\022TestIamPermissions\022F.google" + + ".cloud.compute.v1.TestIamPermissionsInst" + + "antSnapshotGroupRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\305\001\332A7p" + + "roject,zone,resource,test_permissions_re" + + "quest_resource\202\323\344\223\002\204\001\"_/compute/v1/proje" + + "cts/{project}/zones/{zone}/instantSnapsh" + + "otGroups/{resource}/testIamPermissions:!" + + "test_permissions_request_resource\032\202\001\312A\026c" + "ompute.googleapis.com\322AVhttps://www.goog" + "leapis.com/auth/compute,https://www.goog" + "leapis.com/auth/cloud-platform\212\324\333\322\017\n2026" - + "-09-012\311\026\n\022InterconnectGroups\022\363\002\n\rCreate" - + "Members\022>.google.cloud.compute.v1.Create" - + "MembersInterconnectGroupRequest\032\".google" - + ".cloud.compute.v1.Operation\"\375\001\332ANproject" - + ",interconnect_group,interconnect_groups_" - + "create_members_request_resource\212N\020Global" - + "Operations\202\323\344\223\002\222\001\"[/compute/v1/projects/" - + "{project}/global/interconnectGroups/{int" - + "erconnect_group}/createMembers:3intercon" - + "nect_groups_create_members_request_resou" - + "rce\022\355\001\n\006Delete\0227.google.cloud.compute.v1" - + ".DeleteInterconnectGroupRequest\032\".google" - + ".cloud.compute.v1.Operation\"\205\001\332A\032project" - + ",interconnect_group\212N\020GlobalOperations\202\323" - + "\344\223\002O*M/compute/v1/projects/{project}/glo" - + "bal/interconnectGroups/{interconnect_gro" - + "up}\022\333\001\n\003Get\0224.google.cloud.compute.v1.Ge" - + "tInterconnectGroupRequest\032*.google.cloud" - + ".compute.v1.InterconnectGroup\"r\332A\032projec" - + "t,interconnect_group\202\323\344\223\002O\022M/compute/v1/" - + "projects/{project}/global/interconnectGr" - + "oups/{interconnect_group}\022\333\001\n\014GetIamPoli" - + "cy\022=.google.cloud.compute.v1.GetIamPolic" - + "yInterconnectGroupRequest\032\037.google.cloud" - + ".compute.v1.Policy\"k\332A\020project,resource\202" - + "\323\344\223\002R\022P/compute/v1/projects/{project}/gl" - + "obal/interconnectGroups/{resource}/getIa" - + "mPolicy\022\260\002\n\024GetOperationalStatus\022E.googl" - + "e.cloud.compute.v1.GetOperationalStatusI" - + "nterconnectGroupRequest\032G.google.cloud.c" - + "ompute.v1.InterconnectGroupsGetOperation" - + "alStatusResponse\"\207\001\332A\032project,interconne" - + "ct_group\202\323\344\223\002d\022b/compute/v1/projects/{pr" - + "oject}/global/interconnectGroups/{interc" - + "onnect_group}/getOperationalStatus\022\376\001\n\006I" - + "nsert\0227.google.cloud.compute.v1.InsertIn" - + "terconnectGroupRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\226\001\332A#project,intercon" - + "nect_group_resource\212N\020GlobalOperations\202\323" - + "\344\223\002W\"8/compute/v1/projects/{project}/glo" - + "bal/interconnectGroups:\033interconnect_gro" - + "up_resource\022\303\001\n\004List\0226.google.cloud.comp" - + "ute.v1.ListInterconnectGroupsRequest\0327.g" - + "oogle.cloud.compute.v1.InterconnectGroup" - + "sListResponse\"J\332A\007project\202\323\344\223\002:\0228/comput" - + "e/v1/projects/{project}/global/interconn" - + "ectGroups\022\244\002\n\005Patch\0226.google.cloud.compu" - + "te.v1.PatchInterconnectGroupRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\276\001\332A6pro" - + "ject,interconnect_group,interconnect_gro" - + "up_resource\212N\020GlobalOperations\202\323\344\223\002l2M/c" - + "ompute/v1/projects/{project}/global/inte" - + "rconnectGroups/{interconnect_group}:\033int" - + "erconnect_group_resource\022\243\002\n\014SetIamPolic" - + "y\022=.google.cloud.compute.v1.SetIamPolicy" - + "InterconnectGroupRequest\032\037.google.cloud." - + "compute.v1.Policy\"\262\001\332A3project,resource," - + "global_set_policy_request_resource\202\323\344\223\002v" - + "\"P/compute/v1/projects/{project}/global/" - + "interconnectGroups/{resource}/setIamPoli" - + "cy:\"global_set_policy_request_resource\022\304" - + "\002\n\022TestIamPermissions\022C.google.cloud.com" - + "pute.v1.TestIamPermissionsInterconnectGr" - + "oupRequest\0320.google.cloud.compute.v1.Tes" - + "tPermissionsResponse\"\266\001\332A2project,resour" - + "ce,test_permissions_request_resource\202\323\344\223" - + "\002{\"V/compute/v1/projects/{project}/globa" - + "l/interconnectGroups/{resource}/testIamP" - + "ermissions:!test_permissions_request_res" - + "ource\032\202\001\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\201\005\n\025InterconnectLocat" - + "ions\022\352\001\n\003Get\0227.google.cloud.compute.v1.G" - + "etInterconnectLocationRequest\032-.google.c" - + "loud.compute.v1.InterconnectLocation\"{\332A" - + "\035project,interconnect_location\202\323\344\223\002U\022S/c" + + "-09-012\224\023\n\020InstantSnapshots\022\326\001\n\016Aggregat" + + "edList\022>.google.cloud.compute.v1.Aggrega" + + "tedListInstantSnapshotsRequest\0326.google." + + "cloud.compute.v1.InstantSnapshotAggregat" + + "edList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/pr" + + "ojects/{project}/aggregated/instantSnaps" + + "hots\022\356\001\n\006Delete\0225.google.cloud.compute.v" + + "1.DeleteInstantSnapshotRequest\032\".google." + + "cloud.compute.v1.Operation\"\210\001\332A\035project," + + "zone,instant_snapshot\212N\016ZoneOperations\202\323" + + "\344\223\002Q*O/compute/v1/projects/{project}/zon" + + "es/{zone}/instantSnapshots/{instant_snap" + + "shot}\022\334\001\n\003Get\0222.google.cloud.compute.v1." + + "GetInstantSnapshotRequest\032(.google.cloud" + + ".compute.v1.InstantSnapshot\"w\332A\035project," + + "zone,instant_snapshot\202\323\344\223\002Q\022O/compute/v1" + + "/projects/{project}/zones/{zone}/instant" + + "Snapshots/{instant_snapshot}\022\342\001\n\014GetIamP" + + "olicy\022;.google.cloud.compute.v1.GetIamPo" + + "licyInstantSnapshotRequest\032\037.google.clou" + + "d.compute.v1.Policy\"t\332A\025project,zone,res" + + "ource\202\323\344\223\002V\022T/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instantSnapshots/{resou" + + "rce}/getIamPolicy\022\377\001\n\006Insert\0225.google.cl" + + "oud.compute.v1.InsertInstantSnapshotRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\231\001\332A&project,zone,instant_snapshot_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002Y\"\022." + + "rconnectAttachmentGroups/{interconnect_a" + + "ttachment_group}\022\220\002\n\003Get\022>.google.cloud." + + "compute.v1.GetInterconnectAttachmentGrou" + + "pRequest\0324.google.cloud.compute.v1.Inter" + + "connectAttachmentGroup\"\222\001\332A%project,inte" + + "rconnect_attachment_group\202\323\344\223\002d\022b/comput" + + "e/v1/projects/{project}/global/interconn" + + "ectAttachmentGroups/{interconnect_attach" + + "ment_group}\022\357\001\n\014GetIamPolicy\022G.google.cl" + + "oud.compute.v1.GetIamPolicyInterconnectA" + + "ttachmentGroupRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"u\332A\020project,resource\202\323\344\223\002" + + "\\\022Z/compute/v1/projects/{project}/global" + + "/interconnectAttachmentGroups/{resource}" + + "/getIamPolicy\022\344\002\n\024GetOperationalStatus\022O" + + ".google.cloud.compute.v1.GetOperationalS" + + "tatusInterconnectAttachmentGroupRequest\032" + + "Q.google.cloud.compute.v1.InterconnectAt" + + "tachmentGroupsGetOperationalStatusRespon" + + "se\"\247\001\332A%project,interconnect_attachment_" + + "group\202\323\344\223\002y\022w/compute/v1/projects/{proje" + + "ct}/global/interconnectAttachmentGroups/" + + "{interconnect_attachment_group}/getOpera" + + "tionalStatus\022\250\002\n\006Insert\022A.google.cloud.c" + + "ompute.v1.InsertInterconnectAttachmentGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\266\001\332A.project,interconnect_attachm" + + "ent_group_resource\212N\020GlobalOperations\202\323\344" + + "\223\002l\"B/compute/v1/projects/{project}/glob" + + "al/interconnectAttachmentGroups:&interco" + + "nnect_attachment_group_resource\022\341\001\n\004List" + + "\022@.google.cloud.compute.v1.ListInterconn" + + "ectAttachmentGroupsRequest\032A.google.clou" + + "d.compute.v1.InterconnectAttachmentGroup" + + "sListResponse\"T\332A\007project\202\323\344\223\002D\022B/comput" + + "e/v1/projects/{project}/global/interconn" + + "ectAttachmentGroups\022\345\002\n\005Patch\022@.google.c" + + "loud.compute.v1.PatchInterconnectAttachm" + + "entGroupRequest\032\".google.cloud.compute.v" + + "1.Operation\"\365\001\332ALproject,interconnect_at" + + "tachment_group,interconnect_attachment_g" + + "roup_resource\212N\020GlobalOperations\202\323\344\223\002\214\0012" + + "b/compute/v1/projects/{project}/global/i" + + "nterconnectAttachmentGroups/{interconnec" + + "t_attachment_group}:&interconnect_attach" + + "ment_group_resource\022\270\002\n\014SetIamPolicy\022G.g" + + "oogle.cloud.compute.v1.SetIamPolicyInter" + + "connectAttachmentGroupRequest\032\037.google.c" + + "loud.compute.v1.Policy\"\275\001\332A3project,reso" + + "urce,global_set_policy_request_resource\202" + + "\323\344\223\002\200\001\"Z/compute/v1/projects/{project}/g" + + "lobal/interconnectAttachmentGroups/{reso" + + "urce}/setIamPolicy:\"global_set_policy_re" + + "quest_resource\022\331\002\n\022TestIamPermissions\022M." + "google.cloud.compute.v1.TestIamPermissio" - + "nsMachineImageRequest\0320.google.cloud.com" - + "pute.v1.TestPermissionsResponse\"\261\001\332A2pro" - + "ject,resource,test_permissions_request_r" - + "esource\202\323\344\223\002v\"Q/compute/v1/projects/{pro" - + "ject}/global/machineImages/{resource}/te" - + "stIamPermissions:!test_permissions_reque" - + "st_resource\032\202\001\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform\212\324\333\322\017\n2026-09-012\223\006\n\014MachineType" - + "s\022\312\001\n\016AggregatedList\022:.google.cloud.comp" - + "ute.v1.AggregatedListMachineTypesRequest" - + "\0322.google.cloud.compute.v1.MachineTypeAg" - + "gregatedList\"H\332A\007project\202\323\344\223\0028\0226/compute" - + "/v1/projects/{project}/aggregated/machin" - + "eTypes\022\310\001\n\003Get\022..google.cloud.compute.v1" - + ".GetMachineTypeRequest\032$.google.cloud.co" - + "mpute.v1.MachineType\"k\332A\031project,zone,ma" - + "chine_type\202\323\344\223\002I\022G/compute/v1/projects/{" - + "project}/zones/{zone}/machineTypes/{mach" - + "ine_type}\022\263\001\n\004List\0220.google.cloud.comput" - + "e.v1.ListMachineTypesRequest\032(.google.cl" - + "oud.compute.v1.MachineTypeList\"O\332A\014proje" - + "ct,zone\202\323\344\223\002:\0228/compute/v1/projects/{pro" - + "ject}/zones/{zone}/machineTypes\032\264\001\312A\026com" - + "pute.googleapis.com\322A\207\001https://www.googl" - + "eapis.com/auth/compute.readonly,https://" - + "www.googleapis.com/auth/compute,https://" - + "www.googleapis.com/auth/cloud-platform\212\324" - + "\333\322\017\n2026-09-012\313\004\n\017ManagedRulesets\022\314\001\n\003G" - + "et\0221.google.cloud.compute.v1.GetManagedR" - + "ulesetRequest\032\'.google.cloud.compute.v1." - + "ManagedRuleset\"i\332A\027project,managed_rules" - + "et\202\323\344\223\002I\022G/compute/v1/projects/{project}" - + "/global/managedRulesets/{managed_ruleset" - + "}\022\261\001\n\004List\0223.google.cloud.compute.v1.Lis" - + "tManagedRulesetsRequest\032+.google.cloud.c" - + "ompute.v1.ManagedRulesetList\"G\332A\007project" - + "\202\323\344\223\0027\0225/compute/v1/projects/{project}/g" - + "lobal/managedRulesets\032\264\001\312A\026compute.googl" - + "eapis.com\322A\207\001https://www.googleapis.com/" - + "auth/compute.readonly,https://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" - + "9-012\201\024\n\022NetworkAttachments\022\334\001\n\016Aggregat" - + "edList\022@.google.cloud.compute.v1.Aggrega" - + "tedListNetworkAttachmentsRequest\0328.googl" - + "e.cloud.compute.v1.NetworkAttachmentAggr" - + "egatedList\"N\332A\007project\202\323\344\223\002>\022.google." + + "cloud.compute.v1.CreateMembersInterconne" + + "ctGroupRequest\032\".google.cloud.compute.v1" + + ".Operation\"\375\001\332ANproject,interconnect_gro" + + "up,interconnect_groups_create_members_re" + + "quest_resource\212N\020GlobalOperations\202\323\344\223\002\222\001" + + "\"[/compute/v1/projects/{project}/global/" + + "interconnectGroups/{interconnect_group}/" + + "createMembers:3interconnect_groups_creat" + + "e_members_request_resource\022\355\001\n\006Delete\0227." + + "google.cloud.compute.v1.DeleteInterconne" + + "ctGroupRequest\032\".google.cloud.compute.v1" + + ".Operation\"\205\001\332A\032project,interconnect_gro" + + "up\212N\020GlobalOperations\202\323\344\223\002O*M/compute/v1" + + "/projects/{project}/global/interconnectG" + + "roups/{interconnect_group}\022\333\001\n\003Get\0224.goo" + + "gle.cloud.compute.v1.GetInterconnectGrou" + + "pRequest\032*.google.cloud.compute.v1.Inter" + + "connectGroup\"r\332A\032project,interconnect_gr" + + "oup\202\323\344\223\002O\022M/compute/v1/projects/{project" + + "}/global/interconnectGroups/{interconnec" + + "t_group}\022\333\001\n\014GetIamPolicy\022=.google.cloud" + + ".compute.v1.GetIamPolicyInterconnectGrou" + + "pRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"k\332A\020project,resource\202\323\344\223\002R\022P/compute/v" + + "1/projects/{project}/global/interconnect" + + "Groups/{resource}/getIamPolicy\022\260\002\n\024GetOp" + + "erationalStatus\022E.google.cloud.compute.v" + + "1.GetOperationalStatusInterconnectGroupR" + + "equest\032G.google.cloud.compute.v1.Interco" + + "nnectGroupsGetOperationalStatusResponse\"" + + "\207\001\332A\032project,interconnect_group\202\323\344\223\002d\022b/" + + "compute/v1/projects/{project}/global/int" + + "erconnectGroups/{interconnect_group}/get" + + "OperationalStatus\022\376\001\n\006Insert\0227.google.cl" + + "oud.compute.v1.InsertInterconnectGroupRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\226\001\332A#project,interconnect_group_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002W\"8/compute/v1" + + "/projects/{project}/global/interconnectG" + + "roups:\033interconnect_group_resource\022\303\001\n\004L" + + "ist\0226.google.cloud.compute.v1.ListInterc" + + "onnectGroupsRequest\0327.google.cloud.compu" + + "te.v1.InterconnectGroupsListResponse\"J\332A" + + "\007project\202\323\344\223\002:\0228/compute/v1/projects/{pr" + + "oject}/global/interconnectGroups\022\244\002\n\005Pat" + + "ch\0226.google.cloud.compute.v1.PatchInterc" + + "onnectGroupRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\276\001\332A6project,interconnect" + + "_group,interconnect_group_resource\212N\020Glo" + + "balOperations\202\323\344\223\002l2M/compute/v1/project" + + "s/{project}/global/interconnectGroups/{i" + + "nterconnect_group}:\033interconnect_group_r" + + "esource\022\243\002\n\014SetIamPolicy\022=.google.cloud." + + "compute.v1.SetIamPolicyInterconnectGroup" + + "Request\032\037.google.cloud.compute.v1.Policy" + + "\"\262\001\332A3project,resource,global_set_policy" + + "_request_resource\202\323\344\223\002v\"P/compute/v1/pro" + + "jects/{project}/global/interconnectGroup" + + "s/{resource}/setIamPolicy:\"global_set_po" + + "licy_request_resource\022\304\002\n\022TestIamPermiss" + + "ions\022C.google.cloud.compute.v1.TestIamPe" + + "rmissionsInterconnectGroupRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\266\001\332A2project,resource,test_permissio" + + "ns_request_resource\202\323\344\223\002{\"V/compute/v1/p" + + "rojects/{project}/global/interconnectGro" + + "ups/{resource}/testIamPermissions:!test_" + + "permissions_request_resource\032\202\001\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform\212\324\333\322\017\n2026-09-0" + + "12\201\005\n\025InterconnectLocations\022\352\001\n\003Get\0227.go" + + "ogle.cloud.compute.v1.GetInterconnectLoc" + + "ationRequest\032-.google.cloud.compute.v1.I" + + "nterconnectLocation\"{\332A\035project,intercon" + + "nect_location\202\323\344\223\002U\022S/compute/v1/project" + + "s/{project}/global/interconnectLocations" + + "/{interconnect_location}\022\303\001\n\004List\0229.goog" + + "le.cloud.compute.v1.ListInterconnectLoca" + + "tionsRequest\0321.google.cloud.compute.v1.I" + + "nterconnectLocationList\"M\332A\007project\202\323\344\223\002" + + "=\022;/compute/v1/projects/{project}/global" + + "/interconnectLocations\032\264\001\312A\026compute.goog" + + "leapis.com\322A\207\001https://www.googleapis.com" + + "/auth/compute.readonly,https://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform\212\324\333\322\017\n2026-" + + "09-012\272\005\n\033InterconnectRemoteLocations\022\213\002" + + "\n\003Get\022=.google.cloud.compute.v1.GetInter" + + "connectRemoteLocationRequest\0323.google.cl" + + "oud.compute.v1.InterconnectRemoteLocatio" + + "n\"\217\001\332A$project,interconnect_remote_locat" + + "ion\202\323\344\223\002b\022`/compute/v1/projects/{project" + + "}/global/interconnectRemoteLocations/{in" + + "terconnect_remote_location}\022\325\001\n\004List\022?.g", + "oogle.cloud.compute.v1.ListInterconnectR" + + "emoteLocationsRequest\0327.google.cloud.com" + + "pute.v1.InterconnectRemoteLocationList\"S" + + "\332A\007project\202\323\344\223\002C\022A/compute/v1/projects/{" + + "project}/global/interconnectRemoteLocati" + + "ons\032\264\001\312A\026compute.googleapis.com\322A\207\001https" + + "://www.googleapis.com/auth/compute.reado" + + "nly,https://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform\212\324\333\322\017\n2026-09-012\256\022\n\rInterconn" + + "ects\022\326\001\n\006Delete\0222.google.cloud.compute.v" + + "1.DeleteInterconnectRequest\032\".google.clo" + + "ud.compute.v1.Operation\"t\332A\024project,inte" + + "rconnect\212N\020GlobalOperations\202\323\344\223\002D*B/comp" + + "ute/v1/projects/{project}/global/interco" + + "nnects/{interconnect}\022\300\001\n\003Get\022/.google.c" + + "loud.compute.v1.GetInterconnectRequest\032%" + + ".google.cloud.compute.v1.Interconnect\"a\332" + + "A\024project,interconnect\202\323\344\223\002D\022B/compute/v" + + "1/projects/{project}/global/interconnect" + + "s/{interconnect}\022\374\001\n\016GetDiagnostics\022:.go" + + "ogle.cloud.compute.v1.GetDiagnosticsInte" + + "rconnectRequest\032<.google.cloud.compute.v" + + "1.InterconnectsGetDiagnosticsResponse\"p\332" + + "A\024project,interconnect\202\323\344\223\002S\022Q/compute/v" + + "1/projects/{project}/global/interconnect" + + "s/{interconnect}/getDiagnostics\022\200\002\n\017GetM" + + "acsecConfig\022;.google.cloud.compute.v1.Ge" + + "tMacsecConfigInterconnectRequest\032=.googl" + + "e.cloud.compute.v1.InterconnectsGetMacse" + + "cConfigResponse\"q\332A\024project,interconnect" + + "\202\323\344\223\002T\022R/compute/v1/projects/{project}/g" + + "lobal/interconnects/{interconnect}/getMa" + + "csecConfig\022\350\001\n\006Insert\0222.google.cloud.com" + + "pute.v1.InsertInterconnectRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\205\001\332A\035proje" + + "ct,interconnect_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002L\"3/compute/v1/projects/{project" + + "}/global/interconnects:\025interconnect_res" + + "ource\022\253\001\n\004List\0221.google.cloud.compute.v1" + + ".ListInterconnectsRequest\032).google.cloud" + + ".compute.v1.InterconnectList\"E\332A\007project" + + "\202\323\344\223\0025\0223/compute/v1/projects/{project}/g" + + "lobal/interconnects\022\202\002\n\005Patch\0221.google.c" + + "loud.compute.v1.PatchInterconnectRequest" + + "\032\".google.cloud.compute.v1.Operation\"\241\001\332" + + "A*project,interconnect,interconnect_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002[2B/compute/" + + "v1/projects/{project}/global/interconnec" + + "ts/{interconnect}:\025interconnect_resource" + + "\022\246\002\n\tSetLabels\0225.google.cloud.compute.v1" + + ".SetLabelsInterconnectRequest\032\".google.c" + + "loud.compute.v1.Operation\"\275\001\332A3project,r" + + "esource,global_set_labels_request_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002n\"H/compute/v1" + + "/projects/{project}/global/interconnects" + + "/{resource}/setLabels:\"global_set_labels" + + "_request_resource\022\262\002\n\007SetName\0223.google.c" + + "loud.compute.v1.SetNameInterconnectReque" + + "st\032\".google.cloud.compute.v1.Operation\"\315" + + "\001\332A.google.cloud.comp" + + "ute.v1.TestIamPermissionsMachineImageReq" + + "uest\0320.google.cloud.compute.v1.TestPermi" + + "ssionsResponse\"\261\001\332A2project,resource,tes" + + "t_permissions_request_resource\202\323\344\223\002v\"Q/c" + + "ompute/v1/projects/{project}/global/mach" + + "ineImages/{resource}/testIamPermissions:" + + "!test_permissions_request_resource\032\202\001\312A\026" + + "compute.googleapis.com\322AVhttps://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" + + "6-09-012\223\006\n\014MachineTypes\022\312\001\n\016AggregatedL" + + "ist\022:.google.cloud.compute.v1.Aggregated" + + "ListMachineTypesRequest\0322.google.cloud.c" + + "ompute.v1.MachineTypeAggregatedList\"H\332A\007" + + "project\202\323\344\223\0028\0226/compute/v1/projects/{pro" + + "ject}/aggregated/machineTypes\022\310\001\n\003Get\022.." + + "google.cloud.compute.v1.GetMachineTypeRe" + + "quest\032$.google.cloud.compute.v1.MachineT" + + "ype\"k\332A\031project,zone,machine_type\202\323\344\223\002I\022" + + "G/compute/v1/projects/{project}/zones/{z" + + "one}/machineTypes/{machine_type}\022\263\001\n\004Lis" + + "t\0220.google.cloud.compute.v1.ListMachineT" + + "ypesRequest\032(.google.cloud.compute.v1.Ma" + + "chineTypeList\"O\332A\014project,zone\202\323\344\223\002:\0228/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/machineTypes\032\264\001\312A\026compute.googleapis.c" + + "om\322A\207\001https://www.googleapis.com/auth/co" + + "mpute.readonly,https://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\313\004" + + "\n\017ManagedRulesets\022\314\001\n\003Get\0221.google.cloud" + + ".compute.v1.GetManagedRulesetRequest\032\'.g" + + "oogle.cloud.compute.v1.ManagedRuleset\"i\332" + + "A\027project,managed_ruleset\202\323\344\223\002I\022G/comput" + + "e/v1/projects/{project}/global/managedRu" + + "lesets/{managed_ruleset}\022\261\001\n\004List\0223.goog" + + "le.cloud.compute.v1.ListManagedRulesetsR" + + "equest\032+.google.cloud.compute.v1.Managed" + + "RulesetList\"G\332A\007project\202\323\344\223\0027\0225/compute/" + + "v1/projects/{project}/global/managedRule" + + "sets\032\264\001\312A\026compute.googleapis.com\322A\207\001http" + + "s://www.googleapis.com/auth/compute.read" + + "only,https://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform\212\324\333\322\017\n2026-09-012\201\024\n\022NetworkA" + + "ttachments\022\334\001\n\016AggregatedList\022@.google.c" + + "loud.compute.v1.AggregatedListNetworkAtt" + + "achmentsRequest\0328.google.cloud.compute.v" + + "1.NetworkAttachmentAggregatedList\"N\332A\007pr" + + "oject\202\323\344\223\002>\022.google.cloud.compu" - + "te.v1.PatchRuleNetworkFirewallPolicyRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\304\001\332A5project,firewall_policy,firewall_po" - + "licy_rule_resource\212N\020GlobalOperations\202\323\344" - + "\223\002s\"R/compute/v1/projects/{project}/glob" - + "al/firewallPolicies/{firewall_policy}/pa" - + "tchRule:\035firewall_policy_rule_resource\022\221" - + "\002\n\021RemoveAssociation\022F.google.cloud.comp" - + "ute.v1.RemoveAssociationNetworkFirewallP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\217\001\332A\027project,firewall_policy\212N\020" - + "GlobalOperations\202\323\344\223\002\\\"Z/compute/v1/proj" - + "ects/{project}/global/firewallPolicies/{" - + "firewall_policy}/removeAssociation\022\251\002\n\031R" - + "emovePacketMirroringRule\022N.google.cloud." - + "compute.v1.RemovePacketMirroringRuleNetw" - + "orkFirewallPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\227\001\332A\027project,firewa" - + "ll_policy\212N\020GlobalOperations\202\323\344\223\002d\"b/com" - + "pute/v1/projects/{project}/global/firewa" - + "llPolicies/{firewall_policy}/removePacke" - + "tMirroringRule\022\374\001\n\nRemoveRule\022?.google.c" - + "loud.compute.v1.RemoveRuleNetworkFirewal" + + "es/{resource}/getIamPolicy\022\226\002\n\026GetPacket" + + "MirroringRule\022K.google.cloud.compute.v1." + + "GetPacketMirroringRuleNetworkFirewallPol" + + "icyRequest\032+.google.cloud.compute.v1.Fir" + + "ewallPolicyRule\"\201\001\332A\027project,firewall_po" + + "licy\202\323\344\223\002a\022_/compute/v1/projects/{projec" + + "t}/global/firewallPolicies/{firewall_pol" + + "icy}/getPacketMirroringRule\022\350\001\n\007GetRule\022" + + "<.google.cloud.compute.v1.GetRuleNetwork" + + "FirewallPolicyRequest\032+.google.cloud.com" + + "pute.v1.FirewallPolicyRule\"r\332A\027project,f" + + "irewall_policy\202\323\344\223\002R\022P/compute/v1/projec" + + "ts/{project}/global/firewallPolicies/{fi" + + "rewall_policy}/getRule\022\372\001\n\006Insert\022;.goog" + + "le.cloud.compute.v1.InsertNetworkFirewal" + "lPolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\210\001\332A\027project,firewall_policy\212" - + "N\020GlobalOperations\202\323\344\223\002U\"S/compute/v1/pr" - + "ojects/{project}/global/firewallPolicies" - + "/{firewall_policy}/removeRule\022\245\002\n\014SetIam" - + "Policy\022A.google.cloud.compute.v1.SetIamP" - + "olicyNetworkFirewallPolicyRequest\032\037.goog" - + "le.cloud.compute.v1.Policy\"\260\001\332A3project," - + "resource,global_set_policy_request_resou" - + "rce\202\323\344\223\002t\"N/compute/v1/projects/{project" - + "}/global/firewallPolicies/{resource}/set" - + "IamPolicy:\"global_set_policy_request_res" - + "ource\022\306\002\n\022TestIamPermissions\022G.google.cl" - + "oud.compute.v1.TestIamPermissionsNetwork" - + "FirewallPolicyRequest\0320.google.cloud.com" - + "pute.v1.TestPermissionsResponse\"\264\001\332A2pro" - + "ject,resource,test_permissions_request_r" - + "esource\202\323\344\223\002y\"T/compute/v1/projects/{pro" - + "ject}/global/firewallPolicies/{resource}" - + "/testIamPermissions:!test_permissions_re" - + "quest_resource\032\202\001\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform\212\324\333\322\017\n2026-09-012\324\004\n\017NetworkP" - + "rofiles\022\314\001\n\003Get\0221.google.cloud.compute.v" - + "1.GetNetworkProfileRequest\032\'.google.clou" - + "d.compute.v1.NetworkProfile\"i\332A\027project," - + "network_profile\202\323\344\223\002I\022G/compute/v1/proje" - + "cts/{project}/global/networkProfiles/{ne" - + "twork_profile}\022\272\001\n\004List\0223.google.cloud.c" - + "ompute.v1.ListNetworkProfilesRequest\0324.g" - + "oogle.cloud.compute.v1.NetworkProfilesLi" - + "stResponse\"G\332A\007project\202\323\344\223\0027\0225/compute/v" - + "1/projects/{project}/global/networkProfi" - + "les\032\264\001\312A\026compute.googleapis.com\322A\207\001https" - + "://www.googleapis.com/auth/compute.reado" - + "nly,https://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform\212\324\333\322\017\n2026-09-012\236\033\n\010Networks\022" - + "\243\002\n\nAddPeering\0221.google.cloud.compute.v1" - + ".AddPeeringNetworkRequest\032\".google.cloud" - + ".compute.v1.Operation\"\275\001\332A5project,netwo" - + "rk,networks_add_peering_request_resource" - + "\212N\020GlobalOperations\202\323\344\223\002l\"C/compute/v1/p" - + "rojects/{project}/global/networks/{netwo" - + "rk}/addPeering:%networks_add_peering_req" - + "uest_resource\022\370\002\n\032CancelRequestRemovePee" - + "ring\022A.google.cloud.compute.v1.CancelReq" - + "uestRemovePeeringNetworkRequest\032\".google" - + ".cloud.compute.v1.Operation\"\362\001\332AGproject" - + ",network,networks_cancel_request_remove_" - + "peering_request_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002\216\001\"S/compute/v1/projects/{projec" - + "t}/global/networks/{network}/cancelReque" - + "stRemovePeering:7networks_cancel_request" - + "_remove_peering_request_resource\022\302\001\n\006Del" - + "ete\022-.google.cloud.compute.v1.DeleteNetw" - + "orkRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"e\332A\017project,network\212N\020GlobalOpera" - + "tions\202\323\344\223\002:*8/compute/v1/projects/{proje" - + "ct}/global/networks/{network}\022\247\001\n\003Get\022*." - + "google.cloud.compute.v1.GetNetworkReques" - + "t\032 .google.cloud.compute.v1.Network\"R\332A\017" - + "project,network\202\323\344\223\002:\0228/compute/v1/proje" - + "cts/{project}/global/networks/{network}\022" - + "\377\001\n\025GetEffectiveFirewalls\022<.google.cloud" - + ".compute.v1.GetEffectiveFirewallsNetwork" - + "Request\032>.google.cloud.compute.v1.Networ" - + "ksGetEffectiveFirewallsResponse\"h\332A\017proj" - + "ect,network\202\323\344\223\002P\022N/compute/v1/projects/" - + "{project}/global/networks/{network}/getE" - + "ffectiveFirewalls\022\323\001\n\006Insert\022-.google.cl" - + "oud.compute.v1.InsertNetworkRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"v\332A\030proj" - + "ect,network_resource\212N\020GlobalOperations\202" - + "\323\344\223\002B\"./compute/v1/projects/{project}/gl" - + "obal/networks:\020network_resource\022\234\001\n\004List" - + "\022,.google.cloud.compute.v1.ListNetworksR" - + "equest\032$.google.cloud.compute.v1.Network" - + "List\"@\332A\007project\202\323\344\223\0020\022./compute/v1/proj" - + "ects/{project}/global/networks\022\351\001\n\021ListP" - + "eeringRoutes\0229.google.cloud.compute.v1.L" - + "istPeeringRoutesNetworksRequest\0323.google" - + ".cloud.compute.v1.ExchangedPeeringRoutes" - + "List\"d\332A\017project,network\202\323\344\223\002L\022J/compute" - + "/v1/projects/{project}/global/networks/{" - + "network}/listPeeringRoutes\022\344\001\n\005Patch\022,.g" - + "oogle.cloud.compute.v1.PatchNetworkReque" - + "st\032\".google.cloud.compute.v1.Operation\"\210" - + "\001\332A project,network,network_resource\212N\020G" - + "lobalOperations\202\323\344\223\002L28/compute/v1/proje" - + "cts/{project}/global/networks/{network}:" - + "\020network_resource\022\262\002\n\rRemovePeering\0224.go" - + "ogle.cloud.compute.v1.RemovePeeringNetwo" - + "rkRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\306\001\332A8project,network,networks_remo" - + "ve_peering_request_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002r\"F/compute/v1/projects/{proj" - + "ect}/global/networks/{network}/removePee" - + "ring:(networks_remove_peering_request_re" - + "source\022\330\002\n\024RequestRemovePeering\022;.google" - + ".cloud.compute.v1.RequestRemovePeeringNe" - + "tworkRequest\032\".google.cloud.compute.v1.O" - + "peration\"\336\001\332A@project,network,networks_r" - + "equest_remove_peering_request_resource\212N" - + "\020GlobalOperations\202\323\344\223\002\201\001\"M/compute/v1/pr" - + "ojects/{project}/global/networks/{networ" - + "k}/requestRemovePeering:0networks_reques" - + "t_remove_peering_request_resource\022\355\001\n\022Sw" - + "itchToCustomMode\0229.google.cloud.compute." - + "v1.SwitchToCustomModeNetworkRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"x\332A\017proj" - + "ect,network\212N\020GlobalOperations\202\323\344\223\002M\"K/c" - + "ompute/v1/projects/{project}/global/netw" - + "orks/{network}/switchToCustomMode\022\262\002\n\rUp" - + "datePeering\0224.google.cloud.compute.v1.Up" - + "datePeeringNetworkRequest\032\".google.cloud" - + ".compute.v1.Operation\"\306\001\332A8project,netwo" - + "rk,networks_update_peering_request_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002r2F/compute/v" - + "1/projects/{project}/global/networks/{ne" - + "twork}/updatePeering:(networks_update_pe" - + "ering_request_resource\032\202\001\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\374 \n\n" - + "NodeGroups\022\262\002\n\010AddNodes\0221.google.cloud.c" - + "ompute.v1.AddNodesNodeGroupRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\316\001\332A>proj" - + "ect,zone,node_group,node_groups_add_node" - + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" - + "v\"L/compute/v1/projects/{project}/zones/" - + "{zone}/nodeGroups/{node_group}/addNodes:" - + "&node_groups_add_nodes_request_resource\022" - + "\304\001\n\016AggregatedList\0228.google.cloud.comput" - + "e.v1.AggregatedListNodeGroupsRequest\0320.g" - + "oogle.cloud.compute.v1.NodeGroupAggregat" - + "edList\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/pr" - + "ojects/{project}/aggregated/nodeGroups\022\325" - + "\001\n\006Delete\022/.google.cloud.compute.v1.Dele" - + "teNodeGroupRequest\032\".google.cloud.comput" - + "e.v1.Operation\"v\332A\027project,zone,node_gro" - + "up\212N\016ZoneOperations\202\323\344\223\002E*C/compute/v1/p" - + "rojects/{project}/zones/{zone}/nodeGroup" - + "s/{node_group}\022\301\002\n\013DeleteNodes\0224.google." - + "cloud.compute.v1.DeleteNodesNodeGroupReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\327\001\332AAproject,zone,node_group,node_group" - + "s_delete_nodes_request_resource\212N\016ZoneOp" - + "erations\202\323\344\223\002|\"O/compute/v1/projects/{pr" - + "oject}/zones/{zone}/nodeGroups/{node_gro" - + "up}/deleteNodes:)node_groups_delete_node" - + "s_request_resource\022\276\001\n\003Get\022,.google.clou" - + "d.compute.v1.GetNodeGroupRequest\032\".googl" - + "e.cloud.compute.v1.NodeGroup\"e\332A\027project" - + ",zone,node_group\202\323\344\223\002E\022C/compute/v1/proj" - + "ects/{project}/zones/{zone}/nodeGroups/{" - + "node_group}\022\326\001\n\014GetIamPolicy\0225.google.cl" - + "oud.compute.v1.GetIamPolicyNodeGroupRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"n\332A" - + "\025project,zone,resource\202\323\344\223\002P\022N/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups/{resource}/getIamPolicy\022\372\001\n\006Insert\022" - + "/.google.cloud.compute.v1.InsertNodeGrou" - + "pRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\232\001\332A3project,zone,initial_node_coun" - + "t,node_group_resource\212N\016ZoneOperations\202\323" - + "\344\223\002M\"6/compute/v1/projects/{project}/zon" - + "es/{zone}/nodeGroups:\023node_group_resourc" - + "e\022\255\001\n\004List\022..google.cloud.compute.v1.Lis" - + "tNodeGroupsRequest\032&.google.cloud.comput" - + "e.v1.NodeGroupList\"M\332A\014project,zone\202\323\344\223\002" - + "8\0226/compute/v1/projects/{project}/zones/" - + "{zone}/nodeGroups\022\337\001\n\tListNodes\0223.google" - + ".cloud.compute.v1.ListNodesNodeGroupsReq" - + "uest\032,.google.cloud.compute.v1.NodeGroup" - + "sListNodes\"o\332A\027project,zone,node_group\202\323" - + "\344\223\002O\"M/compute/v1/projects/{project}/zon" - + "es/{zone}/nodeGroups/{node_group}/listNo" - + "des\022\375\001\n\005Patch\022..google.cloud.compute.v1." - + "PatchNodeGroupRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\237\001\332A+project,zone,node" - + "_group,node_group_resource\212N\016ZoneOperati" - + "ons\202\323\344\223\002Z2C/compute/v1/projects/{project" - + "}/zones/{zone}/nodeGroups/{node_group}:\023" - + "node_group_resource\022\345\002\n\022PerformMaintenan" - + "ce\022;.google.cloud.compute.v1.PerformMain" - + "tenanceNodeGroupRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\355\001\332AHproject,zone,no" - + "de_group,node_groups_perform_maintenance" - + "_request_resource\212N\016ZoneOperations\202\323\344\223\002\212" - + "\001\"V/compute/v1/projects/{project}/zones/" - + "{zone}/nodeGroups/{node_group}/performMa" - + "intenance:0node_groups_perform_maintenan" - + "ce_request_resource\022\232\002\n\014SetIamPolicy\0225.g" - + "oogle.cloud.compute.v1.SetIamPolicyNodeG" - + "roupRequest\032\037.google.cloud.compute.v1.Po" - + "licy\"\261\001\332A6project,zone,resource,zone_set" - + "_policy_request_resource\202\323\344\223\002r\"N/compute" - + "/v1/projects/{project}/zones/{zone}/node" - + "Groups/{resource}/setIamPolicy: zone_set" - + "_policy_request_resource\022\330\002\n\017SetNodeTemp" - + "late\0228.google.cloud.compute.v1.SetNodeTe" - + "mplateNodeGroupRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\346\001\332AFproject,zone,nod" - + "e_group,node_groups_set_node_template_re" - + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"S" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/nodeGroups/{node_group}/setNodeTempl" - + "ate:.node_groups_set_node_template_reque" - + "st_resource\022\205\003\n\030SimulateMaintenanceEvent" - + "\022A.google.cloud.compute.v1.SimulateMaint" - + "enanceEventNodeGroupRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\201\002\332AOproject,zon" - + "e,node_group,node_groups_simulate_mainte" - + "nance_event_request_resource\212N\016ZoneOpera" - + "tions\202\323\344\223\002\227\001\"\\/compute/v1/projects/{proj" - + "ect}/zones/{zone}/nodeGroups/{node_group" - + "}/simulateMaintenanceEvent:7node_groups_" - + "simulate_maintenance_event_request_resou" - + "rce\022\277\002\n\022TestIamPermissions\022;.google.clou" - + "d.compute.v1.TestIamPermissionsNodeGroup" - + "Request\0320.google.cloud.compute.v1.TestPe" - + "rmissionsResponse\"\271\001\332A7project,zone,reso" - + "urce,test_permissions_request_resource\202\323" - + "\344\223\002y\"T/compute/v1/projects/{project}/zon" - + "es/{zone}/nodeGroups/{resource}/testIamP" - + "ermissions:!test_permissions_request_res" - + "ource\032\202\001\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\305\020\n\rNodeTemplates\022\315\001\n" - + "\016AggregatedList\022;.google.cloud.compute.v" - + "1.AggregatedListNodeTemplatesRequest\0323.g" - + "oogle.cloud.compute.v1.NodeTemplateAggre" - + "gatedList\"I\332A\007project\202\323\344\223\0029\0227/compute/v1" - + "/projects/{project}/aggregated/nodeTempl" - + "ates\022\352\001\n\006Delete\0222.google.cloud.compute.v" - + "1.DeleteNodeTemplateRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\207\001\332A\034project,reg" - + "ion,node_template\212N\020RegionOperations\202\323\344\223" - + "\002O*M/compute/v1/projects/{project}/regio" - + "ns/{region}/nodeTemplates/{node_template" - + "}\022\323\001\n\003Get\022/.google.cloud.compute.v1.GetN" - + "odeTemplateRequest\032%.google.cloud.comput" - + "e.v1.NodeTemplate\"t\332A\034project,region,nod" - + "e_template\202\323\344\223\002O\022M/compute/v1/projects/{" - + "project}/regions/{region}/nodeTemplates/" - + "{node_template}\022\342\001\n\014GetIamPolicy\0228.googl" - + "e.cloud.compute.v1.GetIamPolicyNodeTempl" - + "ateRequest\032\037.google.cloud.compute.v1.Pol" - + "icy\"w\332A\027project,region,resource\202\323\344\223\002W\022U/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/nodeTemplates/{resource}/getIamPo" - + "licy\022\373\001\n\006Insert\0222.google.cloud.compute.v" - + "1.InsertNodeTemplateRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\230\001\332A%project,reg" - + "ion,node_template_resource\212N\020RegionOpera" - + "tions\202\323\344\223\002W\"=/compute/v1/projects/{proje" - + "ct}/regions/{region}/nodeTemplates:\026node" - + "_template_resource\022\274\001\n\004List\0221.google.clo" - + "ud.compute.v1.ListNodeTemplatesRequest\032)", - ".google.cloud.compute.v1.NodeTemplateLis" - + "t\"V\332A\016project,region\202\323\344\223\002?\022=/compute/v1/" - + "projects/{project}/regions/{region}/node" - + "Templates\022\252\002\n\014SetIamPolicy\0228.google.clou" - + "d.compute.v1.SetIamPolicyNodeTemplateReq" - + "uest\032\037.google.cloud.compute.v1.Policy\"\276\001" - + "\332A:project,region,resource,region_set_po" - + "licy_request_resource\202\323\344\223\002{\"U/compute/v1" - + "/projects/{project}/regions/{region}/nod" - + "eTemplates/{resource}/setIamPolicy:\"regi" - + "on_set_policy_request_resource\022\314\002\n\022TestI" - + "amPermissions\022>.google.cloud.compute.v1." - + "TestIamPermissionsNodeTemplateRequest\0320." - + "google.cloud.compute.v1.TestPermissionsR" - + "esponse\"\303\001\332A9project,region,resource,tes" - + "t_permissions_request_resource\202\323\344\223\002\200\001\"[/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/nodeTemplates/{resource}/testIamP" - + "ermissions:!test_permissions_request_res" + + ".Operation\"\216\001\332A project,firewall_policy_" + + "resource\212N\020GlobalOperations\202\323\344\223\002R\"6/comp" + + "ute/v1/projects/{project}/global/firewal" + + "lPolicies:\030firewall_policy_resource\022\272\001\n\004" + + "List\022;.google.cloud.compute.v1.ListNetwo" + + "rkFirewallPoliciesRequest\032+.google.cloud" + + ".compute.v1.FirewallPolicyList\"H\332A\007proje" + + "ct\202\323\344\223\0028\0226/compute/v1/projects/{project}" + + "/global/firewallPolicies\022\232\002\n\005Patch\022:.goo" + + "gle.cloud.compute.v1.PatchNetworkFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\260\001\332A0project,firewall_policy," + + "firewall_policy_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002d2H/compute/v1/projects/{project" + + "}/global/firewallPolicies/{firewall_poli" + + "cy}:\030firewall_policy_resource\022\344\002\n\030PatchP" + + "acketMirroringRule\022M.google.cloud.comput" + + "e.v1.PatchPacketMirroringRuleNetworkFire" + + "wallPolicyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\324\001\332A5project,firewall_poli" + + "cy,firewall_policy_rule_resource\212N\020Globa" + + "lOperations\202\323\344\223\002\202\001\"a/compute/v1/projects" + + "/{project}/global/firewallPolicies/{fire" + + "wall_policy}/patchPacketMirroringRule:\035f" + + "irewall_policy_rule_resource\022\266\002\n\tPatchRu" + + "le\022>.google.cloud.compute.v1.PatchRuleNe" + + "tworkFirewallPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\304\001\332A5project,fire" + + "wall_policy,firewall_policy_rule_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002s\"R/compute/v1/" + + "projects/{project}/global/firewallPolici" + + "es/{firewall_policy}/patchRule:\035firewall" + + "_policy_rule_resource\022\221\002\n\021RemoveAssociat" + + "ion\022F.google.cloud.compute.v1.RemoveAsso" + + "ciationNetworkFirewallPolicyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\217\001\332A\027pro" + + "ject,firewall_policy\212N\020GlobalOperations\202" + + "\323\344\223\002\\\"Z/compute/v1/projects/{project}/gl" + + "obal/firewallPolicies/{firewall_policy}/" + + "removeAssociation\022\251\002\n\031RemovePacketMirror" + + "ingRule\022N.google.cloud.compute.v1.Remove" + + "PacketMirroringRuleNetworkFirewallPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\227\001\332A\027project,firewall_policy\212N\020Globa" + + "lOperations\202\323\344\223\002d\"b/compute/v1/projects/" + + "{project}/global/firewallPolicies/{firew" + + "all_policy}/removePacketMirroringRule\022\374\001" + + "\n\nRemoveRule\022?.google.cloud.compute.v1.R" + + "emoveRuleNetworkFirewallPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\210\001\332A\027p" + + "roject,firewall_policy\212N\020GlobalOperation" + + "s\202\323\344\223\002U\"S/compute/v1/projects/{project}/" + + "global/firewallPolicies/{firewall_policy" + + "}/removeRule\022\245\002\n\014SetIamPolicy\022A.google.c" + + "loud.compute.v1.SetIamPolicyNetworkFirew" + + "allPolicyRequest\032\037.google.cloud.compute." + + "v1.Policy\"\260\001\332A3project,resource,global_s" + + "et_policy_request_resource\202\323\344\223\002t\"N/compu" + + "te/v1/projects/{project}/global/firewall" + + "Policies/{resource}/setIamPolicy:\"global" + + "_set_policy_request_resource\022\306\002\n\022TestIam" + + "Permissions\022G.google.cloud.compute.v1.Te" + + "stIamPermissionsNetworkFirewallPolicyReq" + + "uest\0320.google.cloud.compute.v1.TestPermi" + + "ssionsResponse\"\264\001\332A2project,resource,tes" + + "t_permissions_request_resource\202\323\344\223\002y\"T/c" + + "ompute/v1/projects/{project}/global/fire" + + "wallPolicies/{resource}/testIamPermissio" + + "ns:!test_permissions_request_resource\032\202\001" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform\212\324\333\322\017\n" + + "2026-09-012\324\004\n\017NetworkProfiles\022\314\001\n\003Get\0221" + + ".google.cloud.compute.v1.GetNetworkProfi" + + "leRequest\032\'.google.cloud.compute.v1.Netw" + + "orkProfile\"i\332A\027project,network_profile\202\323" + + "\344\223\002I\022G/compute/v1/projects/{project}/glo" + + "bal/networkProfiles/{network_profile}\022\272\001" + + "\n\004List\0223.google.cloud.compute.v1.ListNet" + + "workProfilesRequest\0324.google.cloud.compu" + + "te.v1.NetworkProfilesListResponse\"G\332A\007pr" + + "oject\202\323\344\223\0027\0225/compute/v1/projects/{proje" + + "ct}/global/networkProfiles\032\264\001\312A\026compute." + + "googleapis.com\322A\207\001https://www.googleapis" + + ".com/auth/compute.readonly,https://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" + + "026-09-012\236\033\n\010Networks\022\243\002\n\nAddPeering\0221." + + "google.cloud.compute.v1.AddPeeringNetwor" + + "kRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\275\001\332A5project,network,networks_add_p" + + "eering_request_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002l\"C/compute/v1/projects/{project}" + + "/global/networks/{network}/addPeering:%n" + + "etworks_add_peering_request_resource\022\370\002\n" + + "\032CancelRequestRemovePeering\022A.google.clo" + + "ud.compute.v1.CancelRequestRemovePeering" + + "NetworkRequest\032\".google.cloud.compute.v1" + + ".Operation\"\362\001\332AGproject,network,networks" + + "_cancel_request_remove_peering_request_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002\216\001\"S/comp" + + "ute/v1/projects/{project}/global/network" + + "s/{network}/cancelRequestRemovePeering:7" + + "networks_cancel_request_remove_peering_r" + + "equest_resource\022\302\001\n\006Delete\022-.google.clou" + + "d.compute.v1.DeleteNetworkRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"e\332A\017projec" + + "t,network\212N\020GlobalOperations\202\323\344\223\002:*8/com" + + "pute/v1/projects/{project}/global/networ" + + "ks/{network}\022\247\001\n\003Get\022*.google.cloud.comp" + + "ute.v1.GetNetworkRequest\032 .google.cloud." + + "compute.v1.Network\"R\332A\017project,network\202\323" + + "\344\223\002:\0228/compute/v1/projects/{project}/glo" + + "bal/networks/{network}\022\377\001\n\025GetEffectiveF" + + "irewalls\022<.google.cloud.compute.v1.GetEf" + + "fectiveFirewallsNetworkRequest\032>.google." + + "cloud.compute.v1.NetworksGetEffectiveFir" + + "ewallsResponse\"h\332A\017project,network\202\323\344\223\002P" + + "\022N/compute/v1/projects/{project}/global/" + + "networks/{network}/getEffectiveFirewalls" + + "\022\323\001\n\006Insert\022-.google.cloud.compute.v1.In" + + "sertNetworkRequest\032\".google.cloud.comput" + + "e.v1.Operation\"v\332A\030project,network_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002B\"./compute/v" + + "1/projects/{project}/global/networks:\020ne" + + "twork_resource\022\234\001\n\004List\022,.google.cloud.c" + + "ompute.v1.ListNetworksRequest\032$.google.c" + + "loud.compute.v1.NetworkList\"@\332A\007project\202" + + "\323\344\223\0020\022./compute/v1/projects/{project}/gl" + + "obal/networks\022\351\001\n\021ListPeeringRoutes\0229.go" + + "ogle.cloud.compute.v1.ListPeeringRoutesN" + + "etworksRequest\0323.google.cloud.compute.v1" + + ".ExchangedPeeringRoutesList\"d\332A\017project," + + "network\202\323\344\223\002L\022J/compute/v1/projects/{pro" + + "ject}/global/networks/{network}/listPeer" + + "ingRoutes\022\344\001\n\005Patch\022,.google.cloud.compu" + + "te.v1.PatchNetworkRequest\032\".google.cloud" + + ".compute.v1.Operation\"\210\001\332A project,netwo" + + "rk,network_resource\212N\020GlobalOperations\202\323" + + "\344\223\002L28/compute/v1/projects/{project}/glo" + + "bal/networks/{network}:\020network_resource" + + "\022\262\002\n\rRemovePeering\0224.google.cloud.comput" + + "e.v1.RemovePeeringNetworkRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\306\001\332A8projec" + + "t,network,networks_remove_peering_reques" + + "t_resource\212N\020GlobalOperations\202\323\344\223\002r\"F/co" + + "mpute/v1/projects/{project}/global/netwo" + + "rks/{network}/removePeering:(networks_re" + + "move_peering_request_resource\022\330\002\n\024Reques" + + "tRemovePeering\022;.google.cloud.compute.v1" + + ".RequestRemovePeeringNetworkRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\336\001\332A@pro" + + "ject,network,networks_request_remove_pee" + + "ring_request_resource\212N\020GlobalOperations" + + "\202\323\344\223\002\201\001\"M/compute/v1/projects/{project}/" + + "global/networks/{network}/requestRemoveP" + + "eering:0networks_request_remove_peering_" + + "request_resource\022\355\001\n\022SwitchToCustomMode\022" + + "9.google.cloud.compute.v1.SwitchToCustom" + + "ModeNetworkRequest\032\".google.cloud.comput" + + "e.v1.Operation\"x\332A\017project,network\212N\020Glo" + + "balOperations\202\323\344\223\002M\"K/compute/v1/project" + + "s/{project}/global/networks/{network}/sw" + + "itchToCustomMode\022\262\002\n\rUpdatePeering\0224.goo" + + "gle.cloud.compute.v1.UpdatePeeringNetwor" + + "kRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\306\001\332A8project,network,networks_updat" + + "e_peering_request_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002r2F/compute/v1/projects/{proje" + + "ct}/global/networks/{network}/updatePeer" + + "ing:(networks_update_peering_request_res" + "ource\032\202\001\312A\026compute.googleapis.com\322AVhttp" + "s://www.googleapis.com/auth/compute,http" + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\357\005\n\tNodeTypes\022\301\001\n\016Agg" - + "regatedList\0227.google.cloud.compute.v1.Ag" - + "gregatedListNodeTypesRequest\032/.google.cl" - + "oud.compute.v1.NodeTypeAggregatedList\"E\332" - + "A\007project\202\323\344\223\0025\0223/compute/v1/projects/{p" - + "roject}/aggregated/nodeTypes\022\271\001\n\003Get\022+.g" - + "oogle.cloud.compute.v1.GetNodeTypeReques" - + "t\032!.google.cloud.compute.v1.NodeType\"b\332A" - + "\026project,zone,node_type\202\323\344\223\002C\022A/compute/" - + "v1/projects/{project}/zones/{zone}/nodeT" - + "ypes/{node_type}\022\252\001\n\004List\022-.google.cloud" - + ".compute.v1.ListNodeTypesRequest\032%.googl" - + "e.cloud.compute.v1.NodeTypeList\"L\332A\014proj" - + "ect,zone\202\323\344\223\0027\0225/compute/v1/projects/{pr" - + "oject}/zones/{zone}/nodeTypes\032\264\001\312A\026compu" - + "te.googleapis.com\322A\207\001https://www.googlea" - + "pis.com/auth/compute.readonly,https://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform\212\324\333\322" - + "\017\n2026-09-012\344!\n\034OrganizationSecurityPol" - + "icies\022\323\002\n\016AddAssociation\022H.google.cloud." - + "compute.v1.AddAssociationOrganizationSec" - + "urityPolicyRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\322\001\332A4security_policy,secu" - + "rity_policy_association_resource\212N\034Globa" - + "lOrganizationOperations\202\323\344\223\002v\"N/compute/" - + "v1/locations/global/securityPolicies/{se" - + "curity_policy}/addAssociation:$security_" - + "policy_association_resource\022\260\002\n\007AddRule\022" - + "A.google.cloud.compute.v1.AddRuleOrganiz" - + "ationSecurityPolicyRequest\032\".google.clou" - + "d.compute.v1.Operation\"\275\001\332A-security_pol" - + "icy,security_policy_rule_resource\212N\034Glob" - + "alOrganizationOperations\202\323\344\223\002h\"G/compute" - + "/v1/locations/global/securityPolicies/{s" - + "ecurity_policy}/addRule:\035security_policy" - + "_rule_resource\022\371\001\n\tCopyRules\022C.google.cl" - + "oud.compute.v1.CopyRulesOrganizationSecu" + + "rm\212\324\333\322\017\n2026-09-012\374 \n\nNodeGroups\022\262\002\n\010Ad" + + "dNodes\0221.google.cloud.compute.v1.AddNode" + + "sNodeGroupRequest\032\".google.cloud.compute" + + ".v1.Operation\"\316\001\332A>project,zone,node_gro" + + "up,node_groups_add_nodes_request_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002v\"L/compute/v1/pr" + + "ojects/{project}/zones/{zone}/nodeGroups" + + "/{node_group}/addNodes:&node_groups_add_" + + "nodes_request_resource\022\304\001\n\016AggregatedLis" + + "t\0228.google.cloud.compute.v1.AggregatedLi" + + "stNodeGroupsRequest\0320.google.cloud.compu" + + "te.v1.NodeGroupAggregatedList\"F\332A\007projec" + + "t\202\323\344\223\0026\0224/compute/v1/projects/{project}/" + + "aggregated/nodeGroups\022\325\001\n\006Delete\022/.googl" + + "e.cloud.compute.v1.DeleteNodeGroupReques" + + "t\032\".google.cloud.compute.v1.Operation\"v\332" + + "A\027project,zone,node_group\212N\016ZoneOperatio" + + "ns\202\323\344\223\002E*C/compute/v1/projects/{project}" + + "/zones/{zone}/nodeGroups/{node_group}\022\301\002" + + "\n\013DeleteNodes\0224.google.cloud.compute.v1." + + "DeleteNodesNodeGroupRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\327\001\332AAproject,zon" + + "e,node_group,node_groups_delete_nodes_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002|\"O/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/nodeGroups/{node_group}/deleteNodes:)" + + "node_groups_delete_nodes_request_resourc" + + "e\022\276\001\n\003Get\022,.google.cloud.compute.v1.GetN" + + "odeGroupRequest\032\".google.cloud.compute.v" + + "1.NodeGroup\"e\332A\027project,zone,node_group\202" + + "\323\344\223\002E\022C/compute/v1/projects/{project}/zo" + + "nes/{zone}/nodeGroups/{node_group}\022\326\001\n\014G" + + "etIamPolicy\0225.google.cloud.compute.v1.Ge" + + "tIamPolicyNodeGroupRequest\032\037.google.clou" + + "d.compute.v1.Policy\"n\332A\025project,zone,res" + + "ource\202\323\344\223\002P\022N/compute/v1/projects/{proje" + + "ct}/zones/{zone}/nodeGroups/{resource}/g" + + "etIamPolicy\022\372\001\n\006Insert\022/.google.cloud.co" + + "mpute.v1.InsertNodeGroupRequest\032\".google" + + ".cloud.compute.v1.Operation\"\232\001\332A3project" + + ",zone,initial_node_count,node_group_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002M\"6/compute/v1" + + "/projects/{project}/zones/{zone}/nodeGro" + + "ups:\023node_group_resource\022\255\001\n\004List\022..goog" + + "le.cloud.compute.v1.ListNodeGroupsReques" + + "t\032&.google.cloud.compute.v1.NodeGroupLis" + + "t\"M\332A\014project,zone\202\323\344\223\0028\0226/compute/v1/pr" + + "ojects/{project}/zones/{zone}/nodeGroups" + + "\022\337\001\n\tListNodes\0223.google.cloud.compute.v1" + + ".ListNodesNodeGroupsRequest\032,.google.clo" + + "ud.compute.v1.NodeGroupsListNodes\"o\332A\027pr" + + "oject,zone,node_group\202\323\344\223\002O\"M/compute/v1" + + "/projects/{project}/zones/{zone}/nodeGro" + + "ups/{node_group}/listNodes\022\375\001\n\005Patch\022..g" + + "oogle.cloud.compute.v1.PatchNodeGroupReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\237\001\332A+project,zone,node_group,node_group" + + "_resource\212N\016ZoneOperations\202\323\344\223\002Z2C/compu" + + "te/v1/projects/{project}/zones/{zone}/no" + + "deGroups/{node_group}:\023node_group_resour" + + "ce\022\345\002\n\022PerformMaintenance\022;.google.cloud" + + ".compute.v1.PerformMaintenanceNodeGroupR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\355\001\332AHproject,zone,node_group,node_gro" + + "ups_perform_maintenance_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002\212\001\"V/compute/v1/pr" + + "ojects/{project}/zones/{zone}/nodeGroups" + + "/{node_group}/performMaintenance:0node_g" + + "roups_perform_maintenance_request_resour" + + "ce\022\232\002\n\014SetIamPolicy\0225.google.cloud.compu" + + "te.v1.SetIamPolicyNodeGroupRequest\032\037.goo" + + "gle.cloud.compute.v1.Policy\"\261\001\332A6project" + + ",zone,resource,zone_set_policy_request_r" + + "esource\202\323\344\223\002r\"N/compute/v1/projects/{pro" + + "ject}/zones/{zone}/nodeGroups/{resource}" + + "/setIamPolicy: zone_set_policy_request_r" + + "esource\022\330\002\n\017SetNodeTemplate\0228.google.clo" + + "ud.compute.v1.SetNodeTemplateNodeGroupRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\346\001\332AFproject,zone,node_group,node_grou" + + "ps_set_node_template_request_resource\212N\016" + + "ZoneOperations\202\323\344\223\002\205\001\"S/compute/v1/proje" + + "cts/{project}/zones/{zone}/nodeGroups/{n" + + "ode_group}/setNodeTemplate:.node_groups_" + + "set_node_template_request_resource\022\205\003\n\030S" + + "imulateMaintenanceEvent\022A.google.cloud.c" + + "ompute.v1.SimulateMaintenanceEventNodeGr" + + "oupRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\201\002\332AOproject,zone,node_group,node" + + "_groups_simulate_maintenance_event_reque" + + "st_resource\212N\016ZoneOperations\202\323\344\223\002\227\001\"\\/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/nodeGroups/{node_group}/simulateMainten" + + "anceEvent:7node_groups_simulate_maintena" + + "nce_event_request_resource\022\277\002\n\022TestIamPe" + + "rmissions\022;.google.cloud.compute.v1.Test" + + "IamPermissionsNodeGroupRequest\0320.google." + + "cloud.compute.v1.TestPermissionsResponse" + + "\"\271\001\332A7project,zone,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002y\"T/compute/v1" + + "/projects/{project}/zones/{zone}/nodeGro" + + "ups/{resource}/testIamPermissions:!test_" + + "permissions_request_resource\032\202\001\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform\212\324\333\322\017\n2026-09-0" + + "12\305\020\n\rNodeTemplates\022\315\001\n\016AggregatedList\022;" + + ".google.cloud.compute.v1.AggregatedListN" + + "odeTemplatesRequest\0323.google.cloud.compu" + + "te.v1.NodeTemplateAggregatedList\"I\332A\007pro" + + "ject\202\323\344\223\0029\0227/compute/v1/projects/{projec" + + "t}/aggregated/nodeTemplates\022\352\001\n\006Delete\0222" + + ".google.cloud.compute.v1.DeleteNodeTempl" + + "ateRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\207\001\332A\034project,region,node_template" + + "\212N\020RegionOperations\202\323\344\223\002O*M/compute/v1/p" + + "rojects/{project}/regions/{region}/nodeT" + + "emplates/{node_template}\022\323\001\n\003Get\022/.googl" + + "e.cloud.compute.v1.GetNodeTemplateReques" + + "t\032%.google.cloud.compute.v1.NodeTemplate" + + "\"t\332A\034project,region,node_template\202\323\344\223\002O\022" + + "M/compute/v1/projects/{project}/regions/" + + "{region}/nodeTemplates/{node_template}\022\342" + + "\001\n\014GetIamPolicy\0228.google.cloud.compute.v" + + "1.GetIamPolicyNodeTemplateRequest\032\037.goog" + + "le.cloud.compute.v1.Policy\"w\332A\027project,r" + + "egion,resource\202\323\344\223\002W\022U/compute/v1/projec" + + "ts/{project}/regions/{region}/nodeTempla" + + "tes/{resource}/getIamPolicy\022\373\001\n\006Insert\0222" + + ".google.cloud.compute.v1.InsertNodeTempl" + + "ateRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\230\001\332A%project,region,node_template" + + "_resource\212N\020RegionOperations\202\323\344\223\002W\"=/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/nodeTemplates:\026node_template_resourc", + "e\022\274\001\n\004List\0221.google.cloud.compute.v1.Lis" + + "tNodeTemplatesRequest\032).google.cloud.com" + + "pute.v1.NodeTemplateList\"V\332A\016project,reg" + + "ion\202\323\344\223\002?\022=/compute/v1/projects/{project" + + "}/regions/{region}/nodeTemplates\022\252\002\n\014Set" + + "IamPolicy\0228.google.cloud.compute.v1.SetI" + + "amPolicyNodeTemplateRequest\032\037.google.clo" + + "ud.compute.v1.Policy\"\276\001\332A:project,region" + + ",resource,region_set_policy_request_reso" + + "urce\202\323\344\223\002{\"U/compute/v1/projects/{projec" + + "t}/regions/{region}/nodeTemplates/{resou" + + "rce}/setIamPolicy:\"region_set_policy_req" + + "uest_resource\022\314\002\n\022TestIamPermissions\022>.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sNodeTemplateRequest\0320.google.cloud.comp" + + "ute.v1.TestPermissionsResponse\"\303\001\332A9proj" + + "ect,region,resource,test_permissions_req" + + "uest_resource\202\323\344\223\002\200\001\"[/compute/v1/projec" + + "ts/{project}/regions/{region}/nodeTempla" + + "tes/{resource}/testIamPermissions:!test_" + + "permissions_request_resource\032\202\001\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform\212\324\333\322\017\n2026-09-0" + + "12\357\005\n\tNodeTypes\022\301\001\n\016AggregatedList\0227.goo" + + "gle.cloud.compute.v1.AggregatedListNodeT" + + "ypesRequest\032/.google.cloud.compute.v1.No" + + "deTypeAggregatedList\"E\332A\007project\202\323\344\223\0025\0223" + + "/compute/v1/projects/{project}/aggregate" + + "d/nodeTypes\022\271\001\n\003Get\022+.google.cloud.compu" + + "te.v1.GetNodeTypeRequest\032!.google.cloud." + + "compute.v1.NodeType\"b\332A\026project,zone,nod" + + "e_type\202\323\344\223\002C\022A/compute/v1/projects/{proj" + + "ect}/zones/{zone}/nodeTypes/{node_type}\022" + + "\252\001\n\004List\022-.google.cloud.compute.v1.ListN" + + "odeTypesRequest\032%.google.cloud.compute.v" + + "1.NodeTypeList\"L\332A\014project,zone\202\323\344\223\0027\0225/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/nodeTypes\032\264\001\312A\026compute.googleapis.com" + + "\322A\207\001https://www.googleapis.com/auth/comp" + + "ute.readonly,https://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\344!\n\034" + + "OrganizationSecurityPolicies\022\323\002\n\016AddAsso" + + "ciation\022H.google.cloud.compute.v1.AddAss" + + "ociationOrganizationSecurityPolicyReques" + + "t\032\".google.cloud.compute.v1.Operation\"\322\001" + + "\332A4security_policy,security_policy_assoc" + + "iation_resource\212N\034GlobalOrganizationOper" + + "ations\202\323\344\223\002v\"N/compute/v1/locations/glob" + + "al/securityPolicies/{security_policy}/ad" + + "dAssociation:$security_policy_associatio" + + "n_resource\022\260\002\n\007AddRule\022A.google.cloud.co" + + "mpute.v1.AddRuleOrganizationSecurityPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\275\001\332A-security_policy,security_poli" + + "cy_rule_resource\212N\034GlobalOrganizationOpe" + + "rations\202\323\344\223\002h\"G/compute/v1/locations/glo" + + "bal/securityPolicies/{security_policy}/a" + + "ddRule:\035security_policy_rule_resource\022\371\001" + + "\n\tCopyRules\022C.google.cloud.compute.v1.Co" + + "pyRulesOrganizationSecurityPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\202\001\332" + + "A\017security_policy\212N\034GlobalOrganizationOp" + + "erations\202\323\344\223\002K\"I/compute/v1/locations/gl" + + "obal/securityPolicies/{security_policy}/" + + "copyRules\022\350\001\n\006Delete\022@.google.cloud.comp" + + "ute.v1.DeleteOrganizationSecurityPolicyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"x\332A\017security_policy\212N\034GlobalOrganizat" + + "ionOperations\202\323\344\223\002A*?/compute/v1/locatio" + + "ns/global/securityPolicies/{security_pol" + + "icy}\022\310\001\n\003Get\022=.google.cloud.compute.v1.G" + + "etOrganizationSecurityPolicyRequest\032\'.go" + + "ogle.cloud.compute.v1.SecurityPolicy\"Y\332A" + + "\017security_policy\202\323\344\223\002A\022?/compute/v1/loca" + + "tions/global/securityPolicies/{security_" + + "policy}\022\370\001\n\016GetAssociation\022H.google.clou" + + "d.compute.v1.GetAssociationOrganizationS" + + "ecurityPolicyRequest\0322.google.cloud.comp" + + "ute.v1.SecurityPolicyAssociation\"h\332A\017sec" + + "urity_policy\202\323\344\223\002P\022N/compute/v1/location" + + "s/global/securityPolicies/{security_poli" + + "cy}/getAssociation\022\334\001\n\007GetRule\022A.google." + + "cloud.compute.v1.GetRuleOrganizationSecu" + + "rityPolicyRequest\032+.google.cloud.compute" + + ".v1.SecurityPolicyRule\"a\332A\017security_poli" + + "cy\202\323\344\223\002I\022G/compute/v1/locations/global/s" + + "ecurityPolicies/{security_policy}/getRul" + + "e\022\372\001\n\006Insert\022@.google.cloud.compute.v1.I" + + "nsertOrganizationSecurityPolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\211\001\332A\030" + + "security_policy_resource\212N\034GlobalOrganiz" + + "ationOperations\202\323\344\223\002I\"-/compute/v1/locat" + + "ions/global/securityPolicies:\030security_p" + + "olicy_resource\022\257\001\n\004List\022@.google.cloud.c" + + "ompute.v1.ListOrganizationSecurityPolici" + + "esRequest\032+.google.cloud.compute.v1.Secu" + + "rityPolicyList\"8\332A\000\202\323\344\223\002/\022-/compute/v1/l" + + "ocations/global/securityPolicies\022\370\001\n\020Lis" + + "tAssociations\022J.google.cloud.compute.v1." + + "ListAssociationsOrganizationSecurityPoli" + + "cyRequest\032M.google.cloud.compute.v1.Orga" + + "nizationSecurityPoliciesListAssociations" + + "Response\"I\332A\000\202\323\344\223\002@\022>/compute/v1/locatio" + + "ns/global/securityPolicies/listAssociati" + + "ons\022\252\002\n\037ListPreconfiguredExpressionSets\022" + + "[.google.cloud.compute.v1.ListPreconfigu" + + "redExpressionSetsOrganizationSecurityPol" + + "iciesRequest\032P.google.cloud.compute.v1.S" + + "ecurityPoliciesListPreconfiguredExpressi" + + "onSetsResponse\"X\332A\000\202\323\344\223\002O\022M/compute/v1/l" + + "ocations/global/securityPolicies/listPre" + + "configuredExpressionSets\022\351\001\n\004Move\022>.goog" + + "le.cloud.compute.v1.MoveOrganizationSecu" + "rityPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\202\001\332A\017security_policy\212N\034Glo" - + "balOrganizationOperations\202\323\344\223\002K\"I/comput" - + "e/v1/locations/global/securityPolicies/{" - + "security_policy}/copyRules\022\350\001\n\006Delete\022@." - + "google.cloud.compute.v1.DeleteOrganizati" - + "onSecurityPolicyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"x\332A\017security_policy\212" - + "N\034GlobalOrganizationOperations\202\323\344\223\002A*?/c" - + "ompute/v1/locations/global/securityPolic" - + "ies/{security_policy}\022\310\001\n\003Get\022=.google.c" - + "loud.compute.v1.GetOrganizationSecurityP" - + "olicyRequest\032\'.google.cloud.compute.v1.S" - + "ecurityPolicy\"Y\332A\017security_policy\202\323\344\223\002A\022" - + "?/compute/v1/locations/global/securityPo" - + "licies/{security_policy}\022\370\001\n\016GetAssociat" - + "ion\022H.google.cloud.compute.v1.GetAssocia" - + "tionOrganizationSecurityPolicyRequest\0322." - + "google.cloud.compute.v1.SecurityPolicyAs" - + "sociation\"h\332A\017security_policy\202\323\344\223\002P\022N/co" - + "mpute/v1/locations/global/securityPolici" - + "es/{security_policy}/getAssociation\022\334\001\n\007" - + "GetRule\022A.google.cloud.compute.v1.GetRul" - + "eOrganizationSecurityPolicyRequest\032+.goo" - + "gle.cloud.compute.v1.SecurityPolicyRule\"" - + "a\332A\017security_policy\202\323\344\223\002I\022G/compute/v1/l" - + "ocations/global/securityPolicies/{securi" - + "ty_policy}/getRule\022\372\001\n\006Insert\022@.google.c" - + "loud.compute.v1.InsertOrganizationSecuri" + + ".v1.Operation\"}\332A\017security_policy\212N\034Glob" + + "alOrganizationOperations\202\323\344\223\002F\"D/compute" + + "/v1/locations/global/securityPolicies/{s" + + "ecurity_policy}/move\022\232\002\n\005Patch\022?.google." + + "cloud.compute.v1.PatchOrganizationSecuri" + "tyPolicyRequest\032\".google.cloud.compute.v" - + "1.Operation\"\211\001\332A\030security_policy_resourc" - + "e\212N\034GlobalOrganizationOperations\202\323\344\223\002I\"-" - + "/compute/v1/locations/global/securityPol" - + "icies:\030security_policy_resource\022\257\001\n\004List" - + "\022@.google.cloud.compute.v1.ListOrganizat" - + "ionSecurityPoliciesRequest\032+.google.clou" - + "d.compute.v1.SecurityPolicyList\"8\332A\000\202\323\344\223" - + "\002/\022-/compute/v1/locations/global/securit" - + "yPolicies\022\370\001\n\020ListAssociations\022J.google." - + "cloud.compute.v1.ListAssociationsOrganiz" - + "ationSecurityPolicyRequest\032M.google.clou" - + "d.compute.v1.OrganizationSecurityPolicie" - + "sListAssociationsResponse\"I\332A\000\202\323\344\223\002@\022>/c" - + "ompute/v1/locations/global/securityPolic" - + "ies/listAssociations\022\252\002\n\037ListPreconfigur" - + "edExpressionSets\022[.google.cloud.compute." - + "v1.ListPreconfiguredExpressionSetsOrgani" - + "zationSecurityPoliciesRequest\032P.google.c" - + "loud.compute.v1.SecurityPoliciesListPrec" - + "onfiguredExpressionSetsResponse\"X\332A\000\202\323\344\223" - + "\002O\022M/compute/v1/locations/global/securit" - + "yPolicies/listPreconfiguredExpressionSet" - + "s\022\351\001\n\004Move\022>.google.cloud.compute.v1.Mov" - + "eOrganizationSecurityPolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"}\332A\017secur" - + "ity_policy\212N\034GlobalOrganizationOperation" - + "s\202\323\344\223\002F\"D/compute/v1/locations/global/se" - + "curityPolicies/{security_policy}/move\022\232\002" - + "\n\005Patch\022?.google.cloud.compute.v1.PatchO" - + "rganizationSecurityPolicyRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\253\001\332A(securi" - + "ty_policy,security_policy_resource\212N\034Glo" - + "balOrganizationOperations\202\323\344\223\002[2?/comput" - + "e/v1/locations/global/securityPolicies/{" - + "security_policy}:\030security_policy_resour" - + "ce\022\266\002\n\tPatchRule\022C.google.cloud.compute." - + "v1.PatchRuleOrganizationSecurityPolicyRe" + + "1.Operation\"\253\001\332A(security_policy,securit" + + "y_policy_resource\212N\034GlobalOrganizationOp" + + "erations\202\323\344\223\002[2?/compute/v1/locations/gl" + + "obal/securityPolicies/{security_policy}:" + + "\030security_policy_resource\022\266\002\n\tPatchRule\022" + + "C.google.cloud.compute.v1.PatchRuleOrgan" + + "izationSecurityPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\277\001\332A-security_p" + + "olicy,security_policy_rule_resource\212N\034Gl" + + "obalOrganizationOperations\202\323\344\223\002j\"I/compu" + + "te/v1/locations/global/securityPolicies/" + + "{security_policy}/patchRule:\035security_po" + + "licy_rule_resource\022\221\002\n\021RemoveAssociation" + + "\022K.google.cloud.compute.v1.RemoveAssocia" + + "tionOrganizationSecurityPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\212\001\332A\017s" + + "ecurity_policy\212N\034GlobalOrganizationOpera" + + "tions\202\323\344\223\002S\"Q/compute/v1/locations/globa" + + "l/securityPolicies/{security_policy}/rem" + + "oveAssociation\022\374\001\n\nRemoveRule\022D.google.c" + + "loud.compute.v1.RemoveRuleOrganizationSe" + + "curityPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\203\001\332A\017security_policy\212N\034G" + + "lobalOrganizationOperations\202\323\344\223\002L\"J/comp" + + "ute/v1/locations/global/securityPolicies" + + "/{security_policy}/removeRule\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\241\017\n\020PacketMirrorings\022\326\001\n\016AggregatedLi" + + "st\022>.google.cloud.compute.v1.AggregatedL" + + "istPacketMirroringsRequest\0326.google.clou" + + "d.compute.v1.PacketMirroringAggregatedLi" + + "st\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/projec" + + "ts/{project}/aggregated/packetMirrorings" + + "\022\366\001\n\006Delete\0225.google.cloud.compute.v1.De" + + "letePacketMirroringRequest\032\".google.clou" + + "d.compute.v1.Operation\"\220\001\332A\037project,regi" + + "on,packet_mirroring\212N\020RegionOperations\202\323" + + "\344\223\002U*S/compute/v1/projects/{project}/reg" + + "ions/{region}/packetMirrorings/{packet_m" + + "irroring}\022\342\001\n\003Get\0222.google.cloud.compute" + + ".v1.GetPacketMirroringRequest\032(.google.c" + + "loud.compute.v1.PacketMirroring\"}\332A\037proj" + + "ect,region,packet_mirroring\202\323\344\223\002U\022S/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/packetMirrorings/{packet_mirroring}\022\207" + + "\002\n\006Insert\0225.google.cloud.compute.v1.Inse" + + "rtPacketMirroringRequest\032\".google.cloud." + + "compute.v1.Operation\"\241\001\332A(project,region" + + ",packet_mirroring_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002]\"@/compute/v1/projects/{proje" + + "ct}/regions/{region}/packetMirrorings:\031p" + + "acket_mirroring_resource\022\305\001\n\004List\0224.goog" + + "le.cloud.compute.v1.ListPacketMirrorings" + + "Request\032,.google.cloud.compute.v1.Packet" + + "MirroringList\"Y\332A\016project,region\202\323\344\223\002B\022@" + + "/compute/v1/projects/{project}/regions/{" + + "region}/packetMirrorings\022\251\002\n\005Patch\0224.goo" + + "gle.cloud.compute.v1.PatchPacketMirrorin" + + "gRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\305\001\332A9project,region,packet_mirrorin" + + "g,packet_mirroring_resource\212N\020RegionOper" + + "ations\202\323\344\223\002p2S/compute/v1/projects/{proj" + + "ect}/regions/{region}/packetMirrorings/{" + + "packet_mirroring}:\031packet_mirroring_reso" + + "urce\022\322\002\n\022TestIamPermissions\022A.google.clo" + + "ud.compute.v1.TestIamPermissionsPacketMi" + + "rroringRequest\0320.google.cloud.compute.v1" + + ".TestPermissionsResponse\"\306\001\332A9project,re" + + "gion,resource,test_permissions_request_r" + + "esource\202\323\344\223\002\203\001\"^/compute/v1/projects/{pr" + + "oject}/regions/{region}/packetMirrorings" + + "/{resource}/testIamPermissions:!test_per" + + "missions_request_resource\032\202\001\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c" + + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\260" + + "\006\n\017PreviewFeatures\022\314\001\n\003Get\0221.google.clou" + + "d.compute.v1.GetPreviewFeatureRequest\032\'." + + "google.cloud.compute.v1.PreviewFeature\"i" + + "\332A\027project,preview_feature\202\323\344\223\002I\022G/compu" + + "te/v1/projects/{project}/global/previewF" + + "eatures/{preview_feature}\022\261\001\n\004List\0223.goo" + + "gle.cloud.compute.v1.ListPreviewFeatures" + + "Request\032+.google.cloud.compute.v1.Previe" + + "wFeatureList\"G\332A\007project\202\323\344\223\0027\0225/compute" + + "/v1/projects/{project}/global/previewFea" + + "tures\022\224\002\n\006Update\0224.google.cloud.compute." + + "v1.UpdatePreviewFeatureRequest\032\".google." + + "cloud.compute.v1.Operation\"\257\001\332A0project," + + "preview_feature,preview_feature_resource" + + "\212N\020GlobalOperations\202\323\344\223\002c2G/compute/v1/p" + + "rojects/{project}/global/previewFeatures" + + "/{preview_feature}:\030preview_feature_reso" + + "urce\032\202\001\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m\212\324\333\322\017\n2026-09-012\372\002\n\014ProjectViews\022\262\001\n\003G" + + "et\022..google.cloud.compute.v1.GetProjectV" + + "iewRequest\032$.google.cloud.compute.v1.Pro" + + "jectView\"U\332A\016project,region\202\323\344\223\002>\022.google.cloud.compu" - + "te.v1.AggregatedListPacketMirroringsRequ" - + "est\0326.google.cloud.compute.v1.PacketMirr" - + "oringAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/" - + "compute/v1/projects/{project}/aggregated" - + "/packetMirrorings\022\366\001\n\006Delete\0225.google.cl" - + "oud.compute.v1.DeletePacketMirroringRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\220\001\332A\037project,region,packet_mirroring\212N\020R" - + "egionOperations\202\323\344\223\002U*S/compute/v1/proje" - + "cts/{project}/regions/{region}/packetMir" - + "rorings/{packet_mirroring}\022\342\001\n\003Get\0222.goo" - + "gle.cloud.compute.v1.GetPacketMirroringR" - + "equest\032(.google.cloud.compute.v1.PacketM" - + "irroring\"}\332A\037project,region,packet_mirro" - + "ring\202\323\344\223\002U\022S/compute/v1/projects/{projec" - + "t}/regions/{region}/packetMirrorings/{pa" - + "cket_mirroring}\022\207\002\n\006Insert\0225.google.clou" - + "d.compute.v1.InsertPacketMirroringReques" - + "t\032\".google.cloud.compute.v1.Operation\"\241\001" - + "\332A(project,region,packet_mirroring_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002]\"@/compute/v" - + "1/projects/{project}/regions/{region}/pa" - + "cketMirrorings:\031packet_mirroring_resourc" - + "e\022\305\001\n\004List\0224.google.cloud.compute.v1.Lis" - + "tPacketMirroringsRequest\032,.google.cloud." - + "compute.v1.PacketMirroringList\"Y\332A\016proje" - + "ct,region\202\323\344\223\002B\022@/compute/v1/projects/{p" - + "roject}/regions/{region}/packetMirroring" - + "s\022\251\002\n\005Patch\0224.google.cloud.compute.v1.Pa" - + "tchPacketMirroringRequest\032\".google.cloud" - + ".compute.v1.Operation\"\305\001\332A9project,regio" - + "n,packet_mirroring,packet_mirroring_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002p2S/compute/" - + "v1/projects/{project}/regions/{region}/p" - + "acketMirrorings/{packet_mirroring}:\031pack" - + "et_mirroring_resource\022\322\002\n\022TestIamPermiss" - + "ions\022A.google.cloud.compute.v1.TestIamPe" - + "rmissionsPacketMirroringRequest\0320.google" - + ".cloud.compute.v1.TestPermissionsRespons" - + "e\"\306\001\332A9project,region,resource,test_perm" - + "issions_request_resource\202\323\344\223\002\203\001\"^/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/packetMirrorings/{resource}/testIamPerm" - + "issions:!test_permissions_request_resour" - + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" - + "/www.googleapis.com/auth/compute,https:/" - + "/www.googleapis.com/auth/cloud-platform\212" - + "\324\333\322\017\n2026-09-012\260\006\n\017PreviewFeatures\022\314\001\n\003" - + "Get\0221.google.cloud.compute.v1.GetPreview" - + "FeatureRequest\032\'.google.cloud.compute.v1" - + ".PreviewFeature\"i\332A\027project,preview_feat" - + "ure\202\323\344\223\002I\022G/compute/v1/projects/{project" - + "}/global/previewFeatures/{preview_featur" - + "e}\022\261\001\n\004List\0223.google.cloud.compute.v1.Li" - + "stPreviewFeaturesRequest\032+.google.cloud." - + "compute.v1.PreviewFeatureList\"G\332A\007projec" - + "t\202\323\344\223\0027\0225/compute/v1/projects/{project}/" - + "global/previewFeatures\022\224\002\n\006Update\0224.goog" - + "le.cloud.compute.v1.UpdatePreviewFeature" + + "n\"R\332A\007project\212N\020GlobalOperations\202\323\344\223\002/\"-" + + "/compute/v1/projects/{project}/disableXp" + + "nHost\022\253\002\n\022DisableXpnResource\0229.google.cl" + + "oud.compute.v1.DisableXpnResourceProject" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\257\001\332A0project,preview_feature,preview" - + "_feature_resource\212N\020GlobalOperations\202\323\344\223" - + "\002c2G/compute/v1/projects/{project}/globa" - + "l/previewFeatures/{preview_feature}:\030pre" - + "view_feature_resource\032\202\001\312A\026compute.googl" - + "eapis.com\322AVhttps://www.googleapis.com/a" - + "uth/compute,https://www.googleapis.com/a" - + "uth/cloud-platform\212\324\333\322\017\n2026-09-012\372\002\n\014P" - + "rojectViews\022\262\001\n\003Get\022..google.cloud.compu" - + "te.v1.GetProjectViewRequest\032$.google.clo" - + "ud.compute.v1.ProjectView\"U\332A\016project,re" - + "gion\202\323\344\223\002>\022/compute/v1/projects" - + "/{project}/global/publicAdvertisedPrefix" - + "es:!public_advertised_prefix_resource\022\313\001" - + "\n\004List\022<.google.cloud.compute.v1.ListPub" - + "licAdvertisedPrefixesRequest\0323.google.cl" - + "oud.compute.v1.PublicAdvertisedPrefixLis" - + "t\"P\332A\007project\202\323\344\223\002@\022>/compute/v1/project" - + "s/{project}/global/publicAdvertisedPrefi" - + "xes\022\310\002\n\005Patch\022<.google.cloud.compute.v1." - + "PatchPublicAdvertisedPrefixeRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\334\001\332ABpro" - + "ject,public_advertised_prefix,public_adv" - + "ertised_prefix_resource\212N\020GlobalOperatio" - + "ns\202\323\344\223\002~2Y/compute/v1/projects/{project}" + + "ion\"\265\001\332A6project,projects_disable_xpn_re" + + "source_request_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002c\"1/compute/v1/projects/{project}" + + "/disableXpnResource:.projects_disable_xp" + + "n_resource_request_resource\022\274\001\n\rEnableXp" + + "nHost\0224.google.cloud.compute.v1.EnableXp" + + "nHostProjectRequest\032\".google.cloud.compu" + + "te.v1.Operation\"Q\332A\007project\212N\020GlobalOper" + + "ations\202\323\344\223\002.\",/compute/v1/projects/{proj" + + "ect}/enableXpnHost\022\246\002\n\021EnableXpnResource" + + "\0228.google.cloud.compute.v1.EnableXpnReso" + + "urceProjectRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\262\001\332A5project,projects_ena" + + "ble_xpn_resource_request_resource\212N\020Glob" + + "alOperations\202\323\344\223\002a\"0/compute/v1/projects" + + "/{project}/enableXpnResource:-projects_e" + + "nable_xpn_resource_request_resource\022\205\001\n\003" + + "Get\022*.google.cloud.compute.v1.GetProject" + + "Request\032 .google.cloud.compute.v1.Projec" + + "t\"0\332A\007project\202\323\344\223\002 \022\036/compute/v1/project" + + "s/{project}\022\236\001\n\nGetXpnHost\0221.google.clou" + + "d.compute.v1.GetXpnHostProjectRequest\032 ." + + "google.cloud.compute.v1.Project\";\332A\007proj" + + "ect\202\323\344\223\002+\022)/compute/v1/projects/{project" + + "}/getXpnHost\022\276\001\n\017GetXpnResources\0227.googl" + + "e.cloud.compute.v1.GetXpnResourcesProjec" + + "tsRequest\0320.google.cloud.compute.v1.Proj" + + "ectsGetXpnResources\"@\332A\007project\202\323\344\223\0020\022./" + + "compute/v1/projects/{project}/getXpnReso" + + "urces\022\375\001\n\014ListXpnHosts\0224.google.cloud.co" + + "mpute.v1.ListXpnHostsProjectsRequest\032$.g" + + "oogle.cloud.compute.v1.XpnHostList\"\220\001\332A0" + + "project,projects_list_xpn_hosts_request_" + + "resource\202\323\344\223\002W\"+/compute/v1/projects/{pr" + + "oject}/listXpnHosts:(projects_list_xpn_h" + + "osts_request_resource\022\345\001\n\010MoveDisk\022/.goo" + + "gle.cloud.compute.v1.MoveDiskProjectRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\203\001\332A\"project,disk_move_request_resource\212" + + "N\020GlobalOperations\202\323\344\223\002E\"\'/compute/v1/pr" + + "ojects/{project}/moveDisk:\032disk_move_req" + + "uest_resource\022\371\001\n\014MoveInstance\0223.google." + + "cloud.compute.v1.MoveInstanceProjectRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\217\001\332A&project,instance_move_request_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002M\"+/compute/v" + + "1/projects/{project}/moveInstance:\036insta" + + "nce_move_request_resource\022\250\002\n\021SetCloudAr" + + "morTier\0228.google.cloud.compute.v1.SetClo" + + "udArmorTierProjectRequest\032\".google.cloud" + + ".compute.v1.Operation\"\264\001\332A6project,proje" + + "cts_set_cloud_armor_tier_request_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002b\"0/compute/v1/" + + "projects/{project}/setCloudArmorTier:.pr" + + "ojects_set_cloud_armor_tier_request_reso" + + "urce\022\206\002\n\031SetCommonInstanceMetadata\022@.goo" + + "gle.cloud.compute.v1.SetCommonInstanceMe" + + "tadataProjectRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\202\001\332A\031project,metadata_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002M\"8/compu" + + "te/v1/projects/{project}/setCommonInstan" + + "ceMetadata:\021metadata_resource\022\274\002\n\025SetDef" + + "aultNetworkTier\022<.google.cloud.compute.v" + + "1.SetDefaultNetworkTierProjectRequest\032\"." + + "google.cloud.compute.v1.Operation\"\300\001\332A:p" + + "roject,projects_set_default_network_tier" + + "_request_resource\212N\020GlobalOperations\202\323\344\223" + + "\002j\"4/compute/v1/projects/{project}/setDe" + + "faultNetworkTier:2projects_set_default_n" + + "etwork_tier_request_resource\022\221\002\n\024SetUsag" + + "eExportBucket\022;.google.cloud.compute.v1." + + "SetUsageExportBucketProjectRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\227\001\332A&proj" + + "ect,usage_export_location_resource\212N\020Glo" + + "balOperations\202\323\344\223\002U\"3/compute/v1/project" + + "s/{project}/setUsageExportBucket:\036usage_" + + "export_location_resource\032\202\001\312A\026compute.go" + + "ogleapis.com\322AVhttps://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\377\017" + + "\n\030PublicAdvertisedPrefixes\022\222\002\n\010Announce\022" + + "?.google.cloud.compute.v1.AnnouncePublic" + + "AdvertisedPrefixeRequest\032\".google.cloud." + + "compute.v1.Operation\"\240\001\332A project,public" + + "_advertised_prefix\212N\020GlobalOperations\202\323\344" + + "\223\002d\"b/compute/v1/projects/{project}/glob" + + "al/publicAdvertisedPrefixes/{public_adve" + + "rtised_prefix}/announce\022\205\002\n\006Delete\022=.goo" + + "gle.cloud.compute.v1.DeletePublicAdverti" + + "sedPrefixeRequest\032\".google.cloud.compute" + + ".v1.Operation\"\227\001\332A project,public_advert" + + "ised_prefix\212N\020GlobalOperations\202\323\344\223\002[*Y/c" + + "ompute/v1/projects/{project}/global/publ" + + "icAdvertisedPrefixes/{public_advertised_" + + "prefix}\022\371\001\n\003Get\022:.google.cloud.compute.v" + + "1.GetPublicAdvertisedPrefixeRequest\032/.go" + + "ogle.cloud.compute.v1.PublicAdvertisedPr" + + "efix\"\204\001\332A project,public_advertised_pref" + + "ix\202\323\344\223\002[\022Y/compute/v1/projects/{project}" + "/global/publicAdvertisedPrefixes/{public" - + "_advertised_prefix}:!public_advertised_p" - + "refix_resource\022\222\002\n\010Withdraw\022?.google.clo" - + "ud.compute.v1.WithdrawPublicAdvertisedPr" - + "efixeRequest\032\".google.cloud.compute.v1.O" - + "peration\"\240\001\332A project,public_advertised_" - + "prefix\212N\020GlobalOperations\202\323\344\223\002d\"b/comput" + + "_advertised_prefix}\022\226\002\n\006Insert\022=.google." + + "cloud.compute.v1.InsertPublicAdvertisedP" + + "refixeRequest\032\".google.cloud.compute.v1." + + "Operation\"\250\001\332A)project,public_advertised" + + "_prefix_resource\212N\020GlobalOperations\202\323\344\223\002" + + "c\">/compute/v1/projects/{project}/global" + + "/publicAdvertisedPrefixes:!public_advert" + + "ised_prefix_resource\022\313\001\n\004List\022<.google.c" + + "loud.compute.v1.ListPublicAdvertisedPref" + + "ixesRequest\0323.google.cloud.compute.v1.Pu" + + "blicAdvertisedPrefixList\"P\332A\007project\202\323\344\223" + + "\002@\022>/compute/v1/projects/{project}/globa" + + "l/publicAdvertisedPrefixes\022\310\002\n\005Patch\022<.g" + + "oogle.cloud.compute.v1.PatchPublicAdvert" + + "isedPrefixeRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\334\001\332ABproject,public_adver" + + "tised_prefix,public_advertised_prefix_re" + + "source\212N\020GlobalOperations\202\323\344\223\002~2Y/comput" + "e/v1/projects/{project}/global/publicAdv" + "ertisedPrefixes/{public_advertised_prefi" - + "x}/withdraw\032\202\001\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform\212\324\333\322\017\n2026-09-012\305\022\n\027PublicDeleg" - + "atedPrefixes\022\352\001\n\016AggregatedList\022E.google" - + ".cloud.compute.v1.AggregatedListPublicDe" - + "legatedPrefixesRequest\032<.google.cloud.co" - + "mpute.v1.PublicDelegatedPrefixAggregated" - + "List\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/proj" - + "ects/{project}/aggregated/publicDelegate" - + "dPrefixes\022\237\002\n\010Announce\022>.google.cloud.co" - + "mpute.v1.AnnouncePublicDelegatedPrefixeR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\256\001\332A&project,region,public_delegated_" - + "prefix\212N\020RegionOperations\202\323\344\223\002l\"j/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/publicDelegatedPrefixes/{public_delegat" - + "ed_prefix}/announce\022\222\002\n\006Delete\022<.google." - + "cloud.compute.v1.DeletePublicDelegatedPr" - + "efixeRequest\032\".google.cloud.compute.v1.O" - + "peration\"\245\001\332A&project,region,public_dele" - + "gated_prefix\212N\020RegionOperations\202\323\344\223\002c*a/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/publicDelegatedPrefixes/{public_d" - + "elegated_prefix}\022\205\002\n\003Get\0229.google.cloud." - + "compute.v1.GetPublicDelegatedPrefixeRequ" - + "est\032..google.cloud.compute.v1.PublicDele" - + "gatedPrefix\"\222\001\332A&project,region,public_d" - + "elegated_prefix\202\323\344\223\002c\022a/compute/v1/proje" - + "cts/{project}/regions/{region}/publicDel" - + "egatedPrefixes/{public_delegated_prefix}" - + "\022\243\002\n\006Insert\022<.google.cloud.compute.v1.In" - + "sertPublicDelegatedPrefixeRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\266\001\332A/proje" - + "ct,region,public_delegated_prefix_resour" - + "ce\212N\020RegionOperations\202\323\344\223\002k\"G/compute/v1", - "/projects/{project}/regions/{region}/pub" - + "licDelegatedPrefixes: public_delegated_p" - + "refix_resource\022\331\001\n\004List\022;.google.cloud.c" - + "ompute.v1.ListPublicDelegatedPrefixesReq" - + "uest\0322.google.cloud.compute.v1.PublicDel" - + "egatedPrefixList\"`\332A\016project,region\202\323\344\223\002" - + "I\022G/compute/v1/projects/{project}/region" - + "s/{region}/publicDelegatedPrefixes\022\324\002\n\005P" - + "atch\022;.google.cloud.compute.v1.PatchPubl" - + "icDelegatedPrefixeRequest\032\".google.cloud" - + ".compute.v1.Operation\"\351\001\332AGproject,regio" - + "n,public_delegated_prefix,public_delegat" - + "ed_prefix_resource\212N\020RegionOperations\202\323\344" - + "\223\002\205\0012a/compute/v1/projects/{project}/reg" + + "x}:!public_advertised_prefix_resource\022\222\002" + + "\n\010Withdraw\022?.google.cloud.compute.v1.Wit" + + "hdrawPublicAdvertisedPrefixeRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\240\001\332A pro" + + "ject,public_advertised_prefix\212N\020GlobalOp" + + "erations\202\323\344\223\002d\"b/compute/v1/projects/{pr" + + "oject}/global/publicAdvertisedPrefixes/{" + + "public_advertised_prefix}/withdraw\032\202\001\312A\026" + + "compute.googleapis.com\322AVhttps://www.goo" + + "gleapis.com/auth/compute,https://www.goo" + + "gleapis.com/auth/cloud-platform\212\324\333\322\017\n202" + + "6-09-012\305\022\n\027PublicDelegatedPrefixes\022\352\001\n\016" + + "AggregatedList\022E.google.cloud.compute.v1" + + ".AggregatedListPublicDelegatedPrefixesRe" + + "quest\032<.google.cloud.compute.v1.PublicDe" + + "legatedPrefixAggregatedList\"S\332A\007project\202" + + "\323\344\223\002C\022A/compute/v1/projects/{project}/ag" + + "gregated/publicDelegatedPrefixes\022\237\002\n\010Ann" + + "ounce\022>.google.cloud.compute.v1.Announce" + + "PublicDelegatedPrefixeRequest\032\".google.c" + + "loud.compute.v1.Operation\"\256\001\332A&project,r" + + "egion,public_delegated_prefix\212N\020RegionOp" + + "erations\202\323\344\223\002l\"j/compute/v1/projects/{pr" + + "oject}/regions/{region}/publicDelegatedP" + + "refixes/{public_delegated_prefix}/announ" + + "ce\022\222\002\n\006Delete\022<.google.cloud.compute.v1." + + "DeletePublicDelegatedPrefixeRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\245\001\332A&pro" + + "ject,region,public_delegated_prefix\212N\020Re" + + "gionOperations\202\323\344\223\002c*a/compute/v1/projec" + + "ts/{project}/regions/{region}/publicDele" + + "gatedPrefixes/{public_delegated_prefix}\022" + + "\205\002\n\003Get\0229.google.cloud.compute.v1.GetPub" + + "licDelegatedPrefixeRequest\032..google.clou" + + "d.compute.v1.PublicDelegatedPrefix\"\222\001\332A&" + + "project,region,public_delegated_prefix\202\323" + + "\344\223\002c\022a/compute/v1/projects/{project}/reg" + "ions/{region}/publicDelegatedPrefixes/{p" - + "ublic_delegated_prefix}: public_delegate" - + "d_prefix_resource\022\237\002\n\010Withdraw\022>.google." - + "cloud.compute.v1.WithdrawPublicDelegated" - + "PrefixeRequest\032\".google.cloud.compute.v1" - + ".Operation\"\256\001\332A&project,region,public_de" - + "legated_prefix\212N\020RegionOperations\202\323\344\223\002l\"" - + "j/compute/v1/projects/{project}/regions/" - + "{region}/publicDelegatedPrefixes/{public" - + "_delegated_prefix}/withdraw\032\202\001\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform\212\324\333\322\017\n2026-09-01" - + "2\321\016\n\021RegionAutoscalers\022\345\001\n\006Delete\0226.goog" - + "le.cloud.compute.v1.DeleteRegionAutoscal" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\177\332A\031project,region,autoscaler\212N\020Re" - + "gionOperations\202\323\344\223\002J*H/compute/v1/projec" - + "ts/{project}/regions/{region}/autoscaler" - + "s/{autoscaler}\022\315\001\n\003Get\0223.google.cloud.co" - + "mpute.v1.GetRegionAutoscalerRequest\032#.go" - + "ogle.cloud.compute.v1.Autoscaler\"l\332A\031pro" - + "ject,region,autoscaler\202\323\344\223\002J\022H/compute/v" - + "1/projects/{project}/regions/{region}/au" - + "toscalers/{autoscaler}\022\367\001\n\006Insert\0226.goog" - + "le.cloud.compute.v1.InsertRegionAutoscal" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\220\001\332A\"project,region,autoscaler_res" - + "ource\212N\020RegionOperations\202\323\344\223\002R\";/compute" + + "ublic_delegated_prefix}\022\243\002\n\006Insert\022<.goo" + + "gle.cloud.compute.v1.InsertPublicDelegat" + + "edPrefixeRequest\032\".google.cloud.compute." + + "v1.Operation\"\266\001\332A/project,region,public_", + "delegated_prefix_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002k\"G/compute/v1/projects/{projec" + + "t}/regions/{region}/publicDelegatedPrefi" + + "xes: public_delegated_prefix_resource\022\331\001" + + "\n\004List\022;.google.cloud.compute.v1.ListPub" + + "licDelegatedPrefixesRequest\0322.google.clo" + + "ud.compute.v1.PublicDelegatedPrefixList\"" + + "`\332A\016project,region\202\323\344\223\002I\022G/compute/v1/pr" + + "ojects/{project}/regions/{region}/public" + + "DelegatedPrefixes\022\324\002\n\005Patch\022;.google.clo" + + "ud.compute.v1.PatchPublicDelegatedPrefix" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\351\001\332AGproject,region,public_delegate" + + "d_prefix,public_delegated_prefix_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002\205\0012a/compute/v1" + + "/projects/{project}/regions/{region}/pub" + + "licDelegatedPrefixes/{public_delegated_p" + + "refix}: public_delegated_prefix_resource" + + "\022\237\002\n\010Withdraw\022>.google.cloud.compute.v1." + + "WithdrawPublicDelegatedPrefixeRequest\032\"." + + "google.cloud.compute.v1.Operation\"\256\001\332A&p" + + "roject,region,public_delegated_prefix\212N\020" + + "RegionOperations\202\323\344\223\002l\"j/compute/v1/proj" + + "ects/{project}/regions/{region}/publicDe" + + "legatedPrefixes/{public_delegated_prefix" + + "}/withdraw\032\202\001\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform\212\324\333\322\017\n2026-09-012\321\016\n\021RegionAutosc" + + "alers\022\345\001\n\006Delete\0226.google.cloud.compute." + + "v1.DeleteRegionAutoscalerRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\177\332A\031project" + + ",region,autoscaler\212N\020RegionOperations\202\323\344" + + "\223\002J*H/compute/v1/projects/{project}/regi" + + "ons/{region}/autoscalers/{autoscaler}\022\315\001" + + "\n\003Get\0223.google.cloud.compute.v1.GetRegio" + + "nAutoscalerRequest\032#.google.cloud.comput" + + "e.v1.Autoscaler\"l\332A\031project,region,autos" + + "caler\202\323\344\223\002J\022H/compute/v1/projects/{proje" + + "ct}/regions/{region}/autoscalers/{autosc" + + "aler}\022\367\001\n\006Insert\0226.google.cloud.compute." + + "v1.InsertRegionAutoscalerRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\220\001\332A\"projec" + + "t,region,autoscaler_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002R\";/compute/v1/projects/{pro" + + "ject}/regions/{region}/autoscalers:\023auto" + + "scaler_resource\022\302\001\n\004List\0225.google.cloud." + + "compute.v1.ListRegionAutoscalersRequest\032" + + "-.google.cloud.compute.v1.RegionAutoscal" + + "erList\"T\332A\016project,region\202\323\344\223\002=\022;/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/autoscalers\022\365\001\n\005Patch\0225.google.cloud.co" + + "mpute.v1.PatchRegionAutoscalerRequest\032\"." + + "google.cloud.compute.v1.Operation\"\220\001\332A\"p" + + "roject,region,autoscaler_resource\212N\020Regi" + + "onOperations\202\323\344\223\002R2;/compute/v1/projects" + + "/{project}/regions/{region}/autoscalers:" + + "\023autoscaler_resource\022\315\002\n\022TestIamPermissi" + + "ons\022B.google.cloud.compute.v1.TestIamPer" + + "missionsRegionAutoscalerRequest\0320.google" + + ".cloud.compute.v1.TestPermissionsRespons" + + "e\"\300\001\332A9project,region,resource,test_perm" + + "issions_request_resource\202\323\344\223\002~\"Y/compute" + "/v1/projects/{project}/regions/{region}/" - + "autoscalers:\023autoscaler_resource\022\302\001\n\004Lis" - + "t\0225.google.cloud.compute.v1.ListRegionAu" - + "toscalersRequest\032-.google.cloud.compute." - + "v1.RegionAutoscalerList\"T\332A\016project,regi" - + "on\202\323\344\223\002=\022;/compute/v1/projects/{project}" - + "/regions/{region}/autoscalers\022\365\001\n\005Patch\022" - + "5.google.cloud.compute.v1.PatchRegionAut" - + "oscalerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\220\001\332A\"project,region,autoscale" - + "r_resource\212N\020RegionOperations\202\323\344\223\002R2;/co" + + "autoscalers/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\022\367\001\n" + + "\006Update\0226.google.cloud.compute.v1.Update" + + "RegionAutoscalerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\220\001\332A\"project,region," + + "autoscaler_resource\212N\020RegionOperations\202\323" + + "\344\223\002R\032;/compute/v1/projects/{project}/reg" + + "ions/{region}/autoscalers:\023autoscaler_re" + + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm\212\324\333\322\017\n2026-09-012\307\023\n\024RegionBackendBuc" + + "kets\022\364\001\n\006Delete\0229.google.cloud.compute.v" + + "1.DeleteRegionBackendBucketRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\212\001\332A\035proj" + + "ect,region,backend_bucket\212N\020RegionOperat" + + "ions\202\323\344\223\002Q*O/compute/v1/projects/{projec" + + "t}/regions/{region}/backendBuckets/{back" + + "end_bucket}\022\336\001\n\003Get\0226.google.cloud.compu" + + "te.v1.GetRegionBackendBucketRequest\032&.go" + + "ogle.cloud.compute.v1.BackendBucket\"w\332A\035" + + "project,region,backend_bucket\202\323\344\223\002Q\022O/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/autoscalers:\023autoscaler_resource\022\315\002" - + "\n\022TestIamPermissions\022B.google.cloud.comp" - + "ute.v1.TestIamPermissionsRegionAutoscale" - + "rRequest\0320.google.cloud.compute.v1.TestP" - + "ermissionsResponse\"\300\001\332A9project,region,r" - + "esource,test_permissions_request_resourc" - + "e\202\323\344\223\002~\"Y/compute/v1/projects/{project}/" - + "regions/{region}/autoscalers/{resource}/" - + "testIamPermissions:!test_permissions_req" - + "uest_resource\022\367\001\n\006Update\0226.google.cloud." - + "compute.v1.UpdateRegionAutoscalerRequest" - + "\032\".google.cloud.compute.v1.Operation\"\220\001\332" - + "A\"project,region,autoscaler_resource\212N\020R" - + "egionOperations\202\323\344\223\002R\032;/compute/v1/proje" - + "cts/{project}/regions/{region}/autoscale" - + "rs:\023autoscaler_resource\032\202\001\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform\212\324\333\322\017\n2026-09-012\307\023\n" - + "\024RegionBackendBuckets\022\364\001\n\006Delete\0229.googl" - + "e.cloud.compute.v1.DeleteRegionBackendBu" - + "cketRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\212\001\332A\035project,region,backend_buck" - + "et\212N\020RegionOperations\202\323\344\223\002Q*O/compute/v1" - + "/projects/{project}/regions/{region}/bac" - + "kendBuckets/{backend_bucket}\022\336\001\n\003Get\0226.g" - + "oogle.cloud.compute.v1.GetRegionBackendB" - + "ucketRequest\032&.google.cloud.compute.v1.B" - + "ackendBucket\"w\332A\035project,region,backend_" - + "bucket\202\323\344\223\002Q\022O/compute/v1/projects/{proj" - + "ect}/regions/{region}/backendBuckets/{ba" - + "ckend_bucket}\022\352\001\n\014GetIamPolicy\022?.google." - + "cloud.compute.v1.GetIamPolicyRegionBacke" - + "ndBucketRequest\032\037.google.cloud.compute.v" - + "1.Policy\"x\332A\027project,region,resource\202\323\344\223" - + "\002X\022V/compute/v1/projects/{project}/regio" - + "ns/{region}/backendBuckets/{resource}/ge" - + "tIamPolicy\022\205\002\n\006Insert\0229.google.cloud.com" - + "pute.v1.InsertRegionBackendBucketRequest" - + "\032\".google.cloud.compute.v1.Operation\"\233\001\332" - + "A&project,region,backend_bucket_resource" - + "\212N\020RegionOperations\202\323\344\223\002Y\">/compute/v1/p" + + "ion}/backendBuckets/{backend_bucket}\022\352\001\n" + + "\014GetIamPolicy\022?.google.cloud.compute.v1." + + "GetIamPolicyRegionBackendBucketRequest\032\037" + + ".google.cloud.compute.v1.Policy\"x\332A\027proj" + + "ect,region,resource\202\323\344\223\002X\022V/compute/v1/p" + "rojects/{project}/regions/{region}/backe" - + "ndBuckets:\027backend_bucket_resource\022\305\001\n\004L" - + "ist\0228.google.cloud.compute.v1.ListRegion" - + "BackendBucketsRequest\032*.google.cloud.com" - + "pute.v1.BackendBucketList\"W\332A\016project,re" - + "gion\202\323\344\223\002@\022>/compute/v1/projects/{projec" - + "t}/regions/{region}/backendBuckets\022\342\001\n\nL" - + "istUsable\022>.google.cloud.compute.v1.List" - + "UsableRegionBackendBucketsRequest\0320.goog" - + "le.cloud.compute.v1.BackendBucketListUsa" - + "ble\"b\332A\016project,region\202\323\344\223\002K\022I/compute/v" - + "1/projects/{project}/regions/{region}/ba" - + "ckendBuckets/listUsable\022\243\002\n\005Patch\0228.goog" - + "le.cloud.compute.v1.PatchRegionBackendBu" - + "cketRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\273\001\332A5project,region,backend_buck" - + "et,backend_bucket_resource\212N\020RegionOpera" - + "tions\202\323\344\223\002j2O/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendBuckets/{bac" - + "kend_bucket}:\027backend_bucket_resource\022\262\002" - + "\n\014SetIamPolicy\022?.google.cloud.compute.v1" - + ".SetIamPolicyRegionBackendBucketRequest\032" - + "\037.google.cloud.compute.v1.Policy\"\277\001\332A:pr" - + "oject,region,resource,region_set_policy_" - + "request_resource\202\323\344\223\002|\"V/compute/v1/proj" - + "ects/{project}/regions/{region}/backendB" - + "uckets/{resource}/setIamPolicy:\"region_s" - + "et_policy_request_resource\022\324\002\n\022TestIamPe" - + "rmissions\022E.google.cloud.compute.v1.Test" - + "IamPermissionsRegionBackendBucketRequest" - + "\0320.google.cloud.compute.v1.TestPermissio" - + "nsResponse\"\304\001\332A9project,region,resource," - + "test_permissions_request_resource\202\323\344\223\002\201\001" - + "\"\\/compute/v1/projects/{project}/regions" - + "/{region}/backendBuckets/{resource}/test" - + "IamPermissions:!test_permissions_request" - + "_resource\032\202\001\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform\212\324\333\322\017\n2026-09-012\316\033\n\025RegionBackend" - + "Services\022\370\001\n\006Delete\022:.google.cloud.compu" - + "te.v1.DeleteRegionBackendServiceRequest\032" - + "\".google.cloud.compute.v1.Operation\"\215\001\332A" - + "\036project,region,backend_service\212N\020Region" - + "Operations\202\323\344\223\002S*Q/compute/v1/projects/{" - + "project}/regions/{region}/backendService" - + "s/{backend_service}\022\343\001\n\003Get\0227.google.clo" - + "ud.compute.v1.GetRegionBackendServiceReq" - + "uest\032\'.google.cloud.compute.v1.BackendSe" - + "rvice\"z\332A\036project,region,backend_service" - + "\202\323\344\223\002S\022Q/compute/v1/projects/{project}/r" - + "egions/{region}/backendServices/{backend" - + "_service}\022\313\002\n\tGetHealth\022=.google.cloud.c" - + "ompute.v1.GetHealthRegionBackendServiceR" - + "equest\0322.google.cloud.compute.v1.Backend" - + "ServiceGroupHealth\"\312\001\332A@project,region,b" - + "ackend_service,resource_group_reference_" - + "resource\202\323\344\223\002\200\001\"[/compute/v1/projects/{p" - + "roject}/regions/{region}/backendServices" - + "/{backend_service}/getHealth:!resource_g" - + "roup_reference_resource\022\354\001\n\014GetIamPolicy" - + "\022@.google.cloud.compute.v1.GetIamPolicyR" - + "egionBackendServiceRequest\032\037.google.clou" - + "d.compute.v1.Policy\"y\332A\027project,region,r" - + "esource\202\323\344\223\002Y\022W/compute/v1/projects/{pro" - + "ject}/regions/{region}/backendServices/{" - + "resource}/getIamPolicy\022\211\002\n\006Insert\022:.goog" - + "le.cloud.compute.v1.InsertRegionBackendS" - + "erviceRequest\032\".google.cloud.compute.v1." - + "Operation\"\236\001\332A\'project,region,backend_se" - + "rvice_resource\212N\020RegionOperations\202\323\344\223\002[\"" - + "?/compute/v1/projects/{project}/regions/" - + "{region}/backendServices:\030backend_servic" - + "e_resource\022\310\001\n\004List\0229.google.cloud.compu" - + "te.v1.ListRegionBackendServicesRequest\032+" - + ".google.cloud.compute.v1.BackendServiceL" - + "ist\"X\332A\016project,region\202\323\344\223\002A\022?/compute/v" - + "1/projects/{project}/regions/{region}/ba" - + "ckendServices\022\345\001\n\nListUsable\022?.google.cl" - + "oud.compute.v1.ListUsableRegionBackendSe" - + "rvicesRequest\0321.google.cloud.compute.v1." - + "BackendServiceListUsable\"c\332A\016project,reg" - + "ion\202\323\344\223\002L\022J/compute/v1/projects/{project" - + "}/regions/{region}/backendServices/listU" - + "sable\022\251\002\n\005Patch\0229.google.cloud.compute.v" - + "1.PatchRegionBackendServiceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\300\001\332A7proj" - + "ect,region,backend_service,backend_servi" - + "ce_resource\212N\020RegionOperations\202\323\344\223\002m2Q/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/backendServices/{backend_service}:" - + "\030backend_service_resource\022\264\002\n\014SetIamPoli" - + "cy\022@.google.cloud.compute.v1.SetIamPolic" - + "yRegionBackendServiceRequest\032\037.google.cl" - + "oud.compute.v1.Policy\"\300\001\332A:project,regio" - + "n,resource,region_set_policy_request_res" - + "ource\202\323\344\223\002}\"W/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendServices/{re" - + "source}/setIamPolicy:\"region_set_policy_" - + "request_resource\022\350\002\n\021SetSecurityPolicy\022E" - + ".google.cloud.compute.v1.SetSecurityPoli" - + "cyRegionBackendServiceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\347\001\332AAproject,r" - + "egion,backend_service,security_policy_re" - + "ference_resource\212N\020RegionOperations\202\323\344\223\002" - + "\211\001\"c/compute/v1/projects/{project}/regio" - + "ns/{region}/backendServices/{backend_ser" - + "vice}/setSecurityPolicy:\"security_policy" - + "_reference_resource\022\326\002\n\022TestIamPermissio" - + "ns\022F.google.cloud.compute.v1.TestIamPerm" - + "issionsRegionBackendServiceRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\305\001\332A9project,region,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002\202\001\"]/com" + + "ndBuckets/{resource}/getIamPolicy\022\205\002\n\006In" + + "sert\0229.google.cloud.compute.v1.InsertReg" + + "ionBackendBucketRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\233\001\332A&project,region," + + "backend_bucket_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002Y\">/compute/v1/projects/{project}" + + "/regions/{region}/backendBuckets:\027backen" + + "d_bucket_resource\022\305\001\n\004List\0228.google.clou" + + "d.compute.v1.ListRegionBackendBucketsReq" + + "uest\032*.google.cloud.compute.v1.BackendBu" + + "cketList\"W\332A\016project,region\202\323\344\223\002@\022>/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/backendBuckets\022\342\001\n\nListUsable\022>.googl" + + "e.cloud.compute.v1.ListUsableRegionBacke" + + "ndBucketsRequest\0320.google.cloud.compute." + + "v1.BackendBucketListUsable\"b\332A\016project,r" + + "egion\202\323\344\223\002K\022I/compute/v1/projects/{proje" + + "ct}/regions/{region}/backendBuckets/list" + + "Usable\022\243\002\n\005Patch\0228.google.cloud.compute." + + "v1.PatchRegionBackendBucketRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\273\001\332A5proj" + + "ect,region,backend_bucket,backend_bucket" + + "_resource\212N\020RegionOperations\202\323\344\223\002j2O/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/backendServices/{resource}/testIamPe" - + "rmissions:!test_permissions_request_reso" - + "urce\022\253\002\n\006Update\022:.google.cloud.compute.v" - + "1.UpdateRegionBackendServiceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\300\001\332A7pro" - + "ject,region,backend_service,backend_serv" - + "ice_resource\212N\020RegionOperations\202\323\344\223\002m\032Q/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/backendServices/{backend_service}" - + ":\030backend_service_resource\032\202\001\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" - + "\203\n\n\021RegionCommitments\022\315\001\n\016AggregatedList" - + "\022?.google.cloud.compute.v1.AggregatedLis" - + "tRegionCommitmentsRequest\0321.google.cloud" - + ".compute.v1.CommitmentAggregatedList\"G\332A" - + "\007project\202\323\344\223\0027\0225/compute/v1/projects/{pr" - + "oject}/aggregated/commitments\022\315\001\n\003Get\0223." - + "google.cloud.compute.v1.GetRegionCommitm" - + "entRequest\032#.google.cloud.compute.v1.Com" - + "mitment\"l\332A\031project,region,commitment\202\323\344" - + "\223\002J\022H/compute/v1/projects/{project}/regi" - + "ons/{region}/commitments/{commitment}\022\367\001" - + "\n\006Insert\0226.google.cloud.compute.v1.Inser" - + "tRegionCommitmentRequest\032\".google.cloud." - + "compute.v1.Operation\"\220\001\332A\"project,region" - + ",commitment_resource\212N\020RegionOperations\202" - + "\323\344\223\002R\";/compute/v1/projects/{project}/re" - + "gions/{region}/commitments:\023commitment_r" - + "esource\022\274\001\n\004List\0225.google.cloud.compute." - + "v1.ListRegionCommitmentsRequest\032\'.google" - + ".cloud.compute.v1.CommitmentList\"T\332A\016pro" - + "ject,region\202\323\344\223\002=\022;/compute/v1/projects/" - + "{project}/regions/{region}/commitments\022\217" - + "\002\n\006Update\0226.google.cloud.compute.v1.Upda" - + "teRegionCommitmentRequest\032\".google.cloud" - + ".compute.v1.Operation\"\250\001\332A-project,regio" - + "n,commitment,commitment_resource\212N\020Regio" - + "nOperations\202\323\344\223\002_2H/compute/v1/projects/" - + "{project}/regions/{region}/commitments/{" - + "commitment}:\023commitment_resource\032\202\001\312A\026co" + + "on}/backendBuckets/{backend_bucket}:\027bac" + + "kend_bucket_resource\022\262\002\n\014SetIamPolicy\022?." + + "google.cloud.compute.v1.SetIamPolicyRegi" + + "onBackendBucketRequest\032\037.google.cloud.co" + + "mpute.v1.Policy\"\277\001\332A:project,region,reso" + + "urce,region_set_policy_request_resource\202" + + "\323\344\223\002|\"V/compute/v1/projects/{project}/re" + + "gions/{region}/backendBuckets/{resource}" + + "/setIamPolicy:\"region_set_policy_request" + + "_resource\022\324\002\n\022TestIamPermissions\022E.googl" + + "e.cloud.compute.v1.TestIamPermissionsReg" + + "ionBackendBucketRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\304\001\332A9p" + + "roject,region,resource,test_permissions_" + + "request_resource\202\323\344\223\002\201\001\"\\/compute/v1/pro" + + "jects/{project}/regions/{region}/backend" + + "Buckets/{resource}/testIamPermissions:!t" + + "est_permissions_request_resource\032\202\001\312A\026co" + "mpute.googleapis.com\322AVhttps://www.googl" + "eapis.com/auth/compute,https://www.googl" + "eapis.com/auth/cloud-platform\212\324\333\322\017\n2026-" - + "09-012\214\023\n\033RegionCompositeHealthChecks\022\353\001" - + "\n\016AggregatedList\022I.google.cloud.compute." - + "v1.AggregatedListRegionCompositeHealthCh" - + "ecksRequest\032;.google.cloud.compute.v1.Co" - + "mpositeHealthCheckAggregatedList\"Q\332A\007pro" - + "ject\202\323\344\223\002A\022?/compute/v1/projects/{projec" - + "t}/aggregated/compositeHealthChecks\022\222\002\n\006" - + "Delete\022@.google.cloud.compute.v1.DeleteR" - + "egionCompositeHealthCheckRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\241\001\332A%projec" - + "t,region,composite_health_check\212N\020Region" - + "Operations\202\323\344\223\002`*^/compute/v1/projects/{" - + "project}/regions/{region}/compositeHealt" - + "hChecks/{composite_health_check}\022\204\002\n\003Get" - + "\022=.google.cloud.compute.v1.GetRegionComp" - + "ositeHealthCheckRequest\032-.google.cloud.c" - + "ompute.v1.CompositeHealthCheck\"\216\001\332A%proj" - + "ect,region,composite_health_check\202\323\344\223\002`\022" + + "09-012\316\033\n\025RegionBackendServices\022\370\001\n\006Dele" + + "te\022:.google.cloud.compute.v1.DeleteRegio" + + "nBackendServiceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\215\001\332A\036project,region,b" + + "ackend_service\212N\020RegionOperations\202\323\344\223\002S*" + + "Q/compute/v1/projects/{project}/regions/" + + "{region}/backendServices/{backend_servic" + + "e}\022\343\001\n\003Get\0227.google.cloud.compute.v1.Get" + + "RegionBackendServiceRequest\032\'.google.clo" + + "ud.compute.v1.BackendService\"z\332A\036project" + + ",region,backend_service\202\323\344\223\002S\022Q/compute/" + + "v1/projects/{project}/regions/{region}/b" + + "ackendServices/{backend_service}\022\313\002\n\tGet" + + "Health\022=.google.cloud.compute.v1.GetHeal" + + "thRegionBackendServiceRequest\0322.google.c" + + "loud.compute.v1.BackendServiceGroupHealt" + + "h\"\312\001\332A@project,region,backend_service,re" + + "source_group_reference_resource\202\323\344\223\002\200\001\"[" + + "/compute/v1/projects/{project}/regions/{" + + "region}/backendServices/{backend_service" + + "}/getHealth:!resource_group_reference_re" + + "source\022\354\001\n\014GetIamPolicy\022@.google.cloud.c" + + "ompute.v1.GetIamPolicyRegionBackendServi" + + "ceRequest\032\037.google.cloud.compute.v1.Poli" + + "cy\"y\332A\027project,region,resource\202\323\344\223\002Y\022W/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/backendServices/{resource}/getIamP" + + "olicy\022\211\002\n\006Insert\022:.google.cloud.compute." + + "v1.InsertRegionBackendServiceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\236\001\332A\'pr" + + "oject,region,backend_service_resource\212N\020" + + "RegionOperations\202\323\344\223\002[\"?/compute/v1/proj" + + "ects/{project}/regions/{region}/backendS" + + "ervices:\030backend_service_resource\022\310\001\n\004Li" + + "st\0229.google.cloud.compute.v1.ListRegionB" + + "ackendServicesRequest\032+.google.cloud.com" + + "pute.v1.BackendServiceList\"X\332A\016project,r" + + "egion\202\323\344\223\002A\022?/compute/v1/projects/{proje" + + "ct}/regions/{region}/backendServices\022\345\001\n" + + "\nListUsable\022?.google.cloud.compute.v1.Li" + + "stUsableRegionBackendServicesRequest\0321.g" + + "oogle.cloud.compute.v1.BackendServiceLis" + + "tUsable\"c\332A\016project,region\202\323\344\223\002L\022J/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/backendServices/listUsable\022\251\002\n\005Patch\0229" + + ".google.cloud.compute.v1.PatchRegionBack" + + "endServiceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\300\001\332A7project,region,backen" + + "d_service,backend_service_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002m2Q/compute/v1/project" + + "s/{project}/regions/{region}/backendServ" + + "ices/{backend_service}:\030backend_service_" + + "resource\022\264\002\n\014SetIamPolicy\022@.google.cloud" + + ".compute.v1.SetIamPolicyRegionBackendSer" + + "viceRequest\032\037.google.cloud.compute.v1.Po" + + "licy\"\300\001\332A:project,region,resource,region" + + "_set_policy_request_resource\202\323\344\223\002}\"W/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/backendServices/{resource}/setIamPol" + + "icy:\"region_set_policy_request_resource\022" + + "\350\002\n\021SetSecurityPolicy\022E.google.cloud.com" + + "pute.v1.SetSecurityPolicyRegionBackendSe" + + "rviceRequest\032\".google.cloud.compute.v1.O" + + "peration\"\347\001\332AAproject,region,backend_ser" + + "vice,security_policy_reference_resource\212" + + "N\020RegionOperations\202\323\344\223\002\211\001\"c/compute/v1/p" + + "rojects/{project}/regions/{region}/backe" + + "ndServices/{backend_service}/setSecurity" + + "Policy:\"security_policy_reference_resour" + + "ce\022\326\002\n\022TestIamPermissions\022F.google.cloud" + + ".compute.v1.TestIamPermissionsRegionBack" + + "endServiceRequest\0320.google.cloud.compute" + + ".v1.TestPermissionsResponse\"\305\001\332A9project" + + ",region,resource,test_permissions_reques" + + "t_resource\202\323\344\223\002\202\001\"]/compute/v1/projects/" + + "{project}/regions/{region}/backendServic" + + "es/{resource}/testIamPermissions:!test_p" + + "ermissions_request_resource\022\253\002\n\006Update\022:" + + ".google.cloud.compute.v1.UpdateRegionBac" + + "kendServiceRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\300\001\332A7project,region,backe" + + "nd_service,backend_service_resource\212N\020Re" + + "gionOperations\202\323\344\223\002m\032Q/compute/v1/projec" + + "ts/{project}/regions/{region}/backendSer" + + "vices/{backend_service}:\030backend_service" + + "_resource\032\202\001\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform\212\324\333\322\017\n2026-09-012\203\n\n\021RegionCommitm" + + "ents\022\315\001\n\016AggregatedList\022?.google.cloud.c" + + "ompute.v1.AggregatedListRegionCommitment" + + "sRequest\0321.google.cloud.compute.v1.Commi" + + "tmentAggregatedList\"G\332A\007project\202\323\344\223\0027\0225/" + + "compute/v1/projects/{project}/aggregated" + + "/commitments\022\315\001\n\003Get\0223.google.cloud.comp" + + "ute.v1.GetRegionCommitmentRequest\032#.goog" + + "le.cloud.compute.v1.Commitment\"l\332A\031proje" + + "ct,region,commitment\202\323\344\223\002J\022H/compute/v1/" + + "projects/{project}/regions/{region}/comm" + + "itments/{commitment}\022\367\001\n\006Insert\0226.google" + + ".cloud.compute.v1.InsertRegionCommitment" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\220\001\332A\"project,region,commitment_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002R\";/compute/v" + + "1/projects/{project}/regions/{region}/co" + + "mmitments:\023commitment_resource\022\274\001\n\004List\022" + + "5.google.cloud.compute.v1.ListRegionComm" + + "itmentsRequest\032\'.google.cloud.compute.v1" + + ".CommitmentList\"T\332A\016project,region\202\323\344\223\002=" + + "\022;/compute/v1/projects/{project}/regions" + + "/{region}/commitments\022\217\002\n\006Update\0226.googl" + + "e.cloud.compute.v1.UpdateRegionCommitmen" + + "tRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\250\001\332A-project,region,commitment,comm" + + "itment_resource\212N\020RegionOperations\202\323\344\223\002_" + + "2H/compute/v1/projects/{project}/regions" + + "/{region}/commitments/{commitment}:\023comm" + + "itment_resource\032\202\001\312A\026compute.googleapis." + + "com\322AVhttps://www.googleapis.com/auth/co" + + "mpute,https://www.googleapis.com/auth/cl" + + "oud-platform\212\324\333\322\017\n2026-09-012\214\023\n\033RegionC" + + "ompositeHealthChecks\022\353\001\n\016AggregatedList\022" + + "I.google.cloud.compute.v1.AggregatedList" + + "RegionCompositeHealthChecksRequest\032;.goo" + + "gle.cloud.compute.v1.CompositeHealthChec" + + "kAggregatedList\"Q\332A\007project\202\323\344\223\002A\022?/comp" + + "ute/v1/projects/{project}/aggregated/com" + + "positeHealthChecks\022\222\002\n\006Delete\022@.google.c" + + "loud.compute.v1.DeleteRegionCompositeHea" + + "lthCheckRequest\032\".google.cloud.compute.v" + + "1.Operation\"\241\001\332A%project,region,composit" + + "e_health_check\212N\020RegionOperations\202\323\344\223\002`*" + "^/compute/v1/projects/{project}/regions/" + "{region}/compositeHealthChecks/{composit" - + "e_health_check}\022\240\002\n\tGetHealth\022C.google.c" - + "loud.compute.v1.GetHealthRegionComposite" - + "HealthCheckRequest\0323.google.cloud.comput" - + "e.v1.CompositeHealthCheckHealth\"\230\001\332A%pro" - + "ject,region,composite_health_check\202\323\344\223\002j" - + "\022h/compute/v1/projects/{project}/regions" - + "/{region}/compositeHealthChecks/{composi" - + "te_health_check}/getHealth\022\243\002\n\006Insert\022@." - + "google.cloud.compute.v1.InsertRegionComp" - + "ositeHealthCheckRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\262\001\332A.project,region," - + "composite_health_check_resource\212N\020Region" - + "Operations\202\323\344\223\002h\"E/compute/v1/projects/{" - + "project}/regions/{region}/compositeHealt" - + "hChecks:\037composite_health_check_resource" - + "\022\332\001\n\004List\022?.google.cloud.compute.v1.List" - + "RegionCompositeHealthChecksRequest\0321.goo" - + "gle.cloud.compute.v1.CompositeHealthChec" - + "kList\"^\332A\016project,region\202\323\344\223\002G\022E/compute" - + "/v1/projects/{project}/regions/{region}/" - + "compositeHealthChecks\022\322\002\n\005Patch\022?.google" - + ".cloud.compute.v1.PatchRegionCompositeHe" - + "althCheckRequest\032\".google.cloud.compute." - + "v1.Operation\"\343\001\332AEproject,region,composi" - + "te_health_check,composite_health_check_r" - + "esource\212N\020RegionOperations\202\323\344\223\002\201\0012^/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/compositeHealthChecks/{composite_heal" - + "th_check}:\037composite_health_check_resour" - + "ce\022\342\002\n\022TestIamPermissions\022L.google.cloud" - + ".compute.v1.TestIamPermissionsRegionComp" - + "ositeHealthCheckRequest\0320.google.cloud.c" - + "ompute.v1.TestPermissionsResponse\"\313\001\332A9p" - + "roject,region,resource,test_permissions_" - + "request_resource\202\323\344\223\002\210\001\"c/compute/v1/pro" + + "e_health_check}\022\204\002\n\003Get\022=.google.cloud.c" + + "ompute.v1.GetRegionCompositeHealthCheckR" + + "equest\032-.google.cloud.compute.v1.Composi" + + "teHealthCheck\"\216\001\332A%project,region,compos" + + "ite_health_check\202\323\344\223\002`\022^/compute/v1/proj" + + "ects/{project}/regions/{region}/composit" + + "eHealthChecks/{composite_health_check}\022\240" + + "\002\n\tGetHealth\022C.google.cloud.compute.v1.G" + + "etHealthRegionCompositeHealthCheckReques" + + "t\0323.google.cloud.compute.v1.CompositeHea" + + "lthCheckHealth\"\230\001\332A%project,region,compo" + + "site_health_check\202\323\344\223\002j\022h/compute/v1/pro" + "jects/{project}/regions/{region}/composi" - + "teHealthChecks/{resource}/testIamPermiss" - + "ions:!test_permissions_request_resource\032" - + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform\212\324\333\322" - + "\017\n2026-09-012\317\004\n\017RegionDiskTypes\022\305\001\n\003Get" - + "\0221.google.cloud.compute.v1.GetRegionDisk" - + "TypeRequest\032!.google.cloud.compute.v1.Di" - + "skType\"h\332A\030project,region,disk_type\202\323\344\223\002" - + "G\022E/compute/v1/projects/{project}/region" - + "s/{region}/diskTypes/{disk_type}\022\274\001\n\004Lis" - + "t\0223.google.cloud.compute.v1.ListRegionDi" - + "skTypesRequest\032+.google.cloud.compute.v1" - + ".RegionDiskTypeList\"R\332A\016project,region\202\323" - + "\344\223\002;\0229/compute/v1/projects/{project}/reg" - + "ions/{region}/diskTypes\032\264\001\312A\026compute.goo" - + "gleapis.com\322A\207\001https://www.googleapis.co" - + "m/auth/compute.readonly,https://www.goog" - + "leapis.com/auth/compute,https://www.goog" - + "leapis.com/auth/cloud-platform\212\324\333\322\017\n2026" - + "-09-012\343(\n\013RegionDisks\022\346\002\n\023AddResourcePo" - + "licies\022=.google.cloud.compute.v1.AddReso" - + "urcePoliciesRegionDiskRequest\032\".google.c" - + "loud.compute.v1.Operation\"\353\001\332AGproject,r" - + "egion,disk,region_disks_add_resource_pol" - + "icies_request_resource\212N\020RegionOperation" - + "s\202\323\344\223\002\207\001\"P/compute/v1/projects/{project}" - + "/regions/{region}/disks/{disk}/addResour" - + "cePolicies:3region_disks_add_resource_po" - + "licies_request_resource\022\234\002\n\nBulkInsert\0224" - + ".google.cloud.compute.v1.BulkInsertRegio" + + "teHealthChecks/{composite_health_check}/" + + "getHealth\022\243\002\n\006Insert\022@.google.cloud.comp" + + "ute.v1.InsertRegionCompositeHealthCheckR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\262\001\332A.project,region,composite_health_" + + "check_resource\212N\020RegionOperations\202\323\344\223\002h\"" + + "E/compute/v1/projects/{project}/regions/" + + "{region}/compositeHealthChecks:\037composit" + + "e_health_check_resource\022\332\001\n\004List\022?.googl" + + "e.cloud.compute.v1.ListRegionCompositeHe" + + "althChecksRequest\0321.google.cloud.compute" + + ".v1.CompositeHealthCheckList\"^\332A\016project" + + ",region\202\323\344\223\002G\022E/compute/v1/projects/{pro" + + "ject}/regions/{region}/compositeHealthCh" + + "ecks\022\322\002\n\005Patch\022?.google.cloud.compute.v1" + + ".PatchRegionCompositeHealthCheckRequest\032" + + "\".google.cloud.compute.v1.Operation\"\343\001\332A" + + "Eproject,region,composite_health_check,c" + + "omposite_health_check_resource\212N\020RegionO" + + "perations\202\323\344\223\002\201\0012^/compute/v1/projects/{" + + "project}/regions/{region}/compositeHealt" + + "hChecks/{composite_health_check}:\037compos" + + "ite_health_check_resource\022\342\002\n\022TestIamPer" + + "missions\022L.google.cloud.compute.v1.TestI" + + "amPermissionsRegionCompositeHealthCheckR" + + "equest\0320.google.cloud.compute.v1.TestPer" + + "missionsResponse\"\313\001\332A9project,region,res" + + "ource,test_permissions_request_resource\202" + + "\323\344\223\002\210\001\"c/compute/v1/projects/{project}/r" + + "egions/{region}/compositeHealthChecks/{r" + + "esource}/testIamPermissions:!test_permis" + + "sions_request_resource\032\202\001\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\317\004\n\017" + + "RegionDiskTypes\022\305\001\n\003Get\0221.google.cloud.c" + + "ompute.v1.GetRegionDiskTypeRequest\032!.goo" + + "gle.cloud.compute.v1.DiskType\"h\332A\030projec" + + "t,region,disk_type\202\323\344\223\002G\022E/compute/v1/pr" + + "ojects/{project}/regions/{region}/diskTy" + + "pes/{disk_type}\022\274\001\n\004List\0223.google.cloud." + + "compute.v1.ListRegionDiskTypesRequest\032+." + + "google.cloud.compute.v1.RegionDiskTypeLi" + + "st\"R\332A\016project,region\202\323\344\223\002;\0229/compute/v1" + + "/projects/{project}/regions/{region}/dis" + + "kTypes\032\264\001\312A\026compute.googleapis.com\322A\207\001ht" + + "tps://www.googleapis.com/auth/compute.re" + + "adonly,https://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform\212\324\333\322\017\n2026-09-012\343(\n\013Region" + + "Disks\022\346\002\n\023AddResourcePolicies\022=.google.c" + + "loud.compute.v1.AddResourcePoliciesRegio" + "nDiskRequest\032\".google.cloud.compute.v1.O" - + "peration\"\263\001\332A1project,region,bulk_insert" - + "_disk_resource_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002f\"@/compute/v1/projects/{project}" - + "/regions/{region}/disks/bulkInsert:\"bulk" - + "_insert_disk_resource_resource\022\222\002\n\016Creat" - + "eSnapshot\0228.google.cloud.compute.v1.Crea" - + "teSnapshotRegionDiskRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\241\001\332A%project,reg" - + "ion,disk,snapshot_resource\212N\020RegionOpera" - + "tions\202\323\344\223\002`\"K/compute/v1/projects/{proje" - + "ct}/regions/{region}/disks/{disk}/create" - + "Snapshot:\021snapshot_resource\022\315\001\n\006Delete\0220" - + ".google.cloud.compute.v1.DeleteRegionDis" - + "kRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"m\332A\023project,region,disk\212N\020RegionOpe" - + "rations\202\323\344\223\002>*\022.google.cloud.compute.v1.StopA" - + "syncReplicationRegionDiskRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\202\001\332A\023projec" - + "t,region,disk\212N\020RegionOperations\202\323\344\223\002S\"Q" + + "/disks/{disk}/addResourcePolicies:3regio" + + "n_disks_add_resource_policies_request_re" + + "source\022\234\002\n\nBulkInsert\0224.google.cloud.com" + + "pute.v1.BulkInsertRegionDiskRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\263\001\332A1pro" + + "ject,region,bulk_insert_disk_resource_re" + + "source\212N\020RegionOperations\202\323\344\223\002f\"@/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/disks/bulkInsert:\"bulk_insert_disk_reso" + + "urce_resource\022\222\002\n\016CreateSnapshot\0228.googl" + + "e.cloud.compute.v1.CreateSnapshotRegionD" + + "iskRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\241\001\332A%project,region,disk,snapshot" + + "_resource\212N\020RegionOperations\202\323\344\223\002`\"K/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/disks/{disk}/createSnapshot:\021snapsho" + + "t_resource\022\315\001\n\006Delete\0220.google.cloud.com" + + "pute.v1.DeleteRegionDiskRequest\032\".google" + + ".cloud.compute.v1.Operation\"m\332A\023project," + + "region,disk\212N\020RegionOperations\202\323\344\223\002>*\022.google.cloud.compute.v1.HealthAggre" - + "gationPolicyAggregatedList\"U\332A\007project\202\323" - + "\344\223\002E\022C/compute/v1/projects/{project}/agg" - + "regated/healthAggregationPolicies\022\237\002\n\006De" - + "lete\022C.google.cloud.compute.v1.DeleteReg" - + "ionHealthAggregationPolicyRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\253\001\332A(proje" - + "ct,region,health_aggregation_policy\212N\020Re" - + "gionOperations\202\323\344\223\002g*e/compute/v1/projec" - + "ts/{project}/regions/{region}/healthAggr" - + "egationPolicies/{health_aggregation_poli" - + "cy}\022\224\002\n\003Get\022@.google.cloud.compute.v1.Ge" - + "tRegionHealthAggregationPolicyRequest\0320." - + "google.cloud.compute.v1.HealthAggregatio" - + "nPolicy\"\230\001\332A(project,region,health_aggre" - + "gation_policy\202\323\344\223\002g\022e/compute/v1/project" - + "s/{project}/regions/{region}/healthAggre" - + "gationPolicies/{health_aggregation_polic" - + "y}\022\260\002\n\006Insert\022C.google.cloud.compute.v1." - + "InsertRegionHealthAggregationPolicyReque" - + "st\032\".google.cloud.compute.v1.Operation\"\274" - + "\001\332A1project,region,health_aggregation_po" - + "licy_resource\212N\020RegionOperations\202\323\344\223\002o\"I" + + "region}/disks\022\365\002\n\026RemoveResourcePolicies" + + "\022@.google.cloud.compute.v1.RemoveResourc" + + "ePoliciesRegionDiskRequest\032\".google.clou" + + "d.compute.v1.Operation\"\364\001\332AJproject,regi" + + "on,disk,region_disks_remove_resource_pol" + + "icies_request_resource\212N\020RegionOperation" + + "s\202\323\344\223\002\215\001\"S/compute/v1/projects/{project}" + + "/regions/{region}/disks/{disk}/removeRes" + + "ourcePolicies:6region_disks_remove_resou" + + "rce_policies_request_resource\022\240\002\n\006Resize" + + "\0220.google.cloud.compute.v1.ResizeRegionD" + + "iskRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\277\001\332A8project,region,disk,region_d" + + "isks_resize_request_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002k\"C/compute/v1/projects/{pro" + + "ject}/regions/{region}/disks/{disk}/resi" + + "ze:$region_disks_resize_request_resource", + "\022\240\002\n\014SetIamPolicy\0226.google.cloud.compute" + + ".v1.SetIamPolicyRegionDiskRequest\032\037.goog" + + "le.cloud.compute.v1.Policy\"\266\001\332A:project," + + "region,resource,region_set_policy_reques" + + "t_resource\202\323\344\223\002s\"M/compute/v1/projects/{" + + "project}/regions/{region}/disks/{resourc" + + "e}/setIamPolicy:\"region_set_policy_reque" + + "st_resource\022\255\002\n\tSetLabels\0223.google.cloud" + + ".compute.v1.SetLabelsRegionDiskRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\306\001\332A:" + + "project,region,resource,region_set_label" + + "s_request_resource\212N\020RegionOperations\202\323\344" + + "\223\002p\"J/compute/v1/projects/{project}/regi" + + "ons/{region}/disks/{resource}/setLabels:" + + "\"region_set_labels_request_resource\022\360\002\n\025" + + "StartAsyncReplication\022?.google.cloud.com" + + "pute.v1.StartAsyncReplicationRegionDiskR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\361\001\332AIproject,region,disk,region_disks" + + "_start_async_replication_request_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002\213\001\"R/compute/v1" + + "/projects/{project}/regions/{region}/dis" + + "ks/{disk}/startAsyncReplication:5region_" + + "disks_start_async_replication_request_re" + + "source\022\377\001\n\024StopAsyncReplication\022>.google" + + ".cloud.compute.v1.StopAsyncReplicationRe" + + "gionDiskRequest\032\".google.cloud.compute.v" + + "1.Operation\"\202\001\332A\023project,region,disk\212N\020R" + + "egionOperations\202\323\344\223\002S\"Q/compute/v1/proje" + + "cts/{project}/regions/{region}/disks/{di" + + "sk}/stopAsyncReplication\022\356\002\n\031StopGroupAs" + + "yncReplication\022C.google.cloud.compute.v1" + + ".StopGroupAsyncReplicationRegionDiskRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\347\001\332ACproject,region,disks_stop_group_asy" + + "nc_replication_resource_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\207\001\"O/compute/v1/projects" + + "/{project}/regions/{region}/disks/stopGr" + + "oupAsyncReplication:4disks_stop_group_as" + + "ync_replication_resource_resource\022\301\002\n\022Te" + + "stIamPermissions\022<.google.cloud.compute." + + "v1.TestIamPermissionsRegionDiskRequest\0320" + + ".google.cloud.compute.v1.TestPermissions" + + "Response\"\272\001\332A9project,region,resource,te" + + "st_permissions_request_resource\202\323\344\223\002x\"S/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/disks/{resource}/testIamPermissio" + + "ns:!test_permissions_request_resource\022\353\001" + + "\n\006Update\0220.google.cloud.compute.v1.Updat" + + "eRegionDiskRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\212\001\332A!project,region,disk," + + "disk_resource\212N\020RegionOperations\202\323\344\223\002M2<" + "/compute/v1/projects/{project}/regions/{" - + "region}/healthAggregationPolicies:\"healt" - + "h_aggregation_policy_resource\022\345\001\n\004List\022C" - + ".google.cloud.compute.v1.ListRegionHealt" - + "hAggregationPoliciesRequest\0324.google.clo" - + "ud.compute.v1.HealthAggregationPolicyLis" - + "t\"b\332A\016project,region\202\323\344\223\002K\022I/compute/v1/" - + "projects/{project}/regions/{region}/heal" - + "thAggregationPolicies\022\345\002\n\005Patch\022B.google" - + ".cloud.compute.v1.PatchRegionHealthAggre" - + "gationPolicyRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\363\001\332AKproject,region,heal" - + "th_aggregation_policy,health_aggregation" - + "_policy_resource\212N\020RegionOperations\202\323\344\223\002" - + "\213\0012e/compute/v1/projects/{project}/regio" + + "region}/disks/{disk}:\rdisk_resource\022\300\002\n\014" + + "UpdateKmsKey\0226.google.cloud.compute.v1.U" + + "pdateKmsKeyRegionDiskRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\323\001\332A?project,re" + + "gion,disk,region_disk_update_kms_key_req" + + "uest_resource\212N\020RegionOperations\202\323\344\223\002x\"I" + + "/compute/v1/projects/{project}/regions/{" + + "region}/disks/{disk}/updateKmsKey:+regio" + + "n_disk_update_kms_key_request_resource\032\202" + + "\001\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" + + "\n2026-09-012\307\021\n\037RegionHealthAggregationP" + + "olicies\022\366\001\n\016AggregatedList\022M.google.clou" + + "d.compute.v1.AggregatedListRegionHealthA" + + "ggregationPoliciesRequest\032>.google.cloud" + + ".compute.v1.HealthAggregationPolicyAggre" + + "gatedList\"U\332A\007project\202\323\344\223\002E\022C/compute/v1" + + "/projects/{project}/aggregated/healthAgg" + + "regationPolicies\022\237\002\n\006Delete\022C.google.clo" + + "ud.compute.v1.DeleteRegionHealthAggregat" + + "ionPolicyRequest\032\".google.cloud.compute." + + "v1.Operation\"\253\001\332A(project,region,health_" + + "aggregation_policy\212N\020RegionOperations\202\323\344" + + "\223\002g*e/compute/v1/projects/{project}/regi" + + "ons/{region}/healthAggregationPolicies/{" + + "health_aggregation_policy}\022\224\002\n\003Get\022@.goo" + + "gle.cloud.compute.v1.GetRegionHealthAggr" + + "egationPolicyRequest\0320.google.cloud.comp" + + "ute.v1.HealthAggregationPolicy\"\230\001\332A(proj" + + "ect,region,health_aggregation_policy\202\323\344\223" + + "\002g\022e/compute/v1/projects/{project}/regio" + "ns/{region}/healthAggregationPolicies/{h" - + "ealth_aggregation_policy}:\"health_aggreg" - + "ation_policy_resource\022\351\002\n\022TestIamPermiss" - + "ions\022O.google.cloud.compute.v1.TestIamPe" - + "rmissionsRegionHealthAggregationPolicyRe" - + "quest\0320.google.cloud.compute.v1.TestPerm" - + "issionsResponse\"\317\001\332A9project,region,reso" - + "urce,test_permissions_request_resource\202\323" - + "\344\223\002\214\001\"g/compute/v1/projects/{project}/re" - + "gions/{region}/healthAggregationPolicies" - + "/{resource}/testIamPermissions:!test_per" - + "missions_request_resource\032\202\001\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\261" - + "\020\n\031RegionHealthCheckServices\022\345\001\n\016Aggrega" - + "tedList\022G.google.cloud.compute.v1.Aggreg" - + "atedListRegionHealthCheckServicesRequest" - + "\0329.google.cloud.compute.v1.HealthCheckSe" - + "rviceAggregatedList\"O\332A\007project\202\323\344\223\002?\022=/" - + "compute/v1/projects/{project}/aggregated" - + "/healthCheckServices\022\212\002\n\006Delete\022>.google" - + ".cloud.compute.v1.DeleteRegionHealthChec" - + "kServiceRequest\032\".google.cloud.compute.v" - + "1.Operation\"\233\001\332A#project,region,health_c" - + "heck_service\212N\020RegionOperations\202\323\344\223\002\\*Z/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/healthCheckServices/{health_check" - + "_service}\022\372\001\n\003Get\022;.google.cloud.compute" - + ".v1.GetRegionHealthCheckServiceRequest\032+" - + ".google.cloud.compute.v1.HealthCheckServ" - + "ice\"\210\001\332A#project,region,health_check_ser" - + "vice\202\323\344\223\002\\\022Z/compute/v1/projects/{projec" - + "t}/regions/{region}/healthCheckServices/" - + "{health_check_service}\022\233\002\n\006Insert\022>.goog" - + "le.cloud.compute.v1.InsertRegionHealthCh" - + "eckServiceRequest\032\".google.cloud.compute" - + ".v1.Operation\"\254\001\332A,project,region,health" - + "_check_service_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002d\"C/compute/v1/projects/{project}" - + "/regions/{region}/healthCheckServices:\035h" - + "ealth_check_service_resource\022\325\001\n\004List\022=." - + "google.cloud.compute.v1.ListRegionHealth" - + "CheckServicesRequest\0320.google.cloud.comp" - + "ute.v1.HealthCheckServicesList\"\\\332A\016proje" - + "ct,region\202\323\344\223\002E\022C/compute/v1/projects/{p" - + "roject}/regions/{region}/healthCheckServ" - + "ices\022\305\002\n\005Patch\022=.google.cloud.compute.v1" - + ".PatchRegionHealthCheckServiceRequest\032\"." - + "google.cloud.compute.v1.Operation\"\330\001\332AAp" - + "roject,region,health_check_service,healt" - + "h_check_service_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002{2Z/compute/v1/projects/{project" - + "}/regions/{region}/healthCheckServices/{" - + "health_check_service}:\035health_check_serv" - + "ice_resource\022\336\002\n\022TestIamPermissions\022J.go" - + "ogle.cloud.compute.v1.TestIamPermissions" - + "RegionHealthCheckServiceRequest\0320.google" - + ".cloud.compute.v1.TestPermissionsRespons" - + "e\"\311\001\332A9project,region,resource,test_perm" - + "issions_request_resource\202\323\344\223\002\206\001\"a/comput" + + "ealth_aggregation_policy}\022\260\002\n\006Insert\022C.g" + + "oogle.cloud.compute.v1.InsertRegionHealt" + + "hAggregationPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\274\001\332A1project,regio" + + "n,health_aggregation_policy_resource\212N\020R" + + "egionOperations\202\323\344\223\002o\"I/compute/v1/proje" + + "cts/{project}/regions/{region}/healthAgg" + + "regationPolicies:\"health_aggregation_pol" + + "icy_resource\022\345\001\n\004List\022C.google.cloud.com" + + "pute.v1.ListRegionHealthAggregationPolic" + + "iesRequest\0324.google.cloud.compute.v1.Hea" + + "lthAggregationPolicyList\"b\332A\016project,reg" + + "ion\202\323\344\223\002K\022I/compute/v1/projects/{project" + + "}/regions/{region}/healthAggregationPoli" + + "cies\022\345\002\n\005Patch\022B.google.cloud.compute.v1" + + ".PatchRegionHealthAggregationPolicyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\363" + + "\001\332AKproject,region,health_aggregation_po" + + "licy,health_aggregation_policy_resource\212" + + "N\020RegionOperations\202\323\344\223\002\213\0012e/compute/v1/p" + + "rojects/{project}/regions/{region}/healt" + + "hAggregationPolicies/{health_aggregation" + + "_policy}:\"health_aggregation_policy_reso" + + "urce\022\351\002\n\022TestIamPermissions\022O.google.clo" + + "ud.compute.v1.TestIamPermissionsRegionHe" + + "althAggregationPolicyRequest\0320.google.cl" + + "oud.compute.v1.TestPermissionsResponse\"\317" + + "\001\332A9project,region,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002\214\001\"g/compute/v" + + "1/projects/{project}/regions/{region}/he" + + "althAggregationPolicies/{resource}/testI" + + "amPermissions:!test_permissions_request_" + + "resource\032\202\001\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform\212\324\333\322\017\n2026-09-012\261\020\n\031RegionHealthCh" + + "eckServices\022\345\001\n\016AggregatedList\022G.google." + + "cloud.compute.v1.AggregatedListRegionHea" + + "lthCheckServicesRequest\0329.google.cloud.c" + + "ompute.v1.HealthCheckServiceAggregatedLi" + + "st\"O\332A\007project\202\323\344\223\002?\022=/compute/v1/projec" + + "ts/{project}/aggregated/healthCheckServi" + + "ces\022\212\002\n\006Delete\022>.google.cloud.compute.v1" + + ".DeleteRegionHealthCheckServiceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\233\001\332A#" + + "project,region,health_check_service\212N\020Re" + + "gionOperations\202\323\344\223\002\\*Z/compute/v1/projec" + + "ts/{project}/regions/{region}/healthChec" + + "kServices/{health_check_service}\022\372\001\n\003Get" + + "\022;.google.cloud.compute.v1.GetRegionHeal" + + "thCheckServiceRequest\032+.google.cloud.com" + + "pute.v1.HealthCheckService\"\210\001\332A#project," + + "region,health_check_service\202\323\344\223\002\\\022Z/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/healthCheckServices/{health_check_ser" + + "vice}\022\233\002\n\006Insert\022>.google.cloud.compute." + + "v1.InsertRegionHealthCheckServiceRequest" + + "\032\".google.cloud.compute.v1.Operation\"\254\001\332" + + "A,project,region,health_check_service_re" + + "source\212N\020RegionOperations\202\323\344\223\002d\"C/comput" + "e/v1/projects/{project}/regions/{region}" - + "/healthCheckServices/{resource}/testIamP" - + "ermissions:!test_permissions_request_res" - + "ource\032\202\001\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm\212\324\333\322\017\n2026-09-012\251\017\n\022RegionHealthCheck" - + "s\022\354\001\n\006Delete\0227.google.cloud.compute.v1.D" - + "eleteRegionHealthCheckRequest\032\".google.c" - + "loud.compute.v1.Operation\"\204\001\332A\033project,r" - + "egion,health_check\212N\020RegionOperations\202\323\344" - + "\223\002M*K/compute/v1/projects/{project}/regi" - + "ons/{region}/healthChecks/{health_check}" - + "\022\324\001\n\003Get\0224.google.cloud.compute.v1.GetRe" - + "gionHealthCheckRequest\032$.google.cloud.co" - + "mpute.v1.HealthCheck\"q\332A\033project,region," - + "health_check\202\323\344\223\002M\022K/compute/v1/projects" - + "/{project}/regions/{region}/healthChecks" - + "/{health_check}\022\375\001\n\006Insert\0227.google.clou" - + "d.compute.v1.InsertRegionHealthCheckRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\225\001\332A$project,region,health_check_resourc" - + "e\212N\020RegionOperations\202\323\344\223\002U\"\022\022region_instance_" + + "group_managers_stop_instances_request_re" + + "source\022\275\003\n\020SuspendInstances\022J.google.clo" + + "ud.compute.v1.SuspendInstancesRegionInst" + + "anceGroupManagerRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\270\002\332Agproject,region," + + "instance_group_manager,region_instance_g" + + "roup_managers_suspend_instances_request_" + + "resource\212N\020RegionOperations\202\323\344\223\002\264\001\"o/com" + "pute/v1/projects/{project}/regions/{regi" + "on}/instanceGroupManagers/{instance_grou" - + "p_manager}/patchPerInstanceConfigs:@regi" - + "on_instance_group_manager_patch_instance" - + "_config_req_resource\022\256\003\n\021RecreateInstanc" - + "es\022K.google.cloud.compute.v1.RecreateIns" - + "tancesRegionInstanceGroupManagerRequest\032" - + "\".google.cloud.compute.v1.Operation\"\247\002\332A" - + "^project,region,instance_group_manager,r" - + "egion_instance_group_managers_recreate_r" - + "equest_resource\212N\020RegionOperations\202\323\344\223\002\254" - + "\001\"p/compute/v1/projects/{project}/region" - + "s/{region}/instanceGroupManagers/{instan" - + "ce_group_manager}/recreateInstances:8reg" - + "ion_instance_group_managers_recreate_req" - + "uest_resource\022\236\002\n\006Resize\022@.google.cloud." - + "compute.v1.ResizeRegionInstanceGroupMana" - + "gerRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\255\001\332A*project,region,instance_grou" - + "p_manager,size\212N\020RegionOperations\202\323\344\223\002g\"" - + "e/compute/v1/projects/{project}/regions/" - + "{region}/instanceGroupManagers/{instance" - + "_group_manager}/resize\022\270\003\n\017ResumeInstanc" - + "es\022I.google.cloud.compute.v1.ResumeInsta" - + "ncesRegionInstanceGroupManagerRequest\032\"." - + "google.cloud.compute.v1.Operation\"\265\002\332Afp" - + "roject,region,instance_group_manager,reg" - + "ion_instance_group_managers_resume_insta" - + "nces_request_resource\212N\020RegionOperations" - + "\202\323\344\223\002\262\001\"n/compute/v1/projects/{project}/" - + "regions/{region}/instanceGroupManagers/{" - + "instance_group_manager}/resumeInstances:" - + "@region_instance_group_managers_resume_i" - + "nstances_request_resource\022\274\003\n\023SetInstanc" - + "eTemplate\022M.google.cloud.compute.v1.SetI" - + "nstanceTemplateRegionInstanceGroupManage" - + "rRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\261\002\332Abproject,region,instance_group_" - + "manager,region_instance_group_managers_s" - + "et_template_request_resource\212N\020RegionOpe" - + "rations\202\323\344\223\002\262\001\"r/compute/v1/projects/{pr" - + "oject}/regions/{region}/instanceGroupMan" - + "agers/{instance_group_manager}/setInstan" - + "ceTemplate:region_instance_group_managers_stop_ins" - + "tances_request_resource\022\275\003\n\020SuspendInsta" - + "nces\022J.google.cloud.compute.v1.SuspendIn" - + "stancesRegionInstanceGroupManagerRequest" - + "\032\".google.cloud.compute.v1.Operation\"\270\002\332" - + "Agproject,region,instance_group_manager," - + "region_instance_group_managers_suspend_i" - + "nstances_request_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002\264\001\"o/compute/v1/projects/{proje" - + "ct}/regions/{region}/instanceGroupManage" - + "rs/{instance_group_manager}/suspendInsta" - + "nces:Aregion_instance_group_managers_sus" - + "pend_instances_request_resource\022\325\003\n\030Upda" - + "tePerInstanceConfigs\022R.google.cloud.comp" - + "ute.v1.UpdatePerInstanceConfigsRegionIns" - + "tanceGroupManagerRequest\032\".google.cloud." - + "compute.v1.Operation\"\300\002\332Agproject,region" - + ",instance_group_manager,region_instance_" - + "group_manager_update_instance_config_req" - + "_resource\212N\020RegionOperations\202\323\344\223\002\274\001\"w/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instanceGroupManagers/{instance_gro" - + "up_manager}/updatePerInstanceConfigs:Are" - + "gion_instance_group_manager_update_insta" - + "nce_config_req_resource\032\202\001\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform\212\324\333\322\017\n2026-09-012\257\r\n" - + "\024RegionInstanceGroups\022\336\001\n\003Get\0226.google.c" - + "loud.compute.v1.GetRegionInstanceGroupRe" - + "quest\032&.google.cloud.compute.v1.Instance" - + "Group\"w\332A\035project,region,instance_group\202" - + "\323\344\223\002Q\022O/compute/v1/projects/{project}/re" - + "gions/{region}/instanceGroups/{instance_" - + "group}\022\313\001\n\004List\0228.google.cloud.compute.v" - + "1.ListRegionInstanceGroupsRequest\0320.goog" - + "le.cloud.compute.v1.RegionInstanceGroupL" - + "ist\"W\332A\016project,region\202\323\344\223\002@\022>/compute/v" + + "p_manager}/suspendInstances:Aregion_inst" + + "ance_group_managers_suspend_instances_re" + + "quest_resource\022\325\003\n\030UpdatePerInstanceConf" + + "igs\022R.google.cloud.compute.v1.UpdatePerI" + + "nstanceConfigsRegionInstanceGroupManager" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\300\002\332Agproject,region,instance_group_m" + + "anager,region_instance_group_manager_upd" + + "ate_instance_config_req_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\274\001\"w/compute/v1/projects" + + "/{project}/regions/{region}/instanceGrou" + + "pManagers/{instance_group_manager}/updat" + + "ePerInstanceConfigs:Aregion_instance_gro" + + "up_manager_update_instance_config_req_re" + + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm\212\324\333\322\017\n2026-09-012\257\r\n\024RegionInstanceGr" + + "oups\022\336\001\n\003Get\0226.google.cloud.compute.v1.G" + + "etRegionInstanceGroupRequest\032&.google.cl" + + "oud.compute.v1.InstanceGroup\"w\332A\035project" + + ",region,instance_group\202\323\344\223\002Q\022O/compute/v" + "1/projects/{project}/regions/{region}/in" - + "stanceGroups\022\206\003\n\rListInstances\022A.google." - + "cloud.compute.v1.ListInstancesRegionInst" - + "anceGroupsRequest\032:.google.cloud.compute" - + ".v1.RegionInstanceGroupsListInstances\"\365\001" - + "\332ATproject,region,instance_group,region_" - + "instance_groups_list_instances_request_r" - + "esource\202\323\344\223\002\227\001\"]/compute/v1/projects/{pr" - + "oject}/regions/{region}/instanceGroups/{" - + "instance_group}/listInstances:6region_in" - + "stance_groups_list_instances_request_res" - + "ource\022\202\003\n\rSetNamedPorts\022@.google.cloud.c" - + "ompute.v1.SetNamedPortsRegionInstanceGro" - + "upRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\212\002\332AUproject,region,instance_group" - + ",region_instance_groups_set_named_ports_" - + "request_resource\212N\020RegionOperations\202\323\344\223\002" - + "\230\001\"]/compute/v1/projects/{project}/regio" - + "ns/{region}/instanceGroups/{instance_gro" - + "up}/setNamedPorts:7region_instance_group" - + "s_set_named_ports_request_resource\022\324\002\n\022T" - + "estIamPermissions\022E.google.cloud.compute" - + ".v1.TestIamPermissionsRegionInstanceGrou" - + "pRequest\0320.google.cloud.compute.v1.TestP" - + "ermissionsResponse\"\304\001\332A9project,region,r" - + "esource,test_permissions_request_resourc" - + "e\202\323\344\223\002\201\001\"\\/compute/v1/projects/{project}" - + "/regions/{region}/instanceGroups/{resour" - + "ce}/testIamPermissions:!test_permissions" - + "_request_resource\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\367\010\n\027Regio" - + "nInstanceTemplates\022\200\002\n\006Delete\022<.google.c" - + "loud.compute.v1.DeleteRegionInstanceTemp" - + "lateRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\223\001\332A project,region,instance_tem" - + "plate\212N\020RegionOperations\202\323\344\223\002W*U/compute" - + "/v1/projects/{project}/regions/{region}/" - + "instanceTemplates/{instance_template}\022\356\001" - + "\n\003Get\0229.google.cloud.compute.v1.GetRegio" - + "nInstanceTemplateRequest\032).google.cloud." - + "compute.v1.InstanceTemplate\"\200\001\332A project" - + ",region,instance_template\202\323\344\223\002W\022U/comput" + + "stanceGroups/{instance_group}\022\313\001\n\004List\0228" + + ".google.cloud.compute.v1.ListRegionInsta" + + "nceGroupsRequest\0320.google.cloud.compute." + + "v1.RegionInstanceGroupList\"W\332A\016project,r" + + "egion\202\323\344\223\002@\022>/compute/v1/projects/{proje" + + "ct}/regions/{region}/instanceGroups\022\206\003\n\r" + + "ListInstances\022A.google.cloud.compute.v1." + + "ListInstancesRegionInstanceGroupsRequest" + + "\032:.google.cloud.compute.v1.RegionInstanc" + + "eGroupsListInstances\"\365\001\332ATproject,region" + + ",instance_group,region_instance_groups_l" + + "ist_instances_request_resource\202\323\344\223\002\227\001\"]/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instanceGroups/{instance_group}/l" + + "istInstances:6region_instance_groups_lis" + + "t_instances_request_resource\022\202\003\n\rSetName" + + "dPorts\022@.google.cloud.compute.v1.SetName" + + "dPortsRegionInstanceGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\212\002\332AUprojec" + + "t,region,instance_group,region_instance_" + + "groups_set_named_ports_request_resource\212" + + "N\020RegionOperations\202\323\344\223\002\230\001\"]/compute/v1/p" + + "rojects/{project}/regions/{region}/insta" + + "nceGroups/{instance_group}/setNamedPorts" + + ":7region_instance_groups_set_named_ports" + + "_request_resource\022\324\002\n\022TestIamPermissions" + + "\022E.google.cloud.compute.v1.TestIamPermis" + + "sionsRegionInstanceGroupRequest\0320.google" + + ".cloud.compute.v1.TestPermissionsRespons" + + "e\"\304\001\332A9project,region,resource,test_perm" + + "issions_request_resource\202\323\344\223\002\201\001\"\\/comput" + "e/v1/projects/{project}/regions/{region}" - + "/instanceTemplates/{instance_template}\022\221" - + "\002\n\006Insert\022<.google.cloud.compute.v1.Inse" - + "rtRegionInstanceTemplateRequest\032\".google" - + ".cloud.compute.v1.Operation\"\244\001\332A)project" - + ",region,instance_template_resource\212N\020Reg" - + "ionOperations\202\323\344\223\002_\"A/compute/v1/project" - + "s/{project}/regions/{region}/instanceTem" - + "plates:\032instance_template_resource\022\316\001\n\004L" - + "ist\022;.google.cloud.compute.v1.ListRegion" - + "InstanceTemplatesRequest\032-.google.cloud." - + "compute.v1.InstanceTemplateList\"Z\332A\016proj" - + "ect,region\202\323\344\223\002C\022A/compute/v1/projects/{" - + "project}/regions/{region}/instanceTempla" - + "tes\032\202\001\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "\212\324\333\322\017\n2026-09-012\305\003\n\017RegionInstances\022\254\002\n" - + "\nBulkInsert\0228.google.cloud.compute.v1.Bu" - + "lkInsertRegionInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\277\001\332A5project,r" - + "egion,bulk_insert_instance_resource_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002n\"D/compute/" - + "v1/projects/{project}/regions/{region}/i" - + "nstances/bulkInsert:&bulk_insert_instanc" - + "e_resource_resource\032\202\001\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\346\020\n\033Reg" - + "ionInstantSnapshotGroups\022\222\002\n\006Delete\022@.go" - + "ogle.cloud.compute.v1.DeleteRegionInstan" - + "tSnapshotGroupRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\241\001\332A%project,region,in" - + "stant_snapshot_group\212N\020RegionOperations\202" - + "\323\344\223\002`*^/compute/v1/projects/{project}/re" - + "gions/{region}/instantSnapshotGroups/{in" - + "stant_snapshot_group}\022\204\002\n\003Get\022=.google.c" - + "loud.compute.v1.GetRegionInstantSnapshot" - + "GroupRequest\032-.google.cloud.compute.v1.I" - + "nstantSnapshotGroup\"\216\001\332A%project,region," - + "instant_snapshot_group\202\323\344\223\002`\022^/compute/v" + + "/instanceGroups/{resource}/testIamPermis" + + "sions:!test_permissions_request_resource" + + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform\212\324\333" + + "\322\017\n2026-09-012\367\010\n\027RegionInstanceTemplate" + + "s\022\200\002\n\006Delete\022<.google.cloud.compute.v1.D" + + "eleteRegionInstanceTemplateRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\223\001\332A proj" + + "ect,region,instance_template\212N\020RegionOpe" + + "rations\202\323\344\223\002W*U/compute/v1/projects/{pro" + + "ject}/regions/{region}/instanceTemplates" + + "/{instance_template}\022\356\001\n\003Get\0229.google.cl" + + "oud.compute.v1.GetRegionInstanceTemplate" + + "Request\032).google.cloud.compute.v1.Instan" + + "ceTemplate\"\200\001\332A project,region,instance_" + + "template\202\323\344\223\002W\022U/compute/v1/projects/{pr" + + "oject}/regions/{region}/instanceTemplate" + + "s/{instance_template}\022\221\002\n\006Insert\022<.googl" + + "e.cloud.compute.v1.InsertRegionInstanceT" + + "emplateRequest\032\".google.cloud.compute.v1" + + ".Operation\"\244\001\332A)project,region,instance_" + + "template_resource\212N\020RegionOperations\202\323\344\223" + + "\002_\"A/compute/v1/projects/{project}/regio" + + "ns/{region}/instanceTemplates:\032instance_" + + "template_resource\022\316\001\n\004List\022;.google.clou" + + "d.compute.v1.ListRegionInstanceTemplates" + + "Request\032-.google.cloud.compute.v1.Instan" + + "ceTemplateList\"Z\332A\016project,region\202\323\344\223\002C\022" + + "A/compute/v1/projects/{project}/regions/" + + "{region}/instanceTemplates\032\202\001\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" + + "\305\003\n\017RegionInstances\022\254\002\n\nBulkInsert\0228.goo" + + "gle.cloud.compute.v1.BulkInsertRegionIns" + + "tanceRequest\032\".google.cloud.compute.v1.O" + + "peration\"\277\001\332A5project,region,bulk_insert" + + "_instance_resource_resource\212N\020RegionOper" + + "ations\202\323\344\223\002n\"D/compute/v1/projects/{proj" + + "ect}/regions/{region}/instances/bulkInse" + + "rt:&bulk_insert_instance_resource_resour" + + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\346\020\n\033RegionInstantSnapsho" + + "tGroups\022\222\002\n\006Delete\022@.google.cloud.comput" + + "e.v1.DeleteRegionInstantSnapshotGroupReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\241\001\332A%project,region,instant_snapshot_gr" + + "oup\212N\020RegionOperations\202\323\344\223\002`*^/compute/v" + "1/projects/{project}/regions/{region}/in" + "stantSnapshotGroups/{instant_snapshot_gr" - + "oup}\022\370\001\n\014GetIamPolicy\022F.google.cloud.com" - + "pute.v1.GetIamPolicyRegionInstantSnapsho" - + "tGroupRequest\032\037.google.cloud.compute.v1." - + "Policy\"\177\332A\027project,region,resource\202\323\344\223\002_" - + "\022]/compute/v1/projects/{project}/regions" - + "/{region}/instantSnapshotGroups/{resourc" - + "e}/getIamPolicy\022\243\002\n\006Insert\022@.google.clou" - + "d.compute.v1.InsertRegionInstantSnapshot" - + "GroupRequest\032\".google.cloud.compute.v1.O" - + "peration\"\262\001\332A.project,region,instant_sna" - + "pshot_group_resource\212N\020RegionOperations\202" - + "\323\344\223\002h\"E/compute/v1/projects/{project}/re" - + "gions/{region}/instantSnapshotGroups:\037in" - + "stant_snapshot_group_resource\022\333\001\n\004List\022?" - + ".google.cloud.compute.v1.ListRegionInsta" - + "ntSnapshotGroupsRequest\0322.google.cloud.c" - + "ompute.v1.ListInstantSnapshotGroups\"^\332A\016" - + "project,region\202\323\344\223\002G\022E/compute/v1/projec" - + "ts/{project}/regions/{region}/instantSna" - + "pshotGroups\022\301\002\n\014SetIamPolicy\022F.google.cl" - + "oud.compute.v1.SetIamPolicyRegionInstant" - + "SnapshotGroupRequest\032\037.google.cloud.comp" - + "ute.v1.Policy\"\307\001\332A:project,region,resour" - + "ce,region_set_policy_request_resource\202\323\344" - + "\223\002\203\001\"]/compute/v1/projects/{project}/reg" - + "ions/{region}/instantSnapshotGroups/{res" - + "ource}/setIamPolicy:\"region_set_policy_r" - + "equest_resource\022\342\002\n\022TestIamPermissions\022L" - + ".google.cloud.compute.v1.TestIamPermissi" - + "onsRegionInstantSnapshotGroupRequest\0320.g" - + "oogle.cloud.compute.v1.TestPermissionsRe" - + "sponse\"\313\001\332A9project,region,resource,test" - + "_permissions_request_resource\202\323\344\223\002\210\001\"c/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/instantSnapshotGroups/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\032\202\001\312A\026compute.googleapis.com" - + "\322AVhttps://www.googleapis.com/auth/compu" - + "te,https://www.googleapis.com/auth/cloud" - + "-platform\212\324\333\322\017\n2026-09-012\260\022\n\026RegionInst" - + "antSnapshots\022\374\001\n\006Delete\022;.google.cloud.c" - + "ompute.v1.DeleteRegionInstantSnapshotReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\220\001\332A\037project,region,instant_snapshot\212N\020" - + "RegionOperations\202\323\344\223\002U*S/compute/v1/proj" - + "ects/{project}/regions/{region}/instantS" - + "napshots/{instant_snapshot}\022\350\001\n\003Get\0228.go" - + "ogle.cloud.compute.v1.GetRegionInstantSn" - + "apshotRequest\032(.google.cloud.compute.v1." - + "InstantSnapshot\"}\332A\037project,region,insta" - + "nt_snapshot\202\323\344\223\002U\022S/compute/v1/projects/" - + "{project}/regions/{region}/instantSnapsh" - + "ots/{instant_snapshot}\022\356\001\n\014GetIamPolicy\022" - + "A.google.cloud.compute.v1.GetIamPolicyRe" - + "gionInstantSnapshotRequest\032\037.google.clou" - + "d.compute.v1.Policy\"z\332A\027project,region,r" - + "esource\202\323\344\223\002Z\022X/compute/v1/projects/{pro" - + "ject}/regions/{region}/instantSnapshots/" - + "{resource}/getIamPolicy\022\215\002\n\006Insert\022;.goo" - + "gle.cloud.compute.v1.InsertRegionInstant" - + "SnapshotRequest\032\".google.cloud.compute.v" - + "1.Operation\"\241\001\332A(project,region,instant_" - + "snapshot_resource\212N\020RegionOperations\202\323\344\223" - + "\002]\"@/compute/v1/projects/{project}/regio" - + "ns/{region}/instantSnapshots:\031instant_sn" - + "apshot_resource\022\313\001\n\004List\022:.google.cloud." - + "compute.v1.ListRegionInstantSnapshotsReq" - + "uest\032,.google.cloud.compute.v1.InstantSn" - + "apshotList\"Y\332A\016project,region\202\323\344\223\002B\022@/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instantSnapshots\022\266\002\n\014SetIamPolicy\022A" - + ".google.cloud.compute.v1.SetIamPolicyReg" - + "ionInstantSnapshotRequest\032\037.google.cloud" - + ".compute.v1.Policy\"\301\001\332A:project,region,r" - + "esource,region_set_policy_request_resour" - + "ce\202\323\344\223\002~\"X/compute/v1/projects/{project}" - + "/regions/{region}/instantSnapshots/{reso" - + "urce}/setIamPolicy:\"region_set_policy_re" - + "quest_resource\022\303\002\n\tSetLabels\022>.google.cl" - + "oud.compute.v1.SetLabelsRegionInstantSna" - + "pshotRequest\032\".google.cloud.compute.v1.O" - + "peration\"\321\001\332A:project,region,resource,re" - + "gion_set_labels_request_resource\212N\020Regio" - + "nOperations\202\323\344\223\002{\"U/compute/v1/projects/" - + "{project}/regions/{region}/instantSnapsh" - + "ots/{resource}/setLabels:\"region_set_lab" - + "els_request_resource\022\330\002\n\022TestIamPermissi" - + "ons\022G.google.cloud.compute.v1.TestIamPer" - + "missionsRegionInstantSnapshotRequest\0320.g" - + "oogle.cloud.compute.v1.TestPermissionsRe" - + "sponse\"\306\001\332A9project,region,resource,test" - + "_permissions_request_resource\202\323\344\223\002\203\001\"^/c" + + "oup}\022\204\002\n\003Get\022=.google.cloud.compute.v1.G" + + "etRegionInstantSnapshotGroupRequest\032-.go" + + "ogle.cloud.compute.v1.InstantSnapshotGro" + + "up\"\216\001\332A%project,region,instant_snapshot_" + + "group\202\323\344\223\002`\022^/compute/v1/projects/{proje" + + "ct}/regions/{region}/instantSnapshotGrou" + + "ps/{instant_snapshot_group}\022\370\001\n\014GetIamPo" + + "licy\022F.google.cloud.compute.v1.GetIamPol" + + "icyRegionInstantSnapshotGroupRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"\177\332A\027projec" + + "t,region,resource\202\323\344\223\002_\022]/compute/v1/pro" + + "jects/{project}/regions/{region}/instant" + + "SnapshotGroups/{resource}/getIamPolicy\022\243" + + "\002\n\006Insert\022@.google.cloud.compute.v1.Inse" + + "rtRegionInstantSnapshotGroupRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\262\001\332A.pro" + + "ject,region,instant_snapshot_group_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002h\"E/compute/v" + + "1/projects/{project}/regions/{region}/in" + + "stantSnapshotGroups:\037instant_snapshot_gr" + + "oup_resource\022\333\001\n\004List\022?.google.cloud.com" + + "pute.v1.ListRegionInstantSnapshotGroupsR" + + "equest\0322.google.cloud.compute.v1.ListIns" + + "tantSnapshotGroups\"^\332A\016project,region\202\323\344" + + "\223\002G\022E/compute/v1/projects/{project}/regi" + + "ons/{region}/instantSnapshotGroups\022\301\002\n\014S" + + "etIamPolicy\022F.google.cloud.compute.v1.Se" + + "tIamPolicyRegionInstantSnapshotGroupRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"\307\001\332" + + "A:project,region,resource,region_set_pol" + + "icy_request_resource\202\323\344\223\002\203\001\"]/compute/v1" + + "/projects/{project}/regions/{region}/ins" + + "tantSnapshotGroups/{resource}/setIamPoli" + + "cy:\"region_set_policy_request_resource\022\342" + + "\002\n\022TestIamPermissions\022L.google.cloud.com" + + "pute.v1.TestIamPermissionsRegionInstantS" + + "napshotGroupRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\313\001\332A9proje" + + "ct,region,resource,test_permissions_requ" + + "est_resource\202\323\344\223\002\210\001\"c/compute/v1/project" + + "s/{project}/regions/{region}/instantSnap" + + "shotGroups/{resource}/testIamPermissions" + + ":!test_permissions_request_resource\032\202\001\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform\212\324\333\322\017\n20" + + "26-09-012\260\022\n\026RegionInstantSnapshots\022\374\001\n\006" + + "Delete\022;.google.cloud.compute.v1.DeleteR" + + "egionInstantSnapshotRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\220\001\332A\037project,reg" + + "ion,instant_snapshot\212N\020RegionOperations\202" + + "\323\344\223\002U*S/compute/v1/projects/{project}/re" + + "gions/{region}/instantSnapshots/{instant" + + "_snapshot}\022\350\001\n\003Get\0228.google.cloud.comput" + + "e.v1.GetRegionInstantSnapshotRequest\032(.g" + + "oogle.cloud.compute.v1.InstantSnapshot\"}" + + "\332A\037project,region,instant_snapshot\202\323\344\223\002U" + + "\022S/compute/v1/projects/{project}/regions" + + "/{region}/instantSnapshots/{instant_snap" + + "shot}\022\356\001\n\014GetIamPolicy\022A.google.cloud.co" + + "mpute.v1.GetIamPolicyRegionInstantSnapsh" + + "otRequest\032\037.google.cloud.compute.v1.Poli" + + "cy\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/c" + "ompute/v1/projects/{project}/regions/{re" - + "gion}/instantSnapshots/{resource}/testIa" - + "mPermissions:!test_permissions_request_r" - + "esource\032\202\001\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form\212\324\333\322\017\n2026-09-012\265\023\n\033RegionNetworkEn" - + "dpointGroups\022\315\003\n\026AttachNetworkEndpoints\022" - + "P.google.cloud.compute.v1.AttachNetworkE" - + "ndpointsRegionNetworkEndpointGroupReques" - + "t\032\".google.cloud.compute.v1.Operation\"\274\002" - + "\332Afproject,region,network_endpoint_group" - + ",region_network_endpoint_groups_attach_e" - + "ndpoints_request_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002\271\001\"u/compute/v1/projects/{proje" - + "ct}/regions/{region}/networkEndpointGrou" - + "ps/{network_endpoint_group}/attachNetwor" - + "kEndpoints:@region_network_endpoint_grou" - + "ps_attach_endpoints_request_resource\022\222\002\n" - + "\006Delete\022@.google.cloud.compute.v1.Delete" - + "RegionNetworkEndpointGroupRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\241\001\332A%proje" - + "ct,region,network_endpoint_group\212N\020Regio" - + "nOperations\202\323\344\223\002`*^/compute/v1/projects/" - + "{project}/regions/{region}/networkEndpoi" - + "ntGroups/{network_endpoint_group}\022\315\003\n\026De" - + "tachNetworkEndpoints\022P.google.cloud.comp" - + "ute.v1.DetachNetworkEndpointsRegionNetwo" - + "rkEndpointGroupRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\274\002\332Afproject,region,n" - + "etwork_endpoint_group,region_network_end" - + "point_groups_detach_endpoints_request_re" - + "source\212N\020RegionOperations\202\323\344\223\002\271\001\"u/compu" + + "gion}/instantSnapshots/{resource}/getIam" + + "Policy\022\215\002\n\006Insert\022;.google.cloud.compute" + + ".v1.InsertRegionInstantSnapshotRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\241\001\332A(" + + "project,region,instant_snapshot_resource" + + "\212N\020RegionOperations\202\323\344\223\002]\"@/compute/v1/p" + + "rojects/{project}/regions/{region}/insta" + + "ntSnapshots:\031instant_snapshot_resource\022\313" + + "\001\n\004List\022:.google.cloud.compute.v1.ListRe" + + "gionInstantSnapshotsRequest\032,.google.clo" + + "ud.compute.v1.InstantSnapshotList\"Y\332A\016pr" + + "oject,region\202\323\344\223\002B\022@/compute/v1/projects" + + "/{project}/regions/{region}/instantSnaps" + + "hots\022\266\002\n\014SetIamPolicy\022A.google.cloud.com" + + "pute.v1.SetIamPolicyRegionInstantSnapsho" + + "tRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"\301\001\332A:project,region,resource,region_se" + + "t_policy_request_resource\202\323\344\223\002~\"X/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/instantSnapshots/{resource}/setIamPolic" + + "y:\"region_set_policy_request_resource\022\303\002" + + "\n\tSetLabels\022>.google.cloud.compute.v1.Se" + + "tLabelsRegionInstantSnapshotRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\321\001\332A:pro" + + "ject,region,resource,region_set_labels_r" + + "equest_resource\212N\020RegionOperations\202\323\344\223\002{" + + "\"U/compute/v1/projects/{project}/regions" + + "/{region}/instantSnapshots/{resource}/se" + + "tLabels:\"region_set_labels_request_resou" + + "rce\022\330\002\n\022TestIamPermissions\022G.google.clou" + + "d.compute.v1.TestIamPermissionsRegionIns" + + "tantSnapshotRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\306\001\332A9proje" + + "ct,region,resource,test_permissions_requ" + + "est_resource\202\323\344\223\002\203\001\"^/compute/v1/project" + + "s/{project}/regions/{region}/instantSnap" + + "shots/{resource}/testIamPermissions:!tes" + + "t_permissions_request_resource\032\202\001\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform\212\324\333\322\017\n2026-09" + + "-012\265\023\n\033RegionNetworkEndpointGroups\022\315\003\n\026" + + "AttachNetworkEndpoints\022P.google.cloud.co" + + "mpute.v1.AttachNetworkEndpointsRegionNet" + + "workEndpointGroupRequest\032\".google.cloud." + + "compute.v1.Operation\"\274\002\332Afproject,region" + + ",network_endpoint_group,region_network_e" + + "ndpoint_groups_attach_endpoints_request_" + + "resource\212N\020RegionOperations\202\323\344\223\002\271\001\"u/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/networkEndpointGroups/{network_endpo" + + "int_group}/attachNetworkEndpoints:@regio" + + "n_network_endpoint_groups_attach_endpoin" + + "ts_request_resource\022\222\002\n\006Delete\022@.google." + + "cloud.compute.v1.DeleteRegionNetworkEndp" + + "ointGroupRequest\032\".google.cloud.compute." + + "v1.Operation\"\241\001\332A%project,region,network" + + "_endpoint_group\212N\020RegionOperations\202\323\344\223\002`" + + "*^/compute/v1/projects/{project}/regions" + + "/{region}/networkEndpointGroups/{network" + + "_endpoint_group}\022\315\003\n\026DetachNetworkEndpoi" + + "nts\022P.google.cloud.compute.v1.DetachNetw" + + "orkEndpointsRegionNetworkEndpointGroupRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\274\002\332Afproject,region,network_endpoint_g" + + "roup,region_network_endpoint_groups_deta" + + "ch_endpoints_request_resource\212N\020RegionOp" + + "erations\202\323\344\223\002\271\001\"u/compute/v1/projects/{p" + + "roject}/regions/{region}/networkEndpoint" + + "Groups/{network_endpoint_group}/detachNe" + + "tworkEndpoints:@region_network_endpoint_" + + "groups_detach_endpoints_request_resource" + + "\022\204\002\n\003Get\022=.google.cloud.compute.v1.GetRe" + + "gionNetworkEndpointGroupRequest\032-.google" + + ".cloud.compute.v1.NetworkEndpointGroup\"\216" + + "\001\332A%project,region,network_endpoint_grou" + + "p\202\323\344\223\002`\022^/compute/v1/projects/{project}/" + + "regions/{region}/networkEndpointGroups/{" + + "network_endpoint_group}\022\243\002\n\006Insert\022@.goo" + + "gle.cloud.compute.v1.InsertRegionNetwork" + + "EndpointGroupRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\262\001\332A.project,region,net" + + "work_endpoint_group_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002h\"E/compute/v1/projects/{pro" + + "ject}/regions/{region}/networkEndpointGr" + + "oups:\037network_endpoint_group_resource\022\332\001" + + "\n\004List\022?.google.cloud.compute.v1.ListReg" + + "ionNetworkEndpointGroupsRequest\0321.google" + + ".cloud.compute.v1.NetworkEndpointGroupLi" + + "st\"^\332A\016project,region\202\323\344\223\002G\022E/compute/v1" + + "/projects/{project}/regions/{region}/net", + "workEndpointGroups\022\321\002\n\024ListNetworkEndpoi" + + "nts\022O.google.cloud.compute.v1.ListNetwor" + + "kEndpointsRegionNetworkEndpointGroupsReq" + + "uest\032B.google.cloud.compute.v1.NetworkEn" + + "dpointGroupsListNetworkEndpoints\"\243\001\332A%pr" + + "oject,region,network_endpoint_group\202\323\344\223\002" + + "u\"s/compute/v1/projects/{project}/region" + + "s/{region}/networkEndpointGroups/{networ" + + "k_endpoint_group}/listNetworkEndpoints\032\202" + + "\001\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform\212\324\333\322\017" + + "\n2026-09-012\367*\n\035RegionNetworkFirewallPol" + + "icies\022\353\002\n\016AddAssociation\022I.google.cloud." + + "compute.v1.AddAssociationRegionNetworkFi" + + "rewallPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\351\001\332ACproject,region,fire" + + "wall_policy,firewall_policy_association_" + + "resource\212N\020RegionOperations\202\323\344\223\002\211\001\"a/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/firewallPolicies/{firewall_policy}/a" + + "ddAssociation:$firewall_policy_associati" + + "on_resource\022\307\002\n\007AddRule\022B.google.cloud.c" + + "ompute.v1.AddRuleRegionNetworkFirewallPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\323\001\332A.google.cloud.compute.v1.GetRegi" + + "onNetworkFirewallPolicyRequest\032\'.google." + + "cloud.compute.v1.FirewallPolicy\"{\332A\036proj" + + "ect,region,firewall_policy\202\323\344\223\002T\022R/compu" + "te/v1/projects/{project}/regions/{region" - + "}/networkEndpointGroups/{network_endpoin" - + "t_group}/detachNetworkEndpoints:@region_" - + "network_endpoint_groups_detach_endpoints" - + "_request_resource\022\204\002\n\003Get\022=.google.cloud" - + ".compute.v1.GetRegionNetworkEndpointGrou" - + "pRequest\032-.google.cloud.compute.v1.Netwo" - + "rkEndpointGroup\"\216\001\332A%project,region,netw" - + "ork_endpoint_group\202\323\344\223\002`\022^/compute/v1/pr" - + "ojects/{project}/regions/{region}/networ" - + "kEndpointGroups/{network_endpoint_group}" - + "\022\243\002\n\006Insert\022@.google.cloud.compute.v1.In" - + "sertRegionNetworkEndpointGroupRequest\032\"." - + "google.cloud.compute.v1.Operation\"\262\001\332A.p" - + "roject,region,network_endpoint_group_res" - + "ource\212N\020RegionOperations\202\323\344\223\002h\"E/compute" - + "/v1/projects/{project}/regions/{region}/" - + "networkEndpointGroups:\037network_endpoint_" - + "group_resource\022\332\001\n\004List\022?.google.cloud.c" - + "ompute.v1.ListRegionNetworkEndpointGroup" - + "sRequest\0321.google.cloud.compute.v1.Netwo" - + "rkEndpointGroupList\"^\332A\016project,region\202\323" - + "\344\223\002G\022E/compute/v1/projects/{project}/reg" - + "ions/{region}/networkEndpointGroups\022\321\002\n\024" - + "ListNetworkEndpoints\022O.google.cloud.comp", - "ute.v1.ListNetworkEndpointsRegionNetwork" - + "EndpointGroupsRequest\032B.google.cloud.com" - + "pute.v1.NetworkEndpointGroupsListNetwork" - + "Endpoints\"\243\001\332A%project,region,network_en" - + "dpoint_group\202\323\344\223\002u\"s/compute/v1/projects" - + "/{project}/regions/{region}/networkEndpo" - + "intGroups/{network_endpoint_group}/listN" - + "etworkEndpoints\032\202\001\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform\212\324\333\322\017\n2026-09-012\367*\n\035RegionN" - + "etworkFirewallPolicies\022\353\002\n\016AddAssociatio" - + "n\022I.google.cloud.compute.v1.AddAssociati" - + "onRegionNetworkFirewallPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\351\001\332ACpr" - + "oject,region,firewall_policy,firewall_po" - + "licy_association_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002\211\001\"a/compute/v1/projects/{proje" - + "ct}/regions/{region}/firewallPolicies/{f" - + "irewall_policy}/addAssociation:$firewall" - + "_policy_association_resource\022\307\002\n\007AddRule" - + "\022B.google.cloud.compute.v1.AddRuleRegion" - + "NetworkFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\323\001\332A.google.cloud.c" - + "ompute.v1.GetRegionNetworkFirewallPolicy" - + "Request\032\'.google.cloud.compute.v1.Firewa" - + "llPolicy\"{\332A\036project,region,firewall_pol" - + "icy\202\323\344\223\002T\022R/compute/v1/projects/{project" - + "}/regions/{region}/firewallPolicies/{fir" - + "ewall_policy}\022\234\002\n\016GetAssociation\022I.googl" - + "e.cloud.compute.v1.GetAssociationRegionN" - + "etworkFirewallPolicyRequest\0322.google.clo" - + "ud.compute.v1.FirewallPolicyAssociation\"" - + "\212\001\332A\036project,region,firewall_policy\202\323\344\223\002" - + "c\022a/compute/v1/projects/{project}/region" - + "s/{region}/firewallPolicies/{firewall_po" - + "licy}/getAssociation\022\267\002\n\025GetEffectiveFir" - + "ewalls\022P.google.cloud.compute.v1.GetEffe" - + "ctiveFirewallsRegionNetworkFirewallPolic" - + "yRequest\032S.google.cloud.compute.v1.Regio" - + "nNetworkFirewallPoliciesGetEffectiveFire" - + "wallsResponse\"w\332A\026project,region,network" - + "\202\323\344\223\002X\022V/compute/v1/projects/{project}/r" - + "egions/{region}/firewallPolicies/getEffe" - + "ctiveFirewalls\022\364\001\n\014GetIamPolicy\022G.google" - + ".cloud.compute.v1.GetIamPolicyRegionNetw" - + "orkFirewallPolicyRequest\032\037.google.cloud." - + "compute.v1.Policy\"z\332A\027project,region,res" - + "ource\202\323\344\223\002Z\022X/compute/v1/projects/{proje" - + "ct}/regions/{region}/firewallPolicies/{r" - + "esource}/getIamPolicy\022\200\002\n\007GetRule\022B.goog" - + "le.cloud.compute.v1.GetRuleRegionNetwork" - + "FirewallPolicyRequest\032+.google.cloud.com" - + "pute.v1.FirewallPolicyRule\"\203\001\332A\036project," - + "region,firewall_policy\202\323\344\223\002\\\022Z/compute/v" - + "1/projects/{project}/regions/{region}/fi" - + "rewallPolicies/{firewall_policy}/getRule" - + "\022\221\002\n\006Insert\022A.google.cloud.compute.v1.In" - + "sertRegionNetworkFirewallPolicyRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\237\001\332A\'" - + "project,region,firewall_policy_resource\212" - + "N\020RegionOperations\202\323\344\223\002\\\"@/compute/v1/pr" + + "}/firewallPolicies/{firewall_policy}\022\234\002\n" + + "\016GetAssociation\022I.google.cloud.compute.v" + + "1.GetAssociationRegionNetworkFirewallPol" + + "icyRequest\0322.google.cloud.compute.v1.Fir" + + "ewallPolicyAssociation\"\212\001\332A\036project,regi" + + "on,firewall_policy\202\323\344\223\002c\022a/compute/v1/pr" + "ojects/{project}/regions/{region}/firewa" - + "llPolicies:\030firewall_policy_resource\022\321\001\n" - + "\004List\022A.google.cloud.compute.v1.ListRegi" - + "onNetworkFirewallPoliciesRequest\032+.googl" - + "e.cloud.compute.v1.FirewallPolicyList\"Y\332" - + "A\016project,region\202\323\344\223\002B\022@/compute/v1/proj" - + "ects/{project}/regions/{region}/firewall" - + "Policies\022\261\002\n\005Patch\022@.google.cloud.comput" - + "e.v1.PatchRegionNetworkFirewallPolicyReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\301\001\332A7project,region,firewall_policy,fir" - + "ewall_policy_resource\212N\020RegionOperations" - + "\202\323\344\223\002n2R/compute/v1/projects/{project}/r" - + "egions/{region}/firewallPolicies/{firewa" - + "ll_policy}:\030firewall_policy_resource\022\361\002\n" - + "\020PatchAssociation\022K.google.cloud.compute" - + ".v1.PatchAssociationRegionNetworkFirewal" - + "lPolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\353\001\332ACproject,region,firewall_" - + "policy,firewall_policy_association_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002\213\001\"c/compute/" + + "llPolicies/{firewall_policy}/getAssociat" + + "ion\022\267\002\n\025GetEffectiveFirewalls\022P.google.c" + + "loud.compute.v1.GetEffectiveFirewallsReg" + + "ionNetworkFirewallPolicyRequest\032S.google" + + ".cloud.compute.v1.RegionNetworkFirewallP" + + "oliciesGetEffectiveFirewallsResponse\"w\332A" + + "\026project,region,network\202\323\344\223\002X\022V/compute/" + "v1/projects/{project}/regions/{region}/f" - + "irewallPolicies/{firewall_policy}/patchA" - + "ssociation:$firewall_policy_association_" - + "resource\022\315\002\n\tPatchRule\022D.google.cloud.co" - + "mpute.v1.PatchRuleRegionNetworkFirewallP" - + "olicyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\325\001\332A.google.c" + + "loud.compute.v1.RemoveRuleRegionSecurity" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"\231\001\332A\036project,region,security_p" + + "olicy\212N\020RegionOperations\202\323\344\223\002_\"]/compute" + + "/v1/projects/{project}/regions/{region}/" + + "securityPolicies/{security_policy}/remov" + + "eRule\022\302\002\n\tSetLabels\022=.google.cloud.compu" + + "te.v1.SetLabelsRegionSecurityPolicyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\321" + + "\001\332A:project,region,resource,region_set_l" + + "abels_request_resource\212N\020RegionOperation" + + "s\202\323\344\223\002{\"U/compute/v1/projects/{project}/" + + "regions/{region}/securityPolicies/{resou" + + "rce}/setLabels:\"region_set_labels_reques" + + "t_resource\032\202\001\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform\212\324\333\322\017\n2026-09-012\365\004\n\026RegionSnapsh" + + "otSettings\022\305\001\n\003Get\0228.google.cloud.comput" + + "e.v1.GetRegionSnapshotSettingRequest\032).g" + + "oogle.cloud.compute.v1.SnapshotSettings\"" + + "Y\332A\016project,region\202\323\344\223\002B\022@/compute/v1/pr" + + "ojects/{project}/regions/{region}/snapsh" + + "otSettings\022\215\002\n\005Patch\022:.google.cloud.comp" + + "ute.v1.PatchRegionSnapshotSettingRequest" + + "\032\".google.cloud.compute.v1.Operation\"\243\001\332" + + "A)project,region,snapshot_settings_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002^2@/compute/v" + + "1/projects/{project}/regions/{region}/sn" + + "apshotSettings:\032snapshot_settings_resour" + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + "/www.googleapis.com/auth/compute,https:/" + "/www.googleapis.com/auth/cloud-platform\212" - + "\324\333\322\017\n2026-09-012\330\007\n\020RegionOperations\022\342\001\n" - + "\006Delete\0225.google.cloud.compute.v1.Delete" - + "RegionOperationRequest\0326.google.cloud.co" - + "mpute.v1.DeleteRegionOperationResponse\"i" - + "\332A\030project,region,operation\202\323\344\223\002H*F/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/operations/{operation}\022\313\001\n\003Get\0222.goog" - + "le.cloud.compute.v1.GetRegionOperationRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"l\332A\030project,region,operation\220N\001\202\323\344\223\002H\022" - + "F/compute/v1/projects/{project}/regions/" - + "{region}/operations/{operation}\022\271\001\n\004List" - + "\0224.google.cloud.compute.v1.ListRegionOpe" - + "rationsRequest\032&.google.cloud.compute.v1" - + ".OperationList\"S\332A\016project,region\202\323\344\223\002<\022" - + ":/compute/v1/projects/{project}/regions/" - + "{region}/operations\022\317\001\n\004Wait\0223.google.cl" - + "oud.compute.v1.WaitRegionOperationReques" - + "t\032\".google.cloud.compute.v1.Operation\"n\332" - + "A\030project,region,operation\202\323\344\223\002M\"K/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/operations/{operation}/wait\032\202\001\312A\026compu" - + "te.googleapis.com\322AVhttps://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" - + "012\343\026\n\026RegionSecurityPolicies\022\300\002\n\007AddRul" - + "e\022;.google.cloud.compute.v1.AddRuleRegio" - + "nSecurityPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\323\001\332A.google.cloud.compute.v1.RemoveR" - + "uleRegionSecurityPolicyRequest\032\".google." - + "cloud.compute.v1.Operation\"\231\001\332A\036project," - + "region,security_policy\212N\020RegionOperation" - + "s\202\323\344\223\002_\"]/compute/v1/projects/{project}/" - + "regions/{region}/securityPolicies/{secur" - + "ity_policy}/removeRule\022\302\002\n\tSetLabels\022=.g" - + "oogle.cloud.compute.v1.SetLabelsRegionSe" - + "curityPolicyRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\321\001\332A:project,region,reso" - + "urce,region_set_labels_request_resource\212" - + "N\020RegionOperations\202\323\344\223\002{\"U/compute/v1/pr" - + "ojects/{project}/regions/{region}/securi" - + "tyPolicies/{resource}/setLabels:\"region_" - + "set_labels_request_resource\032\202\001\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform\212\324\333\322\017\n2026-09-01" - + "2\365\004\n\026RegionSnapshotSettings\022\305\001\n\003Get\0228.go" - + "ogle.cloud.compute.v1.GetRegionSnapshotS" - + "ettingRequest\032).google.cloud.compute.v1." - + "SnapshotSettings\"Y\332A\016project,region\202\323\344\223\002" - + "B\022@/compute/v1/projects/{project}/region" - + "s/{region}/snapshotSettings\022\215\002\n\005Patch\022:." - + "google.cloud.compute.v1.PatchRegionSnaps" - + "hotSettingRequest\032\".google.cloud.compute" - + ".v1.Operation\"\243\001\332A)project,region,snapsh" - + "ot_settings_resource\212N\020RegionOperations\202" - + "\323\344\223\002^2@/compute/v1/projects/{project}/re" - + "gions/{region}/snapshotSettings:\032snapsho" - + "t_settings_resource\032\202\001\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\325\023\n\017Reg" - + "ionSnapshots\022\335\001\n\006Delete\0224.google.cloud.c" - + "ompute.v1.DeleteRegionSnapshotRequest\032\"." - + "google.cloud.compute.v1.Operation\"y\332A\027pr" - + "oject,region,snapshot\212N\020RegionOperations" - + "\202\323\344\223\002F*D/compute/v1/projects/{project}/r" - + "egions/{region}/snapshots/{snapshot}\022\303\001\n" - + "\003Get\0221.google.cloud.compute.v1.GetRegion" - + "SnapshotRequest\032!.google.cloud.compute.v" - + "1.Snapshot\"f\332A\027project,region,snapshot\202\323" - + "\344\223\002F\022D/compute/v1/projects/{project}/reg" - + "ions/{region}/snapshots/{snapshot}\022\340\001\n\014G" - + "etIamPolicy\022:.google.cloud.compute.v1.Ge" - + "tIamPolicyRegionSnapshotRequest\032\037.google" - + ".cloud.compute.v1.Policy\"s\332A\027project,reg" - + "ion,resource\202\323\344\223\002S\022Q/compute/v1/projects" - + "/{project}/regions/{region}/snapshots/{r" - + "esource}/getIamPolicy\022\357\001\n\006Insert\0224.googl" - + "e.cloud.compute.v1.InsertRegionSnapshotR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\212\001\332A project,region,snapshot_resource" - + "\212N\020RegionOperations\202\323\344\223\002N\"9/compute/v1/p" - + "rojects/{project}/regions/{region}/snaps" - + "hots:\021snapshot_resource\022\266\001\n\004List\0223.googl" - + "e.cloud.compute.v1.ListRegionSnapshotsRe" - + "quest\032%.google.cloud.compute.v1.Snapshot" - + "List\"R\332A\016project,region\202\323\344\223\002;\0229/compute/" - + "v1/projects/{project}/regions/{region}/s" - + "napshots\022\250\002\n\014SetIamPolicy\022:.google.cloud" - + ".compute.v1.SetIamPolicyRegionSnapshotRe" - + "quest\032\037.google.cloud.compute.v1.Policy\"\272" - + "\001\332A:project,region,resource,region_set_p" - + "olicy_request_resource\202\323\344\223\002w\"Q/compute/v" - + "1/projects/{project}/regions/{region}/sn" - + "apshots/{resource}/setIamPolicy:\"region_" - + "set_policy_request_resource\022\265\002\n\tSetLabel" - + "s\0227.google.cloud.compute.v1.SetLabelsReg" - + "ionSnapshotRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\312\001\332A:project,region,resou" - + "rce,region_set_labels_request_resource\212N" - + "\020RegionOperations\202\323\344\223\002t\"N/compute/v1/pro" - + "jects/{project}/regions/{region}/snapsho" - + "ts/{resource}/setLabels:\"region_set_labe" - + "ls_request_resource\022\311\002\n\022TestIamPermissio" - + "ns\022@.google.cloud.compute.v1.TestIamPerm" - + "issionsRegionSnapshotRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\276" - + "\001\332A9project,region,resource,test_permiss" - + "ions_request_resource\202\323\344\223\002|\"W/compute/v1" + + "napshots/{snapshot}\022\303\001\n\003Get\0221.google.clo" + + "ud.compute.v1.GetRegionSnapshotRequest\032!" + + ".google.cloud.compute.v1.Snapshot\"f\332A\027pr" + + "oject,region,snapshot\202\323\344\223\002F\022D/compute/v1" + "/projects/{project}/regions/{region}/sna" - + "pshots/{resource}/testIamPermissions:!te" - + "st_permissions_request_resource\022\331\002\n\014Upda" - + "teKmsKey\022:.google.cloud.compute.v1.Updat" - + "eKmsKeyRegionSnapshotRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\350\001\332AGproject,re" - + "gion,snapshot,region_snapshot_update_kms" - + "_key_request_resource\212N\020RegionOperations" - + "\202\323\344\223\002\204\001\"Q/compute/v1/projects/{project}/" - + "regions/{region}/snapshots/{snapshot}/up" - + "dateKmsKey:/region_snapshot_update_kms_k" - + "ey_request_resource\032\202\001\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\324\010\n\025Reg" - + "ionSslCertificates\022\370\001\n\006Delete\022:.google.c" - + "loud.compute.v1.DeleteRegionSslCertifica" - + "teRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\215\001\332A\036project,region,ssl_certificat" - + "e\212N\020RegionOperations\202\323\344\223\002S*Q/compute/v1/" - + "projects/{project}/regions/{region}/sslC" - + "ertificates/{ssl_certificate}\022\343\001\n\003Get\0227." - + "google.cloud.compute.v1.GetRegionSslCert" - + "ificateRequest\032\'.google.cloud.compute.v1" - + ".SslCertificate\"z\332A\036project,region,ssl_c" - + "ertificate\202\323\344\223\002S\022Q/compute/v1/projects/{" - + "project}/regions/{region}/sslCertificate" - + "s/{ssl_certificate}\022\211\002\n\006Insert\022:.google." - + "cloud.compute.v1.InsertRegionSslCertific" - + "ateRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\236\001\332A\'project,region,ssl_certifica" - + "te_resource\212N\020RegionOperations\202\323\344\223\002[\"?/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/sslCertificates:\030ssl_certificate_r" - + "esource\022\310\001\n\004List\0229.google.cloud.compute." - + "v1.ListRegionSslCertificatesRequest\032+.go" - + "ogle.cloud.compute.v1.SslCertificateList" - + "\"X\332A\016project,region\202\323\344\223\002A\022?/compute/v1/p" - + "rojects/{project}/regions/{region}/sslCe" - + "rtificates\032\202\001\312A\026compute.googleapis.com\322A" + + "pshots/{snapshot}\022\340\001\n\014GetIamPolicy\022:.goo" + + "gle.cloud.compute.v1.GetIamPolicyRegionS" + + "napshotRequest\032\037.google.cloud.compute.v1" + + ".Policy\"s\332A\027project,region,resource\202\323\344\223\002" + + "S\022Q/compute/v1/projects/{project}/region" + + "s/{region}/snapshots/{resource}/getIamPo" + + "licy\022\357\001\n\006Insert\0224.google.cloud.compute.v" + + "1.InsertRegionSnapshotRequest\032\".google.c" + + "loud.compute.v1.Operation\"\212\001\332A project,r" + + "egion,snapshot_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002N\"9/compute/v1/projects/{project}" + + "/regions/{region}/snapshots:\021snapshot_re" + + "source\022\266\001\n\004List\0223.google.cloud.compute.v" + + "1.ListRegionSnapshotsRequest\032%.google.cl" + + "oud.compute.v1.SnapshotList\"R\332A\016project," + + "region\202\323\344\223\002;\0229/compute/v1/projects/{proj" + + "ect}/regions/{region}/snapshots\022\250\002\n\014SetI" + + "amPolicy\022:.google.cloud.compute.v1.SetIa" + + "mPolicyRegionSnapshotRequest\032\037.google.cl" + + "oud.compute.v1.Policy\"\272\001\332A:project,regio" + + "n,resource,region_set_policy_request_res" + + "ource\202\323\344\223\002w\"Q/compute/v1/projects/{proje" + + "ct}/regions/{region}/snapshots/{resource" + + "}/setIamPolicy:\"region_set_policy_reques" + + "t_resource\022\265\002\n\tSetLabels\0227.google.cloud." + + "compute.v1.SetLabelsRegionSnapshotReques" + + "t\032\".google.cloud.compute.v1.Operation\"\312\001" + + "\332A:project,region,resource,region_set_la" + + "bels_request_resource\212N\020RegionOperations" + + "\202\323\344\223\002t\"N/compute/v1/projects/{project}/r" + + "egions/{region}/snapshots/{resource}/set" + + "Labels:\"region_set_labels_request_resour" + + "ce\022\311\002\n\022TestIamPermissions\022@.google.cloud" + + ".compute.v1.TestIamPermissionsRegionSnap" + + "shotRequest\0320.google.cloud.compute.v1.Te" + + "stPermissionsResponse\"\276\001\332A9project,regio" + + "n,resource,test_permissions_request_reso" + + "urce\202\323\344\223\002|\"W/compute/v1/projects/{projec" + + "t}/regions/{region}/snapshots/{resource}" + + "/testIamPermissions:!test_permissions_re" + + "quest_resource\022\331\002\n\014UpdateKmsKey\022:.google" + + ".cloud.compute.v1.UpdateKmsKeyRegionSnap" + + "shotRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\350\001\332AGproject,region,snapshot,reg" + + "ion_snapshot_update_kms_key_request_reso" + + "urce\212N\020RegionOperations\202\323\344\223\002\204\001\"Q/compute" + + "/v1/projects/{project}/regions/{region}/" + + "snapshots/{snapshot}/updateKmsKey:/regio" + + "n_snapshot_update_kms_key_request_resour" + + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\324\010\n\025RegionSslCertificate" + + "s\022\370\001\n\006Delete\022:.google.cloud.compute.v1.D" + + "eleteRegionSslCertificateRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\215\001\332A\036projec" + + "t,region,ssl_certificate\212N\020RegionOperati" + + "ons\202\323\344\223\002S*Q/compute/v1/projects/{project" + + "}/regions/{region}/sslCertificates/{ssl_" + + "certificate}\022\343\001\n\003Get\0227.google.cloud.comp" + + "ute.v1.GetRegionSslCertificateRequest\032\'." + + "google.cloud.compute.v1.SslCertificate\"z" + + "\332A\036project,region,ssl_certificate\202\323\344\223\002S\022" + + "Q/compute/v1/projects/{project}/regions/" + + "{region}/sslCertificates/{ssl_certificat" + + "e}\022\211\002\n\006Insert\022:.google.cloud.compute.v1." + + "InsertRegionSslCertificateRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\236\001\332A\'proje" + + "ct,region,ssl_certificate_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002[\"?/compute/v1/project" + + "s/{project}/regions/{region}/sslCertific" + + "ates:\030ssl_certificate_resource\022\310\001\n\004List\022" + + "9.google.cloud.compute.v1.ListRegionSslC" + + "ertificatesRequest\032+.google.cloud.comput" + + "e.v1.SslCertificateList\"X\332A\016project,regi" + + "on\202\323\344\223\002A\022?/compute/v1/projects/{project}" + + "/regions/{region}/sslCertificates\032\202\001\312A\026c" + + "ompute.googleapis.com\322AVhttps://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform\212\324\333\322\017\n2026" + + "-09-012\246\014\n\021RegionSslPolicies\022\344\001\n\006Delete\022", + "5.google.cloud.compute.v1.DeleteRegionSs" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\177\332A\031project,region,ssl_policy" + + "\212N\020RegionOperations\202\323\344\223\002J*H/compute/v1/p" + + "rojects/{project}/regions/{region}/sslPo" + + "licies/{ssl_policy}\022\313\001\n\003Get\0222.google.clo" + + "ud.compute.v1.GetRegionSslPolicyRequest\032" + + "\".google.cloud.compute.v1.SslPolicy\"l\332A\031" + + "project,region,ssl_policy\202\323\344\223\002J\022H/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/sslPolicies/{ssl_policy}\022\366\001\n\006Insert\0225.g" + + "oogle.cloud.compute.v1.InsertRegionSslPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\220\001\332A\"project,region,ssl_policy_r" + + "esource\212N\020RegionOperations\202\323\344\223\002R\";/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/sslPolicies:\023ssl_policy_resource\022\275\001\n\004L" + + "ist\0225.google.cloud.compute.v1.ListRegion" + + "SslPoliciesRequest\032(.google.cloud.comput" + + "e.v1.SslPoliciesList\"T\332A\016project,region\202" + + "\323\344\223\002=\022;/compute/v1/projects/{project}/re" + + "gions/{region}/sslPolicies\022\216\002\n\025ListAvail" + + "ableFeatures\022F.google.cloud.compute.v1.L" + + "istAvailableFeaturesRegionSslPoliciesReq" + + "uest\032A.google.cloud.compute.v1.SslPolici" + + "esListAvailableFeaturesResponse\"j\332A\016proj" + + "ect,region\202\323\344\223\002S\022Q/compute/v1/projects/{" + + "project}/regions/{region}/sslPolicies/li" + + "stAvailableFeatures\022\214\002\n\005Patch\0224.google.c" + + "loud.compute.v1.PatchRegionSslPolicyRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\250\001\332A-project,region,ssl_policy,ssl_polic" + + "y_resource\212N\020RegionOperations\202\323\344\223\002_2H/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/sslPolicies/{ssl_policy}:\023ssl_polic" + + "y_resource\032\202\001\312A\026compute.googleapis.com\322A" + "Vhttps://www.googleapis.com/auth/compute" + ",https://www.googleapis.com/auth/cloud-p" - + "latform\212\324\333\322\017\n2026-09-012\246\014\n\021RegionSslPol" - + "icies\022\344\001\n\006Delete\0225.google.cloud.compute." - + "v1.DeleteRegionSslPolicyRequest\032\".google", - ".cloud.compute.v1.Operation\"\177\332A\031project," - + "region,ssl_policy\212N\020RegionOperations\202\323\344\223" - + "\002J*H/compute/v1/projects/{project}/regio" - + "ns/{region}/sslPolicies/{ssl_policy}\022\313\001\n" - + "\003Get\0222.google.cloud.compute.v1.GetRegion" - + "SslPolicyRequest\032\".google.cloud.compute." - + "v1.SslPolicy\"l\332A\031project,region,ssl_poli" - + "cy\202\323\344\223\002J\022H/compute/v1/projects/{project}" - + "/regions/{region}/sslPolicies/{ssl_polic" - + "y}\022\366\001\n\006Insert\0225.google.cloud.compute.v1." - + "InsertRegionSslPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\220\001\332A\"project,re" - + "gion,ssl_policy_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002R\";/compute/v1/projects/{project" - + "}/regions/{region}/sslPolicies:\023ssl_poli" - + "cy_resource\022\275\001\n\004List\0225.google.cloud.comp" - + "ute.v1.ListRegionSslPoliciesRequest\032(.go" - + "ogle.cloud.compute.v1.SslPoliciesList\"T\332" - + "A\016project,region\202\323\344\223\002=\022;/compute/v1/proj" - + "ects/{project}/regions/{region}/sslPolic" - + "ies\022\216\002\n\025ListAvailableFeatures\022F.google.c" - + "loud.compute.v1.ListAvailableFeaturesReg" - + "ionSslPoliciesRequest\032A.google.cloud.com" - + "pute.v1.SslPoliciesListAvailableFeatures" - + "Response\"j\332A\016project,region\202\323\344\223\002S\022Q/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/sslPolicies/listAvailableFeatures\022\214\002\n" - + "\005Patch\0224.google.cloud.compute.v1.PatchRe" - + "gionSslPolicyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\250\001\332A-project,region,ssl" - + "_policy,ssl_policy_resource\212N\020RegionOper" - + "ations\202\323\344\223\002_2H/compute/v1/projects/{proj" - + "ect}/regions/{region}/sslPolicies/{ssl_p" - + "olicy}:\023ssl_policy_resource\032\202\001\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform\212\324\333\322\017\n2026-09-01" - + "2\273\013\n\027RegionTargetHttpProxies\022\377\001\n\006Delete\022" - + ";.google.cloud.compute.v1.DeleteRegionTa" - + "rgetHttpProxyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\223\001\332A project,region,tar" - + "get_http_proxy\212N\020RegionOperations\202\323\344\223\002W*" - + "U/compute/v1/projects/{project}/regions/" - + "{region}/targetHttpProxies/{target_http_" - + "proxy}\022\354\001\n\003Get\0228.google.cloud.compute.v1" - + ".GetRegionTargetHttpProxyRequest\032(.googl" - + "e.cloud.compute.v1.TargetHttpProxy\"\200\001\332A " - + "project,region,target_http_proxy\202\323\344\223\002W\022U" - + "/compute/v1/projects/{project}/regions/{" - + "region}/targetHttpProxies/{target_http_p" - + "roxy}\022\220\002\n\006Insert\022;.google.cloud.compute." - + "v1.InsertRegionTargetHttpProxyRequest\032\"." - + "google.cloud.compute.v1.Operation\"\244\001\332A)p" - + "roject,region,target_http_proxy_resource" - + "\212N\020RegionOperations\202\323\344\223\002_\"A/compute/v1/p" - + "rojects/{project}/regions/{region}/targe" - + "tHttpProxies:\032target_http_proxy_resource" - + "\022\315\001\n\004List\022;.google.cloud.compute.v1.List" - + "RegionTargetHttpProxiesRequest\032,.google." - + "cloud.compute.v1.TargetHttpProxyList\"Z\332A" - + "\016project,region\202\323\344\223\002C\022A/compute/v1/proje" + + "latform\212\324\333\322\017\n2026-09-012\273\013\n\027RegionTarget" + + "HttpProxies\022\377\001\n\006Delete\022;.google.cloud.co" + + "mpute.v1.DeleteRegionTargetHttpProxyRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\223\001\332A project,region,target_http_proxy\212N\020" + + "RegionOperations\202\323\344\223\002W*U/compute/v1/proj" + + "ects/{project}/regions/{region}/targetHt" + + "tpProxies/{target_http_proxy}\022\354\001\n\003Get\0228." + + "google.cloud.compute.v1.GetRegionTargetH" + + "ttpProxyRequest\032(.google.cloud.compute.v" + + "1.TargetHttpProxy\"\200\001\332A project,region,ta" + + "rget_http_proxy\202\323\344\223\002W\022U/compute/v1/proje" + "cts/{project}/regions/{region}/targetHtt" - + "pProxies\022\306\002\n\tSetUrlMap\022>.google.cloud.co" - + "mpute.v1.SetUrlMapRegionTargetHttpProxyR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\324\001\332A;project,region,target_http_proxy" - + ",url_map_reference_resource\212N\020RegionOper" - + "ations\202\323\344\223\002}\"_/compute/v1/projects/{proj" - + "ect}/regions/{region}/targetHttpProxies/" - + "{target_http_proxy}/setUrlMap:\032url_map_r" - + "eference_resource\032\202\001\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform\212\324\333\322\017\n2026-09-012\304\021\n\030Regio" - + "nTargetHttpsProxies\022\203\002\n\006Delete\022<.google." - + "cloud.compute.v1.DeleteRegionTargetHttps" + + "pProxies/{target_http_proxy}\022\220\002\n\006Insert\022" + + ";.google.cloud.compute.v1.InsertRegionTa" + + "rgetHttpProxyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\244\001\332A)project,region,tar" + + "get_http_proxy_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002_\"A/compute/v1/projects/{project}" + + "/regions/{region}/targetHttpProxies:\032tar" + + "get_http_proxy_resource\022\315\001\n\004List\022;.googl" + + "e.cloud.compute.v1.ListRegionTargetHttpP" + + "roxiesRequest\032,.google.cloud.compute.v1." + + "TargetHttpProxyList\"Z\332A\016project,region\202\323" + + "\344\223\002C\022A/compute/v1/projects/{project}/reg" + + "ions/{region}/targetHttpProxies\022\306\002\n\tSetU" + + "rlMap\022>.google.cloud.compute.v1.SetUrlMa" + + "pRegionTargetHttpProxyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\324\001\332A;project,r" + + "egion,target_http_proxy,url_map_referenc" + + "e_resource\212N\020RegionOperations\202\323\344\223\002}\"_/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/targetHttpProxies/{target_http_prox" + + "y}/setUrlMap:\032url_map_reference_resource" + + "\032\202\001\312A\026compute.googleapis.com\322AVhttps://w" + + "ww.googleapis.com/auth/compute,https://w" + + "ww.googleapis.com/auth/cloud-platform\212\324\333" + + "\322\017\n2026-09-012\304\021\n\030RegionTargetHttpsProxi" + + "es\022\203\002\n\006Delete\022<.google.cloud.compute.v1." + + "DeleteRegionTargetHttpsProxyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\226\001\332A!pro" + + "ject,region,target_https_proxy\212N\020RegionO" + + "perations\202\323\344\223\002Y*W/compute/v1/projects/{p" + + "roject}/regions/{region}/targetHttpsProx" + + "ies/{target_https_proxy}\022\361\001\n\003Get\0229.googl" + + "e.cloud.compute.v1.GetRegionTargetHttpsP" + + "roxyRequest\032).google.cloud.compute.v1.Ta" + + "rgetHttpsProxy\"\203\001\332A!project,region,targe" + + "t_https_proxy\202\323\344\223\002Y\022W/compute/v1/project" + + "s/{project}/regions/{region}/targetHttps" + + "Proxies/{target_https_proxy}\022\224\002\n\006Insert\022" + + "<.google.cloud.compute.v1.InsertRegionTa" + + "rgetHttpsProxyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\247\001\332A*project,region,ta" + + "rget_https_proxy_resource\212N\020RegionOperat" + + "ions\202\323\344\223\002a\"B/compute/v1/projects/{projec" + + "t}/regions/{region}/targetHttpsProxies:\033" + + "target_https_proxy_resource\022\320\001\n\004List\022<.g" + + "oogle.cloud.compute.v1.ListRegionTargetH" + + "ttpsProxiesRequest\032-.google.cloud.comput" + + "e.v1.TargetHttpsProxyList\"[\332A\016project,re" + + "gion\202\323\344\223\002D\022B/compute/v1/projects/{projec" + + "t}/regions/{region}/targetHttpsProxies\022\272" + + "\002\n\005Patch\022;.google.cloud.compute.v1.Patch" + + "RegionTargetHttpsProxyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\317\001\332A=project,r" + + "egion,target_https_proxy,target_https_pr" + + "oxy_resource\212N\020RegionOperations\202\323\344\223\002v2W/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/targetHttpsProxies/{target_https_" + + "proxy}:\033target_https_proxy_resource\022\264\003\n\022" + + "SetSslCertificates\022H.google.cloud.comput" + + "e.v1.SetSslCertificatesRegionTargetHttps" + "ProxyRequest\032\".google.cloud.compute.v1.O" - + "peration\"\226\001\332A!project,region,target_http" - + "s_proxy\212N\020RegionOperations\202\323\344\223\002Y*W/compu" + + "peration\"\257\002\332Acproject,region,target_http" + + "s_proxy,region_target_https_proxies_set_" + + "ssl_certificates_request_resource\212N\020Regi" + + "onOperations\202\323\344\223\002\257\001\"j/compute/v1/project" + + "s/{project}/regions/{region}/targetHttps" + + "Proxies/{target_https_proxy}/setSslCerti" + + "ficates:Aregion_target_https_proxies_set" + + "_ssl_certificates_request_resource\022\312\002\n\tS" + + "etUrlMap\022?.google.cloud.compute.v1.SetUr" + + "lMapRegionTargetHttpsProxyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\327\001\332A.google.cloud.com" - + "pute.v1.AggregatedListResourcePoliciesRe" - + "quest\0325.google.cloud.compute.v1.Resource" - + "PolicyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:" - + "/compute/v1/projects/{project}/aggregate" - + "d/resourcePolicies\022\363\001\n\006Delete\0224.google.c" - + "loud.compute.v1.DeleteResourcePolicyRequ" + + "servationSubBlocks/{resource}/setIamPoli" + + "cy:\'zone_set_nested_policy_request_resou" + + "rce\022\232\003\n\022TestIamPermissions\022E.google.clou" + + "d.compute.v1.TestIamPermissionsReservati" + + "onSubBlockRequest\0320.google.cloud.compute" + + ".v1.TestPermissionsResponse\"\212\002\332AGproject" + + ",zone,parent_resource,resource,test_perm" + + "issions_request_resource\202\323\344\223\002\271\001\"\223\001/compu" + + "te/v1/projects/{project}/zones/{zone}/{p" + + "arent_resource=reservations/*/reservatio" + + "nBlocks/*}/reservationSubBlocks/{resourc" + + "e}/testIamPermissions:!test_permissions_" + + "request_resource\032\202\001\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform\212\324\333\322\017\n2026-09-012\234\027\n\014Reserv" + + "ations\022\312\001\n\016AggregatedList\022:.google.cloud" + + ".compute.v1.AggregatedListReservationsRe" + + "quest\0322.google.cloud.compute.v1.Reservat" + + "ionAggregatedList\"H\332A\007project\202\323\344\223\0028\0226/co" + + "mpute/v1/projects/{project}/aggregated/r" + + "eservations\022\333\001\n\006Delete\0221.google.cloud.co" + + "mpute.v1.DeleteReservationRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"z\332A\030projec" + + "t,zone,reservation\212N\016ZoneOperations\202\323\344\223\002" + + "H*F/compute/v1/projects/{project}/zones/" + + "{zone}/reservations/{reservation}\022\306\001\n\003Ge" + + "t\022..google.cloud.compute.v1.GetReservati" + + "onRequest\032$.google.cloud.compute.v1.Rese" + + "rvation\"i\332A\030project,zone,reservation\202\323\344\223" + + "\002H\022F/compute/v1/projects/{project}/zones" + + "/{zone}/reservations/{reservation}\022\332\001\n\014G" + + "etIamPolicy\0227.google.cloud.compute.v1.Ge" + + "tIamPolicyReservationRequest\032\037.google.cl" + + "oud.compute.v1.Policy\"p\332A\025project,zone,r" + + "esource\202\323\344\223\002R\022P/compute/v1/projects/{pro" + + "ject}/zones/{zone}/reservations/{resourc" + + "e}/getIamPolicy\022\355\001\n\006Insert\0221.google.clou" + + "d.compute.v1.InsertReservationRequest\032\"." + + "google.cloud.compute.v1.Operation\"\213\001\332A!p" + + "roject,zone,reservation_resource\212N\016ZoneO" + + "perations\202\323\344\223\002P\"8/compute/v1/projects/{p" + + "roject}/zones/{zone}/reservations:\024reser" + + "vation_resource\022\263\001\n\004List\0220.google.cloud." + + "compute.v1.ListReservationsRequest\032(.goo" + + "gle.cloud.compute.v1.ReservationList\"O\332A" + + "\014project,zone\202\323\344\223\002:\0228/compute/v1/project" + + "s/{project}/zones/{zone}/reservations\022\355\002" + + "\n\022PerformMaintenance\022=.google.cloud.comp" + + "ute.v1.PerformMaintenanceReservationRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\216\001\332A\036project,region,resource_policy\212N\020Re" - + "gionOperations\202\323\344\223\002T*R/compute/v1/projec" - + "ts/{project}/regions/{region}/resourcePo" - + "licies/{resource_policy}\022\336\001\n\003Get\0221.googl" - + "e.cloud.compute.v1.GetResourcePolicyRequ" - + "est\032\'.google.cloud.compute.v1.ResourcePo" - + "licy\"{\332A\036project,region,resource_policy\202" - + "\323\344\223\002T\022R/compute/v1/projects/{project}/re" - + "gions/{region}/resourcePolicies/{resourc" - + "e_policy}\022\347\001\n\014GetIamPolicy\022:.google.clou" - + "d.compute.v1.GetIamPolicyResourcePolicyR" - + "equest\032\037.google.cloud.compute.v1.Policy\"" - + "z\332A\027project,region,resource\202\323\344\223\002Z\022X/comp" + + "\363\001\332AJproject,zone,reservation,reservatio" + + "ns_perform_maintenance_request_resource\212" + + "N\016ZoneOperations\202\323\344\223\002\216\001\"Y/compute/v1/pro" + + "jects/{project}/zones/{zone}/reservation" + + "s/{reservation}/performMaintenance:1rese" + + "rvations_perform_maintenance_request_res" + + "ource\022\256\002\n\006Resize\0221.google.cloud.compute." + + "v1.ResizeReservationRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\314\001\332A=project,zon" + + "e,reservation,reservations_resize_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002u\"M/comp" + + "ute/v1/projects/{project}/zones/{zone}/r" + + "eservations/{reservation}/resize:$reserv" + + "ations_resize_request_resource\022\236\002\n\014SetIa" + + "mPolicy\0227.google.cloud.compute.v1.SetIam" + + "PolicyReservationRequest\032\037.google.cloud." + + "compute.v1.Policy\"\263\001\332A6project,zone,reso" + + "urce,zone_set_policy_request_resource\202\323\344" + + "\223\002t\"P/compute/v1/projects/{project}/zone" + + "s/{zone}/reservations/{resource}/setIamP" + + "olicy: zone_set_policy_request_resource\022" + + "\303\002\n\022TestIamPermissions\022=.google.cloud.co" + + "mpute.v1.TestIamPermissionsReservationRe" + + "quest\0320.google.cloud.compute.v1.TestPerm" + + "issionsResponse\"\273\001\332A7project,zone,resour" + + "ce,test_permissions_request_resource\202\323\344\223" + + "\002{\"V/compute/v1/projects/{project}/zones" + + "/{zone}/reservations/{resource}/testIamP" + + "ermissions:!test_permissions_request_res" + + "ource\022\207\002\n\006Update\0221.google.cloud.compute." + + "v1.UpdateReservationRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\245\001\332A-project,zon" + + "e,reservation,reservation_resource\212N\016Zon" + + "eOperations\202\323\344\223\002^2F/compute/v1/projects/" + + "{project}/zones/{zone}/reservations/{res" + + "ervation}:\024reservation_resource\032\202\001\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform\212\324\333\322\017\n2026-0" + + "9-012\253\023\n\020ResourcePolicies\022\325\001\n\016Aggregated" + + "List\022>.google.cloud.compute.v1.Aggregate" + + "dListResourcePoliciesRequest\0325.google.cl" + + "oud.compute.v1.ResourcePolicyAggregatedL" + + "ist\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/proje" + + "cts/{project}/aggregated/resourcePolicie" + + "s\022\363\001\n\006Delete\0224.google.cloud.compute.v1.D" + + "eleteResourcePolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\216\001\332A\036project,regi" + + "on,resource_policy\212N\020RegionOperations\202\323\344" + + "\223\002T*R/compute/v1/projects/{project}/regi" + + "ons/{region}/resourcePolicies/{resource_" + + "policy}\022\336\001\n\003Get\0221.google.cloud.compute.v" + + "1.GetResourcePolicyRequest\032\'.google.clou" + + "d.compute.v1.ResourcePolicy\"{\332A\036project," + + "region,resource_policy\202\323\344\223\002T\022R/compute/v" + + "1/projects/{project}/regions/{region}/re" + + "sourcePolicies/{resource_policy}\022\347\001\n\014Get" + + "IamPolicy\022:.google.cloud.compute.v1.GetI" + + "amPolicyResourcePolicyRequest\032\037.google.c" + + "loud.compute.v1.Policy\"z\332A\027project,regio" + + "n,resource\202\323\344\223\002Z\022X/compute/v1/projects/{" + + "project}/regions/{region}/resourcePolici" + + "es/{resource}/getIamPolicy\022\204\002\n\006Insert\0224." + + "google.cloud.compute.v1.InsertResourcePo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\237\001\332A\'project,region,resource_pol" + + "icy_resource\212N\020RegionOperations\202\323\344\223\002\\\"@/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/resourcePolicies:\030resource_policy" + + "_resource\022\304\001\n\004List\0224.google.cloud.comput" + + "e.v1.ListResourcePoliciesRequest\032+.googl" + + "e.cloud.compute.v1.ResourcePolicyList\"Y\332" + + "A\016project,region\202\323\344\223\002B\022@/compute/v1/proj" + + "ects/{project}/regions/{region}/resource" + + "Policies\022\244\002\n\005Patch\0223.google.cloud.comput" + + "e.v1.PatchResourcePolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\301\001\332A7project" + + ",region,resource_policy,resource_policy_" + + "resource\212N\020RegionOperations\202\323\344\223\002n2R/comp" + "ute/v1/projects/{project}/regions/{regio" - + "n}/resourcePolicies/{resource}/getIamPol" - + "icy\022\204\002\n\006Insert\0224.google.cloud.compute.v1" - + ".InsertResourcePolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\237\001\332A\'project,re" - + "gion,resource_policy_resource\212N\020RegionOp" - + "erations\202\323\344\223\002\\\"@/compute/v1/projects/{pr" - + "oject}/regions/{region}/resourcePolicies" - + ":\030resource_policy_resource\022\304\001\n\004List\0224.go" - + "ogle.cloud.compute.v1.ListResourcePolici" - + "esRequest\032+.google.cloud.compute.v1.Reso" - + "urcePolicyList\"Y\332A\016project,region\202\323\344\223\002B\022" - + "@/compute/v1/projects/{project}/regions/" - + "{region}/resourcePolicies\022\244\002\n\005Patch\0223.go" - + "ogle.cloud.compute.v1.PatchResourcePolic" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\301\001\332A7project,region,resource_policy" - + ",resource_policy_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002n2R/compute/v1/projects/{projec" - + "t}/regions/{region}/resourcePolicies/{re" - + "source_policy}:\030resource_policy_resource" - + "\022\257\002\n\014SetIamPolicy\022:.google.cloud.compute" - + ".v1.SetIamPolicyResourcePolicyRequest\032\037." - + "google.cloud.compute.v1.Policy\"\301\001\332A:proj" - + "ect,region,resource,region_set_policy_re" - + "quest_resource\202\323\344\223\002~\"X/compute/v1/projec" - + "ts/{project}/regions/{region}/resourcePo" - + "licies/{resource}/setIamPolicy:\"region_s" - + "et_policy_request_resource\022\321\002\n\022TestIamPe" - + "rmissions\022@.google.cloud.compute.v1.Test" - + "IamPermissionsResourcePolicyRequest\0320.go" - + "ogle.cloud.compute.v1.TestPermissionsRes" - + "ponse\"\306\001\332A9project,region,resource,test_" - + "permissions_request_resource\202\323\344\223\002\203\001\"^/co" + + "n}/resourcePolicies/{resource_policy}:\030r" + + "esource_policy_resource\022\257\002\n\014SetIamPolicy" + + "\022:.google.cloud.compute.v1.SetIamPolicyR" + + "esourcePolicyRequest\032\037.google.cloud.comp" + + "ute.v1.Policy\"\301\001\332A:project,region,resour" + + "ce,region_set_policy_request_resource\202\323\344" + + "\223\002~\"X/compute/v1/projects/{project}/regi" + + "ons/{region}/resourcePolicies/{resource}" + + "/setIamPolicy:\"region_set_policy_request" + + "_resource\022\321\002\n\022TestIamPermissions\022@.googl" + + "e.cloud.compute.v1.TestIamPermissionsRes" + + "ourcePolicyRequest\0320.google.cloud.comput" + + "e.v1.TestPermissionsResponse\"\306\001\332A9projec" + + "t,region,resource,test_permissions_reque" + + "st_resource\202\323\344\223\002\203\001\"^/compute/v1/projects" + + "/{project}/regions/{region}/resourcePoli" + + "cies/{resource}/testIamPermissions:!test" + + "_permissions_request_resource\032\202\001\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" + + "012\307\007\n\014RolloutPlans\022\324\001\n\006Delete\0221.google." + + "cloud.compute.v1.DeleteRolloutPlanReques" + + "t\032\".google.cloud.compute.v1.Operation\"s\332" + + "A\024project,rollout_plan\212N\020GlobalOperation" + + "s\202\323\344\223\002C*A/compute/v1/projects/{project}/" + + "global/rolloutPlans/{rollout_plan}\022\275\001\n\003G" + + "et\022..google.cloud.compute.v1.GetRolloutP" + + "lanRequest\032$.google.cloud.compute.v1.Rol" + + "loutPlan\"`\332A\024project,rollout_plan\202\323\344\223\002C\022" + + "A/compute/v1/projects/{project}/global/r" + + "olloutPlans/{rollout_plan}\022\346\001\n\006Insert\0221." + + "google.cloud.compute.v1.InsertRolloutPla" + + "nRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\204\001\332A\035project,rollout_plan_resource\212" + + "N\020GlobalOperations\202\323\344\223\002K\"2/compute/v1/pr" + + "ojects/{project}/global/rolloutPlans:\025ro" + + "llout_plan_resource\022\261\001\n\004List\0220.google.cl" + + "oud.compute.v1.ListRolloutPlansRequest\0321" + + ".google.cloud.compute.v1.RolloutPlansLis" + + "tResponse\"D\332A\007project\202\323\344\223\0024\0222/compute/v1" + + "/projects/{project}/global/rolloutPlans\032" + + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform\212\324\333\322" + + "\017\n2026-09-012\317\013\n\010Rollouts\022\314\001\n\007Advance\022.." + + "google.cloud.compute.v1.AdvanceRolloutRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"m\332A\017project,rollout\212N\020GlobalOperations" + + "\202\323\344\223\002B\"@/compute/v1/projects/{project}/g" + + "lobal/rollouts/{rollout}/advance\022\302\001\n\006Can" + + "cel\022-.google.cloud.compute.v1.CancelRoll" + + "outRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"e\332A\017project,rollout\212N\020GlobalOpera" + + "tions\202\323\344\223\002:28/compute/v1/projects/{proje" + + "ct}/global/rollouts/{rollout}\022\302\001\n\006Delete" + + "\022-.google.cloud.compute.v1.DeleteRollout" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"e\332A\017project,rollout\212N\020GlobalOperatio" + + "ns\202\323\344\223\002:*8/compute/v1/projects/{project}" + + "/global/rollouts/{rollout}\022\247\001\n\003Get\022*.goo" + + "gle.cloud.compute.v1.GetRolloutRequest\032 " + + ".google.cloud.compute.v1.Rollout\"R\332A\017pro" + + "ject,rollout\202\323\344\223\002:\0228/compute/v1/projects" + + "/{project}/global/rollouts/{rollout}\022\245\001\n" + + "\004List\022,.google.cloud.compute.v1.ListRoll" + + "outsRequest\032-.google.cloud.compute.v1.Ro" + + "lloutsListResponse\"@\332A\007project\202\323\344\223\0020\022./c" + + "ompute/v1/projects/{project}/global/roll" + + "outs\022\306\001\n\005Pause\022,.google.cloud.compute.v1" + + ".PauseRolloutRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"k\332A\017project,rollout\212N\020G" + + "lobalOperations\202\323\344\223\002@\">/compute/v1/proje" + + "cts/{project}/global/rollouts/{rollout}/" + + "pause\022\311\001\n\006Resume\022-.google.cloud.compute." + + "v1.ResumeRolloutRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"l\332A\017project,rollout\212" + + "N\020GlobalOperations\202\323\344\223\002A\"?/compute/v1/pr" + + "ojects/{project}/global/rollouts/{rollou" + + "t}/resume\032\202\001\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform\212\324\333\322\017\n2026-09-012\215*\n\007Routers\022\273\001\n\016A" + + "ggregatedList\0225.google.cloud.compute.v1." + + "AggregatedListRoutersRequest\032-.google.cl" + + "oud.compute.v1.RouterAggregatedList\"C\332A\007" + + "project\202\323\344\223\0023\0221/compute/v1/projects/{pro" + + "ject}/aggregated/routers\022\317\001\n\006Delete\022,.go" + + "ogle.cloud.compute.v1.DeleteRouterReques" + + "t\032\".google.cloud.compute.v1.Operation\"s\332" + + "A\025project,region,router\212N\020RegionOperatio" + + "ns\202\323\344\223\002B*@/compute/v1/projects/{project}" + + "/regions/{region}/routers/{router}\022\357\001\n\016D" + + "eleteNamedSet\0224.google.cloud.compute.v1." + + "DeleteNamedSetRouterRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\202\001\332A\025project,reg" + + "ion,router\212N\020RegionOperations\202\323\344\223\002Q\"O/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/resourcePolicies/{resource}/testIam" - + "Permissions:!test_permissions_request_re" - + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm\212\324\333\322\017\n2026-09-012\307\007\n\014RolloutPlans\022\324\001\n" - + "\006Delete\0221.google.cloud.compute.v1.Delete" - + "RolloutPlanRequest\032\".google.cloud.comput" - + "e.v1.Operation\"s\332A\024project,rollout_plan\212" - + "N\020GlobalOperations\202\323\344\223\002C*A/compute/v1/pr" - + "ojects/{project}/global/rolloutPlans/{ro" - + "llout_plan}\022\275\001\n\003Get\022..google.cloud.compu" - + "te.v1.GetRolloutPlanRequest\032$.google.clo" - + "ud.compute.v1.RolloutPlan\"`\332A\024project,ro" - + "llout_plan\202\323\344\223\002C\022A/compute/v1/projects/{" - + "project}/global/rolloutPlans/{rollout_pl" - + "an}\022\346\001\n\006Insert\0221.google.cloud.compute.v1" - + ".InsertRolloutPlanRequest\032\".google.cloud" - + ".compute.v1.Operation\"\204\001\332A\035project,rollo" - + "ut_plan_resource\212N\020GlobalOperations\202\323\344\223\002" - + "K\"2/compute/v1/projects/{project}/global" - + "/rolloutPlans:\025rollout_plan_resource\022\261\001\n" - + "\004List\0220.google.cloud.compute.v1.ListRoll" - + "outPlansRequest\0321.google.cloud.compute.v" - + "1.RolloutPlansListResponse\"D\332A\007project\202\323" - + "\344\223\0024\0222/compute/v1/projects/{project}/glo" - + "bal/rolloutPlans\032\202\001\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform\212\324\333\322\017\n2026-09-012\317\013\n\010Rollou" - + "ts\022\314\001\n\007Advance\022..google.cloud.compute.v1" - + ".AdvanceRolloutRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"m\332A\017project,rollout\212N" - + "\020GlobalOperations\202\323\344\223\002B\"@/compute/v1/pro" - + "jects/{project}/global/rollouts/{rollout" - + "}/advance\022\302\001\n\006Cancel\022-.google.cloud.comp" - + "ute.v1.CancelRolloutRequest\032\".google.clo" - + "ud.compute.v1.Operation\"e\332A\017project,roll" - + "out\212N\020GlobalOperations\202\323\344\223\002:28/compute/v" - + "1/projects/{project}/global/rollouts/{ro" - + "llout}\022\302\001\n\006Delete\022-.google.cloud.compute" - + ".v1.DeleteRolloutRequest\032\".google.cloud." - + "compute.v1.Operation\"e\332A\017project,rollout" - + "\212N\020GlobalOperations\202\323\344\223\002:*8/compute/v1/p" - + "rojects/{project}/global/rollouts/{rollo" - + "ut}\022\247\001\n\003Get\022*.google.cloud.compute.v1.Ge" - + "tRolloutRequest\032 .google.cloud.compute.v" - + "1.Rollout\"R\332A\017project,rollout\202\323\344\223\002:\0228/co" - + "mpute/v1/projects/{project}/global/rollo" - + "uts/{rollout}\022\245\001\n\004List\022,.google.cloud.co" - + "mpute.v1.ListRolloutsRequest\032-.google.cl" - + "oud.compute.v1.RolloutsListResponse\"@\332A\007" - + "project\202\323\344\223\0020\022./compute/v1/projects/{pro" - + "ject}/global/rollouts\022\306\001\n\005Pause\022,.google" - + ".cloud.compute.v1.PauseRolloutRequest\032\"." - + "google.cloud.compute.v1.Operation\"k\332A\017pr" - + "oject,rollout\212N\020GlobalOperations\202\323\344\223\002@\">" - + "/compute/v1/projects/{project}/global/ro" - + "llouts/{rollout}/pause\022\311\001\n\006Resume\022-.goog" - + "le.cloud.compute.v1.ResumeRolloutRequest" - + "\032\".google.cloud.compute.v1.Operation\"l\332A" - + "\017project,rollout\212N\020GlobalOperations\202\323\344\223\002" - + "A\"?/compute/v1/projects/{project}/global" - + "/rollouts/{rollout}/resume\032\202\001\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" - + "\215*\n\007Routers\022\273\001\n\016AggregatedList\0225.google." - + "cloud.compute.v1.AggregatedListRoutersRe" - + "quest\032-.google.cloud.compute.v1.RouterAg" - + "gregatedList\"C\332A\007project\202\323\344\223\0023\0221/compute" - + "/v1/projects/{project}/aggregated/router" - + "s\022\317\001\n\006Delete\022,.google.cloud.compute.v1.D" - + "eleteRouterRequest\032\".google.cloud.comput" - + "e.v1.Operation\"s\332A\025project,region,router" - + "\212N\020RegionOperations\202\323\344\223\002B*@/compute/v1/p" - + "rojects/{project}/regions/{region}/route" - + "rs/{router}\022\357\001\n\016DeleteNamedSet\0224.google." - + "cloud.compute.v1.DeleteNamedSetRouterReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\202\001\332A\025project,region,router\212N\020RegionOper" - + "ations\202\323\344\223\002Q\"O/compute/v1/projects/{proj" - + "ect}/regions/{region}/routers/{router}/d" - + "eleteNamedSet\022\370\001\n\021DeleteRoutePolicy\0227.go" - + "ogle.cloud.compute.v1.DeleteRoutePolicyR" - + "outerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\205\001\332A\025project,region,router\212N\020Re" - + "gionOperations\202\323\344\223\002T\"R/compute/v1/projec" - + "ts/{project}/regions/{region}/routers/{r" - + "outer}/deleteRoutePolicy\022\263\001\n\003Get\022).googl" - + "e.cloud.compute.v1.GetRouterRequest\032\037.go" - + "ogle.cloud.compute.v1.Router\"`\332A\025project" - + ",region,router\202\323\344\223\002B\022@/compute/v1/projec" - + "ts/{project}/regions/{region}/routers/{r" - + "outer}\022\343\001\n\013GetNamedSet\0221.google.cloud.co" - + "mpute.v1.GetNamedSetRouterRequest\0323.goog" - + "le.cloud.compute.v1.RoutersGetNamedSetRe" - + "sponse\"l\332A\025project,region,router\202\323\344\223\002N\022L" - + "/compute/v1/projects/{project}/regions/{" - + "region}/routers/{router}/getNamedSet\022\335\001\n" - + "\014GetNatIpInfo\0222.google.cloud.compute.v1." - + "GetNatIpInfoRouterRequest\032*.google.cloud" - + ".compute.v1.NatIpInfoResponse\"m\332A\025projec" - + "t,region,router\202\323\344\223\002O\022M/compute/v1/proje" + + "ion}/routers/{router}/deleteNamedSet\022\370\001\n" + + "\021DeleteRoutePolicy\0227.google.cloud.comput" + + "e.v1.DeleteRoutePolicyRouterRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\205\001\332A\025pro" + + "ject,region,router\212N\020RegionOperations\202\323\344" + + "\223\002T\"R/compute/v1/projects/{project}/regi" + + "ons/{region}/routers/{router}/deleteRout" + + "ePolicy\022\263\001\n\003Get\022).google.cloud.compute.v" + + "1.GetRouterRequest\032\037.google.cloud.comput" + + "e.v1.Router\"`\332A\025project,region,router\202\323\344" + + "\223\002B\022@/compute/v1/projects/{project}/regi" + + "ons/{region}/routers/{router}\022\343\001\n\013GetNam" + + "edSet\0221.google.cloud.compute.v1.GetNamed" + + "SetRouterRequest\0323.google.cloud.compute." + + "v1.RoutersGetNamedSetResponse\"l\332A\025projec" + + "t,region,router\202\323\344\223\002N\022L/compute/v1/proje" + "cts/{project}/regions/{region}/routers/{" - + "router}/getNatIpInfo\022\365\001\n\021GetNatMappingIn" - + "fo\0228.google.cloud.compute.v1.GetNatMappi" - + "ngInfoRoutersRequest\0322.google.cloud.comp" - + "ute.v1.VmEndpointNatMappingsList\"r\332A\025pro" - + "ject,region,router\202\323\344\223\002T\022R/compute/v1/pr" - + "ojects/{project}/regions/{region}/router" - + "s/{router}/getNatMappingInfo\022\357\001\n\016GetRout" - + "ePolicy\0224.google.cloud.compute.v1.GetRou" - + "tePolicyRouterRequest\0326.google.cloud.com" - + "pute.v1.RoutersGetRoutePolicyResponse\"o\332" - + "A\025project,region,router\202\323\344\223\002Q\022O/compute/" - + "v1/projects/{project}/regions/{region}/r" - + "outers/{router}/getRoutePolicy\022\351\001\n\017GetRo" - + "uterStatus\0225.google.cloud.compute.v1.Get" - + "RouterStatusRouterRequest\032-.google.cloud" - + ".compute.v1.RouterStatusResponse\"p\332A\025pro" - + "ject,region,router\202\323\344\223\002R\022P/compute/v1/pr" - + "ojects/{project}/regions/{region}/router" - + "s/{router}/getRouterStatus\022\341\001\n\006Insert\022,." - + "google.cloud.compute.v1.InsertRouterRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\204\001\332A\036project,region,router_resource\212N\020Re" - + "gionOperations\202\323\344\223\002J\"7/compute/v1/projec" - + "ts/{project}/regions/{region}/routers:\017r" - + "outer_resource\022\252\001\n\004List\022+.google.cloud.c" - + "ompute.v1.ListRoutersRequest\032#.google.cl" - + "oud.compute.v1.RouterList\"P\332A\016project,re" - + "gion\202\323\344\223\0029\0227/compute/v1/projects/{projec" - + "t}/regions/{region}/routers\022\344\001\n\rListBgpR" - + "outes\0224.google.cloud.compute.v1.ListBgpR" - + "outesRoutersRequest\032-.google.cloud.compu" - + "te.v1.RoutersListBgpRoutes\"n\332A\025project,r" - + "egion,router\202\323\344\223\002P\022N/compute/v1/projects" - + "/{project}/regions/{region}/routers/{rou" - + "ter}/listBgpRoutes\022\344\001\n\rListNamedSets\0224.g" - + "oogle.cloud.compute.v1.ListNamedSetsRout" - + "ersRequest\032-.google.cloud.compute.v1.Rou" - + "tersListNamedSets\"n\332A\025project,region,rou" - + "ter\202\323\344\223\002P\022N/compute/v1/projects/{project" - + "}/regions/{region}/routers/{router}/list" - + "NamedSets\022\364\001\n\021ListRoutePolicies\0228.google" - + ".cloud.compute.v1.ListRoutePoliciesRoute" - + "rsRequest\0321.google.cloud.compute.v1.Rout" - + "ersListRoutePolicies\"r\332A\025project,region," - + "router\202\323\344\223\002T\022R/compute/v1/projects/{proj" - + "ect}/regions/{region}/routers/{router}/l" - + "istRoutePolicies\022\357\001\n\005Patch\022+.google.clou" - + "d.compute.v1.PatchRouterRequest\032\".google" - + ".cloud.compute.v1.Operation\"\224\001\332A%project" - + ",region,router,router_resource\212N\020RegionO" - + "perations\202\323\344\223\002S2@/compute/v1/projects/{p" - + "roject}/regions/{region}/routers/{router" - + "}:\017router_resource\022\223\002\n\rPatchNamedSet\0223.g" - + "oogle.cloud.compute.v1.PatchNamedSetRout" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\250\001\332A(project,region,router,named_s" - + "et_resource\212N\020RegionOperations\202\323\344\223\002d\"N/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/routers/{router}/patchNamedSet:\022na" - + "med_set_resource\022\242\002\n\020PatchRoutePolicy\0226." - + "google.cloud.compute.v1.PatchRoutePolicy" - + "RouterRequest\032\".google.cloud.compute.v1." - + "Operation\"\261\001\332A+project,region,router,rou" - + "te_policy_resource\212N\020RegionOperations\202\323\344" - + "\223\002j\"Q/compute/v1/projects/{project}/regi" - + "ons/{region}/routers/{router}/patchRoute" - + "Policy:\025route_policy_resource\022\365\001\n\007Previe" - + "w\022-.google.cloud.compute.v1.PreviewRoute" - + "rRequest\032/.google.cloud.compute.v1.Route" - + "rsPreviewResponse\"\211\001\332A%project,region,ro" - + "uter,router_resource\202\323\344\223\002[\"H/compute/v1/" - + "projects/{project}/regions/{region}/rout" - + "ers/{router}/preview:\017router_resource\022\361\001" - + "\n\006Update\022,.google.cloud.compute.v1.Updat" - + "eRouterRequest\032\".google.cloud.compute.v1" + + "router}/getNamedSet\022\335\001\n\014GetNatIpInfo\0222.g" + + "oogle.cloud.compute.v1.GetNatIpInfoRoute" + + "rRequest\032*.google.cloud.compute.v1.NatIp" + + "InfoResponse\"m\332A\025project,region,router\202\323" + + "\344\223\002O\022M/compute/v1/projects/{project}/reg" + + "ions/{region}/routers/{router}/getNatIpI" + + "nfo\022\365\001\n\021GetNatMappingInfo\0228.google.cloud" + + ".compute.v1.GetNatMappingInfoRoutersRequ" + + "est\0322.google.cloud.compute.v1.VmEndpoint" + + "NatMappingsList\"r\332A\025project,region,route" + + "r\202\323\344\223\002T\022R/compute/v1/projects/{project}/" + + "regions/{region}/routers/{router}/getNat" + + "MappingInfo\022\357\001\n\016GetRoutePolicy\0224.google." + + "cloud.compute.v1.GetRoutePolicyRouterReq" + + "uest\0326.google.cloud.compute.v1.RoutersGe" + + "tRoutePolicyResponse\"o\332A\025project,region," + + "router\202\323\344\223\002Q\022O/compute/v1/projects/{proj" + + "ect}/regions/{region}/routers/{router}/g" + + "etRoutePolicy\022\351\001\n\017GetRouterStatus\0225.goog" + + "le.cloud.compute.v1.GetRouterStatusRoute" + + "rRequest\032-.google.cloud.compute.v1.Route" + + "rStatusResponse\"p\332A\025project,region,route" + + "r\202\323\344\223\002R\022P/compute/v1/projects/{project}/" + + "regions/{region}/routers/{router}/getRou" + + "terStatus\022\341\001\n\006Insert\022,.google.cloud.comp" + + "ute.v1.InsertRouterRequest\032\".google.clou" + + "d.compute.v1.Operation\"\204\001\332A\036project,regi" + + "on,router_resource\212N\020RegionOperations\202\323\344" + + "\223\002J\"7/compute/v1/projects/{project}/regi" + + "ons/{region}/routers:\017router_resource\022\252\001" + + "\n\004List\022+.google.cloud.compute.v1.ListRou" + + "tersRequest\032#.google.cloud.compute.v1.Ro" + + "uterList\"P\332A\016project,region\202\323\344\223\0029\0227/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/routers\022\344\001\n\rListBgpRoutes\0224.google.cl" + + "oud.compute.v1.ListBgpRoutesRoutersReque" + + "st\032-.google.cloud.compute.v1.RoutersList" + + "BgpRoutes\"n\332A\025project,region,router\202\323\344\223\002" + + "P\022N/compute/v1/projects/{project}/region" + + "s/{region}/routers/{router}/listBgpRoute" + + "s\022\344\001\n\rListNamedSets\0224.google.cloud.compu" + + "te.v1.ListNamedSetsRoutersRequest\032-.goog" + + "le.cloud.compute.v1.RoutersListNamedSets" + + "\"n\332A\025project,region,router\202\323\344\223\002P\022N/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/routers/{router}/listNamedSets\022\364\001\n\021Lis" + + "tRoutePolicies\0228.google.cloud.compute.v1" + + ".ListRoutePoliciesRoutersRequest\0321.googl" + + "e.cloud.compute.v1.RoutersListRoutePolic" + + "ies\"r\332A\025project,region,router\202\323\344\223\002T\022R/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/routers/{router}/listRoutePolicies\022" + + "\357\001\n\005Patch\022+.google.cloud.compute.v1.Patc" + + "hRouterRequest\032\".google.cloud.compute.v1" + ".Operation\"\224\001\332A%project,region,router,ro" - + "uter_resource\212N\020RegionOperations\202\323\344\223\002S\032@" + + "uter_resource\212N\020RegionOperations\202\323\344\223\002S2@" + "/compute/v1/projects/{project}/regions/{" + "region}/routers/{router}:\017router_resourc" - + "e\022\226\002\n\016UpdateNamedSet\0224.google.cloud.comp" - + "ute.v1.UpdateNamedSetRouterRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\251\001\332A(proj" - + "ect,region,router,named_set_resource\212N\020R" - + "egionOperations\202\323\344\223\002e\"O/compute/v1/proje" + + "e\022\223\002\n\rPatchNamedSet\0223.google.cloud.compu" + + "te.v1.PatchNamedSetRouterRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\250\001\332A(projec" + + "t,region,router,named_set_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002d\"N/compute/v1/project" + + "s/{project}/regions/{region}/routers/{ro" + + "uter}/patchNamedSet:\022named_set_resource\022" + + "\242\002\n\020PatchRoutePolicy\0226.google.cloud.comp" + + "ute.v1.PatchRoutePolicyRouterRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\261\001\332A+pr" + + "oject,region,router,route_policy_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002j\"Q/compute/v1/" + + "projects/{project}/regions/{region}/rout" + + "ers/{router}/patchRoutePolicy:\025route_pol" + + "icy_resource\022\365\001\n\007Preview\022-.google.cloud." + + "compute.v1.PreviewRouterRequest\032/.google" + + ".cloud.compute.v1.RoutersPreviewResponse" + + "\"\211\001\332A%project,region,router,router_resou" + + "rce\202\323\344\223\002[\"H/compute/v1/projects/{project" + + "}/regions/{region}/routers/{router}/prev" + + "iew:\017router_resource\022\361\001\n\006Update\022,.google" + + ".cloud.compute.v1.UpdateRouterRequest\032\"." + + "google.cloud.compute.v1.Operation\"\224\001\332A%p" + + "roject,region,router,router_resource\212N\020R" + + "egionOperations\202\323\344\223\002S\032@/compute/v1/proje" + "cts/{project}/regions/{region}/routers/{" - + "router}/updateNamedSet:\022named_set_resour" - + "ce\022\245\002\n\021UpdateRoutePolicy\0227.google.cloud." - + "compute.v1.UpdateRoutePolicyRouterReques" - + "t\032\".google.cloud.compute.v1.Operation\"\262\001" - + "\332A+project,region,router,route_policy_re" - + "source\212N\020RegionOperations\202\323\344\223\002k\"R/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/routers/{router}/updateRoutePolicy:\025rou" - + "te_policy_resource\032\202\001\312A\026compute.googleap" - + "is.com\322AVhttps://www.googleapis.com/auth" - + "/compute,https://www.googleapis.com/auth" - + "/cloud-platform\212\324\333\322\017\n2026-09-012\200\t\n\006Rout" - + "es\022\272\001\n\006Delete\022+.google.cloud.compute.v1." - + "DeleteRouteRequest\032\".google.cloud.comput" - + "e.v1.Operation\"_\332A\rproject,route\212N\020Globa" - + "lOperations\202\323\344\223\0026*4/compute/v1/projects/" - + "{project}/global/routes/{route}\022\235\001\n\003Get\022" - + "(.google.cloud.compute.v1.GetRouteReques" - + "t\032\036.google.cloud.compute.v1.Route\"L\332A\rpr" - + "oject,route\202\323\344\223\0026\0224/compute/v1/projects/" - + "{project}/global/routes/{route}\022\313\001\n\006Inse" - + "rt\022+.google.cloud.compute.v1.InsertRoute" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"p\332A\026project,route_resource\212N\020GlobalO" - + "perations\202\323\344\223\002>\",/compute/v1/projects/{p" - + "roject}/global/routes:\016route_resource\022\226\001" - + "\n\004List\022*.google.cloud.compute.v1.ListRou" - + "tesRequest\032\".google.cloud.compute.v1.Rou" - + "teList\">\332A\007project\202\323\344\223\002.\022,/compute/v1/pr" - + "ojects/{project}/global/routes\022\254\002\n\022TestI" - + "amPermissions\0227.google.cloud.compute.v1." - + "TestIamPermissionsRouteRequest\0320.google." - + "cloud.compute.v1.TestPermissionsResponse" - + "\"\252\001\332A2project,resource,test_permissions_" - + "request_resource\202\323\344\223\002o\"J/compute/v1/proj" - + "ects/{project}/global/routes/{resource}/" - + "testIamPermissions:!test_permissions_req" - + "uest_resource\032\202\001\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform\212\324\333\322\017\n2026-09-012\200\031\n\020SecurityP" - + "olicies\022\251\002\n\007AddRule\0225.google.cloud.compu" - + "te.v1.AddRuleSecurityPolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\302\001\332A5proj" - + "ect,security_policy,security_policy_rule" - + "_resource\212N\020GlobalOperations\202\323\344\223\002q\"P/com" - + "pute/v1/projects/{project}/global/securi" - + "tyPolicies/{security_policy}/addRule:\035se" - + "curity_policy_rule_resource\022\327\001\n\016Aggregat" - + "edList\022>.google.cloud.compute.v1.Aggrega" - + "tedListSecurityPoliciesRequest\0327.google." - + "cloud.compute.v1.SecurityPoliciesAggrega" - + "tedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/p" - + "rojects/{project}/aggregated/securityPol" - + "icies\022\341\001\n\006Delete\0224.google.cloud.compute." - + "v1.DeleteSecurityPolicyRequest\032\".google." - + "cloud.compute.v1.Operation\"}\332A\027project,s" - + "ecurity_policy\212N\020GlobalOperations\202\323\344\223\002J*" - + "H/compute/v1/projects/{project}/global/s", - "ecurityPolicies/{security_policy}\022\315\001\n\003Ge" - + "t\0221.google.cloud.compute.v1.GetSecurityP" - + "olicyRequest\032\'.google.cloud.compute.v1.S" - + "ecurityPolicy\"j\332A\027project,security_polic" - + "y\202\323\344\223\002J\022H/compute/v1/projects/{project}/" - + "global/securityPolicies/{security_policy" - + "}\022\341\001\n\007GetRule\0225.google.cloud.compute.v1." - + "GetRuleSecurityPolicyRequest\032+.google.cl" - + "oud.compute.v1.SecurityPolicyRule\"r\332A\027pr" - + "oject,security_policy\202\323\344\223\002R\022P/compute/v1" - + "/projects/{project}/global/securityPolic" - + "ies/{security_policy}/getRule\022\363\001\n\006Insert" - + "\0224.google.cloud.compute.v1.InsertSecurit" + + "router}:\017router_resource\022\226\002\n\016UpdateNamed" + + "Set\0224.google.cloud.compute.v1.UpdateName" + + "dSetRouterRequest\032\".google.cloud.compute" + + ".v1.Operation\"\251\001\332A(project,region,router" + + ",named_set_resource\212N\020RegionOperations\202\323" + + "\344\223\002e\"O/compute/v1/projects/{project}/reg" + + "ions/{region}/routers/{router}/updateNam" + + "edSet:\022named_set_resource\022\245\002\n\021UpdateRout" + + "ePolicy\0227.google.cloud.compute.v1.Update" + + "RoutePolicyRouterRequest\032\".google.cloud." + + "compute.v1.Operation\"\262\001\332A+project,region" + + ",router,route_policy_resource\212N\020RegionOp" + + "erations\202\323\344\223\002k\"R/compute/v1/projects/{pr" + + "oject}/regions/{region}/routers/{router}" + + "/updateRoutePolicy:\025route_policy_resourc" + + "e\032\202\001\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform\212\324" + + "\333\322\017\n2026-09-012\200\t\n\006Routes\022\272\001\n\006Delete\022+.g" + + "oogle.cloud.compute.v1.DeleteRouteReques" + + "t\032\".google.cloud.compute.v1.Operation\"_\332" + + "A\rproject,route\212N\020GlobalOperations\202\323\344\223\0026" + + "*4/compute/v1/projects/{project}/global/" + + "routes/{route}\022\235\001\n\003Get\022(.google.cloud.co" + + "mpute.v1.GetRouteRequest\032\036.google.cloud." + + "compute.v1.Route\"L\332A\rproject,route\202\323\344\223\0026" + + "\0224/compute/v1/projects/{project}/global/" + + "routes/{route}\022\313\001\n\006Insert\022+.google.cloud" + + ".compute.v1.InsertRouteRequest\032\".google." + + "cloud.compute.v1.Operation\"p\332A\026project,r" + + "oute_resource\212N\020GlobalOperations\202\323\344\223\002>\"," + + "/compute/v1/projects/{project}/global/ro" + + "utes:\016route_resource\022\226\001\n\004List\022*.google.c" + + "loud.compute.v1.ListRoutesRequest\032\".goog" + + "le.cloud.compute.v1.RouteList\">\332A\007projec" + + "t\202\323\344\223\002.\022,/compute/v1/projects/{project}/" + + "global/routes\022\254\002\n\022TestIamPermissions\0227.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sRouteRequest\0320.google.cloud.compute.v1." + + "TestPermissionsResponse\"\252\001\332A2project,res" + + "ource,test_permissions_request_resource\202" + + "\323\344\223\002o\"J/compute/v1/projects/{project}/gl" + + "obal/routes/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\032\202\001\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" + + "026-09-012\200\031\n\020SecurityPolicies\022\251\002\n\007AddRu" + + "le\0225.google.cloud.compute.v1.AddRuleSecu" + + "rityPolicyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\302\001\332A5project,security_poli" + + "cy,security_policy_rule_resource\212N\020Globa" + + "lOperations\202\323\344\223\002q\"P/compute/v1/projects/" + + "{project}/global/securityPolicies/{secur" + + "ity_policy}/addRule:\035security_policy_rul" + + "e_resource\022\327\001\n\016AggregatedList\022>.google.c" + + "loud.compute.v1.AggregatedListSecurityPo" + + "liciesRequest\0327.google.cloud.compute.v1." + + "SecurityPoliciesAggregatedList\"L\332A\007proje" + + "ct\202\323\344\223\002<\022:/compute/v1/projects/{project}" + + "/aggregated/securityPolicies\022\341\001\n\006Delete\022" + + "4.google.cloud.compute.v1.DeleteSecurity" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"}\332A\027project,security_policy\212N\020", + "GlobalOperations\202\323\344\223\002J*H/compute/v1/proj" + + "ects/{project}/global/securityPolicies/{" + + "security_policy}\022\315\001\n\003Get\0221.google.cloud." + + "compute.v1.GetSecurityPolicyRequest\032\'.go" + + "ogle.cloud.compute.v1.SecurityPolicy\"j\332A" + + "\027project,security_policy\202\323\344\223\002J\022H/compute" + + "/v1/projects/{project}/global/securityPo" + + "licies/{security_policy}\022\341\001\n\007GetRule\0225.g" + + "oogle.cloud.compute.v1.GetRuleSecurityPo" + + "licyRequest\032+.google.cloud.compute.v1.Se" + + "curityPolicyRule\"r\332A\027project,security_po" + + "licy\202\323\344\223\002R\022P/compute/v1/projects/{projec" + + "t}/global/securityPolicies/{security_pol" + + "icy}/getRule\022\363\001\n\006Insert\0224.google.cloud.c" + + "ompute.v1.InsertSecurityPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\216\001\332A p" + + "roject,security_policy_resource\212N\020Global" + + "Operations\202\323\344\223\002R\"6/compute/v1/projects/{" + + "project}/global/securityPolicies:\030securi" + + "ty_policy_resource\022\263\001\n\004List\0224.google.clo" + + "ud.compute.v1.ListSecurityPoliciesReques" + + "t\032+.google.cloud.compute.v1.SecurityPoli" + + "cyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/pr" + + "ojects/{project}/global/securityPolicies" + + "\022\256\002\n\037ListPreconfiguredExpressionSets\022O.g" + + "oogle.cloud.compute.v1.ListPreconfigured" + + "ExpressionSetsSecurityPoliciesRequest\032P." + + "google.cloud.compute.v1.SecurityPolicies" + + "ListPreconfiguredExpressionSetsResponse\"" + + "h\332A\007project\202\323\344\223\002X\022V/compute/v1/projects/" + + "{project}/global/securityPolicies/listPr" + + "econfiguredExpressionSets\022\223\002\n\005Patch\0223.go" + + "ogle.cloud.compute.v1.PatchSecurityPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\260\001\332A0project,security_policy,securi" + + "ty_policy_resource\212N\020GlobalOperations\202\323\344" + + "\223\002d2H/compute/v1/projects/{project}/glob" + + "al/securityPolicies/{security_policy}:\030s" + + "ecurity_policy_resource\022\257\002\n\tPatchRule\0227." + + "google.cloud.compute.v1.PatchRuleSecurit" + "yPolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\216\001\332A project,security_policy_" - + "resource\212N\020GlobalOperations\202\323\344\223\002R\"6/comp" - + "ute/v1/projects/{project}/global/securit" - + "yPolicies:\030security_policy_resource\022\263\001\n\004" - + "List\0224.google.cloud.compute.v1.ListSecur" - + "ityPoliciesRequest\032+.google.cloud.comput" - + "e.v1.SecurityPolicyList\"H\332A\007project\202\323\344\223\002" - + "8\0226/compute/v1/projects/{project}/global" - + "/securityPolicies\022\256\002\n\037ListPreconfiguredE" - + "xpressionSets\022O.google.cloud.compute.v1." - + "ListPreconfiguredExpressionSetsSecurityP" - + "oliciesRequest\032P.google.cloud.compute.v1" - + ".SecurityPoliciesListPreconfiguredExpres" - + "sionSetsResponse\"h\332A\007project\202\323\344\223\002X\022V/com" - + "pute/v1/projects/{project}/global/securi" - + "tyPolicies/listPreconfiguredExpressionSe" - + "ts\022\223\002\n\005Patch\0223.google.cloud.compute.v1.P" - + "atchSecurityPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\260\001\332A0project,secur" - + "ity_policy,security_policy_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002d2H/compute/v1/projec" - + "ts/{project}/global/securityPolicies/{se" - + "curity_policy}:\030security_policy_resource" - + "\022\257\002\n\tPatchRule\0227.google.cloud.compute.v1" - + ".PatchRuleSecurityPolicyRequest\032\".google" - + ".cloud.compute.v1.Operation\"\304\001\332A5project" - + ",security_policy,security_policy_rule_re" - + "source\212N\020GlobalOperations\202\323\344\223\002s\"R/comput" - + "e/v1/projects/{project}/global/securityP" - + "olicies/{security_policy}/patchRule:\035sec" - + "urity_policy_rule_resource\022\365\001\n\nRemoveRul" - + "e\0228.google.cloud.compute.v1.RemoveRuleSe" - + "curityPolicyRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\210\001\332A\027project,security_po" - + "licy\212N\020GlobalOperations\202\323\344\223\002U\"S/compute/" - + "v1/projects/{project}/global/securityPol" - + "icies/{security_policy}/removeRule\022\253\002\n\tS" - + "etLabels\0227.google.cloud.compute.v1.SetLa" - + "belsSecurityPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\300\001\332A3project,resou" - + "rce,global_set_labels_request_resource\212N" - + "\020GlobalOperations\202\323\344\223\002q\"K/compute/v1/pro" - + "jects/{project}/global/securityPolicies/" - + "{resource}/setLabels:\"global_set_labels_" - + "request_resource\032\202\001\312A\026compute.googleapis" - + ".com\322AVhttps://www.googleapis.com/auth/c" - + "ompute,https://www.googleapis.com/auth/c" - + "loud-platform\212\324\333\322\017\n2026-09-012\201\024\n\022Servic" - + "eAttachments\022\334\001\n\016AggregatedList\022@.google" - + ".cloud.compute.v1.AggregatedListServiceA" - + "ttachmentsRequest\0328.google.cloud.compute" - + ".v1.ServiceAttachmentAggregatedList\"N\332A\007" - + "project\202\323\344\223\002>\022/compute/v1/projec" - + "ts/{project}/global/sslPolicies/{ssl_pol" - + "icy}\022\264\001\n\003Get\022,.google.cloud.compute.v1.G" - + "etSslPolicyRequest\032\".google.cloud.comput" - + "e.v1.SslPolicy\"[\332A\022project,ssl_policy\202\323\344" - + "\223\002@\022>/compute/v1/projects/{project}/glob" - + "al/sslPolicies/{ssl_policy}\022\336\001\n\006Insert\022/" - + ".google.cloud.compute.v1.InsertSslPolicy" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\177\332A\033project,ssl_policy_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002H\"1/compute/v1/projec" - + "ts/{project}/global/sslPolicies:\023ssl_pol" - + "icy_resource\022\246\001\n\004List\022/.google.cloud.com" - + "pute.v1.ListSslPoliciesRequest\032(.google." - + "cloud.compute.v1.SslPoliciesList\"C\332A\007pro" - + "ject\202\323\344\223\0023\0221/compute/v1/projects/{projec" - + "t}/global/sslPolicies\022\367\001\n\025ListAvailableF" - + "eatures\022@.google.cloud.compute.v1.ListAv" - + "ailableFeaturesSslPoliciesRequest\032A.goog" - + "le.cloud.compute.v1.SslPoliciesListAvail" - + "ableFeaturesResponse\"Y\332A\007project\202\323\344\223\002I\022G" - + "/compute/v1/projects/{project}/global/ss" - + "lPolicies/listAvailableFeatures\022\365\001\n\005Patc" - + "h\022..google.cloud.compute.v1.PatchSslPoli" - + "cyRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\227\001\332A&project,ssl_policy,ssl_policy" - + "_resource\212N\020GlobalOperations\202\323\344\223\002U2>/com" - + "pute/v1/projects/{project}/global/sslPol" - + "icies/{ssl_policy}:\023ssl_policy_resource\032" + + ".Operation\"\304\001\332A5project,security_policy," + + "security_policy_rule_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002s\"R/compute/v1/projects/{pr" + + "oject}/global/securityPolicies/{security" + + "_policy}/patchRule:\035security_policy_rule" + + "_resource\022\365\001\n\nRemoveRule\0228.google.cloud." + + "compute.v1.RemoveRuleSecurityPolicyReque" + + "st\032\".google.cloud.compute.v1.Operation\"\210" + + "\001\332A\027project,security_policy\212N\020GlobalOper" + + "ations\202\323\344\223\002U\"S/compute/v1/projects/{proj" + + "ect}/global/securityPolicies/{security_p" + + "olicy}/removeRule\022\253\002\n\tSetLabels\0227.google" + + ".cloud.compute.v1.SetLabelsSecurityPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\300\001\332A3project,resource,global_set_la" + + "bels_request_resource\212N\020GlobalOperations" + + "\202\323\344\223\002q\"K/compute/v1/projects/{project}/g" + + "lobal/securityPolicies/{resource}/setLab" + + "els:\"global_set_labels_request_resource\032" + "\202\001\312A\026compute.googleapis.com\322AVhttps://ww" + "w.googleapis.com/auth/compute,https://ww" + "w.googleapis.com/auth/cloud-platform\212\324\333\322" - + "\017\n2026-09-012\305\006\n\020StoragePoolTypes\022\326\001\n\016Ag" - + "gregatedList\022>.google.cloud.compute.v1.A" - + "ggregatedListStoragePoolTypesRequest\0326.g" - + "oogle.cloud.compute.v1.StoragePoolTypeAg" - + "gregatedList\"L\332A\007project\202\323\344\223\002<\022:/compute" - + "/v1/projects/{project}/aggregated/storag" - + "ePoolTypes\022\336\001\n\003Get\0222.google.cloud.comput" - + "e.v1.GetStoragePoolTypeRequest\032(.google." - + "cloud.compute.v1.StoragePoolType\"y\332A\036pro" - + "ject,zone,storage_pool_type\202\323\344\223\002R\022P/comp" - + "ute/v1/projects/{project}/zones/{zone}/s" - + "toragePoolTypes/{storage_pool_type}\022\277\001\n\004" - + "List\0224.google.cloud.compute.v1.ListStora" - + "gePoolTypesRequest\032,.google.cloud.comput" - + "e.v1.StoragePoolTypeList\"S\332A\014project,zon" - + "e\202\323\344\223\002>\022\022/compute/v1/projects/{project}/glob" + + "al/sslPolicies/{ssl_policy}\022\264\001\n\003Get\022,.go" + + "ogle.cloud.compute.v1.GetSslPolicyReques" + + "t\032\".google.cloud.compute.v1.SslPolicy\"[\332" + + "A\022project,ssl_policy\202\323\344\223\002@\022>/compute/v1/" + + "projects/{project}/global/sslPolicies/{s" + + "sl_policy}\022\336\001\n\006Insert\022/.google.cloud.com" + + "pute.v1.InsertSslPolicyRequest\032\".google." + + "cloud.compute.v1.Operation\"\177\332A\033project,s" + + "sl_policy_resource\212N\020GlobalOperations\202\323\344" + + "\223\002H\"1/compute/v1/projects/{project}/glob" + + "al/sslPolicies:\023ssl_policy_resource\022\246\001\n\004" + + "List\022/.google.cloud.compute.v1.ListSslPo" + + "liciesRequest\032(.google.cloud.compute.v1." + + "SslPoliciesList\"C\332A\007project\202\323\344\223\0023\0221/comp" + + "ute/v1/projects/{project}/global/sslPoli" + + "cies\022\367\001\n\025ListAvailableFeatures\022@.google." + + "cloud.compute.v1.ListAvailableFeaturesSs" + + "lPoliciesRequest\032A.google.cloud.compute." + + "v1.SslPoliciesListAvailableFeaturesRespo" + + "nse\"Y\332A\007project\202\323\344\223\002I\022G/compute/v1/proje" + + "cts/{project}/global/sslPolicies/listAva" + + "ilableFeatures\022\365\001\n\005Patch\022..google.cloud." + + "compute.v1.PatchSslPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\227\001\332A&projec" + + "t,ssl_policy,ssl_policy_resource\212N\020Globa" + + "lOperations\202\323\344\223\002U2>/compute/v1/projects/" + + "{project}/global/sslPolicies/{ssl_policy" + + "}:\023ssl_policy_resource\032\202\001\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\305\006\n\020" + + "StoragePoolTypes\022\326\001\n\016AggregatedList\022>.go" + + "ogle.cloud.compute.v1.AggregatedListStor" + + "agePoolTypesRequest\0326.google.cloud.compu" + + "te.v1.StoragePoolTypeAggregatedList\"L\332A\007" + + "project\202\323\344\223\002<\022:/compute/v1/projects/{pro" + + "ject}/aggregated/storagePoolTypes\022\336\001\n\003Ge" + + "t\0222.google.cloud.compute.v1.GetStoragePo" + + "olTypeRequest\032(.google.cloud.compute.v1." + + "StoragePoolType\"y\332A\036project,zone,storage" + + "_pool_type\202\323\344\223\002R\022P/compute/v1/projects/{" + + "project}/zones/{zone}/storagePoolTypes/{" + + "storage_pool_type}\022\277\001\n\004List\0224.google.clo" + + "ud.compute.v1.ListStoragePoolTypesReques" + + "t\032,.google.cloud.compute.v1.StoragePoolT" + + "ypeList\"S\332A\014project,zone\202\323\344\223\002>\022\022\022.google.cloud.comput" + + "e.v1.AggregatedListTargetTcpProxiesReque" + + "st\0325.google.cloud.compute.v1.TargetTcpPr" + + "oxyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/co" + + "mpute/v1/projects/{project}/aggregated/t" + + "argetTcpProxies\022\343\001\n\006Delete\0224.google.clou" + + "d.compute.v1.DeleteTargetTcpProxyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\177\332A" + + "\030project,target_tcp_proxy\212N\020GlobalOperat" + + "ions\202\323\344\223\002K*I/compute/v1/projects/{projec" + + "t}/global/targetTcpProxies/{target_tcp_p" + + "roxy}\022\317\001\n\003Get\0221.google.cloud.compute.v1." + + "GetTargetTcpProxyRequest\032\'.google.cloud." + + "compute.v1.TargetTcpProxy\"l\332A\030project,ta" + + "rget_tcp_proxy\202\323\344\223\002K\022I/compute/v1/projec" + + "ts/{project}/global/targetTcpProxies/{ta" + + "rget_tcp_proxy}\022\365\001\n\006Insert\0224.google.clou" + + "d.compute.v1.InsertTargetTcpProxyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\220\001\332" + + "A!project,target_tcp_proxy_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002S\"6/compute/v1/projec" + + "ts/{project}/global/targetTcpProxies:\031ta" + + "rget_tcp_proxy_resource\022\263\001\n\004List\0224.googl" + + "e.cloud.compute.v1.ListTargetTcpProxiesR" + + "equest\032+.google.cloud.compute.v1.TargetT" + + "cpProxyList\"H\332A\007project\202\323\344\223\0028\0226/compute/" + + "v1/projects/{project}/global/targetTcpPr" + + "oxies\022\376\002\n\021SetBackendService\022?.google.clo" + + "ud.compute.v1.SetBackendServiceTargetTcp" + + "ProxyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\203\002\332APproject,target_tcp_proxy,t" + + "arget_tcp_proxies_set_backend_service_re" + + "quest_resource\212N\020GlobalOperations\202\323\344\223\002\226\001" + + "\"[/compute/v1/projects/{project}/global/" + + "targetTcpProxies/{target_tcp_proxy}/setB" + + "ackendService:7target_tcp_proxies_set_ba" + + "ckend_service_request_resource\022\357\002\n\016SetPr" + + "oxyHeader\022<.google.cloud.compute.v1.SetP" + + "roxyHeaderTargetTcpProxyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\372\001\332AMproject" + + ",target_tcp_proxy,target_tcp_proxies_set" + + "_proxy_header_request_resource\212N\020GlobalO" + + "perations\202\323\344\223\002\220\001\"X/compute/v1/projects/{" + + "project}/global/targetTcpProxies/{target" + + "_tcp_proxy}/setProxyHeader:4target_tcp_p" + + "roxies_set_proxy_header_request_resource" + + "\022\277\002\n\022TestIamPermissions\022@.google.cloud.c" + + "ompute.v1.TestIamPermissionsTargetTcpPro" + + "xyRequest\0320.google.cloud.compute.v1.Test" + + "PermissionsResponse\"\264\001\332A2project,resourc" + + "e,test_permissions_request_resource\202\323\344\223\002" + + "y\"T/compute/v1/projects/{project}/global" + + "/targetTcpProxies/{resource}/testIamPerm" + + "issions:!test_permissions_request_resour" + + "ce\032\202\001\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform\212" + + "\324\333\322\017\n2026-09-012\375\014\n\021TargetVpnGateways\022\331\001" + + "\n\016AggregatedList\022?.google.cloud.compute." + + "v1.AggregatedListTargetVpnGatewaysReques" + + "t\0327.google.cloud.compute.v1.TargetVpnGat" + + "ewayAggregatedList\"M\332A\007project\202\323\344\223\002=\022;/c" + + "ompute/v1/projects/{project}/aggregated/" + + "targetVpnGateways\022\374\001\n\006Delete\0226.google.cl" + + "oud.compute.v1.DeleteTargetVpnGatewayReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\225\001\332A!project,region,target_vpn_gateway\212" + + "N\020RegionOperations\202\323\344\223\002X*V/compute/v1/pr" + + "ojects/{project}/regions/{region}/target" + + "VpnGateways/{target_vpn_gateway}\022\352\001\n\003Get" + + "\0223.google.cloud.compute.v1.GetTargetVpnG" + + "atewayRequest\032).google.cloud.compute.v1." + + "TargetVpnGateway\"\202\001\332A!project,region,tar" + + "get_vpn_gateway\202\323\344\223\002X\022V/compute/v1/proje" + + "cts/{project}/regions/{region}/targetVpn" + + "Gateways/{target_vpn_gateway}\022\215\002\n\006Insert" + + "\0226.google.cloud.compute.v1.InsertTargetV" + + "pnGatewayRequest\032\".google.cloud.compute." + + "v1.Operation\"\246\001\332A*project,region,target_" + + "vpn_gateway_resource\212N\020RegionOperations\202" + + "\323\344\223\002`\"A/compute/v1/projects/{project}/re" + + "gions/{region}/targetVpnGateways:\033target" + + "_vpn_gateway_resource\022\310\001\n\004List\0225.google." + + "cloud.compute.v1.ListTargetVpnGatewaysRe" + + "quest\032-.google.cloud.compute.v1.TargetVp" + + "nGatewayList\"Z\332A\016project,region\202\323\344\223\002C\022A/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/targetVpnGateways\022\277\002\n\tSetLabels\0229" + + ".google.cloud.compute.v1.SetLabelsTarget" + + "VpnGatewayRequest\032\".google.cloud.compute" + + ".v1.Operation\"\322\001\332A:project,region,resour" + + "ce,region_set_labels_request_resource\212N\020" + + "RegionOperations\202\323\344\223\002|\"V/compute/v1/proj" + + "ects/{project}/regions/{region}/targetVp" + + "nGateways/{resource}/setLabels:\"region_s" + + "et_labels_request_resource\032\202\001\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform\212\324\333\322\017\n2026-09-012" + + "\340\022\n\007UrlMaps\022\274\001\n\016AggregatedList\0225.google." + + "cloud.compute.v1.AggregatedListUrlMapsRe" + + "quest\032..google.cloud.compute.v1.UrlMapsA" + + "ggregatedList\"C\332A\007project\202\323\344\223\0023\0221/comput" + + "e/v1/projects/{project}/aggregated/urlMa" + + "ps\022\300\001\n\006Delete\022,.google.cloud.compute.v1." + + "DeleteUrlMapRequest\032\".google.cloud.compu" + + "te.v1.Operation\"d\332A\017project,url_map\212N\020Gl" + + "obalOperations\202\323\344\223\0029*7/compute/v1/projec" + + "ts/{project}/global/urlMaps/{url_map}\022\244\001" + + "\n\003Get\022).google.cloud.compute.v1.GetUrlMa" + + "pRequest\032\037.google.cloud.compute.v1.UrlMa" + + "p\"Q\332A\017project,url_map\202\323\344\223\0029\0227/compute/v1" + + "/projects/{project}/global/urlMaps/{url_" + + "map}\022\321\001\n\006Insert\022,.google.cloud.compute.v" + + "1.InsertUrlMapRequest\032\".google.cloud.com" + + "pute.v1.Operation\"u\332A\030project,url_map_re" + + "source\212N\020GlobalOperations\202\323\344\223\002A\"-/comput" + + "e/v1/projects/{project}/global/urlMaps:\020" + + "url_map_resource\022\246\002\n\017InvalidateCache\0225.g" + + "oogle.cloud.compute.v1.InvalidateCacheUr" + + "lMapRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\267\001\332A0project,url_map,cache_inval" + + "idation_rule_resource\212N\020GlobalOperations" + + "\202\323\344\223\002k\"G/compute/v1/projects/{project}/g" + + "lobal/urlMaps/{url_map}/invalidateCache:" + + " cache_invalidation_rule_resource\022\231\001\n\004Li" + + "st\022+.google.cloud.compute.v1.ListUrlMaps" + + "Request\032#.google.cloud.compute.v1.UrlMap" + + "List\"?\332A\007project\202\323\344\223\002/\022-/compute/v1/proj" + + "ects/{project}/global/urlMaps\022\342\001\n\005Patch\022" + + "+.google.cloud.compute.v1.PatchUrlMapReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\207\001\332A project,url_map,url_map_resource\212N" + + "\020GlobalOperations\202\323\344\223\002K27/compute/v1/pro" + + "jects/{project}/global/urlMaps/{url_map}" + + ":\020url_map_resource\022\256\002\n\022TestIamPermission" + + "s\0228.google.cloud.compute.v1.TestIamPermi" + + "ssionsUrlMapRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\253\001\332A2proje" + + "ct,resource,test_permissions_request_res" + + "ource\202\323\344\223\002p\"K/compute/v1/projects/{proje" + + "ct}/global/urlMaps/{resource}/testIamPer" + + "missions:!test_permissions_request_resou" + + "rce\022\344\001\n\006Update\022,.google.cloud.compute.v1" + + ".UpdateUrlMapRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\207\001\332A project,url_map,ur" + + "l_map_resource\212N\020GlobalOperations\202\323\344\223\002K\032" + + "7/compute/v1/projects/{project}/global/u" + + "rlMaps/{url_map}:\020url_map_resource\022\220\002\n\010V" + + "alidate\022..google.cloud.compute.v1.Valida" + + "teUrlMapRequest\0320.google.cloud.compute.v" + + "1.UrlMapsValidateResponse\"\241\001\332A2project,u" + + "rl_map,url_maps_validate_request_resourc" + + "e\202\323\344\223\002f\"@/compute/v1/projects/{project}/" + + "global/urlMaps/{url_map}/validate:\"url_m" + + "aps_validate_request_resource\032\202\001\312A\026compu" + "te.googleapis.com\322AVhttps://www.googleap" + "is.com/auth/compute,https://www.googleap" + "is.com/auth/cloud-platform\212\324\333\322\017\n2026-09-" - + "012\366\030\n\020TargetSslProxies\022\343\001\n\006Delete\0224.goo" - + "gle.cloud.compute.v1.DeleteTargetSslProx" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\177\332A\030project,target_ssl_proxy\212N\020Glob" - + "alOperations\202\323\344\223\002K*I/compute/v1/projects" - + "/{project}/global/targetSslProxies/{targ" - + "et_ssl_proxy}\022\317\001\n\003Get\0221.google.cloud.com" - + "pute.v1.GetTargetSslProxyRequest\032\'.googl" - + "e.cloud.compute.v1.TargetSslProxy\"l\332A\030pr" - + "oject,target_ssl_proxy\202\323\344\223\002K\022I/compute/v" - + "1/projects/{project}/global/targetSslPro" - + "xies/{target_ssl_proxy}\022\365\001\n\006Insert\0224.goo" - + "gle.cloud.compute.v1.InsertTargetSslProx" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\220\001\332A!project,target_ssl_proxy_resou" - + "rce\212N\020GlobalOperations\202\323\344\223\002S\"6/compute/v" - + "1/projects/{project}/global/targetSslPro" - + "xies:\031target_ssl_proxy_resource\022\263\001\n\004List" - + "\0224.google.cloud.compute.v1.ListTargetSsl" - + "ProxiesRequest\032+.google.cloud.compute.v1" - + ".TargetSslProxyList\"H\332A\007project\202\323\344\223\0028\0226/" - + "compute/v1/projects/{project}/global/tar" - + "getSslProxies\022\376\002\n\021SetBackendService\022?.go" - + "ogle.cloud.compute.v1.SetBackendServiceT" - + "argetSslProxyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\203\002\332APproject,target_ssl" - + "_proxy,target_ssl_proxies_set_backend_se" - + "rvice_request_resource\212N\020GlobalOperation" - + "s\202\323\344\223\002\226\001\"[/compute/v1/projects/{project}" - + "/global/targetSslProxies/{target_ssl_pro" - + "xy}/setBackendService:7target_ssl_proxie" - + "s_set_backend_service_request_resource\022\376" - + "\002\n\021SetCertificateMap\022?.google.cloud.comp" - + "ute.v1.SetCertificateMapTargetSslProxyRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\203\002\332APproject,target_ssl_proxy,target_s" - + "sl_proxies_set_certificate_map_request_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002\226\001\"[/comp" - + "ute/v1/projects/{project}/global/targetS" - + "slProxies/{target_ssl_proxy}/setCertific" - + "ateMap:7target_ssl_proxies_set_certifica" - + "te_map_request_resource\022\357\002\n\016SetProxyHead" - + "er\022<.google.cloud.compute.v1.SetProxyHea" - + "derTargetSslProxyRequest\032\".google.cloud." - + "compute.v1.Operation\"\372\001\332AMproject,target" - + "_ssl_proxy,target_ssl_proxies_set_proxy_" - + "header_request_resource\212N\020GlobalOperatio" - + "ns\202\323\344\223\002\220\001\"X/compute/v1/projects/{project" - + "}/global/targetSslProxies/{target_ssl_pr" - + "oxy}/setProxyHeader:4target_ssl_proxies_" - + "set_proxy_header_request_resource\022\203\003\n\022Se" - + "tSslCertificates\022@.google.cloud.compute." - + "v1.SetSslCertificatesTargetSslProxyReque", - "st\032\".google.cloud.compute.v1.Operation\"\206" - + "\002\332AQproject,target_ssl_proxy,target_ssl_" - + "proxies_set_ssl_certificates_request_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002\230\001\"\\/comput" - + "e/v1/projects/{project}/global/targetSsl" - + "Proxies/{target_ssl_proxy}/setSslCertifi" - + "cates:8target_ssl_proxies_set_ssl_certif" - + "icates_request_resource\022\272\002\n\014SetSslPolicy" - + "\022:.google.cloud.compute.v1.SetSslPolicyT" - + "argetSslProxyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\311\001\332A6project,target_ssl" - + "_proxy,ssl_policy_reference_resource\212N\020G" - + "lobalOperations\202\323\344\223\002w\"V/compute/v1/proje" - + "cts/{project}/global/targetSslProxies/{t" - + "arget_ssl_proxy}/setSslPolicy:\035ssl_polic" - + "y_reference_resource\022\277\002\n\022TestIamPermissi" - + "ons\022@.google.cloud.compute.v1.TestIamPer" - + "missionsTargetSslProxyRequest\0320.google.c" - + "loud.compute.v1.TestPermissionsResponse\"" - + "\264\001\332A2project,resource,test_permissions_r" - + "equest_resource\202\323\344\223\002y\"T/compute/v1/proje" - + "cts/{project}/global/targetSslProxies/{r" - + "esource}/testIamPermissions:!test_permis" - + "sions_request_resource\032\202\001\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform\212\324\333\322\017\n2026-09-012\212\022\n\020" - + "TargetTcpProxies\022\325\001\n\016AggregatedList\022>.go" - + "ogle.cloud.compute.v1.AggregatedListTarg" - + "etTcpProxiesRequest\0325.google.cloud.compu" - + "te.v1.TargetTcpProxyAggregatedList\"L\332A\007p" - + "roject\202\323\344\223\002<\022:/compute/v1/projects/{proj" - + "ect}/aggregated/targetTcpProxies\022\343\001\n\006Del" - + "ete\0224.google.cloud.compute.v1.DeleteTarg" - + "etTcpProxyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\177\332A\030project,target_tcp_pro" - + "xy\212N\020GlobalOperations\202\323\344\223\002K*I/compute/v1" - + "/projects/{project}/global/targetTcpProx" - + "ies/{target_tcp_proxy}\022\317\001\n\003Get\0221.google." - + "cloud.compute.v1.GetTargetTcpProxyReques" - + "t\032\'.google.cloud.compute.v1.TargetTcpPro" - + "xy\"l\332A\030project,target_tcp_proxy\202\323\344\223\002K\022I/" - + "compute/v1/projects/{project}/global/tar" - + "getTcpProxies/{target_tcp_proxy}\022\365\001\n\006Ins" - + "ert\0224.google.cloud.compute.v1.InsertTarg" - + "etTcpProxyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\220\001\332A!project,target_tcp_pr" - + "oxy_resource\212N\020GlobalOperations\202\323\344\223\002S\"6/" - + "compute/v1/projects/{project}/global/tar" - + "getTcpProxies:\031target_tcp_proxy_resource" - + "\022\263\001\n\004List\0224.google.cloud.compute.v1.List" - + "TargetTcpProxiesRequest\032+.google.cloud.c" - + "ompute.v1.TargetTcpProxyList\"H\332A\007project" - + "\202\323\344\223\0028\0226/compute/v1/projects/{project}/g" - + "lobal/targetTcpProxies\022\376\002\n\021SetBackendSer" - + "vice\022?.google.cloud.compute.v1.SetBacken" - + "dServiceTargetTcpProxyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\203\002\332APproject,t" - + "arget_tcp_proxy,target_tcp_proxies_set_b" - + "ackend_service_request_resource\212N\020Global" - + "Operations\202\323\344\223\002\226\001\"[/compute/v1/projects/" - + "{project}/global/targetTcpProxies/{targe" - + "t_tcp_proxy}/setBackendService:7target_t" - + "cp_proxies_set_backend_service_request_r" - + "esource\022\357\002\n\016SetProxyHeader\022<.google.clou" - + "d.compute.v1.SetProxyHeaderTargetTcpProx" - + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\372\001\332AMproject,target_tcp_proxy,targe" - + "t_tcp_proxies_set_proxy_header_request_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002\220\001\"X/comp" - + "ute/v1/projects/{project}/global/targetT" - + "cpProxies/{target_tcp_proxy}/setProxyHea" - + "der:4target_tcp_proxies_set_proxy_header" - + "_request_resource\022\277\002\n\022TestIamPermissions" - + "\022@.google.cloud.compute.v1.TestIamPermis" - + "sionsTargetTcpProxyRequest\0320.google.clou" - + "d.compute.v1.TestPermissionsResponse\"\264\001\332" - + "A2project,resource,test_permissions_requ" - + "est_resource\202\323\344\223\002y\"T/compute/v1/projects" - + "/{project}/global/targetTcpProxies/{reso" - + "urce}/testIamPermissions:!test_permissio" - + "ns_request_resource\032\202\001\312A\026compute.googlea" - + "pis.com\322AVhttps://www.googleapis.com/aut" - + "h/compute,https://www.googleapis.com/aut" - + "h/cloud-platform\212\324\333\322\017\n2026-09-012\375\014\n\021Tar" - + "getVpnGateways\022\331\001\n\016AggregatedList\022?.goog" - + "le.cloud.compute.v1.AggregatedListTarget" - + "VpnGatewaysRequest\0327.google.cloud.comput" - + "e.v1.TargetVpnGatewayAggregatedList\"M\332A\007" - + "project\202\323\344\223\002=\022;/compute/v1/projects/{pro" - + "ject}/aggregated/targetVpnGateways\022\374\001\n\006D" - + "elete\0226.google.cloud.compute.v1.DeleteTa" - + "rgetVpnGatewayRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\225\001\332A!project,region,ta" - + "rget_vpn_gateway\212N\020RegionOperations\202\323\344\223\002" - + "X*V/compute/v1/projects/{project}/region" - + "s/{region}/targetVpnGateways/{target_vpn" - + "_gateway}\022\352\001\n\003Get\0223.google.cloud.compute" - + ".v1.GetTargetVpnGatewayRequest\032).google." - + "cloud.compute.v1.TargetVpnGateway\"\202\001\332A!p" - + "roject,region,target_vpn_gateway\202\323\344\223\002X\022V" - + "/compute/v1/projects/{project}/regions/{" - + "region}/targetVpnGateways/{target_vpn_ga" - + "teway}\022\215\002\n\006Insert\0226.google.cloud.compute" - + ".v1.InsertTargetVpnGatewayRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\246\001\332A*proje" - + "ct,region,target_vpn_gateway_resource\212N\020" - + "RegionOperations\202\323\344\223\002`\"A/compute/v1/proj" - + "ects/{project}/regions/{region}/targetVp" - + "nGateways:\033target_vpn_gateway_resource\022\310" - + "\001\n\004List\0225.google.cloud.compute.v1.ListTa" - + "rgetVpnGatewaysRequest\032-.google.cloud.co" - + "mpute.v1.TargetVpnGatewayList\"Z\332A\016projec" - + "t,region\202\323\344\223\002C\022A/compute/v1/projects/{pr" - + "oject}/regions/{region}/targetVpnGateway" - + "s\022\277\002\n\tSetLabels\0229.google.cloud.compute.v" - + "1.SetLabelsTargetVpnGatewayRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\322\001\332A:proj" - + "ect,region,resource,region_set_labels_re" - + "quest_resource\212N\020RegionOperations\202\323\344\223\002|\"" - + "V/compute/v1/projects/{project}/regions/" - + "{region}/targetVpnGateways/{resource}/se" - + "tLabels:\"region_set_labels_request_resou" - + "rce\032\202\001\312A\026compute.googleapis.com\322AVhttps:" - + "//www.googleapis.com/auth/compute,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "\212\324\333\322\017\n2026-09-012\340\022\n\007UrlMaps\022\274\001\n\016Aggrega" - + "tedList\0225.google.cloud.compute.v1.Aggreg" - + "atedListUrlMapsRequest\032..google.cloud.co" - + "mpute.v1.UrlMapsAggregatedList\"C\332A\007proje" - + "ct\202\323\344\223\0023\0221/compute/v1/projects/{project}" - + "/aggregated/urlMaps\022\300\001\n\006Delete\022,.google." - + "cloud.compute.v1.DeleteUrlMapRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"d\332A\017pro" - + "ject,url_map\212N\020GlobalOperations\202\323\344\223\0029*7/" - + "compute/v1/projects/{project}/global/url" - + "Maps/{url_map}\022\244\001\n\003Get\022).google.cloud.co" - + "mpute.v1.GetUrlMapRequest\032\037.google.cloud" - + ".compute.v1.UrlMap\"Q\332A\017project,url_map\202\323" - + "\344\223\0029\0227/compute/v1/projects/{project}/glo" - + "bal/urlMaps/{url_map}\022\321\001\n\006Insert\022,.googl" - + "e.cloud.compute.v1.InsertUrlMapRequest\032\"" - + ".google.cloud.compute.v1.Operation\"u\332A\030p" - + "roject,url_map_resource\212N\020GlobalOperatio" - + "ns\202\323\344\223\002A\"-/compute/v1/projects/{project}" - + "/global/urlMaps:\020url_map_resource\022\246\002\n\017In" - + "validateCache\0225.google.cloud.compute.v1." - + "InvalidateCacheUrlMapRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\267\001\332A0project,ur" - + "l_map,cache_invalidation_rule_resource\212N" - + "\020GlobalOperations\202\323\344\223\002k\"G/compute/v1/pro" - + "jects/{project}/global/urlMaps/{url_map}" - + "/invalidateCache: cache_invalidation_rul" - + "e_resource\022\231\001\n\004List\022+.google.cloud.compu" - + "te.v1.ListUrlMapsRequest\032#.google.cloud." - + "compute.v1.UrlMapList\"?\332A\007project\202\323\344\223\002/\022" - + "-/compute/v1/projects/{project}/global/u" - + "rlMaps\022\342\001\n\005Patch\022+.google.cloud.compute." - + "v1.PatchUrlMapRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\207\001\332A project,url_map,u" - + "rl_map_resource\212N\020GlobalOperations\202\323\344\223\002K" - + "27/compute/v1/projects/{project}/global/" - + "urlMaps/{url_map}:\020url_map_resource\022\256\002\n\022" - + "TestIamPermissions\0228.google.cloud.comput" - + "e.v1.TestIamPermissionsUrlMapRequest\0320.g" - + "oogle.cloud.compute.v1.TestPermissionsRe" - + "sponse\"\253\001\332A2project,resource,test_permis" - + "sions_request_resource\202\323\344\223\002p\"K/compute/v" - + "1/projects/{project}/global/urlMaps/{res" - + "ource}/testIamPermissions:!test_permissi" - + "ons_request_resource\022\344\001\n\006Update\022,.google" - + ".cloud.compute.v1.UpdateUrlMapRequest\032\"." - + "google.cloud.compute.v1.Operation\"\207\001\332A p" - + "roject,url_map,url_map_resource\212N\020Global" - + "Operations\202\323\344\223\002K\0327/compute/v1/projects/{" - + "project}/global/urlMaps/{url_map}:\020url_m" - + "ap_resource\022\220\002\n\010Validate\022..google.cloud." - + "compute.v1.ValidateUrlMapRequest\0320.googl" - + "e.cloud.compute.v1.UrlMapsValidateRespon" - + "se\"\241\001\332A2project,url_map,url_maps_validat" - + "e_request_resource\202\323\344\223\002f\"@/compute/v1/pr" - + "ojects/{project}/global/urlMaps/{url_map" - + "}/validate:\"url_maps_validate_request_re" - + "source\032\202\001\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm\212\324\333\322\017\n2026-09-012\260\020\n\013VpnGateways\022\307\001\n\016" - + "AggregatedList\0229.google.cloud.compute.v1" - + ".AggregatedListVpnGatewaysRequest\0321.goog" - + "le.cloud.compute.v1.VpnGatewayAggregated" - + "List\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proj" - + "ects/{project}/aggregated/vpnGateways\022\342\001" - + "\n\006Delete\0220.google.cloud.compute.v1.Delet" - + "eVpnGatewayRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\201\001\332A\032project,region,vpn_g" - + "ateway\212N\020RegionOperations\202\323\344\223\002K*I/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/vpnGateways/{vpn_gateway}\022\311\001\n\003Get\022-.goo" - + "gle.cloud.compute.v1.GetVpnGatewayReques" - + "t\032#.google.cloud.compute.v1.VpnGateway\"n" - + "\332A\032project,region,vpn_gateway\202\323\344\223\002K\022I/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/vpnGateways/{vpn_gateway}\022\361\001\n\tGetSt" - + "atus\0223.google.cloud.compute.v1.GetStatus" - + "VpnGatewayRequest\0325.google.cloud.compute" - + ".v1.VpnGatewaysGetStatusResponse\"x\332A\032pro" - + "ject,region,vpn_gateway\202\323\344\223\002U\022S/compute/" - + "v1/projects/{project}/regions/{region}/v" - + "pnGateways/{vpn_gateway}/getStatus\022\363\001\n\006I" - + "nsert\0220.google.cloud.compute.v1.InsertVp" - + "nGatewayRequest\032\".google.cloud.compute.v" - + "1.Operation\"\222\001\332A#project,region,vpn_gate" - + "way_resource\212N\020RegionOperations\202\323\344\223\002S\";/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/vpnGateways:\024vpn_gateway_resource" - + "\022\266\001\n\004List\022/.google.cloud.compute.v1.List" - + "VpnGatewaysRequest\032\'.google.cloud.comput" - + "e.v1.VpnGatewayList\"T\332A\016project,region\202\323" - + "\344\223\002=\022;/compute/v1/projects/{project}/reg" - + "ions/{region}/vpnGateways\022\263\002\n\tSetLabels\022" - + "3.google.cloud.compute.v1.SetLabelsVpnGa" - + "tewayRequest\032\".google.cloud.compute.v1.O" - + "peration\"\314\001\332A:project,region,resource,re" - + "gion_set_labels_request_resource\212N\020Regio" - + "nOperations\202\323\344\223\002v\"P/compute/v1/projects/" - + "{project}/regions/{region}/vpnGateways/{" - + "resource}/setLabels:\"region_set_labels_r" - + "equest_resource\022\307\002\n\022TestIamPermissions\022<" - + ".google.cloud.compute.v1.TestIamPermissi" - + "onsVpnGatewayRequest\0320.google.cloud.comp" - + "ute.v1.TestPermissionsResponse\"\300\001\332A9proj" - + "ect,region,resource,test_permissions_req" - + "uest_resource\202\323\344\223\002~\"Y/compute/v1/project" - + "s/{project}/regions/{region}/vpnGateways" - + "/{resource}/testIamPermissions:!test_per" - + "missions_request_resource\032\202\001\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform\212\324\333\322\017\n2026-09-012\333" - + "\013\n\nVpnTunnels\022\304\001\n\016AggregatedList\0228.googl" - + "e.cloud.compute.v1.AggregatedListVpnTunn" - + "elsRequest\0320.google.cloud.compute.v1.Vpn" - + "TunnelAggregatedList\"F\332A\007project\202\323\344\223\0026\0224" - + "/compute/v1/projects/{project}/aggregate" - + "d/vpnTunnels\022\335\001\n\006Delete\022/.google.cloud.c" - + "ompute.v1.DeleteVpnTunnelRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"~\332A\031project" - + ",region,vpn_tunnel\212N\020RegionOperations\202\323\344" - + "\223\002I*G/compute/v1/projects/{project}/regi" - + "ons/{region}/vpnTunnels/{vpn_tunnel}\022\304\001\n" - + "\003Get\022,.google.cloud.compute.v1.GetVpnTun" - + "nelRequest\032\".google.cloud.compute.v1.Vpn" - + "Tunnel\"k\332A\031project,region,vpn_tunnel\202\323\344\223" - + "\002I\022G/compute/v1/projects/{project}/regio" - + "ns/{region}/vpnTunnels/{vpn_tunnel}\022\357\001\n\006" - + "Insert\022/.google.cloud.compute.v1.InsertV" + + "012\260\020\n\013VpnGateways\022\307\001\n\016AggregatedList\0229." + + "google.cloud.compute.v1.AggregatedListVp" + + "nGatewaysRequest\0321.google.cloud.compute." + + "v1.VpnGatewayAggregatedList\"G\332A\007project\202" + + "\323\344\223\0027\0225/compute/v1/projects/{project}/ag" + + "gregated/vpnGateways\022\342\001\n\006Delete\0220.google" + + ".cloud.compute.v1.DeleteVpnGatewayReques" + + "t\032\".google.cloud.compute.v1.Operation\"\201\001" + + "\332A\032project,region,vpn_gateway\212N\020RegionOp" + + "erations\202\323\344\223\002K*I/compute/v1/projects/{pr" + + "oject}/regions/{region}/vpnGateways/{vpn" + + "_gateway}\022\311\001\n\003Get\022-.google.cloud.compute" + + ".v1.GetVpnGatewayRequest\032#.google.cloud." + + "compute.v1.VpnGateway\"n\332A\032project,region" + + ",vpn_gateway\202\323\344\223\002K\022I/compute/v1/projects" + + "/{project}/regions/{region}/vpnGateways/" + + "{vpn_gateway}\022\361\001\n\tGetStatus\0223.google.clo" + + "ud.compute.v1.GetStatusVpnGatewayRequest" + + "\0325.google.cloud.compute.v1.VpnGatewaysGe" + + "tStatusResponse\"x\332A\032project,region,vpn_g" + + "ateway\202\323\344\223\002U\022S/compute/v1/projects/{proj" + + "ect}/regions/{region}/vpnGateways/{vpn_g" + + "ateway}/getStatus\022\363\001\n\006Insert\0220.google.cl" + + "oud.compute.v1.InsertVpnGatewayRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\222\001\332A#" + + "project,region,vpn_gateway_resource\212N\020Re" + + "gionOperations\202\323\344\223\002S\";/compute/v1/projec" + + "ts/{project}/regions/{region}/vpnGateway" + + "s:\024vpn_gateway_resource\022\266\001\n\004List\022/.googl" + + "e.cloud.compute.v1.ListVpnGatewaysReques" + + "t\032\'.google.cloud.compute.v1.VpnGatewayLi" + + "st\"T\332A\016project,region\202\323\344\223\002=\022;/compute/v1" + + "/projects/{project}/regions/{region}/vpn" + + "Gateways\022\263\002\n\tSetLabels\0223.google.cloud.co" + + "mpute.v1.SetLabelsVpnGatewayRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\314\001\332A:pro" + + "ject,region,resource,region_set_labels_r" + + "equest_resource\212N\020RegionOperations\202\323\344\223\002v" + + "\"P/compute/v1/projects/{project}/regions" + + "/{region}/vpnGateways/{resource}/setLabe" + + "ls:\"region_set_labels_request_resource\022\307" + + "\002\n\022TestIamPermissions\022<.google.cloud.com" + + "pute.v1.TestIamPermissionsVpnGatewayRequ" + + "est\0320.google.cloud.compute.v1.TestPermis" + + "sionsResponse\"\300\001\332A9project,region,resour" + + "ce,test_permissions_request_resource\202\323\344\223" + + "\002~\"Y/compute/v1/projects/{project}/regio" + + "ns/{region}/vpnGateways/{resource}/testI" + + "amPermissions:!test_permissions_request_" + + "resource\032\202\001\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform\212\324\333\322\017\n2026-09-012\333\013\n\nVpnTunnels\022\304\001\n" + + "\016AggregatedList\0228.google.cloud.compute.v" + + "1.AggregatedListVpnTunnelsRequest\0320.goog" + + "le.cloud.compute.v1.VpnTunnelAggregatedL" + + "ist\"F\332A\007project\202\323\344\223\0026\0224/compute/v1/proje" + + "cts/{project}/aggregated/vpnTunnels\022\335\001\n\006" + + "Delete\022/.google.cloud.compute.v1.DeleteV" + "pnTunnelRequest\032\".google.cloud.compute.v" - + "1.Operation\"\217\001\332A\"project,region,vpn_tunn" - + "el_resource\212N\020RegionOperations\202\323\344\223\002Q\":/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/vpnTunnels:\023vpn_tunnel_resource\022\263\001" - + "\n\004List\022..google.cloud.compute.v1.ListVpn" - + "TunnelsRequest\032&.google.cloud.compute.v1" - + ".VpnTunnelList\"S\332A\016project,region\202\323\344\223\002<\022" - + ":/compute/v1/projects/{project}/regions/" - + "{region}/vpnTunnels\022\261\002\n\tSetLabels\0222.goog" - + "le.cloud.compute.v1.SetLabelsVpnTunnelRe" + + "1.Operation\"~\332A\031project,region,vpn_tunne" + + "l\212N\020RegionOperations\202\323\344\223\002I*G/compute/v1/" + + "projects/{project}/regions/{region}/vpnT" + + "unnels/{vpn_tunnel}\022\304\001\n\003Get\022,.google.clo" + + "ud.compute.v1.GetVpnTunnelRequest\032\".goog" + + "le.cloud.compute.v1.VpnTunnel\"k\332A\031projec" + + "t,region,vpn_tunnel\202\323\344\223\002I\022G/compute/v1/p" + + "rojects/{project}/regions/{region}/vpnTu" + + "nnels/{vpn_tunnel}\022\357\001\n\006Insert\022/.google.c" + + "loud.compute.v1.InsertVpnTunnelRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\217\001\332A\"" + + "project,region,vpn_tunnel_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002Q\":/compute/v1/project" + + "s/{project}/regions/{region}/vpnTunnels:" + + "\023vpn_tunnel_resource\022\263\001\n\004List\022..google.c" + + "loud.compute.v1.ListVpnTunnelsRequest\032&." + + "google.cloud.compute.v1.VpnTunnelList\"S\332" + + "A\016project,region\202\323\344\223\002<\022:/compute/v1/proj" + + "ects/{project}/regions/{region}/vpnTunne" + + "ls\022\261\002\n\tSetLabels\0222.google.cloud.compute." + + "v1.SetLabelsVpnTunnelRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\313\001\332A:project,re" + + "gion,resource,region_set_labels_request_" + + "resource\212N\020RegionOperations\202\323\344\223\002u\"O/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/vpnTunnels/{resource}/setLabels:\"regi" + + "on_set_labels_request_resource\032\202\001\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform\212\324\333\322\017\n2026-09" + + "-012\267\013\n\nWireGroups\022\207\002\n\006Delete\022/.google.c" + + "loud.compute.v1.DeleteWireGroupRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\247\001\332A%" + + "project,cross_site_network,wire_group\212N\020" + + "GlobalOperations\202\323\344\223\002f*d/compute/v1/proj" + + "ects/{project}/global/crossSiteNetworks/" + + "{cross_site_network}/wireGroups/{wire_gr" + + "oup}\022\356\001\n\003Get\022,.google.cloud.compute.v1.G" + + "etWireGroupRequest\032\".google.cloud.comput" + + "e.v1.WireGroup\"\224\001\332A%project,cross_site_n" + + "etwork,wire_group\202\323\344\223\002f\022d/compute/v1/pro" + + "jects/{project}/global/crossSiteNetworks" + + "/{cross_site_network}/wireGroups/{wire_g" + + "roup}\022\230\002\n\006Insert\022/.google.cloud.compute." + + "v1.InsertWireGroupRequest\032\".google.cloud" + + ".compute.v1.Operation\"\270\001\332A.project,cross" + + "_site_network,wire_group_resource\212N\020Glob" + + "alOperations\202\323\344\223\002n\"W/compute/v1/projects" + + "/{project}/global/crossSiteNetworks/{cro" + + "ss_site_network}/wireGroups:\023wire_group_" + + "resource\022\334\001\n\004List\022..google.cloud.compute" + + ".v1.ListWireGroupsRequest\032&.google.cloud" + + ".compute.v1.WireGroupList\"|\332A\032project,cr" + + "oss_site_network\202\323\344\223\002Y\022W/compute/v1/proj" + + "ects/{project}/global/crossSiteNetworks/" + + "{cross_site_network}/wireGroups\022\256\002\n\005Patc" + + "h\022..google.cloud.compute.v1.PatchWireGro" + + "upRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\320\001\332A9project,cross_site_network,wi" + + "re_group,wire_group_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002{2d/compute/v1/projects/{pro" + + "ject}/global/crossSiteNetworks/{cross_si" + + "te_network}/wireGroups/{wire_group}:\023wir" + + "e_group_resource\032\202\001\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform\212\324\333\322\017\n2026-09-012\264\007\n\016ZoneOp" + + "erations\022\330\001\n\006Delete\0223.google.cloud.compu" + + "te.v1.DeleteZoneOperationRequest\0324.googl" + + "e.cloud.compute.v1.DeleteZoneOperationRe" + + "sponse\"c\332A\026project,zone,operation\202\323\344\223\002D*" + + "B/compute/v1/projects/{project}/zones/{z" + + "one}/operations/{operation}\022\303\001\n\003Get\0220.go" + + "ogle.cloud.compute.v1.GetZoneOperationRe" + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\313\001\332A:project,region,resource,region_se" - + "t_labels_request_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002u\"O/compute/v1/projects/{projec" - + "t}/regions/{region}/vpnTunnels/{resource" - + "}/setLabels:\"region_set_labels_request_r" - + "esource\032\202\001\312A\026compute.googleapis.com\322AVht" + + "n\"f\332A\026project,zone,operation\220N\001\202\323\344\223\002D\022B/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/operations/{operation}\022\261\001\n\004List\0222.goo" + + "gle.cloud.compute.v1.ListZoneOperationsR" + + "equest\032&.google.cloud.compute.v1.Operati" + + "onList\"M\332A\014project,zone\202\323\344\223\0028\0226/compute/" + + "v1/projects/{project}/zones/{zone}/opera" + + "tions\022\307\001\n\004Wait\0221.google.cloud.compute.v1" + + ".WaitZoneOperationRequest\032\".google.cloud" + + ".compute.v1.Operation\"h\332A\026project,zone,o" + + "peration\202\323\344\223\002I\"G/compute/v1/projects/{pr" + + "oject}/zones/{zone}/operations/{operatio" + + "n}/wait\032\202\001\312A\026compute.googleapis.com\322AVht" + "tps://www.googleapis.com/auth/compute,ht" + "tps://www.googleapis.com/auth/cloud-plat" - + "form\212\324\333\322\017\n2026-09-012\267\013\n\nWireGroups\022\207\002\n\006" - + "Delete\022/.google.cloud.compute.v1.DeleteW" - + "ireGroupRequest\032\".google.cloud.compute.v" - + "1.Operation\"\247\001\332A%project,cross_site_netw" - + "ork,wire_group\212N\020GlobalOperations\202\323\344\223\002f*" - + "d/compute/v1/projects/{project}/global/c" - + "rossSiteNetworks/{cross_site_network}/wi" - + "reGroups/{wire_group}\022\356\001\n\003Get\022,.google.c" - + "loud.compute.v1.GetWireGroupRequest\032\".go" - + "ogle.cloud.compute.v1.WireGroup\"\224\001\332A%pro" - + "ject,cross_site_network,wire_group\202\323\344\223\002f" - + "\022d/compute/v1/projects/{project}/global/" - + "crossSiteNetworks/{cross_site_network}/w" - + "ireGroups/{wire_group}\022\230\002\n\006Insert\022/.goog" - + "le.cloud.compute.v1.InsertWireGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\270" - + "\001\332A.project,cross_site_network,wire_grou" - + "p_resource\212N\020GlobalOperations\202\323\344\223\002n\"W/co" - + "mpute/v1/projects/{project}/global/cross" - + "SiteNetworks/{cross_site_network}/wireGr" - + "oups:\023wire_group_resource\022\334\001\n\004List\022..goo" - + "gle.cloud.compute.v1.ListWireGroupsReque" - + "st\032&.google.cloud.compute.v1.WireGroupLi" - + "st\"|\332A\032project,cross_site_network\202\323\344\223\002Y\022" - + "W/compute/v1/projects/{project}/global/c" - + "rossSiteNetworks/{cross_site_network}/wi" - + "reGroups\022\256\002\n\005Patch\022..google.cloud.comput" - + "e.v1.PatchWireGroupRequest\032\".google.clou" - + "d.compute.v1.Operation\"\320\001\332A9project,cros" - + "s_site_network,wire_group,wire_group_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002{2d/compute" - + "/v1/projects/{project}/global/crossSiteN" - + "etworks/{cross_site_network}/wireGroups/" - + "{wire_group}:\023wire_group_resource\032\202\001\312A\026c" - + "ompute.googleapis.com\322AVhttps://www.goog" - + "leapis.com/auth/compute,https://www.goog" - + "leapis.com/auth/cloud-platform\212\324\333\322\017\n2026" - + "-09-012\264\007\n\016ZoneOperations\022\330\001\n\006Delete\0223.g" - + "oogle.cloud.compute.v1.DeleteZoneOperati" - + "onRequest\0324.google.cloud.compute.v1.Dele" - + "teZoneOperationResponse\"c\332A\026project,zone" - + ",operation\202\323\344\223\002D*B/compute/v1/projects/{" - + "project}/zones/{zone}/operations/{operat" - + "ion}\022\303\001\n\003Get\0220.google.cloud.compute.v1.G" - + "etZoneOperationRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"f\332A\026project,zone,oper" - + "ation\220N\001\202\323\344\223\002D\022B/compute/v1/projects/{pr" - + "oject}/zones/{zone}/operations/{operatio" - + "n}\022\261\001\n\004List\0222.google.cloud.compute.v1.Li" - + "stZoneOperationsRequest\032&.google.cloud.c" - + "ompute.v1.OperationList\"M\332A\014project,zone" - + "\202\323\344\223\0028\0226/compute/v1/projects/{project}/z" - + "ones/{zone}/operations\022\307\001\n\004Wait\0221.google" - + ".cloud.compute.v1.WaitZoneOperationReque" - + "st\032\".google.cloud.compute.v1.Operation\"h" - + "\332A\026project,zone,operation\202\323\344\223\002I\"G/comput" - + "e/v1/projects/{project}/zones/{zone}/ope" - + "rations/{operation}/wait\032\202\001\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform\212\324\333\322\017\n2026-09-012\251\013" - + "\n\027ZoneVmExtensionPolicies\022\375\001\n\006Delete\022;.g" - + "oogle.cloud.compute.v1.DeleteZoneVmExten" + + "form\212\324\333\322\017\n2026-09-012\251\013\n\027ZoneVmExtension" + + "Policies\022\375\001\n\006Delete\022;.google.cloud.compu" + + "te.v1.DeleteZoneVmExtensionPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\221\001\332" + + "A project,zone,vm_extension_policy\212N\016Zon" + + "eOperations\202\323\344\223\002W*U/compute/v1/projects/" + + "{project}/zones/{zone}/vmExtensionPolici" + + "es/{vm_extension_policy}\022\356\001\n\003Get\0228.googl" + + "e.cloud.compute.v1.GetZoneVmExtensionPol" + + "icyRequest\032*.google.cloud.compute.v1.VmE" + + "xtensionPolicy\"\200\001\332A project,zone,vm_exte" + + "nsion_policy\202\323\344\223\002W\022U/compute/v1/projects" + + "/{project}/zones/{zone}/vmExtensionPolic" + + "ies/{vm_extension_policy}\022\216\002\n\006Insert\022;.g" + + "oogle.cloud.compute.v1.InsertZoneVmExten" + "sionPolicyRequest\032\".google.cloud.compute" - + ".v1.Operation\"\221\001\332A project,zone,vm_exten" - + "sion_policy\212N\016ZoneOperations\202\323\344\223\002W*U/com" - + "pute/v1/projects/{project}/zones/{zone}/" - + "vmExtensionPolicies/{vm_extension_policy" - + "}\022\356\001\n\003Get\0228.google.cloud.compute.v1.GetZ" - + "oneVmExtensionPolicyRequest\032*.google.clo" - + "ud.compute.v1.VmExtensionPolicy\"\200\001\332A pro" - + "ject,zone,vm_extension_policy\202\323\344\223\002W\022U/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/vmExtensionPolicies/{vm_extension_polic" - + "y}\022\216\002\n\006Insert\022;.google.cloud.compute.v1." - + "InsertZoneVmExtensionPolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\242\001\332A)proj" - + "ect,zone,vm_extension_policy_resource\212N\016" - + "ZoneOperations\202\323\344\223\002_\"?/compute/v1/projec" - + "ts/{project}/zones/{zone}/vmExtensionPol" - + "icies:\034vm_extension_policy_resource\022\313\001\n\004" - + "List\022;.google.cloud.compute.v1.ListZoneV" - + "mExtensionPoliciesRequest\032..google.cloud" - + ".compute.v1.VmExtensionPolicyList\"V\332A\014pr" - + "oject,zone\202\323\344\223\002A\022?/compute/v1/projects/{" - + "project}/zones/{zone}/vmExtensionPolicie" - + "s\022\270\002\n\006Update\022;.google.cloud.compute.v1.U" - + "pdateZoneVmExtensionPolicyRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\314\001\332A=proje" - + "ct,zone,vm_extension_policy,vm_extension" - + "_policy_resource\212N\016ZoneOperations\202\323\344\223\002u2" - + "U/compute/v1/projects/{project}/zones/{z" - + "one}/vmExtensionPolicies/{vm_extension_p" - + "olicy}:\034vm_extension_policy_resource\032\202\001\312" - + "A\026compute.googleapis.com\322AVhttps://www.g" - + "oogleapis.com/auth/compute,https://www.g" - + "oogleapis.com/auth/cloud-platform\212\324\333\322\017\n2" - + "026-09-012\341\003\n\005Zones\022\221\001\n\003Get\022\'.google.clo" - + "ud.compute.v1.GetZoneRequest\032\035.google.cl" - + "oud.compute.v1.Zone\"B\332A\014project,zone\202\323\344\223" - + "\002-\022+/compute/v1/projects/{project}/zones" - + "/{zone}\022\214\001\n\004List\022).google.cloud.compute." - + "v1.ListZonesRequest\032!.google.cloud.compu" - + "te.v1.ZoneList\"6\332A\007project\202\323\344\223\002&\022$/compu" - + "te/v1/projects/{project}/zones\032\264\001\312A\026comp" - + "ute.googleapis.com\322A\207\001https://www.google" - + "apis.com/auth/compute.readonly,https://w" - + "ww.googleapis.com/auth/compute,https://w" - + "ww.googleapis.com/auth/cloud-platform\212\324\333" - + "\322\017\n2026-09-01B\247\001\n\033com.google.cloud.compu" - + "te.v1P\001Z5cloud.google.com/go/compute/api" - + "v1/computepb;computepb\252\002\027Google.Cloud.Co" - + "mpute.V1\312\002\027Google\\Cloud\\Compute\\V1\352\002\032Goo" - + "gle::Cloud::Compute::V1b\006proto3" + + ".v1.Operation\"\242\001\332A)project,zone,vm_exten" + + "sion_policy_resource\212N\016ZoneOperations\202\323\344" + + "\223\002_\"?/compute/v1/projects/{project}/zone" + + "s/{zone}/vmExtensionPolicies:\034vm_extensi" + + "on_policy_resource\022\313\001\n\004List\022;.google.clo" + + "ud.compute.v1.ListZoneVmExtensionPolicie" + + "sRequest\032..google.cloud.compute.v1.VmExt" + + "ensionPolicyList\"V\332A\014project,zone\202\323\344\223\002A\022" + + "?/compute/v1/projects/{project}/zones/{z" + + "one}/vmExtensionPolicies\022\270\002\n\006Update\022;.go" + + "ogle.cloud.compute.v1.UpdateZoneVmExtens" + + "ionPolicyRequest\032\".google.cloud.compute." + + "v1.Operation\"\314\001\332A=project,zone,vm_extens" + + "ion_policy,vm_extension_policy_resource\212" + + "N\016ZoneOperations\202\323\344\223\002u2U/compute/v1/proj" + + "ects/{project}/zones/{zone}/vmExtensionP" + + "olicies/{vm_extension_policy}:\034vm_extens" + + "ion_policy_resource\032\202\001\312A\026compute.googlea" + + "pis.com\322AVhttps://www.googleapis.com/aut" + + "h/compute,https://www.googleapis.com/aut" + + "h/cloud-platform\212\324\333\322\017\n2026-09-012\341\003\n\005Zon" + + "es\022\221\001\n\003Get\022\'.google.cloud.compute.v1.Get" + + "ZoneRequest\032\035.google.cloud.compute.v1.Zo" + + "ne\"B\332A\014project,zone\202\323\344\223\002-\022+/compute/v1/p" + + "rojects/{project}/zones/{zone}\022\214\001\n\004List\022" + + ").google.cloud.compute.v1.ListZonesReque" + + "st\032!.google.cloud.compute.v1.ZoneList\"6\332" + + "A\007project\202\323\344\223\002&\022$/compute/v1/projects/{p" + + "roject}/zones\032\264\001\312A\026compute.googleapis.co" + + "m\322A\207\001https://www.googleapis.com/auth/com" + + "pute.readonly,https://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform\212\324\333\322\017\n2026-09-01B\247\001\n" + + "\033com.google.cloud.compute.v1P\001Z5cloud.go" + + "ogle.com/go/compute/apiv1/computepb;comp" + + "utepb\252\002\027Google.Cloud.Compute.V1\312\002\027Google" + + "\\Cloud\\Compute\\V1\352\002\032Google::Cloud::Compu" + + "te::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicy.java index 3bc932d5a206..73046c71a4da 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicy.java @@ -123,15 +123,8 @@ public int getInstanceSelectionsCount() { * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -161,15 +154,8 @@ public boolean containsInstanceSelections(java.lang.String key) { * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -189,15 +175,8 @@ public boolean containsInstanceSelections(java.lang.String key) { * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -226,15 +205,8 @@ public boolean containsInstanceSelections(java.lang.String key) { * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -689,15 +661,8 @@ public int getInstanceSelectionsCount() { * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -728,15 +693,8 @@ public boolean containsInstanceSelections(java.lang.String key) { * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -757,15 +715,8 @@ public boolean containsInstanceSelections(java.lang.String key) { * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -794,15 +745,8 @@ public boolean containsInstanceSelections(java.lang.String key) { * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -837,15 +781,8 @@ public Builder clearInstanceSelections() { * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -876,15 +813,8 @@ public Builder removeInstanceSelections(java.lang.String key) { * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -911,15 +841,8 @@ public Builder putInstanceSelections( * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
@@ -950,15 +873,8 @@ public Builder putAllInstanceSelections( * * *
-     * Specification of alternative, flexible instance subsets.
-     * One of them will be selected to create the instances
-     * based on various criteria, like:
-     * - ranks,
-     * - location policy,
-     * - current capacity,
-     * - available reservations (you can specify affinity in
-     * InstanceProperties),
-     * - SWAN/GOOSE limitations.
+     * Specifies named instance selections that define properties for instances
+     * created in bulk.
      * Key is an arbitrary, unique RFC1035 string that identifies the instance
      * selection.
      * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicyOrBuilder.java index cb787034d7c1..493d9f465646 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceFlexibilityPolicyOrBuilder.java @@ -30,15 +30,8 @@ public interface InstanceFlexibilityPolicyOrBuilder * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -53,15 +46,8 @@ public interface InstanceFlexibilityPolicyOrBuilder * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -82,15 +68,8 @@ public interface InstanceFlexibilityPolicyOrBuilder * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -107,15 +86,8 @@ public interface InstanceFlexibilityPolicyOrBuilder * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
@@ -135,15 +107,8 @@ public interface InstanceFlexibilityPolicyOrBuilder * * *
-   * Specification of alternative, flexible instance subsets.
-   * One of them will be selected to create the instances
-   * based on various criteria, like:
-   * - ranks,
-   * - location policy,
-   * - current capacity,
-   * - available reservations (you can specify affinity in
-   * InstanceProperties),
-   * - SWAN/GOOSE limitations.
+   * Specifies named instance selections that define properties for instances
+   * created in bulk.
    * Key is an arbitrary, unique RFC1035 string that identifies the instance
    * selection.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Scheduling.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Scheduling.java index df8a8f72444d..5c5b8c7c328a 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Scheduling.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Scheduling.java @@ -1588,7 +1588,10 @@ public com.google.protobuf.ByteString getProvisioningModelBytes() { * * *
-   * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+   * Defines whether GCE ACPI G2 Soft
+   * Off signal should be skipped during shutdown operation of VM.
+   *
+   * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
    * Off and ACPI G3 Mechanical
    * Off for Standard VMs and 30 seconds for Spot VMs.
    * 
@@ -1606,7 +1609,10 @@ public boolean hasSkipGuestOsShutdown() { * * *
-   * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+   * Defines whether GCE ACPI G2 Soft
+   * Off signal should be skipped during shutdown operation of VM.
+   *
+   * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
    * Off and ACPI G3 Mechanical
    * Off for Standard VMs and 30 seconds for Spot VMs.
    * 
@@ -5098,7 +5104,10 @@ public Builder setProvisioningModelBytes(com.google.protobuf.ByteString value) { * * *
-     * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+     * Defines whether GCE ACPI G2 Soft
+     * Off signal should be skipped during shutdown operation of VM.
+     *
+     * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
      * Off and ACPI G3 Mechanical
      * Off for Standard VMs and 30 seconds for Spot VMs.
      * 
@@ -5116,7 +5125,10 @@ public boolean hasSkipGuestOsShutdown() { * * *
-     * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+     * Defines whether GCE ACPI G2 Soft
+     * Off signal should be skipped during shutdown operation of VM.
+     *
+     * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
      * Off and ACPI G3 Mechanical
      * Off for Standard VMs and 30 seconds for Spot VMs.
      * 
@@ -5134,7 +5146,10 @@ public boolean getSkipGuestOsShutdown() { * * *
-     * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+     * Defines whether GCE ACPI G2 Soft
+     * Off signal should be skipped during shutdown operation of VM.
+     *
+     * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
      * Off and ACPI G3 Mechanical
      * Off for Standard VMs and 30 seconds for Spot VMs.
      * 
@@ -5156,7 +5171,10 @@ public Builder setSkipGuestOsShutdown(boolean value) { * * *
-     * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+     * Defines whether GCE ACPI G2 Soft
+     * Off signal should be skipped during shutdown operation of VM.
+     *
+     * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
      * Off and ACPI G3 Mechanical
      * Off for Standard VMs and 30 seconds for Spot VMs.
      * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SchedulingOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SchedulingOrBuilder.java index 50dc36481733..044f85ec3cb0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SchedulingOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SchedulingOrBuilder.java @@ -656,7 +656,10 @@ public interface SchedulingOrBuilder * * *
-   * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+   * Defines whether GCE ACPI G2 Soft
+   * Off signal should be skipped during shutdown operation of VM.
+   *
+   * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
    * Off and ACPI G3 Mechanical
    * Off for Standard VMs and 30 seconds for Spot VMs.
    * 
@@ -671,7 +674,10 @@ public interface SchedulingOrBuilder * * *
-   * Default is false and there will be 120 seconds between GCE ACPI G2 Soft
+   * Defines whether GCE ACPI G2 Soft
+   * Off signal should be skipped during shutdown operation of VM.
+   *
+   * Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft
    * Off and ACPI G3 Mechanical
    * Off for Standard VMs and 30 seconds for Spot VMs.
    * 
diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuite.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuite.java index e1186a0a5ce2..e54e0fc0576f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuite.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuite.java @@ -72,6 +72,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1_; /** + * + * + *
+   * Cipher algorithms for IKE phase 1.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; * * @return Whether the phase1 field is set. @@ -82,6 +88,12 @@ public boolean hasPhase1() { } /** + * + * + *
+   * Cipher algorithms for IKE phase 1.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; * * @return The phase1. @@ -93,7 +105,15 @@ public com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms getPhase1() { : phase1_; } - /** optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ + /** + * + * + *
+   * Cipher algorithms for IKE phase 1.
+   * 
+ * + * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; + */ @java.lang.Override public com.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsOrBuilder getPhase1OrBuilder() { return phase1_ == null @@ -105,6 +125,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsOrBuilder getPhase1O private com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2_; /** + * + * + *
+   * Cipher algorithms for IKE phase 2.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; * * @return Whether the phase2 field is set. @@ -115,6 +141,12 @@ public boolean hasPhase2() { } /** + * + * + *
+   * Cipher algorithms for IKE phase 2.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; * * @return The phase2. @@ -126,7 +158,15 @@ public com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms getPhase2() { : phase2_; } - /** optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ + /** + * + * + *
+   * Cipher algorithms for IKE phase 2.
+   * 
+ * + * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; + */ @java.lang.Override public com.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsOrBuilder getPhase2OrBuilder() { return phase2_ == null @@ -503,6 +543,12 @@ public Builder mergeFrom( phase1Builder_; /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; * * @return Whether the phase1 field is set. @@ -512,6 +558,12 @@ public boolean hasPhase1() { } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; * * @return The phase1. @@ -527,6 +579,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms getPhase1() { } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ public Builder setPhase1(com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms value) { @@ -544,6 +602,12 @@ public Builder setPhase1(com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms v } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ public Builder setPhase1( @@ -559,6 +623,12 @@ public Builder setPhase1( } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ public Builder mergePhase1(com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms value) { @@ -582,6 +652,12 @@ public Builder mergePhase1(com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ public Builder clearPhase1() { @@ -596,6 +672,12 @@ public Builder clearPhase1() { } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ public com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms.Builder getPhase1Builder() { @@ -605,6 +687,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms.Builder getPhase1Bu } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ public com.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsOrBuilder getPhase1OrBuilder() { @@ -618,6 +706,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsOrBuilder getPhase1O } /** + * + * + *
+     * Cipher algorithms for IKE phase 1.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ private com.google.protobuf.SingleFieldBuilder< @@ -645,6 +739,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsOrBuilder getPhase1O phase2Builder_; /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; * * @return Whether the phase2 field is set. @@ -654,6 +754,12 @@ public boolean hasPhase2() { } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; * * @return The phase2. @@ -669,6 +775,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms getPhase2() { } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ public Builder setPhase2(com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms value) { @@ -686,6 +798,12 @@ public Builder setPhase2(com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms v } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ public Builder setPhase2( @@ -701,6 +819,12 @@ public Builder setPhase2( } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ public Builder mergePhase2(com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms value) { @@ -724,6 +848,12 @@ public Builder mergePhase2(com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ public Builder clearPhase2() { @@ -738,6 +868,12 @@ public Builder clearPhase2() { } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ public com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms.Builder getPhase2Builder() { @@ -747,6 +883,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms.Builder getPhase2Bu } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ public com.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsOrBuilder getPhase2OrBuilder() { @@ -760,6 +902,12 @@ public com.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsOrBuilder getPhase2O } /** + * + * + *
+     * Cipher algorithms for IKE phase 2.
+     * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuiteOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuiteOrBuilder.java index f9777858cd90..5eeb953e3fc4 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuiteOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelCipherSuiteOrBuilder.java @@ -27,6 +27,12 @@ public interface VpnTunnelCipherSuiteOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
+   * Cipher algorithms for IKE phase 1.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; * * @return Whether the phase1 field is set. @@ -34,16 +40,36 @@ public interface VpnTunnelCipherSuiteOrBuilder boolean hasPhase1(); /** + * + * + *
+   * Cipher algorithms for IKE phase 1.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; * * @return The phase1. */ com.google.cloud.compute.v1.VpnTunnelPhase1Algorithms getPhase1(); - /** optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; */ + /** + * + * + *
+   * Cipher algorithms for IKE phase 1.
+   * 
+ * + * optional .google.cloud.compute.v1.VpnTunnelPhase1Algorithms phase1 = 84289046; + */ com.google.cloud.compute.v1.VpnTunnelPhase1AlgorithmsOrBuilder getPhase1OrBuilder(); /** + * + * + *
+   * Cipher algorithms for IKE phase 2.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; * * @return Whether the phase2 field is set. @@ -51,12 +77,26 @@ public interface VpnTunnelCipherSuiteOrBuilder boolean hasPhase2(); /** + * + * + *
+   * Cipher algorithms for IKE phase 2.
+   * 
+ * * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; * * @return The phase2. */ com.google.cloud.compute.v1.VpnTunnelPhase2Algorithms getPhase2(); - /** optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; */ + /** + * + * + *
+   * Cipher algorithms for IKE phase 2.
+   * 
+ * + * optional .google.cloud.compute.v1.VpnTunnelPhase2Algorithms phase2 = 84289047; + */ com.google.cloud.compute.v1.VpnTunnelPhase2AlgorithmsOrBuilder getPhase2OrBuilder(); } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1Algorithms.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1Algorithms.java index 966965051bfb..1b5bbfff3642 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1Algorithms.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1Algorithms.java @@ -79,6 +79,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @return A list containing the dh. @@ -88,6 +94,12 @@ public com.google.protobuf.ProtocolStringList getDhList() { } /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @return The count of dh. @@ -97,6 +109,12 @@ public int getDhCount() { } /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @param index The index of the element to return. @@ -107,6 +125,12 @@ public java.lang.String getDh(int index) { } /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @param index The index of the value to return. @@ -123,6 +147,12 @@ public com.google.protobuf.ByteString getDhBytes(int index) { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @return A list containing the encryption. @@ -132,6 +162,12 @@ public com.google.protobuf.ProtocolStringList getEncryptionList() { } /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @return The count of encryption. @@ -141,6 +177,12 @@ public int getEncryptionCount() { } /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the element to return. @@ -151,6 +193,12 @@ public java.lang.String getEncryption(int index) { } /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the value to return. @@ -167,6 +215,12 @@ public com.google.protobuf.ByteString getEncryptionBytes(int index) { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @return A list containing the integrity. @@ -176,6 +230,12 @@ public com.google.protobuf.ProtocolStringList getIntegrityList() { } /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @return The count of integrity. @@ -185,6 +245,12 @@ public int getIntegrityCount() { } /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the element to return. @@ -195,6 +261,12 @@ public java.lang.String getIntegrity(int index) { } /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the value to return. @@ -211,6 +283,12 @@ public com.google.protobuf.ByteString getIntegrityBytes(int index) { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @return A list containing the prf. @@ -220,6 +298,12 @@ public com.google.protobuf.ProtocolStringList getPrfList() { } /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @return The count of prf. @@ -229,6 +313,12 @@ public int getPrfCount() { } /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @param index The index of the element to return. @@ -239,6 +329,12 @@ public java.lang.String getPrf(int index) { } /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @param index The index of the value to return. @@ -697,6 +793,12 @@ private void ensureDhIsMutable() { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @return A list containing the dh. @@ -707,6 +809,12 @@ public com.google.protobuf.ProtocolStringList getDhList() { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @return The count of dh. @@ -716,6 +824,12 @@ public int getDhCount() { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @param index The index of the element to return. @@ -726,6 +840,12 @@ public java.lang.String getDh(int index) { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @param index The index of the value to return. @@ -736,6 +856,12 @@ public com.google.protobuf.ByteString getDhBytes(int index) { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @param index The index to set the value at. @@ -754,6 +880,12 @@ public Builder setDh(int index, java.lang.String value) { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @param value The dh to add. @@ -771,6 +903,12 @@ public Builder addDh(java.lang.String value) { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @param values The dh to add. @@ -785,6 +923,12 @@ public Builder addAllDh(java.lang.Iterable values) { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @return This builder for chaining. @@ -798,6 +942,12 @@ public Builder clearDh() { } /** + * + * + *
+     * Diffie-Hellman groups for IKE phase 1.
+     * 
+ * * repeated string dh = 3204; * * @param value The bytes of the dh to add. @@ -826,6 +976,12 @@ private void ensureEncryptionIsMutable() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @return A list containing the encryption. @@ -836,6 +992,12 @@ public com.google.protobuf.ProtocolStringList getEncryptionList() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @return The count of encryption. @@ -845,6 +1007,12 @@ public int getEncryptionCount() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @param index The index of the element to return. @@ -855,6 +1023,12 @@ public java.lang.String getEncryption(int index) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @param index The index of the value to return. @@ -865,6 +1039,12 @@ public com.google.protobuf.ByteString getEncryptionBytes(int index) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @param index The index to set the value at. @@ -883,6 +1063,12 @@ public Builder setEncryption(int index, java.lang.String value) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @param value The encryption to add. @@ -900,6 +1086,12 @@ public Builder addEncryption(java.lang.String value) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @param values The encryption to add. @@ -914,6 +1106,12 @@ public Builder addAllEncryption(java.lang.Iterable values) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @return This builder for chaining. @@ -927,6 +1125,12 @@ public Builder clearEncryption() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 1.
+     * 
+ * * repeated string encryption = 97980291; * * @param value The bytes of the encryption to add. @@ -955,6 +1159,12 @@ private void ensureIntegrityIsMutable() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @return A list containing the integrity. @@ -965,6 +1175,12 @@ public com.google.protobuf.ProtocolStringList getIntegrityList() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @return The count of integrity. @@ -974,6 +1190,12 @@ public int getIntegrityCount() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @param index The index of the element to return. @@ -984,6 +1206,12 @@ public java.lang.String getIntegrity(int index) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @param index The index of the value to return. @@ -994,6 +1222,12 @@ public com.google.protobuf.ByteString getIntegrityBytes(int index) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @param index The index to set the value at. @@ -1012,6 +1246,12 @@ public Builder setIntegrity(int index, java.lang.String value) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @param value The integrity to add. @@ -1029,6 +1269,12 @@ public Builder addIntegrity(java.lang.String value) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @param values The integrity to add. @@ -1043,6 +1289,12 @@ public Builder addAllIntegrity(java.lang.Iterable values) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @return This builder for chaining. @@ -1056,6 +1308,12 @@ public Builder clearIntegrity() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 1.
+     * 
+ * * repeated string integrity = 492830541; * * @param value The bytes of the integrity to add. @@ -1084,6 +1342,12 @@ private void ensurePrfIsMutable() { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @return A list containing the prf. @@ -1094,6 +1358,12 @@ public com.google.protobuf.ProtocolStringList getPrfList() { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @return The count of prf. @@ -1103,6 +1373,12 @@ public int getPrfCount() { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @param index The index of the element to return. @@ -1113,6 +1389,12 @@ public java.lang.String getPrf(int index) { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @param index The index of the value to return. @@ -1123,6 +1405,12 @@ public com.google.protobuf.ByteString getPrfBytes(int index) { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @param index The index to set the value at. @@ -1141,6 +1429,12 @@ public Builder setPrf(int index, java.lang.String value) { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @param value The prf to add. @@ -1158,6 +1452,12 @@ public Builder addPrf(java.lang.String value) { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @param values The prf to add. @@ -1172,6 +1472,12 @@ public Builder addAllPrf(java.lang.Iterable values) { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @return This builder for chaining. @@ -1185,6 +1491,12 @@ public Builder clearPrf() { } /** + * + * + *
+     * Pseudo-random functions (PRF) for IKE phase 1.
+     * 
+ * * repeated string prf = 111268; * * @param value The bytes of the prf to add. diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1AlgorithmsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1AlgorithmsOrBuilder.java index 561560a54c28..4922a4fdfc35 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1AlgorithmsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase1AlgorithmsOrBuilder.java @@ -27,6 +27,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @return A list containing the dh. @@ -34,6 +40,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.util.List getDhList(); /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @return The count of dh. @@ -41,6 +53,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder int getDhCount(); /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @param index The index of the element to return. @@ -49,6 +67,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.lang.String getDh(int index); /** + * + * + *
+   * Diffie-Hellman groups for IKE phase 1.
+   * 
+ * * repeated string dh = 3204; * * @param index The index of the value to return. @@ -57,6 +81,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder com.google.protobuf.ByteString getDhBytes(int index); /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @return A list containing the encryption. @@ -64,6 +94,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.util.List getEncryptionList(); /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @return The count of encryption. @@ -71,6 +107,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder int getEncryptionCount(); /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the element to return. @@ -79,6 +121,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.lang.String getEncryption(int index); /** + * + * + *
+   * Encryption algorithms for IKE phase 1.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the value to return. @@ -87,6 +135,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder com.google.protobuf.ByteString getEncryptionBytes(int index); /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @return A list containing the integrity. @@ -94,6 +148,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.util.List getIntegrityList(); /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @return The count of integrity. @@ -101,6 +161,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder int getIntegrityCount(); /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the element to return. @@ -109,6 +175,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.lang.String getIntegrity(int index); /** + * + * + *
+   * Integrity algorithms for IKE phase 1.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the value to return. @@ -117,6 +189,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder com.google.protobuf.ByteString getIntegrityBytes(int index); /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @return A list containing the prf. @@ -124,6 +202,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.util.List getPrfList(); /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @return The count of prf. @@ -131,6 +215,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder int getPrfCount(); /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @param index The index of the element to return. @@ -139,6 +229,12 @@ public interface VpnTunnelPhase1AlgorithmsOrBuilder java.lang.String getPrf(int index); /** + * + * + *
+   * Pseudo-random functions (PRF) for IKE phase 1.
+   * 
+ * * repeated string prf = 111268; * * @param index The index of the value to return. diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2Algorithms.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2Algorithms.java index b04e3e713805..6af59b28a77e 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2Algorithms.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2Algorithms.java @@ -78,6 +78,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @return A list containing the encryption. @@ -87,6 +93,12 @@ public com.google.protobuf.ProtocolStringList getEncryptionList() { } /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @return The count of encryption. @@ -96,6 +108,12 @@ public int getEncryptionCount() { } /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the element to return. @@ -106,6 +124,12 @@ public java.lang.String getEncryption(int index) { } /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the value to return. @@ -122,6 +146,12 @@ public com.google.protobuf.ByteString getEncryptionBytes(int index) { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @return A list containing the integrity. @@ -131,6 +161,12 @@ public com.google.protobuf.ProtocolStringList getIntegrityList() { } /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @return The count of integrity. @@ -140,6 +176,12 @@ public int getIntegrityCount() { } /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the element to return. @@ -150,6 +192,12 @@ public java.lang.String getIntegrity(int index) { } /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the value to return. @@ -166,6 +214,12 @@ public com.google.protobuf.ByteString getIntegrityBytes(int index) { com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @return A list containing the pfs. @@ -175,6 +229,12 @@ public com.google.protobuf.ProtocolStringList getPfsList() { } /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @return The count of pfs. @@ -184,6 +244,12 @@ public int getPfsCount() { } /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @param index The index of the element to return. @@ -194,6 +260,12 @@ public java.lang.String getPfs(int index) { } /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @param index The index of the value to return. @@ -614,6 +686,12 @@ private void ensureEncryptionIsMutable() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @return A list containing the encryption. @@ -624,6 +702,12 @@ public com.google.protobuf.ProtocolStringList getEncryptionList() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @return The count of encryption. @@ -633,6 +717,12 @@ public int getEncryptionCount() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @param index The index of the element to return. @@ -643,6 +733,12 @@ public java.lang.String getEncryption(int index) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @param index The index of the value to return. @@ -653,6 +749,12 @@ public com.google.protobuf.ByteString getEncryptionBytes(int index) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @param index The index to set the value at. @@ -671,6 +773,12 @@ public Builder setEncryption(int index, java.lang.String value) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @param value The encryption to add. @@ -688,6 +796,12 @@ public Builder addEncryption(java.lang.String value) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @param values The encryption to add. @@ -702,6 +816,12 @@ public Builder addAllEncryption(java.lang.Iterable values) { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @return This builder for chaining. @@ -715,6 +835,12 @@ public Builder clearEncryption() { } /** + * + * + *
+     * Encryption algorithms for IKE phase 2.
+     * 
+ * * repeated string encryption = 97980291; * * @param value The bytes of the encryption to add. @@ -743,6 +869,12 @@ private void ensureIntegrityIsMutable() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @return A list containing the integrity. @@ -753,6 +885,12 @@ public com.google.protobuf.ProtocolStringList getIntegrityList() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @return The count of integrity. @@ -762,6 +900,12 @@ public int getIntegrityCount() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @param index The index of the element to return. @@ -772,6 +916,12 @@ public java.lang.String getIntegrity(int index) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @param index The index of the value to return. @@ -782,6 +932,12 @@ public com.google.protobuf.ByteString getIntegrityBytes(int index) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @param index The index to set the value at. @@ -800,6 +956,12 @@ public Builder setIntegrity(int index, java.lang.String value) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @param value The integrity to add. @@ -817,6 +979,12 @@ public Builder addIntegrity(java.lang.String value) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @param values The integrity to add. @@ -831,6 +999,12 @@ public Builder addAllIntegrity(java.lang.Iterable values) { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @return This builder for chaining. @@ -844,6 +1018,12 @@ public Builder clearIntegrity() { } /** + * + * + *
+     * Integrity algorithms for IKE phase 2.
+     * 
+ * * repeated string integrity = 492830541; * * @param value The bytes of the integrity to add. @@ -872,6 +1052,12 @@ private void ensurePfsIsMutable() { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @return A list containing the pfs. @@ -882,6 +1068,12 @@ public com.google.protobuf.ProtocolStringList getPfsList() { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @return The count of pfs. @@ -891,6 +1083,12 @@ public int getPfsCount() { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @param index The index of the element to return. @@ -901,6 +1099,12 @@ public java.lang.String getPfs(int index) { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @param index The index of the value to return. @@ -911,6 +1115,12 @@ public com.google.protobuf.ByteString getPfsBytes(int index) { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @param index The index to set the value at. @@ -929,6 +1139,12 @@ public Builder setPfs(int index, java.lang.String value) { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @param value The pfs to add. @@ -946,6 +1162,12 @@ public Builder addPfs(java.lang.String value) { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @param values The pfs to add. @@ -960,6 +1182,12 @@ public Builder addAllPfs(java.lang.Iterable values) { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @return This builder for chaining. @@ -973,6 +1201,12 @@ public Builder clearPfs() { } /** + * + * + *
+     * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+     * 
+ * * repeated string pfs = 110909; * * @param value The bytes of the pfs to add. diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2AlgorithmsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2AlgorithmsOrBuilder.java index 5d8a9a77f3c6..86b684f988e6 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2AlgorithmsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnTunnelPhase2AlgorithmsOrBuilder.java @@ -27,6 +27,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @return A list containing the encryption. @@ -34,6 +40,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder java.util.List getEncryptionList(); /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @return The count of encryption. @@ -41,6 +53,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder int getEncryptionCount(); /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the element to return. @@ -49,6 +67,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder java.lang.String getEncryption(int index); /** + * + * + *
+   * Encryption algorithms for IKE phase 2.
+   * 
+ * * repeated string encryption = 97980291; * * @param index The index of the value to return. @@ -57,6 +81,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder com.google.protobuf.ByteString getEncryptionBytes(int index); /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @return A list containing the integrity. @@ -64,6 +94,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder java.util.List getIntegrityList(); /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @return The count of integrity. @@ -71,6 +107,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder int getIntegrityCount(); /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the element to return. @@ -79,6 +121,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder java.lang.String getIntegrity(int index); /** + * + * + *
+   * Integrity algorithms for IKE phase 2.
+   * 
+ * * repeated string integrity = 492830541; * * @param index The index of the value to return. @@ -87,6 +135,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder com.google.protobuf.ByteString getIntegrityBytes(int index); /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @return A list containing the pfs. @@ -94,6 +148,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder java.util.List getPfsList(); /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @return The count of pfs. @@ -101,6 +161,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder int getPfsCount(); /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @param index The index of the element to return. @@ -109,6 +175,12 @@ public interface VpnTunnelPhase2AlgorithmsOrBuilder java.lang.String getPfs(int index); /** + * + * + *
+   * Perfect Forward Secrecy (PFS) groups for IKE phase 2.
+   * 
+ * * repeated string pfs = 110909; * * @param index The index of the value to return. diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto index 17b3b64d47ea..22efed6df431 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto +++ b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20261007 +// Source file revision: 20261016 // API name: compute // API version: v1 @@ -11209,6 +11209,9 @@ message BackendServiceHAPolicy { // Advertisement(RA) packet (IPv6). Google Cloud immediately but // temporarily associates the forwarding rule IP address with that VM, and // both new and in-flight packets are quickly delivered to that VM. + // - HA_CONTROLLER: The Backend Service is managed by a High Availability + // Controller. Failover and leader election are exclusively managed by the + // HA Controller service. // // // @@ -11294,6 +11297,9 @@ message BackendServiceHAPolicy { // Advertisement(RA) packet (IPv6). Google Cloud immediately but // temporarily associates the forwarding rule IP address with that VM, and // both new and in-flight packets are quickly delivered to that VM. + // - HA_CONTROLLER: The Backend Service is managed by a High Availability + // Controller. Failover and leader election are exclusively managed by the + // HA Controller service. // // // @@ -12409,7 +12415,12 @@ message BulkInsertInstanceResource { // The maximum number of instances to create. optional int64 count = 94851343; - // A flexible specification of machine type of instances to create. + // A specification of alternative machine types to use when creating + // instances. A single bulkInsert request can create instances with multiple + // different machine types based on capacity and quota availability. This + // field is supported only for regional bulkInsert requests. For more + // information, see About + // instance flexibility for VMs created in bulk. optional InstanceFlexibilityPolicy instance_flexibility_policy = 26937090; // The instance properties defining the VM instances to be created. Required @@ -12669,7 +12680,9 @@ message CacheInvalidationRule { repeated string cache_tags = 29073078; // If set, this invalidation rule will only apply to requests with a Host - // header matching host. + // header matching host. This field also accepts wildcards (*) to replace the + // leftmost (or first) label of a hostname. For example, *.example.com will + // match www.example.com, but not sub1.dev.example.com. optional string host = 3208616; optional string path = 3433509; @@ -13830,6 +13843,12 @@ message Commitment { MEMORY_OPTIMIZED_M4 = 276301373; + // CUD bucket for M4N machines with less than 6TB of memory. + MEMORY_OPTIMIZED_M4N = 512278961; + + // CUD bucket for M4N machines with 6TB of memory. + MEMORY_OPTIMIZED_M4N_6TB = 69895574; + MEMORY_OPTIMIZED_M4_6TB = 210543650; // CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory. @@ -32444,15 +32463,8 @@ message InstanceConsumptionInfo { // A flexible specification of machine types for instances to create. message InstanceFlexibilityPolicy { - // Specification of alternative, flexible instance subsets. - // One of them will be selected to create the instances - // based on various criteria, like: - // - ranks, - // - location policy, - // - current capacity, - // - available reservations (you can specify affinity in - // InstanceProperties), - // - SWAN/GOOSE limitations. + // Specifies named instance selections that define properties for instances + // created in bulk. // Key is an arbitrary, unique RFC1035 string that identifies the instance // selection. map instance_selections = 22954577; @@ -69870,7 +69882,10 @@ message Scheduling { // Check the ProvisioningModel enum for the list of possible values. optional string provisioning_model = 494423; - // Default is false and there will be 120 seconds between GCE ACPI G2 Soft + // Defines whether GCE ACPI G2 Soft + // Off signal should be skipped during shutdown operation of VM. + // + // Default is false, meaning there will be 120 seconds between GCE ACPI G2 Soft // Off and ACPI G3 Mechanical // Off for Standard VMs and 30 seconds for Spot VMs. optional bool skip_guest_os_shutdown = 201662378; @@ -83441,8 +83456,10 @@ message VpnTunnelAggregatedList { // message VpnTunnelCipherSuite { + // Cipher algorithms for IKE phase 1. optional VpnTunnelPhase1Algorithms phase1 = 84289046; + // Cipher algorithms for IKE phase 2. optional VpnTunnelPhase2Algorithms phase2 = 84289047; } @@ -83496,22 +83513,29 @@ message VpnTunnelParams { // message VpnTunnelPhase1Algorithms { + // Diffie-Hellman groups for IKE phase 1. repeated string dh = 3204; + // Encryption algorithms for IKE phase 1. repeated string encryption = 97980291; + // Integrity algorithms for IKE phase 1. repeated string integrity = 492830541; + // Pseudo-random functions (PRF) for IKE phase 1. repeated string prf = 111268; } // message VpnTunnelPhase2Algorithms { + // Encryption algorithms for IKE phase 2. repeated string encryption = 97980291; + // Integrity algorithms for IKE phase 2. repeated string integrity = 492830541; + // Perfect Forward Secrecy (PFS) groups for IKE phase 2. repeated string pfs = 110909; } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java index 0431cd9f074e..77a70fba33bd 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java @@ -291,6 +291,25 @@ * * * + *

OpenGitRepositoryLinkPullRequest + *

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

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

+ *
    + *
  • openGitRepositoryLinkPullRequest(OpenGitRepositoryLinkPullRequestRequest request) + *

+ *

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

+ *
    + *
  • openGitRepositoryLinkPullRequest(GitRepositoryLinkName name, PullRequest pullRequest) + *

  • openGitRepositoryLinkPullRequest(String name, PullRequest pullRequest) + *

+ *

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

+ *
    + *
  • openGitRepositoryLinkPullRequestCallable() + *

+ * + * + * *

FetchLinkableGitRepositories *

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection. * @@ -350,6 +369,179 @@ * * * + *

DiffGitRepositoryLinkCommit + *

Diff commits for a GitRepositoryLink. + * + *

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

+ *
    + *
  • diffGitRepositoryLinkCommit(DiffGitRepositoryLinkCommitRequest request) + *

+ *

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

+ *
    + *
  • diffGitRepositoryLinkCommit(GitRepositoryLinkName name, String baseSha, String headSha) + *

  • diffGitRepositoryLinkCommit(String name, String baseSha, String headSha) + *

+ *

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

+ *
    + *
  • diffGitRepositoryLinkCommitCallable() + *

+ * + * + * + *

FetchGitRepositoryLinkCommit + *

Fetch Commit details from a Git repository link. + * + *

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

+ *
    + *
  • fetchGitRepositoryLinkCommit(FetchGitRepositoryLinkCommitRequest request) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkCommit(GitRepositoryLinkName name, String commitSha) + *

  • fetchGitRepositoryLinkCommit(String name, String commitSha) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkCommitCallable() + *

+ * + * + * + *

FetchGitRepositoryLinkCommitList + *

Fetch a list of Commits from a Git repository link. + * + *

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

+ *
    + *
  • fetchGitRepositoryLinkCommitList(FetchGitRepositoryLinkCommitListRequest request) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkCommitList(GitRepositoryLinkName name, String ref) + *

  • fetchGitRepositoryLinkCommitList(String name, String ref) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkCommitListPagedCallable() + *

  • fetchGitRepositoryLinkCommitListCallable() + *

+ * + * + * + *

FetchGitRepositoryLinkFileBlame + *

Fetches blame information for a file or line range in a file. + * + *

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

+ *
    + *
  • fetchGitRepositoryLinkFileBlame(FetchGitRepositoryLinkFileBlameRequest request) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkFileBlame(GitRepositoryLinkName name, String ref, String path) + *

  • fetchGitRepositoryLinkFileBlame(String name, String ref, String path) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkFileBlameCallable() + *

+ * + * + * + *

FetchGitRepositoryLinkPullRequest + *

Fetch Pull Request details from a Git repository link. + * + *

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

+ *
    + *
  • fetchGitRepositoryLinkPullRequest(FetchGitRepositoryLinkPullRequestRequest request) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkPullRequest(GitRepositoryLinkName name, String pullRequestId) + *

  • fetchGitRepositoryLinkPullRequest(String name, String pullRequestId) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkPullRequestCallable() + *

+ * + * + * + *

AddGitRepositoryLinkPullRequestComment + *

Add a comment to a Pull Request. + * + *

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

+ *
    + *
  • addGitRepositoryLinkPullRequestComment(AddGitRepositoryLinkPullRequestCommentRequest request) + *

+ *

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

+ *
    + *
  • addGitRepositoryLinkPullRequestComment(GitRepositoryLinkName name, String pullRequestId, PullRequestComment comment) + *

  • addGitRepositoryLinkPullRequestComment(String name, String pullRequestId, PullRequestComment comment) + *

+ *

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

+ *
    + *
  • addGitRepositoryLinkPullRequestCommentCallable() + *

+ * + * + * + *

AddGitRepositoryLinkPullRequestReviewComment + *

Add a review comment (inline on diff) to a Pull Request. + * + *

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

+ *
    + *
  • addGitRepositoryLinkPullRequestReviewComment(AddGitRepositoryLinkPullRequestReviewCommentRequest request) + *

+ *

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

+ *
    + *
  • addGitRepositoryLinkPullRequestReviewComment(GitRepositoryLinkName name, String pullRequestId, PullRequestReviewComment comment) + *

  • addGitRepositoryLinkPullRequestReviewComment(String name, String pullRequestId, PullRequestReviewComment comment) + *

+ *

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

+ *
    + *
  • addGitRepositoryLinkPullRequestReviewCommentCallable() + *

+ * + * + * + *

ModifyGitRepositoryLinkPullRequest + *

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

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

+ *
    + *
  • modifyGitRepositoryLinkPullRequest(ModifyGitRepositoryLinkPullRequestRequest request) + *

+ *

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

+ *
    + *
  • modifyGitRepositoryLinkPullRequest(GitRepositoryLinkName name, String pullRequestId) + *

  • modifyGitRepositoryLinkPullRequest(String name, String pullRequestId) + *

+ *

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

+ *
    + *
  • modifyGitRepositoryLinkPullRequestCallable() + *

+ * + * + * + *

FetchGitRepositoryLinkPullRequestList + *

Fetches a list of Pull Requests from the remote repository. + * + *

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

+ *
    + *
  • fetchGitRepositoryLinkPullRequestList(FetchGitRepositoryLinkPullRequestListRequest request) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkPullRequestList(GitRepositoryLinkName name) + *

  • fetchGitRepositoryLinkPullRequestList(String name) + *

+ *

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

+ *
    + *
  • fetchGitRepositoryLinkPullRequestListPagedCallable() + *

  • fetchGitRepositoryLinkPullRequestListCallable() + *

+ * + * + * *

ListAccountConnectors *

Lists AccountConnectors in a given project and location. * @@ -2412,6 +2604,148 @@ public final FetchReadTokenResponse fetchReadToken(FetchReadTokenRequest request return stub.fetchReadTokenCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   PullRequest pullRequest = PullRequest.newBuilder().build();
+   *   PullRequest response =
+   *       developerConnectClient.openGitRepositoryLinkPullRequest(name, pullRequest);
+   * }
+   * }
+ * + * @param name Required. The GitRepositoryLink resource name in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequest Required. The Pull Request details to open. Input fields used: title, body, + * head_ref, base_ref. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest openGitRepositoryLinkPullRequest( + @Nullable GitRepositoryLinkName name, PullRequest pullRequest) { + OpenGitRepositoryLinkPullRequestRequest request = + OpenGitRepositoryLinkPullRequestRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPullRequest(pullRequest) + .build(); + return openGitRepositoryLinkPullRequest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   PullRequest pullRequest = PullRequest.newBuilder().build();
+   *   PullRequest response =
+   *       developerConnectClient.openGitRepositoryLinkPullRequest(name, pullRequest);
+   * }
+   * }
+ * + * @param name Required. The GitRepositoryLink resource name in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequest Required. The Pull Request details to open. Input fields used: title, body, + * head_ref, base_ref. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest openGitRepositoryLinkPullRequest(String name, PullRequest pullRequest) { + OpenGitRepositoryLinkPullRequestRequest request = + OpenGitRepositoryLinkPullRequestRequest.newBuilder() + .setName(name) + .setPullRequest(pullRequest) + .build(); + return openGitRepositoryLinkPullRequest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   OpenGitRepositoryLinkPullRequestRequest request =
+   *       OpenGitRepositoryLinkPullRequestRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequest(PullRequest.newBuilder().build())
+   *           .build();
+   *   PullRequest response = developerConnectClient.openGitRepositoryLinkPullRequest(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest openGitRepositoryLinkPullRequest( + OpenGitRepositoryLinkPullRequestRequest request) { + return openGitRepositoryLinkPullRequestCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   OpenGitRepositoryLinkPullRequestRequest request =
+   *       OpenGitRepositoryLinkPullRequestRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequest(PullRequest.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient.openGitRepositoryLinkPullRequestCallable().futureCall(request);
+   *   // Do something.
+   *   PullRequest response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + openGitRepositoryLinkPullRequestCallable() { + return stub.openGitRepositoryLinkPullRequestCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available @@ -2918,7 +3252,7 @@ public final UnaryCallable fetchGitRe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AccountConnectors in a given project and location. + * Diff commits for a GitRepositoryLink. * *

Sample code: * @@ -2929,29 +3263,35 @@ public final UnaryCallable fetchGitRe * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (AccountConnector element : - * developerConnectClient.listAccountConnectors(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GitRepositoryLinkName name = + * GitRepositoryLinkName.of( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + * String baseSha = "baseSha-332627941"; + * String headSha = "headSha795290284"; + * DiffGitRepositoryLinkCommitResponse response = + * developerConnectClient.diffGitRepositoryLinkCommit(name, baseSha, headSha); * } * }

* - * @param parent Required. Parent value for ListAccountConnectorsRequest + * @param name Required. The resource name of the GitRepositoryLink. + * @param baseSha Required. The base commit SHA or ref. + * @param headSha Required. The head commit SHA or ref. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountConnectorsPagedResponse listAccountConnectors( - @Nullable LocationName parent) { - ListAccountConnectorsRequest request = - ListAccountConnectorsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final DiffGitRepositoryLinkCommitResponse diffGitRepositoryLinkCommit( + @Nullable GitRepositoryLinkName name, String baseSha, String headSha) { + DiffGitRepositoryLinkCommitRequest request = + DiffGitRepositoryLinkCommitRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setBaseSha(baseSha) + .setHeadSha(headSha) .build(); - return listAccountConnectors(request); + return diffGitRepositoryLinkCommit(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AccountConnectors in a given project and location. + * Diff commits for a GitRepositoryLink. * *

Sample code: * @@ -2962,15 +3302,1465 @@ public final ListAccountConnectorsPagedResponse listAccountConnectors( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AccountConnector element : - * developerConnectClient.listAccountConnectors(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * GitRepositoryLinkName.of( + * "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + * .toString(); + * String baseSha = "baseSha-332627941"; + * String headSha = "headSha795290284"; + * DiffGitRepositoryLinkCommitResponse response = + * developerConnectClient.diffGitRepositoryLinkCommit(name, baseSha, headSha); * } * }

* - * @param parent Required. Parent value for ListAccountConnectorsRequest + * @param name Required. The resource name of the GitRepositoryLink. + * @param baseSha Required. The base commit SHA or ref. + * @param headSha Required. The head commit SHA or ref. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiffGitRepositoryLinkCommitResponse diffGitRepositoryLinkCommit( + String name, String baseSha, String headSha) { + DiffGitRepositoryLinkCommitRequest request = + DiffGitRepositoryLinkCommitRequest.newBuilder() + .setName(name) + .setBaseSha(baseSha) + .setHeadSha(headSha) + .build(); + return diffGitRepositoryLinkCommit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Diff commits for a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   DiffGitRepositoryLinkCommitRequest request =
+   *       DiffGitRepositoryLinkCommitRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setBaseSha("baseSha-332627941")
+   *           .setHeadSha("headSha795290284")
+   *           .addAllPathFilters(new ArrayList())
+   *           .build();
+   *   DiffGitRepositoryLinkCommitResponse response =
+   *       developerConnectClient.diffGitRepositoryLinkCommit(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiffGitRepositoryLinkCommitResponse diffGitRepositoryLinkCommit( + DiffGitRepositoryLinkCommitRequest request) { + return diffGitRepositoryLinkCommitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Diff commits for a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   DiffGitRepositoryLinkCommitRequest request =
+   *       DiffGitRepositoryLinkCommitRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setBaseSha("baseSha-332627941")
+   *           .setHeadSha("headSha795290284")
+   *           .addAllPathFilters(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient.diffGitRepositoryLinkCommitCallable().futureCall(request);
+   *   // Do something.
+   *   DiffGitRepositoryLinkCommitResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitCallable() { + return stub.diffGitRepositoryLinkCommitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Commit details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String commitSha = "commitSha-1491174411";
+   *   FetchGitRepositoryLinkCommitResponse response =
+   *       developerConnectClient.fetchGitRepositoryLinkCommit(name, commitSha);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param commitSha Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git + * reference). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkCommitResponse fetchGitRepositoryLinkCommit( + @Nullable GitRepositoryLinkName name, String commitSha) { + FetchGitRepositoryLinkCommitRequest request = + FetchGitRepositoryLinkCommitRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setCommitSha(commitSha) + .build(); + return fetchGitRepositoryLinkCommit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Commit details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String commitSha = "commitSha-1491174411";
+   *   FetchGitRepositoryLinkCommitResponse response =
+   *       developerConnectClient.fetchGitRepositoryLinkCommit(name, commitSha);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param commitSha Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git + * reference). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkCommitResponse fetchGitRepositoryLinkCommit( + String name, String commitSha) { + FetchGitRepositoryLinkCommitRequest request = + FetchGitRepositoryLinkCommitRequest.newBuilder() + .setName(name) + .setCommitSha(commitSha) + .build(); + return fetchGitRepositoryLinkCommit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Commit details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkCommitRequest request =
+   *       FetchGitRepositoryLinkCommitRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setCommitSha("commitSha-1491174411")
+   *           .setView(CommitView.forNumber(0))
+   *           .addAllPathFilters(new ArrayList())
+   *           .build();
+   *   FetchGitRepositoryLinkCommitResponse response =
+   *       developerConnectClient.fetchGitRepositoryLinkCommit(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkCommitResponse fetchGitRepositoryLinkCommit( + FetchGitRepositoryLinkCommitRequest request) { + return fetchGitRepositoryLinkCommitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Commit details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkCommitRequest request =
+   *       FetchGitRepositoryLinkCommitRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setCommitSha("commitSha-1491174411")
+   *           .setView(CommitView.forNumber(0))
+   *           .addAllPathFilters(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient.fetchGitRepositoryLinkCommitCallable().futureCall(request);
+   *   // Do something.
+   *   FetchGitRepositoryLinkCommitResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitCallable() { + return stub.fetchGitRepositoryLinkCommitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch a list of Commits from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String ref = "ref112787";
+   *   for (SCMCommit element :
+   *       developerConnectClient.fetchGitRepositoryLinkCommitList(name, ref).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param ref Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git + * reference) from which to start listing commits. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkCommitListPagedResponse fetchGitRepositoryLinkCommitList( + @Nullable GitRepositoryLinkName name, String ref) { + FetchGitRepositoryLinkCommitListRequest request = + FetchGitRepositoryLinkCommitListRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRef(ref) + .build(); + return fetchGitRepositoryLinkCommitList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch a list of Commits from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String ref = "ref112787";
+   *   for (SCMCommit element :
+   *       developerConnectClient.fetchGitRepositoryLinkCommitList(name, ref).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param ref Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git + * reference) from which to start listing commits. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkCommitListPagedResponse fetchGitRepositoryLinkCommitList( + String name, String ref) { + FetchGitRepositoryLinkCommitListRequest request = + FetchGitRepositoryLinkCommitListRequest.newBuilder().setName(name).setRef(ref).build(); + return fetchGitRepositoryLinkCommitList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch a list of Commits from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkCommitListRequest request =
+   *       FetchGitRepositoryLinkCommitListRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setRef("ref112787")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(CommitView.forNumber(0))
+   *           .build();
+   *   for (SCMCommit element :
+   *       developerConnectClient.fetchGitRepositoryLinkCommitList(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkCommitListPagedResponse fetchGitRepositoryLinkCommitList( + FetchGitRepositoryLinkCommitListRequest request) { + return fetchGitRepositoryLinkCommitListPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch a list of Commits from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkCommitListRequest request =
+   *       FetchGitRepositoryLinkCommitListRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setRef("ref112787")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(CommitView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient
+   *           .fetchGitRepositoryLinkCommitListPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (SCMCommit element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListPagedCallable() { + return stub.fetchGitRepositoryLinkCommitListPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch a list of Commits from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkCommitListRequest request =
+   *       FetchGitRepositoryLinkCommitListRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setRef("ref112787")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(CommitView.forNumber(0))
+   *           .build();
+   *   while (true) {
+   *     FetchGitRepositoryLinkCommitListResponse response =
+   *         developerConnectClient.fetchGitRepositoryLinkCommitListCallable().call(request);
+   *     for (SCMCommit element : response.getCommitsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListCallable() { + return stub.fetchGitRepositoryLinkCommitListCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches blame information for a file or line range in a file. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String ref = "ref112787";
+   *   String path = "path3433509";
+   *   FetchGitRepositoryLinkFileBlameResponse response =
+   *       developerConnectClient.fetchGitRepositoryLinkFileBlame(name, ref, path);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param ref Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from + * which to fetch the blame. + * @param path Required. The file path within the repository. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkFileBlameResponse fetchGitRepositoryLinkFileBlame( + @Nullable GitRepositoryLinkName name, String ref, String path) { + FetchGitRepositoryLinkFileBlameRequest request = + FetchGitRepositoryLinkFileBlameRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRef(ref) + .setPath(path) + .build(); + return fetchGitRepositoryLinkFileBlame(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches blame information for a file or line range in a file. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String ref = "ref112787";
+   *   String path = "path3433509";
+   *   FetchGitRepositoryLinkFileBlameResponse response =
+   *       developerConnectClient.fetchGitRepositoryLinkFileBlame(name, ref, path);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param ref Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from + * which to fetch the blame. + * @param path Required. The file path within the repository. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkFileBlameResponse fetchGitRepositoryLinkFileBlame( + String name, String ref, String path) { + FetchGitRepositoryLinkFileBlameRequest request = + FetchGitRepositoryLinkFileBlameRequest.newBuilder() + .setName(name) + .setRef(ref) + .setPath(path) + .build(); + return fetchGitRepositoryLinkFileBlame(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches blame information for a file or line range in a file. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkFileBlameRequest request =
+   *       FetchGitRepositoryLinkFileBlameRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setRef("ref112787")
+   *           .setPath("path3433509")
+   *           .setFirstLine(-161037277)
+   *           .setLastLine(2013070333)
+   *           .build();
+   *   FetchGitRepositoryLinkFileBlameResponse response =
+   *       developerConnectClient.fetchGitRepositoryLinkFileBlame(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkFileBlameResponse fetchGitRepositoryLinkFileBlame( + FetchGitRepositoryLinkFileBlameRequest request) { + return fetchGitRepositoryLinkFileBlameCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches blame information for a file or line range in a file. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkFileBlameRequest request =
+   *       FetchGitRepositoryLinkFileBlameRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setRef("ref112787")
+   *           .setPath("path3433509")
+   *           .setFirstLine(-161037277)
+   *           .setLastLine(2013070333)
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient.fetchGitRepositoryLinkFileBlameCallable().futureCall(request);
+   *   // Do something.
+   *   FetchGitRepositoryLinkFileBlameResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameCallable() { + return stub.fetchGitRepositoryLinkFileBlameCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Pull Request details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequest response =
+   *       developerConnectClient.fetchGitRepositoryLinkPullRequest(name, pullRequestId);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The ID of the Pull Request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest fetchGitRepositoryLinkPullRequest( + @Nullable GitRepositoryLinkName name, String pullRequestId) { + FetchGitRepositoryLinkPullRequestRequest request = + FetchGitRepositoryLinkPullRequestRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPullRequestId(pullRequestId) + .build(); + return fetchGitRepositoryLinkPullRequest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Pull Request details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequest response =
+   *       developerConnectClient.fetchGitRepositoryLinkPullRequest(name, pullRequestId);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The ID of the Pull Request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest fetchGitRepositoryLinkPullRequest(String name, String pullRequestId) { + FetchGitRepositoryLinkPullRequestRequest request = + FetchGitRepositoryLinkPullRequestRequest.newBuilder() + .setName(name) + .setPullRequestId(pullRequestId) + .build(); + return fetchGitRepositoryLinkPullRequest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Pull Request details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkPullRequestRequest request =
+   *       FetchGitRepositoryLinkPullRequestRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .build();
+   *   PullRequest response = developerConnectClient.fetchGitRepositoryLinkPullRequest(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest fetchGitRepositoryLinkPullRequest( + FetchGitRepositoryLinkPullRequestRequest request) { + return fetchGitRepositoryLinkPullRequestCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetch Pull Request details from a Git repository link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkPullRequestRequest request =
+   *       FetchGitRepositoryLinkPullRequestRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient.fetchGitRepositoryLinkPullRequestCallable().futureCall(request);
+   *   // Do something.
+   *   PullRequest response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + fetchGitRepositoryLinkPullRequestCallable() { + return stub.fetchGitRepositoryLinkPullRequestCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a comment to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequestComment comment = PullRequestComment.newBuilder().build();
+   *   PullRequestComment response =
+   *       developerConnectClient.addGitRepositoryLinkPullRequestComment(
+   *           name, pullRequestId, comment);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The ID of the Pull Request. + * @param comment Required. The comment to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequestComment addGitRepositoryLinkPullRequestComment( + @Nullable GitRepositoryLinkName name, String pullRequestId, PullRequestComment comment) { + AddGitRepositoryLinkPullRequestCommentRequest request = + AddGitRepositoryLinkPullRequestCommentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPullRequestId(pullRequestId) + .setComment(comment) + .build(); + return addGitRepositoryLinkPullRequestComment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a comment to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequestComment comment = PullRequestComment.newBuilder().build();
+   *   PullRequestComment response =
+   *       developerConnectClient.addGitRepositoryLinkPullRequestComment(
+   *           name, pullRequestId, comment);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The ID of the Pull Request. + * @param comment Required. The comment to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequestComment addGitRepositoryLinkPullRequestComment( + String name, String pullRequestId, PullRequestComment comment) { + AddGitRepositoryLinkPullRequestCommentRequest request = + AddGitRepositoryLinkPullRequestCommentRequest.newBuilder() + .setName(name) + .setPullRequestId(pullRequestId) + .setComment(comment) + .build(); + return addGitRepositoryLinkPullRequestComment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a comment to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   AddGitRepositoryLinkPullRequestCommentRequest request =
+   *       AddGitRepositoryLinkPullRequestCommentRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .setComment(PullRequestComment.newBuilder().build())
+   *           .build();
+   *   PullRequestComment response =
+   *       developerConnectClient.addGitRepositoryLinkPullRequestComment(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequestComment addGitRepositoryLinkPullRequestComment( + AddGitRepositoryLinkPullRequestCommentRequest request) { + return addGitRepositoryLinkPullRequestCommentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a comment to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   AddGitRepositoryLinkPullRequestCommentRequest request =
+   *       AddGitRepositoryLinkPullRequestCommentRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .setComment(PullRequestComment.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient
+   *           .addGitRepositoryLinkPullRequestCommentCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   PullRequestComment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + addGitRepositoryLinkPullRequestCommentCallable() { + return stub.addGitRepositoryLinkPullRequestCommentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a review comment (inline on diff) to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build();
+   *   PullRequestReviewComment response =
+   *       developerConnectClient.addGitRepositoryLinkPullRequestReviewComment(
+   *           name, pullRequestId, comment);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The ID of the Pull Request. + * @param comment Required. The review comment to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequestReviewComment addGitRepositoryLinkPullRequestReviewComment( + @Nullable GitRepositoryLinkName name, + String pullRequestId, + PullRequestReviewComment comment) { + AddGitRepositoryLinkPullRequestReviewCommentRequest request = + AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPullRequestId(pullRequestId) + .setComment(comment) + .build(); + return addGitRepositoryLinkPullRequestReviewComment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a review comment (inline on diff) to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build();
+   *   PullRequestReviewComment response =
+   *       developerConnectClient.addGitRepositoryLinkPullRequestReviewComment(
+   *           name, pullRequestId, comment);
+   * }
+   * }
+ * + * @param name Required. The resource name of the GitRepositoryLink in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The ID of the Pull Request. + * @param comment Required. The review comment to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequestReviewComment addGitRepositoryLinkPullRequestReviewComment( + String name, String pullRequestId, PullRequestReviewComment comment) { + AddGitRepositoryLinkPullRequestReviewCommentRequest request = + AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder() + .setName(name) + .setPullRequestId(pullRequestId) + .setComment(comment) + .build(); + return addGitRepositoryLinkPullRequestReviewComment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a review comment (inline on diff) to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   AddGitRepositoryLinkPullRequestReviewCommentRequest request =
+   *       AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .setComment(PullRequestReviewComment.newBuilder().build())
+   *           .setCommitId("commitId-602292046")
+   *           .build();
+   *   PullRequestReviewComment response =
+   *       developerConnectClient.addGitRepositoryLinkPullRequestReviewComment(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequestReviewComment addGitRepositoryLinkPullRequestReviewComment( + AddGitRepositoryLinkPullRequestReviewCommentRequest request) { + return addGitRepositoryLinkPullRequestReviewCommentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Add a review comment (inline on diff) to a Pull Request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   AddGitRepositoryLinkPullRequestReviewCommentRequest request =
+   *       AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .setComment(PullRequestReviewComment.newBuilder().build())
+   *           .setCommitId("commitId-602292046")
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient
+   *           .addGitRepositoryLinkPullRequestReviewCommentCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   PullRequestReviewComment response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentCallable() { + return stub.addGitRepositoryLinkPullRequestReviewCommentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequest response =
+   *       developerConnectClient.modifyGitRepositoryLinkPullRequest(name, pullRequestId);
+   * }
+   * }
+ * + * @param name Required. The GitRepositoryLink resource name in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The SCM-specific Pull Request identifier (e.g., "45"). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest modifyGitRepositoryLinkPullRequest( + @Nullable GitRepositoryLinkName name, String pullRequestId) { + ModifyGitRepositoryLinkPullRequestRequest request = + ModifyGitRepositoryLinkPullRequestRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setPullRequestId(pullRequestId) + .build(); + return modifyGitRepositoryLinkPullRequest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   String pullRequestId = "pullRequestId1573471045";
+   *   PullRequest response =
+   *       developerConnectClient.modifyGitRepositoryLinkPullRequest(name, pullRequestId);
+   * }
+   * }
+ * + * @param name Required. The GitRepositoryLink resource name in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @param pullRequestId Required. The SCM-specific Pull Request identifier (e.g., "45"). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest modifyGitRepositoryLinkPullRequest(String name, String pullRequestId) { + ModifyGitRepositoryLinkPullRequestRequest request = + ModifyGitRepositoryLinkPullRequestRequest.newBuilder() + .setName(name) + .setPullRequestId(pullRequestId) + .build(); + return modifyGitRepositoryLinkPullRequest(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   ModifyGitRepositoryLinkPullRequestRequest request =
+   *       ModifyGitRepositoryLinkPullRequestRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .setTitle("title110371416")
+   *           .setBody("body3029410")
+   *           .setBaseRef("baseRef-332628990")
+   *           .build();
+   *   PullRequest response = developerConnectClient.modifyGitRepositoryLinkPullRequest(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullRequest modifyGitRepositoryLinkPullRequest( + ModifyGitRepositoryLinkPullRequestRequest request) { + return modifyGitRepositoryLinkPullRequestCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   ModifyGitRepositoryLinkPullRequestRequest request =
+   *       ModifyGitRepositoryLinkPullRequestRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setPullRequestId("pullRequestId1573471045")
+   *           .setTitle("title110371416")
+   *           .setBody("body3029410")
+   *           .setBaseRef("baseRef-332628990")
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient.modifyGitRepositoryLinkPullRequestCallable().futureCall(request);
+   *   // Do something.
+   *   PullRequest response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + modifyGitRepositoryLinkPullRequestCallable() { + return stub.modifyGitRepositoryLinkPullRequestCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of Pull Requests from the remote repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   GitRepositoryLinkName name =
+   *       GitRepositoryLinkName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
+   *   for (PullRequest element :
+   *       developerConnectClient.fetchGitRepositoryLinkPullRequestList(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The GitRepositoryLink resource name in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkPullRequestListPagedResponse + fetchGitRepositoryLinkPullRequestList(@Nullable GitRepositoryLinkName name) { + FetchGitRepositoryLinkPullRequestListRequest request = + FetchGitRepositoryLinkPullRequestListRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return fetchGitRepositoryLinkPullRequestList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of Pull Requests from the remote repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String name =
+   *       GitRepositoryLinkName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *           .toString();
+   *   for (PullRequest element :
+   *       developerConnectClient.fetchGitRepositoryLinkPullRequestList(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The GitRepositoryLink resource name in the format + * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkPullRequestListPagedResponse + fetchGitRepositoryLinkPullRequestList(String name) { + FetchGitRepositoryLinkPullRequestListRequest request = + FetchGitRepositoryLinkPullRequestListRequest.newBuilder().setName(name).build(); + return fetchGitRepositoryLinkPullRequestList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of Pull Requests from the remote repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkPullRequestListRequest request =
+   *       FetchGitRepositoryLinkPullRequestListRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (PullRequest element :
+   *       developerConnectClient.fetchGitRepositoryLinkPullRequestList(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchGitRepositoryLinkPullRequestListPagedResponse + fetchGitRepositoryLinkPullRequestList(FetchGitRepositoryLinkPullRequestListRequest request) { + return fetchGitRepositoryLinkPullRequestListPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of Pull Requests from the remote repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkPullRequestListRequest request =
+   *       FetchGitRepositoryLinkPullRequestListRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       developerConnectClient
+   *           .fetchGitRepositoryLinkPullRequestListPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (PullRequest element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListPagedCallable() { + return stub.fetchGitRepositoryLinkPullRequestListPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of Pull Requests from the remote repository. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   FetchGitRepositoryLinkPullRequestListRequest request =
+   *       FetchGitRepositoryLinkPullRequestListRequest.newBuilder()
+   *           .setName(
+   *               GitRepositoryLinkName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     FetchGitRepositoryLinkPullRequestListResponse response =
+   *         developerConnectClient.fetchGitRepositoryLinkPullRequestListCallable().call(request);
+   *     for (PullRequest element : response.getPullRequestsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListCallable() { + return stub.fetchGitRepositoryLinkPullRequestListCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccountConnectors in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AccountConnector element :
+   *       developerConnectClient.listAccountConnectors(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListAccountConnectorsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccountConnectorsPagedResponse listAccountConnectors( + @Nullable LocationName parent) { + ListAccountConnectorsRequest request = + ListAccountConnectorsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccountConnectors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccountConnectors in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AccountConnector element :
+   *       developerConnectClient.listAccountConnectors(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent value for ListAccountConnectorsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAccountConnectorsPagedResponse listAccountConnectors(String parent) { @@ -5188,6 +6978,209 @@ protected FetchGitRefsFixedSizeCollection createCollection( } } + public static class FetchGitRepositoryLinkCommitListPagedResponse + extends AbstractPagedListResponse< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit, + FetchGitRepositoryLinkCommitListPage, + FetchGitRepositoryLinkCommitListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchGitRepositoryLinkCommitListPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchGitRepositoryLinkCommitListPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchGitRepositoryLinkCommitListPagedResponse( + FetchGitRepositoryLinkCommitListPage page) { + super(page, FetchGitRepositoryLinkCommitListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchGitRepositoryLinkCommitListPage + extends AbstractPage< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit, + FetchGitRepositoryLinkCommitListPage> { + + private FetchGitRepositoryLinkCommitListPage( + @Nullable + PageContext< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit> + context, + @Nullable FetchGitRepositoryLinkCommitListResponse response) { + super(context, response); + } + + private static FetchGitRepositoryLinkCommitListPage createEmptyPage() { + return new FetchGitRepositoryLinkCommitListPage(null, null); + } + + @Override + protected FetchGitRepositoryLinkCommitListPage createPage( + @Nullable + PageContext< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit> + context, + @Nullable FetchGitRepositoryLinkCommitListResponse response) { + return new FetchGitRepositoryLinkCommitListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchGitRepositoryLinkCommitListFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit, + FetchGitRepositoryLinkCommitListPage, + FetchGitRepositoryLinkCommitListFixedSizeCollection> { + + private FetchGitRepositoryLinkCommitListFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchGitRepositoryLinkCommitListFixedSizeCollection createEmptyCollection() { + return new FetchGitRepositoryLinkCommitListFixedSizeCollection(null, 0); + } + + @Override + protected FetchGitRepositoryLinkCommitListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new FetchGitRepositoryLinkCommitListFixedSizeCollection(pages, collectionSize); + } + } + + public static class FetchGitRepositoryLinkPullRequestListPagedResponse + extends AbstractPagedListResponse< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest, + FetchGitRepositoryLinkPullRequestListPage, + FetchGitRepositoryLinkPullRequestListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchGitRepositoryLinkPullRequestListPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchGitRepositoryLinkPullRequestListPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchGitRepositoryLinkPullRequestListPagedResponse( + FetchGitRepositoryLinkPullRequestListPage page) { + super(page, FetchGitRepositoryLinkPullRequestListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchGitRepositoryLinkPullRequestListPage + extends AbstractPage< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest, + FetchGitRepositoryLinkPullRequestListPage> { + + private FetchGitRepositoryLinkPullRequestListPage( + @Nullable + PageContext< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest> + context, + @Nullable FetchGitRepositoryLinkPullRequestListResponse response) { + super(context, response); + } + + private static FetchGitRepositoryLinkPullRequestListPage createEmptyPage() { + return new FetchGitRepositoryLinkPullRequestListPage(null, null); + } + + @Override + protected FetchGitRepositoryLinkPullRequestListPage createPage( + @Nullable + PageContext< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest> + context, + @Nullable FetchGitRepositoryLinkPullRequestListResponse response) { + return new FetchGitRepositoryLinkPullRequestListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchGitRepositoryLinkPullRequestListFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest, + FetchGitRepositoryLinkPullRequestListPage, + FetchGitRepositoryLinkPullRequestListFixedSizeCollection> { + + private FetchGitRepositoryLinkPullRequestListFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchGitRepositoryLinkPullRequestListFixedSizeCollection + createEmptyCollection() { + return new FetchGitRepositoryLinkPullRequestListFixedSizeCollection(null, 0); + } + + @Override + protected FetchGitRepositoryLinkPullRequestListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new FetchGitRepositoryLinkPullRequestListFixedSizeCollection(pages, collectionSize); + } + } + public static class ListAccountConnectorsPagedResponse extends AbstractPagedListResponse< ListAccountConnectorsRequest, diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java index 39661dc50165..5ceff3e064b8 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -228,6 +230,13 @@ public UnaryCallSettings fetchRea return ((DeveloperConnectStubSettings) getStubSettings()).fetchReadTokenSettings(); } + /** Returns the object with the settings used for calls to openGitRepositoryLinkPullRequest. */ + public UnaryCallSettings + openGitRepositoryLinkPullRequestSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .openGitRepositoryLinkPullRequestSettings(); + } + /** Returns the object with the settings used for calls to fetchLinkableGitRepositories. */ public PagedCallSettings< FetchLinkableGitRepositoriesRequest, @@ -250,6 +259,84 @@ public UnaryCallSettings fetchRea return ((DeveloperConnectStubSettings) getStubSettings()).fetchGitRefsSettings(); } + /** Returns the object with the settings used for calls to diffGitRepositoryLinkCommit. */ + public UnaryCallSettings + diffGitRepositoryLinkCommitSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()).diffGitRepositoryLinkCommitSettings(); + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkCommit. */ + public UnaryCallSettings< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .fetchGitRepositoryLinkCommitSettings(); + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkCommitList. */ + public PagedCallSettings< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .fetchGitRepositoryLinkCommitListSettings(); + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkFileBlame. */ + public UnaryCallSettings< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .fetchGitRepositoryLinkFileBlameSettings(); + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkPullRequest. */ + public UnaryCallSettings + fetchGitRepositoryLinkPullRequestSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .fetchGitRepositoryLinkPullRequestSettings(); + } + + /** + * Returns the object with the settings used for calls to addGitRepositoryLinkPullRequestComment. + */ + public UnaryCallSettings + addGitRepositoryLinkPullRequestCommentSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .addGitRepositoryLinkPullRequestCommentSettings(); + } + + /** + * Returns the object with the settings used for calls to + * addGitRepositoryLinkPullRequestReviewComment. + */ + public UnaryCallSettings< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .addGitRepositoryLinkPullRequestReviewCommentSettings(); + } + + /** Returns the object with the settings used for calls to modifyGitRepositoryLinkPullRequest. */ + public UnaryCallSettings + modifyGitRepositoryLinkPullRequestSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .modifyGitRepositoryLinkPullRequestSettings(); + } + + /** + * Returns the object with the settings used for calls to fetchGitRepositoryLinkPullRequestList. + */ + public PagedCallSettings< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListSettings() { + return ((DeveloperConnectStubSettings) getStubSettings()) + .fetchGitRepositoryLinkPullRequestListSettings(); + } + /** Returns the object with the settings used for calls to listAccountConnectors. */ public PagedCallSettings< ListAccountConnectorsRequest, @@ -576,6 +663,12 @@ public UnaryCallSettings.Builder getConnection return getStubSettingsBuilder().fetchReadTokenSettings(); } + /** Returns the builder for the settings used for calls to openGitRepositoryLinkPullRequest. */ + public UnaryCallSettings.Builder + openGitRepositoryLinkPullRequestSettings() { + return getStubSettingsBuilder().openGitRepositoryLinkPullRequestSettings(); + } + /** Returns the builder for the settings used for calls to fetchLinkableGitRepositories. */ public PagedCallSettings.Builder< FetchLinkableGitRepositoriesRequest, @@ -599,6 +692,81 @@ public UnaryCallSettings.Builder getConnection return getStubSettingsBuilder().fetchGitRefsSettings(); } + /** Returns the builder for the settings used for calls to diffGitRepositoryLinkCommit. */ + public UnaryCallSettings.Builder< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitSettings() { + return getStubSettingsBuilder().diffGitRepositoryLinkCommitSettings(); + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkCommit. */ + public UnaryCallSettings.Builder< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitSettings() { + return getStubSettingsBuilder().fetchGitRepositoryLinkCommitSettings(); + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkCommitList. */ + public PagedCallSettings.Builder< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListSettings() { + return getStubSettingsBuilder().fetchGitRepositoryLinkCommitListSettings(); + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkFileBlame. */ + public UnaryCallSettings.Builder< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameSettings() { + return getStubSettingsBuilder().fetchGitRepositoryLinkFileBlameSettings(); + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkPullRequest. */ + public UnaryCallSettings.Builder + fetchGitRepositoryLinkPullRequestSettings() { + return getStubSettingsBuilder().fetchGitRepositoryLinkPullRequestSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * addGitRepositoryLinkPullRequestComment. + */ + public UnaryCallSettings.Builder< + AddGitRepositoryLinkPullRequestCommentRequest, PullRequestComment> + addGitRepositoryLinkPullRequestCommentSettings() { + return getStubSettingsBuilder().addGitRepositoryLinkPullRequestCommentSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * addGitRepositoryLinkPullRequestReviewComment. + */ + public UnaryCallSettings.Builder< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentSettings() { + return getStubSettingsBuilder().addGitRepositoryLinkPullRequestReviewCommentSettings(); + } + + /** + * Returns the builder for the settings used for calls to modifyGitRepositoryLinkPullRequest. + */ + public UnaryCallSettings.Builder + modifyGitRepositoryLinkPullRequestSettings() { + return getStubSettingsBuilder().modifyGitRepositoryLinkPullRequestSettings(); + } + + /** + * Returns the builder for the settings used for calls to fetchGitRepositoryLinkPullRequestList. + */ + public PagedCallSettings.Builder< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListSettings() { + return getStubSettingsBuilder().fetchGitRepositoryLinkPullRequestListSettings(); + } + /** Returns the builder for the settings used for calls to listAccountConnectors. */ public PagedCallSettings.Builder< ListAccountConnectorsRequest, diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/gapic_metadata.json b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/gapic_metadata.json index 6a8f075e5f57..7078ab18a73a 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/gapic_metadata.json +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/gapic_metadata.json @@ -10,6 +10,12 @@ "grpc": { "libraryClient": "DeveloperConnectClient", "rpcs": { + "AddGitRepositoryLinkPullRequestComment": { + "methods": ["addGitRepositoryLinkPullRequestComment", "addGitRepositoryLinkPullRequestComment", "addGitRepositoryLinkPullRequestComment", "addGitRepositoryLinkPullRequestCommentCallable"] + }, + "AddGitRepositoryLinkPullRequestReviewComment": { + "methods": ["addGitRepositoryLinkPullRequestReviewComment", "addGitRepositoryLinkPullRequestReviewComment", "addGitRepositoryLinkPullRequestReviewComment", "addGitRepositoryLinkPullRequestReviewCommentCallable"] + }, "CreateAccountConnector": { "methods": ["createAccountConnectorAsync", "createAccountConnectorAsync", "createAccountConnectorAsync", "createAccountConnectorOperationCallable", "createAccountConnectorCallable"] }, @@ -34,6 +40,9 @@ "DeleteUser": { "methods": ["deleteUserAsync", "deleteUserAsync", "deleteUserAsync", "deleteUserOperationCallable", "deleteUserCallable"] }, + "DiffGitRepositoryLinkCommit": { + "methods": ["diffGitRepositoryLinkCommit", "diffGitRepositoryLinkCommit", "diffGitRepositoryLinkCommit", "diffGitRepositoryLinkCommitCallable"] + }, "FetchAccessToken": { "methods": ["fetchAccessToken", "fetchAccessToken", "fetchAccessToken", "fetchAccessTokenCallable"] }, @@ -43,6 +52,21 @@ "FetchGitRefs": { "methods": ["fetchGitRefs", "fetchGitRefs", "fetchGitRefs", "fetchGitRefsPagedCallable", "fetchGitRefsCallable"] }, + "FetchGitRepositoryLinkCommit": { + "methods": ["fetchGitRepositoryLinkCommit", "fetchGitRepositoryLinkCommit", "fetchGitRepositoryLinkCommit", "fetchGitRepositoryLinkCommitCallable"] + }, + "FetchGitRepositoryLinkCommitList": { + "methods": ["fetchGitRepositoryLinkCommitList", "fetchGitRepositoryLinkCommitList", "fetchGitRepositoryLinkCommitList", "fetchGitRepositoryLinkCommitListPagedCallable", "fetchGitRepositoryLinkCommitListCallable"] + }, + "FetchGitRepositoryLinkFileBlame": { + "methods": ["fetchGitRepositoryLinkFileBlame", "fetchGitRepositoryLinkFileBlame", "fetchGitRepositoryLinkFileBlame", "fetchGitRepositoryLinkFileBlameCallable"] + }, + "FetchGitRepositoryLinkPullRequest": { + "methods": ["fetchGitRepositoryLinkPullRequest", "fetchGitRepositoryLinkPullRequest", "fetchGitRepositoryLinkPullRequest", "fetchGitRepositoryLinkPullRequestCallable"] + }, + "FetchGitRepositoryLinkPullRequestList": { + "methods": ["fetchGitRepositoryLinkPullRequestList", "fetchGitRepositoryLinkPullRequestList", "fetchGitRepositoryLinkPullRequestList", "fetchGitRepositoryLinkPullRequestListPagedCallable", "fetchGitRepositoryLinkPullRequestListCallable"] + }, "FetchLinkableGitRepositories": { "methods": ["fetchLinkableGitRepositories", "fetchLinkableGitRepositories", "fetchLinkableGitRepositories", "fetchLinkableGitRepositoriesPagedCallable", "fetchLinkableGitRepositoriesCallable"] }, @@ -85,6 +109,12 @@ "ListUsers": { "methods": ["listUsers", "listUsers", "listUsers", "listUsersPagedCallable", "listUsersCallable"] }, + "ModifyGitRepositoryLinkPullRequest": { + "methods": ["modifyGitRepositoryLinkPullRequest", "modifyGitRepositoryLinkPullRequest", "modifyGitRepositoryLinkPullRequest", "modifyGitRepositoryLinkPullRequestCallable"] + }, + "OpenGitRepositoryLinkPullRequest": { + "methods": ["openGitRepositoryLinkPullRequest", "openGitRepositoryLinkPullRequest", "openGitRepositoryLinkPullRequest", "openGitRepositoryLinkPullRequestCallable"] + }, "StartOAuth": { "methods": ["startOAuth", "startOAuth", "startOAuth", "startOAuthCallable"] }, diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java index 3a2958763cd4..141ce899b46e 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1.stub; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -28,6 +30,8 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.developerconnect.v1.AccountConnector; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest; import com.google.cloud.developerconnect.v1.Connection; import com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest; import com.google.cloud.developerconnect.v1.CreateConnectionRequest; @@ -37,12 +41,23 @@ import com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest; import com.google.cloud.developerconnect.v1.DeleteSelfRequest; import com.google.cloud.developerconnect.v1.DeleteUserRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; import com.google.cloud.developerconnect.v1.FetchAccessTokenRequest; import com.google.cloud.developerconnect.v1.FetchAccessTokenResponse; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse; import com.google.cloud.developerconnect.v1.FetchGitRefsRequest; import com.google.cloud.developerconnect.v1.FetchGitRefsResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse; import com.google.cloud.developerconnect.v1.FetchReadTokenRequest; @@ -64,7 +79,12 @@ import com.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse; import com.google.cloud.developerconnect.v1.ListUsersRequest; import com.google.cloud.developerconnect.v1.ListUsersResponse; +import com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.OperationMetadata; +import com.google.cloud.developerconnect.v1.PullRequest; +import com.google.cloud.developerconnect.v1.PullRequestComment; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; import com.google.cloud.developerconnect.v1.StartOAuthRequest; import com.google.cloud.developerconnect.v1.StartOAuthResponse; import com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest; @@ -187,6 +207,12 @@ public UnaryCallable fetchReadTok throw new UnsupportedOperationException("Not implemented: fetchReadTokenCallable()"); } + public UnaryCallable + openGitRepositoryLinkPullRequestCallable() { + throw new UnsupportedOperationException( + "Not implemented: openGitRepositoryLinkPullRequestCallable()"); + } + public UnaryCallable< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesPagedResponse> fetchLinkableGitRepositoriesPagedCallable() { @@ -213,6 +239,80 @@ public UnaryCallable fetchGitRefsCall throw new UnsupportedOperationException("Not implemented: fetchGitRefsCallable()"); } + public UnaryCallable + diffGitRepositoryLinkCommitCallable() { + throw new UnsupportedOperationException( + "Not implemented: diffGitRepositoryLinkCommitCallable()"); + } + + public UnaryCallable + fetchGitRepositoryLinkCommitCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkCommitCallable()"); + } + + public UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkCommitListPagedCallable()"); + } + + public UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkCommitListCallable()"); + } + + public UnaryCallable< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkFileBlameCallable()"); + } + + public UnaryCallable + fetchGitRepositoryLinkPullRequestCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkPullRequestCallable()"); + } + + public UnaryCallable + addGitRepositoryLinkPullRequestCommentCallable() { + throw new UnsupportedOperationException( + "Not implemented: addGitRepositoryLinkPullRequestCommentCallable()"); + } + + public UnaryCallable< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentCallable() { + throw new UnsupportedOperationException( + "Not implemented: addGitRepositoryLinkPullRequestReviewCommentCallable()"); + } + + public UnaryCallable + modifyGitRepositoryLinkPullRequestCallable() { + throw new UnsupportedOperationException( + "Not implemented: modifyGitRepositoryLinkPullRequestCallable()"); + } + + public UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkPullRequestListPagedCallable()"); + } + + public UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchGitRepositoryLinkPullRequestListCallable()"); + } + public UnaryCallable listAccountConnectorsPagedCallable() { throw new UnsupportedOperationException( diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java index cafc3939b9f8..a6d226f21788 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1.stub; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -56,6 +58,8 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.developerconnect.v1.AccountConnector; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest; import com.google.cloud.developerconnect.v1.Connection; import com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest; import com.google.cloud.developerconnect.v1.CreateConnectionRequest; @@ -65,12 +69,23 @@ import com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest; import com.google.cloud.developerconnect.v1.DeleteSelfRequest; import com.google.cloud.developerconnect.v1.DeleteUserRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; import com.google.cloud.developerconnect.v1.FetchAccessTokenRequest; import com.google.cloud.developerconnect.v1.FetchAccessTokenResponse; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse; import com.google.cloud.developerconnect.v1.FetchGitRefsRequest; import com.google.cloud.developerconnect.v1.FetchGitRefsResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse; import com.google.cloud.developerconnect.v1.FetchReadTokenRequest; @@ -93,7 +108,13 @@ import com.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse; import com.google.cloud.developerconnect.v1.ListUsersRequest; import com.google.cloud.developerconnect.v1.ListUsersResponse; +import com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.OperationMetadata; +import com.google.cloud.developerconnect.v1.PullRequest; +import com.google.cloud.developerconnect.v1.PullRequestComment; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; +import com.google.cloud.developerconnect.v1.SCMCommit; import com.google.cloud.developerconnect.v1.StartOAuthRequest; import com.google.cloud.developerconnect.v1.StartOAuthResponse; import com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest; @@ -234,6 +255,8 @@ public class DeveloperConnectStubSettings extends StubSettings fetchReadTokenSettings; + private final UnaryCallSettings + openGitRepositoryLinkPullRequestSettings; private final PagedCallSettings< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse, @@ -244,6 +267,34 @@ public class DeveloperConnectStubSettings extends StubSettings fetchGitRefsSettings; + private final UnaryCallSettings< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitSettings; + private final UnaryCallSettings< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitSettings; + private final PagedCallSettings< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListSettings; + private final UnaryCallSettings< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameSettings; + private final UnaryCallSettings + fetchGitRepositoryLinkPullRequestSettings; + private final UnaryCallSettings + addGitRepositoryLinkPullRequestCommentSettings; + private final UnaryCallSettings< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentSettings; + private final UnaryCallSettings + modifyGitRepositoryLinkPullRequestSettings; + private final PagedCallSettings< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListSettings; private final PagedCallSettings< ListAccountConnectorsRequest, ListAccountConnectorsResponse, @@ -442,6 +493,100 @@ public Iterable extractResources(FetchGitRefsResponse payload) { } }; + private static final PagedListDescriptor< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit> + FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST_PAGE_STR_DESC = + new PagedListDescriptor< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchGitRepositoryLinkCommitListRequest injectToken( + FetchGitRepositoryLinkCommitListRequest payload, String token) { + return FetchGitRepositoryLinkCommitListRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public FetchGitRepositoryLinkCommitListRequest injectPageSize( + FetchGitRepositoryLinkCommitListRequest payload, int pageSize) { + return FetchGitRepositoryLinkCommitListRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(FetchGitRepositoryLinkCommitListRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchGitRepositoryLinkCommitListResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + FetchGitRepositoryLinkCommitListResponse payload) { + return payload.getCommitsList(); + } + }; + + private static final PagedListDescriptor< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest> + FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST_PAGE_STR_DESC = + new PagedListDescriptor< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchGitRepositoryLinkPullRequestListRequest injectToken( + FetchGitRepositoryLinkPullRequestListRequest payload, String token) { + return FetchGitRepositoryLinkPullRequestListRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public FetchGitRepositoryLinkPullRequestListRequest injectPageSize( + FetchGitRepositoryLinkPullRequestListRequest payload, int pageSize) { + return FetchGitRepositoryLinkPullRequestListRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(FetchGitRepositoryLinkPullRequestListRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchGitRepositoryLinkPullRequestListResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + FetchGitRepositoryLinkPullRequestListResponse payload) { + return payload.getPullRequestsList(); + } + }; + private static final PagedListDescriptor< ListAccountConnectorsRequest, ListAccountConnectorsResponse, AccountConnector> LIST_ACCOUNT_CONNECTORS_PAGE_STR_DESC = @@ -642,6 +787,73 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse> + callable, + FetchGitRepositoryLinkCommitListRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + SCMCommit> + pageContext = + PageContext.create( + callable, + FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST_PAGE_STR_DESC, + request, + context); + return FetchGitRepositoryLinkCommitListPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + callable, + FetchGitRepositoryLinkPullRequestListRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + PullRequest> + pageContext = + PageContext.create( + callable, + FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST_PAGE_STR_DESC, + request, + context); + return FetchGitRepositoryLinkPullRequestListPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListAccountConnectorsRequest, ListAccountConnectorsResponse, @@ -795,6 +1007,12 @@ public UnaryCallSettings fetchRea return fetchReadTokenSettings; } + /** Returns the object with the settings used for calls to openGitRepositoryLinkPullRequest. */ + public UnaryCallSettings + openGitRepositoryLinkPullRequestSettings() { + return openGitRepositoryLinkPullRequestSettings; + } + /** Returns the object with the settings used for calls to fetchLinkableGitRepositories. */ public PagedCallSettings< FetchLinkableGitRepositoriesRequest, @@ -816,6 +1034,76 @@ public UnaryCallSettings fetchRea return fetchGitRefsSettings; } + /** Returns the object with the settings used for calls to diffGitRepositoryLinkCommit. */ + public UnaryCallSettings + diffGitRepositoryLinkCommitSettings() { + return diffGitRepositoryLinkCommitSettings; + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkCommit. */ + public UnaryCallSettings< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitSettings() { + return fetchGitRepositoryLinkCommitSettings; + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkCommitList. */ + public PagedCallSettings< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListSettings() { + return fetchGitRepositoryLinkCommitListSettings; + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkFileBlame. */ + public UnaryCallSettings< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameSettings() { + return fetchGitRepositoryLinkFileBlameSettings; + } + + /** Returns the object with the settings used for calls to fetchGitRepositoryLinkPullRequest. */ + public UnaryCallSettings + fetchGitRepositoryLinkPullRequestSettings() { + return fetchGitRepositoryLinkPullRequestSettings; + } + + /** + * Returns the object with the settings used for calls to addGitRepositoryLinkPullRequestComment. + */ + public UnaryCallSettings + addGitRepositoryLinkPullRequestCommentSettings() { + return addGitRepositoryLinkPullRequestCommentSettings; + } + + /** + * Returns the object with the settings used for calls to + * addGitRepositoryLinkPullRequestReviewComment. + */ + public UnaryCallSettings< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentSettings() { + return addGitRepositoryLinkPullRequestReviewCommentSettings; + } + + /** Returns the object with the settings used for calls to modifyGitRepositoryLinkPullRequest. */ + public UnaryCallSettings + modifyGitRepositoryLinkPullRequestSettings() { + return modifyGitRepositoryLinkPullRequestSettings; + } + + /** + * Returns the object with the settings used for calls to fetchGitRepositoryLinkPullRequestList. + */ + public PagedCallSettings< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListSettings() { + return fetchGitRepositoryLinkPullRequestListSettings; + } + /** Returns the object with the settings used for calls to listAccountConnectors. */ public PagedCallSettings< ListAccountConnectorsRequest, @@ -1056,10 +1344,30 @@ protected DeveloperConnectStubSettings(Builder settingsBuilder) throws IOExcepti getGitRepositoryLinkSettings = settingsBuilder.getGitRepositoryLinkSettings().build(); fetchReadWriteTokenSettings = settingsBuilder.fetchReadWriteTokenSettings().build(); fetchReadTokenSettings = settingsBuilder.fetchReadTokenSettings().build(); + openGitRepositoryLinkPullRequestSettings = + settingsBuilder.openGitRepositoryLinkPullRequestSettings().build(); fetchLinkableGitRepositoriesSettings = settingsBuilder.fetchLinkableGitRepositoriesSettings().build(); fetchGitHubInstallationsSettings = settingsBuilder.fetchGitHubInstallationsSettings().build(); fetchGitRefsSettings = settingsBuilder.fetchGitRefsSettings().build(); + diffGitRepositoryLinkCommitSettings = + settingsBuilder.diffGitRepositoryLinkCommitSettings().build(); + fetchGitRepositoryLinkCommitSettings = + settingsBuilder.fetchGitRepositoryLinkCommitSettings().build(); + fetchGitRepositoryLinkCommitListSettings = + settingsBuilder.fetchGitRepositoryLinkCommitListSettings().build(); + fetchGitRepositoryLinkFileBlameSettings = + settingsBuilder.fetchGitRepositoryLinkFileBlameSettings().build(); + fetchGitRepositoryLinkPullRequestSettings = + settingsBuilder.fetchGitRepositoryLinkPullRequestSettings().build(); + addGitRepositoryLinkPullRequestCommentSettings = + settingsBuilder.addGitRepositoryLinkPullRequestCommentSettings().build(); + addGitRepositoryLinkPullRequestReviewCommentSettings = + settingsBuilder.addGitRepositoryLinkPullRequestReviewCommentSettings().build(); + modifyGitRepositoryLinkPullRequestSettings = + settingsBuilder.modifyGitRepositoryLinkPullRequestSettings().build(); + fetchGitRepositoryLinkPullRequestListSettings = + settingsBuilder.fetchGitRepositoryLinkPullRequestListSettings().build(); listAccountConnectorsSettings = settingsBuilder.listAccountConnectorsSettings().build(); getAccountConnectorSettings = settingsBuilder.getAccountConnectorSettings().build(); createAccountConnectorSettings = settingsBuilder.createAccountConnectorSettings().build(); @@ -1135,6 +1443,8 @@ public static class Builder extends StubSettings.Builder fetchReadTokenSettings; + private final UnaryCallSettings.Builder + openGitRepositoryLinkPullRequestSettings; private final PagedCallSettings.Builder< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse, @@ -1146,6 +1456,35 @@ public static class Builder extends StubSettings.Builder fetchGitRefsSettings; + private final UnaryCallSettings.Builder< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitSettings; + private final UnaryCallSettings.Builder< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitSettings; + private final PagedCallSettings.Builder< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListSettings; + private final UnaryCallSettings.Builder< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameSettings; + private final UnaryCallSettings.Builder + fetchGitRepositoryLinkPullRequestSettings; + private final UnaryCallSettings.Builder< + AddGitRepositoryLinkPullRequestCommentRequest, PullRequestComment> + addGitRepositoryLinkPullRequestCommentSettings; + private final UnaryCallSettings.Builder< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentSettings; + private final UnaryCallSettings.Builder + modifyGitRepositoryLinkPullRequestSettings; + private final PagedCallSettings.Builder< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListSettings; private final PagedCallSettings.Builder< ListAccountConnectorsRequest, ListAccountConnectorsResponse, @@ -1246,10 +1585,24 @@ protected Builder(@Nullable ClientContext clientContext) { getGitRepositoryLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); fetchReadWriteTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); fetchReadTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + openGitRepositoryLinkPullRequestSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); fetchLinkableGitRepositoriesSettings = PagedCallSettings.newBuilder(FETCH_LINKABLE_GIT_REPOSITORIES_PAGE_STR_FACT); fetchGitHubInstallationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); fetchGitRefsSettings = PagedCallSettings.newBuilder(FETCH_GIT_REFS_PAGE_STR_FACT); + diffGitRepositoryLinkCommitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchGitRepositoryLinkCommitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchGitRepositoryLinkCommitListSettings = + PagedCallSettings.newBuilder(FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST_PAGE_STR_FACT); + fetchGitRepositoryLinkFileBlameSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchGitRepositoryLinkPullRequestSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addGitRepositoryLinkPullRequestCommentSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + addGitRepositoryLinkPullRequestReviewCommentSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + modifyGitRepositoryLinkPullRequestSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchGitRepositoryLinkPullRequestListSettings = + PagedCallSettings.newBuilder(FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST_PAGE_STR_FACT); listAccountConnectorsSettings = PagedCallSettings.newBuilder(LIST_ACCOUNT_CONNECTORS_PAGE_STR_FACT); getAccountConnectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1284,9 +1637,19 @@ protected Builder(@Nullable ClientContext clientContext) { getGitRepositoryLinkSettings, fetchReadWriteTokenSettings, fetchReadTokenSettings, + openGitRepositoryLinkPullRequestSettings, fetchLinkableGitRepositoriesSettings, fetchGitHubInstallationsSettings, fetchGitRefsSettings, + diffGitRepositoryLinkCommitSettings, + fetchGitRepositoryLinkCommitSettings, + fetchGitRepositoryLinkCommitListSettings, + fetchGitRepositoryLinkFileBlameSettings, + fetchGitRepositoryLinkPullRequestSettings, + addGitRepositoryLinkPullRequestCommentSettings, + addGitRepositoryLinkPullRequestReviewCommentSettings, + modifyGitRepositoryLinkPullRequestSettings, + fetchGitRepositoryLinkPullRequestListSettings, listAccountConnectorsSettings, getAccountConnectorSettings, createAccountConnectorSettings, @@ -1325,10 +1688,30 @@ protected Builder(DeveloperConnectStubSettings settings) { getGitRepositoryLinkSettings = settings.getGitRepositoryLinkSettings.toBuilder(); fetchReadWriteTokenSettings = settings.fetchReadWriteTokenSettings.toBuilder(); fetchReadTokenSettings = settings.fetchReadTokenSettings.toBuilder(); + openGitRepositoryLinkPullRequestSettings = + settings.openGitRepositoryLinkPullRequestSettings.toBuilder(); fetchLinkableGitRepositoriesSettings = settings.fetchLinkableGitRepositoriesSettings.toBuilder(); fetchGitHubInstallationsSettings = settings.fetchGitHubInstallationsSettings.toBuilder(); fetchGitRefsSettings = settings.fetchGitRefsSettings.toBuilder(); + diffGitRepositoryLinkCommitSettings = + settings.diffGitRepositoryLinkCommitSettings.toBuilder(); + fetchGitRepositoryLinkCommitSettings = + settings.fetchGitRepositoryLinkCommitSettings.toBuilder(); + fetchGitRepositoryLinkCommitListSettings = + settings.fetchGitRepositoryLinkCommitListSettings.toBuilder(); + fetchGitRepositoryLinkFileBlameSettings = + settings.fetchGitRepositoryLinkFileBlameSettings.toBuilder(); + fetchGitRepositoryLinkPullRequestSettings = + settings.fetchGitRepositoryLinkPullRequestSettings.toBuilder(); + addGitRepositoryLinkPullRequestCommentSettings = + settings.addGitRepositoryLinkPullRequestCommentSettings.toBuilder(); + addGitRepositoryLinkPullRequestReviewCommentSettings = + settings.addGitRepositoryLinkPullRequestReviewCommentSettings.toBuilder(); + modifyGitRepositoryLinkPullRequestSettings = + settings.modifyGitRepositoryLinkPullRequestSettings.toBuilder(); + fetchGitRepositoryLinkPullRequestListSettings = + settings.fetchGitRepositoryLinkPullRequestListSettings.toBuilder(); listAccountConnectorsSettings = settings.listAccountConnectorsSettings.toBuilder(); getAccountConnectorSettings = settings.getAccountConnectorSettings.toBuilder(); createAccountConnectorSettings = settings.createAccountConnectorSettings.toBuilder(); @@ -1365,9 +1748,19 @@ protected Builder(DeveloperConnectStubSettings settings) { getGitRepositoryLinkSettings, fetchReadWriteTokenSettings, fetchReadTokenSettings, + openGitRepositoryLinkPullRequestSettings, fetchLinkableGitRepositoriesSettings, fetchGitHubInstallationsSettings, fetchGitRefsSettings, + diffGitRepositoryLinkCommitSettings, + fetchGitRepositoryLinkCommitSettings, + fetchGitRepositoryLinkCommitListSettings, + fetchGitRepositoryLinkFileBlameSettings, + fetchGitRepositoryLinkPullRequestSettings, + addGitRepositoryLinkPullRequestCommentSettings, + addGitRepositoryLinkPullRequestReviewCommentSettings, + modifyGitRepositoryLinkPullRequestSettings, + fetchGitRepositoryLinkPullRequestListSettings, listAccountConnectorsSettings, getAccountConnectorSettings, createAccountConnectorSettings, @@ -1464,6 +1857,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .openGitRepositoryLinkPullRequestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .fetchLinkableGitRepositoriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1479,6 +1877,51 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .diffGitRepositoryLinkCommitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .fetchGitRepositoryLinkCommitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .fetchGitRepositoryLinkCommitListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .fetchGitRepositoryLinkFileBlameSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .fetchGitRepositoryLinkPullRequestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .addGitRepositoryLinkPullRequestCommentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .addGitRepositoryLinkPullRequestReviewCommentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .modifyGitRepositoryLinkPullRequestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .fetchGitRepositoryLinkPullRequestListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listAccountConnectorsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1905,6 +2348,12 @@ public UnaryCallSettings.Builder getConnection return fetchReadTokenSettings; } + /** Returns the builder for the settings used for calls to openGitRepositoryLinkPullRequest. */ + public UnaryCallSettings.Builder + openGitRepositoryLinkPullRequestSettings() { + return openGitRepositoryLinkPullRequestSettings; + } + /** Returns the builder for the settings used for calls to fetchLinkableGitRepositories. */ public PagedCallSettings.Builder< FetchLinkableGitRepositoriesRequest, @@ -1928,6 +2377,81 @@ public UnaryCallSettings.Builder getConnection return fetchGitRefsSettings; } + /** Returns the builder for the settings used for calls to diffGitRepositoryLinkCommit. */ + public UnaryCallSettings.Builder< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitSettings() { + return diffGitRepositoryLinkCommitSettings; + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkCommit. */ + public UnaryCallSettings.Builder< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitSettings() { + return fetchGitRepositoryLinkCommitSettings; + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkCommitList. */ + public PagedCallSettings.Builder< + FetchGitRepositoryLinkCommitListRequest, + FetchGitRepositoryLinkCommitListResponse, + FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListSettings() { + return fetchGitRepositoryLinkCommitListSettings; + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkFileBlame. */ + public UnaryCallSettings.Builder< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameSettings() { + return fetchGitRepositoryLinkFileBlameSettings; + } + + /** Returns the builder for the settings used for calls to fetchGitRepositoryLinkPullRequest. */ + public UnaryCallSettings.Builder + fetchGitRepositoryLinkPullRequestSettings() { + return fetchGitRepositoryLinkPullRequestSettings; + } + + /** + * Returns the builder for the settings used for calls to + * addGitRepositoryLinkPullRequestComment. + */ + public UnaryCallSettings.Builder< + AddGitRepositoryLinkPullRequestCommentRequest, PullRequestComment> + addGitRepositoryLinkPullRequestCommentSettings() { + return addGitRepositoryLinkPullRequestCommentSettings; + } + + /** + * Returns the builder for the settings used for calls to + * addGitRepositoryLinkPullRequestReviewComment. + */ + public UnaryCallSettings.Builder< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentSettings() { + return addGitRepositoryLinkPullRequestReviewCommentSettings; + } + + /** + * Returns the builder for the settings used for calls to modifyGitRepositoryLinkPullRequest. + */ + public UnaryCallSettings.Builder + modifyGitRepositoryLinkPullRequestSettings() { + return modifyGitRepositoryLinkPullRequestSettings; + } + + /** + * Returns the builder for the settings used for calls to fetchGitRepositoryLinkPullRequestList. + */ + public PagedCallSettings.Builder< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListSettings() { + return fetchGitRepositoryLinkPullRequestListSettings; + } + /** Returns the builder for the settings used for calls to listAccountConnectors. */ public PagedCallSettings.Builder< ListAccountConnectorsRequest, diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/GrpcDeveloperConnectStub.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/GrpcDeveloperConnectStub.java index 3c8a30e0bb42..9c780cb19aa0 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/GrpcDeveloperConnectStub.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/GrpcDeveloperConnectStub.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1.stub; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -33,6 +35,8 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.developerconnect.v1.AccountConnector; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest; import com.google.cloud.developerconnect.v1.Connection; import com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest; import com.google.cloud.developerconnect.v1.CreateConnectionRequest; @@ -42,12 +46,23 @@ import com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest; import com.google.cloud.developerconnect.v1.DeleteSelfRequest; import com.google.cloud.developerconnect.v1.DeleteUserRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; import com.google.cloud.developerconnect.v1.FetchAccessTokenRequest; import com.google.cloud.developerconnect.v1.FetchAccessTokenResponse; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse; import com.google.cloud.developerconnect.v1.FetchGitRefsRequest; import com.google.cloud.developerconnect.v1.FetchGitRefsResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse; import com.google.cloud.developerconnect.v1.FetchReadTokenRequest; @@ -69,7 +84,12 @@ import com.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse; import com.google.cloud.developerconnect.v1.ListUsersRequest; import com.google.cloud.developerconnect.v1.ListUsersResponse; +import com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.OperationMetadata; +import com.google.cloud.developerconnect.v1.PullRequest; +import com.google.cloud.developerconnect.v1.PullRequestComment; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; import com.google.cloud.developerconnect.v1.StartOAuthRequest; import com.google.cloud.developerconnect.v1.StartOAuthResponse; import com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest; @@ -234,6 +254,19 @@ public class GrpcDeveloperConnectStub extends DeveloperConnectStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + openGitRepositoryLinkPullRequestMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/OpenGitRepositoryLinkPullRequest") + .setRequestMarshaller( + ProtoUtils.marshaller( + OpenGitRepositoryLinkPullRequestRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse> fetchLinkableGitRepositoriesMethodDescriptor = @@ -276,6 +309,151 @@ public class GrpcDeveloperConnectStub extends DeveloperConnectStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/DiffGitRepositoryLinkCommit") + .setRequestMarshaller( + ProtoUtils.marshaller(DiffGitRepositoryLinkCommitRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DiffGitRepositoryLinkCommitResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkCommit") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchGitRepositoryLinkCommitRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchGitRepositoryLinkCommitResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkCommitList") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkCommitListRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkCommitListResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkFileBlame") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkFileBlameRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkFileBlameResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + fetchGitRepositoryLinkPullRequestMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkPullRequest") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkPullRequestRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + AddGitRepositoryLinkPullRequestCommentRequest, PullRequestComment> + addGitRepositoryLinkPullRequestCommentMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/AddGitRepositoryLinkPullRequestComment") + .setRequestMarshaller( + ProtoUtils.marshaller( + AddGitRepositoryLinkPullRequestCommentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PullRequestComment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/AddGitRepositoryLinkPullRequestReviewComment") + .setRequestMarshaller( + ProtoUtils.marshaller( + AddGitRepositoryLinkPullRequestReviewCommentRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(PullRequestReviewComment.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + modifyGitRepositoryLinkPullRequestMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/ModifyGitRepositoryLinkPullRequest") + .setRequestMarshaller( + ProtoUtils.marshaller( + ModifyGitRepositoryLinkPullRequestRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkPullRequestList") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkPullRequestListRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FetchGitRepositoryLinkPullRequestListResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listAccountConnectorsMethodDescriptor = MethodDescriptor.newBuilder() @@ -461,6 +639,8 @@ public class GrpcDeveloperConnectStub extends DeveloperConnectStub { private final UnaryCallable fetchReadWriteTokenCallable; private final UnaryCallable fetchReadTokenCallable; + private final UnaryCallable + openGitRepositoryLinkPullRequestCallable; private final UnaryCallable< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse> fetchLinkableGitRepositoriesCallable; @@ -472,6 +652,38 @@ public class GrpcDeveloperConnectStub extends DeveloperConnectStub { private final UnaryCallable fetchGitRefsCallable; private final UnaryCallable fetchGitRefsPagedCallable; + private final UnaryCallable< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitCallable; + private final UnaryCallable< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitCallable; + private final UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListCallable; + private final UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListPagedCallable; + private final UnaryCallable< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameCallable; + private final UnaryCallable + fetchGitRepositoryLinkPullRequestCallable; + private final UnaryCallable + addGitRepositoryLinkPullRequestCommentCallable; + private final UnaryCallable< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentCallable; + private final UnaryCallable + modifyGitRepositoryLinkPullRequestCallable; + private final UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListCallable; + private final UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListPagedCallable; private final UnaryCallable listAccountConnectorsCallable; private final UnaryCallable @@ -684,6 +896,18 @@ protected GrpcDeveloperConnectStub( }) .setResourceNameExtractor(request -> request.getGitRepositoryLink()) .build(); + GrpcCallSettings + openGitRepositoryLinkPullRequestTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(openGitRepositoryLinkPullRequestMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings fetchLinkableGitRepositoriesTransportSettings = GrpcCallSettings @@ -723,6 +947,132 @@ protected GrpcDeveloperConnectStub( }) .setResourceNameExtractor(request -> request.getGitRepositoryLink()) .build(); + GrpcCallSettings + diffGitRepositoryLinkCommitTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(diffGitRepositoryLinkCommitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + fetchGitRepositoryLinkCommitTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkCommitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkCommitListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkFileBlameMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + fetchGitRepositoryLinkPullRequestTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkPullRequestMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + addGitRepositoryLinkPullRequestCommentTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(addGitRepositoryLinkPullRequestCommentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + addGitRepositoryLinkPullRequestReviewCommentTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(addGitRepositoryLinkPullRequestReviewCommentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + modifyGitRepositoryLinkPullRequestTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(modifyGitRepositoryLinkPullRequestMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkPullRequestListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listAccountConnectorsTransportSettings = GrpcCallSettings @@ -966,6 +1316,11 @@ protected GrpcDeveloperConnectStub( this.fetchReadTokenCallable = callableFactory.createUnaryCallable( fetchReadTokenTransportSettings, settings.fetchReadTokenSettings(), clientContext); + this.openGitRepositoryLinkPullRequestCallable = + callableFactory.createUnaryCallable( + openGitRepositoryLinkPullRequestTransportSettings, + settings.openGitRepositoryLinkPullRequestSettings(), + clientContext); this.fetchLinkableGitRepositoriesCallable = callableFactory.createUnaryCallable( fetchLinkableGitRepositoriesTransportSettings, @@ -987,6 +1342,61 @@ protected GrpcDeveloperConnectStub( this.fetchGitRefsPagedCallable = callableFactory.createPagedCallable( fetchGitRefsTransportSettings, settings.fetchGitRefsSettings(), clientContext); + this.diffGitRepositoryLinkCommitCallable = + callableFactory.createUnaryCallable( + diffGitRepositoryLinkCommitTransportSettings, + settings.diffGitRepositoryLinkCommitSettings(), + clientContext); + this.fetchGitRepositoryLinkCommitCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkCommitTransportSettings, + settings.fetchGitRepositoryLinkCommitSettings(), + clientContext); + this.fetchGitRepositoryLinkCommitListCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkCommitListTransportSettings, + settings.fetchGitRepositoryLinkCommitListSettings(), + clientContext); + this.fetchGitRepositoryLinkCommitListPagedCallable = + callableFactory.createPagedCallable( + fetchGitRepositoryLinkCommitListTransportSettings, + settings.fetchGitRepositoryLinkCommitListSettings(), + clientContext); + this.fetchGitRepositoryLinkFileBlameCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkFileBlameTransportSettings, + settings.fetchGitRepositoryLinkFileBlameSettings(), + clientContext); + this.fetchGitRepositoryLinkPullRequestCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkPullRequestTransportSettings, + settings.fetchGitRepositoryLinkPullRequestSettings(), + clientContext); + this.addGitRepositoryLinkPullRequestCommentCallable = + callableFactory.createUnaryCallable( + addGitRepositoryLinkPullRequestCommentTransportSettings, + settings.addGitRepositoryLinkPullRequestCommentSettings(), + clientContext); + this.addGitRepositoryLinkPullRequestReviewCommentCallable = + callableFactory.createUnaryCallable( + addGitRepositoryLinkPullRequestReviewCommentTransportSettings, + settings.addGitRepositoryLinkPullRequestReviewCommentSettings(), + clientContext); + this.modifyGitRepositoryLinkPullRequestCallable = + callableFactory.createUnaryCallable( + modifyGitRepositoryLinkPullRequestTransportSettings, + settings.modifyGitRepositoryLinkPullRequestSettings(), + clientContext); + this.fetchGitRepositoryLinkPullRequestListCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkPullRequestListTransportSettings, + settings.fetchGitRepositoryLinkPullRequestListSettings(), + clientContext); + this.fetchGitRepositoryLinkPullRequestListPagedCallable = + callableFactory.createPagedCallable( + fetchGitRepositoryLinkPullRequestListTransportSettings, + settings.fetchGitRepositoryLinkPullRequestListSettings(), + clientContext); this.listAccountConnectorsCallable = callableFactory.createUnaryCallable( listAccountConnectorsTransportSettings, @@ -1191,6 +1601,12 @@ public UnaryCallable fetchReadTok return fetchReadTokenCallable; } + @Override + public UnaryCallable + openGitRepositoryLinkPullRequestCallable() { + return openGitRepositoryLinkPullRequestCallable; + } + @Override public UnaryCallable fetchLinkableGitRepositoriesCallable() { @@ -1220,6 +1636,80 @@ public UnaryCallable fetchGitRef return fetchGitRefsPagedCallable; } + @Override + public UnaryCallable + diffGitRepositoryLinkCommitCallable() { + return diffGitRepositoryLinkCommitCallable; + } + + @Override + public UnaryCallable + fetchGitRepositoryLinkCommitCallable() { + return fetchGitRepositoryLinkCommitCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListCallable() { + return fetchGitRepositoryLinkCommitListCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListPagedCallable() { + return fetchGitRepositoryLinkCommitListPagedCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameCallable() { + return fetchGitRepositoryLinkFileBlameCallable; + } + + @Override + public UnaryCallable + fetchGitRepositoryLinkPullRequestCallable() { + return fetchGitRepositoryLinkPullRequestCallable; + } + + @Override + public UnaryCallable + addGitRepositoryLinkPullRequestCommentCallable() { + return addGitRepositoryLinkPullRequestCommentCallable; + } + + @Override + public UnaryCallable< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentCallable() { + return addGitRepositoryLinkPullRequestReviewCommentCallable; + } + + @Override + public UnaryCallable + modifyGitRepositoryLinkPullRequestCallable() { + return modifyGitRepositoryLinkPullRequestCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListCallable() { + return fetchGitRepositoryLinkPullRequestListCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListPagedCallable() { + return fetchGitRepositoryLinkPullRequestListPagedCallable; + } + @Override public UnaryCallable listAccountConnectorsCallable() { diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/HttpJsonDeveloperConnectStub.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/HttpJsonDeveloperConnectStub.java index c8ed702d0893..abe55fc5d35b 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/HttpJsonDeveloperConnectStub.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/HttpJsonDeveloperConnectStub.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1.stub; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -41,6 +43,8 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.developerconnect.v1.AccountConnector; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest; import com.google.cloud.developerconnect.v1.Connection; import com.google.cloud.developerconnect.v1.CreateAccountConnectorRequest; import com.google.cloud.developerconnect.v1.CreateConnectionRequest; @@ -50,12 +54,23 @@ import com.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest; import com.google.cloud.developerconnect.v1.DeleteSelfRequest; import com.google.cloud.developerconnect.v1.DeleteUserRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; import com.google.cloud.developerconnect.v1.FetchAccessTokenRequest; import com.google.cloud.developerconnect.v1.FetchAccessTokenResponse; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest; import com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse; import com.google.cloud.developerconnect.v1.FetchGitRefsRequest; import com.google.cloud.developerconnect.v1.FetchGitRefsResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest; import com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse; import com.google.cloud.developerconnect.v1.FetchReadTokenRequest; @@ -77,7 +92,12 @@ import com.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse; import com.google.cloud.developerconnect.v1.ListUsersRequest; import com.google.cloud.developerconnect.v1.ListUsersResponse; +import com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest; import com.google.cloud.developerconnect.v1.OperationMetadata; +import com.google.cloud.developerconnect.v1.PullRequest; +import com.google.cloud.developerconnect.v1.PullRequestComment; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; import com.google.cloud.developerconnect.v1.StartOAuthRequest; import com.google.cloud.developerconnect.v1.StartOAuthResponse; import com.google.cloud.developerconnect.v1.UpdateAccountConnectorRequest; @@ -575,6 +595,44 @@ public class HttpJsonDeveloperConnectStub extends DeveloperConnectStub { .build()) .build(); + private static final ApiMethodDescriptor + openGitRepositoryLinkPullRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/OpenGitRepositoryLinkPullRequest") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:openPullRequest", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PullRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse> fetchLinkableGitRepositoriesMethodDescriptor = @@ -690,6 +748,381 @@ public class HttpJsonDeveloperConnectStub extends DeveloperConnectStub { .build()) .build(); + private static final ApiMethodDescriptor< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/DiffGitRepositoryLinkCommit") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:diffCommit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "baseSha", request.getBaseSha()); + serializer.putQueryParam(fields, "headSha", request.getHeadSha()); + serializer.putQueryParam( + fields, "pathFilters", request.getPathFiltersList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DiffGitRepositoryLinkCommitResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkCommit") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchCommit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "commitSha", request.getCommitSha()); + serializer.putQueryParam( + fields, "pathFilters", request.getPathFiltersList()); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchGitRepositoryLinkCommitResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkCommitList") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchCommitList", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "ref", request.getRef()); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + FetchGitRepositoryLinkCommitListResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkFileBlame") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchFileBlame", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "firstLine", request.getFirstLine()); + serializer.putQueryParam(fields, "lastLine", request.getLastLine()); + serializer.putQueryParam(fields, "path", request.getPath()); + serializer.putQueryParam(fields, "ref", request.getRef()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + FetchGitRepositoryLinkFileBlameResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + fetchGitRepositoryLinkPullRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkPullRequest") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchPullRequest", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "pullRequestId", request.getPullRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PullRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + AddGitRepositoryLinkPullRequestCommentRequest, PullRequestComment> + addGitRepositoryLinkPullRequestCommentMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/AddGitRepositoryLinkPullRequestComment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:addPullRequestComment", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PullRequestComment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/AddGitRepositoryLinkPullRequestReviewComment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:addPullRequestReviewComment", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PullRequestReviewComment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + modifyGitRepositoryLinkPullRequestMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/ModifyGitRepositoryLinkPullRequest") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:modifyPullRequest", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PullRequest.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.developerconnect.v1.DeveloperConnect/FetchGitRepositoryLinkPullRequestList") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchPullRequestList", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + FetchGitRepositoryLinkPullRequestListResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< ListAccountConnectorsRequest, ListAccountConnectorsResponse> listAccountConnectorsMethodDescriptor = @@ -1270,6 +1703,8 @@ public class HttpJsonDeveloperConnectStub extends DeveloperConnectStub { private final UnaryCallable fetchReadWriteTokenCallable; private final UnaryCallable fetchReadTokenCallable; + private final UnaryCallable + openGitRepositoryLinkPullRequestCallable; private final UnaryCallable< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse> fetchLinkableGitRepositoriesCallable; @@ -1281,6 +1716,38 @@ public class HttpJsonDeveloperConnectStub extends DeveloperConnectStub { private final UnaryCallable fetchGitRefsCallable; private final UnaryCallable fetchGitRefsPagedCallable; + private final UnaryCallable< + DiffGitRepositoryLinkCommitRequest, DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommitCallable; + private final UnaryCallable< + FetchGitRepositoryLinkCommitRequest, FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommitCallable; + private final UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListCallable; + private final UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListPagedCallable; + private final UnaryCallable< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameCallable; + private final UnaryCallable + fetchGitRepositoryLinkPullRequestCallable; + private final UnaryCallable + addGitRepositoryLinkPullRequestCommentCallable; + private final UnaryCallable< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentCallable; + private final UnaryCallable + modifyGitRepositoryLinkPullRequestCallable; + private final UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListCallable; + private final UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListPagedCallable; private final UnaryCallable listAccountConnectorsCallable; private final UnaryCallable @@ -1531,6 +1998,19 @@ protected HttpJsonDeveloperConnectStub( }) .setResourceNameExtractor(request -> request.getGitRepositoryLink()) .build(); + HttpJsonCallSettings + openGitRepositoryLinkPullRequestTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(openGitRepositoryLinkPullRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings fetchLinkableGitRepositoriesTransportSettings = HttpJsonCallSettings @@ -1573,6 +2053,143 @@ protected HttpJsonDeveloperConnectStub( }) .setResourceNameExtractor(request -> request.getGitRepositoryLink()) .build(); + HttpJsonCallSettings + diffGitRepositoryLinkCommitTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(diffGitRepositoryLinkCommitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + fetchGitRepositoryLinkCommitTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkCommitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkCommitListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkFileBlameMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + fetchGitRepositoryLinkPullRequestTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkPullRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + addGitRepositoryLinkPullRequestCommentTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(addGitRepositoryLinkPullRequestCommentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(addGitRepositoryLinkPullRequestReviewCommentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + modifyGitRepositoryLinkPullRequestTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(modifyGitRepositoryLinkPullRequestMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(fetchGitRepositoryLinkPullRequestListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listAccountConnectorsTransportSettings = HttpJsonCallSettings @@ -1831,6 +2448,11 @@ protected HttpJsonDeveloperConnectStub( this.fetchReadTokenCallable = callableFactory.createUnaryCallable( fetchReadTokenTransportSettings, settings.fetchReadTokenSettings(), clientContext); + this.openGitRepositoryLinkPullRequestCallable = + callableFactory.createUnaryCallable( + openGitRepositoryLinkPullRequestTransportSettings, + settings.openGitRepositoryLinkPullRequestSettings(), + clientContext); this.fetchLinkableGitRepositoriesCallable = callableFactory.createUnaryCallable( fetchLinkableGitRepositoriesTransportSettings, @@ -1852,6 +2474,61 @@ protected HttpJsonDeveloperConnectStub( this.fetchGitRefsPagedCallable = callableFactory.createPagedCallable( fetchGitRefsTransportSettings, settings.fetchGitRefsSettings(), clientContext); + this.diffGitRepositoryLinkCommitCallable = + callableFactory.createUnaryCallable( + diffGitRepositoryLinkCommitTransportSettings, + settings.diffGitRepositoryLinkCommitSettings(), + clientContext); + this.fetchGitRepositoryLinkCommitCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkCommitTransportSettings, + settings.fetchGitRepositoryLinkCommitSettings(), + clientContext); + this.fetchGitRepositoryLinkCommitListCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkCommitListTransportSettings, + settings.fetchGitRepositoryLinkCommitListSettings(), + clientContext); + this.fetchGitRepositoryLinkCommitListPagedCallable = + callableFactory.createPagedCallable( + fetchGitRepositoryLinkCommitListTransportSettings, + settings.fetchGitRepositoryLinkCommitListSettings(), + clientContext); + this.fetchGitRepositoryLinkFileBlameCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkFileBlameTransportSettings, + settings.fetchGitRepositoryLinkFileBlameSettings(), + clientContext); + this.fetchGitRepositoryLinkPullRequestCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkPullRequestTransportSettings, + settings.fetchGitRepositoryLinkPullRequestSettings(), + clientContext); + this.addGitRepositoryLinkPullRequestCommentCallable = + callableFactory.createUnaryCallable( + addGitRepositoryLinkPullRequestCommentTransportSettings, + settings.addGitRepositoryLinkPullRequestCommentSettings(), + clientContext); + this.addGitRepositoryLinkPullRequestReviewCommentCallable = + callableFactory.createUnaryCallable( + addGitRepositoryLinkPullRequestReviewCommentTransportSettings, + settings.addGitRepositoryLinkPullRequestReviewCommentSettings(), + clientContext); + this.modifyGitRepositoryLinkPullRequestCallable = + callableFactory.createUnaryCallable( + modifyGitRepositoryLinkPullRequestTransportSettings, + settings.modifyGitRepositoryLinkPullRequestSettings(), + clientContext); + this.fetchGitRepositoryLinkPullRequestListCallable = + callableFactory.createUnaryCallable( + fetchGitRepositoryLinkPullRequestListTransportSettings, + settings.fetchGitRepositoryLinkPullRequestListSettings(), + clientContext); + this.fetchGitRepositoryLinkPullRequestListPagedCallable = + callableFactory.createPagedCallable( + fetchGitRepositoryLinkPullRequestListTransportSettings, + settings.fetchGitRepositoryLinkPullRequestListSettings(), + clientContext); this.listAccountConnectorsCallable = callableFactory.createUnaryCallable( listAccountConnectorsTransportSettings, @@ -1964,9 +2641,19 @@ public static List getMethodDescriptors() { methodDescriptors.add(getGitRepositoryLinkMethodDescriptor); methodDescriptors.add(fetchReadWriteTokenMethodDescriptor); methodDescriptors.add(fetchReadTokenMethodDescriptor); + methodDescriptors.add(openGitRepositoryLinkPullRequestMethodDescriptor); methodDescriptors.add(fetchLinkableGitRepositoriesMethodDescriptor); methodDescriptors.add(fetchGitHubInstallationsMethodDescriptor); methodDescriptors.add(fetchGitRefsMethodDescriptor); + methodDescriptors.add(diffGitRepositoryLinkCommitMethodDescriptor); + methodDescriptors.add(fetchGitRepositoryLinkCommitMethodDescriptor); + methodDescriptors.add(fetchGitRepositoryLinkCommitListMethodDescriptor); + methodDescriptors.add(fetchGitRepositoryLinkFileBlameMethodDescriptor); + methodDescriptors.add(fetchGitRepositoryLinkPullRequestMethodDescriptor); + methodDescriptors.add(addGitRepositoryLinkPullRequestCommentMethodDescriptor); + methodDescriptors.add(addGitRepositoryLinkPullRequestReviewCommentMethodDescriptor); + methodDescriptors.add(modifyGitRepositoryLinkPullRequestMethodDescriptor); + methodDescriptors.add(fetchGitRepositoryLinkPullRequestListMethodDescriptor); methodDescriptors.add(listAccountConnectorsMethodDescriptor); methodDescriptors.add(getAccountConnectorMethodDescriptor); methodDescriptors.add(createAccountConnectorMethodDescriptor); @@ -2090,6 +2777,12 @@ public UnaryCallable fetchReadTok return fetchReadTokenCallable; } + @Override + public UnaryCallable + openGitRepositoryLinkPullRequestCallable() { + return openGitRepositoryLinkPullRequestCallable; + } + @Override public UnaryCallable fetchLinkableGitRepositoriesCallable() { @@ -2119,6 +2812,80 @@ public UnaryCallable fetchGitRef return fetchGitRefsPagedCallable; } + @Override + public UnaryCallable + diffGitRepositoryLinkCommitCallable() { + return diffGitRepositoryLinkCommitCallable; + } + + @Override + public UnaryCallable + fetchGitRepositoryLinkCommitCallable() { + return fetchGitRepositoryLinkCommitCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitListCallable() { + return fetchGitRepositoryLinkCommitListCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkCommitListRequest, FetchGitRepositoryLinkCommitListPagedResponse> + fetchGitRepositoryLinkCommitListPagedCallable() { + return fetchGitRepositoryLinkCommitListPagedCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkFileBlameRequest, FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlameCallable() { + return fetchGitRepositoryLinkFileBlameCallable; + } + + @Override + public UnaryCallable + fetchGitRepositoryLinkPullRequestCallable() { + return fetchGitRepositoryLinkPullRequestCallable; + } + + @Override + public UnaryCallable + addGitRepositoryLinkPullRequestCommentCallable() { + return addGitRepositoryLinkPullRequestCommentCallable; + } + + @Override + public UnaryCallable< + AddGitRepositoryLinkPullRequestReviewCommentRequest, PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewCommentCallable() { + return addGitRepositoryLinkPullRequestReviewCommentCallable; + } + + @Override + public UnaryCallable + modifyGitRepositoryLinkPullRequestCallable() { + return modifyGitRepositoryLinkPullRequestCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestListCallable() { + return fetchGitRepositoryLinkPullRequestListCallable; + } + + @Override + public UnaryCallable< + FetchGitRepositoryLinkPullRequestListRequest, + FetchGitRepositoryLinkPullRequestListPagedResponse> + fetchGitRepositoryLinkPullRequestListPagedCallable() { + return fetchGitRepositoryLinkPullRequestListPagedCallable; + } + @Override public UnaryCallable listAccountConnectorsCallable() { diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json index 07c7d76613fb..6885eed6a302 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json +++ b/java-developerconnect/google-cloud-developerconnect/src/main/resources/META-INF/native-image/com.google.cloud.developerconnect.v1/reflect-config.json @@ -539,6 +539,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.AppHubService", "queryAllDeclaredConstructors": true, @@ -647,6 +683,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.BlameRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.BlameRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.CommitView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.Connection", "queryAllDeclaredConstructors": true, @@ -890,6 +953,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.ExchangeError", "queryAllDeclaredConstructors": true, @@ -1043,6 +1142,168 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest", "queryAllDeclaredConstructors": true, @@ -1169,6 +1430,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.FileDiff", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.FileDiff$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.FinishOAuthRequest", "queryAllDeclaredConstructors": true, @@ -1862,6 +2141,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.OAuthCredential", "queryAllDeclaredConstructors": true, @@ -1880,6 +2186,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -1934,6 +2258,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequest$Mergeability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequest$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequestComment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequestComment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequestReviewComment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequestReviewComment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.PullRequestReviewComment$DiffSide", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.RuntimeConfig", "queryAllDeclaredConstructors": true, @@ -1961,6 +2366,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.developerconnect.v1.SCMCommit", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.developerconnect.v1.SCMCommit$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.developerconnect.v1.SecureSourceManagerInstanceConfig", "queryAllDeclaredConstructors": true, diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java index 833c6c1f0d2f..a0e76b34c769 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientHttpJsonTest.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -1270,6 +1272,126 @@ public void fetchReadTokenExceptionTest2() throws Exception { } } + @Test + public void openGitRepositoryLinkPullRequestTest() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + PullRequest pullRequest = PullRequest.newBuilder().build(); + + PullRequest actualResponse = client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void openGitRepositoryLinkPullRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + PullRequest pullRequest = PullRequest.newBuilder().build(); + client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void openGitRepositoryLinkPullRequestTest2() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + PullRequest pullRequest = PullRequest.newBuilder().build(); + + PullRequest actualResponse = client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void openGitRepositoryLinkPullRequestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + PullRequest pullRequest = PullRequest.newBuilder().build(); + client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void fetchLinkableGitRepositoriesTest() throws Exception { LinkableGitRepository responsesElement = LinkableGitRepository.newBuilder().build(); @@ -1572,6 +1694,1008 @@ public void fetchGitRefsExceptionTest2() throws Exception { } } + @Test + public void diffGitRepositoryLinkCommitTest() throws Exception { + DiffGitRepositoryLinkCommitResponse expectedResponse = + DiffGitRepositoryLinkCommitResponse.newBuilder() + .addAllFiles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + + DiffGitRepositoryLinkCommitResponse actualResponse = + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void diffGitRepositoryLinkCommitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void diffGitRepositoryLinkCommitTest2() throws Exception { + DiffGitRepositoryLinkCommitResponse expectedResponse = + DiffGitRepositoryLinkCommitResponse.newBuilder() + .addAllFiles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + + DiffGitRepositoryLinkCommitResponse actualResponse = + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void diffGitRepositoryLinkCommitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitTest() throws Exception { + FetchGitRepositoryLinkCommitResponse expectedResponse = + FetchGitRepositoryLinkCommitResponse.newBuilder() + .setCommit(SCMCommit.newBuilder().build()) + .addAllFiles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String commitSha = "commitSha-1491174411"; + + FetchGitRepositoryLinkCommitResponse actualResponse = + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkCommitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String commitSha = "commitSha-1491174411"; + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitTest2() throws Exception { + FetchGitRepositoryLinkCommitResponse expectedResponse = + FetchGitRepositoryLinkCommitResponse.newBuilder() + .setCommit(SCMCommit.newBuilder().build()) + .addAllFiles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String commitSha = "commitSha-1491174411"; + + FetchGitRepositoryLinkCommitResponse actualResponse = + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkCommitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String commitSha = "commitSha-1491174411"; + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitListTest() throws Exception { + SCMCommit responsesElement = SCMCommit.newBuilder().build(); + FetchGitRepositoryLinkCommitListResponse expectedResponse = + FetchGitRepositoryLinkCommitListResponse.newBuilder() + .setNextPageToken("") + .addAllCommits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + + FetchGitRepositoryLinkCommitListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkCommitList(name, ref); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommitsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkCommitListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + client.fetchGitRepositoryLinkCommitList(name, ref); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitListTest2() throws Exception { + SCMCommit responsesElement = SCMCommit.newBuilder().build(); + FetchGitRepositoryLinkCommitListResponse expectedResponse = + FetchGitRepositoryLinkCommitListResponse.newBuilder() + .setNextPageToken("") + .addAllCommits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String ref = "ref112787"; + + FetchGitRepositoryLinkCommitListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkCommitList(name, ref); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommitsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkCommitListExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String ref = "ref112787"; + client.fetchGitRepositoryLinkCommitList(name, ref); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkFileBlameTest() throws Exception { + FetchGitRepositoryLinkFileBlameResponse expectedResponse = + FetchGitRepositoryLinkFileBlameResponse.newBuilder() + .addAllRanges(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + String path = "path3433509"; + + FetchGitRepositoryLinkFileBlameResponse actualResponse = + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkFileBlameExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + String path = "path3433509"; + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkFileBlameTest2() throws Exception { + FetchGitRepositoryLinkFileBlameResponse expectedResponse = + FetchGitRepositoryLinkFileBlameResponse.newBuilder() + .addAllRanges(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String ref = "ref112787"; + String path = "path3433509"; + + FetchGitRepositoryLinkFileBlameResponse actualResponse = + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkFileBlameExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String ref = "ref112787"; + String path = "path3433509"; + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestTest() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkPullRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestTest2() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkPullRequestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestCommentTest() throws Exception { + PullRequestComment expectedResponse = + PullRequestComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + + PullRequestComment actualResponse = + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addGitRepositoryLinkPullRequestCommentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestCommentTest2() throws Exception { + PullRequestComment expectedResponse = + PullRequestComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + + PullRequestComment actualResponse = + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addGitRepositoryLinkPullRequestCommentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentTest() throws Exception { + PullRequestReviewComment expectedResponse = + PullRequestReviewComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setPath("path3433509") + .setFirstLine(-161037277) + .setLastLine(2013070333) + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCommitId("commitId-602292046") + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + + PullRequestReviewComment actualResponse = + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentTest2() throws Exception { + PullRequestReviewComment expectedResponse = + PullRequestReviewComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setPath("path3433509") + .setFirstLine(-161037277) + .setLastLine(2013070333) + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCommitId("commitId-602292046") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + + PullRequestReviewComment actualResponse = + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyGitRepositoryLinkPullRequestTest() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyGitRepositoryLinkPullRequestExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyGitRepositoryLinkPullRequestTest2() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyGitRepositoryLinkPullRequestExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + String pullRequestId = "pullRequestId1573471045"; + client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestListTest() throws Exception { + PullRequest responsesElement = PullRequest.newBuilder().build(); + FetchGitRepositoryLinkPullRequestListResponse expectedResponse = + FetchGitRepositoryLinkPullRequestListResponse.newBuilder() + .setNextPageToken("") + .addAllPullRequests(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + + FetchGitRepositoryLinkPullRequestListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkPullRequestList(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPullRequestsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkPullRequestListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + client.fetchGitRepositoryLinkPullRequestList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestListTest2() throws Exception { + PullRequest responsesElement = PullRequest.newBuilder().build(); + FetchGitRepositoryLinkPullRequestListResponse expectedResponse = + FetchGitRepositoryLinkPullRequestListResponse.newBuilder() + .setNextPageToken("") + .addAllPullRequests(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + + FetchGitRepositoryLinkPullRequestListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkPullRequestList(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPullRequestsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void fetchGitRepositoryLinkPullRequestListExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-756/locations/location-756/connections/connection-756/gitRepositoryLinks/gitRepositoryLink-756"; + client.fetchGitRepositoryLinkPullRequestList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listAccountConnectorsTest() throws Exception { AccountConnector responsesElement = AccountConnector.newBuilder().build(); diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java index 6dae347e86cd..67273ade0482 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/DeveloperConnectClientTest.java @@ -17,6 +17,8 @@ package com.google.cloud.developerconnect.v1; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRefsPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkCommitListPagedResponse; +import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchGitRepositoryLinkPullRequestListPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.FetchLinkableGitRepositoriesPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListAccountConnectorsPagedResponse; import static com.google.cloud.developerconnect.v1.DeveloperConnectClient.ListConnectionsPagedResponse; @@ -1157,6 +1159,116 @@ public void fetchReadTokenExceptionTest2() throws Exception { } } + @Test + public void openGitRepositoryLinkPullRequestTest() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + PullRequest pullRequest = PullRequest.newBuilder().build(); + + PullRequest actualResponse = client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + OpenGitRepositoryLinkPullRequestRequest actualRequest = + ((OpenGitRepositoryLinkPullRequestRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(pullRequest, actualRequest.getPullRequest()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void openGitRepositoryLinkPullRequestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + PullRequest pullRequest = PullRequest.newBuilder().build(); + client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void openGitRepositoryLinkPullRequestTest2() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + PullRequest pullRequest = PullRequest.newBuilder().build(); + + PullRequest actualResponse = client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + OpenGitRepositoryLinkPullRequestRequest actualRequest = + ((OpenGitRepositoryLinkPullRequestRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(pullRequest, actualRequest.getPullRequest()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void openGitRepositoryLinkPullRequestExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + PullRequest pullRequest = PullRequest.newBuilder().build(); + client.openGitRepositoryLinkPullRequest(name, pullRequest); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void fetchLinkableGitRepositoriesTest() throws Exception { LinkableGitRepository responsesElement = LinkableGitRepository.newBuilder().build(); @@ -1425,6 +1537,924 @@ public void fetchGitRefsExceptionTest2() throws Exception { } } + @Test + public void diffGitRepositoryLinkCommitTest() throws Exception { + DiffGitRepositoryLinkCommitResponse expectedResponse = + DiffGitRepositoryLinkCommitResponse.newBuilder() + .addAllFiles(new ArrayList()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + + DiffGitRepositoryLinkCommitResponse actualResponse = + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiffGitRepositoryLinkCommitRequest actualRequest = + ((DiffGitRepositoryLinkCommitRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(baseSha, actualRequest.getBaseSha()); + Assert.assertEquals(headSha, actualRequest.getHeadSha()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void diffGitRepositoryLinkCommitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void diffGitRepositoryLinkCommitTest2() throws Exception { + DiffGitRepositoryLinkCommitResponse expectedResponse = + DiffGitRepositoryLinkCommitResponse.newBuilder() + .addAllFiles(new ArrayList()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + + DiffGitRepositoryLinkCommitResponse actualResponse = + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiffGitRepositoryLinkCommitRequest actualRequest = + ((DiffGitRepositoryLinkCommitRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(baseSha, actualRequest.getBaseSha()); + Assert.assertEquals(headSha, actualRequest.getHeadSha()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void diffGitRepositoryLinkCommitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + client.diffGitRepositoryLinkCommit(name, baseSha, headSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitTest() throws Exception { + FetchGitRepositoryLinkCommitResponse expectedResponse = + FetchGitRepositoryLinkCommitResponse.newBuilder() + .setCommit(SCMCommit.newBuilder().build()) + .addAllFiles(new ArrayList()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String commitSha = "commitSha-1491174411"; + + FetchGitRepositoryLinkCommitResponse actualResponse = + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkCommitRequest actualRequest = + ((FetchGitRepositoryLinkCommitRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(commitSha, actualRequest.getCommitSha()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkCommitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String commitSha = "commitSha-1491174411"; + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitTest2() throws Exception { + FetchGitRepositoryLinkCommitResponse expectedResponse = + FetchGitRepositoryLinkCommitResponse.newBuilder() + .setCommit(SCMCommit.newBuilder().build()) + .addAllFiles(new ArrayList()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String commitSha = "commitSha-1491174411"; + + FetchGitRepositoryLinkCommitResponse actualResponse = + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkCommitRequest actualRequest = + ((FetchGitRepositoryLinkCommitRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(commitSha, actualRequest.getCommitSha()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkCommitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String commitSha = "commitSha-1491174411"; + client.fetchGitRepositoryLinkCommit(name, commitSha); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitListTest() throws Exception { + SCMCommit responsesElement = SCMCommit.newBuilder().build(); + FetchGitRepositoryLinkCommitListResponse expectedResponse = + FetchGitRepositoryLinkCommitListResponse.newBuilder() + .setNextPageToken("") + .addAllCommits(Arrays.asList(responsesElement)) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + + FetchGitRepositoryLinkCommitListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkCommitList(name, ref); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommitsList().get(0), resources.get(0)); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkCommitListRequest actualRequest = + ((FetchGitRepositoryLinkCommitListRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(ref, actualRequest.getRef()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkCommitListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + client.fetchGitRepositoryLinkCommitList(name, ref); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkCommitListTest2() throws Exception { + SCMCommit responsesElement = SCMCommit.newBuilder().build(); + FetchGitRepositoryLinkCommitListResponse expectedResponse = + FetchGitRepositoryLinkCommitListResponse.newBuilder() + .setNextPageToken("") + .addAllCommits(Arrays.asList(responsesElement)) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String ref = "ref112787"; + + FetchGitRepositoryLinkCommitListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkCommitList(name, ref); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommitsList().get(0), resources.get(0)); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkCommitListRequest actualRequest = + ((FetchGitRepositoryLinkCommitListRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(ref, actualRequest.getRef()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkCommitListExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String ref = "ref112787"; + client.fetchGitRepositoryLinkCommitList(name, ref); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkFileBlameTest() throws Exception { + FetchGitRepositoryLinkFileBlameResponse expectedResponse = + FetchGitRepositoryLinkFileBlameResponse.newBuilder() + .addAllRanges(new ArrayList()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + String path = "path3433509"; + + FetchGitRepositoryLinkFileBlameResponse actualResponse = + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkFileBlameRequest actualRequest = + ((FetchGitRepositoryLinkFileBlameRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(ref, actualRequest.getRef()); + Assert.assertEquals(path, actualRequest.getPath()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkFileBlameExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + String path = "path3433509"; + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkFileBlameTest2() throws Exception { + FetchGitRepositoryLinkFileBlameResponse expectedResponse = + FetchGitRepositoryLinkFileBlameResponse.newBuilder() + .addAllRanges(new ArrayList()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String ref = "ref112787"; + String path = "path3433509"; + + FetchGitRepositoryLinkFileBlameResponse actualResponse = + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkFileBlameRequest actualRequest = + ((FetchGitRepositoryLinkFileBlameRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(ref, actualRequest.getRef()); + Assert.assertEquals(path, actualRequest.getPath()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkFileBlameExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String ref = "ref112787"; + String path = "path3433509"; + client.fetchGitRepositoryLinkFileBlame(name, ref, path); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestTest() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkPullRequestRequest actualRequest = + ((FetchGitRepositoryLinkPullRequestRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkPullRequestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestTest2() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkPullRequestRequest actualRequest = + ((FetchGitRepositoryLinkPullRequestRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkPullRequestExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + client.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestCommentTest() throws Exception { + PullRequestComment expectedResponse = + PullRequestComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + + PullRequestComment actualResponse = + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddGitRepositoryLinkPullRequestCommentRequest actualRequest = + ((AddGitRepositoryLinkPullRequestCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertEquals(comment, actualRequest.getComment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addGitRepositoryLinkPullRequestCommentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestCommentTest2() throws Exception { + PullRequestComment expectedResponse = + PullRequestComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + + PullRequestComment actualResponse = + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddGitRepositoryLinkPullRequestCommentRequest actualRequest = + ((AddGitRepositoryLinkPullRequestCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertEquals(comment, actualRequest.getComment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addGitRepositoryLinkPullRequestCommentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentTest() throws Exception { + PullRequestReviewComment expectedResponse = + PullRequestReviewComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setPath("path3433509") + .setFirstLine(-161037277) + .setLastLine(2013070333) + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCommitId("commitId-602292046") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + + PullRequestReviewComment actualResponse = + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddGitRepositoryLinkPullRequestReviewCommentRequest actualRequest = + ((AddGitRepositoryLinkPullRequestReviewCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertEquals(comment, actualRequest.getComment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentTest2() throws Exception { + PullRequestReviewComment expectedResponse = + PullRequestReviewComment.newBuilder() + .setId("id3355") + .setBody("body3029410") + .setPath("path3433509") + .setFirstLine(-161037277) + .setLastLine(2013070333) + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCommitId("commitId-602292046") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + + PullRequestReviewComment actualResponse = + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddGitRepositoryLinkPullRequestReviewCommentRequest actualRequest = + ((AddGitRepositoryLinkPullRequestReviewCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertEquals(comment, actualRequest.getComment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addGitRepositoryLinkPullRequestReviewCommentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + client.addGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyGitRepositoryLinkPullRequestTest() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ModifyGitRepositoryLinkPullRequestRequest actualRequest = + ((ModifyGitRepositoryLinkPullRequestRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void modifyGitRepositoryLinkPullRequestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyGitRepositoryLinkPullRequestTest2() throws Exception { + PullRequest expectedResponse = + PullRequest.newBuilder() + .setId("id3355") + .setTitle("title110371416") + .setBody("body3029410") + .setHeadRef("headRef795289235") + .setBaseRef("baseRef-332628990") + .setAuthor("author-1406328437") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMergeTime(Timestamp.newBuilder().build()) + .setCloseTime(Timestamp.newBuilder().build()) + .setDeclineTime(Timestamp.newBuilder().build()) + .setHtmlUrl("htmlUrl1236050372") + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + + PullRequest actualResponse = client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ModifyGitRepositoryLinkPullRequestRequest actualRequest = + ((ModifyGitRepositoryLinkPullRequestRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(pullRequestId, actualRequest.getPullRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void modifyGitRepositoryLinkPullRequestExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + String pullRequestId = "pullRequestId1573471045"; + client.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestListTest() throws Exception { + PullRequest responsesElement = PullRequest.newBuilder().build(); + FetchGitRepositoryLinkPullRequestListResponse expectedResponse = + FetchGitRepositoryLinkPullRequestListResponse.newBuilder() + .setNextPageToken("") + .addAllPullRequests(Arrays.asList(responsesElement)) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + + FetchGitRepositoryLinkPullRequestListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkPullRequestList(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPullRequestsList().get(0), resources.get(0)); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkPullRequestListRequest actualRequest = + ((FetchGitRepositoryLinkPullRequestListRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkPullRequestListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + client.fetchGitRepositoryLinkPullRequestList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchGitRepositoryLinkPullRequestListTest2() throws Exception { + PullRequest responsesElement = PullRequest.newBuilder().build(); + FetchGitRepositoryLinkPullRequestListResponse expectedResponse = + FetchGitRepositoryLinkPullRequestListResponse.newBuilder() + .setNextPageToken("") + .addAllPullRequests(Arrays.asList(responsesElement)) + .build(); + mockDeveloperConnect.addResponse(expectedResponse); + + String name = "name3373707"; + + FetchGitRepositoryLinkPullRequestListPagedResponse pagedListResponse = + client.fetchGitRepositoryLinkPullRequestList(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPullRequestsList().get(0), resources.get(0)); + + List actualRequests = mockDeveloperConnect.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchGitRepositoryLinkPullRequestListRequest actualRequest = + ((FetchGitRepositoryLinkPullRequestListRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchGitRepositoryLinkPullRequestListExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeveloperConnect.addException(exception); + + try { + String name = "name3373707"; + client.fetchGitRepositoryLinkPullRequestList(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listAccountConnectorsTest() throws Exception { AccountConnector responsesElement = AccountConnector.newBuilder().build(); diff --git a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/MockDeveloperConnectImpl.java b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/MockDeveloperConnectImpl.java index 863a807baeaf..dbb99d78494b 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/MockDeveloperConnectImpl.java +++ b/java-developerconnect/google-cloud-developerconnect/src/test/java/com/google/cloud/developerconnect/v1/MockDeveloperConnectImpl.java @@ -296,6 +296,29 @@ public void fetchReadToken( } } + @Override + public void openGitRepositoryLinkPullRequest( + OpenGitRepositoryLinkPullRequestRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PullRequest) { + requests.add(request); + responseObserver.onNext(((PullRequest) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method OpenGitRepositoryLinkPullRequest," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PullRequest.class.getName(), + Exception.class.getName()))); + } + } + @Override public void fetchLinkableGitRepositories( FetchLinkableGitRepositoriesRequest request, @@ -363,6 +386,213 @@ public void fetchGitRefs( } } + @Override + public void diffGitRepositoryLinkCommit( + DiffGitRepositoryLinkCommitRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DiffGitRepositoryLinkCommitResponse) { + requests.add(request); + responseObserver.onNext(((DiffGitRepositoryLinkCommitResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DiffGitRepositoryLinkCommit, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + DiffGitRepositoryLinkCommitResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchGitRepositoryLinkCommit( + FetchGitRepositoryLinkCommitRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchGitRepositoryLinkCommitResponse) { + requests.add(request); + responseObserver.onNext(((FetchGitRepositoryLinkCommitResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchGitRepositoryLinkCommit, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchGitRepositoryLinkCommitResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchGitRepositoryLinkCommitList( + FetchGitRepositoryLinkCommitListRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchGitRepositoryLinkCommitListResponse) { + requests.add(request); + responseObserver.onNext(((FetchGitRepositoryLinkCommitListResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchGitRepositoryLinkCommitList," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchGitRepositoryLinkCommitListResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchGitRepositoryLinkFileBlame( + FetchGitRepositoryLinkFileBlameRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchGitRepositoryLinkFileBlameResponse) { + requests.add(request); + responseObserver.onNext(((FetchGitRepositoryLinkFileBlameResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchGitRepositoryLinkFileBlame," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchGitRepositoryLinkFileBlameResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchGitRepositoryLinkPullRequest( + FetchGitRepositoryLinkPullRequestRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PullRequest) { + requests.add(request); + responseObserver.onNext(((PullRequest) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchGitRepositoryLinkPullRequest," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PullRequest.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addGitRepositoryLinkPullRequestComment( + AddGitRepositoryLinkPullRequestCommentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PullRequestComment) { + requests.add(request); + responseObserver.onNext(((PullRequestComment) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AddGitRepositoryLinkPullRequestComment," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PullRequestComment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addGitRepositoryLinkPullRequestReviewComment( + AddGitRepositoryLinkPullRequestReviewCommentRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PullRequestReviewComment) { + requests.add(request); + responseObserver.onNext(((PullRequestReviewComment) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method" + + " AddGitRepositoryLinkPullRequestReviewComment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PullRequestReviewComment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void modifyGitRepositoryLinkPullRequest( + ModifyGitRepositoryLinkPullRequestRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PullRequest) { + requests.add(request); + responseObserver.onNext(((PullRequest) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ModifyGitRepositoryLinkPullRequest," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PullRequest.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchGitRepositoryLinkPullRequestList( + FetchGitRepositoryLinkPullRequestListRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchGitRepositoryLinkPullRequestListResponse) { + requests.add(request); + responseObserver.onNext(((FetchGitRepositoryLinkPullRequestListResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchGitRepositoryLinkPullRequestList," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchGitRepositoryLinkPullRequestListResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listAccountConnectors( ListAccountConnectorsRequest request, diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java b/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java index d3243da6460b..6d9fa9b14d6f 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectGrpc.java @@ -561,6 +561,61 @@ private DeveloperConnectGrpc() {} return getFetchReadTokenMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getOpenGitRepositoryLinkPullRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OpenGitRepositoryLinkPullRequest", + requestType = + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest.class, + responseType = com.google.cloud.developerconnect.v1.PullRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getOpenGitRepositoryLinkPullRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getOpenGitRepositoryLinkPullRequestMethod; + if ((getOpenGitRepositoryLinkPullRequestMethod = + DeveloperConnectGrpc.getOpenGitRepositoryLinkPullRequestMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getOpenGitRepositoryLinkPullRequestMethod = + DeveloperConnectGrpc.getOpenGitRepositoryLinkPullRequestMethod) + == null) { + DeveloperConnectGrpc.getOpenGitRepositoryLinkPullRequestMethod = + getOpenGitRepositoryLinkPullRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "OpenGitRepositoryLinkPullRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .OpenGitRepositoryLinkPullRequestRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1.PullRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "OpenGitRepositoryLinkPullRequest")) + .build(); + } + } + } + return getOpenGitRepositoryLinkPullRequestMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest, com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse> @@ -713,6 +768,513 @@ private DeveloperConnectGrpc() {} return getFetchGitRefsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse> + getDiffGitRepositoryLinkCommitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiffGitRepositoryLinkCommit", + requestType = com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest.class, + responseType = com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse> + getDiffGitRepositoryLinkCommitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse> + getDiffGitRepositoryLinkCommitMethod; + if ((getDiffGitRepositoryLinkCommitMethod = + DeveloperConnectGrpc.getDiffGitRepositoryLinkCommitMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getDiffGitRepositoryLinkCommitMethod = + DeveloperConnectGrpc.getDiffGitRepositoryLinkCommitMethod) + == null) { + DeveloperConnectGrpc.getDiffGitRepositoryLinkCommitMethod = + getDiffGitRepositoryLinkCommitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiffGitRepositoryLinkCommit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .DiffGitRepositoryLinkCommitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .DiffGitRepositoryLinkCommitResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "DiffGitRepositoryLinkCommit")) + .build(); + } + } + } + return getDiffGitRepositoryLinkCommitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse> + getFetchGitRepositoryLinkCommitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchGitRepositoryLinkCommit", + requestType = com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest.class, + responseType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse> + getFetchGitRepositoryLinkCommitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse> + getFetchGitRepositoryLinkCommitMethod; + if ((getFetchGitRepositoryLinkCommitMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkCommitMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getFetchGitRepositoryLinkCommitMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkCommitMethod) + == null) { + DeveloperConnectGrpc.getFetchGitRepositoryLinkCommitMethod = + getFetchGitRepositoryLinkCommitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchGitRepositoryLinkCommit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkCommitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkCommitResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "FetchGitRepositoryLinkCommit")) + .build(); + } + } + } + return getFetchGitRepositoryLinkCommitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse> + getFetchGitRepositoryLinkCommitListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchGitRepositoryLinkCommitList", + requestType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest.class, + responseType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse> + getFetchGitRepositoryLinkCommitListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse> + getFetchGitRepositoryLinkCommitListMethod; + if ((getFetchGitRepositoryLinkCommitListMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkCommitListMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getFetchGitRepositoryLinkCommitListMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkCommitListMethod) + == null) { + DeveloperConnectGrpc.getFetchGitRepositoryLinkCommitListMethod = + getFetchGitRepositoryLinkCommitListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchGitRepositoryLinkCommitList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkCommitListRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkCommitListResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "FetchGitRepositoryLinkCommitList")) + .build(); + } + } + } + return getFetchGitRepositoryLinkCommitListMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse> + getFetchGitRepositoryLinkFileBlameMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchGitRepositoryLinkFileBlame", + requestType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest.class, + responseType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse> + getFetchGitRepositoryLinkFileBlameMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse> + getFetchGitRepositoryLinkFileBlameMethod; + if ((getFetchGitRepositoryLinkFileBlameMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkFileBlameMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getFetchGitRepositoryLinkFileBlameMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkFileBlameMethod) + == null) { + DeveloperConnectGrpc.getFetchGitRepositoryLinkFileBlameMethod = + getFetchGitRepositoryLinkFileBlameMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchGitRepositoryLinkFileBlame")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkFileBlameRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkFileBlameResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "FetchGitRepositoryLinkFileBlame")) + .build(); + } + } + } + return getFetchGitRepositoryLinkFileBlameMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getFetchGitRepositoryLinkPullRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchGitRepositoryLinkPullRequest", + requestType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest.class, + responseType = com.google.cloud.developerconnect.v1.PullRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getFetchGitRepositoryLinkPullRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getFetchGitRepositoryLinkPullRequestMethod; + if ((getFetchGitRepositoryLinkPullRequestMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkPullRequestMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getFetchGitRepositoryLinkPullRequestMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkPullRequestMethod) + == null) { + DeveloperConnectGrpc.getFetchGitRepositoryLinkPullRequestMethod = + getFetchGitRepositoryLinkPullRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchGitRepositoryLinkPullRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1.PullRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "FetchGitRepositoryLinkPullRequest")) + .build(); + } + } + } + return getFetchGitRepositoryLinkPullRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestComment> + getAddGitRepositoryLinkPullRequestCommentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddGitRepositoryLinkPullRequestComment", + requestType = + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest.class, + responseType = com.google.cloud.developerconnect.v1.PullRequestComment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestComment> + getAddGitRepositoryLinkPullRequestCommentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestComment> + getAddGitRepositoryLinkPullRequestCommentMethod; + if ((getAddGitRepositoryLinkPullRequestCommentMethod = + DeveloperConnectGrpc.getAddGitRepositoryLinkPullRequestCommentMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getAddGitRepositoryLinkPullRequestCommentMethod = + DeveloperConnectGrpc.getAddGitRepositoryLinkPullRequestCommentMethod) + == null) { + DeveloperConnectGrpc.getAddGitRepositoryLinkPullRequestCommentMethod = + getAddGitRepositoryLinkPullRequestCommentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "AddGitRepositoryLinkPullRequestComment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestCommentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1.PullRequestComment + .getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "AddGitRepositoryLinkPullRequestComment")) + .build(); + } + } + } + return getAddGitRepositoryLinkPullRequestCommentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestReviewComment> + getAddGitRepositoryLinkPullRequestReviewCommentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddGitRepositoryLinkPullRequestReviewComment", + requestType = + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + .class, + responseType = com.google.cloud.developerconnect.v1.PullRequestReviewComment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestReviewComment> + getAddGitRepositoryLinkPullRequestReviewCommentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestReviewComment> + getAddGitRepositoryLinkPullRequestReviewCommentMethod; + if ((getAddGitRepositoryLinkPullRequestReviewCommentMethod = + DeveloperConnectGrpc.getAddGitRepositoryLinkPullRequestReviewCommentMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getAddGitRepositoryLinkPullRequestReviewCommentMethod = + DeveloperConnectGrpc.getAddGitRepositoryLinkPullRequestReviewCommentMethod) + == null) { + DeveloperConnectGrpc.getAddGitRepositoryLinkPullRequestReviewCommentMethod = + getAddGitRepositoryLinkPullRequestReviewCommentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "AddGitRepositoryLinkPullRequestReviewComment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1.PullRequestReviewComment + .getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "AddGitRepositoryLinkPullRequestReviewComment")) + .build(); + } + } + } + return getAddGitRepositoryLinkPullRequestReviewCommentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getModifyGitRepositoryLinkPullRequestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ModifyGitRepositoryLinkPullRequest", + requestType = + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.class, + responseType = com.google.cloud.developerconnect.v1.PullRequest.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getModifyGitRepositoryLinkPullRequestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest> + getModifyGitRepositoryLinkPullRequestMethod; + if ((getModifyGitRepositoryLinkPullRequestMethod = + DeveloperConnectGrpc.getModifyGitRepositoryLinkPullRequestMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getModifyGitRepositoryLinkPullRequestMethod = + DeveloperConnectGrpc.getModifyGitRepositoryLinkPullRequestMethod) + == null) { + DeveloperConnectGrpc.getModifyGitRepositoryLinkPullRequestMethod = + getModifyGitRepositoryLinkPullRequestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ModifyGitRepositoryLinkPullRequest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .ModifyGitRepositoryLinkPullRequestRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1.PullRequest + .getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "ModifyGitRepositoryLinkPullRequest")) + .build(); + } + } + } + return getModifyGitRepositoryLinkPullRequestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse> + getFetchGitRepositoryLinkPullRequestListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchGitRepositoryLinkPullRequestList", + requestType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest.class, + responseType = + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse> + getFetchGitRepositoryLinkPullRequestListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse> + getFetchGitRepositoryLinkPullRequestListMethod; + if ((getFetchGitRepositoryLinkPullRequestListMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkPullRequestListMethod) + == null) { + synchronized (DeveloperConnectGrpc.class) { + if ((getFetchGitRepositoryLinkPullRequestListMethod = + DeveloperConnectGrpc.getFetchGitRepositoryLinkPullRequestListMethod) + == null) { + DeveloperConnectGrpc.getFetchGitRepositoryLinkPullRequestListMethod = + getFetchGitRepositoryLinkPullRequestListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "FetchGitRepositoryLinkPullRequestList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeveloperConnectMethodDescriptorSupplier( + "FetchGitRepositoryLinkPullRequestList")) + .build(); + } + } + } + return getFetchGitRepositoryLinkPullRequestListMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.developerconnect.v1.ListAccountConnectorsRequest, com.google.cloud.developerconnect.v1.ListAccountConnectorsResponse> @@ -1494,73 +2056,231 @@ default void fetchReadWriteToken( com.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchReadWriteTokenMethod(), responseObserver); + getFetchReadWriteTokenMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches read token of a given gitRepositoryLink.
+     * 
+ */ + default void fetchReadToken( + com.google.cloud.developerconnect.v1.FetchReadTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchReadTokenMethod(), responseObserver); + } + + /** + * + * + *
+     * Opens a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + default void openGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getOpenGitRepositoryLinkPullRequestMethod(), responseObserver); + } + + /** + * + * + *
+     * FetchLinkableGitRepositories returns a list of git repositories from an SCM
+     * that are available to be added to a Connection.
+     * 
+ */ + default void fetchLinkableGitRepositories( + com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchLinkableGitRepositoriesMethod(), responseObserver); + } + + /** + * + * + *
+     * FetchGitHubInstallations returns the list of GitHub Installations that
+     * are available to be added to a Connection.
+     * For github.com, only installations accessible to the authorizer token
+     * are returned. For GitHub Enterprise, all installations are returned.
+     * 
+ */ + default void fetchGitHubInstallations( + com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitHubInstallationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetch the list of branches or tags for a given repository.
+     * 
+ */ + default void fetchGitRefs( + com.google.cloud.developerconnect.v1.FetchGitRefsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitRefsMethod(), responseObserver); + } + + /** + * + * + *
+     * Diff commits for a GitRepositoryLink.
+     * 
+ */ + default void diffGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiffGitRepositoryLinkCommitMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetch Commit details from a Git repository link.
+     * 
+ */ + default void fetchGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitRepositoryLinkCommitMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetch a list of Commits from a Git repository link.
+     * 
+ */ + default void fetchGitRepositoryLinkCommitList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitRepositoryLinkCommitListMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches blame information for a file or line range in a file.
+     * 
+ */ + default void fetchGitRepositoryLinkFileBlame( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitRepositoryLinkFileBlameMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetch Pull Request details from a Git repository link.
+     * 
+ */ + default void fetchGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchGitRepositoryLinkPullRequestMethod(), responseObserver); } /** * * *
-     * Fetches read token of a given gitRepositoryLink.
+     * Add a comment to a Pull Request.
      * 
*/ - default void fetchReadToken( - com.google.cloud.developerconnect.v1.FetchReadTokenRequest request, - io.grpc.stub.StreamObserver + default void addGitRepositoryLinkPullRequestComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchReadTokenMethod(), responseObserver); + getAddGitRepositoryLinkPullRequestCommentMethod(), responseObserver); } /** * * *
-     * FetchLinkableGitRepositories returns a list of git repositories from an SCM
-     * that are available to be added to a Connection.
+     * Add a review comment (inline on diff) to a Pull Request.
      * 
*/ - default void fetchLinkableGitRepositories( - com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse> + default void addGitRepositoryLinkPullRequestReviewComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchLinkableGitRepositoriesMethod(), responseObserver); + getAddGitRepositoryLinkPullRequestReviewCommentMethod(), responseObserver); } /** * * *
-     * FetchGitHubInstallations returns the list of GitHub Installations that
-     * are available to be added to a Connection.
-     * For github.com, only installations accessible to the authorizer token
-     * are returned. For GitHub Enterprise, all installations are returned.
+     * Modifies a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
      * 
*/ - default void fetchGitHubInstallations( - com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse> + default void modifyGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchGitHubInstallationsMethod(), responseObserver); + getModifyGitRepositoryLinkPullRequestMethod(), responseObserver); } /** * * *
-     * Fetch the list of branches or tags for a given repository.
+     * Fetches a list of Pull Requests from the remote repository.
      * 
*/ - default void fetchGitRefs( - com.google.cloud.developerconnect.v1.FetchGitRefsRequest request, - io.grpc.stub.StreamObserver + default void fetchGitRepositoryLinkPullRequestList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchGitRefsMethod(), responseObserver); + getFetchGitRepositoryLinkPullRequestListMethod(), responseObserver); } /** @@ -1957,6 +2677,24 @@ public void fetchReadToken( responseObserver); } + /** + * + * + *
+     * Opens a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public void openGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getOpenGitRepositoryLinkPullRequestMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2014,6 +2752,167 @@ public void fetchGitRefs( responseObserver); } + /** + * + * + *
+     * Diff commits for a GitRepositoryLink.
+     * 
+ */ + public void diffGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiffGitRepositoryLinkCommitMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetch Commit details from a Git repository link.
+     * 
+ */ + public void fetchGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkCommitMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetch a list of Commits from a Git repository link.
+     * 
+ */ + public void fetchGitRepositoryLinkCommitList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkCommitListMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches blame information for a file or line range in a file.
+     * 
+ */ + public void fetchGitRepositoryLinkFileBlame( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkFileBlameMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetch Pull Request details from a Git repository link.
+     * 
+ */ + public void fetchGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkPullRequestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Add a comment to a Pull Request.
+     * 
+ */ + public void addGitRepositoryLinkPullRequestComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddGitRepositoryLinkPullRequestCommentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Add a review comment (inline on diff) to a Pull Request.
+     * 
+ */ + public void addGitRepositoryLinkPullRequestReviewComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getAddGitRepositoryLinkPullRequestReviewCommentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public void modifyGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getModifyGitRepositoryLinkPullRequestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a list of Pull Requests from the remote repository.
+     * 
+ */ + public void fetchGitRepositoryLinkPullRequestList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkPullRequestListMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2384,6 +3283,21 @@ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToke getChannel(), getFetchReadTokenMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Opens a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequest openGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getOpenGitRepositoryLinkPullRequestMethod(), getCallOptions(), request); + } + /** * * @@ -2415,21 +3329,167 @@ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToke com.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest request) throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getFetchGitHubInstallationsMethod(), getCallOptions(), request); + getChannel(), getFetchGitHubInstallationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch the list of branches or tags for a given repository.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRefsResponse fetchGitRefs( + com.google.cloud.developerconnect.v1.FetchGitRefsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchGitRefsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Diff commits for a GitRepositoryLink.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + diffGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDiffGitRepositoryLinkCommitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch Commit details from a Git repository link.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + fetchGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchGitRepositoryLinkCommitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch a list of Commits from a Git repository link.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + fetchGitRepositoryLinkCommitList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchGitRepositoryLinkCommitListMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches blame information for a file or line range in a file.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + fetchGitRepositoryLinkFileBlame( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchGitRepositoryLinkFileBlameMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch Pull Request details from a Git repository link.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequest fetchGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchGitRepositoryLinkPullRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Add a comment to a Pull Request.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequestComment + addGitRepositoryLinkPullRequestComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getAddGitRepositoryLinkPullRequestCommentMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Add a review comment (inline on diff) to a Pull Request.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequestReviewComment + addGitRepositoryLinkPullRequestReviewComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), + getAddGitRepositoryLinkPullRequestReviewCommentMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Modifies a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequest modifyGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getModifyGitRepositoryLinkPullRequestMethod(), getCallOptions(), request); } /** * * *
-     * Fetch the list of branches or tags for a given repository.
+     * Fetches a list of Pull Requests from the remote repository.
      * 
*/ - public com.google.cloud.developerconnect.v1.FetchGitRefsResponse fetchGitRefs( - com.google.cloud.developerconnect.v1.FetchGitRefsRequest request) - throws io.grpc.StatusException { + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + fetchGitRepositoryLinkPullRequestList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + request) + throws io.grpc.StatusException { return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getFetchGitRefsMethod(), getCallOptions(), request); + getChannel(), + getFetchGitRepositoryLinkPullRequestListMethod(), + getCallOptions(), + request); } /** @@ -2769,6 +3829,20 @@ public com.google.cloud.developerconnect.v1.FetchReadTokenResponse fetchReadToke getChannel(), getFetchReadTokenMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Opens a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequest openGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getOpenGitRepositoryLinkPullRequestMethod(), getCallOptions(), request); + } + /** * * @@ -2814,6 +3888,143 @@ public com.google.cloud.developerconnect.v1.FetchGitRefsResponse fetchGitRefs( getChannel(), getFetchGitRefsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Diff commits for a GitRepositoryLink.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + diffGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiffGitRepositoryLinkCommitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch Commit details from a Git repository link.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + fetchGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchGitRepositoryLinkCommitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch a list of Commits from a Git repository link.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + fetchGitRepositoryLinkCommitList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchGitRepositoryLinkCommitListMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches blame information for a file or line range in a file.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + fetchGitRepositoryLinkFileBlame( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchGitRepositoryLinkFileBlameMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetch Pull Request details from a Git repository link.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequest fetchGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchGitRepositoryLinkPullRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Add a comment to a Pull Request.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequestComment + addGitRepositoryLinkPullRequestComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getAddGitRepositoryLinkPullRequestCommentMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Add a review comment (inline on diff) to a Pull Request.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequestReviewComment + addGitRepositoryLinkPullRequestReviewComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getAddGitRepositoryLinkPullRequestReviewCommentMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Modifies a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.PullRequest modifyGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyGitRepositoryLinkPullRequestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a list of Pull Requests from the remote repository.
+     * 
+ */ + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + fetchGitRepositoryLinkPullRequestList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getFetchGitRepositoryLinkPullRequestListMethod(), + getCallOptions(), + request); + } + /** * * @@ -3149,6 +4360,23 @@ protected DeveloperConnectFutureStub build( getChannel().newCall(getFetchReadTokenMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Opens a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.PullRequest> + openGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getOpenGitRepositoryLinkPullRequestMethod(), getCallOptions()), + request); + } + /** * * @@ -3197,6 +4425,154 @@ protected DeveloperConnectFutureStub build( getChannel().newCall(getFetchGitRefsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Diff commits for a GitRepositoryLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse> + diffGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiffGitRepositoryLinkCommitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetch Commit details from a Git repository link.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse> + fetchGitRepositoryLinkCommit( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkCommitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetch a list of Commits from a Git repository link.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse> + fetchGitRepositoryLinkCommitList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkCommitListMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Fetches blame information for a file or line range in a file.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse> + fetchGitRepositoryLinkFileBlame( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkFileBlameMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Fetch Pull Request details from a Git repository link.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.PullRequest> + fetchGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkPullRequestMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Add a comment to a Pull Request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.PullRequestComment> + addGitRepositoryLinkPullRequestComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddGitRepositoryLinkPullRequestCommentMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Add a review comment (inline on diff) to a Pull Request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.PullRequestReviewComment> + addGitRepositoryLinkPullRequestReviewComment( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getAddGitRepositoryLinkPullRequestReviewCommentMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Modifies a Pull Request in the remote SCM repository associated with a
+     * GitRepositoryLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.PullRequest> + modifyGitRepositoryLinkPullRequest( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getModifyGitRepositoryLinkPullRequestMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Fetches a list of Pull Requests from the remote repository.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse> + fetchGitRepositoryLinkPullRequestList( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchGitRepositoryLinkPullRequestListMethod(), getCallOptions()), + request); + } + /** * * @@ -3377,21 +4753,31 @@ protected DeveloperConnectFutureStub build( private static final int METHODID_GET_GIT_REPOSITORY_LINK = 8; private static final int METHODID_FETCH_READ_WRITE_TOKEN = 9; private static final int METHODID_FETCH_READ_TOKEN = 10; - private static final int METHODID_FETCH_LINKABLE_GIT_REPOSITORIES = 11; - private static final int METHODID_FETCH_GIT_HUB_INSTALLATIONS = 12; - private static final int METHODID_FETCH_GIT_REFS = 13; - private static final int METHODID_LIST_ACCOUNT_CONNECTORS = 14; - private static final int METHODID_GET_ACCOUNT_CONNECTOR = 15; - private static final int METHODID_CREATE_ACCOUNT_CONNECTOR = 16; - private static final int METHODID_UPDATE_ACCOUNT_CONNECTOR = 17; - private static final int METHODID_DELETE_ACCOUNT_CONNECTOR = 18; - private static final int METHODID_FETCH_ACCESS_TOKEN = 19; - private static final int METHODID_LIST_USERS = 20; - private static final int METHODID_DELETE_USER = 21; - private static final int METHODID_FETCH_SELF = 22; - private static final int METHODID_DELETE_SELF = 23; - private static final int METHODID_START_OAUTH = 24; - private static final int METHODID_FINISH_OAUTH = 25; + private static final int METHODID_OPEN_GIT_REPOSITORY_LINK_PULL_REQUEST = 11; + private static final int METHODID_FETCH_LINKABLE_GIT_REPOSITORIES = 12; + private static final int METHODID_FETCH_GIT_HUB_INSTALLATIONS = 13; + private static final int METHODID_FETCH_GIT_REFS = 14; + private static final int METHODID_DIFF_GIT_REPOSITORY_LINK_COMMIT = 15; + private static final int METHODID_FETCH_GIT_REPOSITORY_LINK_COMMIT = 16; + private static final int METHODID_FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST = 17; + private static final int METHODID_FETCH_GIT_REPOSITORY_LINK_FILE_BLAME = 18; + private static final int METHODID_FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST = 19; + private static final int METHODID_ADD_GIT_REPOSITORY_LINK_PULL_REQUEST_COMMENT = 20; + private static final int METHODID_ADD_GIT_REPOSITORY_LINK_PULL_REQUEST_REVIEW_COMMENT = 21; + private static final int METHODID_MODIFY_GIT_REPOSITORY_LINK_PULL_REQUEST = 22; + private static final int METHODID_FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST = 23; + private static final int METHODID_LIST_ACCOUNT_CONNECTORS = 24; + private static final int METHODID_GET_ACCOUNT_CONNECTOR = 25; + private static final int METHODID_CREATE_ACCOUNT_CONNECTOR = 26; + private static final int METHODID_UPDATE_ACCOUNT_CONNECTOR = 27; + private static final int METHODID_DELETE_ACCOUNT_CONNECTOR = 28; + private static final int METHODID_FETCH_ACCESS_TOKEN = 29; + private static final int METHODID_LIST_USERS = 30; + private static final int METHODID_DELETE_USER = 31; + private static final int METHODID_FETCH_SELF = 32; + private static final int METHODID_DELETE_SELF = 33; + private static final int METHODID_START_OAUTH = 34; + private static final int METHODID_FINISH_OAUTH = 35; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3475,6 +4861,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.developerconnect.v1.FetchReadTokenResponse>) responseObserver); break; + case METHODID_OPEN_GIT_REPOSITORY_LINK_PULL_REQUEST: + serviceImpl.openGitRepositoryLinkPullRequest( + (com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) + request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_FETCH_LINKABLE_GIT_REPOSITORIES: serviceImpl.fetchLinkableGitRepositories( (com.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest) request, @@ -3496,6 +4889,75 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.developerconnect.v1.FetchGitRefsResponse>) responseObserver); break; + case METHODID_DIFF_GIT_REPOSITORY_LINK_COMMIT: + serviceImpl.diffGitRepositoryLinkCommit( + (com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse>) + responseObserver); + break; + case METHODID_FETCH_GIT_REPOSITORY_LINK_COMMIT: + serviceImpl.fetchGitRepositoryLinkCommit( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse>) + responseObserver); + break; + case METHODID_FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST: + serviceImpl.fetchGitRepositoryLinkCommitList( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkCommitListResponse>) + responseObserver); + break; + case METHODID_FETCH_GIT_REPOSITORY_LINK_FILE_BLAME: + serviceImpl.fetchGitRepositoryLinkFileBlame( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse>) + responseObserver); + break; + case METHODID_FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST: + serviceImpl.fetchGitRepositoryLinkPullRequest( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) + request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ADD_GIT_REPOSITORY_LINK_PULL_REQUEST_COMMENT: + serviceImpl.addGitRepositoryLinkPullRequestComment( + (com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ADD_GIT_REPOSITORY_LINK_PULL_REQUEST_REVIEW_COMMENT: + serviceImpl.addGitRepositoryLinkPullRequestReviewComment( + (com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1.PullRequestReviewComment>) + responseObserver); + break; + case METHODID_MODIFY_GIT_REPOSITORY_LINK_PULL_REQUEST: + serviceImpl.modifyGitRepositoryLinkPullRequest( + (com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) + request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST: + serviceImpl.fetchGitRepositoryLinkPullRequestList( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListResponse>) + responseObserver); + break; case METHODID_LIST_ACCOUNT_CONNECTORS: serviceImpl.listAccountConnectors( (com.google.cloud.developerconnect.v1.ListAccountConnectorsRequest) request, @@ -3658,6 +5120,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.developerconnect.v1.FetchReadTokenRequest, com.google.cloud.developerconnect.v1.FetchReadTokenResponse>( service, METHODID_FETCH_READ_TOKEN))) + .addMethod( + getOpenGitRepositoryLinkPullRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest>( + service, METHODID_OPEN_GIT_REPOSITORY_LINK_PULL_REQUEST))) .addMethod( getFetchLinkableGitRepositoriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3679,6 +5148,73 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.developerconnect.v1.FetchGitRefsRequest, com.google.cloud.developerconnect.v1.FetchGitRefsResponse>( service, METHODID_FETCH_GIT_REFS))) + .addMethod( + getDiffGitRepositoryLinkCommitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse>( + service, METHODID_DIFF_GIT_REPOSITORY_LINK_COMMIT))) + .addMethod( + getFetchGitRepositoryLinkCommitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse>( + service, METHODID_FETCH_GIT_REPOSITORY_LINK_COMMIT))) + .addMethod( + getFetchGitRepositoryLinkCommitListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse>( + service, METHODID_FETCH_GIT_REPOSITORY_LINK_COMMIT_LIST))) + .addMethod( + getFetchGitRepositoryLinkFileBlameMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse>( + service, METHODID_FETCH_GIT_REPOSITORY_LINK_FILE_BLAME))) + .addMethod( + getFetchGitRepositoryLinkPullRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest>( + service, METHODID_FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST))) + .addMethod( + getAddGitRepositoryLinkPullRequestCommentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestComment>( + service, METHODID_ADD_GIT_REPOSITORY_LINK_PULL_REQUEST_COMMENT))) + .addMethod( + getAddGitRepositoryLinkPullRequestReviewCommentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest, + com.google.cloud.developerconnect.v1.PullRequestReviewComment>( + service, METHODID_ADD_GIT_REPOSITORY_LINK_PULL_REQUEST_REVIEW_COMMENT))) + .addMethod( + getModifyGitRepositoryLinkPullRequestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest, + com.google.cloud.developerconnect.v1.PullRequest>( + service, METHODID_MODIFY_GIT_REPOSITORY_LINK_PULL_REQUEST))) + .addMethod( + getFetchGitRepositoryLinkPullRequestListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListRequest, + com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListResponse>( + service, METHODID_FETCH_GIT_REPOSITORY_LINK_PULL_REQUEST_LIST))) .addMethod( getListAccountConnectorsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3819,9 +5355,19 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetGitRepositoryLinkMethod()) .addMethod(getFetchReadWriteTokenMethod()) .addMethod(getFetchReadTokenMethod()) + .addMethod(getOpenGitRepositoryLinkPullRequestMethod()) .addMethod(getFetchLinkableGitRepositoriesMethod()) .addMethod(getFetchGitHubInstallationsMethod()) .addMethod(getFetchGitRefsMethod()) + .addMethod(getDiffGitRepositoryLinkCommitMethod()) + .addMethod(getFetchGitRepositoryLinkCommitMethod()) + .addMethod(getFetchGitRepositoryLinkCommitListMethod()) + .addMethod(getFetchGitRepositoryLinkFileBlameMethod()) + .addMethod(getFetchGitRepositoryLinkPullRequestMethod()) + .addMethod(getAddGitRepositoryLinkPullRequestCommentMethod()) + .addMethod(getAddGitRepositoryLinkPullRequestReviewCommentMethod()) + .addMethod(getModifyGitRepositoryLinkPullRequestMethod()) + .addMethod(getFetchGitRepositoryLinkPullRequestListMethod()) .addMethod(getListAccountConnectorsMethod()) .addMethod(getGetAccountConnectorMethod()) .addMethod(getCreateAccountConnectorMethod()) diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequest.java new file mode 100644 index 000000000000..da93e1620a6a --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequest.java @@ -0,0 +1,1163 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for AddGitRepositoryLinkPullRequestComment.
+ * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest} + */ +@com.google.protobuf.Generated +public final class AddGitRepositoryLinkPullRequestCommentRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + AddGitRepositoryLinkPullRequestCommentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AddGitRepositoryLinkPullRequestCommentRequest"); + } + + // Use AddGitRepositoryLinkPullRequestCommentRequest.newBuilder() to construct. + private AddGitRepositoryLinkPullRequestCommentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AddGitRepositoryLinkPullRequestCommentRequest() { + name_ = ""; + pullRequestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + .class, + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + .Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PULL_REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + @java.lang.Override + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENT_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.PullRequestComment comment_; + + /** + * + * + *
+   * Required. The comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + @java.lang.Override + public boolean hasComment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestComment getComment() { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance() + : comment_; + } + + /** + * + * + *
+   * Required. The comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder getCommentOrBuilder() { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance() + : comment_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pullRequestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getComment()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pullRequestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getComment()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest other = + (com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPullRequestId().equals(other.getPullRequestId())) return false; + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment().equals(other.getComment())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PULL_REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getPullRequestId().hashCode(); + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for AddGitRepositoryLinkPullRequestComment.
+   * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + .class, + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCommentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pullRequestId_ = ""; + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + build() { + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + buildPartial() { + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest result = + new com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pullRequestId_ = pullRequestId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = commentBuilder_ == null ? comment_ : commentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest other) { + if (other + == com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPullRequestId().isEmpty()) { + pullRequestId_ = other.pullRequestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasComment()) { + mergeComment(other.getComment()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pullRequestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetCommentFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPullRequestId() { + pullRequestId_ = getDefaultInstance().getPullRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.PullRequestComment comment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequestComment, + com.google.cloud.developerconnect.v1.PullRequestComment.Builder, + com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder> + commentBuilder_; + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + public boolean hasComment() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + public com.google.cloud.developerconnect.v1.PullRequestComment getComment() { + if (commentBuilder_ == null) { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance() + : comment_; + } else { + return commentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComment(com.google.cloud.developerconnect.v1.PullRequestComment value) { + if (commentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + } else { + commentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComment( + com.google.cloud.developerconnect.v1.PullRequestComment.Builder builderForValue) { + if (commentBuilder_ == null) { + comment_ = builderForValue.build(); + } else { + commentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeComment(com.google.cloud.developerconnect.v1.PullRequestComment value) { + if (commentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && comment_ != null + && comment_ + != com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance()) { + getCommentBuilder().mergeFrom(value); + } else { + comment_ = value; + } + } else { + commentBuilder_.mergeFrom(value); + } + if (comment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearComment() { + bitField0_ = (bitField0_ & ~0x00000004); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.PullRequestComment.Builder getCommentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCommentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder getCommentOrBuilder() { + if (commentBuilder_ != null) { + return commentBuilder_.getMessageOrBuilder(); + } else { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance() + : comment_; + } + } + + /** + * + * + *
+     * Required. The comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequestComment, + com.google.cloud.developerconnect.v1.PullRequestComment.Builder, + com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder> + internalGetCommentFieldBuilder() { + if (commentBuilder_ == null) { + commentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequestComment, + com.google.cloud.developerconnect.v1.PullRequestComment.Builder, + com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder>( + getComment(), getParentForChildren(), isClean()); + comment_ = null; + } + return commentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + private static final com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestCommentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest(); + } + + public static com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddGitRepositoryLinkPullRequestCommentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequestOrBuilder.java new file mode 100644 index 000000000000..f9821083a17a --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestCommentRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface AddGitRepositoryLinkPullRequestCommentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + java.lang.String getPullRequestId(); + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + com.google.protobuf.ByteString getPullRequestIdBytes(); + + /** + * + * + *
+   * Required. The comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + boolean hasComment(); + + /** + * + * + *
+   * Required. The comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + com.google.cloud.developerconnect.v1.PullRequestComment getComment(); + + /** + * + * + *
+   * Required. The comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder getCommentOrBuilder(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequest.java new file mode 100644 index 000000000000..058eed5e69a5 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequest.java @@ -0,0 +1,1389 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for AddGitRepositoryLinkPullRequestReviewComment.
+ * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest} + */ +@com.google.protobuf.Generated +public final class AddGitRepositoryLinkPullRequestReviewCommentRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest) + AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AddGitRepositoryLinkPullRequestReviewCommentRequest"); + } + + // Use AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder() to construct. + private AddGitRepositoryLinkPullRequestReviewCommentRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AddGitRepositoryLinkPullRequestReviewCommentRequest() { + name_ = ""; + pullRequestId_ = ""; + commitId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + .class, + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + .Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PULL_REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + @java.lang.Override + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENT_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.PullRequestReviewComment comment_; + + /** + * + * + *
+   * Required. The review comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + @java.lang.Override + public boolean hasComment() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The review comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment getComment() { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDefaultInstance() + : comment_; + } + + /** + * + * + *
+   * Required. The review comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder + getCommentOrBuilder() { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDefaultInstance() + : comment_; + } + + public static final int COMMIT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitId_ = ""; + + /** + * + * + *
+   * Optional. The commit SHA to comment on. If not specified, defaults to the
+   * HEAD commit of the Pull Request.
+   * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitId. + */ + @java.lang.Override + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The commit SHA to comment on. If not specified, defaults to the
+   * HEAD commit of the Pull Request.
+   * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pullRequestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getComment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, commitId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pullRequestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getComment()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, commitId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest other = + (com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getPullRequestId().equals(other.getPullRequestId())) return false; + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment().equals(other.getComment())) return false; + } + if (!getCommitId().equals(other.getCommitId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PULL_REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getPullRequestId().hashCode(); + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommitId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for AddGitRepositoryLinkPullRequestReviewComment.
+   * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest) + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest.class, + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCommentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pullRequestId_ = ""; + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + commitId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + build() { + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + buildPartial() { + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + result = + new com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pullRequestId_ = pullRequestId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = commentBuilder_ == null ? comment_ : commentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.commitId_ = commitId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + other) { + if (other + == com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPullRequestId().isEmpty()) { + pullRequestId_ = other.pullRequestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasComment()) { + mergeComment(other.getComment()); + } + if (!other.getCommitId().isEmpty()) { + commitId_ = other.commitId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pullRequestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetCommentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + commitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPullRequestId() { + pullRequestId_ = getDefaultInstance().getPullRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.PullRequestReviewComment comment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequestReviewComment, + com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder, + com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder> + commentBuilder_; + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + public boolean hasComment() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + public com.google.cloud.developerconnect.v1.PullRequestReviewComment getComment() { + if (commentBuilder_ == null) { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDefaultInstance() + : comment_; + } else { + return commentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComment(com.google.cloud.developerconnect.v1.PullRequestReviewComment value) { + if (commentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + } else { + commentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComment( + com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder builderForValue) { + if (commentBuilder_ == null) { + comment_ = builderForValue.build(); + } else { + commentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeComment( + com.google.cloud.developerconnect.v1.PullRequestReviewComment value) { + if (commentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && comment_ != null + && comment_ + != com.google.cloud.developerconnect.v1.PullRequestReviewComment + .getDefaultInstance()) { + getCommentBuilder().mergeFrom(value); + } else { + comment_ = value; + } + } else { + commentBuilder_.mergeFrom(value); + } + if (comment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearComment() { + bitField0_ = (bitField0_ & ~0x00000004); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder + getCommentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCommentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder + getCommentOrBuilder() { + if (commentBuilder_ != null) { + return commentBuilder_.getMessageOrBuilder(); + } else { + return comment_ == null + ? com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDefaultInstance() + : comment_; + } + } + + /** + * + * + *
+     * Required. The review comment to add.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequestReviewComment, + com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder, + com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder> + internalGetCommentFieldBuilder() { + if (commentBuilder_ == null) { + commentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequestReviewComment, + com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder, + com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder>( + getComment(), getParentForChildren(), isClean()); + comment_ = null; + } + return commentBuilder_; + } + + private java.lang.Object commitId_ = ""; + + /** + * + * + *
+     * Optional. The commit SHA to comment on. If not specified, defaults to the
+     * HEAD commit of the Pull Request.
+     * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitId. + */ + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The commit SHA to comment on. If not specified, defaults to the
+     * HEAD commit of the Pull Request.
+     * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitId. + */ + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The commit SHA to comment on. If not specified, defaults to the
+     * HEAD commit of the Pull Request.
+     * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The commit SHA to comment on. If not specified, defaults to the
+     * HEAD commit of the Pull Request.
+     * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommitId() { + commitId_ = getDefaultInstance().getCommitId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The commit SHA to comment on. If not specified, defaults to the
+     * HEAD commit of the Pull Request.
+     * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest) + private static final com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest(); + } + + public static com.google.cloud.developerconnect.v1 + .AddGitRepositoryLinkPullRequestReviewCommentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + AddGitRepositoryLinkPullRequestReviewCommentRequest> + PARSER = + new com.google.protobuf.AbstractParser< + AddGitRepositoryLinkPullRequestReviewCommentRequest>() { + @java.lang.Override + public AddGitRepositoryLinkPullRequestReviewCommentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder.java new file mode 100644 index 000000000000..ba3f01732800 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + java.lang.String getPullRequestId(); + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + com.google.protobuf.ByteString getPullRequestIdBytes(); + + /** + * + * + *
+   * Required. The review comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + boolean hasComment(); + + /** + * + * + *
+   * Required. The review comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + com.google.cloud.developerconnect.v1.PullRequestReviewComment getComment(); + + /** + * + * + *
+   * Required. The review comment to add.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder getCommentOrBuilder(); + + /** + * + * + *
+   * Optional. The commit SHA to comment on. If not specified, defaults to the
+   * HEAD commit of the Pull Request.
+   * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commitId. + */ + java.lang.String getCommitId(); + + /** + * + * + *
+   * Optional. The commit SHA to comment on. If not specified, defaults to the
+   * HEAD commit of the Pull Request.
+   * 
+ * + * string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commitId. + */ + com.google.protobuf.ByteString getCommitIdBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRange.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRange.java new file mode 100644 index 000000000000..af381dd5342a --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRange.java @@ -0,0 +1,892 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * BlameRange represents blame information for a range of lines.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.BlameRange} + */ +@com.google.protobuf.Generated +public final class BlameRange extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.BlameRange) + BlameRangeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BlameRange"); + } + + // Use BlameRange.newBuilder() to construct. + private BlameRange(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BlameRange() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_BlameRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_BlameRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.BlameRange.class, + com.google.cloud.developerconnect.v1.BlameRange.Builder.class); + } + + private int bitField0_; + public static final int FIRST_LINE_FIELD_NUMBER = 1; + private int firstLine_ = 0; + + /** + * + * + *
+   * The 1-indexed starting line number of the range (inclusive).
+   * 
+ * + * int32 first_line = 1; + * + * @return The firstLine. + */ + @java.lang.Override + public int getFirstLine() { + return firstLine_; + } + + public static final int LAST_LINE_FIELD_NUMBER = 2; + private int lastLine_ = 0; + + /** + * + * + *
+   * The 1-indexed ending line number of the range (inclusive).
+   * 
+ * + * int32 last_line = 2; + * + * @return The lastLine. + */ + @java.lang.Override + public int getLastLine() { + return lastLine_; + } + + public static final int COMMIT_FIELD_NUMBER = 3; + private com.google.cloud.developerconnect.v1.SCMCommit commit_; + + /** + * + * + *
+   * The commit metadata for this line range.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + * + * @return Whether the commit field is set. + */ + @java.lang.Override + public boolean hasCommit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The commit metadata for this line range.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + * + * @return The commit. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit getCommit() { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } + + /** + * + * + *
+   * The commit metadata for this line range.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitOrBuilder() { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } + + 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 (firstLine_ != 0) { + output.writeInt32(1, firstLine_); + } + if (lastLine_ != 0) { + output.writeInt32(2, lastLine_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCommit()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (firstLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, firstLine_); + } + if (lastLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lastLine_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCommit()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.BlameRange)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.BlameRange other = + (com.google.cloud.developerconnect.v1.BlameRange) obj; + + if (getFirstLine() != other.getFirstLine()) return false; + if (getLastLine() != other.getLastLine()) return false; + if (hasCommit() != other.hasCommit()) return false; + if (hasCommit()) { + if (!getCommit().equals(other.getCommit())) 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) + FIRST_LINE_FIELD_NUMBER; + hash = (53 * hash) + getFirstLine(); + hash = (37 * hash) + LAST_LINE_FIELD_NUMBER; + hash = (53 * hash) + getLastLine(); + if (hasCommit()) { + hash = (37 * hash) + COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getCommit().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.BlameRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.developerconnect.v1.BlameRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * BlameRange represents blame information for a range of lines.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.BlameRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.BlameRange) + com.google.cloud.developerconnect.v1.BlameRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_BlameRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_BlameRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.BlameRange.class, + com.google.cloud.developerconnect.v1.BlameRange.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.BlameRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCommitFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firstLine_ = 0; + lastLine_ = 0; + commit_ = null; + if (commitBuilder_ != null) { + commitBuilder_.dispose(); + commitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_BlameRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.BlameRange getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.BlameRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.BlameRange build() { + com.google.cloud.developerconnect.v1.BlameRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.BlameRange buildPartial() { + com.google.cloud.developerconnect.v1.BlameRange result = + new com.google.cloud.developerconnect.v1.BlameRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.BlameRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firstLine_ = firstLine_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastLine_ = lastLine_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.commit_ = commitBuilder_ == null ? commit_ : commitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.BlameRange) { + return mergeFrom((com.google.cloud.developerconnect.v1.BlameRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.BlameRange other) { + if (other == com.google.cloud.developerconnect.v1.BlameRange.getDefaultInstance()) + return this; + if (other.getFirstLine() != 0) { + setFirstLine(other.getFirstLine()); + } + if (other.getLastLine() != 0) { + setLastLine(other.getLastLine()); + } + if (other.hasCommit()) { + mergeCommit(other.getCommit()); + } + 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: + { + firstLine_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + lastLine_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(internalGetCommitFieldBuilder().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 int firstLine_; + + /** + * + * + *
+     * The 1-indexed starting line number of the range (inclusive).
+     * 
+ * + * int32 first_line = 1; + * + * @return The firstLine. + */ + @java.lang.Override + public int getFirstLine() { + return firstLine_; + } + + /** + * + * + *
+     * The 1-indexed starting line number of the range (inclusive).
+     * 
+ * + * int32 first_line = 1; + * + * @param value The firstLine to set. + * @return This builder for chaining. + */ + public Builder setFirstLine(int value) { + + firstLine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The 1-indexed starting line number of the range (inclusive).
+     * 
+ * + * int32 first_line = 1; + * + * @return This builder for chaining. + */ + public Builder clearFirstLine() { + bitField0_ = (bitField0_ & ~0x00000001); + firstLine_ = 0; + onChanged(); + return this; + } + + private int lastLine_; + + /** + * + * + *
+     * The 1-indexed ending line number of the range (inclusive).
+     * 
+ * + * int32 last_line = 2; + * + * @return The lastLine. + */ + @java.lang.Override + public int getLastLine() { + return lastLine_; + } + + /** + * + * + *
+     * The 1-indexed ending line number of the range (inclusive).
+     * 
+ * + * int32 last_line = 2; + * + * @param value The lastLine to set. + * @return This builder for chaining. + */ + public Builder setLastLine(int value) { + + lastLine_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The 1-indexed ending line number of the range (inclusive).
+     * 
+ * + * int32 last_line = 2; + * + * @return This builder for chaining. + */ + public Builder clearLastLine() { + bitField0_ = (bitField0_ & ~0x00000002); + lastLine_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.SCMCommit commit_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder> + commitBuilder_; + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + * + * @return Whether the commit field is set. + */ + public boolean hasCommit() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + * + * @return The commit. + */ + public com.google.cloud.developerconnect.v1.SCMCommit getCommit() { + if (commitBuilder_ == null) { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } else { + return commitBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + public Builder setCommit(com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commit_ = value; + } else { + commitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + public Builder setCommit( + com.google.cloud.developerconnect.v1.SCMCommit.Builder builderForValue) { + if (commitBuilder_ == null) { + commit_ = builderForValue.build(); + } else { + commitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + public Builder mergeCommit(com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && commit_ != null + && commit_ != com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance()) { + getCommitBuilder().mergeFrom(value); + } else { + commit_ = value; + } + } else { + commitBuilder_.mergeFrom(value); + } + if (commit_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + public Builder clearCommit() { + bitField0_ = (bitField0_ & ~0x00000004); + commit_ = null; + if (commitBuilder_ != null) { + commitBuilder_.dispose(); + commitBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + public com.google.cloud.developerconnect.v1.SCMCommit.Builder getCommitBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCommitFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + public com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitOrBuilder() { + if (commitBuilder_ != null) { + return commitBuilder_.getMessageOrBuilder(); + } else { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } + } + + /** + * + * + *
+     * The commit metadata for this line range.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder> + internalGetCommitFieldBuilder() { + if (commitBuilder_ == null) { + commitBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder>( + getCommit(), getParentForChildren(), isClean()); + commit_ = null; + } + return commitBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.BlameRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.BlameRange) + private static final com.google.cloud.developerconnect.v1.BlameRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.BlameRange(); + } + + public static com.google.cloud.developerconnect.v1.BlameRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlameRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.BlameRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRangeOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRangeOrBuilder.java new file mode 100644 index 000000000000..dfbc893653c4 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/BlameRangeOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface BlameRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.BlameRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The 1-indexed starting line number of the range (inclusive).
+   * 
+ * + * int32 first_line = 1; + * + * @return The firstLine. + */ + int getFirstLine(); + + /** + * + * + *
+   * The 1-indexed ending line number of the range (inclusive).
+   * 
+ * + * int32 last_line = 2; + * + * @return The lastLine. + */ + int getLastLine(); + + /** + * + * + *
+   * The commit metadata for this line range.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + * + * @return Whether the commit field is set. + */ + boolean hasCommit(); + + /** + * + * + *
+   * The commit metadata for this line range.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + * + * @return The commit. + */ + com.google.cloud.developerconnect.v1.SCMCommit getCommit(); + + /** + * + * + *
+   * The commit metadata for this line range.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 3; + */ + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitOrBuilder(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CommitView.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CommitView.java new file mode 100644 index 000000000000..41091de4b847 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/CommitView.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * The level of commit details to return in the response.
+ * 
+ * + * Protobuf enum {@code google.cloud.developerconnect.v1.CommitView} + */ +@com.google.protobuf.Generated +public enum CommitView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified, defaults to BASIC.
+   * 
+ * + * COMMIT_VIEW_UNSPECIFIED = 0; + */ + COMMIT_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Basic view, returns commit metadata but no file diffs.
+   * 
+ * + * BASIC = 1; + */ + BASIC(1), + /** + * + * + *
+   * Full view, returns commit metadata and file diffs.
+   * 
+ * + * FULL = 2; + */ + FULL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CommitView"); + } + + /** + * + * + *
+   * Unspecified, defaults to BASIC.
+   * 
+ * + * COMMIT_VIEW_UNSPECIFIED = 0; + */ + public static final int COMMIT_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Basic view, returns commit metadata but no file diffs.
+   * 
+ * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + + /** + * + * + *
+   * Full view, returns commit metadata and file diffs.
+   * 
+ * + * FULL = 2; + */ + public static final int FULL_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 CommitView 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 CommitView forNumber(int value) { + switch (value) { + case 0: + return COMMIT_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommitView findValueByNumber(int number) { + return CommitView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CommitView[] VALUES = values(); + + public static CommitView 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 CommitView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.developerconnect.v1.CommitView) +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java index 46dd53cdb161..dcaf9ba1f794 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectProto.java @@ -196,6 +196,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_FetchAccessTokenResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_FetchAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FileDiff_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FileDiff_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_StartOAuthRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -272,6 +284,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_FetchReadWriteTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_FetchLinkableGitRepositoriesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -304,6 +320,74 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_developerconnect_v1_FetchGitRefsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_SCMCommit_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_SCMCommit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_BlameRange_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_BlameRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_PullRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_PullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_PullRequestComment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_PullRequestComment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestCommentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_AddGitRepositoryLinkPullRequestReviewCommentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_developerconnect_v1_AccountConnector_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -635,13 +719,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expiration_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\016\n" + "\006scopes\030\003 \003(\t\022G\n" + "\016exchange_error\030\004 \001(\0132/.googl" - + "e.cloud.developerconnect.v1.ExchangeError\"i\n" + + "e.cloud.developerconnect.v1.ExchangeError\"\272\001\n" + + "\"DiffGitRepositoryLinkCommitRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\026\n" + + "\010base_sha\030\002 \001(\tB\004\342A\001\002\022\026\n" + + "\010head_sha\030\003 \001(\tB\004\342A\001\002\022\032\n" + + "\014path_filters\030\004 \003(\tB\004\342A\001\001\"`\n" + + "#DiffGitRepositoryLinkCommitResponse\0229\n" + + "\005files\030\002 \003(\0132*.google.cloud.developerconnect.v1.FileDiff\"7\n" + + "\010FileDiff\022\014\n" + + "\004path\030\001 \001(\t\022\016\n" + + "\006status\030\002 \001(\t\022\r\n" + + "\005patch\030\003 \001(\t\"i\n" + "\021StartOAuthRequest\022T\n" + "\021account_connector\030\001 \001(\tB9\342A\001\002\372A2\n" + "0developerconnect.googleapis.com/AccountConnector\"\346\001\n" + "\022StartOAuthResponse\022N\n" - + "\022system_provider_id\030\007 \001(\0162" - + "0.google.cloud.developerconnect.v1.SystemProviderH\000\022\016\n" + + "\022system_provider_id\030\007" + + " \001(\01620.google.cloud.developerconnect.v1.SystemProviderH\000\022\016\n" + "\006ticket\030\001 \001(\t\022\026\n" + "\016code_challenge\030\002 \001(\t\022\035\n" + "\025code_challenge_method\030\003 \001(\t\022\021\n" @@ -650,10 +746,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010auth_uri\030\006 \001(\tB\004\n" + "\002id\"\313\003\n" + "\022FinishOAuthRequest\022X\n" - + "\014oauth_params\030\002 \001(\0132@.google.clou" - + "d.developerconnect.v1.FinishOAuthRequest.OAuthParamsH\000\022e\n" - + "\023google_oauth_params\030\003 " - + "\001(\0132F.google.cloud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParamsH\000\022T\n" + + "\014oauth_params\030\002 \001(\0132@.google.cloud.developerconne" + + "ct.v1.FinishOAuthRequest.OAuthParamsH\000\022e\n" + + "\023google_oauth_params\030\003 \001(\0132F.google.clo" + + "ud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParamsH\000\022T\n" + "\021account_connector\030\001 \001(\tB9\342A\001\002\372A2\n" + "0developerconnect.googleapis.com/AccountConnector\0327\n" + "\013OAuthParams\022\022\n" @@ -665,8 +761,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ticket\030\003 \001(\tB\004\342A\001\002B\010\n" + "\006params\"^\n" + "\023FinishOAuthResponse\022G\n" - + "\016exchange_error\030\001" - + " \001(\0132/.google.cloud.developerconnect.v1.ExchangeError\"2\n\r" + + "\016exchange_error\030\001 \001(\0132/.goo" + + "gle.cloud.developerconnect.v1.ExchangeError\"2\n\r" + "ExchangeError\022\014\n" + "\004code\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\"\320\006\n" @@ -679,12 +775,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013delete_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022U\n" - + "\006labels\030\006 \003(\0132" - + "?.google.cloud.developerconnect.v1.GitRepositoryLink.LabelsEntryB\004\342A\001\001\022\022\n" + + "\006labels\030\006 \003(\0132?.google.cloud.d" + + "eveloperconnect.v1.GitRepositoryLink.LabelsEntryB\004\342A\001\001\022\022\n" + "\004etag\030\007 \001(\tB\004\342A\001\001\022\031\n" + "\013reconciling\030\010 \001(\010B\004\342A\001\003\022_\n" - + "\013annotations\030\t \003(\0132D.google.cloud.develo" - + "perconnect.v1.GitRepositoryLink.AnnotationsEntryB\004\342A\001\001\022\031\n" + + "\013annotations\030\t \003(\0132D.google.cloud.developerconnect.v1.Gi" + + "tRepositoryLink.AnnotationsEntryB\004\342A\001\001\022\031\n" + "\003uid\030\n" + " \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\001\022\030\n\n" + "webhook_id\030\013 \001(\tB\004\342A\001\003\022\033\n\r" @@ -695,14 +791,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\314\001\352A\310\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/locati" - + "ons/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" - + "*\022gitRepositoryLinks2\021gitRepositoryLinkR\001\001\"\251\002\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022ip" + + "rojects/{project}/locations/{location}/connections/{connection}/gitRepositoryLin" + + "ks/{git_repository_link}*\022gitRepositoryLinks2\021gitRepositoryLinkR\001\001\"\251\002\n" + "\036CreateGitRepositoryLinkRequest\022J\n" - + "\006parent\030\001 \001(" - + "\tB:\342A\001\002\372A3\0221developerconnect.googleapis.com/GitRepositoryLink\022V\n" - + "\023git_repository_link\030\002 \001(\01323.google.cloud.de" - + "veloperconnect.v1.GitRepositoryLinkB\004\342A\001\002\022$\n" + + "\006parent\030\001 \001(\tB:\342" + + "A\001\002\372A3\0221developerconnect.googleapis.com/GitRepositoryLink\022V\n" + + "\023git_repository_link\030\002" + + " \001(\01323.google.cloud.developerconnect.v1.GitRepositoryLinkB\004\342A\001\002\022$\n" + "\026git_repository_link_id\030\003 \001(\tB\004\342A\001\002\022 \n\n" + "request_id\030\004 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022\033\n\r" @@ -715,15 +811,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\003 \001(\010B\004\342A\001\001\022\022\n" + "\004etag\030\004 \001(\tB\004\342A\001\001\"\314\001\n" + "\035ListGitRepositoryLinksRequest\022J\n" - + "\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221devel" - + "operconnect.googleapis.com/GitRepositoryLink\022\027\n" + + "\006parent\030\001 \001(" + + "\tB:\342A\001\002\372A3\0221developerconnect.googleapis.com/GitRepositoryLink\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\241\001\n" + "\036ListGitRepositoryLinksResponse\022Q\n" - + "\024git_repository_links\030\001" - + " \003(\01323.google.cloud.developerconnect.v1.GitRepositoryLink\022\027\n" + + "\024git_repository_links\030\001 \003(\01323.google." + + "cloud.developerconnect.v1.GitRepositoryLink\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"g\n" + "\033GetGitRepositoryLinkRequest\022H\n" @@ -742,15 +838,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033FetchReadWriteTokenResponse\022\r\n" + "\005token\030\001 \001(\t\0223\n" + "\017expiration_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\024\n" - + "\014git_username\030\003 \001(\t\"\241\001\n" + + "\014git_username\030\003 \001(\t\"\276\001\n" + + "\'OpenGitRepositoryLinkPullRequestRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022I\n" + + "\014pull_request\030\002" + + " \001(\0132-.google.cloud.developerconnect.v1.PullRequestB\004\342A\001\002\"\241\001\n" + "#FetchLinkableGitRepositoriesRequest\022G\n\n" + "connection\030\001 \001(\tB3\342A\001\002\372A,\n" + "*developerconnect.googleapis.com/Connection\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\233\001\n" + "$FetchLinkableGitRepositoriesResponse\022Z\n" - + "\031linkable_git_repositories\030\001 \003(\013" - + "27.google.cloud.developerconnect.v1.LinkableGitRepository\022\027\n" + + "\031linkable_git_repositories\030\001" + + " \003(\01327.google.cloud.developerconnect.v1.LinkableGitRepository\022\027\n" + "\017next_page_token\030\002 \001(\t\"*\n" + "\025LinkableGitRepository\022\021\n" + "\tclone_uri\030\001 \001(\t\"j\n" @@ -758,8 +859,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "connection\030\001 \001(\tB3\342A\001\002\372A,\n" + "*developerconnect.googleapis.com/Connection\"\302\001\n" + " FetchGitHubInstallationsResponse\022f\n\r" - + "installations\030\001 \003(\0132O.google.cloud.developerc" - + "onnect.v1.FetchGitHubInstallationsResponse.Installation\0326\n" + + "installations\030\001 \003(\0132O.google" + + ".cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation\0326\n" + "\014Installation\022\n\n" + "\002id\030\001 \001(\003\022\014\n" + "\004name\030\002 \001(\t\022\014\n" @@ -767,8 +868,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023FetchGitRefsRequest\022W\n" + "\023git_repository_link\030\001 \001(\tB:\342A\001\002\372A3\n" + "1developerconnect.googleapis.com/GitRepositoryLink\022U\n" - + "\010ref_type\030\002 \001" - + "(\0162=.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefTypeB\004\342A\001\002\022\027\n" + + "\010ref_type\030\002 \001(\0162=.google.cloud.devel" + + "operconnect.v1.FetchGitRefsRequest.RefTypeB\004\342A\001\002\022\027\n" + "\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\005 \001(\tB\004\342A\001\001\"8\n" + "\007RefType\022\030\n" @@ -777,20 +878,163 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006BRANCH\020\002\"B\n" + "\024FetchGitRefsResponse\022\021\n" + "\tref_names\030\001 \003(\t\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\347\001\n" + + "#FetchGitRepositoryLinkCommitRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\030\n\n" + + "commit_sha\030\002 \001(\tB\004\342A\001\002\022@\n" + + "\004view\030\003" + + " \001(\0162,.google.cloud.developerconnect.v1.CommitViewB\004\342A\001\001\022\032\n" + + "\014path_filters\030\004 \003(\tB\004\342A\001\001\"\236\001\n" + + "$FetchGitRepositoryLinkCommitResponse\022;\n" + + "\006commit\030\001 \001(\0132+.google.cloud.developerconnect.v1.SCMCommit\0229\n" + + "\005files\030\002 \003(\0132*.google.cloud.developerconnect.v1.FileDiff\"\373\001\n" + + "\'FetchGitRepositoryLinkCommitListRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\021\n" + + "\003ref\030\002 \001(\tB\004\342A\001\001\022\027\n" + + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\004 \001(\tB\004\342A\001\001\022@\n" + + "\004view\030\005" + + " \001(\0162,.google.cloud.developerconnect.v1.CommitViewB\004\342A\001\001\"\201\001\n" + + "(FetchGitRepositoryLinkCommitListResponse\022<\n" + + "\007commits\030\001 \003(\0132+.google.cloud.developerconnect.v1.SCMCommit\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\215\001\n" + + "\tSCMCommit\022\013\n" + + "\003sha\030\001 \001(\t\022\017\n" + + "\007message\030\002 \001(\t\022\016\n" + + "\006author\030\003 \001(\t\022\024\n" + + "\014author_email\030\004 \001(\t\022/\n" + + "\013commit_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\013\n" + + "\003url\030\006 \001(\t\"\314\001\n" + + "&FetchGitRepositoryLinkFileBlameRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\021\n" + + "\003ref\030\002 \001(\tB\004\342A\001\002\022\022\n" + + "\004path\030\003 \001(\tB\004\342A\001\002\022\030\n\n" + + "first_line\030\004 \001(\005B\004\342A\001\001\022\027\n" + + "\tlast_line\030\005 \001(\005B\004\342A\001\001\"p\n" + + "\n" + + "BlameRange\022\022\n\n" + + "first_line\030\001 \001(\005\022\021\n" + + "\tlast_line\030\002 \001(\005\022;\n" + + "\006commit\030\003 \001(\0132+.google.cloud.developerconnect.v1.SCMCommit\"g\n" + + "\'FetchGitRepositoryLinkFileBlameResponse\022<\n" + + "\006ranges\030\001 \003(\0132,.google.cloud.developerconnect.v1.BlameRange\"\223\001\n" + + "(FetchGitRepositoryLinkPullRequestRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001", + "\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\035\n" + + "\017pull_request_id\030\002 \001(\tB\004\342A\001\002\"\207\006\n" + + "\013PullRequest\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\002\022\023\n" + + "\005title\030\002 \001(\tB\004\342A\001\002\022\022\n" + + "\004body\030\003 \001(\tB\004\342A\001\001\022\026\n" + + "\010head_ref\030\004 \001(\tB\004\342A\001\002\022\026\n" + + "\010base_ref\030\005 \001(\tB\004\342A\001\002\022\024\n" + + "\006author\030\006 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0224\n\n" + + "merge_time\030\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0224\n\n" + + "close_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0226\n" + + "\014decline_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022H\n" + + "\005state\030\014 \001(\016" + + "23.google.cloud.developerconnect.v1.PullRequest.StateB\004\342A\001\003\022V\n" + + "\014mergeability\030\r" + + " \001(" + + "\0162:.google.cloud.developerconnect.v1.PullRequest.MergeabilityB\004\342A\001\003\022\026\n" + + "\010html_url\030\016 \001(\tB\004\342A\001\003\"N\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\010\n" + + "\004OPEN\020\001\022\n\n" + + "\006CLOSED\020\002\022\n\n" + + "\006MERGED\020\003\022\014\n" + + "\010DECLINED\020\004\"[\n" + + "\014Mergeability\022\034\n" + + "\030MERGEABILITY_UNSPECIFIED\020\000\022\r\n" + + "\tMERGEABLE\020\001\022\017\n" + + "\013CONFLICTING\020\002\022\r\n" + + "\tCOMPUTING\020\003\"\276\001\n" + + "\022PullRequestComment\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\022\n" + + "\004body\030\002 \001(\tB\004\342A\001\002\022\024\n" + + "\006author\030\003 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\345\001\n" + + "-AddGitRepositoryLinkPullRequestCommentRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\035\n" + + "\017pull_request_id\030\002 \001(\tB\004\342A\001\002\022K\n" + + "\007comment\030\003 \001(\01324.google.c" + + "loud.developerconnect.v1.PullRequestCommentB\004\342A\001\002\"\270\003\n" + + "\030PullRequestReviewComment\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\022\n" + + "\004body\030\002 \001(\tB\004\342A\001\002\022\022\n" + + "\004path\030\003 \001(\tB\004\342A\001\002\022\030\n\n" + + "first_line\030\004 \001(\005B\004\342A\001\001\022\027\n" + + "\tlast_line\030\005 \001(\005B\004\342A\001\002\022W\n" + + "\004side\030\006 \001(" + + "\0162C.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSideB\004\342A\001\001\022\024\n" + + "\006author\030\007 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\t" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\027\n" + + "\tcommit_id\030\n" + + " \001(\tB\004\342A\001\003\"9\n" + + "\010DiffSide\022\031\n" + + "\025DIFF_SIDE_UNSPECIFIED\020\000\022\010\n" + + "\004BASE\020\001\022\010\n" + + "\004HEAD\020\002\"\212\002\n" + + "3AddGitRepositoryLinkPullRequestReviewCommentRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\035\n" + + "\017pull_request_id\030\002 \001(\tB\004\342A\001\002\022Q\n" + + "\007comment\030\003 \001(\0132:.google." + + "cloud.developerconnect.v1.PullRequestReviewCommentB\004\342A\001\002\022\027\n" + + "\tcommit_id\030\004 \001(\tB\004\342A\001\001\"\363\002\n" + + ")ModifyGitRepositoryLinkPullRequestRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\035\n" + + "\017pull_request_id\030\002 \001(\tB\004\342A\001\002\022\023\n" + + "\005title\030\003 \001(\tB\004\342A\001\001\022\022\n" + + "\004body\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010base_ref\030\005 \001(\tB\004\342A\001\001\022f\n" + + "\005state\030\006 \001(\0162Q.google.cloud.developerconnect.v1.ModifyGitRep" + + "ositoryLinkPullRequestRequest.StateB\004\342A\001\001\"4\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\010\n" + + "\004OPEN\020\001\022\n\n" + + "\006CLOSED\020\002\"\301\001\n" + + ",FetchGitRepositoryLinkPullRequestListRequest\022H\n" + + "\004name\030\001 \001(\tB:\342A\001\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\024\n" + + "\006filter\030\002 \001(\tB\004\342A\001\001\022\027\n" + + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\004 \001(\tB\004\342A\001\001\"\216\001\n" + + "-FetchGitRepositoryLinkPullRequestListResponse\022D\n\r" + + "pull_requests\030\001" + + " \003(\0132-.google.cloud.developerconnect.v1.PullRequest\022\027\n" + "\017next_page_token\030\002 \001(\t\"\212\006\n" + "\020AccountConnector\022\\\n" - + "\025provider_oauth_config\030\005 \001(\01325.google.cloud.deve" - + "loperconnect.v1.ProviderOAuthConfigB\004\342A\001\001H\000\022\022\n" + + "\025provider_oauth_config\030\005" + + " \001(\01325.google.cloud.developerconnect.v1.ProviderOAuthConfigB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\0225\n" + "\013create_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022^\n" - + "\013annotations\030\006 \003(\0132C.goo" - + "gle.cloud.developerconnect.v1.AccountConnector.AnnotationsEntryB\004\342A\001\001\022\022\n" + + "\013annotations\030\006 \003(\0132C.google.cloud.de" + + "veloperconnect.v1.AccountConnector.AnnotationsEntryB\004\342A\001\001\022\022\n" + "\004etag\030\007 \001(\tB\004\342A\001\001\022T\n" - + "\006labels\030\010 \003(\0132>.google.cloud" - + ".developerconnect.v1.AccountConnector.LabelsEntryB\004\342A\001\001\022\035\n" + + "\006labels\030\010 \003(\0132>.google.cloud.developerco" + + "nnect.v1.AccountConnector.LabelsEntryB\004\342A\001\001\022\035\n" + "\017oauth_start_uri\030\n" + " \001(\tB\004\342A\001\003\0322\n" + "\020AnnotationsEntry\022\013\n" @@ -799,25 +1043,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\255\001\352A\251\001\n" - + "0developerconnect.googleapis.com/AccountConnect" - + "or\022Mprojects/{project}/locations/{location}/accountConnectors/{account_connector" - + "}*\021accountConnectors2\020accountConnectorR\001\001B\032\n" + + "0developerconnect.googleapis.com/AccountConnector\022Mprojects" + + "/{project}/locations/{location}/accountC" + + "onnectors/{account_connector}*\021accountConnectors2\020accountConnectorR\001\001B\032\n" + "\030account_connector_config\"\306\002\n" + "\004User\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\003\0225\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022A\n" - + "\027last_token_request_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003:\223\001\352A\217\001\n" - + "$developerconnect.googleapis.com/User\022Zprojects/{project}/locati" - + "ons/{location}/accountConnectors/{accoun" - + "t_connector}/users/{user}*\005users2\004user\"\227\001\n" + + "\027last_token_request_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003:\223\001\352A\217\001\n" + + "$developerconnect.googleapis.com/User\022Zprojects/{project}/locations/{locatio" + + "n}/accountConnectors/{account_connector}/users/{user}*\005users2\004user\"\227\001\n" + "\023ProviderOAuthConfig\022U\n" - + "\022system_provider_id\030\001" - + " \001(\01620.google.cloud.developerconnect.v1.SystemProviderB\005\342A\002\005\001H\000\022\024\n" + + "\022system_provider_id\030\001 \001(\01620" + + ".google.cloud.developerconnect.v1.SystemProviderB\005\342A\002\005\001H\000\022\024\n" + "\006scopes\030\002 \003(\tB\004\342A\001\002B\023\n" - + "\021oauth_provider_id*\227\001\n" + + "\021oauth_provider_id*>\n\n" + + "CommitView\022\033\n" + + "\027COMMIT_VIEW_UNSPECIFIED\020\000\022\t\n" + + "\005BASIC\020\001\022\010\n" + + "\004FULL\020\002*\227\001\n" + "\016SystemProvider\022\037\n" + "\033SYSTEM_PROVIDER_UNSPECIFIED\020\000\022\n\n" + "\006GITHUB\020\001\022\n\n" @@ -827,188 +1074,205 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004ROVO\020\005\022\r\n" + "\tNEW_RELIC\020\006\022\014\n" + "\010DATASTAX\020\007\022\r\n" - + "\tDYNATRACE\020\0102\3132\n" + + "\tDYNATRACE\020\0102\330I\n" + "\020DeveloperConnect\022\310\001\n" - + "\017ListConnections\0228.google.cloud.developerconnect.v1.ListConnectionsRe" - + "quest\0329.google.cloud.developerconnect.v1" - + ".ListConnectionsResponse\"@\332A\006parent\202\323\344\223\002" - + "1\022//v1/{parent=projects/*/locations/*}/connections\022\265\001\n\r" - + "GetConnection\0226.google.cloud.developerconnect.v1.GetConnectionReq" - + "uest\032,.google.cloud.developerconnect.v1." - + "Connection\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/connections/*}\022\366\001\n" - + "\020CreateConnection\0229.google.cloud.developer" - + "connect.v1.CreateConnectionRequest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" - + "Connect", - "ion\022\021OperationMetadata\332A\037parent,connecti" - + "on,connection_id\202\323\344\223\002=\"//v1/{parent=proj" - + "ects/*/locations/*}/connections:\nconnect" - + "ion\022\370\001\n\020UpdateConnection\0229.google.cloud." - + "developerconnect.v1.UpdateConnectionRequ" - + "est\032\035.google.longrunning.Operation\"\211\001\312A\037" - + "\n\nConnection\022\021OperationMetadata\332A\026connec" - + "tion,update_mask\202\323\344\223\002H2:/v1/{connection." + + "\017ListConnections\0228.google.cloud.developerconnect.v1.ListC" + + "onnectionsRequest\0329.google.cloud.develop" + + "erconnect.v1.ListConnectionsResponse\"@\332A" + + "\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/connections\022\265\001\n\r" + + "GetConnection\0226.google.cloud.developerconnect.v1.GetC" + + "onnectionRequest\032,.google.cloud.develope" + + "rconnect.v1.Connection\">\332A\004name\202\323\344\223\0021\022//" + + "v1/{name=projects/*/locations/*/connections/*}\022\366\001\n" + + "\020CreateConnection\0229.google.cloud.developerconnect.v1.CreateConnectionR" + + "equest\032\035.google.longrunning.Operation\"\207\001\312A\037\n\n" + + "Connection\022\021OperationMetadata\332A\037par" + + "ent,connection,connection_id\202\323\344\223\002=\"//v1/" + + "{parent=projects/*/locations/*}/connections:\n" + + "connection\022\370\001\n" + + "\020UpdateConnection\0229.google.cloud.developerconnect.v1.UpdateCo" + + "nnectionRequest\032\035.google.longrunning.Operation\"\211\001\312A\037\n\n" + + "Connection\022\021OperationMetad" + + "ata\332A\026connection,update_mask\202\323\344\223\002H2:/v1/" + + "{connection.name=projects/*/locations/*/connections/*}:\n" + + "connection\022\331\001\n" + + "\020DeleteConnection\0229.google.cloud.developerconnect." + + "v1.DeleteConnectionRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//" + + "v1/{name=projects/*/locations/*/connections/*}\022\273\002\n" + + "\027CreateGitRepositoryLink\022@.google.cloud.developerconnect.v1.CreateGitR" + + "epositoryLinkRequest\032\035.google.longrunning.Operation\"\276\001\312A&\n" + + "\021GitRepositoryLink\022\021OperationMetadata\332A1parent,git_repository_" + + "link,git_repository_link_id\202\323\344\223\002[\"D/v1/{" + + "parent=projects/*/locations/*/connection" + + "s/*}/gitRepositoryLinks:\023git_repository_link\022\375\001\n" + + "\027DeleteGitRepositoryLink\022@.google.cloud.developerconnect.v1.DeleteGitRep" + + "ositoryLinkRequest\032\035.google.longrunning.Operation\"\200\001\312A*\n" + + "\025google.protobuf.Empty\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\002F*D/v1/{nam" + + "e=projects/*/locations/*/connections/*/gitRepositoryLinks/*}\022\362\001\n" + + "\026ListGitRepositoryLinks\022?.google.cloud.developerconnect." + + "v1.ListGitRepositoryLinksRequest\032@.google.cloud.developerconnect.v1.ListGitRepos" + + "itoryLinksResponse\"U\332A\006parent\202\323\344\223\002F\022D/v1" + + "/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks\022\337\001\n" + + "\024GetGitRepositoryLink\022=.google.cloud.developerconne" + + "ct.v1.GetGitRepositoryLinkRequest\0323.google.cloud.developerconnect.v1.GitReposito" + + "ryLink\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=project" + + "s/*/locations/*/connections/*/gitRepositoryLinks/*}\022\235\002\n" + + "\023FetchReadWriteToken\022<.google.cloud.developerconnect.v1.FetchRead" + + "WriteTokenRequest\032=.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse" + + "\"\210\001\332A\023git_repository_link\202\323\344\223\002l\"g/v1/{gi" + + "t_repository_link=projects/*/locations/*" + + "/connections/*/gitRepositoryLinks/*}:fetchReadWriteToken:\001*\022\211\002\n" + + "\016FetchReadToken\0227.google.cloud.developerconnect.v1.FetchR" + + "eadTokenRequest\0328.google.cloud.developer" + + "connect.v1.FetchReadTokenResponse\"\203\001\332A\023g" + + "it_repository_link\202\323\344\223\002g\"b/v1/{git_repos" + + "itory_link=projects/*/locations/*/connec" + + "tions/*/gitRepositoryLinks/*}:fetchReadToken:\001*\022\221\002\n" + + " OpenGitRepositoryLinkPullRequest\022I.google.cloud.developerconnect.v1." + + "OpenGitRepositoryLinkPullRequestRequest\032-.google.cloud.developerconnect.v1.PullR" + + "equest\"s\332A\021name,pull_request\202\323\344\223\002Y\"T/v1/" + + "{name=projects/*/locations/*/connections" + + "/*/gitRepositoryLinks/*}:openPullRequest:\001*\022\226\002\n" + + "\034FetchLinkableGitRepositories\022E.google.cloud.developerconnect.v1.FetchLin" + + "kableGitRepositoriesRequest\032F.google.clo" + + "ud.developerconnect.v1.FetchLinkableGitRepositoriesResponse\"g\332A\n" + + "connection\202\323\344\223\002T\022R/v1/{connection=projects/*/locations/*" + + "/connections/*}:fetchLinkableGitRepositories\022\206\002\n" + + "\030FetchGitHubInstallations\022A.google.cloud.developerconnect.v1.FetchGitHub" + + "InstallationsRequest\032B.google.cloud.deve" + + "loperconnect.v1.FetchGitHubInstallationsResponse\"c\332A\n" + + "connection\202\323\344\223\002P\022N/v1/{conn" + + "ection=projects/*/locations/*/connections/*}:fetchGitHubInstallations\022\207\002\n" + + "\014FetchGitRefs\0225.google.cloud.developerconnect.v" + + "1.FetchGitRefsRequest\0326.google.cloud.dev" + + "eloperconnect.v1.FetchGitRefsResponse\"\207\001" + + "\332A\034git_repository_link,ref_type\202\323\344\223\002b\022`/" + + "v1/{git_repository_link=projects/*/locat" + + "ions/*/connections/*/gitRepositoryLinks/*}:fetchGitRefs\022\234\002\n" + + "\033DiffGitRepositoryLinkCommit\022D.google.cloud.developerconnect." + + "v1.DiffGitRepositoryLinkCommitRequest\032E.google.cloud.developerconnect.v1.DiffGit" + + "RepositoryLinkCommitResponse\"p\332A\026name,ba" + + "se_sha,head_sha\202\323\344\223\002Q\022O/v1/{name=project" + + "s/*/locations/*/connections/*/gitRepositoryLinks/*}:diffCommit\022\231\002\n" + + "\034FetchGitRepositoryLinkCommit\022E.google.cloud.developer" + + "connect.v1.FetchGitRepositoryLinkCommitRequest\032F.google.cloud.developerconnect.v" + + "1.FetchGitRepositoryLinkCommitResponse\"j" + + "\332A\017name,commit_sha\202\323\344\223\002R\022P/v1/{name=proj" + + "ects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchCommit\022\242\002\n" + + " FetchGitRepositoryLinkCommitList\022I.google.cloud.d" + + "eveloperconnect.v1.FetchGitRepositoryLinkCommitListRequest\032J.google.cloud.develo" + + "perconnect.v1.FetchGitRepositoryLinkComm" + + "itListResponse\"g\332A\010name,ref\202\323\344\223\002V\022T/v1/{" + "name=projects/*/locations/*/connections/" - + "*}:\nconnection\022\331\001\n\020DeleteConnection\0229.go" - + "ogle.cloud.developerconnect.v1.DeleteCon" - + "nectionRequest\032\035.google.longrunning.Oper" - + "ation\"k\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pro" - + "jects/*/locations/*/connections/*}\022\273\002\n\027C" - + "reateGitRepositoryLink\022@.google.cloud.de" - + "veloperconnect.v1.CreateGitRepositoryLin" - + "kRequest\032\035.google.longrunning.Operation\"" - + "\276\001\312A&\n\021GitRepositoryLink\022\021OperationMetad" - + "ata\332A1parent,git_repository_link,git_rep" - + "ository_link_id\202\323\344\223\002[\"D/v1/{parent=proje" - + "cts/*/locations/*/connections/*}/gitRepo" - + "sitoryLinks:\023git_repository_link\022\375\001\n\027Del" - + "eteGitRepositoryLink\022@.google.cloud.deve" - + "loperconnect.v1.DeleteGitRepositoryLinkR" - + "equest\032\035.google.longrunning.Operation\"\200\001" - + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\002F*D/v1/{name=projects/*" - + "/locations/*/connections/*/gitRepository" - + "Links/*}\022\362\001\n\026ListGitRepositoryLinks\022?.go" - + "ogle.cloud.developerconnect.v1.ListGitRe" - + "positoryLinksRequest\032@.google.cloud.deve" - + "loperconnect.v1.ListGitRepositoryLinksRe" - + "sponse\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=pro" - + "jects/*/locations/*/connections/*}/gitRe" - + "positoryLinks\022\337\001\n\024GetGitRepositoryLink\022=" - + ".google.cloud.developerconnect.v1.GetGit" - + "RepositoryLinkRequest\0323.google.cloud.dev" - + "eloperconnect.v1.GitRepositoryLink\"S\332A\004n" - + "ame\202\323\344\223\002F\022D/v1/{name=projects/*/location" - + "s/*/connections/*/gitRepositoryLinks/*}\022" - + "\235\002\n\023FetchReadWriteToken\022<.google.cloud.d" - + "eveloperconnect.v1.FetchReadWriteTokenRe" - + "quest\032=.google.cloud.developerconnect.v1" - + ".FetchReadWriteTokenResponse\"\210\001\332A\023git_re" - + "pository_link\202\323\344\223\002l\"g/v1/{git_repository" - + "_link=projects/*/locations/*/connections" - + "/*/gitRepositoryLinks/*}:fetchReadWriteT" - + "oken:\001*\022\211\002\n\016FetchReadToken\0227.google.clou" - + "d.developerconnect.v1.FetchReadTokenRequ" - + "est\0328.google.cloud.developerconnect.v1.F" - + "etchReadTokenResponse\"\203\001\332A\023git_repositor" - + "y_link\202\323\344\223\002g\"b/v1/{git_repository_link=p" - + "rojects/*/locations/*/connections/*/gitR" - + "epositoryLinks/*}:fetchReadToken:\001*\022\226\002\n\034" - + "FetchLinkableGitRepositories\022E.google.cl" - + "oud.developerconnect.v1.FetchLinkableGit" - + "RepositoriesRequest\032F.google.cloud.devel" - + "operconnect.v1.FetchLinkableGitRepositor" - + "iesResponse\"g\332A\nconnection\202\323\344\223\002T\022R/v1/{c" - + "onnection=projects/*/locations/*/connect" - + "ions/*}:fetchLinkableGitRepositories\022\206\002\n" - + "\030FetchGitHubInstallations\022A.google.cloud" - + ".developerconnect.v1.FetchGitHubInstalla" - + "tionsRequest\032B.google.cloud.developercon" - + "nect.v1.FetchGitHubInstallationsResponse" - + "\"c\332A\nconnection\202\323\344\223\002P\022N/v1/{connection=p" - + "rojects/*/locations/*/connections/*}:fet" - + "chGitHubInstallations\022\207\002\n\014FetchGitRefs\0225" - + ".google.cloud.developerconnect.v1.FetchG" - + "itRefsRequest\0326.google.cloud.developerco" - + "nnect.v1.FetchGitRefsResponse\"\207\001\332A\034git_r" - + "epository_link,ref_type\202\323\344\223\002b\022`/v1/{git_" - + "repository_link=projects/*/locations/*/c" - + "onnections/*/gitRepositoryLinks/*}:fetch" - + "GitRefs\022\340\001\n\025ListAccountConnectors\022>.goog" - + "le.cloud.developerconnect.v1.ListAccount" - + "ConnectorsRequest\032?.google.cloud.develop" - + "erconnect.v1.ListAccountConnectorsRespon" - + "se\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=project" - + "s/*/locations/*}/accountConnectors\022\315\001\n\023G" - + "etAccountConnector\022<.google.cloud.develo" - + "perconnect.v1.GetAccountConnectorRequest" - + "\0322.google.cloud.developerconnect.v1.Acco" - + "untConnector\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=p" - + "rojects/*/locations/*/accountConnectors/" - + "*}\022\243\002\n\026CreateAccountConnector\022?.google.c" - + "loud.developerconnect.v1.CreateAccountCo" - + "nnectorRequest\032\035.google.longrunning.Oper" - + "ation\"\250\001\312A%\n\020AccountConnector\022\021Operation" - + "Metadata\332A-parent,account_connector,acco" - + "unt_connector_id\202\323\344\223\002J\"5/v1/{parent=proj" - + "ects/*/locations/*}/accountConnectors:\021a" - + "ccount_connector\022\245\002\n\026UpdateAccountConnec" - + "tor\022?.google.cloud.developerconnect.v1.U" - + "pdateAccountConnectorRequest\032\035.google.lo" - + "ngrunning.Operation\"\252\001\312A%\n\020AccountConnec" - + "tor\022\021OperationMetadata\332A\035account_connect" - + "or,update_mask\202\323\344\223\002\\2G/v1/{account_conne" - + "ctor.name=projects/*/locations/*/account" - + "Connectors/*}:\021account_connector\022\353\001\n\026Del" - + "eteAccountConnector\022?.google.cloud.devel" - + "operconnect.v1.DeleteAccountConnectorReq" - + "uest\032\035.google.longrunning.Operation\"q\312A*" - + "\n\025google.protobuf.Empty\022\021OperationMetada" - + "ta\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/lo" - + "cations/*/accountConnectors/*}\022\203\002\n\020Fetch" - + "AccessToken\0229.google.cloud.developerconn" - + "ect.v1.FetchAccessTokenRequest\032:.google." - + "cloud.developerconnect.v1.FetchAccessTok" - + "enResponse\"x\332A\021account_connector\202\323\344\223\002^\"Y" - + "/v1/{account_connector=projects/*/locati" - + "ons/*/accountConnectors/*}/users:fetchAc" - + "cessToken:\001*\022\304\001\n\tListUsers\0222.google.clou" - + "d.developerconnect.v1.ListUsersRequest\0323" - + ".google.cloud.developerconnect.v1.ListUs" - + "ersResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{paren" - + "t=projects/*/locations/*/accountConnecto" - + "rs/*}/users\022\333\001\n\nDeleteUser\0223.google.clou" - + "d.developerconnect.v1.DeleteUserRequest\032" - + "\035.google.longrunning.Operation\"y\312A*\n\025goo" - + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\002?*=/v1/{name=projects/*/locatio" - + "ns/*/accountConnectors/*/users/*}\022\275\001\n\tFe" - + "tchSelf\0222.google.cloud.developerconnect." - + "v1.FetchSelfRequest\032&.google.cloud.devel" - + "operconnect.v1.User\"T\332A\004name\202\323\344\223\002G\022E/v1/" - + "{name=projects/*/locations/*/accountConn" - + "ectors/*}/users:fetchSelf\022\345\001\n\nDeleteSelf" - + "\0223.google.cloud.developerconnect.v1.Dele" - + "teSelfRequest\032\035.google.longrunning.Opera" - + "tion\"\202\001\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\002H*F/v1/{name=pro" - + "jects/*/locations/*/accountConnectors/*}" - + "/users:deleteSelf\022\354\001\n\nStartOAuth\0223.googl" - + "e.cloud.developerconnect.v1.StartOAuthRe" - + "quest\0324.google.cloud.developerconnect.v1" - + ".StartOAuthResponse\"s\332A\021account_connecto" - + "r\202\323\344\223\002Y\022W/v1/{account_connector=projects" - + "/*/locations/*/accountConnectors/*}/user" - + "s:startOAuthFlow\022\360\001\n\013FinishOAuth\0224.googl" - + "e.cloud.developerconnect.v1.FinishOAuthR" - + "equest\0325.google.cloud.developerconnect.v" - + "1.FinishOAuthResponse\"t\332A\021account_connec" - + "tor\202\323\344\223\002Z\022X/v1/{account_connector=projec" - + "ts/*/locations/*/accountConnectors/*}/us" - + "ers:finishOAuthFlow\032S\312A\037developerconnect" - + ".googleapis.com\322A.https://www.googleapis" - + ".com/auth/cloud-platformB\273\006\n$com.google." - + "cloud.developerconnect.v1B\025DeveloperConn" - + "ectProtoP\001ZPcloud.google.com/go/develope" - + "rconnect/apiv1/developerconnectpb;develo" - + "perconnectpb\242\002\020DeveloperConnect\252\002 Google" - + ".Cloud.DeveloperConnect.V1\312\002 Google\\Clou" - + "d\\DeveloperConnect\\V1\352\002#Google::Cloud::D" - + "eveloperConnect::V1\352A\277\001\n*secretmanager.g" - + "oogleapis.com/SecretVersion\022=projects/{p" - + "roject}/secrets/{secret}/versions/{secre" - + "t_version}\022Rprojects/{project}/locations" - + "/{location}/secrets/{secret}/versions/{s" - + "ecret_version}\352Ax\n!cloudkms.googleapis.c" - + "om/CryptoKey\022Sprojects/{project}/locatio" - + "ns/{location}/keyRings/{key_ring}/crypto" - + "Keys/{crypto_key}\352A|\n\'servicedirectory.g" - + "oogleapis.com/Service\022Qprojects/{project" - + "}/locations/{location}/namespaces/{names" - + "pace}/services/{service}\352Ak\n+securesourc" - + "emanager.googleapis.com/Instance\022.google.cloud.developerconnect.v1.Li" + + "stAccountConnectorsRequest\032?.google.cloud.developerconnect.v1.ListAccountConnect" + + "orsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{paren" + + "t=projects/*/locations/*}/accountConnectors\022\315\001\n" + + "\023GetAccountConnector\022<.google.cloud.developerconnect.v1.GetAccountConnect" + + "orRequest\0322.google.cloud.developerconnec" + + "t.v1.AccountConnector\"D\332A\004name\202\323\344\223\0027\0225/v" + + "1/{name=projects/*/locations/*/accountConnectors/*}\022\243\002\n" + + "\026CreateAccountConnector\022?.google.cloud.developerconnect.v1.Create" + + "AccountConnectorRequest\032\035.google.longrunning.Operation\"\250\001\312A%\n" + + "\020AccountConnector\022\021OperationMetadata\332A-parent,account_conne" + + "ctor,account_connector_id\202\323\344\223\002J\"5/v1/{pa" + + "rent=projects/*/locations/*}/accountConnectors:\021account_connector\022\245\002\n" + + "\026UpdateAccountConnector\022?.google.cloud.developercon" + + "nect.v1.UpdateAccountConnectorRequest\032\035.google.longrunning.Operation\"\252\001\312A%\n" + + "\020AccountConnector\022\021OperationMetadata\332A\035accoun" + + "t_connector,update_mask\202\323\344\223\002\\2G/v1/{acco" + + "unt_connector.name=projects/*/locations/" + + "*/accountConnectors/*}:\021account_connector\022\353\001\n" + + "\026DeleteAccountConnector\022?.google.cloud.developerconnect.v1.DeleteAccountCon" + + "nectorRequest\032\035.google.longrunning.Operation\"q\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=proj" + + "ects/*/locations/*/accountConnectors/*}\022\203\002\n" + + "\020FetchAccessToken\0229.google.cloud.developerconnect.v1.FetchAccessTokenRequest\032" + + ":.google.cloud.developerconnect.v1.Fetch" + + "AccessTokenResponse\"x\332A\021account_connecto" + + "r\202\323\344\223\002^\"Y/v1/{account_connector=projects" + + "/*/locations/*/accountConnectors/*}/users:fetchAccessToken:\001*\022\304\001\n" + + "\tListUsers\0222.google.cloud.developerconnect.v1.ListUsers" + + "Request\0323.google.cloud.developerconnect." + + "v1.ListUsersResponse\"N\332A\006parent\202\323\344\223\002?\022=/" + + "v1/{parent=projects/*/locations/*/accountConnectors/*}/users\022\333\001\n\n" + + "DeleteUser\0223.google.cloud.developerconnect.v1.DeleteUse" + + "rRequest\032\035.google.longrunning.Operation\"y\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMe" + + "tadata\332A\004name\202\323\344\223\002?*=/v1/{name=projects/" + + "*/locations/*/accountConnectors/*/users/*}\022\275\001\n" + + "\tFetchSelf\0222.google.cloud.developerconnect.v1.FetchSelfRequest\032&.google.cl" + + "oud.developerconnect.v1.User\"T\332A\004name\202\323\344" + + "\223\002G\022E/v1/{name=projects/*/locations/*/accountConnectors/*}/users:fetchSelf\022\345\001\n\n" + + "DeleteSelf\0223.google.cloud.developerconnec" + + "t.v1.DeleteSelfRequest\032\035.google.longrunning.Operation\"\202\001\312A*\n" + + "\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002H*F/v1/" + + "{name=projects/*/locations/*/accountConnectors/*}/users:deleteSelf\022\354\001\n\n" + + "StartOAuth\0223.google.cloud.developerconnect.v1.Sta" + + "rtOAuthRequest\0324.google.cloud.developerc" + + "onnect.v1.StartOAuthResponse\"s\332A\021account" + + "_connector\202\323\344\223\002Y\022W/v1/{account_connector" + + "=projects/*/locations/*/accountConnectors/*}/users:startOAuthFlow\022\360\001\n" + + "\013FinishOAuth\0224.google.cloud.developerconnect.v1.Fin" + + "ishOAuthRequest\0325.google.cloud.developer" + + "connect.v1.FinishOAuthResponse\"t\332A\021accou" + + "nt_connector\202\323\344\223\002Z\022X/v1/{account_connect" + + "or=projects/*/locations/*/accountConnect" + + "ors/*}/users:finishOAuthFlow\032S\312A\037develop" + + "erconnect.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\273\006\n" + + "$com.google.cloud.developerconnect.v1B\025Deve" + + "loperConnectProtoP\001ZPcloud.google.com/go/developerconnect/apiv1/developerconnect" + + "pb;developerconnectpb\242\002\020DeveloperConnect\252\002" + + " Google.Cloud.DeveloperConnect.V1\312\002 Go" + + "ogle\\Cloud\\DeveloperConnect\\V1\352\002#Google::Cloud::DeveloperConnect::V1\352A\277\001\n" + + "*secretmanager.googleapis.com/SecretVersion\022=pr" + + "ojects/{project}/secrets/{secret}/versions/{secret_version}\022Rprojects/{project}/" + + "locations/{location}/secrets/{secret}/versions/{secret_version}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project" + + "}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects" + + "/{project}/locations/{location}/namespaces/{namespace}/services/{service}\352Ak\n" + + "+securesourcemanager.googleapis.com/Instance\022 + * Request message for DiffGitRepositoryLinkCommit. + *
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest} + */ +@com.google.protobuf.Generated +public final class DiffGitRepositoryLinkCommitRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) + DiffGitRepositoryLinkCommitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DiffGitRepositoryLinkCommitRequest"); + } + + // Use DiffGitRepositoryLinkCommitRequest.newBuilder() to construct. + private DiffGitRepositoryLinkCommitRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DiffGitRepositoryLinkCommitRequest() { + name_ = ""; + baseSha_ = ""; + headSha_ = ""; + pathFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest.class, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BASE_SHA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseSha_ = ""; + + /** + * + * + *
+   * Required. The base commit SHA or ref.
+   * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseSha. + */ + @java.lang.Override + public java.lang.String getBaseSha() { + java.lang.Object ref = baseSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseSha_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The base commit SHA or ref.
+   * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseShaBytes() { + java.lang.Object ref = baseSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEAD_SHA_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object headSha_ = ""; + + /** + * + * + *
+   * Required. The head commit SHA or ref.
+   * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The headSha. + */ + @java.lang.Override + public java.lang.String getHeadSha() { + java.lang.Object ref = headSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headSha_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The head commit SHA or ref.
+   * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for headSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHeadShaBytes() { + java.lang.Object ref = headSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FILTERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pathFilters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pathFilters. + */ + public com.google.protobuf.ProtocolStringList getPathFiltersList() { + return pathFilters_; + } + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pathFilters. + */ + public int getPathFiltersCount() { + return pathFilters_.size(); + } + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pathFilters at the given index. + */ + public java.lang.String getPathFilters(int index) { + return pathFilters_.get(index); + } + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pathFilters at the given index. + */ + public com.google.protobuf.ByteString getPathFiltersBytes(int index) { + return pathFilters_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseSha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, baseSha_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headSha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, headSha_); + } + for (int i = 0; i < pathFilters_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pathFilters_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseSha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, baseSha_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headSha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, headSha_); + } + { + int dataSize = 0; + for (int i = 0; i < pathFilters_.size(); i++) { + dataSize += computeStringSizeNoTag(pathFilters_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathFiltersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest other = + (com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getBaseSha().equals(other.getBaseSha())) return false; + if (!getHeadSha().equals(other.getHeadSha())) return false; + if (!getPathFiltersList().equals(other.getPathFiltersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + BASE_SHA_FIELD_NUMBER; + hash = (53 * hash) + getBaseSha().hashCode(); + hash = (37 * hash) + HEAD_SHA_FIELD_NUMBER; + hash = (53 * hash) + getHeadSha().hashCode(); + if (getPathFiltersCount() > 0) { + hash = (37 * hash) + PATH_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getPathFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for DiffGitRepositoryLinkCommit.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest.class, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + baseSha_ = ""; + headSha_ = ""; + pathFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest build() { + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest buildPartial() { + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest result = + new com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.baseSha_ = baseSha_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.headSha_ = headSha_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pathFilters_.makeImmutable(); + result.pathFilters_ = pathFilters_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest other) { + if (other + == com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBaseSha().isEmpty()) { + baseSha_ = other.baseSha_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getHeadSha().isEmpty()) { + headSha_ = other.headSha_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.pathFilters_.isEmpty()) { + if (pathFilters_.isEmpty()) { + pathFilters_ = other.pathFilters_; + bitField0_ |= 0x00000008; + } else { + ensurePathFiltersIsMutable(); + pathFilters_.addAll(other.pathFilters_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + baseSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + headSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathFiltersIsMutable(); + pathFilters_.add(s); + 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 name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object baseSha_ = ""; + + /** + * + * + *
+     * Required. The base commit SHA or ref.
+     * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseSha. + */ + public java.lang.String getBaseSha() { + java.lang.Object ref = baseSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The base commit SHA or ref.
+     * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseSha. + */ + public com.google.protobuf.ByteString getBaseShaBytes() { + java.lang.Object ref = baseSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The base commit SHA or ref.
+     * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The baseSha to set. + * @return This builder for chaining. + */ + public Builder setBaseSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + baseSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The base commit SHA or ref.
+     * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBaseSha() { + baseSha_ = getDefaultInstance().getBaseSha(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The base commit SHA or ref.
+     * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for baseSha to set. + * @return This builder for chaining. + */ + public Builder setBaseShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object headSha_ = ""; + + /** + * + * + *
+     * Required. The head commit SHA or ref.
+     * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The headSha. + */ + public java.lang.String getHeadSha() { + java.lang.Object ref = headSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The head commit SHA or ref.
+     * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for headSha. + */ + public com.google.protobuf.ByteString getHeadShaBytes() { + java.lang.Object ref = headSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The head commit SHA or ref.
+     * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The headSha to set. + * @return This builder for chaining. + */ + public Builder setHeadSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + headSha_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The head commit SHA or ref.
+     * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHeadSha() { + headSha_ = getDefaultInstance().getHeadSha(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The head commit SHA or ref.
+     * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for headSha to set. + * @return This builder for chaining. + */ + public Builder setHeadShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + headSha_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pathFilters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePathFiltersIsMutable() { + if (!pathFilters_.isModifiable()) { + pathFilters_ = new com.google.protobuf.LazyStringArrayList(pathFilters_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pathFilters. + */ + public com.google.protobuf.ProtocolStringList getPathFiltersList() { + pathFilters_.makeImmutable(); + return pathFilters_; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pathFilters. + */ + public int getPathFiltersCount() { + return pathFilters_.size(); + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pathFilters at the given index. + */ + public java.lang.String getPathFilters(int index) { + return pathFilters_.get(index); + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pathFilters at the given index. + */ + public com.google.protobuf.ByteString getPathFiltersBytes(int index) { + return pathFilters_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pathFilters to set. + * @return This builder for chaining. + */ + public Builder setPathFilters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathFiltersIsMutable(); + pathFilters_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pathFilters to add. + * @return This builder for chaining. + */ + public Builder addPathFilters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathFiltersIsMutable(); + pathFilters_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pathFilters to add. + * @return This builder for chaining. + */ + public Builder addAllPathFilters(java.lang.Iterable values) { + ensurePathFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pathFilters_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPathFilters() { + pathFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files.
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pathFilters to add. + * @return This builder for chaining. + */ + public Builder addPathFiltersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathFiltersIsMutable(); + pathFilters_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) + private static final com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest(); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiffGitRepositoryLinkCommitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitRequestOrBuilder.java new file mode 100644 index 000000000000..b231cc22f1dd --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitRequestOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface DiffGitRepositoryLinkCommitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The base commit SHA or ref.
+   * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseSha. + */ + java.lang.String getBaseSha(); + + /** + * + * + *
+   * Required. The base commit SHA or ref.
+   * 
+ * + * string base_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseSha. + */ + com.google.protobuf.ByteString getBaseShaBytes(); + + /** + * + * + *
+   * Required. The head commit SHA or ref.
+   * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The headSha. + */ + java.lang.String getHeadSha(); + + /** + * + * + *
+   * Required. The head commit SHA or ref.
+   * 
+ * + * string head_sha = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for headSha. + */ + com.google.protobuf.ByteString getHeadShaBytes(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pathFilters. + */ + java.util.List getPathFiltersList(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pathFilters. + */ + int getPathFiltersCount(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pathFilters at the given index. + */ + java.lang.String getPathFilters(int index); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files.
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pathFilters at the given index. + */ + com.google.protobuf.ByteString getPathFiltersBytes(int index); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponse.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponse.java new file mode 100644 index 000000000000..0286b61cad77 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponse.java @@ -0,0 +1,940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Response message for DiffGitRepositoryLinkCommit.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse} + */ +@com.google.protobuf.Generated +public final class DiffGitRepositoryLinkCommitResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) + DiffGitRepositoryLinkCommitResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DiffGitRepositoryLinkCommitResponse"); + } + + // Use DiffGitRepositoryLinkCommitResponse.newBuilder() to construct. + private DiffGitRepositoryLinkCommitResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DiffGitRepositoryLinkCommitResponse() { + files_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse.class, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse.Builder.class); + } + + public static final int FILES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List files_; + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiff getFiles(int index) { + return files_.get(index); + } + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiffOrBuilder getFilesOrBuilder(int index) { + return files_.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 < files_.size(); i++) { + output.writeMessage(2, files_.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 < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, files_.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.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse other = + (com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) obj; + + if (!getFilesList().equals(other.getFilesList())) 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 (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for DiffGitRepositoryLinkCommit.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse.class, + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_DiffGitRepositoryLinkCommitResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse build() { + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse buildPartial() { + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse result = + new com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse other) { + if (other + == com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + .getDefaultInstance()) return this; + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + filesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + 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 18: + { + com.google.cloud.developerconnect.v1.FileDiff m = + input.readMessage( + com.google.cloud.developerconnect.v1.FileDiff.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + 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.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.FileDiff, + com.google.cloud.developerconnect.v1.FileDiff.Builder, + com.google.cloud.developerconnect.v1.FileDiffOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder setFiles(int index, com.google.cloud.developerconnect.v1.FileDiff value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder setFiles( + int index, com.google.cloud.developerconnect.v1.FileDiff.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles(com.google.cloud.developerconnect.v1.FileDiff value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles(int index, com.google.cloud.developerconnect.v1.FileDiff value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles(com.google.cloud.developerconnect.v1.FileDiff.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles( + int index, com.google.cloud.developerconnect.v1.FileDiff.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff.Builder getFilesBuilder(int index) { + return internalGetFilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiffOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff.Builder addFilesBuilder() { + return internalGetFilesFieldBuilder() + .addBuilder(com.google.cloud.developerconnect.v1.FileDiff.getDefaultInstance()); + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff.Builder addFilesBuilder(int index) { + return internalGetFilesFieldBuilder() + .addBuilder(index, com.google.cloud.developerconnect.v1.FileDiff.getDefaultInstance()); + } + + /** + * + * + *
+     * The file diff extracted from the unified diff.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public java.util.List + getFilesBuilderList() { + return internalGetFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.FileDiff, + com.google.cloud.developerconnect.v1.FileDiff.Builder, + com.google.cloud.developerconnect.v1.FileDiffOrBuilder> + internalGetFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.FileDiff, + com.google.cloud.developerconnect.v1.FileDiff.Builder, + com.google.cloud.developerconnect.v1.FileDiffOrBuilder>( + files_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) + private static final com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse(); + } + + public static com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiffGitRepositoryLinkCommitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponseOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponseOrBuilder.java new file mode 100644 index 000000000000..2e8e5ba6d7fd --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DiffGitRepositoryLinkCommitResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface DiffGitRepositoryLinkCommitResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + java.util.List getFilesList(); + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + com.google.cloud.developerconnect.v1.FileDiff getFiles(int index); + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + int getFilesCount(); + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + java.util.List + getFilesOrBuilderList(); + + /** + * + * + *
+   * The file diff extracted from the unified diff.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + com.google.cloud.developerconnect.v1.FileDiffOrBuilder getFilesOrBuilder(int index); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequest.java new file mode 100644 index 000000000000..69d5781507e8 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequest.java @@ -0,0 +1,1363 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for FetchGitRepositoryLinkCommitList.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkCommitListRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) + FetchGitRepositoryLinkCommitListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkCommitListRequest"); + } + + // Use FetchGitRepositoryLinkCommitListRequest.newBuilder() to construct. + private FetchGitRepositoryLinkCommitListRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkCommitListRequest() { + name_ = ""; + ref_ = ""; + pageToken_ = ""; + view_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REF_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ref_ = ""; + + /** + * + * + *
+   * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference) from which to start listing commits.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + @java.lang.Override + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference) from which to start listing commits.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Number of results to return in the list. Default is 50. Max is
+   * 100.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+   * subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+   * subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+   * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+   * diffs for a single commit.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+   * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+   * diffs for a single commit.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CommitView getView() { + com.google.cloud.developerconnect.v1.CommitView result = + com.google.cloud.developerconnect.v1.CommitView.forNumber(view_); + return result == null ? com.google.cloud.developerconnect.v1.CommitView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, ref_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + if (view_ + != com.google.cloud.developerconnect.v1.CommitView.COMMIT_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(5, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, ref_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + if (view_ + != com.google.cloud.developerconnect.v1.CommitView.COMMIT_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRef().equals(other.getRef())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchGitRepositoryLinkCommitList.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + ref_ = ""; + pageSize_ = 0; + pageToken_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ref_ = ref_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRef().isEmpty()) { + ref_ = other.ref_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ref_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ref_ = ""; + + /** + * + * + *
+     * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference) from which to start listing commits.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference) from which to start listing commits.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference) from which to start listing commits.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ref to set. + * @return This builder for chaining. + */ + public Builder setRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ref_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference) from which to start listing commits.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRef() { + ref_ = getDefaultInstance().getRef(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference) from which to start listing commits.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for ref to set. + * @return This builder for chaining. + */ + public Builder setRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ref_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Number of results to return in the list. Default is 50. Max is
+     * 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Number of results to return in the list. Default is 50. Max is
+     * 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of results to return in the list. Default is 50. Max is
+     * 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+     * subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+     * subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+     * subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+     * subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+     * subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int view_ = 0; + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+     * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+     * diffs for a single commit.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+     * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+     * diffs for a single commit.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+     * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+     * diffs for a single commit.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CommitView getView() { + com.google.cloud.developerconnect.v1.CommitView result = + com.google.cloud.developerconnect.v1.CommitView.forNumber(view_); + return result == null ? com.google.cloud.developerconnect.v1.CommitView.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+     * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+     * diffs for a single commit.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.developerconnect.v1.CommitView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+     * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+     * diffs for a single commit.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkCommitListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequestOrBuilder.java new file mode 100644 index 000000000000..61b3baf4c23c --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkCommitListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference) from which to start listing commits.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + java.lang.String getRef(); + + /** + * + * + *
+   * Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference) from which to start listing commits.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + com.google.protobuf.ByteString getRefBytes(); + + /** + * + * + *
+   * Optional. Number of results to return in the list. Default is 50. Max is
+   * 100.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+   * subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
+   * subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `FetchGitRepositoryLinkCommitList` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+   * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+   * diffs for a single commit.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
+   * `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
+   * diffs for a single commit.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.developerconnect.v1.CommitView getView(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponse.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponse.java new file mode 100644 index 000000000000..e88b7f9aa42a --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponse.java @@ -0,0 +1,1147 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Response message for FetchGitRepositoryLinkCommitList.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkCommitListResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) + FetchGitRepositoryLinkCommitListResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkCommitListResponse"); + } + + // Use FetchGitRepositoryLinkCommitListResponse.newBuilder() to construct. + private FetchGitRepositoryLinkCommitListResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkCommitListResponse() { + commits_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse.Builder + .class); + } + + public static final int COMMITS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List commits_; + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + @java.lang.Override + public java.util.List getCommitsList() { + return commits_; + } + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + @java.lang.Override + public java.util.List + getCommitsOrBuilderList() { + return commits_; + } + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + @java.lang.Override + public int getCommitsCount() { + return commits_.size(); + } + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit getCommits(int index) { + return commits_.get(index); + } + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitsOrBuilder(int index) { + return commits_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < commits_.size(); i++) { + output.writeMessage(1, commits_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < commits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, commits_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) obj; + + if (!getCommitsList().equals(other.getCommitsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCommitsCount() > 0) { + hash = (37 * hash) + COMMITS_FIELD_NUMBER; + hash = (53 * hash) + getCommitsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for FetchGitRepositoryLinkCommitList.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (commitsBuilder_ == null) { + commits_ = java.util.Collections.emptyList(); + } else { + commits_ = null; + commitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitListResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse result) { + if (commitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + commits_ = java.util.Collections.unmodifiableList(commits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.commits_ = commits_; + } else { + result.commits_ = commitsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + .getDefaultInstance()) return this; + if (commitsBuilder_ == null) { + if (!other.commits_.isEmpty()) { + if (commits_.isEmpty()) { + commits_ = other.commits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCommitsIsMutable(); + commits_.addAll(other.commits_); + } + onChanged(); + } + } else { + if (!other.commits_.isEmpty()) { + if (commitsBuilder_.isEmpty()) { + commitsBuilder_.dispose(); + commitsBuilder_ = null; + commits_ = other.commits_; + bitField0_ = (bitField0_ & ~0x00000001); + commitsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCommitsFieldBuilder() + : null; + } else { + commitsBuilder_.addAllMessages(other.commits_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.developerconnect.v1.SCMCommit m = + input.readMessage( + com.google.cloud.developerconnect.v1.SCMCommit.parser(), extensionRegistry); + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.add(m); + } else { + commitsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List commits_ = + java.util.Collections.emptyList(); + + private void ensureCommitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + commits_ = + new java.util.ArrayList(commits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder> + commitsBuilder_; + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public java.util.List getCommitsList() { + if (commitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(commits_); + } else { + return commitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public int getCommitsCount() { + if (commitsBuilder_ == null) { + return commits_.size(); + } else { + return commitsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommit getCommits(int index) { + if (commitsBuilder_ == null) { + return commits_.get(index); + } else { + return commitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder setCommits(int index, com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommitsIsMutable(); + commits_.set(index, value); + onChanged(); + } else { + commitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder setCommits( + int index, com.google.cloud.developerconnect.v1.SCMCommit.Builder builderForValue) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.set(index, builderForValue.build()); + onChanged(); + } else { + commitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder addCommits(com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommitsIsMutable(); + commits_.add(value); + onChanged(); + } else { + commitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder addCommits(int index, com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommitsIsMutable(); + commits_.add(index, value); + onChanged(); + } else { + commitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder addCommits( + com.google.cloud.developerconnect.v1.SCMCommit.Builder builderForValue) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.add(builderForValue.build()); + onChanged(); + } else { + commitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder addCommits( + int index, com.google.cloud.developerconnect.v1.SCMCommit.Builder builderForValue) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.add(index, builderForValue.build()); + onChanged(); + } else { + commitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder addAllCommits( + java.lang.Iterable values) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commits_); + onChanged(); + } else { + commitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder clearCommits() { + if (commitsBuilder_ == null) { + commits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + commitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public Builder removeCommits(int index) { + if (commitsBuilder_ == null) { + ensureCommitsIsMutable(); + commits_.remove(index); + onChanged(); + } else { + commitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommit.Builder getCommitsBuilder(int index) { + return internalGetCommitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitsOrBuilder(int index) { + if (commitsBuilder_ == null) { + return commits_.get(index); + } else { + return commitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public java.util.List + getCommitsOrBuilderList() { + if (commitsBuilder_ != null) { + return commitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(commits_); + } + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommit.Builder addCommitsBuilder() { + return internalGetCommitsFieldBuilder() + .addBuilder(com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommit.Builder addCommitsBuilder(int index) { + return internalGetCommitsFieldBuilder() + .addBuilder(index, com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of commit metadata.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + public java.util.List + getCommitsBuilderList() { + return internalGetCommitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder> + internalGetCommitsFieldBuilder() { + if (commitsBuilder_ == null) { + commitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder>( + commits_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + commits_ = null; + } + return commitsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkCommitListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponseOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponseOrBuilder.java new file mode 100644 index 000000000000..86bda0687050 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitListResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkCommitListResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + java.util.List getCommitsList(); + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + com.google.cloud.developerconnect.v1.SCMCommit getCommits(int index); + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + int getCommitsCount(); + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + java.util.List + getCommitsOrBuilderList(); + + /** + * + * + *
+   * The list of commit metadata.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.SCMCommit commits = 1; + */ + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequest.java new file mode 100644 index 000000000000..affb42ee008e --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequest.java @@ -0,0 +1,1378 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for FetchGitRepositoryLinkCommit.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkCommitRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) + FetchGitRepositoryLinkCommitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkCommitRequest"); + } + + // Use FetchGitRepositoryLinkCommitRequest.newBuilder() to construct. + private FetchGitRepositoryLinkCommitRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkCommitRequest() { + name_ = ""; + commitSha_ = ""; + view_ = 0; + pathFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitSha_ = ""; + + /** + * + * + *
+   * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference).
+   * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference).
+   * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 3; + private int view_ = 0; + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+   * and statuses) are returned; `path_filters` must also be specified to
+   * populate line patch hunks.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+   * and statuses) are returned; `path_filters` must also be specified to
+   * populate line patch hunks.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CommitView getView() { + com.google.cloud.developerconnect.v1.CommitView result = + com.google.cloud.developerconnect.v1.CommitView.forNumber(view_); + return result == null ? com.google.cloud.developerconnect.v1.CommitView.UNRECOGNIZED : result; + } + + public static final int PATH_FILTERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pathFilters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pathFilters. + */ + public com.google.protobuf.ProtocolStringList getPathFiltersList() { + return pathFilters_; + } + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pathFilters. + */ + public int getPathFiltersCount() { + return pathFilters_.size(); + } + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pathFilters at the given index. + */ + public java.lang.String getPathFilters(int index) { + return pathFilters_.get(index); + } + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pathFilters at the given index. + */ + public com.google.protobuf.ByteString getPathFiltersBytes(int index) { + return pathFilters_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitSha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, commitSha_); + } + if (view_ + != com.google.cloud.developerconnect.v1.CommitView.COMMIT_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(3, view_); + } + for (int i = 0; i < pathFilters_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pathFilters_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitSha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, commitSha_); + } + if (view_ + != com.google.cloud.developerconnect.v1.CommitView.COMMIT_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); + } + { + int dataSize = 0; + for (int i = 0; i < pathFilters_.size(); i++) { + dataSize += computeStringSizeNoTag(pathFilters_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathFiltersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; + if (view_ != other.view_) return false; + if (!getPathFiltersList().equals(other.getPathFiltersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + if (getPathFiltersCount() > 0) { + hash = (37 * hash) + PATH_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getPathFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchGitRepositoryLinkCommit.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + commitSha_ = ""; + view_ = 0; + pathFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitSha_ = commitSha_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.view_ = view_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pathFilters_.makeImmutable(); + result.pathFilters_ = pathFilters_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitSha().isEmpty()) { + commitSha_ = other.commitSha_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + if (!other.pathFilters_.isEmpty()) { + if (pathFilters_.isEmpty()) { + pathFilters_ = other.pathFilters_; + bitField0_ |= 0x00000008; + } else { + ensurePathFiltersIsMutable(); + pathFilters_.addAll(other.pathFilters_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitSha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathFiltersIsMutable(); + pathFilters_.add(s); + 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 name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitSha_ = ""; + + /** + * + * + *
+     * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference).
+     * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = commitSha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitSha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference).
+     * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = commitSha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitSha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference).
+     * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference).
+     * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + commitSha_ = getDefaultInstance().getCommitSha(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+     * Git reference).
+     * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitSha_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int view_ = 0; + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+     * and statuses) are returned; `path_filters` must also be specified to
+     * populate line patch hunks.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+     * and statuses) are returned; `path_filters` must also be specified to
+     * populate line patch hunks.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+     * and statuses) are returned; `path_filters` must also be specified to
+     * populate line patch hunks.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.CommitView getView() { + com.google.cloud.developerconnect.v1.CommitView result = + com.google.cloud.developerconnect.v1.CommitView.forNumber(view_); + return result == null ? com.google.cloud.developerconnect.v1.CommitView.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+     * and statuses) are returned; `path_filters` must also be specified to
+     * populate line patch hunks.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.developerconnect.v1.CommitView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The level of commit details to return in the response.
+     * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+     * and statuses) are returned; `path_filters` must also be specified to
+     * populate line patch hunks.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000004); + view_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pathFilters_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePathFiltersIsMutable() { + if (!pathFilters_.isModifiable()) { + pathFilters_ = new com.google.protobuf.LazyStringArrayList(pathFilters_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pathFilters. + */ + public com.google.protobuf.ProtocolStringList getPathFiltersList() { + pathFilters_.makeImmutable(); + return pathFilters_; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pathFilters. + */ + public int getPathFiltersCount() { + return pathFilters_.size(); + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pathFilters at the given index. + */ + public java.lang.String getPathFilters(int index) { + return pathFilters_.get(index); + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pathFilters at the given index. + */ + public com.google.protobuf.ByteString getPathFiltersBytes(int index) { + return pathFilters_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pathFilters to set. + * @return This builder for chaining. + */ + public Builder setPathFilters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathFiltersIsMutable(); + pathFilters_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pathFilters to add. + * @return This builder for chaining. + */ + public Builder addPathFilters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathFiltersIsMutable(); + pathFilters_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pathFilters to add. + * @return This builder for chaining. + */ + public Builder addAllPathFilters(java.lang.Iterable values) { + ensurePathFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pathFilters_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPathFilters() { + pathFilters_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path patterns or exact paths to filter returned files (only
+     * applicable in `FULL` view).
+     * When `path_filters` is specified, `FileDiff.patch` is populated for all
+     * matching files (use `["**"]` to include patches for all changed files).
+     * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+     * returned without patch diffs (`FileDiff.patch` is empty).
+     * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pathFilters to add. + * @return This builder for chaining. + */ + public Builder addPathFiltersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathFiltersIsMutable(); + pathFilters_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkCommitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequestOrBuilder.java new file mode 100644 index 000000000000..70f4160fe290 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkCommitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference).
+   * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + + /** + * + * + *
+   * Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
+   * Git reference).
+   * 
+ * + * string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+   * and statuses) are returned; `path_filters` must also be specified to
+   * populate line patch hunks.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
+   * Optional. The level of commit details to return in the response.
+   * Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
+   * and statuses) are returned; `path_filters` must also be specified to
+   * populate line patch hunks.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.developerconnect.v1.CommitView getView(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pathFilters. + */ + java.util.List getPathFiltersList(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pathFilters. + */ + int getPathFiltersCount(); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pathFilters at the given index. + */ + java.lang.String getPathFilters(int index); + + /** + * + * + *
+   * Optional. Path patterns or exact paths to filter returned files (only
+   * applicable in `FULL` view).
+   * When `path_filters` is specified, `FileDiff.patch` is populated for all
+   * matching files (use `["**"]` to include patches for all changed files).
+   * When `path_filters` is omitted or empty, the full list of `FileDiff` is
+   * returned without patch diffs (`FileDiff.patch` is empty).
+   * 
+ * + * repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pathFilters at the given index. + */ + com.google.protobuf.ByteString getPathFiltersBytes(int index); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponse.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponse.java new file mode 100644 index 000000000000..8535fa190879 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponse.java @@ -0,0 +1,1281 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Response message for FetchGitRepositoryLinkCommit.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkCommitResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) + FetchGitRepositoryLinkCommitResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkCommitResponse"); + } + + // Use FetchGitRepositoryLinkCommitResponse.newBuilder() to construct. + private FetchGitRepositoryLinkCommitResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkCommitResponse() { + files_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse.Builder + .class); + } + + private int bitField0_; + public static final int COMMIT_FIELD_NUMBER = 1; + private com.google.cloud.developerconnect.v1.SCMCommit commit_; + + /** + * + * + *
+   * The commit metadata.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + * + * @return Whether the commit field is set. + */ + @java.lang.Override + public boolean hasCommit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The commit metadata.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + * + * @return The commit. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit getCommit() { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } + + /** + * + * + *
+   * The commit metadata.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitOrBuilder() { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } + + public static final int FILES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List files_; + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiff getFiles(int index) { + return files_.get(index); + } + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiffOrBuilder getFilesOrBuilder(int index) { + return files_.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, getCommit()); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(2, files_.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, getCommit()); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, files_.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.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) obj; + + if (hasCommit() != other.hasCommit()) return false; + if (hasCommit()) { + if (!getCommit().equals(other.getCommit())) return false; + } + if (!getFilesList().equals(other.getFilesList())) 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 (hasCommit()) { + hash = (37 * hash) + COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getCommit().hashCode(); + } + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for FetchGitRepositoryLinkCommit.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCommitFieldBuilder(); + internalGetFilesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + commit_ = null; + if (commitBuilder_ != null) { + commitBuilder_.dispose(); + commitBuilder_ = null; + } + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkCommitResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse result) { + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.commit_ = commitBuilder_ == null ? commit_ : commitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + .getDefaultInstance()) return this; + if (other.hasCommit()) { + mergeCommit(other.getCommit()); + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000002); + filesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilesFieldBuilder() + : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + 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(internalGetCommitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.developerconnect.v1.FileDiff m = + input.readMessage( + com.google.cloud.developerconnect.v1.FileDiff.parser(), extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + 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.cloud.developerconnect.v1.SCMCommit commit_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder> + commitBuilder_; + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + * + * @return Whether the commit field is set. + */ + public boolean hasCommit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + * + * @return The commit. + */ + public com.google.cloud.developerconnect.v1.SCMCommit getCommit() { + if (commitBuilder_ == null) { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } else { + return commitBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + public Builder setCommit(com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commit_ = value; + } else { + commitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + public Builder setCommit( + com.google.cloud.developerconnect.v1.SCMCommit.Builder builderForValue) { + if (commitBuilder_ == null) { + commit_ = builderForValue.build(); + } else { + commitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + public Builder mergeCommit(com.google.cloud.developerconnect.v1.SCMCommit value) { + if (commitBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && commit_ != null + && commit_ != com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance()) { + getCommitBuilder().mergeFrom(value); + } else { + commit_ = value; + } + } else { + commitBuilder_.mergeFrom(value); + } + if (commit_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + public Builder clearCommit() { + bitField0_ = (bitField0_ & ~0x00000001); + commit_ = null; + if (commitBuilder_ != null) { + commitBuilder_.dispose(); + commitBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommit.Builder getCommitBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCommitFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + public com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitOrBuilder() { + if (commitBuilder_ != null) { + return commitBuilder_.getMessageOrBuilder(); + } else { + return commit_ == null + ? com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance() + : commit_; + } + } + + /** + * + * + *
+     * The commit metadata.
+     * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder> + internalGetCommitFieldBuilder() { + if (commitBuilder_ == null) { + commitBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.SCMCommit, + com.google.cloud.developerconnect.v1.SCMCommit.Builder, + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder>( + getCommit(), getParentForChildren(), isClean()); + commit_ = null; + } + return commitBuilder_; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.FileDiff, + com.google.cloud.developerconnect.v1.FileDiff.Builder, + com.google.cloud.developerconnect.v1.FileDiffOrBuilder> + filesBuilder_; + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder setFiles(int index, com.google.cloud.developerconnect.v1.FileDiff value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder setFiles( + int index, com.google.cloud.developerconnect.v1.FileDiff.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles(com.google.cloud.developerconnect.v1.FileDiff value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles(int index, com.google.cloud.developerconnect.v1.FileDiff value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles(com.google.cloud.developerconnect.v1.FileDiff.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addFiles( + int index, com.google.cloud.developerconnect.v1.FileDiff.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff.Builder getFilesBuilder(int index) { + return internalGetFilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiffOrBuilder getFilesOrBuilder(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff.Builder addFilesBuilder() { + return internalGetFilesFieldBuilder() + .addBuilder(com.google.cloud.developerconnect.v1.FileDiff.getDefaultInstance()); + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public com.google.cloud.developerconnect.v1.FileDiff.Builder addFilesBuilder(int index) { + return internalGetFilesFieldBuilder() + .addBuilder(index, com.google.cloud.developerconnect.v1.FileDiff.getDefaultInstance()); + } + + /** + * + * + *
+     * List of file changes and patch diffs. Omitted when view is `BASIC`.
+     * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+     * specified in the request.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + public java.util.List + getFilesBuilderList() { + return internalGetFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.FileDiff, + com.google.cloud.developerconnect.v1.FileDiff.Builder, + com.google.cloud.developerconnect.v1.FileDiffOrBuilder> + internalGetFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.FileDiff, + com.google.cloud.developerconnect.v1.FileDiff.Builder, + com.google.cloud.developerconnect.v1.FileDiffOrBuilder>( + files_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + files_ = null; + } + return filesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkCommitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponseOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponseOrBuilder.java new file mode 100644 index 000000000000..7e00fa374199 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkCommitResponseOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkCommitResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The commit metadata.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + * + * @return Whether the commit field is set. + */ + boolean hasCommit(); + + /** + * + * + *
+   * The commit metadata.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + * + * @return The commit. + */ + com.google.cloud.developerconnect.v1.SCMCommit getCommit(); + + /** + * + * + *
+   * The commit metadata.
+   * 
+ * + * .google.cloud.developerconnect.v1.SCMCommit commit = 1; + */ + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder getCommitOrBuilder(); + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + java.util.List getFilesList(); + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + com.google.cloud.developerconnect.v1.FileDiff getFiles(int index); + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + int getFilesCount(); + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + java.util.List + getFilesOrBuilderList(); + + /** + * + * + *
+   * List of file changes and patch diffs. Omitted when view is `BASIC`.
+   * Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
+   * specified in the request.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.FileDiff files = 2; + */ + com.google.cloud.developerconnect.v1.FileDiffOrBuilder getFilesOrBuilder(int index); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequest.java new file mode 100644 index 000000000000..dc185b145339 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequest.java @@ -0,0 +1,1230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for FetchGitRepositoryLinkFileBlame.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkFileBlameRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) + FetchGitRepositoryLinkFileBlameRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkFileBlameRequest"); + } + + // Use FetchGitRepositoryLinkFileBlameRequest.newBuilder() to construct. + private FetchGitRepositoryLinkFileBlameRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkFileBlameRequest() { + name_ = ""; + ref_ = ""; + path_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REF_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ref_ = ""; + + /** + * + * + *
+   * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+   * from which to fetch the blame.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ref. + */ + @java.lang.Override + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+   * from which to fetch the blame.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ref. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * Required. The file path within the repository.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The file path within the repository.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIRST_LINE_FIELD_NUMBER = 4; + private int firstLine_ = 0; + + /** + * + * + *
+   * Optional. The 1-indexed starting line number of the range to blame
+   * (inclusive). If not specified, blame begins at line 1.
+   * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The firstLine. + */ + @java.lang.Override + public int getFirstLine() { + return firstLine_; + } + + public static final int LAST_LINE_FIELD_NUMBER = 5; + private int lastLine_ = 0; + + /** + * + * + *
+   * Optional. The 1-indexed ending line number of the range to blame
+   * (inclusive). If not specified, blame extends to the end of the file.
+   * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lastLine. + */ + @java.lang.Override + public int getLastLine() { + return lastLine_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, ref_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, path_); + } + if (firstLine_ != 0) { + output.writeInt32(4, firstLine_); + } + if (lastLine_ != 0) { + output.writeInt32(5, lastLine_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, ref_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, path_); + } + if (firstLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, firstLine_); + } + if (lastLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, lastLine_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRef().equals(other.getRef())) return false; + if (!getPath().equals(other.getPath())) return false; + if (getFirstLine() != other.getFirstLine()) return false; + if (getLastLine() != other.getLastLine()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + FIRST_LINE_FIELD_NUMBER; + hash = (53 * hash) + getFirstLine(); + hash = (37 * hash) + LAST_LINE_FIELD_NUMBER; + hash = (53 * hash) + getLastLine(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchGitRepositoryLinkFileBlame.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + ref_ = ""; + path_ = ""; + firstLine_ = 0; + lastLine_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ref_ = ref_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.firstLine_ = firstLine_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastLine_ = lastLine_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRef().isEmpty()) { + ref_ = other.ref_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getFirstLine() != 0) { + setFirstLine(other.getFirstLine()); + } + if (other.getLastLine() != 0) { + setLastLine(other.getLastLine()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ref_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + firstLine_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + lastLine_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ref_ = ""; + + /** + * + * + *
+     * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+     * from which to fetch the blame.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ref. + */ + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+     * from which to fetch the blame.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ref. + */ + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+     * from which to fetch the blame.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ref to set. + * @return This builder for chaining. + */ + public Builder setRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ref_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+     * from which to fetch the blame.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRef() { + ref_ = getDefaultInstance().getRef(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+     * from which to fetch the blame.
+     * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ref to set. + * @return This builder for chaining. + */ + public Builder setRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ref_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + + /** + * + * + *
+     * Required. The file path within the repository.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The file path within the repository.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The file path within the repository.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The file path within the repository.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The file path within the repository.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int firstLine_; + + /** + * + * + *
+     * Optional. The 1-indexed starting line number of the range to blame
+     * (inclusive). If not specified, blame begins at line 1.
+     * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The firstLine. + */ + @java.lang.Override + public int getFirstLine() { + return firstLine_; + } + + /** + * + * + *
+     * Optional. The 1-indexed starting line number of the range to blame
+     * (inclusive). If not specified, blame begins at line 1.
+     * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The firstLine to set. + * @return This builder for chaining. + */ + public Builder setFirstLine(int value) { + + firstLine_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The 1-indexed starting line number of the range to blame
+     * (inclusive). If not specified, blame begins at line 1.
+     * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFirstLine() { + bitField0_ = (bitField0_ & ~0x00000008); + firstLine_ = 0; + onChanged(); + return this; + } + + private int lastLine_; + + /** + * + * + *
+     * Optional. The 1-indexed ending line number of the range to blame
+     * (inclusive). If not specified, blame extends to the end of the file.
+     * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lastLine. + */ + @java.lang.Override + public int getLastLine() { + return lastLine_; + } + + /** + * + * + *
+     * Optional. The 1-indexed ending line number of the range to blame
+     * (inclusive). If not specified, blame extends to the end of the file.
+     * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The lastLine to set. + * @return This builder for chaining. + */ + public Builder setLastLine(int value) { + + lastLine_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The 1-indexed ending line number of the range to blame
+     * (inclusive). If not specified, blame extends to the end of the file.
+     * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLastLine() { + bitField0_ = (bitField0_ & ~0x00000010); + lastLine_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkFileBlameRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequestOrBuilder.java new file mode 100644 index 000000000000..979ace2885e3 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkFileBlameRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+   * from which to fetch the blame.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ref. + */ + java.lang.String getRef(); + + /** + * + * + *
+   * Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
+   * from which to fetch the blame.
+   * 
+ * + * string ref = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ref. + */ + com.google.protobuf.ByteString getRefBytes(); + + /** + * + * + *
+   * Required. The file path within the repository.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * Required. The file path within the repository.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Optional. The 1-indexed starting line number of the range to blame
+   * (inclusive). If not specified, blame begins at line 1.
+   * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The firstLine. + */ + int getFirstLine(); + + /** + * + * + *
+   * Optional. The 1-indexed ending line number of the range to blame
+   * (inclusive). If not specified, blame extends to the end of the file.
+   * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The lastLine. + */ + int getLastLine(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponse.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponse.java new file mode 100644 index 000000000000..007755fb2773 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponse.java @@ -0,0 +1,950 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Response message for FetchGitRepositoryLinkFileBlame.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkFileBlameResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) + FetchGitRepositoryLinkFileBlameResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkFileBlameResponse"); + } + + // Use FetchGitRepositoryLinkFileBlameResponse.newBuilder() to construct. + private FetchGitRepositoryLinkFileBlameResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkFileBlameResponse() { + ranges_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse.Builder + .class); + } + + public static final int RANGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ranges_; + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + @java.lang.Override + public java.util.List getRangesList() { + return ranges_; + } + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + @java.lang.Override + public java.util.List + getRangesOrBuilderList() { + return ranges_; + } + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + @java.lang.Override + public int getRangesCount() { + return ranges_.size(); + } + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.BlameRange getRanges(int index) { + return ranges_.get(index); + } + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.BlameRangeOrBuilder getRangesOrBuilder(int index) { + return ranges_.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 < ranges_.size(); i++) { + output.writeMessage(1, ranges_.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 < ranges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ranges_.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.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) obj; + + if (!getRangesList().equals(other.getRangesList())) 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 (getRangesCount() > 0) { + hash = (37 * hash) + RANGES_FIELD_NUMBER; + hash = (53 * hash) + getRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for FetchGitRepositoryLinkFileBlame.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rangesBuilder_ == null) { + ranges_ = java.util.Collections.emptyList(); + } else { + ranges_ = null; + rangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkFileBlameResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse result) { + if (rangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ranges_ = java.util.Collections.unmodifiableList(ranges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ranges_ = ranges_; + } else { + result.ranges_ = rangesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + .getDefaultInstance()) return this; + if (rangesBuilder_ == null) { + if (!other.ranges_.isEmpty()) { + if (ranges_.isEmpty()) { + ranges_ = other.ranges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRangesIsMutable(); + ranges_.addAll(other.ranges_); + } + onChanged(); + } + } else { + if (!other.ranges_.isEmpty()) { + if (rangesBuilder_.isEmpty()) { + rangesBuilder_.dispose(); + rangesBuilder_ = null; + ranges_ = other.ranges_; + bitField0_ = (bitField0_ & ~0x00000001); + rangesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRangesFieldBuilder() + : null; + } else { + rangesBuilder_.addAllMessages(other.ranges_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.developerconnect.v1.BlameRange m = + input.readMessage( + com.google.cloud.developerconnect.v1.BlameRange.parser(), + extensionRegistry); + if (rangesBuilder_ == null) { + ensureRangesIsMutable(); + ranges_.add(m); + } else { + rangesBuilder_.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 ranges_ = + java.util.Collections.emptyList(); + + private void ensureRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ranges_ = new java.util.ArrayList(ranges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.BlameRange, + com.google.cloud.developerconnect.v1.BlameRange.Builder, + com.google.cloud.developerconnect.v1.BlameRangeOrBuilder> + rangesBuilder_; + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public java.util.List getRangesList() { + if (rangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ranges_); + } else { + return rangesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public int getRangesCount() { + if (rangesBuilder_ == null) { + return ranges_.size(); + } else { + return rangesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public com.google.cloud.developerconnect.v1.BlameRange getRanges(int index) { + if (rangesBuilder_ == null) { + return ranges_.get(index); + } else { + return rangesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder setRanges(int index, com.google.cloud.developerconnect.v1.BlameRange value) { + if (rangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRangesIsMutable(); + ranges_.set(index, value); + onChanged(); + } else { + rangesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder setRanges( + int index, com.google.cloud.developerconnect.v1.BlameRange.Builder builderForValue) { + if (rangesBuilder_ == null) { + ensureRangesIsMutable(); + ranges_.set(index, builderForValue.build()); + onChanged(); + } else { + rangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder addRanges(com.google.cloud.developerconnect.v1.BlameRange value) { + if (rangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRangesIsMutable(); + ranges_.add(value); + onChanged(); + } else { + rangesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder addRanges(int index, com.google.cloud.developerconnect.v1.BlameRange value) { + if (rangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRangesIsMutable(); + ranges_.add(index, value); + onChanged(); + } else { + rangesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder addRanges( + com.google.cloud.developerconnect.v1.BlameRange.Builder builderForValue) { + if (rangesBuilder_ == null) { + ensureRangesIsMutable(); + ranges_.add(builderForValue.build()); + onChanged(); + } else { + rangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder addRanges( + int index, com.google.cloud.developerconnect.v1.BlameRange.Builder builderForValue) { + if (rangesBuilder_ == null) { + ensureRangesIsMutable(); + ranges_.add(index, builderForValue.build()); + onChanged(); + } else { + rangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder addAllRanges( + java.lang.Iterable values) { + if (rangesBuilder_ == null) { + ensureRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ranges_); + onChanged(); + } else { + rangesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder clearRanges() { + if (rangesBuilder_ == null) { + ranges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rangesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public Builder removeRanges(int index) { + if (rangesBuilder_ == null) { + ensureRangesIsMutable(); + ranges_.remove(index); + onChanged(); + } else { + rangesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public com.google.cloud.developerconnect.v1.BlameRange.Builder getRangesBuilder(int index) { + return internalGetRangesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public com.google.cloud.developerconnect.v1.BlameRangeOrBuilder getRangesOrBuilder(int index) { + if (rangesBuilder_ == null) { + return ranges_.get(index); + } else { + return rangesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public java.util.List + getRangesOrBuilderList() { + if (rangesBuilder_ != null) { + return rangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ranges_); + } + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public com.google.cloud.developerconnect.v1.BlameRange.Builder addRangesBuilder() { + return internalGetRangesFieldBuilder() + .addBuilder(com.google.cloud.developerconnect.v1.BlameRange.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public com.google.cloud.developerconnect.v1.BlameRange.Builder addRangesBuilder(int index) { + return internalGetRangesFieldBuilder() + .addBuilder(index, com.google.cloud.developerconnect.v1.BlameRange.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of blame ranges for the file.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + public java.util.List + getRangesBuilderList() { + return internalGetRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.BlameRange, + com.google.cloud.developerconnect.v1.BlameRange.Builder, + com.google.cloud.developerconnect.v1.BlameRangeOrBuilder> + internalGetRangesFieldBuilder() { + if (rangesBuilder_ == null) { + rangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.BlameRange, + com.google.cloud.developerconnect.v1.BlameRange.Builder, + com.google.cloud.developerconnect.v1.BlameRangeOrBuilder>( + ranges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ranges_ = null; + } + return rangesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkFileBlameResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponseOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponseOrBuilder.java new file mode 100644 index 000000000000..7b30a76d4139 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkFileBlameResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkFileBlameResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + java.util.List getRangesList(); + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + com.google.cloud.developerconnect.v1.BlameRange getRanges(int index); + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + int getRangesCount(); + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + java.util.List + getRangesOrBuilderList(); + + /** + * + * + *
+   * The list of blame ranges for the file.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.BlameRange ranges = 1; + */ + com.google.cloud.developerconnect.v1.BlameRangeOrBuilder getRangesOrBuilder(int index); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequest.java new file mode 100644 index 000000000000..ea5376c08b04 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequest.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for FetchGitRepositoryLinkPullRequestList.
+ * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkPullRequestListRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + FetchGitRepositoryLinkPullRequestListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkPullRequestListRequest"); + } + + // Use FetchGitRepositoryLinkPullRequestListRequest.newBuilder() to construct. + private FetchGitRepositoryLinkPullRequestListRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkPullRequestListRequest() { + name_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. A filter expression that filters the pull requests returned in
+   * the response. Only a single equality comparison on `state` is supported,
+   * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+   * `MERGED`. `DECLINED` is only supported for SCM providers that support
+   * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+   * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+   * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A filter expression that filters the pull requests returned in
+   * the response. Only a single equality comparison on `state` is supported,
+   * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+   * `MERGED`. `DECLINED` is only supported for SCM providers that support
+   * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+   * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+   * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Number of results to return in the list. Default is 20. Max is
+   * 100. A page may contain fewer than `page_size` results even when more
+   * results are available; use `next_page_token` to check for more pages.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+   * subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+   * subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchGitRepositoryLinkPullRequestList.
+   * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + .class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. A filter expression that filters the pull requests returned in
+     * the response. Only a single equality comparison on `state` is supported,
+     * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+     * `MERGED`. `DECLINED` is only supported for SCM providers that support
+     * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+     * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+     * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters the pull requests returned in
+     * the response. Only a single equality comparison on `state` is supported,
+     * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+     * `MERGED`. `DECLINED` is only supported for SCM providers that support
+     * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+     * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+     * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A filter expression that filters the pull requests returned in
+     * the response. Only a single equality comparison on `state` is supported,
+     * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+     * `MERGED`. `DECLINED` is only supported for SCM providers that support
+     * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+     * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+     * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters the pull requests returned in
+     * the response. Only a single equality comparison on `state` is supported,
+     * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+     * `MERGED`. `DECLINED` is only supported for SCM providers that support
+     * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+     * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+     * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A filter expression that filters the pull requests returned in
+     * the response. Only a single equality comparison on `state` is supported,
+     * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+     * `MERGED`. `DECLINED` is only supported for SCM providers that support
+     * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+     * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+     * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Number of results to return in the list. Default is 20. Max is
+     * 100. A page may contain fewer than `page_size` results even when more
+     * results are available; use `next_page_token` to check for more pages.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Number of results to return in the list. Default is 20. Max is
+     * 100. A page may contain fewer than `page_size` results even when more
+     * results are available; use `next_page_token` to check for more pages.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of results to return in the list. Default is 20. Max is
+     * 100. A page may contain fewer than `page_size` results even when more
+     * results are available; use `next_page_token` to check for more pages.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+     * subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+     * subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+     * subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+     * subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+     * subsequent page.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + private static final com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkPullRequestListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequestOrBuilder.java new file mode 100644 index 000000000000..00393b15e8c0 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListRequestOrBuilder.java @@ -0,0 +1,143 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkPullRequestListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A filter expression that filters the pull requests returned in
+   * the response. Only a single equality comparison on `state` is supported,
+   * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+   * `MERGED`. `DECLINED` is only supported for SCM providers that support
+   * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+   * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+   * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. A filter expression that filters the pull requests returned in
+   * the response. Only a single equality comparison on `state` is supported,
+   * for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
+   * `MERGED`. `DECLINED` is only supported for SCM providers that support
+   * declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
+   * Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
+   * return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Number of results to return in the list. Default is 20. Max is
+   * 100. A page may contain fewer than `page_size` results even when more
+   * results are available; use `next_page_token` to check for more pages.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+   * subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
+   * subsequent page.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponse.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponse.java new file mode 100644 index 000000000000..181ce7b84f4b --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponse.java @@ -0,0 +1,1168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Response message for FetchGitRepositoryLinkPullRequestList.
+ * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkPullRequestListResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) + FetchGitRepositoryLinkPullRequestListResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkPullRequestListResponse"); + } + + // Use FetchGitRepositoryLinkPullRequestListResponse.newBuilder() to construct. + private FetchGitRepositoryLinkPullRequestListResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkPullRequestListResponse() { + pullRequests_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + .class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + .Builder.class); + } + + public static final int PULL_REQUESTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List pullRequests_; + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + @java.lang.Override + public java.util.List getPullRequestsList() { + return pullRequests_; + } + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + @java.lang.Override + public java.util.List + getPullRequestsOrBuilderList() { + return pullRequests_; + } + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + @java.lang.Override + public int getPullRequestsCount() { + return pullRequests_.size(); + } + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest getPullRequests(int index) { + return pullRequests_.get(index); + } + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestOrBuilder getPullRequestsOrBuilder( + int index) { + return pullRequests_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < pullRequests_.size(); i++) { + output.writeMessage(1, pullRequests_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < pullRequests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pullRequests_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) obj; + + if (!getPullRequestsList().equals(other.getPullRequestsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPullRequestsCount() > 0) { + hash = (37 * hash) + PULL_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getPullRequestsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for FetchGitRepositoryLinkPullRequestList.
+   * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + .class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pullRequestsBuilder_ == null) { + pullRequests_ = java.util.Collections.emptyList(); + } else { + pullRequests_ = null; + pullRequestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestListResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse result) { + if (pullRequestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pullRequests_ = java.util.Collections.unmodifiableList(pullRequests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pullRequests_ = pullRequests_; + } else { + result.pullRequests_ = pullRequestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + .getDefaultInstance()) return this; + if (pullRequestsBuilder_ == null) { + if (!other.pullRequests_.isEmpty()) { + if (pullRequests_.isEmpty()) { + pullRequests_ = other.pullRequests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePullRequestsIsMutable(); + pullRequests_.addAll(other.pullRequests_); + } + onChanged(); + } + } else { + if (!other.pullRequests_.isEmpty()) { + if (pullRequestsBuilder_.isEmpty()) { + pullRequestsBuilder_.dispose(); + pullRequestsBuilder_ = null; + pullRequests_ = other.pullRequests_; + bitField0_ = (bitField0_ & ~0x00000001); + pullRequestsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPullRequestsFieldBuilder() + : null; + } else { + pullRequestsBuilder_.addAllMessages(other.pullRequests_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.developerconnect.v1.PullRequest m = + input.readMessage( + com.google.cloud.developerconnect.v1.PullRequest.parser(), + extensionRegistry); + if (pullRequestsBuilder_ == null) { + ensurePullRequestsIsMutable(); + pullRequests_.add(m); + } else { + pullRequestsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List pullRequests_ = + java.util.Collections.emptyList(); + + private void ensurePullRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pullRequests_ = + new java.util.ArrayList( + pullRequests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequest, + com.google.cloud.developerconnect.v1.PullRequest.Builder, + com.google.cloud.developerconnect.v1.PullRequestOrBuilder> + pullRequestsBuilder_; + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public java.util.List getPullRequestsList() { + if (pullRequestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pullRequests_); + } else { + return pullRequestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public int getPullRequestsCount() { + if (pullRequestsBuilder_ == null) { + return pullRequests_.size(); + } else { + return pullRequestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public com.google.cloud.developerconnect.v1.PullRequest getPullRequests(int index) { + if (pullRequestsBuilder_ == null) { + return pullRequests_.get(index); + } else { + return pullRequestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder setPullRequests( + int index, com.google.cloud.developerconnect.v1.PullRequest value) { + if (pullRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePullRequestsIsMutable(); + pullRequests_.set(index, value); + onChanged(); + } else { + pullRequestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder setPullRequests( + int index, com.google.cloud.developerconnect.v1.PullRequest.Builder builderForValue) { + if (pullRequestsBuilder_ == null) { + ensurePullRequestsIsMutable(); + pullRequests_.set(index, builderForValue.build()); + onChanged(); + } else { + pullRequestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder addPullRequests(com.google.cloud.developerconnect.v1.PullRequest value) { + if (pullRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePullRequestsIsMutable(); + pullRequests_.add(value); + onChanged(); + } else { + pullRequestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder addPullRequests( + int index, com.google.cloud.developerconnect.v1.PullRequest value) { + if (pullRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePullRequestsIsMutable(); + pullRequests_.add(index, value); + onChanged(); + } else { + pullRequestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder addPullRequests( + com.google.cloud.developerconnect.v1.PullRequest.Builder builderForValue) { + if (pullRequestsBuilder_ == null) { + ensurePullRequestsIsMutable(); + pullRequests_.add(builderForValue.build()); + onChanged(); + } else { + pullRequestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder addPullRequests( + int index, com.google.cloud.developerconnect.v1.PullRequest.Builder builderForValue) { + if (pullRequestsBuilder_ == null) { + ensurePullRequestsIsMutable(); + pullRequests_.add(index, builderForValue.build()); + onChanged(); + } else { + pullRequestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder addAllPullRequests( + java.lang.Iterable values) { + if (pullRequestsBuilder_ == null) { + ensurePullRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pullRequests_); + onChanged(); + } else { + pullRequestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder clearPullRequests() { + if (pullRequestsBuilder_ == null) { + pullRequests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pullRequestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public Builder removePullRequests(int index) { + if (pullRequestsBuilder_ == null) { + ensurePullRequestsIsMutable(); + pullRequests_.remove(index); + onChanged(); + } else { + pullRequestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public com.google.cloud.developerconnect.v1.PullRequest.Builder getPullRequestsBuilder( + int index) { + return internalGetPullRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public com.google.cloud.developerconnect.v1.PullRequestOrBuilder getPullRequestsOrBuilder( + int index) { + if (pullRequestsBuilder_ == null) { + return pullRequests_.get(index); + } else { + return pullRequestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public java.util.List + getPullRequestsOrBuilderList() { + if (pullRequestsBuilder_ != null) { + return pullRequestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pullRequests_); + } + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public com.google.cloud.developerconnect.v1.PullRequest.Builder addPullRequestsBuilder() { + return internalGetPullRequestsFieldBuilder() + .addBuilder(com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public com.google.cloud.developerconnect.v1.PullRequest.Builder addPullRequestsBuilder( + int index) { + return internalGetPullRequestsFieldBuilder() + .addBuilder(index, com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Pull Requests.
+     * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + public java.util.List + getPullRequestsBuilderList() { + return internalGetPullRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequest, + com.google.cloud.developerconnect.v1.PullRequest.Builder, + com.google.cloud.developerconnect.v1.PullRequestOrBuilder> + internalGetPullRequestsFieldBuilder() { + if (pullRequestsBuilder_ == null) { + pullRequestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequest, + com.google.cloud.developerconnect.v1.PullRequest.Builder, + com.google.cloud.developerconnect.v1.PullRequestOrBuilder>( + pullRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pullRequests_ = null; + } + return pullRequestsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) + private static final com.google.cloud.developerconnect.v1 + .FetchGitRepositoryLinkPullRequestListResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkPullRequestListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponseOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponseOrBuilder.java new file mode 100644 index 000000000000..58976d3cc2b1 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestListResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkPullRequestListResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + java.util.List getPullRequestsList(); + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + com.google.cloud.developerconnect.v1.PullRequest getPullRequests(int index); + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + int getPullRequestsCount(); + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + java.util.List + getPullRequestsOrBuilderList(); + + /** + * + * + *
+   * The list of Pull Requests.
+   * 
+ * + * repeated .google.cloud.developerconnect.v1.PullRequest pull_requests = 1; + */ + com.google.cloud.developerconnect.v1.PullRequestOrBuilder getPullRequestsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequest.java new file mode 100644 index 000000000000..716fdfe4a3ce --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequest.java @@ -0,0 +1,833 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Request message for FetchGitRepositoryLinkPullRequest.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest} + */ +@com.google.protobuf.Generated +public final class FetchGitRepositoryLinkPullRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) + FetchGitRepositoryLinkPullRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FetchGitRepositoryLinkPullRequestRequest"); + } + + // Use FetchGitRepositoryLinkPullRequestRequest.newBuilder() to construct. + private FetchGitRepositoryLinkPullRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchGitRepositoryLinkPullRequestRequest() { + name_ = ""; + pullRequestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PULL_REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + @java.lang.Override + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pullRequestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pullRequestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest other = + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPullRequestId().equals(other.getPullRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PULL_REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getPullRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for FetchGitRepositoryLinkPullRequest.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest.class, + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pullRequestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FetchGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest build() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + buildPartial() { + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest result = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pullRequestId_ = pullRequestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest other) { + if (other + == com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPullRequestId().isEmpty()) { + pullRequestId_ = other.pullRequestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pullRequestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the GitRepositoryLink in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPullRequestId() { + pullRequestId_ = getDefaultInstance().getPullRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the Pull Request.
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) + private static final com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest(); + } + + public static com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchGitRepositoryLinkPullRequestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequestOrBuilder.java new file mode 100644 index 000000000000..ee06d6bccd42 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FetchGitRepositoryLinkPullRequestRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FetchGitRepositoryLinkPullRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the GitRepositoryLink in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + java.lang.String getPullRequestId(); + + /** + * + * + *
+   * Required. The ID of the Pull Request.
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + com.google.protobuf.ByteString getPullRequestIdBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiff.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiff.java new file mode 100644 index 000000000000..18face73cc85 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiff.java @@ -0,0 +1,980 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Message for a file diff.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FileDiff} + */ +@com.google.protobuf.Generated +public final class FileDiff extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.FileDiff) + FileDiffOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FileDiff"); + } + + // Use FileDiff.newBuilder() to construct. + private FileDiff(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FileDiff() { + path_ = ""; + status_ = ""; + patch_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FileDiff_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FileDiff_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FileDiff.class, + com.google.cloud.developerconnect.v1.FileDiff.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * Relative path to the file in the repository.
+   * 
+ * + * string path = 1; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + + /** + * + * + *
+   * Relative path to the file in the repository.
+   * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + + /** + * + * + *
+   * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+   * 
+ * + * string status = 2; + * + * @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; + } + } + + /** + * + * + *
+   * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+   * 
+ * + * string status = 2; + * + * @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 PATCH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object patch_ = ""; + + /** + * + * + *
+   * Standard unified diff patch hunk for the file. Only populated when
+   * `path_filters` is specified in the request; otherwise empty.
+   * 
+ * + * string patch = 3; + * + * @return The patch. + */ + @java.lang.Override + public java.lang.String getPatch() { + java.lang.Object ref = patch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patch_ = s; + return s; + } + } + + /** + * + * + *
+   * Standard unified diff patch hunk for the file. Only populated when
+   * `path_filters` is specified in the request; otherwise empty.
+   * 
+ * + * string patch = 3; + * + * @return The bytes for patch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPatchBytes() { + java.lang.Object ref = patch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, path_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, status_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(patch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, patch_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, status_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(patch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, patch_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.FileDiff)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.FileDiff other = + (com.google.cloud.developerconnect.v1.FileDiff) obj; + + if (!getPath().equals(other.getPath())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (!getPatch().equals(other.getPatch())) 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) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + PATCH_FIELD_NUMBER; + hash = (53 * hash) + getPatch().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.FileDiff parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.developerconnect.v1.FileDiff prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for a file diff.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.FileDiff} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.FileDiff) + com.google.cloud.developerconnect.v1.FileDiffOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FileDiff_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FileDiff_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.FileDiff.class, + com.google.cloud.developerconnect.v1.FileDiff.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.FileDiff.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + status_ = ""; + patch_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_FileDiff_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiff getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.FileDiff.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiff build() { + com.google.cloud.developerconnect.v1.FileDiff result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiff buildPartial() { + com.google.cloud.developerconnect.v1.FileDiff result = + new com.google.cloud.developerconnect.v1.FileDiff(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.FileDiff result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.patch_ = patch_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.FileDiff) { + return mergeFrom((com.google.cloud.developerconnect.v1.FileDiff) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.FileDiff other) { + if (other == com.google.cloud.developerconnect.v1.FileDiff.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPatch().isEmpty()) { + patch_ = other.patch_; + 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: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + patch_ = 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 path_ = ""; + + /** + * + * + *
+     * Relative path to the file in the repository.
+     * 
+ * + * string path = 1; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Relative path to the file in the repository.
+     * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Relative path to the file in the repository.
+     * 
+ * + * string path = 1; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Relative path to the file in the repository.
+     * 
+ * + * string path = 1; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Relative path to the file in the repository.
+     * 
+ * + * string path = 1; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + + /** + * + * + *
+     * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+     * 
+ * + * string status = 2; + * + * @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; + } + } + + /** + * + * + *
+     * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+     * 
+ * + * string status = 2; + * + * @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; + } + } + + /** + * + * + *
+     * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+     * 
+ * + * string status = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+     * 
+ * + * string status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+     * 
+ * + * string status = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object patch_ = ""; + + /** + * + * + *
+     * Standard unified diff patch hunk for the file. Only populated when
+     * `path_filters` is specified in the request; otherwise empty.
+     * 
+ * + * string patch = 3; + * + * @return The patch. + */ + public java.lang.String getPatch() { + java.lang.Object ref = patch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + patch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Standard unified diff patch hunk for the file. Only populated when
+     * `path_filters` is specified in the request; otherwise empty.
+     * 
+ * + * string patch = 3; + * + * @return The bytes for patch. + */ + public com.google.protobuf.ByteString getPatchBytes() { + java.lang.Object ref = patch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + patch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Standard unified diff patch hunk for the file. Only populated when
+     * `path_filters` is specified in the request; otherwise empty.
+     * 
+ * + * string patch = 3; + * + * @param value The patch to set. + * @return This builder for chaining. + */ + public Builder setPatch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + patch_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Standard unified diff patch hunk for the file. Only populated when
+     * `path_filters` is specified in the request; otherwise empty.
+     * 
+ * + * string patch = 3; + * + * @return This builder for chaining. + */ + public Builder clearPatch() { + patch_ = getDefaultInstance().getPatch(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Standard unified diff patch hunk for the file. Only populated when
+     * `path_filters` is specified in the request; otherwise empty.
+     * 
+ * + * string patch = 3; + * + * @param value The bytes for patch to set. + * @return This builder for chaining. + */ + public Builder setPatchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + patch_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.FileDiff) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.FileDiff) + private static final com.google.cloud.developerconnect.v1.FileDiff DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.FileDiff(); + } + + public static com.google.cloud.developerconnect.v1.FileDiff getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileDiff parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.FileDiff getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiffOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiffOrBuilder.java new file mode 100644 index 000000000000..5b6c7249d9d1 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/FileDiffOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface FileDiffOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.FileDiff) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Relative path to the file in the repository.
+   * 
+ * + * string path = 1; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * Relative path to the file in the repository.
+   * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+   * 
+ * + * string status = 2; + * + * @return The status. + */ + java.lang.String getStatus(); + + /** + * + * + *
+   * Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
+   * 
+ * + * string status = 2; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
+   * Standard unified diff patch hunk for the file. Only populated when
+   * `path_filters` is specified in the request; otherwise empty.
+   * 
+ * + * string patch = 3; + * + * @return The patch. + */ + java.lang.String getPatch(); + + /** + * + * + *
+   * Standard unified diff patch hunk for the file. Only populated when
+   * `path_filters` is specified in the request; otherwise empty.
+   * 
+ * + * string patch = 3; + * + * @return The bytes for patch. + */ + com.google.protobuf.ByteString getPatchBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequest.java new file mode 100644 index 000000000000..98501344148d --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequest.java @@ -0,0 +1,1765 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Message for modifying SCM Pull Request.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest} + */ +@com.google.protobuf.Generated +public final class ModifyGitRepositoryLinkPullRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) + ModifyGitRepositoryLinkPullRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModifyGitRepositoryLinkPullRequestRequest"); + } + + // Use ModifyGitRepositoryLinkPullRequestRequest.newBuilder() to construct. + private ModifyGitRepositoryLinkPullRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModifyGitRepositoryLinkPullRequestRequest() { + name_ = ""; + pullRequestId_ = ""; + title_ = ""; + body_ = ""; + baseRef_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.class, + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.Builder + .class); + } + + /** + * + * + *
+   * State represents the state of the pull request.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The pull request is open.
+     * 
+ * + * OPEN = 1; + */ + OPEN(1), + /** + * + * + *
+     * The pull request is closed.
+     * 
+ * + * CLOSED = 2; + */ + CLOSED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The pull request is open.
+     * 
+ * + * OPEN = 1; + */ + public static final int OPEN_VALUE = 1; + + /** + * + * + *
+     * The pull request is closed.
+     * 
+ * + * CLOSED = 2; + */ + public static final int CLOSED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return OPEN; + case 2: + return CLOSED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PULL_REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+   * Required. The SCM-specific Pull Request identifier (e.g., "45").
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + @java.lang.Override + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The SCM-specific Pull Request identifier (e.g., "45").
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Optional. The title of the Pull Request.
+   * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The title of the Pull Request.
+   * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BODY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object body_ = ""; + + /** + * + * + *
+   * Optional. The body description of the Pull Request.
+   * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The body. + */ + @java.lang.Override + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The body description of the Pull Request.
+   * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for body. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BASE_REF_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseRef_ = ""; + + /** + * + * + *
+   * Optional. The target branch to merge into.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baseRef. + */ + @java.lang.Override + public java.lang.String getBaseRef() { + java.lang.Object ref = baseRef_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseRef_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The target branch to merge into.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for baseRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseRefBytes() { + java.lang.Object ref = baseRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Optional. The state of the Pull Request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Optional. The state of the Pull Request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + getState() { + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State result = + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + .forNumber(state_); + return result == null + ? com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pullRequestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseRef_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, baseRef_); + } + if (state_ + != com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pullRequestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pullRequestId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseRef_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, baseRef_); + } + if (state_ + != com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest other = + (com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPullRequestId().equals(other.getPullRequestId())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getBaseRef().equals(other.getBaseRef())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PULL_REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getPullRequestId().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (37 * hash) + BASE_REF_FIELD_NUMBER; + hash = (53 * hash) + getBaseRef().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for modifying SCM Pull Request.
+   * 
+ * + * Protobuf type {@code + * google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.class, + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pullRequestId_ = ""; + title_ = ""; + body_ = ""; + baseRef_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_ModifyGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest build() { + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + buildPartial() { + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest result = + new com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pullRequestId_ = pullRequestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.body_ = body_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.baseRef_ = baseRef_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest other) { + if (other + == com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPullRequestId().isEmpty()) { + pullRequestId_ = other.pullRequestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getBaseRef().isEmpty()) { + baseRef_ = other.baseRef_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pullRequestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + body_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + baseRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pullRequestId_ = ""; + + /** + * + * + *
+     * Required. The SCM-specific Pull Request identifier (e.g., "45").
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + public java.lang.String getPullRequestId() { + java.lang.Object ref = pullRequestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pullRequestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The SCM-specific Pull Request identifier (e.g., "45").
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + public com.google.protobuf.ByteString getPullRequestIdBytes() { + java.lang.Object ref = pullRequestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pullRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The SCM-specific Pull Request identifier (e.g., "45").
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SCM-specific Pull Request identifier (e.g., "45").
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPullRequestId() { + pullRequestId_ = getDefaultInstance().getPullRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The SCM-specific Pull Request identifier (e.g., "45").
+     * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pullRequestId to set. + * @return This builder for chaining. + */ + public Builder setPullRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pullRequestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
+     * Optional. The title of the Pull Request.
+     * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The title of the Pull Request.
+     * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The title of the Pull Request.
+     * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The title of the Pull Request.
+     * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The title of the Pull Request.
+     * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object body_ = ""; + + /** + * + * + *
+     * Optional. The body description of the Pull Request.
+     * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The body. + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The body description of the Pull Request.
+     * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for body. + */ + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The body description of the Pull Request.
+     * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The body to set. + * @return This builder for chaining. + */ + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The body description of the Pull Request.
+     * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBody() { + body_ = getDefaultInstance().getBody(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The body description of the Pull Request.
+     * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for body to set. + * @return This builder for chaining. + */ + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object baseRef_ = ""; + + /** + * + * + *
+     * Optional. The target branch to merge into.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baseRef. + */ + public java.lang.String getBaseRef() { + java.lang.Object ref = baseRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The target branch to merge into.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for baseRef. + */ + public com.google.protobuf.ByteString getBaseRefBytes() { + java.lang.Object ref = baseRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The target branch to merge into.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The baseRef to set. + * @return This builder for chaining. + */ + public Builder setBaseRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + baseRef_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The target branch to merge into.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBaseRef() { + baseRef_ = getDefaultInstance().getBaseRef(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The target branch to merge into.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for baseRef to set. + * @return This builder for chaining. + */ + public Builder setBaseRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseRef_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Optional. The state of the Pull Request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Optional. The state of the Pull Request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The state of the Pull Request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + getState() { + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State result = + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + .forNumber(state_); + return result == null + ? com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The state of the Pull Request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The state of the Pull Request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) + private static final com.google.cloud.developerconnect.v1 + .ModifyGitRepositoryLinkPullRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest(); + } + + public static com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyGitRepositoryLinkPullRequestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequestOrBuilder.java new file mode 100644 index 000000000000..09e7d76e155b --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ModifyGitRepositoryLinkPullRequestRequestOrBuilder.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface ModifyGitRepositoryLinkPullRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The SCM-specific Pull Request identifier (e.g., "45").
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pullRequestId. + */ + java.lang.String getPullRequestId(); + + /** + * + * + *
+   * Required. The SCM-specific Pull Request identifier (e.g., "45").
+   * 
+ * + * string pull_request_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pullRequestId. + */ + com.google.protobuf.ByteString getPullRequestIdBytes(); + + /** + * + * + *
+   * Optional. The title of the Pull Request.
+   * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Optional. The title of the Pull Request.
+   * 
+ * + * string title = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional. The body description of the Pull Request.
+   * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The body. + */ + java.lang.String getBody(); + + /** + * + * + *
+   * Optional. The body description of the Pull Request.
+   * 
+ * + * string body = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for body. + */ + com.google.protobuf.ByteString getBodyBytes(); + + /** + * + * + *
+   * Optional. The target branch to merge into.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baseRef. + */ + java.lang.String getBaseRef(); + + /** + * + * + *
+   * Optional. The target branch to merge into.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for baseRef. + */ + com.google.protobuf.ByteString getBaseRefBytes(); + + /** + * + * + *
+   * Optional. The state of the Pull Request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Optional. The state of the Pull Request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State state = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest.State getState(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequest.java new file mode 100644 index 000000000000..3a7c355a80aa --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequest.java @@ -0,0 +1,974 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Message for opening SCM Pull Request.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest} + */ +@com.google.protobuf.Generated +public final class OpenGitRepositoryLinkPullRequestRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) + OpenGitRepositoryLinkPullRequestRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OpenGitRepositoryLinkPullRequestRequest"); + } + + // Use OpenGitRepositoryLinkPullRequestRequest.newBuilder() to construct. + private OpenGitRepositoryLinkPullRequestRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenGitRepositoryLinkPullRequestRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest.class, + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest.Builder + .class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PULL_REQUEST_FIELD_NUMBER = 2; + private com.google.cloud.developerconnect.v1.PullRequest pullRequest_; + + /** + * + * + *
+   * Required. The Pull Request details to open.
+   * Input fields used: title, body, head_ref, base_ref.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pullRequest field is set. + */ + @java.lang.Override + public boolean hasPullRequest() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The Pull Request details to open.
+   * Input fields used: title, body, head_ref, base_ref.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pullRequest. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest getPullRequest() { + return pullRequest_ == null + ? com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance() + : pullRequest_; + } + + /** + * + * + *
+   * Required. The Pull Request details to open.
+   * Input fields used: title, body, head_ref, base_ref.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestOrBuilder getPullRequestOrBuilder() { + return pullRequest_ == null + ? com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance() + : pullRequest_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPullRequest()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPullRequest()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest other = + (com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPullRequest() != other.hasPullRequest()) return false; + if (hasPullRequest()) { + if (!getPullRequest().equals(other.getPullRequest())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasPullRequest()) { + hash = (37 * hash) + PULL_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getPullRequest().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for opening SCM Pull Request.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest.class, + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPullRequestFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pullRequest_ = null; + if (pullRequestBuilder_ != null) { + pullRequestBuilder_.dispose(); + pullRequestBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_OpenGitRepositoryLinkPullRequestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest build() { + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + buildPartial() { + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest result = + new com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pullRequest_ = + pullRequestBuilder_ == null ? pullRequest_ : pullRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) { + return mergeFrom( + (com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest other) { + if (other + == com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPullRequest()) { + mergePullRequest(other.getPullRequest()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPullRequestFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The GitRepositoryLink resource name in the format
+     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.developerconnect.v1.PullRequest pullRequest_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequest, + com.google.cloud.developerconnect.v1.PullRequest.Builder, + com.google.cloud.developerconnect.v1.PullRequestOrBuilder> + pullRequestBuilder_; + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pullRequest field is set. + */ + public boolean hasPullRequest() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pullRequest. + */ + public com.google.cloud.developerconnect.v1.PullRequest getPullRequest() { + if (pullRequestBuilder_ == null) { + return pullRequest_ == null + ? com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance() + : pullRequest_; + } else { + return pullRequestBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPullRequest(com.google.cloud.developerconnect.v1.PullRequest value) { + if (pullRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pullRequest_ = value; + } else { + pullRequestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPullRequest( + com.google.cloud.developerconnect.v1.PullRequest.Builder builderForValue) { + if (pullRequestBuilder_ == null) { + pullRequest_ = builderForValue.build(); + } else { + pullRequestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePullRequest(com.google.cloud.developerconnect.v1.PullRequest value) { + if (pullRequestBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && pullRequest_ != null + && pullRequest_ + != com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance()) { + getPullRequestBuilder().mergeFrom(value); + } else { + pullRequest_ = value; + } + } else { + pullRequestBuilder_.mergeFrom(value); + } + if (pullRequest_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPullRequest() { + bitField0_ = (bitField0_ & ~0x00000002); + pullRequest_ = null; + if (pullRequestBuilder_ != null) { + pullRequestBuilder_.dispose(); + pullRequestBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.PullRequest.Builder getPullRequestBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPullRequestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.developerconnect.v1.PullRequestOrBuilder getPullRequestOrBuilder() { + if (pullRequestBuilder_ != null) { + return pullRequestBuilder_.getMessageOrBuilder(); + } else { + return pullRequest_ == null + ? com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance() + : pullRequest_; + } + } + + /** + * + * + *
+     * Required. The Pull Request details to open.
+     * Input fields used: title, body, head_ref, base_ref.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequest, + com.google.cloud.developerconnect.v1.PullRequest.Builder, + com.google.cloud.developerconnect.v1.PullRequestOrBuilder> + internalGetPullRequestFieldBuilder() { + if (pullRequestBuilder_ == null) { + pullRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.developerconnect.v1.PullRequest, + com.google.cloud.developerconnect.v1.PullRequest.Builder, + com.google.cloud.developerconnect.v1.PullRequestOrBuilder>( + getPullRequest(), getParentForChildren(), isClean()); + pullRequest_ = null; + } + return pullRequestBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) + private static final com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest(); + } + + public static com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenGitRepositoryLinkPullRequestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequestOrBuilder.java new file mode 100644 index 000000000000..c5d05fffa60e --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/OpenGitRepositoryLinkPullRequestRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface OpenGitRepositoryLinkPullRequestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The GitRepositoryLink resource name in the format
+   * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The Pull Request details to open.
+   * Input fields used: title, body, head_ref, base_ref.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pullRequest field is set. + */ + boolean hasPullRequest(); + + /** + * + * + *
+   * Required. The Pull Request details to open.
+   * Input fields used: title, body, head_ref, base_ref.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pullRequest. + */ + com.google.cloud.developerconnect.v1.PullRequest getPullRequest(); + + /** + * + * + *
+   * Required. The Pull Request details to open.
+   * Input fields used: title, body, head_ref, base_ref.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest pull_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.developerconnect.v1.PullRequestOrBuilder getPullRequestOrBuilder(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequest.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequest.java new file mode 100644 index 000000000000..fa3eb4bd2d04 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequest.java @@ -0,0 +1,4022 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Message representing a SCM Pull Request.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.PullRequest} + */ +@com.google.protobuf.Generated +public final class PullRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.PullRequest) + PullRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PullRequest"); + } + + // Use PullRequest.newBuilder() to construct. + private PullRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PullRequest() { + id_ = ""; + title_ = ""; + body_ = ""; + headRef_ = ""; + baseRef_ = ""; + author_ = ""; + state_ = 0; + mergeability_ = 0; + htmlUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.PullRequest.class, + com.google.cloud.developerconnect.v1.PullRequest.Builder.class); + } + + /** + * + * + *
+   * The state of the PR.
+   * 
+ * + * Protobuf enum {@code google.cloud.developerconnect.v1.PullRequest.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The PR is open.
+     * 
+ * + * OPEN = 1; + */ + OPEN(1), + /** + * + * + *
+     * The PR is closed.
+     * 
+ * + * CLOSED = 2; + */ + CLOSED(2), + /** + * + * + *
+     * The PR is merged.
+     * 
+ * + * MERGED = 3; + */ + MERGED(3), + /** + * + * + *
+     * The PR is declined. Only used by SCM providers that support declining
+     * pull requests. Never used for GitHub, GitHub Enterprise, GitLab, or
+     * GitLab Enterprise, where a pull request closed without being merged is
+     * `CLOSED`.
+     * 
+ * + * DECLINED = 4; + */ + DECLINED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The PR is open.
+     * 
+ * + * OPEN = 1; + */ + public static final int OPEN_VALUE = 1; + + /** + * + * + *
+     * The PR is closed.
+     * 
+ * + * CLOSED = 2; + */ + public static final int CLOSED_VALUE = 2; + + /** + * + * + *
+     * The PR is merged.
+     * 
+ * + * MERGED = 3; + */ + public static final int MERGED_VALUE = 3; + + /** + * + * + *
+     * The PR is declined. Only used by SCM providers that support declining
+     * pull requests. Never used for GitHub, GitHub Enterprise, GitLab, or
+     * GitLab Enterprise, where a pull request closed without being merged is
+     * `CLOSED`.
+     * 
+ * + * DECLINED = 4; + */ + public static final int DECLINED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return OPEN; + case 2: + return CLOSED; + case 3: + return MERGED; + case 4: + return DECLINED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.PullRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.developerconnect.v1.PullRequest.State) + } + + /** + * + * + *
+   * The mergeability state of a pull request.
+   * 
+ * + * Protobuf enum {@code google.cloud.developerconnect.v1.PullRequest.Mergeability} + */ + public enum Mergeability implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Mergeability state is unspecified.
+     * 
+ * + * MERGEABILITY_UNSPECIFIED = 0; + */ + MERGEABILITY_UNSPECIFIED(0), + /** + * + * + *
+     * The pull request can be merged cleanly without Git conflicts.
+     * 
+ * + * MERGEABLE = 1; + */ + MERGEABLE(1), + /** + * + * + *
+     * The pull request has merge conflicts and cannot be merged cleanly.
+     * 
+ * + * CONFLICTING = 2; + */ + CONFLICTING(2), + /** + * + * + *
+     * The mergeability state is currently being computed asynchronously
+     * by the upstream SCM provider.
+     * 
+ * + * COMPUTING = 3; + */ + COMPUTING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Mergeability"); + } + + /** + * + * + *
+     * Mergeability state is unspecified.
+     * 
+ * + * MERGEABILITY_UNSPECIFIED = 0; + */ + public static final int MERGEABILITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The pull request can be merged cleanly without Git conflicts.
+     * 
+ * + * MERGEABLE = 1; + */ + public static final int MERGEABLE_VALUE = 1; + + /** + * + * + *
+     * The pull request has merge conflicts and cannot be merged cleanly.
+     * 
+ * + * CONFLICTING = 2; + */ + public static final int CONFLICTING_VALUE = 2; + + /** + * + * + *
+     * The mergeability state is currently being computed asynchronously
+     * by the upstream SCM provider.
+     * 
+ * + * COMPUTING = 3; + */ + public static final int COMPUTING_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 Mergeability 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 Mergeability forNumber(int value) { + switch (value) { + case 0: + return MERGEABILITY_UNSPECIFIED; + case 1: + return MERGEABLE; + case 2: + return CONFLICTING; + case 3: + return COMPUTING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mergeability findValueByNumber(int number) { + return Mergeability.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.PullRequest.getDescriptor().getEnumTypes().get(1); + } + + private static final Mergeability[] VALUES = values(); + + public static Mergeability 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 Mergeability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.developerconnect.v1.PullRequest.Mergeability) + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Required. The ID of the PR.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The ID of the PR.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Required. The title of the PR.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The title of the PR.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BODY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object body_ = ""; + + /** + * + * + *
+   * Optional. The body description of the PR.
+   * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The body. + */ + @java.lang.Override + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The body description of the PR.
+   * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for body. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEAD_REF_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object headRef_ = ""; + + /** + * + * + *
+   * Required. The source commit SHA of the head branch.
+   * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The headRef. + */ + @java.lang.Override + public java.lang.String getHeadRef() { + java.lang.Object ref = headRef_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headRef_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The source commit SHA of the head branch.
+   * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for headRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHeadRefBytes() { + java.lang.Object ref = headRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BASE_REF_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseRef_ = ""; + + /** + * + * + *
+   * Required. The target commit SHA of the base branch.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseRef. + */ + @java.lang.Override + public java.lang.String getBaseRef() { + java.lang.Object ref = baseRef_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseRef_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The target commit SHA of the base branch.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseRefBytes() { + java.lang.Object ref = baseRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. When the PR was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the PR was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. When the PR was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. When the PR was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the PR was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. When the PR was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int MERGE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp mergeTime_; + + /** + * + * + *
+   * Output only. When the PR was merged.
+   * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the mergeTime field is set. + */ + @java.lang.Override + public boolean hasMergeTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. When the PR was merged.
+   * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The mergeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMergeTime() { + return mergeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mergeTime_; + } + + /** + * + * + *
+   * Output only. When the PR was merged.
+   * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMergeTimeOrBuilder() { + return mergeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mergeTime_; + } + + public static final int CLOSE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp closeTime_; + + /** + * + * + *
+   * Output only. When the PR was closed.
+   * 
+ * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the closeTime field is set. + */ + @java.lang.Override + public boolean hasCloseTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. When the PR was closed.
+   * 
+ * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The closeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCloseTime() { + return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; + } + + /** + * + * + *
+   * Output only. When the PR was closed.
+   * 
+ * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder() { + return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; + } + + public static final int DECLINE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp declineTime_; + + /** + * + * + *
+   * Output only. When the PR was declined. Only set for SCM providers that
+   * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+   * GitLab, or GitLab Enterprise, where a pull request closed without being
+   * merged is `CLOSED`.
+   * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the declineTime field is set. + */ + @java.lang.Override + public boolean hasDeclineTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. When the PR was declined. Only set for SCM providers that
+   * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+   * GitLab, or GitLab Enterprise, where a pull request closed without being
+   * merged is `CLOSED`.
+   * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The declineTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeclineTime() { + return declineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : declineTime_; + } + + /** + * + * + *
+   * Output only. When the PR was declined. Only set for SCM providers that
+   * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+   * GitLab, or GitLab Enterprise, where a pull request closed without being
+   * merged is `CLOSED`.
+   * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeclineTimeOrBuilder() { + return declineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : declineTime_; + } + + public static final int STATE_FIELD_NUMBER = 12; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current state of the PR.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The current state of the PR.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest.State getState() { + com.google.cloud.developerconnect.v1.PullRequest.State result = + com.google.cloud.developerconnect.v1.PullRequest.State.forNumber(state_); + return result == null + ? com.google.cloud.developerconnect.v1.PullRequest.State.UNRECOGNIZED + : result; + } + + public static final int MERGEABILITY_FIELD_NUMBER = 13; + private int mergeability_ = 0; + + /** + * + * + *
+   * Output only. The mergeability state of the pull request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for mergeability. + */ + @java.lang.Override + public int getMergeabilityValue() { + return mergeability_; + } + + /** + * + * + *
+   * Output only. The mergeability state of the pull request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The mergeability. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest.Mergeability getMergeability() { + com.google.cloud.developerconnect.v1.PullRequest.Mergeability result = + com.google.cloud.developerconnect.v1.PullRequest.Mergeability.forNumber(mergeability_); + return result == null + ? com.google.cloud.developerconnect.v1.PullRequest.Mergeability.UNRECOGNIZED + : result; + } + + public static final int HTML_URL_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object htmlUrl_ = ""; + + /** + * + * + *
+   * Output only. The HTML URL of the pull request on the SCM provider.
+   * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The htmlUrl. + */ + @java.lang.Override + public java.lang.String getHtmlUrl() { + java.lang.Object ref = htmlUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + htmlUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The HTML URL of the pull request on the SCM provider.
+   * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for htmlUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHtmlUrlBytes() { + java.lang.Object ref = htmlUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + htmlUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headRef_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, headRef_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseRef_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, baseRef_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, author_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getMergeTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getCloseTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(11, getDeclineTime()); + } + if (state_ + != com.google.cloud.developerconnect.v1.PullRequest.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, state_); + } + if (mergeability_ + != com.google.cloud.developerconnect.v1.PullRequest.Mergeability.MERGEABILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, mergeability_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(htmlUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, htmlUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headRef_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, headRef_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseRef_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, baseRef_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, author_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMergeTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCloseTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeclineTime()); + } + if (state_ + != com.google.cloud.developerconnect.v1.PullRequest.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, state_); + } + if (mergeability_ + != com.google.cloud.developerconnect.v1.PullRequest.Mergeability.MERGEABILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, mergeability_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(htmlUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, htmlUrl_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.PullRequest)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.PullRequest other = + (com.google.cloud.developerconnect.v1.PullRequest) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getHeadRef().equals(other.getHeadRef())) return false; + if (!getBaseRef().equals(other.getBaseRef())) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasMergeTime() != other.hasMergeTime()) return false; + if (hasMergeTime()) { + if (!getMergeTime().equals(other.getMergeTime())) return false; + } + if (hasCloseTime() != other.hasCloseTime()) return false; + if (hasCloseTime()) { + if (!getCloseTime().equals(other.getCloseTime())) return false; + } + if (hasDeclineTime() != other.hasDeclineTime()) return false; + if (hasDeclineTime()) { + if (!getDeclineTime().equals(other.getDeclineTime())) return false; + } + if (state_ != other.state_) return false; + if (mergeability_ != other.mergeability_) return false; + if (!getHtmlUrl().equals(other.getHtmlUrl())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (37 * hash) + HEAD_REF_FIELD_NUMBER; + hash = (53 * hash) + getHeadRef().hashCode(); + hash = (37 * hash) + BASE_REF_FIELD_NUMBER; + hash = (53 * hash) + getBaseRef().hashCode(); + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasMergeTime()) { + hash = (37 * hash) + MERGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMergeTime().hashCode(); + } + if (hasCloseTime()) { + hash = (37 * hash) + CLOSE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCloseTime().hashCode(); + } + if (hasDeclineTime()) { + hash = (37 * hash) + DECLINE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeclineTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + MERGEABILITY_FIELD_NUMBER; + hash = (53 * hash) + mergeability_; + hash = (37 * hash) + HTML_URL_FIELD_NUMBER; + hash = (53 * hash) + getHtmlUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.developerconnect.v1.PullRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing a SCM Pull Request.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.PullRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.PullRequest) + com.google.cloud.developerconnect.v1.PullRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.PullRequest.class, + com.google.cloud.developerconnect.v1.PullRequest.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.PullRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetMergeTimeFieldBuilder(); + internalGetCloseTimeFieldBuilder(); + internalGetDeclineTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + title_ = ""; + body_ = ""; + headRef_ = ""; + baseRef_ = ""; + author_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + mergeTime_ = null; + if (mergeTimeBuilder_ != null) { + mergeTimeBuilder_.dispose(); + mergeTimeBuilder_ = null; + } + closeTime_ = null; + if (closeTimeBuilder_ != null) { + closeTimeBuilder_.dispose(); + closeTimeBuilder_ = null; + } + declineTime_ = null; + if (declineTimeBuilder_ != null) { + declineTimeBuilder_.dispose(); + declineTimeBuilder_ = null; + } + state_ = 0; + mergeability_ = 0; + htmlUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest build() { + com.google.cloud.developerconnect.v1.PullRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest buildPartial() { + com.google.cloud.developerconnect.v1.PullRequest result = + new com.google.cloud.developerconnect.v1.PullRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.PullRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.body_ = body_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.headRef_ = headRef_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.baseRef_ = baseRef_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.author_ = author_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.mergeTime_ = mergeTimeBuilder_ == null ? mergeTime_ : mergeTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.closeTime_ = closeTimeBuilder_ == null ? closeTime_ : closeTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.declineTime_ = + declineTimeBuilder_ == null ? declineTime_ : declineTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.mergeability_ = mergeability_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.htmlUrl_ = htmlUrl_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.PullRequest) { + return mergeFrom((com.google.cloud.developerconnect.v1.PullRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.PullRequest other) { + if (other == com.google.cloud.developerconnect.v1.PullRequest.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getHeadRef().isEmpty()) { + headRef_ = other.headRef_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getBaseRef().isEmpty()) { + baseRef_ = other.baseRef_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasMergeTime()) { + mergeMergeTime(other.getMergeTime()); + } + if (other.hasCloseTime()) { + mergeCloseTime(other.getCloseTime()); + } + if (other.hasDeclineTime()) { + mergeDeclineTime(other.getDeclineTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.mergeability_ != 0) { + setMergeabilityValue(other.getMergeabilityValue()); + } + if (!other.getHtmlUrl().isEmpty()) { + htmlUrl_ = other.htmlUrl_; + bitField0_ |= 0x00002000; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + body_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + headRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + baseRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetMergeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetCloseTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetDeclineTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + mergeability_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + htmlUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + 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_ = ""; + + /** + * + * + *
+     * Required. The ID of the PR.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The ID of the PR.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The ID of the PR.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
+     * Required. The ID of the PR.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the PR.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 title_ = ""; + + /** + * + * + *
+     * Required. The title of the PR.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The title of the PR.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The title of the PR.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The title of the PR.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The title of the PR.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object body_ = ""; + + /** + * + * + *
+     * Optional. The body description of the PR.
+     * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The body. + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The body description of the PR.
+     * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for body. + */ + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The body description of the PR.
+     * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The body to set. + * @return This builder for chaining. + */ + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The body description of the PR.
+     * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBody() { + body_ = getDefaultInstance().getBody(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The body description of the PR.
+     * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for body to set. + * @return This builder for chaining. + */ + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object headRef_ = ""; + + /** + * + * + *
+     * Required. The source commit SHA of the head branch.
+     * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The headRef. + */ + public java.lang.String getHeadRef() { + java.lang.Object ref = headRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The source commit SHA of the head branch.
+     * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for headRef. + */ + public com.google.protobuf.ByteString getHeadRefBytes() { + java.lang.Object ref = headRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The source commit SHA of the head branch.
+     * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The headRef to set. + * @return This builder for chaining. + */ + public Builder setHeadRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + headRef_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The source commit SHA of the head branch.
+     * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHeadRef() { + headRef_ = getDefaultInstance().getHeadRef(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The source commit SHA of the head branch.
+     * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for headRef to set. + * @return This builder for chaining. + */ + public Builder setHeadRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + headRef_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object baseRef_ = ""; + + /** + * + * + *
+     * Required. The target commit SHA of the base branch.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseRef. + */ + public java.lang.String getBaseRef() { + java.lang.Object ref = baseRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The target commit SHA of the base branch.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseRef. + */ + public com.google.protobuf.ByteString getBaseRefBytes() { + java.lang.Object ref = baseRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The target commit SHA of the base branch.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The baseRef to set. + * @return This builder for chaining. + */ + public Builder setBaseRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + baseRef_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The target commit SHA of the base branch.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBaseRef() { + baseRef_ = getDefaultInstance().getBaseRef(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The target commit SHA of the base branch.
+     * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for baseRef to set. + * @return This builder for chaining. + */ + public Builder setBaseRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseRef_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. When the PR was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. When the PR was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp mergeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + mergeTimeBuilder_; + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the mergeTime field is set. + */ + public boolean hasMergeTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The mergeTime. + */ + public com.google.protobuf.Timestamp getMergeTime() { + if (mergeTimeBuilder_ == null) { + return mergeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mergeTime_; + } else { + return mergeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMergeTime(com.google.protobuf.Timestamp value) { + if (mergeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mergeTime_ = value; + } else { + mergeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMergeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (mergeTimeBuilder_ == null) { + mergeTime_ = builderForValue.build(); + } else { + mergeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMergeTime(com.google.protobuf.Timestamp value) { + if (mergeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && mergeTime_ != null + && mergeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMergeTimeBuilder().mergeFrom(value); + } else { + mergeTime_ = value; + } + } else { + mergeTimeBuilder_.mergeFrom(value); + } + if (mergeTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMergeTime() { + bitField0_ = (bitField0_ & ~0x00000100); + mergeTime_ = null; + if (mergeTimeBuilder_ != null) { + mergeTimeBuilder_.dispose(); + mergeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getMergeTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetMergeTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getMergeTimeOrBuilder() { + if (mergeTimeBuilder_ != null) { + return mergeTimeBuilder_.getMessageOrBuilder(); + } else { + return mergeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mergeTime_; + } + } + + /** + * + * + *
+     * Output only. When the PR was merged.
+     * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetMergeTimeFieldBuilder() { + if (mergeTimeBuilder_ == null) { + mergeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMergeTime(), getParentForChildren(), isClean()); + mergeTime_ = null; + } + return mergeTimeBuilder_; + } + + private com.google.protobuf.Timestamp closeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + closeTimeBuilder_; + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the closeTime field is set. + */ + public boolean hasCloseTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The closeTime. + */ + public com.google.protobuf.Timestamp getCloseTime() { + if (closeTimeBuilder_ == null) { + return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; + } else { + return closeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloseTime(com.google.protobuf.Timestamp value) { + if (closeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closeTime_ = value; + } else { + closeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloseTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (closeTimeBuilder_ == null) { + closeTime_ = builderForValue.build(); + } else { + closeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCloseTime(com.google.protobuf.Timestamp value) { + if (closeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && closeTime_ != null + && closeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCloseTimeBuilder().mergeFrom(value); + } else { + closeTime_ = value; + } + } else { + closeTimeBuilder_.mergeFrom(value); + } + if (closeTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCloseTime() { + bitField0_ = (bitField0_ & ~0x00000200); + closeTime_ = null; + if (closeTimeBuilder_ != null) { + closeTimeBuilder_.dispose(); + closeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCloseTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetCloseTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder() { + if (closeTimeBuilder_ != null) { + return closeTimeBuilder_.getMessageOrBuilder(); + } else { + return closeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : closeTime_; + } + } + + /** + * + * + *
+     * Output only. When the PR was closed.
+     * 
+ * + * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCloseTimeFieldBuilder() { + if (closeTimeBuilder_ == null) { + closeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCloseTime(), getParentForChildren(), isClean()); + closeTime_ = null; + } + return closeTimeBuilder_; + } + + private com.google.protobuf.Timestamp declineTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + declineTimeBuilder_; + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the declineTime field is set. + */ + public boolean hasDeclineTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The declineTime. + */ + public com.google.protobuf.Timestamp getDeclineTime() { + if (declineTimeBuilder_ == null) { + return declineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : declineTime_; + } else { + return declineTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeclineTime(com.google.protobuf.Timestamp value) { + if (declineTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + declineTime_ = value; + } else { + declineTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeclineTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (declineTimeBuilder_ == null) { + declineTime_ = builderForValue.build(); + } else { + declineTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeclineTime(com.google.protobuf.Timestamp value) { + if (declineTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && declineTime_ != null + && declineTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeclineTimeBuilder().mergeFrom(value); + } else { + declineTime_ = value; + } + } else { + declineTimeBuilder_.mergeFrom(value); + } + if (declineTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeclineTime() { + bitField0_ = (bitField0_ & ~0x00000400); + declineTime_ = null; + if (declineTimeBuilder_ != null) { + declineTimeBuilder_.dispose(); + declineTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeclineTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetDeclineTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeclineTimeOrBuilder() { + if (declineTimeBuilder_ != null) { + return declineTimeBuilder_.getMessageOrBuilder(); + } else { + return declineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : declineTime_; + } + } + + /** + * + * + *
+     * Output only. When the PR was declined. Only set for SCM providers that
+     * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+     * GitLab, or GitLab Enterprise, where a pull request closed without being
+     * merged is `CLOSED`.
+     * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetDeclineTimeFieldBuilder() { + if (declineTimeBuilder_ == null) { + declineTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeclineTime(), getParentForChildren(), isClean()); + declineTime_ = null; + } + return declineTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current state of the PR.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The current state of the PR.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the PR.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest.State getState() { + com.google.cloud.developerconnect.v1.PullRequest.State result = + com.google.cloud.developerconnect.v1.PullRequest.State.forNumber(state_); + return result == null + ? com.google.cloud.developerconnect.v1.PullRequest.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The current state of the PR.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.developerconnect.v1.PullRequest.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the PR.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000800); + state_ = 0; + onChanged(); + return this; + } + + private int mergeability_ = 0; + + /** + * + * + *
+     * Output only. The mergeability state of the pull request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for mergeability. + */ + @java.lang.Override + public int getMergeabilityValue() { + return mergeability_; + } + + /** + * + * + *
+     * Output only. The mergeability state of the pull request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for mergeability to set. + * @return This builder for chaining. + */ + public Builder setMergeabilityValue(int value) { + mergeability_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The mergeability state of the pull request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The mergeability. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest.Mergeability getMergeability() { + com.google.cloud.developerconnect.v1.PullRequest.Mergeability result = + com.google.cloud.developerconnect.v1.PullRequest.Mergeability.forNumber(mergeability_); + return result == null + ? com.google.cloud.developerconnect.v1.PullRequest.Mergeability.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The mergeability state of the pull request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The mergeability to set. + * @return This builder for chaining. + */ + public Builder setMergeability( + com.google.cloud.developerconnect.v1.PullRequest.Mergeability value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + mergeability_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The mergeability state of the pull request.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMergeability() { + bitField0_ = (bitField0_ & ~0x00001000); + mergeability_ = 0; + onChanged(); + return this; + } + + private java.lang.Object htmlUrl_ = ""; + + /** + * + * + *
+     * Output only. The HTML URL of the pull request on the SCM provider.
+     * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The htmlUrl. + */ + public java.lang.String getHtmlUrl() { + java.lang.Object ref = htmlUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + htmlUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The HTML URL of the pull request on the SCM provider.
+     * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for htmlUrl. + */ + public com.google.protobuf.ByteString getHtmlUrlBytes() { + java.lang.Object ref = htmlUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + htmlUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The HTML URL of the pull request on the SCM provider.
+     * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The htmlUrl to set. + * @return This builder for chaining. + */ + public Builder setHtmlUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + htmlUrl_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The HTML URL of the pull request on the SCM provider.
+     * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHtmlUrl() { + htmlUrl_ = getDefaultInstance().getHtmlUrl(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The HTML URL of the pull request on the SCM provider.
+     * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for htmlUrl to set. + * @return This builder for chaining. + */ + public Builder setHtmlUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + htmlUrl_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.PullRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.PullRequest) + private static final com.google.cloud.developerconnect.v1.PullRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.PullRequest(); + } + + public static com.google.cloud.developerconnect.v1.PullRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PullRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestComment.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestComment.java new file mode 100644 index 000000000000..656ad528750b --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestComment.java @@ -0,0 +1,1582 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Message representing a SCM Pull Request Comment.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.PullRequestComment} + */ +@com.google.protobuf.Generated +public final class PullRequestComment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.PullRequestComment) + PullRequestCommentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PullRequestComment"); + } + + // Use PullRequestComment.newBuilder() to construct. + private PullRequestComment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PullRequestComment() { + id_ = ""; + body_ = ""; + author_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.PullRequestComment.class, + com.google.cloud.developerconnect.v1.PullRequestComment.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 BODY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object body_ = ""; + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + @java.lang.Override + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for body. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, author_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, author_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.PullRequestComment)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.PullRequestComment other = + (com.google.cloud.developerconnect.v1.PullRequestComment) obj; + + if (!getId().equals(other.getId())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!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) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.PullRequestComment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing a SCM Pull Request Comment.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.PullRequestComment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.PullRequestComment) + com.google.cloud.developerconnect.v1.PullRequestCommentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.PullRequestComment.class, + com.google.cloud.developerconnect.v1.PullRequestComment.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.PullRequestComment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + body_ = ""; + author_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestComment_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestComment getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestComment build() { + com.google.cloud.developerconnect.v1.PullRequestComment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestComment buildPartial() { + com.google.cloud.developerconnect.v1.PullRequestComment result = + new com.google.cloud.developerconnect.v1.PullRequestComment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.PullRequestComment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.body_ = body_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.author_ = author_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.PullRequestComment) { + return mergeFrom((com.google.cloud.developerconnect.v1.PullRequestComment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.PullRequestComment other) { + if (other == com.google.cloud.developerconnect.v1.PullRequestComment.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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: + { + body_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 id_ = ""; + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 body_ = ""; + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for body. + */ + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The body to set. + * @return This builder for chaining. + */ + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBody() { + body_ = getDefaultInstance().getBody(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for body to set. + * @return This builder for chaining. + */ + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.PullRequestComment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.PullRequestComment) + private static final com.google.cloud.developerconnect.v1.PullRequestComment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.PullRequestComment(); + } + + public static com.google.cloud.developerconnect.v1.PullRequestComment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PullRequestComment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestComment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestCommentOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestCommentOrBuilder.java new file mode 100644 index 000000000000..f4e21689d6d8 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestCommentOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface PullRequestCommentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.PullRequestComment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + java.lang.String getBody(); + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for body. + */ + com.google.protobuf.ByteString getBodyBytes(); + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestOrBuilder.java new file mode 100644 index 000000000000..6ba35c3e4600 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestOrBuilder.java @@ -0,0 +1,482 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface PullRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.PullRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the PR.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Required. The ID of the PR.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Required. The title of the PR.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Required. The title of the PR.
+   * 
+ * + * string title = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Optional. The body description of the PR.
+   * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The body. + */ + java.lang.String getBody(); + + /** + * + * + *
+   * Optional. The body description of the PR.
+   * 
+ * + * string body = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for body. + */ + com.google.protobuf.ByteString getBodyBytes(); + + /** + * + * + *
+   * Required. The source commit SHA of the head branch.
+   * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The headRef. + */ + java.lang.String getHeadRef(); + + /** + * + * + *
+   * Required. The source commit SHA of the head branch.
+   * 
+ * + * string head_ref = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for headRef. + */ + com.google.protobuf.ByteString getHeadRefBytes(); + + /** + * + * + *
+   * Required. The target commit SHA of the base branch.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseRef. + */ + java.lang.String getBaseRef(); + + /** + * + * + *
+   * Required. The target commit SHA of the base branch.
+   * 
+ * + * string base_ref = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseRef. + */ + com.google.protobuf.ByteString getBaseRefBytes(); + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+   * Output only. When the PR was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. When the PR was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. When the PR was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the PR was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. When the PR was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. When the PR was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the PR was merged.
+   * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the mergeTime field is set. + */ + boolean hasMergeTime(); + + /** + * + * + *
+   * Output only. When the PR was merged.
+   * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The mergeTime. + */ + com.google.protobuf.Timestamp getMergeTime(); + + /** + * + * + *
+   * Output only. When the PR was merged.
+   * 
+ * + * .google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getMergeTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the PR was closed.
+   * 
+ * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the closeTime field is set. + */ + boolean hasCloseTime(); + + /** + * + * + *
+   * Output only. When the PR was closed.
+   * 
+ * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The closeTime. + */ + com.google.protobuf.Timestamp getCloseTime(); + + /** + * + * + *
+   * Output only. When the PR was closed.
+   * 
+ * + * .google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the PR was declined. Only set for SCM providers that
+   * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+   * GitLab, or GitLab Enterprise, where a pull request closed without being
+   * merged is `CLOSED`.
+   * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the declineTime field is set. + */ + boolean hasDeclineTime(); + + /** + * + * + *
+   * Output only. When the PR was declined. Only set for SCM providers that
+   * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+   * GitLab, or GitLab Enterprise, where a pull request closed without being
+   * merged is `CLOSED`.
+   * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The declineTime. + */ + com.google.protobuf.Timestamp getDeclineTime(); + + /** + * + * + *
+   * Output only. When the PR was declined. Only set for SCM providers that
+   * support declining pull requests. Never set for GitHub, GitHub Enterprise,
+   * GitLab, or GitLab Enterprise, where a pull request closed without being
+   * merged is `CLOSED`.
+   * 
+ * + * + * .google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeclineTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The current state of the PR.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current state of the PR.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.developerconnect.v1.PullRequest.State getState(); + + /** + * + * + *
+   * Output only. The mergeability state of the pull request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for mergeability. + */ + int getMergeabilityValue(); + + /** + * + * + *
+   * Output only. The mergeability state of the pull request.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The mergeability. + */ + com.google.cloud.developerconnect.v1.PullRequest.Mergeability getMergeability(); + + /** + * + * + *
+   * Output only. The HTML URL of the pull request on the SCM provider.
+   * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The htmlUrl. + */ + java.lang.String getHtmlUrl(); + + /** + * + * + *
+   * Output only. The HTML URL of the pull request on the SCM provider.
+   * 
+ * + * string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for htmlUrl. + */ + com.google.protobuf.ByteString getHtmlUrlBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewComment.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewComment.java new file mode 100644 index 000000000000..997768e0bc27 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewComment.java @@ -0,0 +1,2517 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * Message representing a SCM Pull Request Review Comment (inline on diff).
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.PullRequestReviewComment} + */ +@com.google.protobuf.Generated +public final class PullRequestReviewComment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.PullRequestReviewComment) + PullRequestReviewCommentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PullRequestReviewComment"); + } + + // Use PullRequestReviewComment.newBuilder() to construct. + private PullRequestReviewComment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PullRequestReviewComment() { + id_ = ""; + body_ = ""; + path_ = ""; + side_ = 0; + author_ = ""; + commitId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.PullRequestReviewComment.class, + com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder.class); + } + + /** + * + * + *
+   * DiffSide represents which side of the diff the comment is on.
+   * 
+ * + * Protobuf enum {@code google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide} + */ + public enum DiffSide implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * DIFF_SIDE_UNSPECIFIED = 0; + */ + DIFF_SIDE_UNSPECIFIED(0), + /** + * + * + *
+     * The side of the diff before changes (deleted or modified lines).
+     * 
+ * + * BASE = 1; + */ + BASE(1), + /** + * + * + *
+     * The side of the diff after changes (added or modified lines).
+     * 
+ * + * HEAD = 2; + */ + HEAD(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DiffSide"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * DIFF_SIDE_UNSPECIFIED = 0; + */ + public static final int DIFF_SIDE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The side of the diff before changes (deleted or modified lines).
+     * 
+ * + * BASE = 1; + */ + public static final int BASE_VALUE = 1; + + /** + * + * + *
+     * The side of the diff after changes (added or modified lines).
+     * 
+ * + * HEAD = 2; + */ + public static final int HEAD_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 DiffSide 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 DiffSide forNumber(int value) { + switch (value) { + case 0: + return DIFF_SIDE_UNSPECIFIED; + case 1: + return BASE; + case 2: + return HEAD; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiffSide findValueByNumber(int number) { + return DiffSide.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DiffSide[] VALUES = values(); + + public static DiffSide 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 DiffSide(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide) + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 BODY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object body_ = ""; + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + @java.lang.Override + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for body. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + * + * + *
+   * Required. The file path to comment on.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The file path to comment on.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIRST_LINE_FIELD_NUMBER = 4; + private int firstLine_ = 0; + + /** + * + * + *
+   * Optional. The first line of the comment range (inclusive). If not
+   * specified, the comment applies only to the `last_line`.
+   * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The firstLine. + */ + @java.lang.Override + public int getFirstLine() { + return firstLine_; + } + + public static final int LAST_LINE_FIELD_NUMBER = 5; + private int lastLine_ = 0; + + /** + * + * + *
+   * Required. The last line of the comment range (inclusive). If `first_line`
+   * is not specified, the comment applies only to this line.
+   * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lastLine. + */ + @java.lang.Override + public int getLastLine() { + return lastLine_; + } + + public static final int SIDE_FIELD_NUMBER = 6; + private int side_ = 0; + + /** + * + * + *
+   * Optional. The side of the diff to comment on. Defaults to HEAD.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for side. + */ + @java.lang.Override + public int getSideValue() { + return side_; + } + + /** + * + * + *
+   * Optional. The side of the diff to comment on. Defaults to HEAD.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The side. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide getSide() { + com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide result = + com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide.forNumber(side_); + return result == null + ? com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide.UNRECOGNIZED + : result; + } + + public static final int AUTHOR_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int COMMIT_ID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitId_ = ""; + + /** + * + * + *
+   * Output only. The commit SHA the comment was actually applied to.
+   * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitId. + */ + @java.lang.Override + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The commit SHA the comment was actually applied to.
+   * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, path_); + } + if (firstLine_ != 0) { + output.writeInt32(4, firstLine_); + } + if (lastLine_ != 0) { + output.writeInt32(5, lastLine_); + } + if (side_ + != com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide + .DIFF_SIDE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, side_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, author_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, commitId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(body_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, body_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, path_); + } + if (firstLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, firstLine_); + } + if (lastLine_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, lastLine_); + } + if (side_ + != com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide + .DIFF_SIDE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, side_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, author_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(commitId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, commitId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.PullRequestReviewComment)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.PullRequestReviewComment other = + (com.google.cloud.developerconnect.v1.PullRequestReviewComment) obj; + + if (!getId().equals(other.getId())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getPath().equals(other.getPath())) return false; + if (getFirstLine() != other.getFirstLine()) return false; + if (getLastLine() != other.getLastLine()) return false; + if (side_ != other.side_) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getCommitId().equals(other.getCommitId())) 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) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + FIRST_LINE_FIELD_NUMBER; + hash = (53 * hash) + getFirstLine(); + hash = (37 * hash) + LAST_LINE_FIELD_NUMBER; + hash = (53 * hash) + getLastLine(); + hash = (37 * hash) + SIDE_FIELD_NUMBER; + hash = (53 * hash) + side_; + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + COMMIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommitId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.developerconnect.v1.PullRequestReviewComment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message representing a SCM Pull Request Review Comment (inline on diff).
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.PullRequestReviewComment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.PullRequestReviewComment) + com.google.cloud.developerconnect.v1.PullRequestReviewCommentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.PullRequestReviewComment.class, + com.google.cloud.developerconnect.v1.PullRequestReviewComment.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.PullRequestReviewComment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + body_ = ""; + path_ = ""; + firstLine_ = 0; + lastLine_ = 0; + side_ = 0; + author_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + commitId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_PullRequestReviewComment_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment + getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment build() { + com.google.cloud.developerconnect.v1.PullRequestReviewComment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment buildPartial() { + com.google.cloud.developerconnect.v1.PullRequestReviewComment result = + new com.google.cloud.developerconnect.v1.PullRequestReviewComment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.developerconnect.v1.PullRequestReviewComment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.body_ = body_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.firstLine_ = firstLine_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastLine_ = lastLine_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.side_ = side_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.author_ = author_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.commitId_ = commitId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.PullRequestReviewComment) { + return mergeFrom((com.google.cloud.developerconnect.v1.PullRequestReviewComment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.PullRequestReviewComment other) { + if (other + == com.google.cloud.developerconnect.v1.PullRequestReviewComment.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getFirstLine() != 0) { + setFirstLine(other.getFirstLine()); + } + if (other.getLastLine() != 0) { + setLastLine(other.getLastLine()); + } + if (other.side_ != 0) { + setSideValue(other.getSideValue()); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getCommitId().isEmpty()) { + commitId_ = other.commitId_; + bitField0_ |= 0x00000200; + 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: + { + body_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + firstLine_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + lastLine_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + side_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + commitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + 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 id_ = ""; + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the comment.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 body_ = ""; + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for body. + */ + public com.google.protobuf.ByteString getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The body to set. + * @return This builder for chaining. + */ + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBody() { + body_ = getDefaultInstance().getBody(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The body of the comment.
+     * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for body to set. + * @return This builder for chaining. + */ + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + + /** + * + * + *
+     * Required. The file path to comment on.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The file path to comment on.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The file path to comment on.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The file path to comment on.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The file path to comment on.
+     * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int firstLine_; + + /** + * + * + *
+     * Optional. The first line of the comment range (inclusive). If not
+     * specified, the comment applies only to the `last_line`.
+     * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The firstLine. + */ + @java.lang.Override + public int getFirstLine() { + return firstLine_; + } + + /** + * + * + *
+     * Optional. The first line of the comment range (inclusive). If not
+     * specified, the comment applies only to the `last_line`.
+     * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The firstLine to set. + * @return This builder for chaining. + */ + public Builder setFirstLine(int value) { + + firstLine_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The first line of the comment range (inclusive). If not
+     * specified, the comment applies only to the `last_line`.
+     * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFirstLine() { + bitField0_ = (bitField0_ & ~0x00000008); + firstLine_ = 0; + onChanged(); + return this; + } + + private int lastLine_; + + /** + * + * + *
+     * Required. The last line of the comment range (inclusive). If `first_line`
+     * is not specified, the comment applies only to this line.
+     * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lastLine. + */ + @java.lang.Override + public int getLastLine() { + return lastLine_; + } + + /** + * + * + *
+     * Required. The last line of the comment range (inclusive). If `first_line`
+     * is not specified, the comment applies only to this line.
+     * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The lastLine to set. + * @return This builder for chaining. + */ + public Builder setLastLine(int value) { + + lastLine_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The last line of the comment range (inclusive). If `first_line`
+     * is not specified, the comment applies only to this line.
+     * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLastLine() { + bitField0_ = (bitField0_ & ~0x00000010); + lastLine_ = 0; + onChanged(); + return this; + } + + private int side_ = 0; + + /** + * + * + *
+     * Optional. The side of the diff to comment on. Defaults to HEAD.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for side. + */ + @java.lang.Override + public int getSideValue() { + return side_; + } + + /** + * + * + *
+     * Optional. The side of the diff to comment on. Defaults to HEAD.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for side to set. + * @return This builder for chaining. + */ + public Builder setSideValue(int value) { + side_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The side of the diff to comment on. Defaults to HEAD.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The side. + */ + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide getSide() { + com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide result = + com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide.forNumber(side_); + return result == null + ? com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The side of the diff to comment on. Defaults to HEAD.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The side to set. + * @return This builder for chaining. + */ + public Builder setSide( + com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + side_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The side of the diff to comment on. Defaults to HEAD.
+     * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSide() { + bitField0_ = (bitField0_ & ~0x00000020); + side_ = 0; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The username of the author.
+     * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. When the comment was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. When the comment was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object commitId_ = ""; + + /** + * + * + *
+     * Output only. The commit SHA the comment was actually applied to.
+     * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitId. + */ + public java.lang.String getCommitId() { + java.lang.Object ref = commitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The commit SHA the comment was actually applied to.
+     * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitId. + */ + public com.google.protobuf.ByteString getCommitIdBytes() { + java.lang.Object ref = commitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The commit SHA the comment was actually applied to.
+     * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The commit SHA the comment was actually applied to.
+     * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommitId() { + commitId_ = getDefaultInstance().getCommitId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The commit SHA the comment was actually applied to.
+     * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for commitId to set. + * @return This builder for chaining. + */ + public Builder setCommitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.PullRequestReviewComment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.PullRequestReviewComment) + private static final com.google.cloud.developerconnect.v1.PullRequestReviewComment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.PullRequestReviewComment(); + } + + public static com.google.cloud.developerconnect.v1.PullRequestReviewComment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PullRequestReviewComment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.PullRequestReviewComment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewCommentOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewCommentOrBuilder.java new file mode 100644 index 000000000000..e0bc7d09f5e3 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/PullRequestReviewCommentOrBuilder.java @@ -0,0 +1,296 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface PullRequestReviewCommentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.PullRequestReviewComment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The ID of the comment.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The body. + */ + java.lang.String getBody(); + + /** + * + * + *
+   * Required. The body of the comment.
+   * 
+ * + * string body = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for body. + */ + com.google.protobuf.ByteString getBodyBytes(); + + /** + * + * + *
+   * Required. The file path to comment on.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + * + * + *
+   * Required. The file path to comment on.
+   * 
+ * + * string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+   * Optional. The first line of the comment range (inclusive). If not
+   * specified, the comment applies only to the `last_line`.
+   * 
+ * + * int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The firstLine. + */ + int getFirstLine(); + + /** + * + * + *
+   * Required. The last line of the comment range (inclusive). If `first_line`
+   * is not specified, the comment applies only to this line.
+   * 
+ * + * int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The lastLine. + */ + int getLastLine(); + + /** + * + * + *
+   * Optional. The side of the diff to comment on. Defaults to HEAD.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for side. + */ + int getSideValue(); + + /** + * + * + *
+   * Optional. The side of the diff to comment on. Defaults to HEAD.
+   * 
+ * + * + * .google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The side. + */ + com.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide getSide(); + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+   * Output only. The username of the author.
+   * 
+ * + * string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. When the comment was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. When the comment was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The commit SHA the comment was actually applied to.
+   * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The commitId. + */ + java.lang.String getCommitId(); + + /** + * + * + *
+   * Output only. The commit SHA the comment was actually applied to.
+   * 
+ * + * string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for commitId. + */ + com.google.protobuf.ByteString getCommitIdBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommit.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommit.java new file mode 100644 index 000000000000..081f3da4aef2 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommit.java @@ -0,0 +1,1639 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +/** + * + * + *
+ * SCMCommit represents commit metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.SCMCommit} + */ +@com.google.protobuf.Generated +public final class SCMCommit extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.developerconnect.v1.SCMCommit) + SCMCommitOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SCMCommit"); + } + + // Use SCMCommit.newBuilder() to construct. + private SCMCommit(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SCMCommit() { + sha_ = ""; + message_ = ""; + author_ = ""; + authorEmail_ = ""; + url_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_SCMCommit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_SCMCommit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.SCMCommit.class, + com.google.cloud.developerconnect.v1.SCMCommit.Builder.class); + } + + private int bitField0_; + public static final int SHA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sha_ = ""; + + /** + * + * + *
+   * Full 40-character SCM commit SHA.
+   * 
+ * + * string sha = 1; + * + * @return The sha. + */ + @java.lang.Override + public java.lang.String getSha() { + java.lang.Object ref = sha_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sha_ = s; + return s; + } + } + + /** + * + * + *
+   * Full 40-character SCM commit SHA.
+   * 
+ * + * string sha = 1; + * + * @return The bytes for sha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShaBytes() { + java.lang.Object ref = sha_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Commit message text.
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Commit message text.
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+   * The author's display name.
+   * 
+ * + * string author = 3; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+   * The author's display name.
+   * 
+ * + * string author = 3; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_EMAIL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object authorEmail_ = ""; + + /** + * + * + *
+   * The author's email address.
+   * 
+ * + * string author_email = 4; + * + * @return The authorEmail. + */ + @java.lang.Override + public java.lang.String getAuthorEmail() { + java.lang.Object ref = authorEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorEmail_ = s; + return s; + } + } + + /** + * + * + *
+   * The author's email address.
+   * 
+ * + * string author_email = 4; + * + * @return The bytes for authorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorEmailBytes() { + java.lang.Object ref = authorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp commitTime_; + + /** + * + * + *
+   * Timestamp when the commit was authored.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + * + * @return Whether the commitTime field is set. + */ + @java.lang.Override + public boolean hasCommitTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Timestamp when the commit was authored.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + * + * @return The commitTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCommitTime() { + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + } + + /** + * + * + *
+   * Timestamp when the commit was authored.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + } + + public static final int URL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
+   * The SCM provider's HTML URL link for this commit.
+   * 
+ * + * string url = 6; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
+   * The SCM provider's HTML URL link for this commit.
+   * 
+ * + * string url = 6; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sha_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sha_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, author_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, authorEmail_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCommitTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sha_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sha_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, author_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, authorEmail_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommitTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.developerconnect.v1.SCMCommit)) { + return super.equals(obj); + } + com.google.cloud.developerconnect.v1.SCMCommit other = + (com.google.cloud.developerconnect.v1.SCMCommit) obj; + + if (!getSha().equals(other.getSha())) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (!getAuthorEmail().equals(other.getAuthorEmail())) return false; + if (hasCommitTime() != other.hasCommitTime()) return false; + if (hasCommitTime()) { + if (!getCommitTime().equals(other.getCommitTime())) return false; + } + if (!getUrl().equals(other.getUrl())) 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) + SHA_FIELD_NUMBER; + hash = (53 * hash) + getSha().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + hash = (37 * hash) + AUTHOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorEmail().hashCode(); + if (hasCommitTime()) { + hash = (37 * hash) + COMMIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCommitTime().hashCode(); + } + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.developerconnect.v1.SCMCommit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * SCMCommit represents commit metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.developerconnect.v1.SCMCommit} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.developerconnect.v1.SCMCommit) + com.google.cloud.developerconnect.v1.SCMCommitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_SCMCommit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_SCMCommit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.developerconnect.v1.SCMCommit.class, + com.google.cloud.developerconnect.v1.SCMCommit.Builder.class); + } + + // Construct using com.google.cloud.developerconnect.v1.SCMCommit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCommitTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sha_ = ""; + message_ = ""; + author_ = ""; + authorEmail_ = ""; + commitTime_ = null; + if (commitTimeBuilder_ != null) { + commitTimeBuilder_.dispose(); + commitTimeBuilder_ = null; + } + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.developerconnect.v1.DeveloperConnectProto + .internal_static_google_cloud_developerconnect_v1_SCMCommit_descriptor; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit getDefaultInstanceForType() { + return com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit build() { + com.google.cloud.developerconnect.v1.SCMCommit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit buildPartial() { + com.google.cloud.developerconnect.v1.SCMCommit result = + new com.google.cloud.developerconnect.v1.SCMCommit(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.developerconnect.v1.SCMCommit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sha_ = sha_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.author_ = author_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorEmail_ = authorEmail_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.url_ = url_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.developerconnect.v1.SCMCommit) { + return mergeFrom((com.google.cloud.developerconnect.v1.SCMCommit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.developerconnect.v1.SCMCommit other) { + if (other == com.google.cloud.developerconnect.v1.SCMCommit.getDefaultInstance()) return this; + if (!other.getSha().isEmpty()) { + sha_ = other.sha_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAuthorEmail().isEmpty()) { + authorEmail_ = other.authorEmail_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCommitTime()) { + mergeCommitTime(other.getCommitTime()); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + 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: + { + sha_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + authorEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + url_ = 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 java.lang.Object sha_ = ""; + + /** + * + * + *
+     * Full 40-character SCM commit SHA.
+     * 
+ * + * string sha = 1; + * + * @return The sha. + */ + public java.lang.String getSha() { + java.lang.Object ref = sha_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sha_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Full 40-character SCM commit SHA.
+     * 
+ * + * string sha = 1; + * + * @return The bytes for sha. + */ + public com.google.protobuf.ByteString getShaBytes() { + java.lang.Object ref = sha_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sha_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Full 40-character SCM commit SHA.
+     * 
+ * + * string sha = 1; + * + * @param value The sha to set. + * @return This builder for chaining. + */ + public Builder setSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sha_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Full 40-character SCM commit SHA.
+     * 
+ * + * string sha = 1; + * + * @return This builder for chaining. + */ + public Builder clearSha() { + sha_ = getDefaultInstance().getSha(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Full 40-character SCM commit SHA.
+     * 
+ * + * string sha = 1; + * + * @param value The bytes for sha to set. + * @return This builder for chaining. + */ + public Builder setShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Commit message text.
+     * 
+ * + * string message = 2; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Commit message text.
+     * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Commit message text.
+     * 
+ * + * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Commit message text.
+     * 
+ * + * string message = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Commit message text.
+     * 
+ * + * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + + /** + * + * + *
+     * The author's display name.
+     * 
+ * + * string author = 3; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The author's display name.
+     * 
+ * + * string author = 3; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The author's display name.
+     * 
+ * + * string author = 3; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The author's display name.
+     * 
+ * + * string author = 3; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The author's display name.
+     * 
+ * + * string author = 3; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object authorEmail_ = ""; + + /** + * + * + *
+     * The author's email address.
+     * 
+ * + * string author_email = 4; + * + * @return The authorEmail. + */ + public java.lang.String getAuthorEmail() { + java.lang.Object ref = authorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The author's email address.
+     * 
+ * + * string author_email = 4; + * + * @return The bytes for authorEmail. + */ + public com.google.protobuf.ByteString getAuthorEmailBytes() { + java.lang.Object ref = authorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The author's email address.
+     * 
+ * + * string author_email = 4; + * + * @param value The authorEmail to set. + * @return This builder for chaining. + */ + public Builder setAuthorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authorEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The author's email address.
+     * 
+ * + * string author_email = 4; + * + * @return This builder for chaining. + */ + public Builder clearAuthorEmail() { + authorEmail_ = getDefaultInstance().getAuthorEmail(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The author's email address.
+     * 
+ * + * string author_email = 4; + * + * @param value The bytes for authorEmail to set. + * @return This builder for chaining. + */ + public Builder setAuthorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp commitTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + * + * @return Whether the commitTime field is set. + */ + public boolean hasCommitTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + * + * @return The commitTime. + */ + public com.google.protobuf.Timestamp getCommitTime() { + if (commitTimeBuilder_ == null) { + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; + } else { + return commitTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + public Builder setCommitTime(com.google.protobuf.Timestamp value) { + if (commitTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commitTime_ = value; + } else { + commitTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (commitTimeBuilder_ == null) { + commitTime_ = builderForValue.build(); + } else { + commitTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { + if (commitTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && commitTime_ != null + && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCommitTimeBuilder().mergeFrom(value); + } else { + commitTime_ = value; + } + } else { + commitTimeBuilder_.mergeFrom(value); + } + if (commitTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + public Builder clearCommitTime() { + bitField0_ = (bitField0_ & ~0x00000010); + commitTime_ = null; + if (commitTimeBuilder_ != null) { + commitTimeBuilder_.dispose(); + commitTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCommitTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { + if (commitTimeBuilder_ != null) { + return commitTimeBuilder_.getMessageOrBuilder(); + } else { + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; + } + } + + /** + * + * + *
+     * Timestamp when the commit was authored.
+     * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCommitTimeFieldBuilder() { + if (commitTimeBuilder_ == null) { + commitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), getParentForChildren(), isClean()); + commitTime_ = null; + } + return commitTimeBuilder_; + } + + private java.lang.Object url_ = ""; + + /** + * + * + *
+     * The SCM provider's HTML URL link for this commit.
+     * 
+ * + * string url = 6; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The SCM provider's HTML URL link for this commit.
+     * 
+ * + * string url = 6; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The SCM provider's HTML URL link for this commit.
+     * 
+ * + * string url = 6; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The SCM provider's HTML URL link for this commit.
+     * 
+ * + * string url = 6; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * The SCM provider's HTML URL link for this commit.
+     * 
+ * + * string url = 6; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.developerconnect.v1.SCMCommit) + } + + // @@protoc_insertion_point(class_scope:google.cloud.developerconnect.v1.SCMCommit) + private static final com.google.cloud.developerconnect.v1.SCMCommit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.developerconnect.v1.SCMCommit(); + } + + public static com.google.cloud.developerconnect.v1.SCMCommit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SCMCommit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.developerconnect.v1.SCMCommit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommitOrBuilder.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommitOrBuilder.java new file mode 100644 index 000000000000..c0c01e50bf74 --- /dev/null +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SCMCommitOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/developerconnect/v1/developer_connect.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.developerconnect.v1; + +@com.google.protobuf.Generated +public interface SCMCommitOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.developerconnect.v1.SCMCommit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Full 40-character SCM commit SHA.
+   * 
+ * + * string sha = 1; + * + * @return The sha. + */ + java.lang.String getSha(); + + /** + * + * + *
+   * Full 40-character SCM commit SHA.
+   * 
+ * + * string sha = 1; + * + * @return The bytes for sha. + */ + com.google.protobuf.ByteString getShaBytes(); + + /** + * + * + *
+   * Commit message text.
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Commit message text.
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * The author's display name.
+   * 
+ * + * string author = 3; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+   * The author's display name.
+   * 
+ * + * string author = 3; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+   * The author's email address.
+   * 
+ * + * string author_email = 4; + * + * @return The authorEmail. + */ + java.lang.String getAuthorEmail(); + + /** + * + * + *
+   * The author's email address.
+   * 
+ * + * string author_email = 4; + * + * @return The bytes for authorEmail. + */ + com.google.protobuf.ByteString getAuthorEmailBytes(); + + /** + * + * + *
+   * Timestamp when the commit was authored.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + * + * @return Whether the commitTime field is set. + */ + boolean hasCommitTime(); + + /** + * + * + *
+   * Timestamp when the commit was authored.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + * + * @return The commitTime. + */ + com.google.protobuf.Timestamp getCommitTime(); + + /** + * + * + *
+   * Timestamp when the commit was authored.
+   * 
+ * + * .google.protobuf.Timestamp commit_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); + + /** + * + * + *
+   * The SCM provider's HTML URL link for this commit.
+   * 
+ * + * string url = 6; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
+   * The SCM provider's HTML URL link for this commit.
+   * 
+ * + * string url = 6; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); +} diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SystemProvider.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SystemProvider.java index e19300a2116e..7c8128e1bfa4 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SystemProvider.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/SystemProvider.java @@ -330,7 +330,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.developerconnect.v1.DeveloperConnectProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final SystemProvider[] VALUES = values(); diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto index c6ba5f05708d..7675e0f0c7e3 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/proto/google/cloud/developerconnect/v1/developer_connect.proto @@ -186,6 +186,17 @@ service DeveloperConnect { option (google.api.method_signature) = "git_repository_link"; } + // Opens a Pull Request in the remote SCM repository associated with a + // GitRepositoryLink. + rpc OpenGitRepositoryLinkPullRequest(OpenGitRepositoryLinkPullRequestRequest) + returns (PullRequest) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:openPullRequest" + body: "*" + }; + option (google.api.method_signature) = "name,pull_request"; + } + // FetchLinkableGitRepositories returns a list of git repositories from an SCM // that are available to be added to a Connection. rpc FetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest) @@ -216,6 +227,94 @@ service DeveloperConnect { option (google.api.method_signature) = "git_repository_link,ref_type"; } + // Diff commits for a GitRepositoryLink. + rpc DiffGitRepositoryLinkCommit(DiffGitRepositoryLinkCommitRequest) + returns (DiffGitRepositoryLinkCommitResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:diffCommit" + }; + option (google.api.method_signature) = "name,base_sha,head_sha"; + } + + // Fetch Commit details from a Git repository link. + rpc FetchGitRepositoryLinkCommit(FetchGitRepositoryLinkCommitRequest) + returns (FetchGitRepositoryLinkCommitResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchCommit" + }; + option (google.api.method_signature) = "name,commit_sha"; + } + + // Fetch a list of Commits from a Git repository link. + rpc FetchGitRepositoryLinkCommitList(FetchGitRepositoryLinkCommitListRequest) + returns (FetchGitRepositoryLinkCommitListResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchCommitList" + }; + option (google.api.method_signature) = "name,ref"; + } + + // Fetches blame information for a file or line range in a file. + rpc FetchGitRepositoryLinkFileBlame(FetchGitRepositoryLinkFileBlameRequest) + returns (FetchGitRepositoryLinkFileBlameResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchFileBlame" + }; + option (google.api.method_signature) = "name,ref,path"; + } + + // Fetch Pull Request details from a Git repository link. + rpc FetchGitRepositoryLinkPullRequest( + FetchGitRepositoryLinkPullRequestRequest) returns (PullRequest) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchPullRequest" + }; + option (google.api.method_signature) = "name,pull_request_id"; + } + + // Add a comment to a Pull Request. + rpc AddGitRepositoryLinkPullRequestComment( + AddGitRepositoryLinkPullRequestCommentRequest) + returns (PullRequestComment) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:addPullRequestComment" + body: "*" + }; + option (google.api.method_signature) = "name,pull_request_id,comment"; + } + + // Add a review comment (inline on diff) to a Pull Request. + rpc AddGitRepositoryLinkPullRequestReviewComment( + AddGitRepositoryLinkPullRequestReviewCommentRequest) + returns (PullRequestReviewComment) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:addPullRequestReviewComment" + body: "*" + }; + option (google.api.method_signature) = "name,pull_request_id,comment"; + } + + // Modifies a Pull Request in the remote SCM repository associated with a + // GitRepositoryLink. + rpc ModifyGitRepositoryLinkPullRequest( + ModifyGitRepositoryLinkPullRequestRequest) returns (PullRequest) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:modifyPullRequest" + body: "*" + }; + option (google.api.method_signature) = "name,pull_request_id"; + } + + // Fetches a list of Pull Requests from the remote repository. + rpc FetchGitRepositoryLinkPullRequestList( + FetchGitRepositoryLinkPullRequestListRequest) + returns (FetchGitRepositoryLinkPullRequestListResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchPullRequestList" + }; + option (google.api.method_signature) = "name"; + } + // Lists AccountConnectors in a given project and location. rpc ListAccountConnectors(ListAccountConnectorsRequest) returns (ListAccountConnectorsResponse) { @@ -343,6 +442,18 @@ service DeveloperConnect { } } +// The level of commit details to return in the response. +enum CommitView { + // Unspecified, defaults to BASIC. + COMMIT_VIEW_UNSPECIFIED = 0; + + // Basic view, returns commit metadata but no file diffs. + BASIC = 1; + + // Full view, returns commit metadata and file diffs. + FULL = 2; +} + // SystemProvider is a list of providers that are owned by Developer Connect. enum SystemProvider { // No system provider specified. @@ -1415,6 +1526,49 @@ message FetchAccessTokenResponse { ExchangeError exchange_error = 4; } +// Request message for DiffGitRepositoryLinkCommit. +message DiffGitRepositoryLinkCommitRequest { + // Required. The resource name of the GitRepositoryLink. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The base commit SHA or ref. + string base_sha = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The head commit SHA or ref. + string head_sha = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Path patterns or exact paths to filter returned files. + // When `path_filters` is specified, `FileDiff.patch` is populated for all + // matching files (use `["**"]` to include patches for all changed files). + // When `path_filters` is omitted or empty, the full list of `FileDiff` is + // returned without patch diffs (`FileDiff.patch` is empty). + repeated string path_filters = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for DiffGitRepositoryLinkCommit. +message DiffGitRepositoryLinkCommitResponse { + // The file diff extracted from the unified diff. + repeated FileDiff files = 2; +} + +// Message for a file diff. +message FileDiff { + // Relative path to the file in the repository. + string path = 1; + + // Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED". + string status = 2; + + // Standard unified diff patch hunk for the file. Only populated when + // `path_filters` is specified in the request; otherwise empty. + string patch = 3; +} + // Message for starting an OAuth flow. message StartOAuthRequest { // Required. The resource name of the AccountConnector in the format @@ -1752,6 +1906,22 @@ message FetchReadWriteTokenResponse { string git_username = 3; } +// Message for opening SCM Pull Request. +message OpenGitRepositoryLinkPullRequestRequest { + // Required. The GitRepositoryLink resource name in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The Pull Request details to open. + // Input fields used: title, body, head_ref, base_ref. + PullRequest pull_request = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request message for FetchLinkableGitRepositoriesRequest. message FetchLinkableGitRepositoriesRequest { // Required. The name of the Connection. @@ -1859,6 +2029,452 @@ message FetchGitRefsResponse { string next_page_token = 2; } +// Request message for FetchGitRepositoryLinkCommit. +message FetchGitRepositoryLinkCommitRequest { + // Required. The resource name of the GitRepositoryLink in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or + // Git reference). + string commit_sha = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The level of commit details to return in the response. + // Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths + // and statuses) are returned; `path_filters` must also be specified to + // populate line patch hunks. + CommitView view = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Path patterns or exact paths to filter returned files (only + // applicable in `FULL` view). + // When `path_filters` is specified, `FileDiff.patch` is populated for all + // matching files (use `["**"]` to include patches for all changed files). + // When `path_filters` is omitted or empty, the full list of `FileDiff` is + // returned without patch diffs (`FileDiff.patch` is empty). + repeated string path_filters = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for FetchGitRepositoryLinkCommit. +message FetchGitRepositoryLinkCommitResponse { + // The commit metadata. + SCMCommit commit = 1; + + // List of file changes and patch diffs. Omitted when view is `BASIC`. + // Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is + // specified in the request. + repeated FileDiff files = 2; +} + +// Request message for FetchGitRepositoryLinkCommitList. +message FetchGitRepositoryLinkCommitListRequest { + // Required. The resource name of the GitRepositoryLink in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or + // Git reference) from which to start listing commits. + string ref = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of results to return in the list. Default is 50. Max is + // 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all other parameters provided to + // `FetchGitRepositoryLinkCommitList` must match the call that provided the + // page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The level of commit details to return in the response. + // Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to + // `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file + // diffs for a single commit. + CommitView view = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for FetchGitRepositoryLinkCommitList. +message FetchGitRepositoryLinkCommitListResponse { + // The list of commit metadata. + repeated SCMCommit commits = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// SCMCommit represents commit metadata. +message SCMCommit { + // Full 40-character SCM commit SHA. + string sha = 1; + + // Commit message text. + string message = 2; + + // The author's display name. + string author = 3; + + // The author's email address. + string author_email = 4; + + // Timestamp when the commit was authored. + google.protobuf.Timestamp commit_time = 5; + + // The SCM provider's HTML URL link for this commit. + string url = 6; +} + +// Request message for FetchGitRepositoryLinkFileBlame. +message FetchGitRepositoryLinkFileBlameRequest { + // Required. The resource name of the GitRepositoryLink in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) + // from which to fetch the blame. + string ref = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The file path within the repository. + string path = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The 1-indexed starting line number of the range to blame + // (inclusive). If not specified, blame begins at line 1. + int32 first_line = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The 1-indexed ending line number of the range to blame + // (inclusive). If not specified, blame extends to the end of the file. + int32 last_line = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// BlameRange represents blame information for a range of lines. +message BlameRange { + // The 1-indexed starting line number of the range (inclusive). + int32 first_line = 1; + + // The 1-indexed ending line number of the range (inclusive). + int32 last_line = 2; + + // The commit metadata for this line range. + SCMCommit commit = 3; +} + +// Response message for FetchGitRepositoryLinkFileBlame. +message FetchGitRepositoryLinkFileBlameResponse { + // The list of blame ranges for the file. + repeated BlameRange ranges = 1; +} + +// Request message for FetchGitRepositoryLinkPullRequest. +message FetchGitRepositoryLinkPullRequestRequest { + // Required. The resource name of the GitRepositoryLink in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The ID of the Pull Request. + string pull_request_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message representing a SCM Pull Request. +message PullRequest { + // The state of the PR. + enum State { + // Default value. + STATE_UNSPECIFIED = 0; + + // The PR is open. + OPEN = 1; + + // The PR is closed. + CLOSED = 2; + + // The PR is merged. + MERGED = 3; + + // The PR is declined. Only used by SCM providers that support declining + // pull requests. Never used for GitHub, GitHub Enterprise, GitLab, or + // GitLab Enterprise, where a pull request closed without being merged is + // `CLOSED`. + DECLINED = 4; + } + + // The mergeability state of a pull request. + enum Mergeability { + // Mergeability state is unspecified. + MERGEABILITY_UNSPECIFIED = 0; + + // The pull request can be merged cleanly without Git conflicts. + MERGEABLE = 1; + + // The pull request has merge conflicts and cannot be merged cleanly. + CONFLICTING = 2; + + // The mergeability state is currently being computed asynchronously + // by the upstream SCM provider. + COMPUTING = 3; + } + + // Required. The ID of the PR. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The title of the PR. + string title = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The body description of the PR. + string body = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The source commit SHA of the head branch. + string head_ref = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target commit SHA of the base branch. + string base_ref = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The username of the author. + string author = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the PR was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the PR was updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the PR was merged. + google.protobuf.Timestamp merge_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the PR was closed. + google.protobuf.Timestamp close_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the PR was declined. Only set for SCM providers that + // support declining pull requests. Never set for GitHub, GitHub Enterprise, + // GitLab, or GitLab Enterprise, where a pull request closed without being + // merged is `CLOSED`. + google.protobuf.Timestamp decline_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the PR. + State state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The mergeability state of the pull request. + Mergeability mergeability = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The HTML URL of the pull request on the SCM provider. + string html_url = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message representing a SCM Pull Request Comment. +message PullRequestComment { + // Output only. The ID of the comment. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The body of the comment. + string body = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The username of the author. + string author = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the comment was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the comment was updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for AddGitRepositoryLinkPullRequestComment. +message AddGitRepositoryLinkPullRequestCommentRequest { + // Required. The resource name of the GitRepositoryLink in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The ID of the Pull Request. + string pull_request_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The comment to add. + PullRequestComment comment = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message representing a SCM Pull Request Review Comment (inline on diff). +message PullRequestReviewComment { + // DiffSide represents which side of the diff the comment is on. + enum DiffSide { + // Default value. This value is unused. + DIFF_SIDE_UNSPECIFIED = 0; + + // The side of the diff before changes (deleted or modified lines). + BASE = 1; + + // The side of the diff after changes (added or modified lines). + HEAD = 2; + } + + // Output only. The ID of the comment. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The body of the comment. + string body = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The file path to comment on. + string path = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The first line of the comment range (inclusive). If not + // specified, the comment applies only to the `last_line`. + int32 first_line = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The last line of the comment range (inclusive). If `first_line` + // is not specified, the comment applies only to this line. + int32 last_line = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The side of the diff to comment on. Defaults to HEAD. + DiffSide side = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The username of the author. + string author = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the comment was created. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the comment was updated. + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The commit SHA the comment was actually applied to. + string commit_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for AddGitRepositoryLinkPullRequestReviewComment. +message AddGitRepositoryLinkPullRequestReviewCommentRequest { + // Required. The resource name of the GitRepositoryLink in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The ID of the Pull Request. + string pull_request_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The review comment to add. + PullRequestReviewComment comment = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The commit SHA to comment on. If not specified, defaults to the + // HEAD commit of the Pull Request. + string commit_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for modifying SCM Pull Request. +message ModifyGitRepositoryLinkPullRequestRequest { + // State represents the state of the pull request. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The pull request is open. + OPEN = 1; + + // The pull request is closed. + CLOSED = 2; + } + + // Required. The GitRepositoryLink resource name in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. The SCM-specific Pull Request identifier (e.g., "45"). + string pull_request_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The title of the Pull Request. + string title = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The body description of the Pull Request. + string body = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The target branch to merge into. + string base_ref = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The state of the Pull Request. + State state = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for FetchGitRepositoryLinkPullRequestList. +message FetchGitRepositoryLinkPullRequestListRequest { + // Required. The GitRepositoryLink resource name in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Optional. A filter expression that filters the pull requests returned in + // the response. Only a single equality comparison on `state` is supported, + // for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and + // `MERGED`. `DECLINED` is only supported for SCM providers that support + // declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub + // Enterprise, GitLab, and GitLab Enterprise. Other values or expressions + // return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of results to return in the list. Default is 20. Max is + // 100. A page may contain fewer than `page_size` results even when more + // results are available; use `next_page_token` to check for more pages. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the + // subsequent page. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for FetchGitRepositoryLinkPullRequestList. +message FetchGitRepositoryLinkPullRequestListResponse { + // The list of Pull Requests. + repeated PullRequest pull_requests = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // AccountConnector encapsulates what a platform administrator needs to // configure for users to connect to the service providers, which includes, // among other fields, the OAuth client ID, client secret, and authorization and diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/AsyncAddGitRepositoryLinkPullRequestComment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/AsyncAddGitRepositoryLinkPullRequestComment.java new file mode 100644 index 000000000000..f334398c0c16 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/AsyncAddGitRepositoryLinkPullRequestComment.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestComment; + +public class AsyncAddGitRepositoryLinkPullRequestComment { + + public static void main(String[] args) throws Exception { + asyncAddGitRepositoryLinkPullRequestComment(); + } + + public static void asyncAddGitRepositoryLinkPullRequestComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + AddGitRepositoryLinkPullRequestCommentRequest request = + AddGitRepositoryLinkPullRequestCommentRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .setComment(PullRequestComment.newBuilder().build()) + .build(); + ApiFuture future = + developerConnectClient + .addGitRepositoryLinkPullRequestCommentCallable() + .futureCall(request); + // Do something. + PullRequestComment response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestComment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestComment.java new file mode 100644 index 000000000000..fbfa03c90f92 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestComment.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_sync] +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestComment; + +public class SyncAddGitRepositoryLinkPullRequestComment { + + public static void main(String[] args) throws Exception { + syncAddGitRepositoryLinkPullRequestComment(); + } + + public static void syncAddGitRepositoryLinkPullRequestComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + AddGitRepositoryLinkPullRequestCommentRequest request = + AddGitRepositoryLinkPullRequestCommentRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .setComment(PullRequestComment.newBuilder().build()) + .build(); + PullRequestComment response = + developerConnectClient.addGitRepositoryLinkPullRequestComment(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment.java new file mode 100644 index 000000000000..17f72c07ba9d --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_GitrepositorylinknameStringPullrequestcomment_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestComment; + +public +class SyncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment { + + public static void main(String[] args) throws Exception { + syncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment(); + } + + public static void + syncAddGitRepositoryLinkPullRequestCommentGitrepositorylinknameStringPullrequestcomment() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + PullRequestComment response = + developerConnectClient.addGitRepositoryLinkPullRequestComment( + name, pullRequestId, comment); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_GitrepositorylinknameStringPullrequestcomment_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment.java new file mode 100644 index 000000000000..1d78b4074f7b --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestcomment/SyncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_StringStringPullrequestcomment_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestComment; + +public class SyncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment { + + public static void main(String[] args) throws Exception { + syncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment(); + } + + public static void syncAddGitRepositoryLinkPullRequestCommentStringStringPullrequestcomment() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String pullRequestId = "pullRequestId1573471045"; + PullRequestComment comment = PullRequestComment.newBuilder().build(); + PullRequestComment response = + developerConnectClient.addGitRepositoryLinkPullRequestComment( + name, pullRequestId, comment); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestComment_StringStringPullrequestcomment_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/AsyncAddGitRepositoryLinkPullRequestReviewComment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/AsyncAddGitRepositoryLinkPullRequestReviewComment.java new file mode 100644 index 000000000000..e56b6fc22323 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/AsyncAddGitRepositoryLinkPullRequestReviewComment.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; + +public class AsyncAddGitRepositoryLinkPullRequestReviewComment { + + public static void main(String[] args) throws Exception { + asyncAddGitRepositoryLinkPullRequestReviewComment(); + } + + public static void asyncAddGitRepositoryLinkPullRequestReviewComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + AddGitRepositoryLinkPullRequestReviewCommentRequest request = + AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .setComment(PullRequestReviewComment.newBuilder().build()) + .setCommitId("commitId-602292046") + .build(); + ApiFuture future = + developerConnectClient + .addGitRepositoryLinkPullRequestReviewCommentCallable() + .futureCall(request); + // Do something. + PullRequestReviewComment response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewComment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewComment.java new file mode 100644 index 000000000000..f1edfc92a10e --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewComment.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_sync] +import com.google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; + +public class SyncAddGitRepositoryLinkPullRequestReviewComment { + + public static void main(String[] args) throws Exception { + syncAddGitRepositoryLinkPullRequestReviewComment(); + } + + public static void syncAddGitRepositoryLinkPullRequestReviewComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + AddGitRepositoryLinkPullRequestReviewCommentRequest request = + AddGitRepositoryLinkPullRequestReviewCommentRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .setComment(PullRequestReviewComment.newBuilder().build()) + .setCommitId("commitId-602292046") + .build(); + PullRequestReviewComment response = + developerConnectClient.addGitRepositoryLinkPullRequestReviewComment(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment.java new file mode 100644 index 000000000000..237f88cbe8f7 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_GitrepositorylinknameStringPullrequestreviewcomment_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; + +public +class SyncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment { + + public static void main(String[] args) throws Exception { + syncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment(); + } + + public static void + syncAddGitRepositoryLinkPullRequestReviewCommentGitrepositorylinknameStringPullrequestreviewcomment() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + PullRequestReviewComment response = + developerConnectClient.addGitRepositoryLinkPullRequestReviewComment( + name, pullRequestId, comment); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_GitrepositorylinknameStringPullrequestreviewcomment_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment.java new file mode 100644 index 000000000000..15bca712e290 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/addgitrepositorylinkpullrequestreviewcomment/SyncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_StringStringPullrequestreviewcomment_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequestReviewComment; + +public class SyncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment { + + public static void main(String[] args) throws Exception { + syncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment(); + } + + public static void + syncAddGitRepositoryLinkPullRequestReviewCommentStringStringPullrequestreviewcomment() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String pullRequestId = "pullRequestId1573471045"; + PullRequestReviewComment comment = PullRequestReviewComment.newBuilder().build(); + PullRequestReviewComment response = + developerConnectClient.addGitRepositoryLinkPullRequestReviewComment( + name, pullRequestId, comment); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_AddGitRepositoryLinkPullRequestReviewComment_StringStringPullrequestreviewcomment_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/AsyncDiffGitRepositoryLinkCommit.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/AsyncDiffGitRepositoryLinkCommit.java new file mode 100644 index 000000000000..52725440deb9 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/AsyncDiffGitRepositoryLinkCommit.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import java.util.ArrayList; + +public class AsyncDiffGitRepositoryLinkCommit { + + public static void main(String[] args) throws Exception { + asyncDiffGitRepositoryLinkCommit(); + } + + public static void asyncDiffGitRepositoryLinkCommit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + DiffGitRepositoryLinkCommitRequest request = + DiffGitRepositoryLinkCommitRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setBaseSha("baseSha-332627941") + .setHeadSha("headSha795290284") + .addAllPathFilters(new ArrayList()) + .build(); + ApiFuture future = + developerConnectClient.diffGitRepositoryLinkCommitCallable().futureCall(request); + // Do something. + DiffGitRepositoryLinkCommitResponse response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommit.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommit.java new file mode 100644 index 000000000000..05f3f4c947d1 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommit.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import java.util.ArrayList; + +public class SyncDiffGitRepositoryLinkCommit { + + public static void main(String[] args) throws Exception { + syncDiffGitRepositoryLinkCommit(); + } + + public static void syncDiffGitRepositoryLinkCommit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + DiffGitRepositoryLinkCommitRequest request = + DiffGitRepositoryLinkCommitRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setBaseSha("baseSha-332627941") + .setHeadSha("headSha795290284") + .addAllPathFilters(new ArrayList()) + .build(); + DiffGitRepositoryLinkCommitResponse response = + developerConnectClient.diffGitRepositoryLinkCommit(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString.java new file mode 100644 index 000000000000..6fcc75367540 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_GitrepositorylinknameStringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString { + + public static void main(String[] args) throws Exception { + syncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString(); + } + + public static void syncDiffGitRepositoryLinkCommitGitrepositorylinknameStringString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + DiffGitRepositoryLinkCommitResponse response = + developerConnectClient.diffGitRepositoryLinkCommit(name, baseSha, headSha); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_GitrepositorylinknameStringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitStringStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitStringStringString.java new file mode 100644 index 000000000000..12fa355d5b53 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/diffgitrepositorylinkcommit/SyncDiffGitRepositoryLinkCommitStringStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_StringStringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncDiffGitRepositoryLinkCommitStringStringString { + + public static void main(String[] args) throws Exception { + syncDiffGitRepositoryLinkCommitStringStringString(); + } + + public static void syncDiffGitRepositoryLinkCommitStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String baseSha = "baseSha-332627941"; + String headSha = "headSha795290284"; + DiffGitRepositoryLinkCommitResponse response = + developerConnectClient.diffGitRepositoryLinkCommit(name, baseSha, headSha); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_DiffGitRepositoryLinkCommit_StringStringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/AsyncFetchGitRepositoryLinkCommit.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/AsyncFetchGitRepositoryLinkCommit.java new file mode 100644 index 000000000000..bf0b7c3dc59b --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/AsyncFetchGitRepositoryLinkCommit.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.CommitView; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import java.util.ArrayList; + +public class AsyncFetchGitRepositoryLinkCommit { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkCommit(); + } + + public static void asyncFetchGitRepositoryLinkCommit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkCommitRequest request = + FetchGitRepositoryLinkCommitRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setCommitSha("commitSha-1491174411") + .setView(CommitView.forNumber(0)) + .addAllPathFilters(new ArrayList()) + .build(); + ApiFuture future = + developerConnectClient.fetchGitRepositoryLinkCommitCallable().futureCall(request); + // Do something. + FetchGitRepositoryLinkCommitResponse response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommit.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommit.java new file mode 100644 index 000000000000..5b4baf881e20 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommit.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_sync] +import com.google.cloud.developerconnect.v1.CommitView; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import java.util.ArrayList; + +public class SyncFetchGitRepositoryLinkCommit { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkCommit(); + } + + public static void syncFetchGitRepositoryLinkCommit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkCommitRequest request = + FetchGitRepositoryLinkCommitRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setCommitSha("commitSha-1491174411") + .setView(CommitView.forNumber(0)) + .addAllPathFilters(new ArrayList()) + .build(); + FetchGitRepositoryLinkCommitResponse response = + developerConnectClient.fetchGitRepositoryLinkCommit(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitGitrepositorylinknameString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitGitrepositorylinknameString.java new file mode 100644 index 000000000000..f01bb576c833 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitGitrepositorylinknameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_GitrepositorylinknameString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncFetchGitRepositoryLinkCommitGitrepositorylinknameString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkCommitGitrepositorylinknameString(); + } + + public static void syncFetchGitRepositoryLinkCommitGitrepositorylinknameString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String commitSha = "commitSha-1491174411"; + FetchGitRepositoryLinkCommitResponse response = + developerConnectClient.fetchGitRepositoryLinkCommit(name, commitSha); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_GitrepositorylinknameString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitStringString.java new file mode 100644 index 000000000000..be0358f2ca36 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommit/SyncFetchGitRepositoryLinkCommitStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_StringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncFetchGitRepositoryLinkCommitStringString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkCommitStringString(); + } + + public static void syncFetchGitRepositoryLinkCommitStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String commitSha = "commitSha-1491174411"; + FetchGitRepositoryLinkCommitResponse response = + developerConnectClient.fetchGitRepositoryLinkCommit(name, commitSha); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommit_StringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitList.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitList.java new file mode 100644 index 000000000000..0f73f6e40a1b --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitList.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.CommitView; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.SCMCommit; + +public class AsyncFetchGitRepositoryLinkCommitList { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkCommitList(); + } + + public static void asyncFetchGitRepositoryLinkCommitList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkCommitListRequest request = + FetchGitRepositoryLinkCommitListRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setRef("ref112787") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setView(CommitView.forNumber(0)) + .build(); + ApiFuture future = + developerConnectClient + .fetchGitRepositoryLinkCommitListPagedCallable() + .futureCall(request); + // Do something. + for (SCMCommit element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitListPaged.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitListPaged.java new file mode 100644 index 000000000000..c74185ee6abe --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/AsyncFetchGitRepositoryLinkCommitListPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_Paged_async] +import com.google.cloud.developerconnect.v1.CommitView; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.SCMCommit; +import com.google.common.base.Strings; + +public class AsyncFetchGitRepositoryLinkCommitListPaged { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkCommitListPaged(); + } + + public static void asyncFetchGitRepositoryLinkCommitListPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkCommitListRequest request = + FetchGitRepositoryLinkCommitListRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setRef("ref112787") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setView(CommitView.forNumber(0)) + .build(); + while (true) { + FetchGitRepositoryLinkCommitListResponse response = + developerConnectClient.fetchGitRepositoryLinkCommitListCallable().call(request); + for (SCMCommit element : response.getCommitsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_Paged_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitList.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitList.java new file mode 100644 index 000000000000..5bea693937d2 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitList.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_sync] +import com.google.cloud.developerconnect.v1.CommitView; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.SCMCommit; + +public class SyncFetchGitRepositoryLinkCommitList { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkCommitList(); + } + + public static void syncFetchGitRepositoryLinkCommitList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkCommitListRequest request = + FetchGitRepositoryLinkCommitListRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setRef("ref112787") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setView(CommitView.forNumber(0)) + .build(); + for (SCMCommit element : + developerConnectClient.fetchGitRepositoryLinkCommitList(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListGitrepositorylinknameString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListGitrepositorylinknameString.java new file mode 100644 index 000000000000..eaa49e8fcb23 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListGitrepositorylinknameString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_GitrepositorylinknameString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.SCMCommit; + +public class SyncFetchGitRepositoryLinkCommitListGitrepositorylinknameString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkCommitListGitrepositorylinknameString(); + } + + public static void syncFetchGitRepositoryLinkCommitListGitrepositorylinknameString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + for (SCMCommit element : + developerConnectClient.fetchGitRepositoryLinkCommitList(name, ref).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_GitrepositorylinknameString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListStringString.java new file mode 100644 index 000000000000..3480d1b658a1 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkcommitlist/SyncFetchGitRepositoryLinkCommitListStringString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_StringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.SCMCommit; + +public class SyncFetchGitRepositoryLinkCommitListStringString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkCommitListStringString(); + } + + public static void syncFetchGitRepositoryLinkCommitListStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String ref = "ref112787"; + for (SCMCommit element : + developerConnectClient.fetchGitRepositoryLinkCommitList(name, ref).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkCommitList_StringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/AsyncFetchGitRepositoryLinkFileBlame.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/AsyncFetchGitRepositoryLinkFileBlame.java new file mode 100644 index 000000000000..8420a5e9a3b4 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/AsyncFetchGitRepositoryLinkFileBlame.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class AsyncFetchGitRepositoryLinkFileBlame { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkFileBlame(); + } + + public static void asyncFetchGitRepositoryLinkFileBlame() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkFileBlameRequest request = + FetchGitRepositoryLinkFileBlameRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setRef("ref112787") + .setPath("path3433509") + .setFirstLine(-161037277) + .setLastLine(2013070333) + .build(); + ApiFuture future = + developerConnectClient.fetchGitRepositoryLinkFileBlameCallable().futureCall(request); + // Do something. + FetchGitRepositoryLinkFileBlameResponse response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlame.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlame.java new file mode 100644 index 000000000000..bbd6c9995b0d --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlame.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncFetchGitRepositoryLinkFileBlame { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkFileBlame(); + } + + public static void syncFetchGitRepositoryLinkFileBlame() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkFileBlameRequest request = + FetchGitRepositoryLinkFileBlameRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setRef("ref112787") + .setPath("path3433509") + .setFirstLine(-161037277) + .setLastLine(2013070333) + .build(); + FetchGitRepositoryLinkFileBlameResponse response = + developerConnectClient.fetchGitRepositoryLinkFileBlame(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString.java new file mode 100644 index 000000000000..602b2faf2f66 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_GitrepositorylinknameStringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString(); + } + + public static void syncFetchGitRepositoryLinkFileBlameGitrepositorylinknameStringString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String ref = "ref112787"; + String path = "path3433509"; + FetchGitRepositoryLinkFileBlameResponse response = + developerConnectClient.fetchGitRepositoryLinkFileBlame(name, ref, path); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_GitrepositorylinknameStringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameStringStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameStringStringString.java new file mode 100644 index 000000000000..bdd4128e6ea2 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkfileblame/SyncFetchGitRepositoryLinkFileBlameStringStringString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_StringStringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkFileBlameResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; + +public class SyncFetchGitRepositoryLinkFileBlameStringStringString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkFileBlameStringStringString(); + } + + public static void syncFetchGitRepositoryLinkFileBlameStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String ref = "ref112787"; + String path = "path3433509"; + FetchGitRepositoryLinkFileBlameResponse response = + developerConnectClient.fetchGitRepositoryLinkFileBlame(name, ref, path); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkFileBlame_StringStringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/AsyncFetchGitRepositoryLinkPullRequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/AsyncFetchGitRepositoryLinkPullRequest.java new file mode 100644 index 000000000000..12cf06099743 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/AsyncFetchGitRepositoryLinkPullRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class AsyncFetchGitRepositoryLinkPullRequest { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkPullRequest(); + } + + public static void asyncFetchGitRepositoryLinkPullRequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkPullRequestRequest request = + FetchGitRepositoryLinkPullRequestRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .build(); + ApiFuture future = + developerConnectClient.fetchGitRepositoryLinkPullRequestCallable().futureCall(request); + // Do something. + PullRequest response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequest.java new file mode 100644 index 000000000000..864b38b6f090 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncFetchGitRepositoryLinkPullRequest { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkPullRequest(); + } + + public static void syncFetchGitRepositoryLinkPullRequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkPullRequestRequest request = + FetchGitRepositoryLinkPullRequestRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .build(); + PullRequest response = developerConnectClient.fetchGitRepositoryLinkPullRequest(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString.java new file mode 100644 index 000000000000..8a628d6ab776 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_GitrepositorylinknameString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString(); + } + + public static void syncFetchGitRepositoryLinkPullRequestGitrepositorylinknameString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequest response = + developerConnectClient.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_GitrepositorylinknameString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestStringString.java new file mode 100644 index 000000000000..a48bc25f7ef5 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequest/SyncFetchGitRepositoryLinkPullRequestStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_StringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncFetchGitRepositoryLinkPullRequestStringString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkPullRequestStringString(); + } + + public static void syncFetchGitRepositoryLinkPullRequestStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String pullRequestId = "pullRequestId1573471045"; + PullRequest response = + developerConnectClient.fetchGitRepositoryLinkPullRequest(name, pullRequestId); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequest_StringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestList.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestList.java new file mode 100644 index 000000000000..3d34738e0307 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestList.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class AsyncFetchGitRepositoryLinkPullRequestList { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkPullRequestList(); + } + + public static void asyncFetchGitRepositoryLinkPullRequestList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkPullRequestListRequest request = + FetchGitRepositoryLinkPullRequestListRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + developerConnectClient + .fetchGitRepositoryLinkPullRequestListPagedCallable() + .futureCall(request); + // Do something. + for (PullRequest element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestListPaged.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestListPaged.java new file mode 100644 index 000000000000..273663fc888f --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/AsyncFetchGitRepositoryLinkPullRequestListPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_Paged_async] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListResponse; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; +import com.google.common.base.Strings; + +public class AsyncFetchGitRepositoryLinkPullRequestListPaged { + + public static void main(String[] args) throws Exception { + asyncFetchGitRepositoryLinkPullRequestListPaged(); + } + + public static void asyncFetchGitRepositoryLinkPullRequestListPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkPullRequestListRequest request = + FetchGitRepositoryLinkPullRequestListRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchGitRepositoryLinkPullRequestListResponse response = + developerConnectClient.fetchGitRepositoryLinkPullRequestListCallable().call(request); + for (PullRequest element : response.getPullRequestsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_Paged_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestList.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestList.java new file mode 100644 index 000000000000..e15658bef094 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestList.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.FetchGitRepositoryLinkPullRequestListRequest; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncFetchGitRepositoryLinkPullRequestList { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkPullRequestList(); + } + + public static void syncFetchGitRepositoryLinkPullRequestList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + FetchGitRepositoryLinkPullRequestListRequest request = + FetchGitRepositoryLinkPullRequestListRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PullRequest element : + developerConnectClient.fetchGitRepositoryLinkPullRequestList(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname.java new file mode 100644 index 000000000000..3bb1f051e03d --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_Gitrepositorylinkname_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname(); + } + + public static void syncFetchGitRepositoryLinkPullRequestListGitrepositorylinkname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + for (PullRequest element : + developerConnectClient.fetchGitRepositoryLinkPullRequestList(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_Gitrepositorylinkname_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListString.java new file mode 100644 index 000000000000..1d8cd1cb5d73 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/fetchgitrepositorylinkpullrequestlist/SyncFetchGitRepositoryLinkPullRequestListString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_String_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncFetchGitRepositoryLinkPullRequestListString { + + public static void main(String[] args) throws Exception { + syncFetchGitRepositoryLinkPullRequestListString(); + } + + public static void syncFetchGitRepositoryLinkPullRequestListString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + for (PullRequest element : + developerConnectClient.fetchGitRepositoryLinkPullRequestList(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_FetchGitRepositoryLinkPullRequestList_String_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/AsyncModifyGitRepositoryLinkPullRequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/AsyncModifyGitRepositoryLinkPullRequest.java new file mode 100644 index 000000000000..ba11b058d9ac --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/AsyncModifyGitRepositoryLinkPullRequest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class AsyncModifyGitRepositoryLinkPullRequest { + + public static void main(String[] args) throws Exception { + asyncModifyGitRepositoryLinkPullRequest(); + } + + public static void asyncModifyGitRepositoryLinkPullRequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + ModifyGitRepositoryLinkPullRequestRequest request = + ModifyGitRepositoryLinkPullRequestRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .setTitle("title110371416") + .setBody("body3029410") + .setBaseRef("baseRef-332628990") + .build(); + ApiFuture future = + developerConnectClient.modifyGitRepositoryLinkPullRequestCallable().futureCall(request); + // Do something. + PullRequest response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequest.java new file mode 100644 index 000000000000..332fbe6aa1e0 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.ModifyGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncModifyGitRepositoryLinkPullRequest { + + public static void main(String[] args) throws Exception { + syncModifyGitRepositoryLinkPullRequest(); + } + + public static void syncModifyGitRepositoryLinkPullRequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + ModifyGitRepositoryLinkPullRequestRequest request = + ModifyGitRepositoryLinkPullRequestRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequestId("pullRequestId1573471045") + .setTitle("title110371416") + .setBody("body3029410") + .setBaseRef("baseRef-332628990") + .build(); + PullRequest response = developerConnectClient.modifyGitRepositoryLinkPullRequest(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString.java new file mode 100644 index 000000000000..29585bc1bec2 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_GitrepositorylinknameString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString { + + public static void main(String[] args) throws Exception { + syncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString(); + } + + public static void syncModifyGitRepositoryLinkPullRequestGitrepositorylinknameString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + String pullRequestId = "pullRequestId1573471045"; + PullRequest response = + developerConnectClient.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_GitrepositorylinknameString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestStringString.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestStringString.java new file mode 100644 index 000000000000..3bee9c9210e4 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/modifygitrepositorylinkpullrequest/SyncModifyGitRepositoryLinkPullRequestStringString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_StringString_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncModifyGitRepositoryLinkPullRequestStringString { + + public static void main(String[] args) throws Exception { + syncModifyGitRepositoryLinkPullRequestStringString(); + } + + public static void syncModifyGitRepositoryLinkPullRequestStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + String pullRequestId = "pullRequestId1573471045"; + PullRequest response = + developerConnectClient.modifyGitRepositoryLinkPullRequest(name, pullRequestId); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_ModifyGitRepositoryLinkPullRequest_StringString_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/AsyncOpenGitRepositoryLinkPullRequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/AsyncOpenGitRepositoryLinkPullRequest.java new file mode 100644 index 000000000000..3430bed007dc --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/AsyncOpenGitRepositoryLinkPullRequest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class AsyncOpenGitRepositoryLinkPullRequest { + + public static void main(String[] args) throws Exception { + asyncOpenGitRepositoryLinkPullRequest(); + } + + public static void asyncOpenGitRepositoryLinkPullRequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + OpenGitRepositoryLinkPullRequestRequest request = + OpenGitRepositoryLinkPullRequestRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequest(PullRequest.newBuilder().build()) + .build(); + ApiFuture future = + developerConnectClient.openGitRepositoryLinkPullRequestCallable().futureCall(request); + // Do something. + PullRequest response = future.get(); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_async] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequest.java new file mode 100644 index 000000000000..c1afd613175b --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.OpenGitRepositoryLinkPullRequestRequest; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncOpenGitRepositoryLinkPullRequest { + + public static void main(String[] args) throws Exception { + syncOpenGitRepositoryLinkPullRequest(); + } + + public static void syncOpenGitRepositoryLinkPullRequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + OpenGitRepositoryLinkPullRequestRequest request = + OpenGitRepositoryLinkPullRequestRequest.newBuilder() + .setName( + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString()) + .setPullRequest(PullRequest.newBuilder().build()) + .build(); + PullRequest response = developerConnectClient.openGitRepositoryLinkPullRequest(request); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest.java new file mode 100644 index 000000000000..55072fbd06a3 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_GitrepositorylinknamePullrequest_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest { + + public static void main(String[] args) throws Exception { + syncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest(); + } + + public static void syncOpenGitRepositoryLinkPullRequestGitrepositorylinknamePullrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + GitRepositoryLinkName name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"); + PullRequest pullRequest = PullRequest.newBuilder().build(); + PullRequest response = + developerConnectClient.openGitRepositoryLinkPullRequest(name, pullRequest); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_GitrepositorylinknamePullrequest_sync] diff --git a/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestStringPullrequest.java b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestStringPullrequest.java new file mode 100644 index 000000000000..9e825d8d20c0 --- /dev/null +++ b/java-developerconnect/samples/snippets/generated/com/google/cloud/developerconnect/v1/developerconnect/opengitrepositorylinkpullrequest/SyncOpenGitRepositoryLinkPullRequestStringPullrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.developerconnect.v1.samples; + +// [START developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_StringPullrequest_sync] +import com.google.cloud.developerconnect.v1.DeveloperConnectClient; +import com.google.cloud.developerconnect.v1.GitRepositoryLinkName; +import com.google.cloud.developerconnect.v1.PullRequest; + +public class SyncOpenGitRepositoryLinkPullRequestStringPullrequest { + + public static void main(String[] args) throws Exception { + syncOpenGitRepositoryLinkPullRequestStringPullrequest(); + } + + public static void syncOpenGitRepositoryLinkPullRequestStringPullrequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DeveloperConnectClient developerConnectClient = DeveloperConnectClient.create()) { + String name = + GitRepositoryLinkName.of( + "[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]") + .toString(); + PullRequest pullRequest = PullRequest.newBuilder().build(); + PullRequest response = + developerConnectClient.openGitRepositoryLinkPullRequest(name, pullRequest); + } + } +} +// [END developerconnect_v1_generated_DeveloperConnect_OpenGitRepositoryLinkPullRequest_StringPullrequest_sync] diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClient.java new file mode 100644 index 000000000000..db86ac1a2e3e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClient.java @@ -0,0 +1,402 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.stub.AclConfigServiceStub; +import com.google.cloud.discoveryengine.v1.stub.AclConfigServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Acl Configuration. + * + *

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

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

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

UpdateAclConfig

Default ACL configuration for use in a location of a customer's project. Updates will only reflect to new data stores. Existing data stores will still use the old value.

+ *

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

+ *
    + *
  • updateAclConfig(UpdateAclConfigRequest request) + *

+ *

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

+ *
    + *
  • updateAclConfigCallable() + *

+ *

GetAclConfig

Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig].

+ *

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

+ *
    + *
  • getAclConfig(GetAclConfigRequest request) + *

+ *

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

+ *
    + *
  • getAclConfig(AclConfigName name) + *

  • getAclConfig(String name) + *

+ *

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

+ *
    + *
  • getAclConfigCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AclConfigServiceClient implements BackgroundResource { + private final @Nullable AclConfigServiceSettings settings; + private final AclConfigServiceStub stub; + + /** Constructs an instance of AclConfigServiceClient with default settings. */ + public static final AclConfigServiceClient create() throws IOException { + return create(AclConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AclConfigServiceClient create(AclConfigServiceSettings settings) + throws IOException { + return new AclConfigServiceClient(settings); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AclConfigServiceSettings). + */ + public static final AclConfigServiceClient create(AclConfigServiceStub stub) { + return new AclConfigServiceClient(stub); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AclConfigServiceClient(AclConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AclConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AclConfigServiceClient(AclConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable AclConfigServiceSettings getSettings() { + return settings; + } + + public AclConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default ACL configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   UpdateAclConfigRequest request =
+   *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+   *   AclConfig response = aclConfigServiceClient.updateAclConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig updateAclConfig(UpdateAclConfigRequest request) { + return updateAclConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default ACL configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]");
+   *   AclConfig response = aclConfigServiceClient.getAclConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of [AclConfig][google.cloud.discoveryengine.v1.AclConfig], + * such as `projects/*/locations/*/aclConfig`. + *

If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(@Nullable AclConfigName name) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AclConfig response = aclConfigServiceClient.getAclConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of [AclConfig][google.cloud.discoveryengine.v1.AclConfig], + * such as `projects/*/locations/*/aclConfig`. + *

If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(String name) { + GetAclConfigRequest request = GetAclConfigRequest.newBuilder().setName(name).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   GetAclConfigRequest request =
+   *       GetAclConfigRequest.newBuilder()
+   *           .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       aclConfigServiceClient.getAclConfigCallable().futureCall(request);
+   *   // Do something.
+   *   AclConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAclConfigCallable() { + return stub.getAclConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceSettings.java new file mode 100644 index 000000000000..ed9140106ec9 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceSettings.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.stub.AclConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AclConfigServiceClient}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of updateAclConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AclConfigServiceSettings.Builder aclConfigServiceSettingsBuilder =
+ *     AclConfigServiceSettings.newBuilder();
+ * aclConfigServiceSettingsBuilder
+ *     .updateAclConfigSettings()
+ *     .setRetrySettings(
+ *         aclConfigServiceSettingsBuilder
+ *             .updateAclConfigSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AclConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateAclConfig. */ + public UnaryCallSettings updateAclConfigSettings() { + return ((AclConfigServiceStubSettings) getStubSettings()).updateAclConfigSettings(); + } + + /** Returns the object with the settings used for calls to getAclConfig. */ + public UnaryCallSettings getAclConfigSettings() { + return ((AclConfigServiceStubSettings) getStubSettings()).getAclConfigSettings(); + } + + public static final AclConfigServiceSettings create(AclConfigServiceStubSettings stub) + throws IOException { + return new AclConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AclConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AclConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AclConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AclConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AclConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AclConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AclConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AclConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AclConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AclConfigServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(AclConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AclConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AclConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AclConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AclConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public AclConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AclConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateAclConfig. */ + public UnaryCallSettings.Builder updateAclConfigSettings() { + return getStubSettingsBuilder().updateAclConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getAclConfig. */ + public UnaryCallSettings.Builder getAclConfigSettings() { + return getStubSettingsBuilder().getAclConfigSettings(); + } + + @Override + public AclConfigServiceSettings build() throws IOException { + return new AclConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java index 7cef872a9663..ab5fe360182f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java @@ -16,11 +16,22 @@ package com.google.cloud.discoveryengine.v1; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1.stub.AssistantServiceStub; import com.google.cloud.discoveryengine.v1.stub.AssistantServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; +import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; @@ -40,27 +51,14 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { - * StreamAssistRequest request = - * StreamAssistRequest.newBuilder() - * .setName( - * AssistantName.of( - * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") - * .toString()) - * .setQuery(Query.newBuilder().build()) - * .setSession( - * SessionName.ofProjectLocationDataStoreSessionName( - * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") - * .toString()) - * .setUserMetadata(AssistUserMetadata.newBuilder().build()) - * .setAgentsSpec(StreamAssistRequest.AgentsSpec.newBuilder().build()) - * .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build()) - * .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build()) + * CreateAssistantRequest request = + * CreateAssistantRequest.newBuilder() + * .setParent( + * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + * .setAssistant(Assistant.newBuilder().build()) + * .setAssistantId("assistantId-324518759") * .build(); - * ServerStream stream = - * assistantServiceClient.streamAssistCallable().call(request); - * for (StreamAssistResponse response : stream) { - * // Do something when a response is received. - * } + * Assistant response = assistantServiceClient.createAssistant(request); * } * }

* @@ -85,6 +83,96 @@ * * * + * + *

CreateAssistant + *

Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

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

+ *
    + *
  • createAssistant(CreateAssistantRequest request) + *

+ *

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

+ *
    + *
  • createAssistantCallable() + *

+ * + * + * + *

DeleteAssistant + *

Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

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

+ *
    + *
  • deleteAssistant(DeleteAssistantRequest request) + *

+ *

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

+ *
    + *
  • deleteAssistant(AssistantName name) + *

  • deleteAssistant(String name) + *

+ *

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

+ *
    + *
  • deleteAssistantCallable() + *

+ * + * + * + *

UpdateAssistant + *

Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant] + * + *

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

+ *
    + *
  • updateAssistant(UpdateAssistantRequest request) + *

+ *

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

+ *
    + *
  • updateAssistant(Assistant assistant, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateAssistantCallable() + *

+ * + * + * + *

GetAssistant + *

Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

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

+ *
    + *
  • getAssistant(GetAssistantRequest request) + *

+ *

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

+ *
    + *
  • getAssistant(AssistantName name) + *

  • getAssistant(String name) + *

+ *

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

+ *
    + *
  • getAssistantCallable() + *

+ * + * + * + *

ListAssistants + *

Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an [Engine][google.cloud.discoveryengine.v1.Engine]. + * + *

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

+ *
    + *
  • listAssistants(ListAssistantsRequest request) + *

+ *

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

+ *
    + *
  • listAssistants(EngineName parent) + *

  • listAssistants(String parent) + *

+ *

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

+ *
    + *
  • listAssistantsPagedCallable() + *

  • listAssistantsCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -236,6 +324,596 @@ public AssistantServiceStub getStub() { return stub.streamAssistCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantRequest request =
+   *       CreateAssistantRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setAssistant(Assistant.newBuilder().build())
+   *           .setAssistantId("assistantId-324518759")
+   *           .build();
+   *   Assistant response = assistantServiceClient.createAssistant(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant createAssistant(CreateAssistantRequest request) { + return createAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantRequest request =
+   *       CreateAssistantRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setAssistant(Assistant.newBuilder().build())
+   *           .setAssistantId("assistantId-324518759")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.createAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   Assistant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAssistantCallable() { + return stub.createAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantName name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]");
+   *   assistantServiceClient.deleteAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + *

If the caller does not have permission to delete the + * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + *

If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete does not exist, + * a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistant(@Nullable AssistantName name) { + DeleteAssistantRequest request = + DeleteAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *           .toString();
+   *   assistantServiceClient.deleteAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + *

If the caller does not have permission to delete the + * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + *

If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete does not exist, + * a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistant(String name) { + DeleteAssistantRequest request = DeleteAssistantRequest.newBuilder().setName(name).build(); + deleteAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   DeleteAssistantRequest request =
+   *       DeleteAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.deleteAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAssistantCallable() { + return stub.deleteAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant] + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   Assistant assistant = Assistant.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Assistant response = assistantServiceClient.updateAssistant(assistant, updateMask);
+   * }
+   * }
+ * + * @param assistant Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to + * update. + *

The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field is used to + * identify the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + *

If the caller does not have permission to update the + * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + *

If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update does not exist, + * a NOT_FOUND error is returned. + * @param updateMask The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant updateAssistant(Assistant assistant, FieldMask updateMask) { + UpdateAssistantRequest request = + UpdateAssistantRequest.newBuilder() + .setAssistant(assistant) + .setUpdateMask(updateMask) + .build(); + return updateAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant] + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantName name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]");
+   *   Assistant response = assistantServiceClient.getAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant getAssistant(@Nullable AssistantName name) { + GetAssistantRequest request = + GetAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *           .toString();
+   *   Assistant response = assistantServiceClient.getAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant getAssistant(String name) { + GetAssistantRequest request = GetAssistantRequest.newBuilder().setName(name).build(); + return getAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantRequest request =
+   *       GetAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.getAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   Assistant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAssistantCallable() { + return stub.getAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+   *   for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantsPagedResponse listAssistants(@Nullable EngineName parent) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAssistants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String parent =
+   *       EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString();
+   *   for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantsPagedResponse listAssistants(String parent) { + ListAssistantsRequest request = ListAssistantsRequest.newBuilder().setParent(parent).build(); + return listAssistants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantsRequest request =
+   *       ListAssistantsRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Assistant element : assistantServiceClient.listAssistants(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantsPagedResponse listAssistants(ListAssistantsRequest request) { + return listAssistantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantsRequest request =
+   *       ListAssistantsRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.listAssistantsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Assistant element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAssistantsPagedCallable() { + return stub.listAssistantsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantsRequest request =
+   *       ListAssistantsRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAssistantsResponse response =
+   *         assistantServiceClient.listAssistantsCallable().call(request);
+   *     for (Assistant element : response.getAssistantsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAssistantsCallable() { + return stub.listAssistantsCallable(); + } + @Override public final void close() { stub.close(); @@ -265,4 +943,81 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListAssistantsPagedResponse + extends AbstractPagedListResponse< + ListAssistantsRequest, + ListAssistantsResponse, + Assistant, + ListAssistantsPage, + ListAssistantsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAssistantsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAssistantsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAssistantsPagedResponse(ListAssistantsPage page) { + super(page, ListAssistantsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAssistantsPage + extends AbstractPage< + ListAssistantsRequest, ListAssistantsResponse, Assistant, ListAssistantsPage> { + + private ListAssistantsPage( + @Nullable PageContext context, + @Nullable ListAssistantsResponse response) { + super(context, response); + } + + private static ListAssistantsPage createEmptyPage() { + return new ListAssistantsPage(null, null); + } + + @Override + protected ListAssistantsPage createPage( + @Nullable PageContext context, + @Nullable ListAssistantsResponse response) { + return new ListAssistantsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAssistantsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAssistantsRequest, + ListAssistantsResponse, + Assistant, + ListAssistantsPage, + ListAssistantsFixedSizeCollection> { + + private ListAssistantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAssistantsFixedSizeCollection createEmptyCollection() { + return new ListAssistantsFixedSizeCollection(null, 0); + } + + @Override + protected ListAssistantsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAssistantsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java index c75d9bfcf327..5d69522683f9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -25,10 +27,12 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.AssistantServiceStubSettings; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -53,7 +57,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of streamAssist: + * of createAssistant: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -64,10 +68,10 @@
  * AssistantServiceSettings.Builder assistantServiceSettingsBuilder =
  *     AssistantServiceSettings.newBuilder();
  * assistantServiceSettingsBuilder
- *     .streamAssistSettings()
+ *     .createAssistantSettings()
  *     .setRetrySettings(
  *         assistantServiceSettingsBuilder
- *             .streamAssistSettings()
+ *             .createAssistantSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -96,6 +100,33 @@ public class AssistantServiceSettings extends ClientSettings createAssistantSettings() {
+    return ((AssistantServiceStubSettings) getStubSettings()).createAssistantSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deleteAssistant. */
+  public UnaryCallSettings deleteAssistantSettings() {
+    return ((AssistantServiceStubSettings) getStubSettings()).deleteAssistantSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updateAssistant. */
+  public UnaryCallSettings updateAssistantSettings() {
+    return ((AssistantServiceStubSettings) getStubSettings()).updateAssistantSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getAssistant. */
+  public UnaryCallSettings getAssistantSettings() {
+    return ((AssistantServiceStubSettings) getStubSettings()).getAssistantSettings();
+  }
+
+  /** Returns the object with the settings used for calls to listAssistants. */
+  public PagedCallSettings<
+          ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+      listAssistantsSettings() {
+    return ((AssistantServiceStubSettings) getStubSettings()).listAssistantsSettings();
+  }
+
   public static final AssistantServiceSettings create(AssistantServiceStubSettings stub)
       throws IOException {
     return new AssistantServiceSettings.Builder(stub.toBuilder()).build();
@@ -214,6 +245,33 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().streamAssistSettings();
     }
 
+    /** Returns the builder for the settings used for calls to createAssistant. */
+    public UnaryCallSettings.Builder createAssistantSettings() {
+      return getStubSettingsBuilder().createAssistantSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deleteAssistant. */
+    public UnaryCallSettings.Builder deleteAssistantSettings() {
+      return getStubSettingsBuilder().deleteAssistantSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updateAssistant. */
+    public UnaryCallSettings.Builder updateAssistantSettings() {
+      return getStubSettingsBuilder().updateAssistantSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getAssistant. */
+    public UnaryCallSettings.Builder getAssistantSettings() {
+      return getStubSettingsBuilder().getAssistantSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to listAssistants. */
+    public PagedCallSettings.Builder<
+            ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+        listAssistantsSettings() {
+      return getStubSettingsBuilder().listAssistantsSettings();
+    }
+
     @Override
     public AssistantServiceSettings build() throws IOException {
       return new AssistantServiceSettings(this);
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceClient.java
new file mode 100644
index 000000000000..9eff956b7717
--- /dev/null
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceClient.java
@@ -0,0 +1,722 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.discoveryengine.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.discoveryengine.v1.stub.CollectionServiceStub;
+import com.google.cloud.discoveryengine.v1.stub.CollectionServiceStubSettings;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+import org.jspecify.annotations.Nullable;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Service for managing
+ * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+ *
+ * 

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

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

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

DeleteCollection

Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].

+ *

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

+ *
    + *
  • deleteCollectionAsync(DeleteCollectionRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteCollectionAsync(CollectionName name) + *

  • deleteCollectionAsync(String name) + *

+ *

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

+ *
    + *
  • deleteCollectionOperationCallable() + *

  • deleteCollectionCallable() + *

+ *

GetIamPolicy

Gets the IAM access control policy for a [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.

+ *

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

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

+ *

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

+ *
    + *
  • getIamPolicy(ResourceName resource) + *

  • getIamPolicy(String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ *

SetIamPolicy

Sets the IAM access control policy for a [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if the resource does not exist. + *

**Important:** When setting a policy directly on a Collection resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.

+ *

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

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

+ *

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

+ *
    + *
  • setIamPolicy(ResourceName resource, Policy policy) + *

  • setIamPolicy(String resource, Policy policy) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class CollectionServiceClient implements BackgroundResource { + private final @Nullable CollectionServiceSettings settings; + private final CollectionServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of CollectionServiceClient with default settings. */ + public static final CollectionServiceClient create() throws IOException { + return create(CollectionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CollectionServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CollectionServiceClient create(CollectionServiceSettings settings) + throws IOException { + return new CollectionServiceClient(settings); + } + + /** + * Constructs an instance of CollectionServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(CollectionServiceSettings). + */ + public static final CollectionServiceClient create(CollectionServiceStub stub) { + return new CollectionServiceClient(stub); + } + + /** + * Constructs an instance of CollectionServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected CollectionServiceClient(CollectionServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CollectionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected CollectionServiceClient(CollectionServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final @Nullable CollectionServiceSettings getSettings() { + return settings; + } + + public CollectionServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   CollectionName name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]");
+   *   collectionServiceClient.deleteCollectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full resource name of the Collection, in the format of + * `projects/{project}/locations/{location}/collections/{collection}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCollectionAsync( + @Nullable CollectionName name) { + DeleteCollectionRequest request = + DeleteCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteCollectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   String name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString();
+   *   collectionServiceClient.deleteCollectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full resource name of the Collection, in the format of + * `projects/{project}/locations/{location}/collections/{collection}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCollectionAsync(String name) { + DeleteCollectionRequest request = DeleteCollectionRequest.newBuilder().setName(name).build(); + return deleteCollectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   DeleteCollectionRequest request =
+   *       DeleteCollectionRequest.newBuilder()
+   *           .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .build();
+   *   collectionServiceClient.deleteCollectionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCollectionAsync( + DeleteCollectionRequest request) { + return deleteCollectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   DeleteCollectionRequest request =
+   *       DeleteCollectionRequest.newBuilder()
+   *           .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       collectionServiceClient.deleteCollectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCollectionOperationCallable() { + return stub.deleteCollectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   DeleteCollectionRequest request =
+   *       DeleteCollectionRequest.newBuilder()
+   *           .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       collectionServiceClient.deleteCollectionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCollectionCallable() { + return stub.deleteCollectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if + * the resource does not exist. An empty policy is returned if the resource exists but does not + * have a policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]");
+   *   Policy response = collectionServiceClient.getIamPolicy(resource);
+   * }
+   * }
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(@Nullable ResourceName resource) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if + * the resource does not exist. An empty policy is returned if the resource exists but does not + * have a policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Policy response = collectionServiceClient.getIamPolicy(resource);
+   * }
+   * }
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if + * the resource does not exist. An empty policy is returned if the resource exists but does not + * have a policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = collectionServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if + * the resource does not exist. An empty policy is returned if the resource exists but does not + * have a policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = collectionServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for a + * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if + * the resource does not exist. + * + *

**Important:** When setting a policy directly on a Collection resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

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

**Important:** When setting a policy directly on a Collection resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

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

**Important:** When setting a policy directly on a Collection resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = collectionServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for a + * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` error is returned if + * the resource does not exist. + * + *

**Important:** When setting a policy directly on a Collection resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = collectionServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceSettings.java new file mode 100644 index 000000000000..b61affc68d01 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceSettings.java @@ -0,0 +1,284 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.stub.CollectionServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CollectionServiceClient}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getIamPolicy: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CollectionServiceSettings.Builder collectionServiceSettingsBuilder =
+ *     CollectionServiceSettings.newBuilder();
+ * collectionServiceSettingsBuilder
+ *     .getIamPolicySettings()
+ *     .setRetrySettings(
+ *         collectionServiceSettingsBuilder
+ *             .getIamPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * CollectionServiceSettings collectionServiceSettings = collectionServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteCollection: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CollectionServiceSettings.Builder collectionServiceSettingsBuilder =
+ *     CollectionServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * collectionServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +public class CollectionServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to deleteCollection. */ + public UnaryCallSettings deleteCollectionSettings() { + return ((CollectionServiceStubSettings) getStubSettings()).deleteCollectionSettings(); + } + + /** Returns the object with the settings used for calls to deleteCollection. */ + public OperationCallSettings + deleteCollectionOperationSettings() { + return ((CollectionServiceStubSettings) getStubSettings()).deleteCollectionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((CollectionServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((CollectionServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + public static final CollectionServiceSettings create(CollectionServiceStubSettings stub) + throws IOException { + return new CollectionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CollectionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CollectionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CollectionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CollectionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CollectionServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CollectionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CollectionServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CollectionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CollectionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CollectionServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(CollectionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CollectionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CollectionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CollectionServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(CollectionServiceStubSettings.newHttpJsonBuilder()); + } + + public CollectionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CollectionServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to deleteCollection. */ + public UnaryCallSettings.Builder + deleteCollectionSettings() { + return getStubSettingsBuilder().deleteCollectionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCollection. */ + public OperationCallSettings.Builder + deleteCollectionOperationSettings() { + return getStubSettingsBuilder().deleteCollectionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + @Override + public CollectionServiceSettings build() throws IOException { + return new CollectionServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java index e01784ccf6e7..5fce963e6e09 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java @@ -86,6 +86,20 @@ * * * + *

AdvancedCompleteQuery + *

Completes the user input with advanced keyword suggestions. + * + *

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

+ *
    + *
  • advancedCompleteQuery(AdvancedCompleteQueryRequest request) + *

+ *

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

+ *
    + *
  • advancedCompleteQueryCallable() + *

+ * + * + * *

ImportSuggestionDenyListEntries *

Imports all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] for a DataStore. * @@ -349,6 +363,91 @@ public final UnaryCallable complete return stub.completeQueryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Completes the user input with advanced keyword suggestions. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+   *   AdvancedCompleteQueryRequest request =
+   *       AdvancedCompleteQueryRequest.newBuilder()
+   *           .setCompletionConfig(
+   *               CompletionConfigName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setQueryModel("queryModel-184930495")
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setIncludeTailSuggestions(true)
+   *           .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build())
+   *           .addAllSuggestionTypes(new ArrayList())
+   *           .addAllSuggestionTypeSpecs(
+   *               new ArrayList())
+   *           .addAllExperimentIds(new ArrayList())
+   *           .build();
+   *   AdvancedCompleteQueryResponse response =
+   *       completionServiceClient.advancedCompleteQuery(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdvancedCompleteQueryResponse advancedCompleteQuery( + AdvancedCompleteQueryRequest request) { + return advancedCompleteQueryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Completes the user input with advanced keyword suggestions. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+   *   AdvancedCompleteQueryRequest request =
+   *       AdvancedCompleteQueryRequest.newBuilder()
+   *           .setCompletionConfig(
+   *               CompletionConfigName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setQuery("query107944136")
+   *           .setQueryModel("queryModel-184930495")
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setIncludeTailSuggestions(true)
+   *           .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build())
+   *           .addAllSuggestionTypes(new ArrayList())
+   *           .addAllSuggestionTypeSpecs(
+   *               new ArrayList())
+   *           .addAllExperimentIds(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       completionServiceClient.advancedCompleteQueryCallable().futureCall(request);
+   *   // Do something.
+   *   AdvancedCompleteQueryResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + advancedCompleteQueryCallable() { + return stub.advancedCompleteQueryCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Imports all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java index ed0aecfd7560..48b5c6b7ed4d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java @@ -122,6 +122,12 @@ public UnaryCallSettings completeQu return ((CompletionServiceStubSettings) getStubSettings()).completeQuerySettings(); } + /** Returns the object with the settings used for calls to advancedCompleteQuery. */ + public UnaryCallSettings + advancedCompleteQuerySettings() { + return ((CompletionServiceStubSettings) getStubSettings()).advancedCompleteQuerySettings(); + } + /** Returns the object with the settings used for calls to importSuggestionDenyListEntries. */ public UnaryCallSettings importSuggestionDenyListEntriesSettings() { @@ -307,6 +313,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().completeQuerySettings(); } + /** Returns the builder for the settings used for calls to advancedCompleteQuery. */ + public UnaryCallSettings.Builder + advancedCompleteQuerySettings() { + return getStubSettingsBuilder().advancedCompleteQuerySettings(); + } + /** Returns the builder for the settings used for calls to importSuggestionDenyListEntries. */ public UnaryCallSettings.Builder importSuggestionDenyListEntriesSettings() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java index 2b47ac34b972..c0340c6eef83 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java @@ -1711,6 +1711,7 @@ public final Session createSession(String parent, Session session) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .setSession(Session.newBuilder().build()) + * .setSessionId("sessionId607796817") * .build(); * Session response = conversationalSearchServiceClient.createSession(request); * } @@ -1747,6 +1748,7 @@ public final Session createSession(CreateSessionRequest request) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .setSession(Session.newBuilder().build()) + * .setSessionId("sessionId607796817") * .build(); * ApiFuture future = * conversationalSearchServiceClient.createSessionCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClient.java new file mode 100644 index 000000000000..7d27d2bee8dc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClient.java @@ -0,0 +1,776 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.stub.DataConnectorServiceStub; +import com.google.cloud.discoveryengine.v1.stub.DataConnectorServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for data connector management. + * + *

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

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

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

SetUpDataConnector

Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for it. To stop a [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, use the [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] method.

+ *

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

+ *
    + *
  • setUpDataConnectorAsync(SetUpDataConnectorRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • setUpDataConnectorAsync(LocationName parent, String collectionId, String collectionDisplayName, DataConnector dataConnector) + *

  • setUpDataConnectorAsync(String parent, String collectionId, String collectionDisplayName, DataConnector dataConnector) + *

+ *

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

+ *
    + *
  • setUpDataConnectorOperationCallable() + *

  • setUpDataConnectorCallable() + *

+ *

GetDataConnector

Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource for each [Collection][google.cloud.discoveryengine.v1.Collection].

+ *

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

+ *
    + *
  • getDataConnector(GetDataConnectorRequest request) + *

+ *

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

+ *
    + *
  • getDataConnector(DataConnectorName name) + *

  • getDataConnector(String name) + *

+ *

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

+ *
    + *
  • getDataConnectorCallable() + *

+ *

UpdateDataConnector

Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector].

+ *

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

+ *
    + *
  • updateDataConnector(UpdateDataConnectorRequest request) + *

+ *

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

+ *
    + *
  • updateDataConnector(DataConnector dataConnector, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateDataConnectorCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class DataConnectorServiceClient implements BackgroundResource { + private final @Nullable DataConnectorServiceSettings settings; + private final DataConnectorServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of DataConnectorServiceClient with default settings. */ + public static final DataConnectorServiceClient create() throws IOException { + return create(DataConnectorServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DataConnectorServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DataConnectorServiceClient create(DataConnectorServiceSettings settings) + throws IOException { + return new DataConnectorServiceClient(settings); + } + + /** + * Constructs an instance of DataConnectorServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(DataConnectorServiceSettings). + */ + public static final DataConnectorServiceClient create(DataConnectorServiceStub stub) { + return new DataConnectorServiceClient(stub); + } + + /** + * Constructs an instance of DataConnectorServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DataConnectorServiceClient(DataConnectorServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DataConnectorServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected DataConnectorServiceClient(DataConnectorServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final @Nullable DataConnectorServiceSettings getSettings() { + return settings; + } + + public DataConnectorServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets up the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for it. To stop a + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, use the + * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + * method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String collectionId = "collectionId1636075609";
+   *   String collectionDisplayName = "collectionDisplayName-330620689";
+   *   DataConnector dataConnector = DataConnector.newBuilder().build();
+   *   DataConnector response =
+   *       dataConnectorServiceClient
+   *           .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent of [Collection][google.cloud.discoveryengine.v1.Collection], + * in the format of `projects/{project}/locations/{location}`. + * @param collectionId Required. The ID to use for the + * [Collection][google.cloud.discoveryengine.v1.Collection], which will become the final + * component of the [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. + * A new [Collection][google.cloud.discoveryengine.v1.Collection] is created as part of the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] setup. + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource + * under [Collection][google.cloud.discoveryengine.v1.Collection], managing all + * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the + * [Collection][google.cloud.discoveryengine.v1.Collection]. + *

Should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length + * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @param collectionDisplayName Required. The display name of the + * [Collection][google.cloud.discoveryengine.v1.Collection]. + *

Should be human readable, used to display collections in the Console Dashboard. UTF-8 + * encoded string with limit of 1024 characters. + * @param dataConnector Required. The + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to initialize in the newly + * created [Collection][google.cloud.discoveryengine.v1.Collection]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture setUpDataConnectorAsync( + @Nullable LocationName parent, + String collectionId, + String collectionDisplayName, + DataConnector dataConnector) { + SetUpDataConnectorRequest request = + SetUpDataConnectorRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCollectionId(collectionId) + .setCollectionDisplayName(collectionDisplayName) + .setDataConnector(dataConnector) + .build(); + return setUpDataConnectorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets up the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for it. To stop a + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, use the + * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + * method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String collectionId = "collectionId1636075609";
+   *   String collectionDisplayName = "collectionDisplayName-330620689";
+   *   DataConnector dataConnector = DataConnector.newBuilder().build();
+   *   DataConnector response =
+   *       dataConnectorServiceClient
+   *           .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent of [Collection][google.cloud.discoveryengine.v1.Collection], + * in the format of `projects/{project}/locations/{location}`. + * @param collectionId Required. The ID to use for the + * [Collection][google.cloud.discoveryengine.v1.Collection], which will become the final + * component of the [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. + * A new [Collection][google.cloud.discoveryengine.v1.Collection] is created as part of the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] setup. + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource + * under [Collection][google.cloud.discoveryengine.v1.Collection], managing all + * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the + * [Collection][google.cloud.discoveryengine.v1.Collection]. + *

Should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length + * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * @param collectionDisplayName Required. The display name of the + * [Collection][google.cloud.discoveryengine.v1.Collection]. + *

Should be human readable, used to display collections in the Console Dashboard. UTF-8 + * encoded string with limit of 1024 characters. + * @param dataConnector Required. The + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to initialize in the newly + * created [Collection][google.cloud.discoveryengine.v1.Collection]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture setUpDataConnectorAsync( + String parent, + String collectionId, + String collectionDisplayName, + DataConnector dataConnector) { + SetUpDataConnectorRequest request = + SetUpDataConnectorRequest.newBuilder() + .setParent(parent) + .setCollectionId(collectionId) + .setCollectionDisplayName(collectionDisplayName) + .setDataConnector(dataConnector) + .build(); + return setUpDataConnectorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets up the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for it. To stop a + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, use the + * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + * method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   SetUpDataConnectorRequest request =
+   *       SetUpDataConnectorRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCollectionId("collectionId1636075609")
+   *           .setCollectionDisplayName("collectionDisplayName-330620689")
+   *           .setDataConnector(DataConnector.newBuilder().build())
+   *           .build();
+   *   DataConnector response = dataConnectorServiceClient.setUpDataConnectorAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture setUpDataConnectorAsync( + SetUpDataConnectorRequest request) { + return setUpDataConnectorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets up the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for it. To stop a + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, use the + * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + * method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   SetUpDataConnectorRequest request =
+   *       SetUpDataConnectorRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCollectionId("collectionId1636075609")
+   *           .setCollectionDisplayName("collectionDisplayName-330620689")
+   *           .setDataConnector(DataConnector.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       dataConnectorServiceClient.setUpDataConnectorOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DataConnector response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationCallable() { + return stub.setUpDataConnectorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets up the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for it. To stop a + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, use the + * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + * method. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   SetUpDataConnectorRequest request =
+   *       SetUpDataConnectorRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCollectionId("collectionId1636075609")
+   *           .setCollectionDisplayName("collectionDisplayName-330620689")
+   *           .setDataConnector(DataConnector.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataConnectorServiceClient.setUpDataConnectorCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setUpDataConnectorCallable() { + return stub.setUpDataConnectorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource for each + * [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   DataConnectorName name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]");
+   *   DataConnector response = dataConnectorServiceClient.getDataConnector(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as + * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`. + *

If the caller does not have permission to access the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

If the requested [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataConnector getDataConnector(@Nullable DataConnectorName name) { + GetDataConnectorRequest request = + GetDataConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataConnector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource for each + * [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   String name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString();
+   *   DataConnector response = dataConnectorServiceClient.getDataConnector(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as + * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`. + *

If the caller does not have permission to access the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

If the requested [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not + * exist, a `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataConnector getDataConnector(String name) { + GetDataConnectorRequest request = GetDataConnectorRequest.newBuilder().setName(name).build(); + return getDataConnector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource for each + * [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   GetDataConnectorRequest request =
+   *       GetDataConnectorRequest.newBuilder()
+   *           .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString())
+   *           .build();
+   *   DataConnector response = dataConnectorServiceClient.getDataConnector(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataConnector getDataConnector(GetDataConnectorRequest request) { + return getDataConnectorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a singleton resource for each + * [Collection][google.cloud.discoveryengine.v1.Collection]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   DataConnector dataConnector = DataConnector.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataConnector response =
+   *       dataConnectorServiceClient.updateDataConnector(dataConnector, updateMask);
+   * }
+   * }
+ * + * @param dataConnector Required. The + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update. + *

If the caller does not have permission to update the + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless of whether or + * not it exists, a `PERMISSION_DENIED` error is returned. + *

If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not exist, a + * `NOT_FOUND` error is returned. + * @param updateMask Indicates which fields in the provided + * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update. + *

Supported field paths include: + *

- `refresh_interval` - `params` - `auto_run_disabled` - `action_config` - + * `action_config.action_params` - `action_config.service_name` - `destination_configs` - + * `blocking_reasons` - `sync_mode` - `incremental_sync_disabled` - + * `incremental_refresh_interval` - `data_protection_policy` + *

Note: Support for these fields may vary depending on the connector type. For example, + * not all connectors support `destination_configs`. + *

If an unsupported or unknown field path is provided, the request will return an + * `INVALID_ARGUMENT` error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataConnector updateDataConnector( + DataConnector dataConnector, FieldMask updateMask) { + UpdateDataConnectorRequest request = + UpdateDataConnectorRequest.newBuilder() + .setDataConnector(dataConnector) + .setUpdateMask(updateMask) + .build(); + return updateDataConnector(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataConnectorServiceClient dataConnectorServiceClient =
+   *     DataConnectorServiceClient.create()) {
+   *   UpdateDataConnectorRequest request =
+   *       UpdateDataConnectorRequest.newBuilder()
+   *           .setDataConnector(DataConnector.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataConnectorServiceClient.updateDataConnectorCallable().futureCall(request);
+   *   // Do something.
+   *   DataConnector response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateDataConnectorCallable() { + return stub.updateDataConnectorCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceSettings.java new file mode 100644 index 000000000000..01c92d23e38f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceSettings.java @@ -0,0 +1,287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.stub.DataConnectorServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataConnectorServiceClient}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDataConnector: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataConnectorServiceSettings.Builder dataConnectorServiceSettingsBuilder =
+ *     DataConnectorServiceSettings.newBuilder();
+ * dataConnectorServiceSettingsBuilder
+ *     .getDataConnectorSettings()
+ *     .setRetrySettings(
+ *         dataConnectorServiceSettingsBuilder
+ *             .getDataConnectorSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DataConnectorServiceSettings dataConnectorServiceSettings =
+ *     dataConnectorServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for setUpDataConnector: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataConnectorServiceSettings.Builder dataConnectorServiceSettingsBuilder =
+ *     DataConnectorServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * dataConnectorServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +public class DataConnectorServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to setUpDataConnector. */ + public UnaryCallSettings setUpDataConnectorSettings() { + return ((DataConnectorServiceStubSettings) getStubSettings()).setUpDataConnectorSettings(); + } + + /** Returns the object with the settings used for calls to setUpDataConnector. */ + public OperationCallSettings + setUpDataConnectorOperationSettings() { + return ((DataConnectorServiceStubSettings) getStubSettings()) + .setUpDataConnectorOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDataConnector. */ + public UnaryCallSettings getDataConnectorSettings() { + return ((DataConnectorServiceStubSettings) getStubSettings()).getDataConnectorSettings(); + } + + /** Returns the object with the settings used for calls to updateDataConnector. */ + public UnaryCallSettings + updateDataConnectorSettings() { + return ((DataConnectorServiceStubSettings) getStubSettings()).updateDataConnectorSettings(); + } + + public static final DataConnectorServiceSettings create(DataConnectorServiceStubSettings stub) + throws IOException { + return new DataConnectorServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DataConnectorServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DataConnectorServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DataConnectorServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DataConnectorServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DataConnectorServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DataConnectorServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DataConnectorServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataConnectorServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataConnectorServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DataConnectorServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(DataConnectorServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DataConnectorServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DataConnectorServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DataConnectorServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(DataConnectorServiceStubSettings.newHttpJsonBuilder()); + } + + public DataConnectorServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DataConnectorServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to setUpDataConnector. */ + public UnaryCallSettings.Builder + setUpDataConnectorSettings() { + return getStubSettingsBuilder().setUpDataConnectorSettings(); + } + + /** Returns the builder for the settings used for calls to setUpDataConnector. */ + public OperationCallSettings.Builder< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationSettings() { + return getStubSettingsBuilder().setUpDataConnectorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDataConnector. */ + public UnaryCallSettings.Builder + getDataConnectorSettings() { + return getStubSettingsBuilder().getDataConnectorSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataConnector. */ + public UnaryCallSettings.Builder + updateDataConnectorSettings() { + return getStubSettingsBuilder().updateDataConnectorSettings(); + } + + @Override + public DataConnectorServiceSettings build() throws IOException { + return new DataConnectorServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java index 9becfe4b4879..a67630076380 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java @@ -28,9 +28,13 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.discoveryengine.v1.stub.DataStoreServiceStub; import com.google.cloud.discoveryengine.v1.stub.DataStoreServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -171,6 +175,45 @@ * * * + * + *

GetIamPolicy + *

Gets the IAM access control policy for a [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. + * + *

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

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

+ *

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

+ *
    + *
  • getIamPolicy(ResourceName resource) + *

  • getIamPolicy(String resource) + *

+ *

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

+ *
    + *
  • getIamPolicyCallable() + *

+ * + * + * + *

SetIamPolicy + *

Sets the IAM access control policy for a [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the resource does not exist. + *

**Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging. + * + *

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

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

+ *

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

+ *
    + *
  • setIamPolicy(ResourceName resource, Policy policy) + *

  • setIamPolicy(String resource, Policy policy) + *

+ *

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

+ *
    + *
  • setIamPolicyCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -1085,6 +1128,310 @@ public final UnaryCallable updateDataStoreCal return stub.updateDataStoreCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the + * resource does not exist. An empty policy is returned if the resource exists but does not have a + * policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
+   *   ResourceName resource =
+   *       DataStoreName.ofProjectLocationCollectionDataStoreName(
+   *           "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]");
+   *   Policy response = dataStoreServiceClient.getIamPolicy(resource);
+   * }
+   * }
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(@Nullable ResourceName resource) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the + * resource does not exist. An empty policy is returned if the resource exists but does not have a + * policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
+   *   String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Policy response = dataStoreServiceClient.getIamPolicy(resource);
+   * }
+   * }
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the + * resource does not exist. An empty policy is returned if the resource exists but does not have a + * policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = dataStoreServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for a + * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the + * resource does not exist. An empty policy is returned if the resource exists but does not have a + * policy set on it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = dataStoreServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for a + * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the + * resource does not exist. + * + *

**Important:** When setting a policy directly on a DataStore resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

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

**Important:** When setting a policy directly on a DataStore resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

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

**Important:** When setting a policy directly on a DataStore resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = dataStoreServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for a + * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error is returned if the + * resource does not exist. + * + *

**Important:** When setting a policy directly on a DataStore resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin` + * `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` + * `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` + * `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a + * warning in logging. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = dataStoreServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java index 3c3ee510dafb..465e7d1481d8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java @@ -32,6 +32,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.DataStoreServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -160,6 +163,16 @@ public UnaryCallSettings updateDataStoreSetti return ((DataStoreServiceStubSettings) getStubSettings()).updateDataStoreSettings(); } + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataStoreServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DataStoreServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + public static final DataStoreServiceSettings create(DataStoreServiceStubSettings stub) throws IOException { return new DataStoreServiceSettings.Builder(stub.toBuilder()).build(); @@ -311,6 +324,16 @@ public UnaryCallSettings.Builder updateDataSt return getStubSettingsBuilder().updateDataStoreSettings(); } + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + @Override public DataStoreServiceSettings build() throws IOException { return new DataStoreServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java index 3200756172f5..8b07c3f24fd4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java @@ -28,9 +28,13 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.discoveryengine.v1.stub.EngineServiceStub; import com.google.cloud.discoveryengine.v1.stub.EngineServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -74,7 +78,7 @@ * * *

CreateEngine - *

Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + *

Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

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

*
    @@ -94,7 +98,7 @@ * * *

    DeleteEngine - *

    Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + *

    Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

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

    *
      @@ -132,7 +136,7 @@ * * *

      GetEngine - *

      Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. + *

      Gets an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

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

      *
        @@ -169,6 +173,45 @@ *
      * * + * + *

      GetIamPolicy + *

      Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. + * + *

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

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

      + *

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

      + *
        + *
      • getIamPolicy(ResourceName resource) + *

      • getIamPolicy(String resource) + *

      + *

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

      + *
        + *
      • getIamPolicyCallable() + *

      + * + * + * + *

      SetIamPolicy + *

      Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is returned if the resource does not exist. + *

      **Important:** When setting a policy directly on an Engine resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin`, `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a warning in logging. + * + *

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

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

      + *

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

      + *
        + *
      • setIamPolicy(ResourceName resource, Policy policy) + *

      • setIamPolicy(String resource, Policy policy) + *

      + *

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

      + *
        + *
      • setIamPolicyCallable() + *

      + * + * * * *

      See the individual methods for example code. @@ -302,7 +345,7 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -343,7 +386,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -384,7 +427,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -415,7 +458,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -446,7 +489,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -475,7 +518,7 @@ public final UnaryCallable createEngineCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -510,7 +553,7 @@ public final OperationFuture deleteEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -543,7 +586,7 @@ public final OperationFuture deleteEngineAsync(Stri // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -573,7 +616,7 @@ public final OperationFuture deleteEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -603,7 +646,7 @@ public final OperationFuture deleteEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -724,7 +767,7 @@ public final UnaryCallable updateEngineCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -753,7 +796,7 @@ public final Engine getEngine(@Nullable EngineName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -781,7 +824,7 @@ public final Engine getEngine(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -810,7 +853,7 @@ public final Engine getEngine(GetEngineRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1.Engine]. * *

      Sample code: * @@ -1002,6 +1045,290 @@ public final UnaryCallable listEnginesC return stub.listEnginesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A + * `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
      +   *   ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
      +   *   Policy response = engineServiceClient.getIamPolicy(resource);
      +   * }
      +   * }
      + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(@Nullable ResourceName resource) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A + * `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
      +   *   String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   Policy response = engineServiceClient.getIamPolicy(resource);
      +   * }
      +   * }
      + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A + * `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
      +   *   GetIamPolicyRequest request =
      +   *       GetIamPolicyRequest.newBuilder()
      +   *           .setResource(
      +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
      +   *           .build();
      +   *   Policy response = engineServiceClient.getIamPolicy(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A + * `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
      +   *   GetIamPolicyRequest request =
      +   *       GetIamPolicyRequest.newBuilder()
      +   *           .setResource(
      +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = engineServiceClient.getIamPolicyCallable().futureCall(request);
      +   *   // Do something.
      +   *   Policy response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A + * `NOT_FOUND` error is returned if the resource does not exist. + * + *

      **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

      Sample code: + * + *

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

      **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

      Sample code: + * + *

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

      **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
      +   *   SetIamPolicyRequest request =
      +   *       SetIamPolicyRequest.newBuilder()
      +   *           .setResource(
      +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
      +   *           .setPolicy(Policy.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Policy response = engineServiceClient.setIamPolicy(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1.Engine]. A + * `NOT_FOUND` error is returned if the resource does not exist. + * + *

      **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
      +   *   SetIamPolicyRequest request =
      +   *       SetIamPolicyRequest.newBuilder()
      +   *           .setResource(
      +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
      +   *           .setPolicy(Policy.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = engineServiceClient.setIamPolicyCallable().futureCall(request);
      +   *   // Do something.
      +   *   Policy response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java index ee06452cefbe..296645c1722f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java @@ -32,6 +32,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.EngineServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -157,6 +160,16 @@ public UnaryCallSettings getEngineSettings() { return ((EngineServiceStubSettings) getStubSettings()).listEnginesSettings(); } + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((EngineServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((EngineServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + public static final EngineServiceSettings create(EngineServiceStubSettings stub) throws IOException { return new EngineServiceSettings.Builder(stub.toBuilder()).build(); @@ -308,6 +321,16 @@ public UnaryCallSettings.Builder getEngineSettings() { return getStubSettingsBuilder().listEnginesSettings(); } + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + @Override public EngineServiceSettings build() throws IOException { return new EngineServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClient.java new file mode 100644 index 000000000000..ec5fb0b365bc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClient.java @@ -0,0 +1,1482 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.stub.LicenseConfigServiceStub; +import com.google.cloud.discoveryengine.v1.stub.LicenseConfigServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing license config related resources. + * + *

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

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * try (LicenseConfigServiceClient licenseConfigServiceClient =
      + *     LicenseConfigServiceClient.create()) {
      + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      + *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
      + *   String licenseConfigId = "licenseConfigId-372057250";
      + *   LicenseConfig response =
      + *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
      + * }
      + * }
      + * + *

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

      CreateLicenseConfig

      Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

      + *

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

      + *
        + *
      • createLicenseConfig(CreateLicenseConfigRequest request) + *

      + *

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

      + *
        + *
      • createLicenseConfig(LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) + *

      • createLicenseConfig(String parent, LicenseConfig licenseConfig, String licenseConfigId) + *

      + *

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

      + *
        + *
      • createLicenseConfigCallable() + *

      + *

      UpdateLicenseConfig

      Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]

      + *

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

      + *
        + *
      • updateLicenseConfig(UpdateLicenseConfigRequest request) + *

      + *

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

      + *
        + *
      • updateLicenseConfig(LicenseConfig licenseConfig, FieldMask updateMask) + *

      + *

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

      + *
        + *
      • updateLicenseConfigCallable() + *

      + *

      GetLicenseConfig

      Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].

      + *

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

      + *
        + *
      • getLicenseConfig(GetLicenseConfigRequest request) + *

      + *

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

      + *
        + *
      • getLicenseConfig(LicenseConfigName name) + *

      • getLicenseConfig(String name) + *

      + *

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

      + *
        + *
      • getLicenseConfigCallable() + *

      + *

      ListLicenseConfigs

      Lists all the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated with the project.

      + *

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

      + *
        + *
      • listLicenseConfigs(ListLicenseConfigsRequest request) + *

      + *

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

      + *
        + *
      • listLicenseConfigs(LocationName parent) + *

      • listLicenseConfigs(String parent) + *

      + *

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

      + *
        + *
      • listLicenseConfigsPagedCallable() + *

      • listLicenseConfigsCallable() + *

      + *

      DistributeLicenseConfig

      Distributes a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing account level to project level.

      + *

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

      + *
        + *
      • distributeLicenseConfig(DistributeLicenseConfigRequest request) + *

      + *

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

      + *
        + *
      • distributeLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, String licenseConfigId) + *

      • distributeLicenseConfig(String billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, String licenseConfigId) + *

      + *

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

      + *
        + *
      • distributeLicenseConfigCallable() + *

      + *

      RetractLicenseConfig

      This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to the billing account.

      + *

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

      + *
        + *
      • retractLicenseConfig(RetractLicenseConfigRequest request) + *

      + *

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

      + *
        + *
      • retractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount) + *

      • retractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount) + *

      • retractLicenseConfig(String billingAccountLicenseConfig, LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount) + *

      • retractLicenseConfig(String billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount) + *

      + *

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

      + *
        + *
      • retractLicenseConfigCallable() + *

      + *
      + * + *

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

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

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

      To customize credentials: + * + *

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

      To customize the endpoint: + * + *

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

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

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

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class LicenseConfigServiceClient implements BackgroundResource { + private final @Nullable LicenseConfigServiceSettings settings; + private final LicenseConfigServiceStub stub; + + /** Constructs an instance of LicenseConfigServiceClient with default settings. */ + public static final LicenseConfigServiceClient create() throws IOException { + return create(LicenseConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of LicenseConfigServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final LicenseConfigServiceClient create(LicenseConfigServiceSettings settings) + throws IOException { + return new LicenseConfigServiceClient(settings); + } + + /** + * Constructs an instance of LicenseConfigServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(LicenseConfigServiceSettings). + */ + public static final LicenseConfigServiceClient create(LicenseConfigServiceStub stub) { + return new LicenseConfigServiceClient(stub); + } + + /** + * Constructs an instance of LicenseConfigServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected LicenseConfigServiceClient(LicenseConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((LicenseConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected LicenseConfigServiceClient(LicenseConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable LicenseConfigServiceSettings getSettings() { + return settings; + } + + public LicenseConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
      +   *   String licenseConfigId = "licenseConfigId-372057250";
      +   *   LicenseConfig response =
      +   *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param licenseConfig Required. The + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create. + * @param licenseConfigId Optional. The ID to use for the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will become the final + * component of the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource + * name. We are using the tier (product edition) name as the license config id such as + * `search` or `search_and_assistant`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig createLicenseConfig( + @Nullable LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setLicenseConfig(licenseConfig) + .setLicenseConfigId(licenseConfigId) + .build(); + return createLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
      +   *   String licenseConfigId = "licenseConfigId-372057250";
      +   *   LicenseConfig response =
      +   *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
      +   * }
      +   * }
      + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param licenseConfig Required. The + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create. + * @param licenseConfigId Optional. The ID to use for the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will become the final + * component of the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource + * name. We are using the tier (product edition) name as the license config id such as + * `search` or `search_and_assistant`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig createLicenseConfig( + String parent, LicenseConfig licenseConfig, String licenseConfigId) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(parent) + .setLicenseConfig(licenseConfig) + .setLicenseConfigId(licenseConfigId) + .build(); + return createLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   CreateLicenseConfigRequest request =
      +   *       CreateLicenseConfigRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setLicenseConfig(LicenseConfig.newBuilder().build())
      +   *           .setLicenseConfigId("licenseConfigId-372057250")
      +   *           .build();
      +   *   LicenseConfig response = licenseConfigServiceClient.createLicenseConfig(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig createLicenseConfig(CreateLicenseConfigRequest request) { + return createLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   CreateLicenseConfigRequest request =
      +   *       CreateLicenseConfigRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setLicenseConfig(LicenseConfig.newBuilder().build())
      +   *           .setLicenseConfigId("licenseConfigId-372057250")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       licenseConfigServiceClient.createLicenseConfigCallable().futureCall(request);
      +   *   // Do something.
      +   *   LicenseConfig response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + createLicenseConfigCallable() { + return stub.createLicenseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   LicenseConfig response =
      +   *       licenseConfigServiceClient.updateLicenseConfig(licenseConfig, updateMask);
      +   * }
      +   * }
      + * + * @param licenseConfig Required. The + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update. + * @param updateMask Optional. Indicates which fields in the provided + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update. + *

      If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig updateLicenseConfig( + LicenseConfig licenseConfig, FieldMask updateMask) { + UpdateLicenseConfigRequest request = + UpdateLicenseConfigRequest.newBuilder() + .setLicenseConfig(licenseConfig) + .setUpdateMask(updateMask) + .build(); + return updateLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] + * + *

      Sample code: + * + *

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

      Sample code: + * + *

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

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
      +   *   LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as + * `projects/{project}/locations/{location}/licenseConfigs/*`. + *

      If the caller does not have permission to access the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless of whether or + * not it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig getLicenseConfig(@Nullable LicenseConfigName name) { + GetLicenseConfigRequest request = + GetLicenseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   String name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
      +   *   LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name);
      +   * }
      +   * }
      + * + * @param name Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as + * `projects/{project}/locations/{location}/licenseConfigs/*`. + *

      If the caller does not have permission to access the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless of whether or + * not it exists, a PERMISSION_DENIED error is returned. + *

      If the requested [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig getLicenseConfig(String name) { + GetLicenseConfigRequest request = GetLicenseConfigRequest.newBuilder().setName(name).build(); + return getLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + * + *

      Sample code: + * + *

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

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   GetLicenseConfigRequest request =
      +   *       GetLicenseConfigRequest.newBuilder()
      +   *           .setName(
      +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       licenseConfigServiceClient.getLicenseConfigCallable().futureCall(request);
      +   *   // Do something.
      +   *   LicenseConfig response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getLicenseConfigCallable() { + return stub.getLicenseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated with + * the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   for (LicenseConfig element :
      +   *       licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsPagedResponse listLicenseConfigs(@Nullable LocationName parent) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLicenseConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated with + * the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   for (LicenseConfig element :
      +   *       licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsPagedResponse listLicenseConfigs(String parent) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder().setParent(parent).build(); + return listLicenseConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated with + * the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   ListLicenseConfigsRequest request =
      +   *       ListLicenseConfigsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   for (LicenseConfig element :
      +   *       licenseConfigServiceClient.listLicenseConfigs(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsPagedResponse listLicenseConfigs( + ListLicenseConfigsRequest request) { + return listLicenseConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated with + * the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   ListLicenseConfigsRequest request =
      +   *       ListLicenseConfigsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       licenseConfigServiceClient.listLicenseConfigsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (LicenseConfig element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLicenseConfigsPagedCallable() { + return stub.listLicenseConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated with + * the project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   ListLicenseConfigsRequest request =
      +   *       ListLicenseConfigsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   while (true) {
      +   *     ListLicenseConfigsResponse response =
      +   *         licenseConfigServiceClient.listLicenseConfigsCallable().call(request);
      +   *     for (LicenseConfig element : response.getLicenseConfigsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLicenseConfigsCallable() { + return stub.listLicenseConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing + * account level to project level. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   BillingAccountLicenseConfigName billingAccountLicenseConfig =
      +   *       BillingAccountLicenseConfigName.of(
      +   *           "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
      +   *   long projectNumber = 828084015;
      +   *   String location = "location1901043637";
      +   *   long licenseCount = -1565113455;
      +   *   String licenseConfigId = "licenseConfigId-372057250";
      +   *   DistributeLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.distributeLicenseConfig(
      +   *           billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
      +   * }
      +   * }
      + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

      Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param projectNumber Required. The target GCP project number to distribute the license config + * to. + * @param location Required. The target GCP project region to distribute the license config to. + * @param licenseCount Required. The number of licenses to distribute. + * @param licenseConfigId Optional. Distribute seats to this license config instead of creating a + * new one. If not specified, a new license config will be created from the billing account + * license config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DistributeLicenseConfigResponse distributeLicenseConfig( + @Nullable BillingAccountLicenseConfigName billingAccountLicenseConfig, + long projectNumber, + String location, + long licenseCount, + String licenseConfigId) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString()) + .setProjectNumber(projectNumber) + .setLocation(location) + .setLicenseCount(licenseCount) + .setLicenseConfigId(licenseConfigId) + .build(); + return distributeLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing + * account level to project level. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   String billingAccountLicenseConfig =
      +   *       BillingAccountLicenseConfigName.of(
      +   *               "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *           .toString();
      +   *   long projectNumber = 828084015;
      +   *   String location = "location1901043637";
      +   *   long licenseCount = -1565113455;
      +   *   String licenseConfigId = "licenseConfigId-372057250";
      +   *   DistributeLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.distributeLicenseConfig(
      +   *           billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
      +   * }
      +   * }
      + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

      Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param projectNumber Required. The target GCP project number to distribute the license config + * to. + * @param location Required. The target GCP project region to distribute the license config to. + * @param licenseCount Required. The number of licenses to distribute. + * @param licenseConfigId Optional. Distribute seats to this license config instead of creating a + * new one. If not specified, a new license config will be created from the billing account + * license config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DistributeLicenseConfigResponse distributeLicenseConfig( + String billingAccountLicenseConfig, + long projectNumber, + String location, + long licenseCount, + String licenseConfigId) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .setProjectNumber(projectNumber) + .setLocation(location) + .setLicenseCount(licenseCount) + .setLicenseConfigId(licenseConfigId) + .build(); + return distributeLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing + * account level to project level. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   DistributeLicenseConfigRequest request =
      +   *       DistributeLicenseConfigRequest.newBuilder()
      +   *           .setBillingAccountLicenseConfig(
      +   *               BillingAccountLicenseConfigName.of(
      +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *                   .toString())
      +   *           .setProjectNumber(828084015)
      +   *           .setLocation("location1901043637")
      +   *           .setLicenseCount(-1565113455)
      +   *           .setLicenseConfigId("licenseConfigId-372057250")
      +   *           .build();
      +   *   DistributeLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.distributeLicenseConfig(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DistributeLicenseConfigResponse distributeLicenseConfig( + DistributeLicenseConfigRequest request) { + return distributeLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing + * account level to project level. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   DistributeLicenseConfigRequest request =
      +   *       DistributeLicenseConfigRequest.newBuilder()
      +   *           .setBillingAccountLicenseConfig(
      +   *               BillingAccountLicenseConfigName.of(
      +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *                   .toString())
      +   *           .setProjectNumber(828084015)
      +   *           .setLocation("location1901043637")
      +   *           .setLicenseCount(-1565113455)
      +   *           .setLicenseConfigId("licenseConfigId-372057250")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       licenseConfigServiceClient.distributeLicenseConfigCallable().futureCall(request);
      +   *   // Do something.
      +   *   DistributeLicenseConfigResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + distributeLicenseConfigCallable() { + return stub.distributeLicenseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to + * the billing account. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   BillingAccountLicenseConfigName billingAccountLicenseConfig =
      +   *       BillingAccountLicenseConfigName.of(
      +   *           "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
      +   *   LicenseConfigName licenseConfig =
      +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
      +   *   boolean fullRetract = true;
      +   *   long licenseCount = -1565113455;
      +   *   RetractLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.retractLicenseConfig(
      +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
      +   * }
      +   * }
      + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

      Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + *

      Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + @Nullable BillingAccountLicenseConfigName billingAccountLicenseConfig, + @Nullable LicenseConfigName licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString()) + .setLicenseConfig(licenseConfig == null ? null : licenseConfig.toString()) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to + * the billing account. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   BillingAccountLicenseConfigName billingAccountLicenseConfig =
      +   *       BillingAccountLicenseConfigName.of(
      +   *           "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
      +   *   String licenseConfig =
      +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
      +   *   boolean fullRetract = true;
      +   *   long licenseCount = -1565113455;
      +   *   RetractLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.retractLicenseConfig(
      +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
      +   * }
      +   * }
      + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

      Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + *

      Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + @Nullable BillingAccountLicenseConfigName billingAccountLicenseConfig, + String licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString()) + .setLicenseConfig(licenseConfig) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to + * the billing account. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   String billingAccountLicenseConfig =
      +   *       BillingAccountLicenseConfigName.of(
      +   *               "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *           .toString();
      +   *   LicenseConfigName licenseConfig =
      +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
      +   *   boolean fullRetract = true;
      +   *   long licenseCount = -1565113455;
      +   *   RetractLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.retractLicenseConfig(
      +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
      +   * }
      +   * }
      + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

      Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + *

      Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + String billingAccountLicenseConfig, + @Nullable LicenseConfigName licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .setLicenseConfig(licenseConfig == null ? null : licenseConfig.toString()) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to + * the billing account. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   String billingAccountLicenseConfig =
      +   *       BillingAccountLicenseConfigName.of(
      +   *               "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *           .toString();
      +   *   String licenseConfig =
      +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
      +   *   boolean fullRetract = true;
      +   *   long licenseCount = -1565113455;
      +   *   RetractLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.retractLicenseConfig(
      +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
      +   * }
      +   * }
      + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

      Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + *

      Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + String billingAccountLicenseConfig, + String licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .setLicenseConfig(licenseConfig) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to + * the billing account. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   RetractLicenseConfigRequest request =
      +   *       RetractLicenseConfigRequest.newBuilder()
      +   *           .setBillingAccountLicenseConfig(
      +   *               BillingAccountLicenseConfigName.of(
      +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *                   .toString())
      +   *           .setLicenseConfig(
      +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
      +   *           .setFullRetract(true)
      +   *           .setLicenseCount(-1565113455)
      +   *           .build();
      +   *   RetractLicenseConfigResponse response =
      +   *       licenseConfigServiceClient.retractLicenseConfig(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + RetractLicenseConfigRequest request) { + return retractLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the given project back to + * the billing account. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
      +   *     LicenseConfigServiceClient.create()) {
      +   *   RetractLicenseConfigRequest request =
      +   *       RetractLicenseConfigRequest.newBuilder()
      +   *           .setBillingAccountLicenseConfig(
      +   *               BillingAccountLicenseConfigName.of(
      +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
      +   *                   .toString())
      +   *           .setLicenseConfig(
      +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
      +   *           .setFullRetract(true)
      +   *           .setLicenseCount(-1565113455)
      +   *           .build();
      +   *   ApiFuture future =
      +   *       licenseConfigServiceClient.retractLicenseConfigCallable().futureCall(request);
      +   *   // Do something.
      +   *   RetractLicenseConfigResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + retractLicenseConfigCallable() { + return stub.retractLicenseConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLicenseConfigsPagedResponse + extends AbstractPagedListResponse< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + LicenseConfig, + ListLicenseConfigsPage, + ListLicenseConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLicenseConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLicenseConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLicenseConfigsPagedResponse(ListLicenseConfigsPage page) { + super(page, ListLicenseConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLicenseConfigsPage + extends AbstractPage< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + LicenseConfig, + ListLicenseConfigsPage> { + + private ListLicenseConfigsPage( + @Nullable PageContext + context, + @Nullable ListLicenseConfigsResponse response) { + super(context, response); + } + + private static ListLicenseConfigsPage createEmptyPage() { + return new ListLicenseConfigsPage(null, null); + } + + @Override + protected ListLicenseConfigsPage createPage( + @Nullable PageContext + context, + @Nullable ListLicenseConfigsResponse response) { + return new ListLicenseConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLicenseConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + LicenseConfig, + ListLicenseConfigsPage, + ListLicenseConfigsFixedSizeCollection> { + + private ListLicenseConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLicenseConfigsFixedSizeCollection createEmptyCollection() { + return new ListLicenseConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListLicenseConfigsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListLicenseConfigsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceSettings.java new file mode 100644 index 000000000000..0b4e2b8bb2b4 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceSettings.java @@ -0,0 +1,288 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.stub.LicenseConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LicenseConfigServiceClient}. + * + *

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

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

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

      For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createLicenseConfig: + * + *

      {@code
      + * // This snippet has been automatically generated and should be regarded as a code template only.
      + * // It will require modifications to work:
      + * // - It may require correct/in-range values for request initialization.
      + * // - It may require specifying regional endpoints when creating the service client as shown in
      + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      + * LicenseConfigServiceSettings.Builder licenseConfigServiceSettingsBuilder =
      + *     LicenseConfigServiceSettings.newBuilder();
      + * licenseConfigServiceSettingsBuilder
      + *     .createLicenseConfigSettings()
      + *     .setRetrySettings(
      + *         licenseConfigServiceSettingsBuilder
      + *             .createLicenseConfigSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
      + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
      + *             .setMaxAttempts(5)
      + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
      + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
      + *             .setRetryDelayMultiplier(1.3)
      + *             .setRpcTimeoutMultiplier(1.5)
      + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      + *             .build());
      + * LicenseConfigServiceSettings licenseConfigServiceSettings =
      + *     licenseConfigServiceSettingsBuilder.build();
      + * }
      + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class LicenseConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings + createLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).createLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings + updateLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).updateLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings getLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).getLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).listLicenseConfigsSettings(); + } + + /** Returns the object with the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings + distributeLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).distributeLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings + retractLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).retractLicenseConfigSettings(); + } + + public static final LicenseConfigServiceSettings create(LicenseConfigServiceStubSettings stub) + throws IOException { + return new LicenseConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return LicenseConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return LicenseConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return LicenseConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LicenseConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for LicenseConfigServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(LicenseConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(LicenseConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(LicenseConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(LicenseConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(LicenseConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public LicenseConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((LicenseConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings.Builder + createLicenseConfigSettings() { + return getStubSettingsBuilder().createLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings.Builder + updateLicenseConfigSettings() { + return getStubSettingsBuilder().updateLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings.Builder + getLicenseConfigSettings() { + return getStubSettingsBuilder().getLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings.Builder< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return getStubSettingsBuilder().listLicenseConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings.Builder< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigSettings() { + return getStubSettingsBuilder().distributeLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings.Builder + retractLicenseConfigSettings() { + return getStubSettingsBuilder().retractLicenseConfigSettings(); + } + + @Override + public LicenseConfigServiceSettings build() throws IOException { + return new LicenseConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java index c2ad1e1d6860..480d2b71a4ee 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java @@ -302,6 +302,7 @@ public final OperationFuture provisionProject * .setName(ProjectName.of("[PROJECT]").toString()) * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) * .build(); * Project response = projectServiceClient.provisionProjectAsync(request).get(); * } @@ -337,6 +338,7 @@ public final OperationFuture provisionProject * .setName(ProjectName.of("[PROJECT]").toString()) * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) * .build(); * OperationFuture future = * projectServiceClient.provisionProjectOperationCallable().futureCall(request); @@ -372,6 +374,7 @@ public final OperationFuture provisionProject * .setName(ProjectName.of("[PROJECT]").toString()) * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) * .build(); * ApiFuture future = * projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java index 71fb58c43e5d..4320e161aec5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java @@ -16,12 +16,21 @@ package com.google.cloud.discoveryengine.v1; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1.stub.ServingConfigServiceStub; import com.google.cloud.discoveryengine.v1.stub.ServingConfigServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; +import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; @@ -43,10 +52,12 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServingConfigServiceClient servingConfigServiceClient = * ServingConfigServiceClient.create()) { + * DataStoreName parent = + * DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); * ServingConfig servingConfig = ServingConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); + * String servingConfigId = "servingConfigId-831052759"; * ServingConfig response = - * servingConfigServiceClient.updateServingConfig(servingConfig, updateMask); + * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); * } * }

* @@ -62,6 +73,48 @@ * Method Variants * * + *

CreateServingConfig + *

Creates a ServingConfig. + *

Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. + *

A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a RESOURCE_EXHAUSTED error is returned. + * + *

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

+ *
    + *
  • createServingConfig(CreateServingConfigRequest request) + *

+ *

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

+ *
    + *
  • createServingConfig(DataStoreName parent, ServingConfig servingConfig, String servingConfigId) + *

  • createServingConfig(EngineName parent, ServingConfig servingConfig, String servingConfigId) + *

  • createServingConfig(String parent, ServingConfig servingConfig, String servingConfigId) + *

+ *

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

+ *
    + *
  • createServingConfigCallable() + *

+ * + * + * + *

DeleteServingConfig + *

Deletes a ServingConfig. + *

Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

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

+ *
    + *
  • deleteServingConfig(DeleteServingConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteServingConfig(ServingConfigName name) + *

  • deleteServingConfig(String name) + *

+ *

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

+ *
    + *
  • deleteServingConfigCallable() + *

+ * + * + * *

UpdateServingConfig *

Updates a ServingConfig. *

Returns a NOT_FOUND error if the ServingConfig does not exist. @@ -80,6 +133,47 @@ * * * + * + *

GetServingConfig + *

Gets a ServingConfig. + *

Returns a NotFound error if the ServingConfig does not exist. + * + *

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

+ *
    + *
  • getServingConfig(GetServingConfigRequest request) + *

+ *

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

+ *
    + *
  • getServingConfig(ServingConfigName name) + *

  • getServingConfig(String name) + *

+ *

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

+ *
    + *
  • getServingConfigCallable() + *

+ * + * + * + *

ListServingConfigs + *

Lists all ServingConfigs linked to this dataStore. + * + *

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

+ *
    + *
  • listServingConfigs(ListServingConfigsRequest request) + *

+ *

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

+ *
    + *
  • listServingConfigs(DataStoreName parent) + *

  • listServingConfigs(EngineName parent) + *

  • listServingConfigs(String parent) + *

+ *

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

+ *
    + *
  • listServingConfigsPagedCallable() + *

  • listServingConfigsCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -189,6 +283,376 @@ public ServingConfigServiceStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed + * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a RESOURCE_EXHAUSTED error is + * returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   DataStoreName parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
+   *   String servingConfigId = "servingConfigId-831052759";
+   *   ServingConfig response =
+   *       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param servingConfig Required. The ServingConfig to create. + * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the + * final component of the ServingConfig's resource name. + *

This value should be 4-63 characters, and valid characters are + * /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig( + @Nullable DataStoreName parent, ServingConfig servingConfig, String servingConfigId) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setServingConfig(servingConfig) + .setServingConfigId(servingConfigId) + .build(); + return createServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed + * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a RESOURCE_EXHAUSTED error is + * returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
+   *   String servingConfigId = "servingConfigId-831052759";
+   *   ServingConfig response =
+   *       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param servingConfig Required. The ServingConfig to create. + * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the + * final component of the ServingConfig's resource name. + *

This value should be 4-63 characters, and valid characters are + * /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig( + @Nullable EngineName parent, ServingConfig servingConfig, String servingConfigId) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setServingConfig(servingConfig) + .setServingConfigId(servingConfigId) + .build(); + return createServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed + * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a RESOURCE_EXHAUSTED error is + * returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   String parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *           .toString();
+   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
+   *   String servingConfigId = "servingConfigId-831052759";
+   *   ServingConfig response =
+   *       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param servingConfig Required. The ServingConfig to create. + * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the + * final component of the ServingConfig's resource name. + *

This value should be 4-63 characters, and valid characters are + * /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig( + String parent, ServingConfig servingConfig, String servingConfigId) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent(parent) + .setServingConfig(servingConfig) + .setServingConfigId(servingConfigId) + .build(); + return createServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed + * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a RESOURCE_EXHAUSTED error is + * returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   CreateServingConfigRequest request =
+   *       CreateServingConfigRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setServingConfig(ServingConfig.newBuilder().build())
+   *           .setServingConfigId("servingConfigId-831052759")
+   *           .build();
+   *   ServingConfig response = servingConfigServiceClient.createServingConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig(CreateServingConfigRequest request) { + return createServingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed + * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a RESOURCE_EXHAUSTED error is + * returned. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   CreateServingConfigRequest request =
+   *       CreateServingConfigRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setServingConfig(ServingConfig.newBuilder().build())
+   *           .setServingConfigId("servingConfigId-831052759")
+   *           .build();
+   *   ApiFuture future =
+   *       servingConfigServiceClient.createServingConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ServingConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createServingConfigCallable() { + return stub.createServingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   ServingConfigName name =
+   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]");
+   *   servingConfigServiceClient.deleteServingConfig(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ServingConfig to delete. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteServingConfig(@Nullable ServingConfigName name) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   String name =
+   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *           .toString();
+   *   servingConfigServiceClient.deleteServingConfig(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ServingConfig to delete. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteServingConfig(String name) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder().setName(name).build(); + deleteServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

Sample code: + * + *

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

Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   DeleteServingConfigRequest request =
+   *       DeleteServingConfigRequest.newBuilder()
+   *           .setName(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       servingConfigServiceClient.deleteServingConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteServingConfigCallable() { + return stub.deleteServingConfigCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a ServingConfig. @@ -297,6 +761,362 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques return stub.updateServingConfigCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

Returns a NotFound error if the ServingConfig does not exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   ServingConfigName name =
+   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]");
+   *   ServingConfig response = servingConfigServiceClient.getServingConfig(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ServingConfig to get. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig getServingConfig(@Nullable ServingConfigName name) { + GetServingConfigRequest request = + GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

Returns a NotFound error if the ServingConfig does not exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   String name =
+   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *           .toString();
+   *   ServingConfig response = servingConfigServiceClient.getServingConfig(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the ServingConfig to get. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig getServingConfig(String name) { + GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name).build(); + return getServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

Returns a NotFound error if the ServingConfig does not exist. + * + *

Sample code: + * + *

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

Returns a NotFound error if the ServingConfig does not exist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   GetServingConfigRequest request =
+   *       GetServingConfigRequest.newBuilder()
+   *           .setName(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       servingConfigServiceClient.getServingConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ServingConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getServingConfigCallable() { + return stub.getServingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   DataStoreName parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
+   *   for (ServingConfig element :
+   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable DataStoreName parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServingConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+   *   for (ServingConfig element :
+   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable EngineName parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServingConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   String parent =
+   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *           .toString();
+   *   for (ServingConfig element :
+   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(String parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder().setParent(parent).build(); + return listServingConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   ListServingConfigsRequest request =
+   *       ListServingConfigsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ServingConfig element :
+   *       servingConfigServiceClient.listServingConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs( + ListServingConfigsRequest request) { + return listServingConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   ListServingConfigsRequest request =
+   *       ListServingConfigsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       servingConfigServiceClient.listServingConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ServingConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listServingConfigsPagedCallable() { + return stub.listServingConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ServingConfigServiceClient servingConfigServiceClient =
+   *     ServingConfigServiceClient.create()) {
+   *   ListServingConfigsRequest request =
+   *       ListServingConfigsRequest.newBuilder()
+   *           .setParent(
+   *               DataStoreName.ofProjectLocationDataStoreName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListServingConfigsResponse response =
+   *         servingConfigServiceClient.listServingConfigsCallable().call(request);
+   *     for (ServingConfig element : response.getServingConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listServingConfigsCallable() { + return stub.listServingConfigsCallable(); + } + @Override public final void close() { stub.close(); @@ -326,4 +1146,87 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListServingConfigsPagedResponse + extends AbstractPagedListResponse< + ListServingConfigsRequest, + ListServingConfigsResponse, + ServingConfig, + ListServingConfigsPage, + ListServingConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListServingConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListServingConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListServingConfigsPagedResponse(ListServingConfigsPage page) { + super(page, ListServingConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListServingConfigsPage + extends AbstractPage< + ListServingConfigsRequest, + ListServingConfigsResponse, + ServingConfig, + ListServingConfigsPage> { + + private ListServingConfigsPage( + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { + super(context, response); + } + + private static ListServingConfigsPage createEmptyPage() { + return new ListServingConfigsPage(null, null); + } + + @Override + protected ListServingConfigsPage createPage( + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { + return new ListServingConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListServingConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListServingConfigsRequest, + ListServingConfigsResponse, + ServingConfig, + ListServingConfigsPage, + ListServingConfigsFixedSizeCollection> { + + private ListServingConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListServingConfigsFixedSizeCollection createEmptyCollection() { + return new ListServingConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListServingConfigsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListServingConfigsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java index fa76de717737..ad5744c5bd8c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -25,9 +27,11 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1.stub.ServingConfigServiceStubSettings; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -52,7 +56,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of updateServingConfig: + * of createServingConfig: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -63,10 +67,10 @@
  * ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder =
  *     ServingConfigServiceSettings.newBuilder();
  * servingConfigServiceSettingsBuilder
- *     .updateServingConfigSettings()
+ *     .createServingConfigSettings()
  *     .setRetrySettings(
  *         servingConfigServiceSettingsBuilder
- *             .updateServingConfigSettings()
+ *             .createServingConfigSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -90,12 +94,35 @@
 @Generated("by gapic-generator-java")
 public class ServingConfigServiceSettings extends ClientSettings {
 
+  /** Returns the object with the settings used for calls to createServingConfig. */
+  public UnaryCallSettings
+      createServingConfigSettings() {
+    return ((ServingConfigServiceStubSettings) getStubSettings()).createServingConfigSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deleteServingConfig. */
+  public UnaryCallSettings deleteServingConfigSettings() {
+    return ((ServingConfigServiceStubSettings) getStubSettings()).deleteServingConfigSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateServingConfig. */
   public UnaryCallSettings
       updateServingConfigSettings() {
     return ((ServingConfigServiceStubSettings) getStubSettings()).updateServingConfigSettings();
   }
 
+  /** Returns the object with the settings used for calls to getServingConfig. */
+  public UnaryCallSettings getServingConfigSettings() {
+    return ((ServingConfigServiceStubSettings) getStubSettings()).getServingConfigSettings();
+  }
+
+  /** Returns the object with the settings used for calls to listServingConfigs. */
+  public PagedCallSettings<
+          ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+      listServingConfigsSettings() {
+    return ((ServingConfigServiceStubSettings) getStubSettings()).listServingConfigsSettings();
+  }
+
   public static final ServingConfigServiceSettings create(ServingConfigServiceStubSettings stub)
       throws IOException {
     return new ServingConfigServiceSettings.Builder(stub.toBuilder()).build();
@@ -209,12 +236,37 @@ public Builder applyToAllUnaryMethods(
       return this;
     }
 
+    /** Returns the builder for the settings used for calls to createServingConfig. */
+    public UnaryCallSettings.Builder
+        createServingConfigSettings() {
+      return getStubSettingsBuilder().createServingConfigSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deleteServingConfig. */
+    public UnaryCallSettings.Builder
+        deleteServingConfigSettings() {
+      return getStubSettingsBuilder().deleteServingConfigSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateServingConfig. */
     public UnaryCallSettings.Builder
         updateServingConfigSettings() {
       return getStubSettingsBuilder().updateServingConfigSettings();
     }
 
+    /** Returns the builder for the settings used for calls to getServingConfig. */
+    public UnaryCallSettings.Builder
+        getServingConfigSettings() {
+      return getStubSettingsBuilder().getServingConfigSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to listServingConfigs. */
+    public PagedCallSettings.Builder<
+            ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+        listServingConfigsSettings() {
+      return getStubSettingsBuilder().listServingConfigsSettings();
+    }
+
     @Override
     public ServingConfigServiceSettings build() throws IOException {
       return new ServingConfigServiceSettings(this);
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java
index 50ee719502a0..96f0717391a9 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java
@@ -366,6 +366,7 @@ public final Session createSession(String parent, Session session) {
    *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
    *                   .toString())
    *           .setSession(Session.newBuilder().build())
+   *           .setSessionId("sessionId607796817")
    *           .build();
    *   Session response = sessionServiceClient.createSession(request);
    * }
@@ -401,6 +402,7 @@ public final Session createSession(CreateSessionRequest request) {
    *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
    *                   .toString())
    *           .setSession(Session.newBuilder().build())
+   *           .setSessionId("sessionId607796817")
    *           .build();
    *   ApiFuture future = sessionServiceClient.createSessionCallable().futureCall(request);
    *   // Do something.
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java
index dc5f867e0f28..b388a2a4b790 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java
@@ -54,9 +54,8 @@
  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
  *   UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
- *   for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) {
- *     // doThingsWith(element);
- *   }
+ *   ListLicenseConfigsUsageStatsResponse response =
+ *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
  * }
  * }
* @@ -92,6 +91,25 @@ * * * + *

ListLicenseConfigsUsageStats + *

Lists all the [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s associated with the project. + * + *

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

+ *
    + *
  • listLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest request) + *

+ *

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

+ *
    + *
  • listLicenseConfigsUsageStats(UserStoreName parent) + *

  • listLicenseConfigsUsageStats(String parent) + *

+ *

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

+ *
    + *
  • listLicenseConfigsUsageStatsCallable() + *

+ * + * + * *

BatchUpdateUserLicenses *

Updates the User License. This method is used for batch assign/unassign licenses to users. * @@ -260,7 +278,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * }

* - * @param parent Required. The parent [UserStore][] resource name, format: + * @param parent Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore] + * resource name, format: * `projects/{project}/locations/{location}/userStores/{user_store_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -292,7 +311,8 @@ public final ListUserLicensesPagedResponse listUserLicenses(@Nullable UserStoreN * } * }
* - * @param parent Required. The parent [UserStore][] resource name, format: + * @param parent Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore] + * resource name, format: * `projects/{project}/locations/{location}/userStores/{user_store_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -321,6 +341,7 @@ public final ListUserLicensesPagedResponse listUserLicenses(String parent) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * for (UserLicense element : userLicenseServiceClient.listUserLicenses(request).iterateAll()) { * // doThingsWith(element); @@ -354,6 +375,7 @@ public final ListUserLicensesPagedResponse listUserLicenses(ListUserLicensesRequ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * ApiFuture future = * userLicenseServiceClient.listUserLicensesPagedCallable().futureCall(request); @@ -388,6 +410,7 @@ public final ListUserLicensesPagedResponse listUserLicenses(ListUserLicensesRequ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { * ListUserLicensesResponse response = @@ -410,6 +433,135 @@ public final ListUserLicensesPagedResponse listUserLicenses(ListUserLicensesRequ return stub.listUserLicensesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s associated + * with the project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+   *   UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+   *   ListLicenseConfigsUsageStatsResponse response =
+   *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
+   * }
+   * }
+ * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats( + @Nullable UserStoreName parent) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLicenseConfigsUsageStats(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s associated + * with the project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+   *   String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
+   *   ListLicenseConfigsUsageStatsResponse response =
+   *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
+   * }
+   * }
+ * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats(String parent) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder().setParent(parent).build(); + return listLicenseConfigsUsageStats(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s associated + * with the project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+   *   ListLicenseConfigsUsageStatsRequest request =
+   *       ListLicenseConfigsUsageStatsRequest.newBuilder()
+   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+   *           .build();
+   *   ListLicenseConfigsUsageStatsResponse response =
+   *       userLicenseServiceClient.listLicenseConfigsUsageStats(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats( + ListLicenseConfigsUsageStatsRequest request) { + return listLicenseConfigsUsageStatsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s associated + * with the project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
+   *   ListLicenseConfigsUsageStatsRequest request =
+   *       ListLicenseConfigsUsageStatsRequest.newBuilder()
+   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       userLicenseServiceClient.listLicenseConfigsUsageStatsCallable().futureCall(request);
+   *   // Do something.
+   *   ListLicenseConfigsUsageStatsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsCallable() { + return stub.listLicenseConfigsUsageStatsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates the User License. This method is used for batch assign/unassign licenses to users. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java index 5652c6fadb3f..527eb000b3ab 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java @@ -57,7 +57,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of listUserLicenses: + * of listLicenseConfigsUsageStats: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -68,10 +68,10 @@
  * UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder =
  *     UserLicenseServiceSettings.newBuilder();
  * userLicenseServiceSettingsBuilder
- *     .listUserLicensesSettings()
+ *     .listLicenseConfigsUsageStatsSettings()
  *     .setRetrySettings(
  *         userLicenseServiceSettingsBuilder
- *             .listUserLicensesSettings()
+ *             .listLicenseConfigsUsageStatsSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -128,6 +128,14 @@ public class UserLicenseServiceSettings extends ClientSettings
+      listLicenseConfigsUsageStatsSettings() {
+    return ((UserLicenseServiceStubSettings) getStubSettings())
+        .listLicenseConfigsUsageStatsSettings();
+  }
+
   /** Returns the object with the settings used for calls to batchUpdateUserLicenses. */
   public UnaryCallSettings
       batchUpdateUserLicensesSettings() {
@@ -263,6 +271,13 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().listUserLicensesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLicenseConfigsUsageStats. */
+    public UnaryCallSettings.Builder<
+            ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse>
+        listLicenseConfigsUsageStatsSettings() {
+      return getStubSettingsBuilder().listLicenseConfigsUsageStatsSettings();
+    }
+
     /** Returns the builder for the settings used for calls to batchUpdateUserLicenses. */
     public UnaryCallSettings.Builder
         batchUpdateUserLicensesSettings() {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClient.java
new file mode 100644
index 000000000000..79aca0f79696
--- /dev/null
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClient.java
@@ -0,0 +1,437 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.discoveryengine.v1;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.discoveryengine.v1.stub.UserStoreServiceStub;
+import com.google.cloud.discoveryengine.v1.stub.UserStoreServiceStubSettings;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+import org.jspecify.annotations.Nullable;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Service for managing User Stores.
+ *
+ * 

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

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

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

GetUserStore

Gets the User Store.

+ *

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

+ *
    + *
  • getUserStore(GetUserStoreRequest request) + *

+ *

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

+ *
    + *
  • getUserStore(UserStoreName name) + *

  • getUserStore(String name) + *

+ *

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

+ *
    + *
  • getUserStoreCallable() + *

+ *

UpdateUserStore

Updates the User Store.

+ *

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

+ *
    + *
  • updateUserStore(UpdateUserStoreRequest request) + *

+ *

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

+ *
    + *
  • updateUserStore(UserStore userStore, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateUserStoreCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class UserStoreServiceClient implements BackgroundResource { + private final @Nullable UserStoreServiceSettings settings; + private final UserStoreServiceStub stub; + + /** Constructs an instance of UserStoreServiceClient with default settings. */ + public static final UserStoreServiceClient create() throws IOException { + return create(UserStoreServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of UserStoreServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final UserStoreServiceClient create(UserStoreServiceSettings settings) + throws IOException { + return new UserStoreServiceClient(settings); + } + + /** + * Constructs an instance of UserStoreServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(UserStoreServiceSettings). + */ + public static final UserStoreServiceClient create(UserStoreServiceStub stub) { + return new UserStoreServiceClient(stub); + } + + /** + * Constructs an instance of UserStoreServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected UserStoreServiceClient(UserStoreServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((UserStoreServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected UserStoreServiceClient(UserStoreServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable UserStoreServiceSettings getSettings() { + return settings; + } + + public UserStoreServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the User Store. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+   *   UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
+   *   UserStore response = userStoreServiceClient.getUserStore(name);
+   * }
+   * }
+ * + * @param name Required. The name of the User Store to get. Format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserStore getUserStore(@Nullable UserStoreName name) { + GetUserStoreRequest request = + GetUserStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getUserStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the User Store. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+   *   String name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
+   *   UserStore response = userStoreServiceClient.getUserStore(name);
+   * }
+   * }
+ * + * @param name Required. The name of the User Store to get. Format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserStore getUserStore(String name) { + GetUserStoreRequest request = GetUserStoreRequest.newBuilder().setName(name).build(); + return getUserStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the User Store. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+   *   GetUserStoreRequest request =
+   *       GetUserStoreRequest.newBuilder()
+   *           .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       userStoreServiceClient.getUserStoreCallable().futureCall(request);
+   *   // Do something.
+   *   UserStore response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getUserStoreCallable() { + return stub.getUserStoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User Store. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+   *   UserStore userStore = UserStore.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UserStore response = userStoreServiceClient.updateUserStore(userStore, updateMask);
+   * }
+   * }
+ * + * @param userStore Required. The User Store to update. Format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}` + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserStore updateUserStore(UserStore userStore, FieldMask updateMask) { + UpdateUserStoreRequest request = + UpdateUserStoreRequest.newBuilder() + .setUserStore(userStore) + .setUpdateMask(updateMask) + .build(); + return updateUserStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User Store. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+   *   UpdateUserStoreRequest request =
+   *       UpdateUserStoreRequest.newBuilder()
+   *           .setUserStore(UserStore.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   UserStore response = userStoreServiceClient.updateUserStore(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserStore updateUserStore(UpdateUserStoreRequest request) { + return updateUserStoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User Store. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
+   *   UpdateUserStoreRequest request =
+   *       UpdateUserStoreRequest.newBuilder()
+   *           .setUserStore(UserStore.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       userStoreServiceClient.updateUserStoreCallable().futureCall(request);
+   *   // Do something.
+   *   UserStore response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateUserStoreCallable() { + return stub.updateUserStoreCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceSettings.java new file mode 100644 index 000000000000..3a4765149cb4 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceSettings.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.stub.UserStoreServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserStoreServiceClient}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getUserStore: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * UserStoreServiceSettings.Builder userStoreServiceSettingsBuilder =
+ *     UserStoreServiceSettings.newBuilder();
+ * userStoreServiceSettingsBuilder
+ *     .getUserStoreSettings()
+ *     .setRetrySettings(
+ *         userStoreServiceSettingsBuilder
+ *             .getUserStoreSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * UserStoreServiceSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class UserStoreServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getUserStore. */ + public UnaryCallSettings getUserStoreSettings() { + return ((UserStoreServiceStubSettings) getStubSettings()).getUserStoreSettings(); + } + + /** Returns the object with the settings used for calls to updateUserStore. */ + public UnaryCallSettings updateUserStoreSettings() { + return ((UserStoreServiceStubSettings) getStubSettings()).updateUserStoreSettings(); + } + + public static final UserStoreServiceSettings create(UserStoreServiceStubSettings stub) + throws IOException { + return new UserStoreServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return UserStoreServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return UserStoreServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return UserStoreServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return UserStoreServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return UserStoreServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return UserStoreServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return UserStoreServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserStoreServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserStoreServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for UserStoreServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(UserStoreServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(UserStoreServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(UserStoreServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(UserStoreServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(UserStoreServiceStubSettings.newHttpJsonBuilder()); + } + + public UserStoreServiceStubSettings.Builder getStubSettingsBuilder() { + return ((UserStoreServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getUserStore. */ + public UnaryCallSettings.Builder getUserStoreSettings() { + return getStubSettingsBuilder().getUserStoreSettings(); + } + + /** Returns the builder for the settings used for calls to updateUserStore. */ + public UnaryCallSettings.Builder updateUserStoreSettings() { + return getStubSettingsBuilder().updateUserStoreSettings(); + } + + @Override + public UserStoreServiceSettings build() throws IOException { + return new UserStoreServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClient.java new file mode 100644 index 000000000000..4684bdae586a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClient.java @@ -0,0 +1,473 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.stub.WidgetConfigServiceStub; +import com.google.cloud.discoveryengine.v1.stub.WidgetConfigServiceStubSettings; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing + * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration. + * + *

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

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

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

GetWidgetConfig

Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].

+ *

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

+ *
    + *
  • getWidgetConfig(GetWidgetConfigRequest request) + *

+ *

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

+ *
    + *
  • getWidgetConfig(WidgetConfigName name) + *

  • getWidgetConfig(String name) + *

+ *

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

+ *
    + *
  • getWidgetConfigCallable() + *

+ *

UpdateWidgetConfig

Update a WidgetConfig.

+ *

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

+ *
    + *
  • updateWidgetConfig(UpdateWidgetConfigRequest request) + *

+ *

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

+ *
    + *
  • updateWidgetConfig(WidgetConfig widgetConfig, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateWidgetConfigCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+   *   WidgetConfigName name =
+   *       WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]");
+   *   WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(name);
+   * }
+   * }
+ * + * @param name Required. Full WidgetConfig resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WidgetConfig getWidgetConfig(@Nullable WidgetConfigName name) { + GetWidgetConfigRequest request = + GetWidgetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getWidgetConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+   *   String name =
+   *       WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName(
+   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]")
+   *           .toString();
+   *   WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(name);
+   * }
+   * }
+ * + * @param name Required. Full WidgetConfig resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WidgetConfig getWidgetConfig(String name) { + GetWidgetConfigRequest request = GetWidgetConfigRequest.newBuilder().setName(name).build(); + return getWidgetConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+   *   GetWidgetConfigRequest request =
+   *       GetWidgetConfigRequest.newBuilder()
+   *           .setName(
+   *               WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]")
+   *                   .toString())
+   *           .setAcceptCache(true)
+   *           .setGetWidgetConfigRequestOption(
+   *               GetWidgetConfigRequest.GetWidgetConfigRequestOption.newBuilder().build())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .setModelInfoView(ModelInfoView.forNumber(0))
+   *           .build();
+   *   WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WidgetConfig getWidgetConfig(GetWidgetConfigRequest request) { + return getWidgetConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+   *   GetWidgetConfigRequest request =
+   *       GetWidgetConfigRequest.newBuilder()
+   *           .setName(
+   *               WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]")
+   *                   .toString())
+   *           .setAcceptCache(true)
+   *           .setGetWidgetConfigRequestOption(
+   *               GetWidgetConfigRequest.GetWidgetConfigRequestOption.newBuilder().build())
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .setModelInfoView(ModelInfoView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       widgetConfigServiceClient.getWidgetConfigCallable().futureCall(request);
+   *   // Do something.
+   *   WidgetConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getWidgetConfigCallable() { + return stub.getWidgetConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a WidgetConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+   *   WidgetConfig widgetConfig = WidgetConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   WidgetConfig response =
+   *       widgetConfigServiceClient.updateWidgetConfig(widgetConfig, updateMask);
+   * }
+   * }
+ * + * @param widgetConfig Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] + * to update. + *

If the caller does not have permission to update the + * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a PERMISSION_DENIED + * error is returned. + *

If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update does not + * exist, a NOT_FOUND error is returned. + * @param updateMask Indicates which fields in the provided + * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The following are + * the only supported fields: + *

    + *
  • [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete] + *
+ *

If not set, all supported fields are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WidgetConfig updateWidgetConfig(WidgetConfig widgetConfig, FieldMask updateMask) { + UpdateWidgetConfigRequest request = + UpdateWidgetConfigRequest.newBuilder() + .setWidgetConfig(widgetConfig) + .setUpdateMask(updateMask) + .build(); + return updateWidgetConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a WidgetConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+   *   UpdateWidgetConfigRequest request =
+   *       UpdateWidgetConfigRequest.newBuilder()
+   *           .setWidgetConfig(WidgetConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       widgetConfigServiceClient.updateWidgetConfigCallable().futureCall(request);
+   *   // Do something.
+   *   WidgetConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateWidgetConfigCallable() { + return stub.updateWidgetConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceSettings.java new file mode 100644 index 000000000000..41d56b2cff88 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceSettings.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.stub.WidgetConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link WidgetConfigServiceClient}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getWidgetConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WidgetConfigServiceSettings.Builder widgetConfigServiceSettingsBuilder =
+ *     WidgetConfigServiceSettings.newBuilder();
+ * widgetConfigServiceSettingsBuilder
+ *     .getWidgetConfigSettings()
+ *     .setRetrySettings(
+ *         widgetConfigServiceSettingsBuilder
+ *             .getWidgetConfigSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * WidgetConfigServiceSettings widgetConfigServiceSettings =
+ *     widgetConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class WidgetConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getWidgetConfig. */ + public UnaryCallSettings getWidgetConfigSettings() { + return ((WidgetConfigServiceStubSettings) getStubSettings()).getWidgetConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateWidgetConfig. */ + public UnaryCallSettings updateWidgetConfigSettings() { + return ((WidgetConfigServiceStubSettings) getStubSettings()).updateWidgetConfigSettings(); + } + + public static final WidgetConfigServiceSettings create(WidgetConfigServiceStubSettings stub) + throws IOException { + return new WidgetConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return WidgetConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return WidgetConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return WidgetConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return WidgetConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return WidgetConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return WidgetConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return WidgetConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WidgetConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected WidgetConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for WidgetConfigServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(WidgetConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(WidgetConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(WidgetConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(WidgetConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(WidgetConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public WidgetConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((WidgetConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getWidgetConfig. */ + public UnaryCallSettings.Builder + getWidgetConfigSettings() { + return getStubSettingsBuilder().getWidgetConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateWidgetConfig. */ + public UnaryCallSettings.Builder + updateWidgetConfigSettings() { + return getStubSettingsBuilder().updateWidgetConfigSettings(); + } + + @Override + public WidgetConfigServiceSettings build() throws IOException { + return new WidgetConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json index 9f99b2a8c6ac..a6a48a8be061 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/gapic_metadata.json @@ -5,13 +5,43 @@ "protoPackage": "google.cloud.discoveryengine.v1", "libraryPackage": "com.google.cloud.discoveryengine.v1", "services": { + "AclConfigService": { + "clients": { + "grpc": { + "libraryClient": "AclConfigServiceClient", + "rpcs": { + "GetAclConfig": { + "methods": ["getAclConfig", "getAclConfig", "getAclConfig", "getAclConfigCallable"] + }, + "UpdateAclConfig": { + "methods": ["updateAclConfig", "updateAclConfigCallable"] + } + } + } + } + }, "AssistantService": { "clients": { "grpc": { "libraryClient": "AssistantServiceClient", "rpcs": { + "CreateAssistant": { + "methods": ["createAssistant", "createAssistantCallable"] + }, + "DeleteAssistant": { + "methods": ["deleteAssistant", "deleteAssistant", "deleteAssistant", "deleteAssistantCallable"] + }, + "GetAssistant": { + "methods": ["getAssistant", "getAssistant", "getAssistant", "getAssistantCallable"] + }, + "ListAssistants": { + "methods": ["listAssistants", "listAssistants", "listAssistants", "listAssistantsPagedCallable", "listAssistantsCallable"] + }, "StreamAssist": { "methods": ["streamAssistCallable"] + }, + "UpdateAssistant": { + "methods": ["updateAssistant", "updateAssistant", "updateAssistantCallable"] } } } @@ -38,11 +68,32 @@ } } }, + "CollectionService": { + "clients": { + "grpc": { + "libraryClient": "CollectionServiceClient", + "rpcs": { + "DeleteCollection": { + "methods": ["deleteCollectionAsync", "deleteCollectionAsync", "deleteCollectionAsync", "deleteCollectionOperationCallable", "deleteCollectionCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + } + } + } + } + }, "CompletionService": { "clients": { "grpc": { "libraryClient": "CompletionServiceClient", "rpcs": { + "AdvancedCompleteQuery": { + "methods": ["advancedCompleteQuery", "advancedCompleteQueryCallable"] + }, "CompleteQuery": { "methods": ["completeQuery", "completeQueryCallable"] }, @@ -137,6 +188,24 @@ } } }, + "DataConnectorService": { + "clients": { + "grpc": { + "libraryClient": "DataConnectorServiceClient", + "rpcs": { + "GetDataConnector": { + "methods": ["getDataConnector", "getDataConnector", "getDataConnector", "getDataConnectorCallable"] + }, + "SetUpDataConnector": { + "methods": ["setUpDataConnectorAsync", "setUpDataConnectorAsync", "setUpDataConnectorAsync", "setUpDataConnectorOperationCallable", "setUpDataConnectorCallable"] + }, + "UpdateDataConnector": { + "methods": ["updateDataConnector", "updateDataConnector", "updateDataConnectorCallable"] + } + } + } + } + }, "DataStoreService": { "clients": { "grpc": { @@ -151,9 +220,15 @@ "GetDataStore": { "methods": ["getDataStore", "getDataStore", "getDataStore", "getDataStoreCallable"] }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, "ListDataStores": { "methods": ["listDataStores", "listDataStores", "listDataStores", "listDataStoresPagedCallable", "listDataStoresCallable"] }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, "UpdateDataStore": { "methods": ["updateDataStore", "updateDataStore", "updateDataStoreCallable"] } @@ -208,9 +283,15 @@ "GetEngine": { "methods": ["getEngine", "getEngine", "getEngine", "getEngineCallable"] }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, "ListEngines": { "methods": ["listEngines", "listEngines", "listEngines", "listEnginesPagedCallable", "listEnginesCallable"] }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, "UpdateEngine": { "methods": ["updateEngine", "updateEngine", "updateEngineCallable"] } @@ -266,6 +347,33 @@ } } }, + "LicenseConfigService": { + "clients": { + "grpc": { + "libraryClient": "LicenseConfigServiceClient", + "rpcs": { + "CreateLicenseConfig": { + "methods": ["createLicenseConfig", "createLicenseConfig", "createLicenseConfig", "createLicenseConfigCallable"] + }, + "DistributeLicenseConfig": { + "methods": ["distributeLicenseConfig", "distributeLicenseConfig", "distributeLicenseConfig", "distributeLicenseConfigCallable"] + }, + "GetLicenseConfig": { + "methods": ["getLicenseConfig", "getLicenseConfig", "getLicenseConfig", "getLicenseConfigCallable"] + }, + "ListLicenseConfigs": { + "methods": ["listLicenseConfigs", "listLicenseConfigs", "listLicenseConfigs", "listLicenseConfigsPagedCallable", "listLicenseConfigsCallable"] + }, + "RetractLicenseConfig": { + "methods": ["retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfigCallable"] + }, + "UpdateLicenseConfig": { + "methods": ["updateLicenseConfig", "updateLicenseConfig", "updateLicenseConfigCallable"] + } + } + } + } + }, "ProjectService": { "clients": { "grpc": { @@ -361,6 +469,18 @@ "grpc": { "libraryClient": "ServingConfigServiceClient", "rpcs": { + "CreateServingConfig": { + "methods": ["createServingConfig", "createServingConfig", "createServingConfig", "createServingConfig", "createServingConfigCallable"] + }, + "DeleteServingConfig": { + "methods": ["deleteServingConfig", "deleteServingConfig", "deleteServingConfig", "deleteServingConfigCallable"] + }, + "GetServingConfig": { + "methods": ["getServingConfig", "getServingConfig", "getServingConfig", "getServingConfigCallable"] + }, + "ListServingConfigs": { + "methods": ["listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigsPagedCallable", "listServingConfigsCallable"] + }, "UpdateServingConfig": { "methods": ["updateServingConfig", "updateServingConfig", "updateServingConfigCallable"] } @@ -475,12 +595,45 @@ "BatchUpdateUserLicenses": { "methods": ["batchUpdateUserLicensesAsync", "batchUpdateUserLicensesOperationCallable", "batchUpdateUserLicensesCallable"] }, + "ListLicenseConfigsUsageStats": { + "methods": ["listLicenseConfigsUsageStats", "listLicenseConfigsUsageStats", "listLicenseConfigsUsageStats", "listLicenseConfigsUsageStatsCallable"] + }, "ListUserLicenses": { "methods": ["listUserLicenses", "listUserLicenses", "listUserLicenses", "listUserLicensesPagedCallable", "listUserLicensesCallable"] } } } } + }, + "UserStoreService": { + "clients": { + "grpc": { + "libraryClient": "UserStoreServiceClient", + "rpcs": { + "GetUserStore": { + "methods": ["getUserStore", "getUserStore", "getUserStore", "getUserStoreCallable"] + }, + "UpdateUserStore": { + "methods": ["updateUserStore", "updateUserStore", "updateUserStoreCallable"] + } + } + } + } + }, + "WidgetConfigService": { + "clients": { + "grpc": { + "libraryClient": "WidgetConfigServiceClient", + "rpcs": { + "GetWidgetConfig": { + "methods": ["getWidgetConfig", "getWidgetConfig", "getWidgetConfig", "getWidgetConfigCallable"] + }, + "UpdateWidgetConfig": { + "methods": ["updateWidgetConfig", "updateWidgetConfig", "updateWidgetConfigCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java index fb5d4edd3f7f..080cbe34e2f6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/package-info.java @@ -19,6 +19,25 @@ * *

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

======================= AclConfigServiceClient ======================= + * + *

Service Description: Service for managing Acl Configuration. + * + *

Sample for AclConfigServiceClient: + * + *

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

======================= AssistantServiceClient ======================= * *

Service Description: Service for managing Assistant configuration and assisting users. @@ -32,27 +51,14 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { - * StreamAssistRequest request = - * StreamAssistRequest.newBuilder() - * .setName( - * AssistantName.of( - * "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") - * .toString()) - * .setQuery(Query.newBuilder().build()) - * .setSession( - * SessionName.ofProjectLocationDataStoreSessionName( - * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") - * .toString()) - * .setUserMetadata(AssistUserMetadata.newBuilder().build()) - * .setAgentsSpec(StreamAssistRequest.AgentsSpec.newBuilder().build()) - * .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build()) - * .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build()) + * CreateAssistantRequest request = + * CreateAssistantRequest.newBuilder() + * .setParent( + * EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + * .setAssistant(Assistant.newBuilder().build()) + * .setAssistantId("assistantId-324518759") * .build(); - * ServerStream stream = - * assistantServiceClient.streamAssistCallable().call(request); - * for (StreamAssistResponse response : stream) { - * // Do something when a response is received. - * } + * Assistant response = assistantServiceClient.createAssistant(request); * } * }

* @@ -74,6 +80,25 @@ * } * }
* + *

======================= CollectionServiceClient ======================= + * + *

Service Description: Service for managing + * [Collection][google.cloud.discoveryengine.v1.Collection]s. + * + *

Sample for CollectionServiceClient: + * + *

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

======================= CompletionServiceClient ======================= * *

Service Description: Service for Auto-Completion. @@ -148,6 +173,25 @@ * } * }

* + *

======================= DataConnectorServiceClient ======================= + * + *

Service Description: Service for data connector management. + * + *

Sample for DataConnectorServiceClient: + * + *

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

======================= DataStoreServiceClient ======================= * *

Service Description: Service for managing @@ -260,6 +304,28 @@ * } * } * + *

======================= LicenseConfigServiceClient ======================= + * + *

Service Description: Service for managing license config related resources. + * + *

Sample for LicenseConfigServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseConfigServiceClient licenseConfigServiceClient =
+ *     LicenseConfigServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
+ *   String licenseConfigId = "licenseConfigId-372057250";
+ *   LicenseConfig response =
+ *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
+ * }
+ * }
+ * *

======================= ProjectServiceClient ======================= * *

Service Description: Service for operations on the @@ -466,10 +532,12 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServingConfigServiceClient servingConfigServiceClient = * ServingConfigServiceClient.create()) { + * DataStoreName parent = + * DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); * ServingConfig servingConfig = ServingConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); + * String servingConfigId = "servingConfigId-831052759"; * ServingConfig response = - * servingConfigServiceClient.updateServingConfig(servingConfig, updateMask); + * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); * } * } * @@ -555,9 +623,47 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { * UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); - * for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) { - * // doThingsWith(element); - * } + * ListLicenseConfigsUsageStatsResponse response = + * userLicenseServiceClient.listLicenseConfigsUsageStats(parent); + * } + * } + * + *

======================= UserStoreServiceClient ======================= + * + *

Service Description: Service for managing User Stores. + * + *

Sample for UserStoreServiceClient: + * + *

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

======================= WidgetConfigServiceClient ======================= + * + *

Service Description: Service for managing + * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration. + * + *

Sample for WidgetConfigServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) {
+ *   WidgetConfigName name =
+ *       WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName(
+ *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]");
+ *   WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(name);
  * }
  * }
*/ diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStub.java new file mode 100644 index 000000000000..46caf763f983 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStub.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AclConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class AclConfigServiceStub implements BackgroundResource { + + public UnaryCallable updateAclConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclConfigCallable()"); + } + + public UnaryCallable getAclConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getAclConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStubSettings.java new file mode 100644 index 000000000000..a22e13bfb11e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AclConfigServiceStubSettings.java @@ -0,0 +1,373 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AclConfigServiceStub}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of updateAclConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder =
+ *     AclConfigServiceStubSettings.newBuilder();
+ * aclConfigServiceSettingsBuilder
+ *     .updateAclConfigSettings()
+ *     .setRetrySettings(
+ *         aclConfigServiceSettingsBuilder
+ *             .updateAclConfigSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AclConfigServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings updateAclConfigSettings; + private final UnaryCallSettings getAclConfigSettings; + + /** Returns the object with the settings used for calls to updateAclConfig. */ + public UnaryCallSettings updateAclConfigSettings() { + return updateAclConfigSettings; + } + + /** Returns the object with the settings used for calls to getAclConfig. */ + public UnaryCallSettings getAclConfigSettings() { + return getAclConfigSettings; + } + + public AclConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAclConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAclConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AclConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AclConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AclConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AclConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateAclConfigSettings = settingsBuilder.updateAclConfigSettings().build(); + getAclConfigSettings = settingsBuilder.getAclConfigSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AclConfigServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + updateAclConfigSettings; + private final UnaryCallSettings.Builder getAclConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + updateAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateAclConfigSettings, getAclConfigSettings); + initDefaults(this); + } + + protected Builder(AclConfigServiceStubSettings settings) { + super(settings); + + updateAclConfigSettings = settings.updateAclConfigSettings.toBuilder(); + getAclConfigSettings = settings.getAclConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateAclConfigSettings, getAclConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateAclConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getAclConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateAclConfig. */ + public UnaryCallSettings.Builder updateAclConfigSettings() { + return updateAclConfigSettings; + } + + /** Returns the builder for the settings used for calls to getAclConfig. */ + public UnaryCallSettings.Builder getAclConfigSettings() { + return getAclConfigSettings; + } + + @Override + public AclConfigServiceStubSettings build() throws IOException { + return new AclConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStub.java index 836d28fce466..69da21ebbb5f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStub.java @@ -16,10 +16,21 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsResponse; import com.google.cloud.discoveryengine.v1.StreamAssistRequest; import com.google.cloud.discoveryengine.v1.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1.UpdateAssistantRequest; +import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; @@ -37,6 +48,31 @@ public ServerStreamingCallable stream throw new UnsupportedOperationException("Not implemented: streamAssistCallable()"); } + public UnaryCallable createAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: createAssistantCallable()"); + } + + public UnaryCallable deleteAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAssistantCallable()"); + } + + public UnaryCallable updateAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: updateAssistantCallable()"); + } + + public UnaryCallable getAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: getAssistantCallable()"); + } + + public UnaryCallable + listAssistantsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAssistantsPagedCallable()"); + } + + public UnaryCallable listAssistantsCallable() { + throw new UnsupportedOperationException("Not implemented: listAssistantsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java index 8c6a2ef27b9f..503e9934f7bf 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java @@ -16,7 +16,10 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; @@ -29,20 +32,34 @@ import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsResponse; import com.google.cloud.discoveryengine.v1.StreamAssistRequest; import com.google.cloud.discoveryengine.v1.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1.UpdateAssistantRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.protobuf.Empty; import java.io.IOException; import java.time.Duration; import java.util.List; @@ -68,7 +85,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of streamAssist: + * of createAssistant: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -79,10 +96,10 @@
  * AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder =
  *     AssistantServiceStubSettings.newBuilder();
  * assistantServiceSettingsBuilder
- *     .streamAssistSettings()
+ *     .createAssistantSettings()
  *     .setRetrySettings(
  *         assistantServiceSettingsBuilder
- *             .streamAssistSettings()
+ *             .createAssistantSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -107,10 +124,74 @@
 public class AssistantServiceStubSettings extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
 
   private final ServerStreamingCallSettings
       streamAssistSettings;
+  private final UnaryCallSettings createAssistantSettings;
+  private final UnaryCallSettings deleteAssistantSettings;
+  private final UnaryCallSettings updateAssistantSettings;
+  private final UnaryCallSettings getAssistantSettings;
+  private final PagedCallSettings<
+          ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+      listAssistantsSettings;
+
+  private static final PagedListDescriptor
+      LIST_ASSISTANTS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListAssistantsRequest injectToken(ListAssistantsRequest payload, String token) {
+              return ListAssistantsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListAssistantsRequest injectPageSize(
+                ListAssistantsRequest payload, int pageSize) {
+              return ListAssistantsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListAssistantsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListAssistantsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListAssistantsResponse payload) {
+              return payload.getAssistantsList();
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+      LIST_ASSISTANTS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListAssistantsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_ASSISTANTS_PAGE_STR_DESC, request, context);
+              return ListAssistantsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
 
   /** Returns the object with the settings used for calls to streamAssist. */
   public ServerStreamingCallSettings
@@ -118,6 +199,33 @@ public class AssistantServiceStubSettings extends StubSettings createAssistantSettings() {
+    return createAssistantSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deleteAssistant. */
+  public UnaryCallSettings deleteAssistantSettings() {
+    return deleteAssistantSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateAssistant. */
+  public UnaryCallSettings updateAssistantSettings() {
+    return updateAssistantSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getAssistant. */
+  public UnaryCallSettings getAssistantSettings() {
+    return getAssistantSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listAssistants. */
+  public PagedCallSettings<
+          ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+      listAssistantsSettings() {
+    return listAssistantsSettings;
+  }
+
   public AssistantServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -230,6 +338,11 @@ protected AssistantServiceStubSettings(Builder settingsBuilder) throws IOExcepti
     super(settingsBuilder);
 
     streamAssistSettings = settingsBuilder.streamAssistSettings().build();
+    createAssistantSettings = settingsBuilder.createAssistantSettings().build();
+    deleteAssistantSettings = settingsBuilder.deleteAssistantSettings().build();
+    updateAssistantSettings = settingsBuilder.updateAssistantSettings().build();
+    getAssistantSettings = settingsBuilder.getAssistantSettings().build();
+    listAssistantsSettings = settingsBuilder.listAssistantsSettings().build();
   }
 
   @Override
@@ -246,6 +359,15 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders;
     private final ServerStreamingCallSettings.Builder
         streamAssistSettings;
+    private final UnaryCallSettings.Builder
+        createAssistantSettings;
+    private final UnaryCallSettings.Builder deleteAssistantSettings;
+    private final UnaryCallSettings.Builder
+        updateAssistantSettings;
+    private final UnaryCallSettings.Builder getAssistantSettings;
+    private final PagedCallSettings.Builder<
+            ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+        listAssistantsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -253,7 +375,12 @@ public static class Builder extends StubSettings.Builder> definitions =
           ImmutableMap.builder();
       definitions.put(
-          "retry_policy_2_codes",
+          "retry_policy_3_codes",
+          ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE)));
+      definitions.put(
+          "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList()));
+      definitions.put(
+          "retry_policy_1_codes",
           ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE)));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
@@ -273,7 +400,26 @@ public static class Builder extends StubSettings.Builder>of();
+      createAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      deleteAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      updateAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listAssistantsSettings = PagedCallSettings.newBuilder(LIST_ASSISTANTS_PAGE_STR_FACT);
+
+      unaryMethodSettingsBuilders =
+          ImmutableList.>of(
+              createAssistantSettings,
+              deleteAssistantSettings,
+              updateAssistantSettings,
+              getAssistantSettings,
+              listAssistantsSettings);
       initDefaults(this);
     }
 
@@ -294,8 +451,19 @@ protected Builder(AssistantServiceStubSettings settings) {
       super(settings);
 
       streamAssistSettings = settings.streamAssistSettings.toBuilder();
-
-      unaryMethodSettingsBuilders = ImmutableList.>of();
+      createAssistantSettings = settings.createAssistantSettings.toBuilder();
+      deleteAssistantSettings = settings.deleteAssistantSettings.toBuilder();
+      updateAssistantSettings = settings.updateAssistantSettings.toBuilder();
+      getAssistantSettings = settings.getAssistantSettings.toBuilder();
+      listAssistantsSettings = settings.listAssistantsSettings.toBuilder();
+
+      unaryMethodSettingsBuilders =
+          ImmutableList.>of(
+              createAssistantSettings,
+              deleteAssistantSettings,
+              updateAssistantSettings,
+              getAssistantSettings,
+              listAssistantsSettings);
     }
 
     private static Builder createDefault() {
@@ -325,8 +493,33 @@ private static Builder createHttpJsonDefault() {
     private static Builder initDefaults(Builder builder) {
       builder
           .streamAssistSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"));
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"));
+
+      builder
+          .createAssistantSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"));
+
+      builder
+          .deleteAssistantSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"));
+
+      builder
+          .updateAssistantSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"));
+
+      builder
+          .getAssistantSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+      builder
+          .listAssistantsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
       return builder;
     }
@@ -352,6 +545,33 @@ public Builder applyToAllUnaryMethods(
       return streamAssistSettings;
     }
 
+    /** Returns the builder for the settings used for calls to createAssistant. */
+    public UnaryCallSettings.Builder createAssistantSettings() {
+      return createAssistantSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deleteAssistant. */
+    public UnaryCallSettings.Builder deleteAssistantSettings() {
+      return deleteAssistantSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateAssistant. */
+    public UnaryCallSettings.Builder updateAssistantSettings() {
+      return updateAssistantSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getAssistant. */
+    public UnaryCallSettings.Builder getAssistantSettings() {
+      return getAssistantSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listAssistants. */
+    public PagedCallSettings.Builder<
+            ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>
+        listAssistantsSettings() {
+      return listAssistantsSettings;
+    }
+
     @Override
     public AssistantServiceStubSettings build() throws IOException {
       return new AssistantServiceStubSettings(this);
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java
index 013b2f13c3b5..e8d24e9826fd 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java
@@ -145,7 +145,11 @@
 public class CmekConfigServiceStubSettings extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
 
   private final UnaryCallSettings updateCmekConfigSettings;
   private final OperationCallSettings
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStub.java
new file mode 100644
index 000000000000..6216c9b9a956
--- /dev/null
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStub.java
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.discoveryengine.v1.stub;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata;
+import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+import org.jspecify.annotations.Nullable;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the CollectionService service API.
+ *
+ * 

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class CollectionServiceStub implements BackgroundResource { + + public @Nullable OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + deleteCollectionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCollectionOperationCallable()"); + } + + public UnaryCallable deleteCollectionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCollectionCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStubSettings.java new file mode 100644 index 000000000000..a971d23607e1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CollectionServiceStubSettings.java @@ -0,0 +1,474 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata; +import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CollectionServiceStub}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getIamPolicy: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CollectionServiceStubSettings.Builder collectionServiceSettingsBuilder =
+ *     CollectionServiceStubSettings.newBuilder();
+ * collectionServiceSettingsBuilder
+ *     .getIamPolicySettings()
+ *     .setRetrySettings(
+ *         collectionServiceSettingsBuilder
+ *             .getIamPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * CollectionServiceStubSettings collectionServiceSettings =
+ *     collectionServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteCollection: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CollectionServiceStubSettings.Builder collectionServiceSettingsBuilder =
+ *     CollectionServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * collectionServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class CollectionServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings deleteCollectionSettings; + private final OperationCallSettings + deleteCollectionOperationSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; + + /** Returns the object with the settings used for calls to deleteCollection. */ + public UnaryCallSettings deleteCollectionSettings() { + return deleteCollectionSettings; + } + + /** Returns the object with the settings used for calls to deleteCollection. */ + public OperationCallSettings + deleteCollectionOperationSettings() { + return deleteCollectionOperationSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + public CollectionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCollectionServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCollectionServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CollectionServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CollectionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CollectionServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CollectionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + deleteCollectionSettings = settingsBuilder.deleteCollectionSettings().build(); + deleteCollectionOperationSettings = settingsBuilder.deleteCollectionOperationSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for CollectionServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + deleteCollectionSettings; + private final OperationCallSettings.Builder< + DeleteCollectionRequest, Empty, DeleteCollectionMetadata> + deleteCollectionOperationSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + deleteCollectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCollectionOperationSettings = OperationCallSettings.newBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteCollectionSettings, getIamPolicySettings, setIamPolicySettings); + initDefaults(this); + } + + protected Builder(CollectionServiceStubSettings settings) { + super(settings); + + deleteCollectionSettings = settings.deleteCollectionSettings.toBuilder(); + deleteCollectionOperationSettings = settings.deleteCollectionOperationSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + deleteCollectionSettings, getIamPolicySettings, setIamPolicySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .deleteCollectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteCollectionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteCollectionMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to deleteCollection. */ + public UnaryCallSettings.Builder + deleteCollectionSettings() { + return deleteCollectionSettings; + } + + /** Returns the builder for the settings used for calls to deleteCollection. */ + public OperationCallSettings.Builder + deleteCollectionOperationSettings() { + return deleteCollectionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + @Override + public CollectionServiceStubSettings build() throws IOException { + return new CollectionServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java index 703e80f552b9..dc895838534b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java @@ -19,6 +19,8 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse; import com.google.cloud.discoveryengine.v1.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1.CompleteQueryResponse; import com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata; @@ -62,6 +64,11 @@ public UnaryCallable completeQueryC throw new UnsupportedOperationException("Not implemented: completeQueryCallable()"); } + public UnaryCallable + advancedCompleteQueryCallable() { + throw new UnsupportedOperationException("Not implemented: advancedCompleteQueryCallable()"); + } + public OperationCallable< ImportSuggestionDenyListEntriesRequest, ImportSuggestionDenyListEntriesResponse, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java index eef552936964..d80ea38dc1ed 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java @@ -40,6 +40,8 @@ import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse; import com.google.cloud.discoveryengine.v1.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1.CompleteQueryResponse; import com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata; @@ -150,10 +152,18 @@ public class CompletionServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud_search.query") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings completeQuerySettings; + private final UnaryCallSettings + advancedCompleteQuerySettings; private final UnaryCallSettings importSuggestionDenyListEntriesSettings; private final OperationCallSettings< @@ -188,6 +198,12 @@ public UnaryCallSettings completeQu return completeQuerySettings; } + /** Returns the object with the settings used for calls to advancedCompleteQuery. */ + public UnaryCallSettings + advancedCompleteQuerySettings() { + return advancedCompleteQuerySettings; + } + /** Returns the object with the settings used for calls to importSuggestionDenyListEntries. */ public UnaryCallSettings importSuggestionDenyListEntriesSettings() { @@ -360,6 +376,7 @@ protected CompletionServiceStubSettings(Builder settingsBuilder) throws IOExcept super(settingsBuilder); completeQuerySettings = settingsBuilder.completeQuerySettings().build(); + advancedCompleteQuerySettings = settingsBuilder.advancedCompleteQuerySettings().build(); importSuggestionDenyListEntriesSettings = settingsBuilder.importSuggestionDenyListEntriesSettings().build(); importSuggestionDenyListEntriesOperationSettings = @@ -392,6 +409,9 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder completeQuerySettings; + private final UnaryCallSettings.Builder< + AdvancedCompleteQueryRequest, AdvancedCompleteQueryResponse> + advancedCompleteQuerySettings; private final UnaryCallSettings.Builder importSuggestionDenyListEntriesSettings; private final OperationCallSettings.Builder< @@ -459,6 +479,7 @@ protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + advancedCompleteQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importSuggestionDenyListEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); importSuggestionDenyListEntriesOperationSettings = OperationCallSettings.newBuilder(); purgeSuggestionDenyListEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -471,6 +492,7 @@ protected Builder(@Nullable ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( completeQuerySettings, + advancedCompleteQuerySettings, importSuggestionDenyListEntriesSettings, purgeSuggestionDenyListEntriesSettings, importCompletionSuggestionsSettings, @@ -482,6 +504,7 @@ protected Builder(CompletionServiceStubSettings settings) { super(settings); completeQuerySettings = settings.completeQuerySettings.toBuilder(); + advancedCompleteQuerySettings = settings.advancedCompleteQuerySettings.toBuilder(); importSuggestionDenyListEntriesSettings = settings.importSuggestionDenyListEntriesSettings.toBuilder(); importSuggestionDenyListEntriesOperationSettings = @@ -501,6 +524,7 @@ protected Builder(CompletionServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( completeQuerySettings, + advancedCompleteQuerySettings, importSuggestionDenyListEntriesSettings, purgeSuggestionDenyListEntriesSettings, importCompletionSuggestionsSettings, @@ -537,6 +561,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .advancedCompleteQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .importSuggestionDenyListEntriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -689,6 +718,12 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the builder for the settings used for calls to advancedCompleteQuery. */ + public UnaryCallSettings.Builder + advancedCompleteQuerySettings() { + return advancedCompleteQuerySettings; + } + /** Returns the builder for the settings used for calls to importSuggestionDenyListEntries. */ public UnaryCallSettings.Builder importSuggestionDenyListEntriesSettings() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java index 05cb2f17d29a..fd1c95cbed0e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java @@ -121,7 +121,11 @@ public class ControlServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createControlSettings; private final UnaryCallSettings deleteControlSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java index 1d251815af38..891a25b97e86 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java @@ -138,7 +138,11 @@ public class ConversationalSearchServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings converseConversationSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStub.java new file mode 100644 index 000000000000..c0e4d726f0c1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStub.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.GetDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DataConnectorService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class DataConnectorServiceStub implements BackgroundResource { + + public @Nullable OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + setUpDataConnectorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: setUpDataConnectorOperationCallable()"); + } + + public UnaryCallable setUpDataConnectorCallable() { + throw new UnsupportedOperationException("Not implemented: setUpDataConnectorCallable()"); + } + + public UnaryCallable getDataConnectorCallable() { + throw new UnsupportedOperationException("Not implemented: getDataConnectorCallable()"); + } + + public UnaryCallable updateDataConnectorCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataConnectorCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStubSettings.java new file mode 100644 index 000000000000..bb3417997c5f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataConnectorServiceStubSettings.java @@ -0,0 +1,487 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.GetDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataConnectorServiceStub}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDataConnector: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataConnectorServiceStubSettings.Builder dataConnectorServiceSettingsBuilder =
+ *     DataConnectorServiceStubSettings.newBuilder();
+ * dataConnectorServiceSettingsBuilder
+ *     .getDataConnectorSettings()
+ *     .setRetrySettings(
+ *         dataConnectorServiceSettingsBuilder
+ *             .getDataConnectorSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * DataConnectorServiceStubSettings dataConnectorServiceSettings =
+ *     dataConnectorServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for setUpDataConnector: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataConnectorServiceStubSettings.Builder dataConnectorServiceSettingsBuilder =
+ *     DataConnectorServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * dataConnectorServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class DataConnectorServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings setUpDataConnectorSettings; + private final OperationCallSettings< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationSettings; + private final UnaryCallSettings getDataConnectorSettings; + private final UnaryCallSettings + updateDataConnectorSettings; + + /** Returns the object with the settings used for calls to setUpDataConnector. */ + public UnaryCallSettings setUpDataConnectorSettings() { + return setUpDataConnectorSettings; + } + + /** Returns the object with the settings used for calls to setUpDataConnector. */ + public OperationCallSettings + setUpDataConnectorOperationSettings() { + return setUpDataConnectorOperationSettings; + } + + /** Returns the object with the settings used for calls to getDataConnector. */ + public UnaryCallSettings getDataConnectorSettings() { + return getDataConnectorSettings; + } + + /** Returns the object with the settings used for calls to updateDataConnector. */ + public UnaryCallSettings + updateDataConnectorSettings() { + return updateDataConnectorSettings; + } + + public DataConnectorServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDataConnectorServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDataConnectorServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataConnectorServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataConnectorServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataConnectorServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataConnectorServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + setUpDataConnectorSettings = settingsBuilder.setUpDataConnectorSettings().build(); + setUpDataConnectorOperationSettings = + settingsBuilder.setUpDataConnectorOperationSettings().build(); + getDataConnectorSettings = settingsBuilder.getDataConnectorSettings().build(); + updateDataConnectorSettings = settingsBuilder.updateDataConnectorSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for DataConnectorServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + setUpDataConnectorSettings; + private final OperationCallSettings.Builder< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationSettings; + private final UnaryCallSettings.Builder + getDataConnectorSettings; + private final UnaryCallSettings.Builder + updateDataConnectorSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + setUpDataConnectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setUpDataConnectorOperationSettings = OperationCallSettings.newBuilder(); + getDataConnectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataConnectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + setUpDataConnectorSettings, getDataConnectorSettings, updateDataConnectorSettings); + initDefaults(this); + } + + protected Builder(DataConnectorServiceStubSettings settings) { + super(settings); + + setUpDataConnectorSettings = settings.setUpDataConnectorSettings.toBuilder(); + setUpDataConnectorOperationSettings = + settings.setUpDataConnectorOperationSettings.toBuilder(); + getDataConnectorSettings = settings.getDataConnectorSettings.toBuilder(); + updateDataConnectorSettings = settings.updateDataConnectorSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + setUpDataConnectorSettings, getDataConnectorSettings, updateDataConnectorSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .setUpDataConnectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDataConnectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDataConnectorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setUpDataConnectorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DataConnector.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + SetUpDataConnectorMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to setUpDataConnector. */ + public UnaryCallSettings.Builder + setUpDataConnectorSettings() { + return setUpDataConnectorSettings; + } + + /** Returns the builder for the settings used for calls to setUpDataConnector. */ + public OperationCallSettings.Builder< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationSettings() { + return setUpDataConnectorOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDataConnector. */ + public UnaryCallSettings.Builder + getDataConnectorSettings() { + return getDataConnectorSettings; + } + + /** Returns the builder for the settings used for calls to updateDataConnector. */ + public UnaryCallSettings.Builder + updateDataConnectorSettings() { + return updateDataConnectorSettings; + } + + @Override + public DataConnectorServiceStubSettings build() throws IOException { + return new DataConnectorServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java index c69eef013676..8c1c998aeec4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java @@ -30,6 +30,9 @@ import com.google.cloud.discoveryengine.v1.ListDataStoresRequest; import com.google.cloud.discoveryengine.v1.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -91,6 +94,14 @@ public UnaryCallable updateDataStoreCallable( throw new UnsupportedOperationException("Not implemented: updateDataStoreCallable()"); } + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java index b959fceab76c..dbbdc20b65b3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java @@ -62,6 +62,9 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -154,7 +157,11 @@ public class DataStoreServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createDataStoreSettings; private final OperationCallSettings @@ -167,6 +174,8 @@ public class DataStoreServiceStubSettings extends StubSettings deleteDataStoreOperationSettings; private final UnaryCallSettings updateDataStoreSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; private static final PagedListDescriptor LIST_DATA_STORES_PAGE_STR_DESC = @@ -259,6 +268,16 @@ public UnaryCallSettings updateDataStoreSetti return updateDataStoreSettings; } + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + public DataStoreServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -377,6 +396,8 @@ protected DataStoreServiceStubSettings(Builder settingsBuilder) throws IOExcepti deleteDataStoreSettings = settingsBuilder.deleteDataStoreSettings().build(); deleteDataStoreOperationSettings = settingsBuilder.deleteDataStoreOperationSettings().build(); updateDataStoreSettings = settingsBuilder.updateDataStoreSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); } @Override @@ -407,6 +428,8 @@ public static class Builder extends StubSettings.Builder updateDataStoreSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -441,6 +464,8 @@ protected Builder(@Nullable ClientContext clientContext) { deleteDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteDataStoreOperationSettings = OperationCallSettings.newBuilder(); updateDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -448,7 +473,9 @@ protected Builder(@Nullable ClientContext clientContext) { getDataStoreSettings, listDataStoresSettings, deleteDataStoreSettings, - updateDataStoreSettings); + updateDataStoreSettings, + getIamPolicySettings, + setIamPolicySettings); initDefaults(this); } @@ -462,6 +489,8 @@ protected Builder(DataStoreServiceStubSettings settings) { deleteDataStoreSettings = settings.deleteDataStoreSettings.toBuilder(); deleteDataStoreOperationSettings = settings.deleteDataStoreOperationSettings.toBuilder(); updateDataStoreSettings = settings.updateDataStoreSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -469,7 +498,9 @@ protected Builder(DataStoreServiceStubSettings settings) { getDataStoreSettings, listDataStoresSettings, deleteDataStoreSettings, - updateDataStoreSettings); + updateDataStoreSettings, + getIamPolicySettings, + setIamPolicySettings); } private static Builder createDefault() { @@ -522,6 +553,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createDataStoreOperationSettings() .setInitialCallSettings( @@ -627,6 +668,16 @@ public UnaryCallSettings.Builder updateDataSt return updateDataStoreSettings; } + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + @Override public DataStoreServiceStubSettings build() throws IOException { return new DataStoreServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java index 2926ee093472..1ee5cabca980 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java @@ -160,7 +160,11 @@ public class DocumentServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getDocumentSettings; private final PagedCallSettings< @@ -453,7 +457,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "retry_policy_2_codes", + "retry_policy_3_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -484,7 +488,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportDocumentsResponse.class)) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java index 17f58ad2a88e..368f7fc61a25 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java @@ -30,6 +30,9 @@ import com.google.cloud.discoveryengine.v1.ListEnginesRequest; import com.google.cloud.discoveryengine.v1.ListEnginesResponse; import com.google.cloud.discoveryengine.v1.UpdateEngineRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -90,6 +93,14 @@ public UnaryCallable listEnginesCallabl throw new UnsupportedOperationException("Not implemented: listEnginesCallable()"); } + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java index bd76bb380336..2cf5042a8b3f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java @@ -62,6 +62,9 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -154,7 +157,11 @@ public class EngineServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createEngineSettings; private final OperationCallSettings @@ -166,6 +173,8 @@ public class EngineServiceStubSettings extends StubSettings getEngineSettings; private final PagedCallSettings listEnginesSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; private static final PagedListDescriptor LIST_ENGINES_PAGE_STR_DESC = @@ -256,6 +265,16 @@ public UnaryCallSettings getEngineSettings() { return listEnginesSettings; } + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + public EngineServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -374,6 +393,8 @@ protected EngineServiceStubSettings(Builder settingsBuilder) throws IOException updateEngineSettings = settingsBuilder.updateEngineSettings().build(); getEngineSettings = settingsBuilder.getEngineSettings().build(); listEnginesSettings = settingsBuilder.listEnginesSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); } @Override @@ -399,6 +420,8 @@ public static class Builder extends StubSettings.Builder listEnginesSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -433,6 +456,8 @@ protected Builder(@Nullable ClientContext clientContext) { updateEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listEnginesSettings = PagedCallSettings.newBuilder(LIST_ENGINES_PAGE_STR_FACT); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -440,7 +465,9 @@ protected Builder(@Nullable ClientContext clientContext) { deleteEngineSettings, updateEngineSettings, getEngineSettings, - listEnginesSettings); + listEnginesSettings, + getIamPolicySettings, + setIamPolicySettings); initDefaults(this); } @@ -454,6 +481,8 @@ protected Builder(EngineServiceStubSettings settings) { updateEngineSettings = settings.updateEngineSettings.toBuilder(); getEngineSettings = settings.getEngineSettings.toBuilder(); listEnginesSettings = settings.listEnginesSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -461,7 +490,9 @@ protected Builder(EngineServiceStubSettings settings) { deleteEngineSettings, updateEngineSettings, getEngineSettings, - listEnginesSettings); + listEnginesSettings, + getIamPolicySettings, + setIamPolicySettings); } private static Builder createDefault() { @@ -514,6 +545,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createEngineOperationSettings() .setInitialCallSettings( @@ -619,6 +660,16 @@ public UnaryCallSettings.Builder getEngineSettings() { return listEnginesSettings; } + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + @Override public EngineServiceStubSettings build() throws IOException { return new EngineServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java index 769530580d71..370769203157 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java @@ -111,7 +111,11 @@ public class GroundedGenerationServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final StreamingCallSettings< GenerateGroundedContentRequest, GenerateGroundedContentResponse> diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceCallableFactory.java new file mode 100644 index 000000000000..0dc097674ccd --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AclConfigService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcAclConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceStub.java new file mode 100644 index 000000000000..39022ba51778 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAclConfigServiceStub.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AclConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcAclConfigServiceStub extends AclConfigServiceStub { + private static final MethodDescriptor + updateAclConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AclConfigService/UpdateAclConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAclConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AclConfigService/GetAclConfig") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable updateAclConfigCallable; + private final UnaryCallable getAclConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAclConfigServiceStub create(AclConfigServiceStubSettings settings) + throws IOException { + return new GrpcAclConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAclConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAclConfigServiceStub( + AclConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAclConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAclConfigServiceStub( + AclConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAclConfigServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAclConfigServiceStub( + AclConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAclConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAclConfigServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAclConfigServiceStub( + AclConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings updateAclConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_config.name", String.valueOf(request.getAclConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAclConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.updateAclConfigCallable = + callableFactory.createUnaryCallable( + updateAclConfigTransportSettings, settings.updateAclConfigSettings(), clientContext); + this.getAclConfigCallable = + callableFactory.createUnaryCallable( + getAclConfigTransportSettings, settings.getAclConfigSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateAclConfigCallable() { + return updateAclConfigCallable; + } + + @Override + public UnaryCallable getAclConfigCallable() { + return getAclConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAssistantServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAssistantServiceStub.java index 9d6108cd9311..6fdeef936b82 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAssistantServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcAssistantServiceStub.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -23,9 +25,18 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsResponse; import com.google.cloud.discoveryengine.v1.StreamAssistRequest; import com.google.cloud.discoveryengine.v1.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1.UpdateAssistantRequest; import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -53,8 +64,70 @@ public class GrpcAssistantServiceStub extends AssistantServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/CreateAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Assistant.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/DeleteAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/UpdateAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Assistant.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/GetAssistant") + .setRequestMarshaller(ProtoUtils.marshaller(GetAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Assistant.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAssistantsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/ListAssistants") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAssistantsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAssistantsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final ServerStreamingCallable streamAssistCallable; + private final UnaryCallable createAssistantCallable; + private final UnaryCallable deleteAssistantCallable; + private final UnaryCallable updateAssistantCallable; + private final UnaryCallable getAssistantCallable; + private final UnaryCallable listAssistantsCallable; + private final UnaryCallable + listAssistantsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -111,10 +184,83 @@ protected GrpcAssistantServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings createAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("assistant.name", String.valueOf(request.getAssistant().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAssistantsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAssistantsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); this.streamAssistCallable = callableFactory.createServerStreamingCallable( streamAssistTransportSettings, settings.streamAssistSettings(), clientContext); + this.createAssistantCallable = + callableFactory.createUnaryCallable( + createAssistantTransportSettings, settings.createAssistantSettings(), clientContext); + this.deleteAssistantCallable = + callableFactory.createUnaryCallable( + deleteAssistantTransportSettings, settings.deleteAssistantSettings(), clientContext); + this.updateAssistantCallable = + callableFactory.createUnaryCallable( + updateAssistantTransportSettings, settings.updateAssistantSettings(), clientContext); + this.getAssistantCallable = + callableFactory.createUnaryCallable( + getAssistantTransportSettings, settings.getAssistantSettings(), clientContext); + this.listAssistantsCallable = + callableFactory.createUnaryCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); + this.listAssistantsPagedCallable = + callableFactory.createPagedCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -129,6 +275,37 @@ public ServerStreamingCallable stream return streamAssistCallable; } + @Override + public UnaryCallable createAssistantCallable() { + return createAssistantCallable; + } + + @Override + public UnaryCallable deleteAssistantCallable() { + return deleteAssistantCallable; + } + + @Override + public UnaryCallable updateAssistantCallable() { + return updateAssistantCallable; + } + + @Override + public UnaryCallable getAssistantCallable() { + return getAssistantCallable; + } + + @Override + public UnaryCallable listAssistantsCallable() { + return listAssistantsCallable; + } + + @Override + public UnaryCallable + listAssistantsPagedCallable() { + return listAssistantsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceCallableFactory.java new file mode 100644 index 000000000000..541662fd610a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the CollectionService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcCollectionServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceStub.java new file mode 100644 index 000000000000..ec014242ff51 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCollectionServiceStub.java @@ -0,0 +1,245 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata; +import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the CollectionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcCollectionServiceStub extends CollectionServiceStub { + private static final MethodDescriptor + deleteCollectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.CollectionService/DeleteCollection") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCollectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.CollectionService/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.CollectionService/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable deleteCollectionCallable; + private final OperationCallable + deleteCollectionOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCollectionServiceStub create(CollectionServiceStubSettings settings) + throws IOException { + return new GrpcCollectionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCollectionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCollectionServiceStub( + CollectionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCollectionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCollectionServiceStub( + CollectionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCollectionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcCollectionServiceStub( + CollectionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcCollectionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCollectionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcCollectionServiceStub( + CollectionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings deleteCollectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCollectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.deleteCollectionCallable = + callableFactory.createUnaryCallable( + deleteCollectionTransportSettings, settings.deleteCollectionSettings(), clientContext); + this.deleteCollectionOperationCallable = + callableFactory.createOperationCallable( + deleteCollectionTransportSettings, + settings.deleteCollectionOperationSettings(), + clientContext, + operationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable deleteCollectionCallable() { + return deleteCollectionCallable; + } + + @Override + public OperationCallable + deleteCollectionOperationCallable() { + return deleteCollectionOperationCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java index b2d7d6b63c07..5a2857d16906 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcCompletionServiceStub.java @@ -24,6 +24,8 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse; import com.google.cloud.discoveryengine.v1.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1.CompleteQueryResponse; import com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata; @@ -68,6 +70,19 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + advancedCompleteQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.CompletionService/AdvancedCompleteQuery") + .setRequestMarshaller( + ProtoUtils.marshaller(AdvancedCompleteQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AdvancedCompleteQueryResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor importSuggestionDenyListEntriesMethodDescriptor = MethodDescriptor.newBuilder() @@ -118,6 +133,8 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { .build(); private final UnaryCallable completeQueryCallable; + private final UnaryCallable + advancedCompleteQueryCallable; private final UnaryCallable importSuggestionDenyListEntriesCallable; private final OperationCallable< @@ -202,6 +219,20 @@ protected GrpcCompletionServiceStub( }) .setResourceNameExtractor(request -> request.getDataStore()) .build(); + GrpcCallSettings + advancedCompleteQueryTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(advancedCompleteQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "completion_config", String.valueOf(request.getCompletionConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCompletionConfig()) + .build(); GrpcCallSettings importSuggestionDenyListEntriesTransportSettings = GrpcCallSettings.newBuilder() @@ -254,6 +285,11 @@ protected GrpcCompletionServiceStub( this.completeQueryCallable = callableFactory.createUnaryCallable( completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + this.advancedCompleteQueryCallable = + callableFactory.createUnaryCallable( + advancedCompleteQueryTransportSettings, + settings.advancedCompleteQuerySettings(), + clientContext); this.importSuggestionDenyListEntriesCallable = callableFactory.createUnaryCallable( importSuggestionDenyListEntriesTransportSettings, @@ -312,6 +348,12 @@ public UnaryCallable completeQueryC return completeQueryCallable; } + @Override + public UnaryCallable + advancedCompleteQueryCallable() { + return advancedCompleteQueryCallable; + } + @Override public UnaryCallable importSuggestionDenyListEntriesCallable() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceCallableFactory.java new file mode 100644 index 000000000000..8dbad04a41a8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DataConnectorService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcDataConnectorServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceStub.java new file mode 100644 index 000000000000..1ae4b13543f2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataConnectorServiceStub.java @@ -0,0 +1,258 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.GetDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DataConnectorService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcDataConnectorServiceStub extends DataConnectorServiceStub { + private static final MethodDescriptor + setUpDataConnectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.DataConnectorService/SetUpDataConnector") + .setRequestMarshaller( + ProtoUtils.marshaller(SetUpDataConnectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getDataConnectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.DataConnectorService/GetDataConnector") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataConnectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataConnector.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateDataConnectorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.DataConnectorService/UpdateDataConnector") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataConnectorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataConnector.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable setUpDataConnectorCallable; + private final OperationCallable< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationCallable; + private final UnaryCallable getDataConnectorCallable; + private final UnaryCallable + updateDataConnectorCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDataConnectorServiceStub create(DataConnectorServiceStubSettings settings) + throws IOException { + return new GrpcDataConnectorServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDataConnectorServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDataConnectorServiceStub( + DataConnectorServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDataConnectorServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDataConnectorServiceStub( + DataConnectorServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDataConnectorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDataConnectorServiceStub( + DataConnectorServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDataConnectorServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDataConnectorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDataConnectorServiceStub( + DataConnectorServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings setUpDataConnectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setUpDataConnectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getDataConnectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataConnectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateDataConnectorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataConnectorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_connector.name", + String.valueOf(request.getDataConnector().getName())); + return builder.build(); + }) + .build(); + + this.setUpDataConnectorCallable = + callableFactory.createUnaryCallable( + setUpDataConnectorTransportSettings, + settings.setUpDataConnectorSettings(), + clientContext); + this.setUpDataConnectorOperationCallable = + callableFactory.createOperationCallable( + setUpDataConnectorTransportSettings, + settings.setUpDataConnectorOperationSettings(), + clientContext, + operationsStub); + this.getDataConnectorCallable = + callableFactory.createUnaryCallable( + getDataConnectorTransportSettings, settings.getDataConnectorSettings(), clientContext); + this.updateDataConnectorCallable = + callableFactory.createUnaryCallable( + updateDataConnectorTransportSettings, + settings.updateDataConnectorSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable setUpDataConnectorCallable() { + return setUpDataConnectorCallable; + } + + @Override + public OperationCallable + setUpDataConnectorOperationCallable() { + return setUpDataConnectorOperationCallable; + } + + @Override + public UnaryCallable getDataConnectorCallable() { + return getDataConnectorCallable; + } + + @Override + public UnaryCallable updateDataConnectorCallable() { + return updateDataConnectorCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataStoreServiceStub.java index 0b3af6bffd69..92d2720630d6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcDataStoreServiceStub.java @@ -35,6 +35,9 @@ import com.google.cloud.discoveryengine.v1.ListDataStoresRequest; import com.google.cloud.discoveryengine.v1.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -109,6 +112,24 @@ public class GrpcDataStoreServiceStub extends DataStoreServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.DataStoreService/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.DataStoreService/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable createDataStoreCallable; private final OperationCallable createDataStoreOperationCallable; @@ -120,6 +141,8 @@ public class GrpcDataStoreServiceStub extends DataStoreServiceStub { private final OperationCallable deleteDataStoreOperationCallable; private final UnaryCallable updateDataStoreCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -220,6 +243,28 @@ protected GrpcDataStoreServiceStub( return builder.build(); }) .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); this.createDataStoreCallable = callableFactory.createUnaryCallable( @@ -251,6 +296,12 @@ protected GrpcDataStoreServiceStub( this.updateDataStoreCallable = callableFactory.createUnaryCallable( updateDataStoreTransportSettings, settings.updateDataStoreSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -303,6 +354,16 @@ public UnaryCallable updateDataStoreCallable( return updateDataStoreCallable; } + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcEngineServiceStub.java index c37ce7f585da..ca96bf24f2b3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcEngineServiceStub.java @@ -35,6 +35,9 @@ import com.google.cloud.discoveryengine.v1.ListEnginesRequest; import com.google.cloud.discoveryengine.v1.ListEnginesResponse; import com.google.cloud.discoveryengine.v1.UpdateEngineRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -103,6 +106,24 @@ public class GrpcEngineServiceStub extends EngineServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.EngineService/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.EngineService/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable createEngineCallable; private final OperationCallable createEngineOperationCallable; @@ -114,6 +135,8 @@ public class GrpcEngineServiceStub extends EngineServiceStub { private final UnaryCallable listEnginesCallable; private final UnaryCallable listEnginesPagedCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -211,6 +234,28 @@ protected GrpcEngineServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); this.createEngineCallable = callableFactory.createUnaryCallable( @@ -242,6 +287,12 @@ protected GrpcEngineServiceStub( this.listEnginesPagedCallable = callableFactory.createPagedCallable( listEnginesTransportSettings, settings.listEnginesSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -293,6 +344,16 @@ public UnaryCallable listEnginesPa return listEnginesPagedCallable; } + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceCallableFactory.java new file mode 100644 index 000000000000..41f2c95346ce --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the LicenseConfigService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcLicenseConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceStub.java new file mode 100644 index 000000000000..d64802ae6ecc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcLicenseConfigServiceStub.java @@ -0,0 +1,384 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the LicenseConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcLicenseConfigServiceStub extends LicenseConfigServiceStub { + private static final MethodDescriptor + createLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/CreateLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LicenseConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/UpdateLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LicenseConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/GetLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LicenseConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLicenseConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/ListLicenseConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/DistributeLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DistributeLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DistributeLicenseConfigResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + retractLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/RetractLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(RetractLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RetractLicenseConfigResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createLicenseConfigCallable; + private final UnaryCallable + updateLicenseConfigCallable; + private final UnaryCallable getLicenseConfigCallable; + private final UnaryCallable + listLicenseConfigsCallable; + private final UnaryCallable + listLicenseConfigsPagedCallable; + private final UnaryCallable + distributeLicenseConfigCallable; + private final UnaryCallable + retractLicenseConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcLicenseConfigServiceStub create(LicenseConfigServiceStubSettings settings) + throws IOException { + return new GrpcLicenseConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcLicenseConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcLicenseConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcLicenseConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "license_config.name", + String.valueOf(request.getLicenseConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listLicenseConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLicenseConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + distributeLicenseConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(distributeLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + GrpcCallSettings + retractLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retractLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + + this.createLicenseConfigCallable = + callableFactory.createUnaryCallable( + createLicenseConfigTransportSettings, + settings.createLicenseConfigSettings(), + clientContext); + this.updateLicenseConfigCallable = + callableFactory.createUnaryCallable( + updateLicenseConfigTransportSettings, + settings.updateLicenseConfigSettings(), + clientContext); + this.getLicenseConfigCallable = + callableFactory.createUnaryCallable( + getLicenseConfigTransportSettings, settings.getLicenseConfigSettings(), clientContext); + this.listLicenseConfigsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.listLicenseConfigsPagedCallable = + callableFactory.createPagedCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.distributeLicenseConfigCallable = + callableFactory.createUnaryCallable( + distributeLicenseConfigTransportSettings, + settings.distributeLicenseConfigSettings(), + clientContext); + this.retractLicenseConfigCallable = + callableFactory.createUnaryCallable( + retractLicenseConfigTransportSettings, + settings.retractLicenseConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createLicenseConfigCallable() { + return createLicenseConfigCallable; + } + + @Override + public UnaryCallable updateLicenseConfigCallable() { + return updateLicenseConfigCallable; + } + + @Override + public UnaryCallable getLicenseConfigCallable() { + return getLicenseConfigCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsCallable() { + return listLicenseConfigsCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsPagedCallable() { + return listLicenseConfigsPagedCallable; + } + + @Override + public UnaryCallable + distributeLicenseConfigCallable() { + return distributeLicenseConfigCallable; + } + + @Override + public UnaryCallable + retractLicenseConfigCallable() { + return retractLicenseConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcServingConfigServiceStub.java index fef0fd5090ca..cc94c2ec6fcd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcServingConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcServingConfigServiceStub.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -23,9 +25,15 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1.ServingConfig; import com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest; import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -42,6 +50,30 @@ @NullMarked @Generated("by gapic-generator-java") public class GrpcServingConfigServiceStub extends ServingConfigServiceStub { + private static final MethodDescriptor + createServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/CreateServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServingConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/DeleteServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateServingConfigMethodDescriptor = MethodDescriptor.newBuilder() @@ -54,8 +86,41 @@ public class GrpcServingConfigServiceStub extends ServingConfigServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/GetServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServingConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listServingConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/ListServingConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListServingConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListServingConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createServingConfigCallable; + private final UnaryCallable deleteServingConfigCallable; private final UnaryCallable updateServingConfigCallable; + private final UnaryCallable getServingConfigCallable; + private final UnaryCallable + listServingConfigsCallable; + private final UnaryCallable + listServingConfigsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -101,6 +166,29 @@ protected GrpcServingConfigServiceStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + createServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings updateServingConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -114,12 +202,58 @@ protected GrpcServingConfigServiceStub( return builder.build(); }) .build(); + GrpcCallSettings getServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listServingConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listServingConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + this.createServingConfigCallable = + callableFactory.createUnaryCallable( + createServingConfigTransportSettings, + settings.createServingConfigSettings(), + clientContext); + this.deleteServingConfigCallable = + callableFactory.createUnaryCallable( + deleteServingConfigTransportSettings, + settings.deleteServingConfigSettings(), + clientContext); this.updateServingConfigCallable = callableFactory.createUnaryCallable( updateServingConfigTransportSettings, settings.updateServingConfigSettings(), clientContext); + this.getServingConfigCallable = + callableFactory.createUnaryCallable( + getServingConfigTransportSettings, settings.getServingConfigSettings(), clientContext); + this.listServingConfigsCallable = + callableFactory.createUnaryCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); + this.listServingConfigsPagedCallable = + callableFactory.createPagedCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -129,11 +263,38 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable createServingConfigCallable() { + return createServingConfigCallable; + } + + @Override + public UnaryCallable deleteServingConfigCallable() { + return deleteServingConfigCallable; + } + @Override public UnaryCallable updateServingConfigCallable() { return updateServingConfigCallable; } + @Override + public UnaryCallable getServingConfigCallable() { + return getServingConfigCallable; + } + + @Override + public UnaryCallable + listServingConfigsCallable() { + return listServingConfigsCallable; + } + + @Override + public UnaryCallable + listServingConfigsPagedCallable() { + return listServingConfigsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserLicenseServiceStub.java index 644e6accd7dd..f804a4bd3729 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserLicenseServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserLicenseServiceStub.java @@ -29,6 +29,8 @@ import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata; import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest; import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse; import com.google.cloud.discoveryengine.v1.ListUserLicensesRequest; import com.google.cloud.discoveryengine.v1.ListUserLicensesResponse; import com.google.longrunning.Operation; @@ -62,6 +64,22 @@ public class GrpcUserLicenseServiceStub extends UserLicenseServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.UserLicenseService/ListLicenseConfigsUsageStats") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsUsageStatsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsUsageStatsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor batchUpdateUserLicensesMethodDescriptor = MethodDescriptor.newBuilder() @@ -78,6 +96,9 @@ public class GrpcUserLicenseServiceStub extends UserLicenseServiceStub { listUserLicensesCallable; private final UnaryCallable listUserLicensesPagedCallable; + private final UnaryCallable< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsCallable; private final UnaryCallable batchUpdateUserLicensesCallable; private final OperationCallable< @@ -142,6 +163,20 @@ protected GrpcUserLicenseServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + listLicenseConfigsUsageStatsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listLicenseConfigsUsageStatsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings batchUpdateUserLicensesTransportSettings = GrpcCallSettings.newBuilder() @@ -161,6 +196,11 @@ protected GrpcUserLicenseServiceStub( this.listUserLicensesPagedCallable = callableFactory.createPagedCallable( listUserLicensesTransportSettings, settings.listUserLicensesSettings(), clientContext); + this.listLicenseConfigsUsageStatsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsUsageStatsTransportSettings, + settings.listLicenseConfigsUsageStatsSettings(), + clientContext); this.batchUpdateUserLicensesCallable = callableFactory.createUnaryCallable( batchUpdateUserLicensesTransportSettings, @@ -193,6 +233,12 @@ public GrpcOperationsStub getOperationsStub() { return listUserLicensesPagedCallable; } + @Override + public UnaryCallable + listLicenseConfigsUsageStatsCallable() { + return listLicenseConfigsUsageStatsCallable; + } + @Override public UnaryCallable batchUpdateUserLicensesCallable() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceCallableFactory.java new file mode 100644 index 000000000000..83672945ec60 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the UserStoreService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcUserStoreServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceStub.java new file mode 100644 index 000000000000..6686706ad1b3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcUserStoreServiceStub.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the UserStoreService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcUserStoreServiceStub extends UserStoreServiceStub { + private static final MethodDescriptor + getUserStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.UserStoreService/GetUserStore") + .setRequestMarshaller(ProtoUtils.marshaller(GetUserStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UserStore.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateUserStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1.UserStoreService/UpdateUserStore") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateUserStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UserStore.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getUserStoreCallable; + private final UnaryCallable updateUserStoreCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcUserStoreServiceStub create(UserStoreServiceStubSettings settings) + throws IOException { + return new GrpcUserStoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcUserStoreServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcUserStoreServiceStub( + UserStoreServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcUserStoreServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcUserStoreServiceStub( + UserStoreServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcUserStoreServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcUserStoreServiceStub( + UserStoreServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcUserStoreServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcUserStoreServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcUserStoreServiceStub( + UserStoreServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getUserStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getUserStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateUserStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUserStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("user_store.name", String.valueOf(request.getUserStore().getName())); + return builder.build(); + }) + .build(); + + this.getUserStoreCallable = + callableFactory.createUnaryCallable( + getUserStoreTransportSettings, settings.getUserStoreSettings(), clientContext); + this.updateUserStoreCallable = + callableFactory.createUnaryCallable( + updateUserStoreTransportSettings, settings.updateUserStoreSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getUserStoreCallable() { + return getUserStoreCallable; + } + + @Override + public UnaryCallable updateUserStoreCallable() { + return updateUserStoreCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceCallableFactory.java new file mode 100644 index 000000000000..8933a0490d1c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the WidgetConfigService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcWidgetConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceStub.java new file mode 100644 index 000000000000..e922d5ab6d61 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GrpcWidgetConfigServiceStub.java @@ -0,0 +1,202 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the WidgetConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcWidgetConfigServiceStub extends WidgetConfigServiceStub { + private static final MethodDescriptor + getWidgetConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.WidgetConfigService/GetWidgetConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWidgetConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WidgetConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateWidgetConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1.WidgetConfigService/UpdateWidgetConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateWidgetConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WidgetConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getWidgetConfigCallable; + private final UnaryCallable updateWidgetConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcWidgetConfigServiceStub create(WidgetConfigServiceStubSettings settings) + throws IOException { + return new GrpcWidgetConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcWidgetConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcWidgetConfigServiceStub( + WidgetConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcWidgetConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcWidgetConfigServiceStub( + WidgetConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcWidgetConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcWidgetConfigServiceStub( + WidgetConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcWidgetConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcWidgetConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcWidgetConfigServiceStub( + WidgetConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getWidgetConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWidgetConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateWidgetConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateWidgetConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "widget_config.name", String.valueOf(request.getWidgetConfig().getName())); + return builder.build(); + }) + .build(); + + this.getWidgetConfigCallable = + callableFactory.createUnaryCallable( + getWidgetConfigTransportSettings, settings.getWidgetConfigSettings(), clientContext); + this.updateWidgetConfigCallable = + callableFactory.createUnaryCallable( + updateWidgetConfigTransportSettings, + settings.updateWidgetConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getWidgetConfigCallable() { + return getWidgetConfigCallable; + } + + @Override + public UnaryCallable updateWidgetConfigCallable() { + return updateWidgetConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceCallableFactory.java new file mode 100644 index 000000000000..30ef0b9af960 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AclConfigService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonAclConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceStub.java new file mode 100644 index 000000000000..8403d8fd3a47 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAclConfigServiceStub.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AclConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonAclConfigServiceStub extends AclConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + updateAclConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AclConfigService/UpdateAclConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{aclConfig.name=projects/*/locations/*/aclConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclConfig.name", request.getAclConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclConfig", request.getAclConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAclConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AclConfigService/GetAclConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable updateAclConfigCallable; + private final UnaryCallable getAclConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAclConfigServiceStub create(AclConfigServiceStubSettings settings) + throws IOException { + return new HttpJsonAclConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAclConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAclConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAclConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAclConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAclConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings updateAclConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_config.name", String.valueOf(request.getAclConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAclConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.updateAclConfigCallable = + callableFactory.createUnaryCallable( + updateAclConfigTransportSettings, settings.updateAclConfigSettings(), clientContext); + this.getAclConfigCallable = + callableFactory.createUnaryCallable( + getAclConfigTransportSettings, settings.getAclConfigSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateAclConfigMethodDescriptor); + methodDescriptors.add(getAclConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable updateAclConfigCallable() { + return updateAclConfigCallable; + } + + @Override + public UnaryCallable getAclConfigCallable() { + return getAclConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAssistantServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAssistantServiceStub.java index 157b5b9b4872..6edf7c33d158 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAssistantServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonAssistantServiceStub.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -28,8 +30,17 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsResponse; import com.google.cloud.discoveryengine.v1.StreamAssistRequest; import com.google.cloud.discoveryengine.v1.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1.UpdateAssistantRequest; +import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -88,8 +99,197 @@ public class HttpJsonAssistantServiceStub extends AssistantServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/CreateAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/assistants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "assistantId", request.getAssistantId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("assistant", request.getAssistant(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Assistant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/DeleteAssistant") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/UpdateAssistant") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{assistant.name=projects/*/locations/*/collections/*/engines/*/assistants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "assistant.name", request.getAssistant().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("assistant", request.getAssistant(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Assistant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/GetAssistant") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Assistant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAssistantsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.AssistantService/ListAssistants") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/assistants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAssistantsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final ServerStreamingCallable streamAssistCallable; + private final UnaryCallable createAssistantCallable; + private final UnaryCallable deleteAssistantCallable; + private final UnaryCallable updateAssistantCallable; + private final UnaryCallable getAssistantCallable; + private final UnaryCallable listAssistantsCallable; + private final UnaryCallable + listAssistantsPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -145,10 +345,88 @@ protected HttpJsonAssistantServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings createAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings deleteAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("assistant.name", String.valueOf(request.getAssistant().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAssistantsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAssistantsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); this.streamAssistCallable = callableFactory.createServerStreamingCallable( streamAssistTransportSettings, settings.streamAssistSettings(), clientContext); + this.createAssistantCallable = + callableFactory.createUnaryCallable( + createAssistantTransportSettings, settings.createAssistantSettings(), clientContext); + this.deleteAssistantCallable = + callableFactory.createUnaryCallable( + deleteAssistantTransportSettings, settings.deleteAssistantSettings(), clientContext); + this.updateAssistantCallable = + callableFactory.createUnaryCallable( + updateAssistantTransportSettings, settings.updateAssistantSettings(), clientContext); + this.getAssistantCallable = + callableFactory.createUnaryCallable( + getAssistantTransportSettings, settings.getAssistantSettings(), clientContext); + this.listAssistantsCallable = + callableFactory.createUnaryCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); + this.listAssistantsPagedCallable = + callableFactory.createPagedCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -158,6 +436,11 @@ protected HttpJsonAssistantServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(streamAssistMethodDescriptor); + methodDescriptors.add(createAssistantMethodDescriptor); + methodDescriptors.add(deleteAssistantMethodDescriptor); + methodDescriptors.add(updateAssistantMethodDescriptor); + methodDescriptors.add(getAssistantMethodDescriptor); + methodDescriptors.add(listAssistantsMethodDescriptor); return methodDescriptors; } @@ -166,6 +449,37 @@ public ServerStreamingCallable stream return streamAssistCallable; } + @Override + public UnaryCallable createAssistantCallable() { + return createAssistantCallable; + } + + @Override + public UnaryCallable deleteAssistantCallable() { + return deleteAssistantCallable; + } + + @Override + public UnaryCallable updateAssistantCallable() { + return updateAssistantCallable; + } + + @Override + public UnaryCallable getAssistantCallable() { + return getAssistantCallable; + } + + @Override + public UnaryCallable listAssistantsCallable() { + return listAssistantsCallable; + } + + @Override + public UnaryCallable + listAssistantsPagedCallable() { + return listAssistantsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCmekConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCmekConfigServiceStub.java index 2a49e81a96f3..e44eccd732ab 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCmekConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCmekConfigServiceStub.java @@ -339,6 +339,11 @@ protected HttpJsonCmekConfigServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceCallableFactory.java new file mode 100644 index 000000000000..273bfce7f5cf --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CollectionService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonCollectionServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceStub.java new file mode 100644 index 000000000000..3dfde1b2eb64 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCollectionServiceStub.java @@ -0,0 +1,540 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata; +import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CollectionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonCollectionServiceStub extends CollectionServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(DeleteCollectionMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + deleteCollectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.CollectionService/DeleteCollection") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/collections/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCollectionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.CollectionService/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/collections/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.CollectionService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/collections/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable deleteCollectionCallable; + private final OperationCallable + deleteCollectionOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCollectionServiceStub create(CollectionServiceStubSettings settings) + throws IOException { + return new HttpJsonCollectionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCollectionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCollectionServiceStub( + CollectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCollectionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCollectionServiceStub( + CollectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCollectionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCollectionServiceStub( + CollectionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCollectionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCollectionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCollectionServiceStub( + CollectionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings deleteCollectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCollectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.deleteCollectionCallable = + callableFactory.createUnaryCallable( + deleteCollectionTransportSettings, settings.deleteCollectionSettings(), clientContext); + this.deleteCollectionOperationCallable = + callableFactory.createOperationCallable( + deleteCollectionTransportSettings, + settings.deleteCollectionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(deleteCollectionMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable deleteCollectionCallable() { + return deleteCollectionCallable; + } + + @Override + public OperationCallable + deleteCollectionOperationCallable() { + return deleteCollectionOperationCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java index 04bb280a3fbd..3812dc4cff27 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonCompletionServiceStub.java @@ -32,6 +32,8 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse; import com.google.cloud.discoveryengine.v1.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1.CompleteQueryResponse; import com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata; @@ -123,6 +125,53 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + AdvancedCompleteQueryRequest, AdvancedCompleteQueryResponse> + advancedCompleteQueryMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.CompletionService/AdvancedCompleteQuery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{completionConfig=projects/*/locations/*/dataStores/*/completionConfig}:completeQuery", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "completionConfig", request.getCompletionConfig()); + return fields; + }) + .setAdditionalPaths( + "/v1/{completionConfig=projects/*/locations/*/collections/*/dataStores/*/completionConfig}:completeQuery", + "/v1/{completionConfig=projects/*/locations/*/collections/*/engines/*/completionConfig}:completeQuery") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request.toBuilder().clearCompletionConfig().build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdvancedCompleteQueryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor importSuggestionDenyListEntriesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -296,6 +345,8 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { .build(); private final UnaryCallable completeQueryCallable; + private final UnaryCallable + advancedCompleteQueryCallable; private final UnaryCallable importSuggestionDenyListEntriesCallable; private final OperationCallable< @@ -432,6 +483,11 @@ protected HttpJsonCompletionServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -563,6 +619,21 @@ protected HttpJsonCompletionServiceStub( }) .setResourceNameExtractor(request -> request.getDataStore()) .build(); + HttpJsonCallSettings + advancedCompleteQueryTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(advancedCompleteQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "completion_config", String.valueOf(request.getCompletionConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCompletionConfig()) + .build(); HttpJsonCallSettings importSuggestionDenyListEntriesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -619,6 +690,11 @@ protected HttpJsonCompletionServiceStub( this.completeQueryCallable = callableFactory.createUnaryCallable( completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + this.advancedCompleteQueryCallable = + callableFactory.createUnaryCallable( + advancedCompleteQueryTransportSettings, + settings.advancedCompleteQuerySettings(), + clientContext); this.importSuggestionDenyListEntriesCallable = callableFactory.createUnaryCallable( importSuggestionDenyListEntriesTransportSettings, @@ -672,6 +748,7 @@ protected HttpJsonCompletionServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(completeQueryMethodDescriptor); + methodDescriptors.add(advancedCompleteQueryMethodDescriptor); methodDescriptors.add(importSuggestionDenyListEntriesMethodDescriptor); methodDescriptors.add(purgeSuggestionDenyListEntriesMethodDescriptor); methodDescriptors.add(importCompletionSuggestionsMethodDescriptor); @@ -688,6 +765,12 @@ public UnaryCallable completeQueryC return completeQueryCallable; } + @Override + public UnaryCallable + advancedCompleteQueryCallable() { + return advancedCompleteQueryCallable; + } + @Override public UnaryCallable importSuggestionDenyListEntriesCallable() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java index 9443c173e214..55e92483410f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonConversationalSearchServiceStub.java @@ -468,6 +468,7 @@ public class HttpJsonConversationalSearchServiceStub extends ConversationalSearc Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "sessionId", request.getSessionId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceCallableFactory.java new file mode 100644 index 000000000000..a68d8969277f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DataConnectorService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonDataConnectorServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceStub.java new file mode 100644 index 000000000000..88ce26c36da3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataConnectorServiceStub.java @@ -0,0 +1,557 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.GetDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; +import com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DataConnectorService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonDataConnectorServiceStub extends DataConnectorServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(SetUpDataConnectorMetadata.getDescriptor()) + .add(DataConnector.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + setUpDataConnectorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.DataConnectorService/SetUpDataConnector") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}:setUpDataConnector", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*}:setUpDataConnectorV2") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SetUpDataConnectorRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getDataConnectorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.DataConnectorService/GetDataConnector") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/collections/*/dataConnector}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataConnector.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDataConnectorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.DataConnectorService/UpdateDataConnector") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{dataConnector.name=projects/*/locations/*/collections/*/dataConnector}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dataConnector.name", request.getDataConnector().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataConnector", request.getDataConnector(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataConnector.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable setUpDataConnectorCallable; + private final OperationCallable< + SetUpDataConnectorRequest, DataConnector, SetUpDataConnectorMetadata> + setUpDataConnectorOperationCallable; + private final UnaryCallable getDataConnectorCallable; + private final UnaryCallable + updateDataConnectorCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDataConnectorServiceStub create( + DataConnectorServiceStubSettings settings) throws IOException { + return new HttpJsonDataConnectorServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDataConnectorServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDataConnectorServiceStub( + DataConnectorServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDataConnectorServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDataConnectorServiceStub( + DataConnectorServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonDataConnectorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDataConnectorServiceStub( + DataConnectorServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDataConnectorServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDataConnectorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDataConnectorServiceStub( + DataConnectorServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings setUpDataConnectorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setUpDataConnectorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getDataConnectorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDataConnectorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateDataConnectorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDataConnectorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_connector.name", + String.valueOf(request.getDataConnector().getName())); + return builder.build(); + }) + .build(); + + this.setUpDataConnectorCallable = + callableFactory.createUnaryCallable( + setUpDataConnectorTransportSettings, + settings.setUpDataConnectorSettings(), + clientContext); + this.setUpDataConnectorOperationCallable = + callableFactory.createOperationCallable( + setUpDataConnectorTransportSettings, + settings.setUpDataConnectorOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getDataConnectorCallable = + callableFactory.createUnaryCallable( + getDataConnectorTransportSettings, settings.getDataConnectorSettings(), clientContext); + this.updateDataConnectorCallable = + callableFactory.createUnaryCallable( + updateDataConnectorTransportSettings, + settings.updateDataConnectorSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(setUpDataConnectorMethodDescriptor); + methodDescriptors.add(getDataConnectorMethodDescriptor); + methodDescriptors.add(updateDataConnectorMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable setUpDataConnectorCallable() { + return setUpDataConnectorCallable; + } + + @Override + public OperationCallable + setUpDataConnectorOperationCallable() { + return setUpDataConnectorOperationCallable; + } + + @Override + public UnaryCallable getDataConnectorCallable() { + return getDataConnectorCallable; + } + + @Override + public UnaryCallable updateDataConnectorCallable() { + return updateDataConnectorCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java index 32adc3e6619e..72b8e93768ff 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDataStoreServiceStub.java @@ -44,6 +44,9 @@ import com.google.cloud.discoveryengine.v1.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest; import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; @@ -284,6 +287,82 @@ public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.DataStoreService/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/collections/*/dataStores/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/dataStores/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.DataStoreService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/collections/*/dataStores/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/dataStores/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createDataStoreCallable; private final OperationCallable createDataStoreOperationCallable; @@ -295,6 +374,8 @@ public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub { private final OperationCallable deleteDataStoreOperationCallable; private final UnaryCallable updateDataStoreCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -403,6 +484,11 @@ protected HttpJsonDataStoreServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -581,6 +667,30 @@ protected HttpJsonDataStoreServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); this.createDataStoreCallable = callableFactory.createUnaryCallable( @@ -612,6 +722,12 @@ protected HttpJsonDataStoreServiceStub( this.updateDataStoreCallable = callableFactory.createUnaryCallable( updateDataStoreTransportSettings, settings.updateDataStoreSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -625,6 +741,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(listDataStoresMethodDescriptor); methodDescriptors.add(deleteDataStoreMethodDescriptor); methodDescriptors.add(updateDataStoreMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); return methodDescriptors; } @@ -675,6 +793,16 @@ public UnaryCallable updateDataStoreCallable( return updateDataStoreCallable; } + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java index 2a8d28189f74..cbd8b0cf7788 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonDocumentServiceStub.java @@ -521,6 +521,11 @@ protected HttpJsonDocumentServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java index 52d3d8d88497..e4838c7640e5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonEngineServiceStub.java @@ -44,6 +44,9 @@ import com.google.cloud.discoveryengine.v1.ListEnginesResponse; import com.google.cloud.discoveryengine.v1.UpdateEngineRequest; import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; @@ -260,6 +263,78 @@ public class HttpJsonEngineServiceStub extends EngineServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.EngineService/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/collections/*/engines/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.EngineService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/collections/*/engines/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createEngineCallable; private final OperationCallable createEngineOperationCallable; @@ -271,6 +346,8 @@ public class HttpJsonEngineServiceStub extends EngineServiceStub { private final UnaryCallable listEnginesCallable; private final UnaryCallable listEnginesPagedCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -379,6 +456,11 @@ protected HttpJsonEngineServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -556,6 +638,30 @@ protected HttpJsonEngineServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); this.createEngineCallable = callableFactory.createUnaryCallable( @@ -587,6 +693,12 @@ protected HttpJsonEngineServiceStub( this.listEnginesPagedCallable = callableFactory.createPagedCallable( listEnginesTransportSettings, settings.listEnginesSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -600,6 +712,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateEngineMethodDescriptor); methodDescriptors.add(getEngineMethodDescriptor); methodDescriptors.add(listEnginesMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); return methodDescriptors; } @@ -649,6 +763,16 @@ public UnaryCallable listEnginesPa return listEnginesPagedCallable; } + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonIdentityMappingStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonIdentityMappingStoreServiceStub.java index 3b45fb678671..42a6bc55210b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonIdentityMappingStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonIdentityMappingStoreServiceStub.java @@ -510,6 +510,11 @@ protected HttpJsonIdentityMappingStoreServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceCallableFactory.java new file mode 100644 index 000000000000..9acb31193893 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the LicenseConfigService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonLicenseConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceStub.java new file mode 100644 index 000000000000..b91dc9c1acb0 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonLicenseConfigServiceStub.java @@ -0,0 +1,580 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the LicenseConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonLicenseConfigServiceStub extends LicenseConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createLicenseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/CreateLicenseConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/licenseConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "licenseConfigId", request.getLicenseConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("licenseConfig", request.getLicenseConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LicenseConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateLicenseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/UpdateLicenseConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{licenseConfig.name=projects/*/locations/*/licenseConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "licenseConfig.name", request.getLicenseConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("licenseConfig", request.getLicenseConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LicenseConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLicenseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/GetLicenseConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/licenseConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LicenseConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLicenseConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/ListLicenseConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/licenseConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLicenseConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/DistributeLicenseConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{billingAccountLicenseConfig=billingAccounts/*/billingAccountLicenseConfigs/*}:distributeLicenseConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "billingAccountLicenseConfig", + request.getBillingAccountLicenseConfig()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request.toBuilder() + .clearBillingAccountLicenseConfig() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DistributeLicenseConfigResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + RetractLicenseConfigRequest, RetractLicenseConfigResponse> + retractLicenseConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.LicenseConfigService/RetractLicenseConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{billingAccountLicenseConfig=billingAccounts/*/billingAccountLicenseConfigs/*}:retractLicenseConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "billingAccountLicenseConfig", + request.getBillingAccountLicenseConfig()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request.toBuilder() + .clearBillingAccountLicenseConfig() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RetractLicenseConfigResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createLicenseConfigCallable; + private final UnaryCallable + updateLicenseConfigCallable; + private final UnaryCallable getLicenseConfigCallable; + private final UnaryCallable + listLicenseConfigsCallable; + private final UnaryCallable + listLicenseConfigsPagedCallable; + private final UnaryCallable + distributeLicenseConfigCallable; + private final UnaryCallable + retractLicenseConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonLicenseConfigServiceStub create( + LicenseConfigServiceStubSettings settings) throws IOException { + return new HttpJsonLicenseConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonLicenseConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonLicenseConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonLicenseConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createLicenseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateLicenseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "license_config.name", + String.valueOf(request.getLicenseConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLicenseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listLicenseConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLicenseConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + distributeLicenseConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(distributeLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + HttpJsonCallSettings + retractLicenseConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(retractLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + + this.createLicenseConfigCallable = + callableFactory.createUnaryCallable( + createLicenseConfigTransportSettings, + settings.createLicenseConfigSettings(), + clientContext); + this.updateLicenseConfigCallable = + callableFactory.createUnaryCallable( + updateLicenseConfigTransportSettings, + settings.updateLicenseConfigSettings(), + clientContext); + this.getLicenseConfigCallable = + callableFactory.createUnaryCallable( + getLicenseConfigTransportSettings, settings.getLicenseConfigSettings(), clientContext); + this.listLicenseConfigsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.listLicenseConfigsPagedCallable = + callableFactory.createPagedCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.distributeLicenseConfigCallable = + callableFactory.createUnaryCallable( + distributeLicenseConfigTransportSettings, + settings.distributeLicenseConfigSettings(), + clientContext); + this.retractLicenseConfigCallable = + callableFactory.createUnaryCallable( + retractLicenseConfigTransportSettings, + settings.retractLicenseConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createLicenseConfigMethodDescriptor); + methodDescriptors.add(updateLicenseConfigMethodDescriptor); + methodDescriptors.add(getLicenseConfigMethodDescriptor); + methodDescriptors.add(listLicenseConfigsMethodDescriptor); + methodDescriptors.add(distributeLicenseConfigMethodDescriptor); + methodDescriptors.add(retractLicenseConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createLicenseConfigCallable() { + return createLicenseConfigCallable; + } + + @Override + public UnaryCallable updateLicenseConfigCallable() { + return updateLicenseConfigCallable; + } + + @Override + public UnaryCallable getLicenseConfigCallable() { + return getLicenseConfigCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsCallable() { + return listLicenseConfigsCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsPagedCallable() { + return listLicenseConfigsPagedCallable; + } + + @Override + public UnaryCallable + distributeLicenseConfigCallable() { + return distributeLicenseConfigCallable; + } + + @Override + public UnaryCallable + retractLicenseConfigCallable() { + return retractLicenseConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java index 0cbf03634bb9..8f8511f74671 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonProjectServiceStub.java @@ -79,6 +79,7 @@ public class HttpJsonProjectServiceStub extends ProjectServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}:provision") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -213,6 +214,11 @@ protected HttpJsonProjectServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java index 7c8918829cc2..5767373f778d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSchemaServiceStub.java @@ -396,6 +396,11 @@ protected HttpJsonSchemaServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java index 472a2fa3ee68..85c8fc207313 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSearchTuningServiceStub.java @@ -256,6 +256,11 @@ protected HttpJsonSearchTuningServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonServingConfigServiceStub.java index 943fe6710962..3f080a19b700 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonServingConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonServingConfigServiceStub.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -28,8 +30,14 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1.ServingConfig; import com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest; +import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -51,6 +59,87 @@ public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final ApiMethodDescriptor + createServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/CreateServingConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/dataStores/*}/servingConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs", + "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "servingConfigId", request.getServingConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("servingConfig", request.getServingConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/DeleteServingConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}", + "/v1/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor updateServingConfigMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -94,8 +183,94 @@ public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + getServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/GetServingConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}", + "/v1/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listServingConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.ServingConfigService/ListServingConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/dataStores/*}/servingConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs", + "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListServingConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createServingConfigCallable; + private final UnaryCallable deleteServingConfigCallable; private final UnaryCallable updateServingConfigCallable; + private final UnaryCallable getServingConfigCallable; + private final UnaryCallable + listServingConfigsCallable; + private final UnaryCallable + listServingConfigsPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -141,6 +316,31 @@ protected HttpJsonServingConfigServiceStub( throws IOException { this.callableFactory = callableFactory; + HttpJsonCallSettings + createServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings deleteServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings updateServingConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -155,12 +355,60 @@ protected HttpJsonServingConfigServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings getServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listServingConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listServingConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + this.createServingConfigCallable = + callableFactory.createUnaryCallable( + createServingConfigTransportSettings, + settings.createServingConfigSettings(), + clientContext); + this.deleteServingConfigCallable = + callableFactory.createUnaryCallable( + deleteServingConfigTransportSettings, + settings.deleteServingConfigSettings(), + clientContext); this.updateServingConfigCallable = callableFactory.createUnaryCallable( updateServingConfigTransportSettings, settings.updateServingConfigSettings(), clientContext); + this.getServingConfigCallable = + callableFactory.createUnaryCallable( + getServingConfigTransportSettings, settings.getServingConfigSettings(), clientContext); + this.listServingConfigsCallable = + callableFactory.createUnaryCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); + this.listServingConfigsPagedCallable = + callableFactory.createPagedCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -169,15 +417,46 @@ protected HttpJsonServingConfigServiceStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createServingConfigMethodDescriptor); + methodDescriptors.add(deleteServingConfigMethodDescriptor); methodDescriptors.add(updateServingConfigMethodDescriptor); + methodDescriptors.add(getServingConfigMethodDescriptor); + methodDescriptors.add(listServingConfigsMethodDescriptor); return methodDescriptors; } + @Override + public UnaryCallable createServingConfigCallable() { + return createServingConfigCallable; + } + + @Override + public UnaryCallable deleteServingConfigCallable() { + return deleteServingConfigCallable; + } + @Override public UnaryCallable updateServingConfigCallable() { return updateServingConfigCallable; } + @Override + public UnaryCallable getServingConfigCallable() { + return getServingConfigCallable; + } + + @Override + public UnaryCallable + listServingConfigsCallable() { + return listServingConfigsCallable; + } + + @Override + public UnaryCallable + listServingConfigsPagedCallable() { + return listServingConfigsPagedCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSessionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSessionServiceStub.java index 9260a652e09c..15ae38897c41 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSessionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSessionServiceStub.java @@ -84,6 +84,7 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "sessionId", request.getSessionId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java index c5ec77d84485..0d1d80c2f19d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonSiteSearchEngineServiceStub.java @@ -914,6 +914,11 @@ protected HttpJsonSiteSearchEngineServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java index 27c4340604b7..79a23b31b3b3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserEventServiceStub.java @@ -361,6 +361,11 @@ protected HttpJsonUserEventServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserLicenseServiceStub.java index 88f323f2cc8d..a0de9e6679b9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserLicenseServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserLicenseServiceStub.java @@ -37,6 +37,8 @@ import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata; import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest; import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse; import com.google.cloud.discoveryengine.v1.ListUserLicensesRequest; import com.google.cloud.discoveryengine.v1.ListUserLicensesResponse; import com.google.common.collect.ImmutableMap; @@ -90,6 +92,7 @@ public class HttpJsonUserLicenseServiceStub extends UserLicenseServiceStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -104,6 +107,44 @@ public class HttpJsonUserLicenseServiceStub extends UserLicenseServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.UserLicenseService/ListLicenseConfigsUsageStats") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/userStores/*}/licenseConfigsUsageStats", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLicenseConfigsUsageStatsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor batchUpdateUserLicensesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -149,6 +190,9 @@ public class HttpJsonUserLicenseServiceStub extends UserLicenseServiceStub { listUserLicensesCallable; private final UnaryCallable listUserLicensesPagedCallable; + private final UnaryCallable< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsCallable; private final UnaryCallable batchUpdateUserLicensesCallable; private final OperationCallable< @@ -266,6 +310,11 @@ protected HttpJsonUserLicenseServiceStub( .setGet( "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -397,6 +446,21 @@ protected HttpJsonUserLicenseServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + listLicenseConfigsUsageStatsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listLicenseConfigsUsageStatsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings batchUpdateUserLicensesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -417,6 +481,11 @@ protected HttpJsonUserLicenseServiceStub( this.listUserLicensesPagedCallable = callableFactory.createPagedCallable( listUserLicensesTransportSettings, settings.listUserLicensesSettings(), clientContext); + this.listLicenseConfigsUsageStatsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsUsageStatsTransportSettings, + settings.listLicenseConfigsUsageStatsSettings(), + clientContext); this.batchUpdateUserLicensesCallable = callableFactory.createUnaryCallable( batchUpdateUserLicensesTransportSettings, @@ -437,6 +506,7 @@ protected HttpJsonUserLicenseServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(listUserLicensesMethodDescriptor); + methodDescriptors.add(listLicenseConfigsUsageStatsMethodDescriptor); methodDescriptors.add(batchUpdateUserLicensesMethodDescriptor); return methodDescriptors; } @@ -457,6 +527,12 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return listUserLicensesPagedCallable; } + @Override + public UnaryCallable + listLicenseConfigsUsageStatsCallable() { + return listLicenseConfigsUsageStatsCallable; + } + @Override public UnaryCallable batchUpdateUserLicensesCallable() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceCallableFactory.java new file mode 100644 index 000000000000..8978d311a7ba --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the UserStoreService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonUserStoreServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceStub.java new file mode 100644 index 000000000000..15a85d254f12 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonUserStoreServiceStub.java @@ -0,0 +1,261 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the UserStoreService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonUserStoreServiceStub extends UserStoreServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getUserStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.UserStoreService/GetUserStore") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/userStores/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserStore.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateUserStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1.UserStoreService/UpdateUserStore") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{userStore.name=projects/*/locations/*/userStores/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "userStore.name", request.getUserStore().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("userStore", request.getUserStore(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserStore.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getUserStoreCallable; + private final UnaryCallable updateUserStoreCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonUserStoreServiceStub create(UserStoreServiceStubSettings settings) + throws IOException { + return new HttpJsonUserStoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonUserStoreServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonUserStoreServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonUserStoreServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonUserStoreServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonUserStoreServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getUserStoreTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getUserStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateUserStoreTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateUserStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("user_store.name", String.valueOf(request.getUserStore().getName())); + return builder.build(); + }) + .build(); + + this.getUserStoreCallable = + callableFactory.createUnaryCallable( + getUserStoreTransportSettings, settings.getUserStoreSettings(), clientContext); + this.updateUserStoreCallable = + callableFactory.createUnaryCallable( + updateUserStoreTransportSettings, settings.updateUserStoreSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getUserStoreMethodDescriptor); + methodDescriptors.add(updateUserStoreMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getUserStoreCallable() { + return getUserStoreCallable; + } + + @Override + public UnaryCallable updateUserStoreCallable() { + return updateUserStoreCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceCallableFactory.java new file mode 100644 index 000000000000..642180cb4617 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the WidgetConfigService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonWidgetConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceStub.java new file mode 100644 index 000000000000..56bd2cb31589 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/HttpJsonWidgetConfigServiceStub.java @@ -0,0 +1,286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the WidgetConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonWidgetConfigServiceStub extends WidgetConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getWidgetConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.WidgetConfigService/GetWidgetConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataStores/*/widgetConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/widgetConfigs/*}", + "/v1/{name=projects/*/locations/*/collections/*/engines/*/widgetConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "acceptCache", request.getAcceptCache()); + serializer.putQueryParam( + fields, + "getWidgetConfigRequestOption", + request.getGetWidgetConfigRequestOption()); + serializer.putQueryParam( + fields, "languageCode", request.getLanguageCode()); + serializer.putQueryParam( + fields, "modelInfoView", request.getModelInfoViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WidgetConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateWidgetConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1.WidgetConfigService/UpdateWidgetConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{widgetConfig.name=projects/*/locations/*/dataStores/*/widgetConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "widgetConfig.name", request.getWidgetConfig().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{widgetConfig.name=projects/*/locations/*/collections/*/dataStores/*/widgetConfigs/*}", + "/v1/{widgetConfig.name=projects/*/locations/*/collections/*/engines/*/widgetConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("widgetConfig", request.getWidgetConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WidgetConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getWidgetConfigCallable; + private final UnaryCallable updateWidgetConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonWidgetConfigServiceStub create( + WidgetConfigServiceStubSettings settings) throws IOException { + return new HttpJsonWidgetConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonWidgetConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonWidgetConfigServiceStub( + WidgetConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonWidgetConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonWidgetConfigServiceStub( + WidgetConfigServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonWidgetConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonWidgetConfigServiceStub( + WidgetConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonWidgetConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonWidgetConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonWidgetConfigServiceStub( + WidgetConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getWidgetConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWidgetConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + updateWidgetConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWidgetConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "widget_config.name", + String.valueOf(request.getWidgetConfig().getName())); + return builder.build(); + }) + .build(); + + this.getWidgetConfigCallable = + callableFactory.createUnaryCallable( + getWidgetConfigTransportSettings, settings.getWidgetConfigSettings(), clientContext); + this.updateWidgetConfigCallable = + callableFactory.createUnaryCallable( + updateWidgetConfigTransportSettings, + settings.updateWidgetConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getWidgetConfigMethodDescriptor); + methodDescriptors.add(updateWidgetConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getWidgetConfigCallable() { + return getWidgetConfigCallable; + } + + @Override + public UnaryCallable updateWidgetConfigCallable() { + return updateWidgetConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java index eef22973cacb..aaeaf8c1867f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java @@ -162,7 +162,11 @@ public class IdentityMappingStoreServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createIdentityMappingStoreSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStub.java new file mode 100644 index 000000000000..8839674b6e78 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStub.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the LicenseConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class LicenseConfigServiceStub implements BackgroundResource { + + public UnaryCallable createLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createLicenseConfigCallable()"); + } + + public UnaryCallable updateLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateLicenseConfigCallable()"); + } + + public UnaryCallable getLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getLicenseConfigCallable()"); + } + + public UnaryCallable + listLicenseConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLicenseConfigsPagedCallable()"); + } + + public UnaryCallable + listLicenseConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listLicenseConfigsCallable()"); + } + + public UnaryCallable + distributeLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: distributeLicenseConfigCallable()"); + } + + public UnaryCallable + retractLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: retractLicenseConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStubSettings.java new file mode 100644 index 000000000000..8f9a609abfb0 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/LicenseConfigServiceStubSettings.java @@ -0,0 +1,569 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LicenseConfigServiceStub}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createLicenseConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LicenseConfigServiceStubSettings.Builder licenseConfigServiceSettingsBuilder =
+ *     LicenseConfigServiceStubSettings.newBuilder();
+ * licenseConfigServiceSettingsBuilder
+ *     .createLicenseConfigSettings()
+ *     .setRetrySettings(
+ *         licenseConfigServiceSettingsBuilder
+ *             .createLicenseConfigSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * LicenseConfigServiceStubSettings licenseConfigServiceSettings =
+ *     licenseConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class LicenseConfigServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings + createLicenseConfigSettings; + private final UnaryCallSettings + updateLicenseConfigSettings; + private final UnaryCallSettings getLicenseConfigSettings; + private final PagedCallSettings< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings; + private final UnaryCallSettings + distributeLicenseConfigSettings; + private final UnaryCallSettings + retractLicenseConfigSettings; + + private static final PagedListDescriptor< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, LicenseConfig> + LIST_LICENSE_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, LicenseConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLicenseConfigsRequest injectToken( + ListLicenseConfigsRequest payload, String token) { + return ListLicenseConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLicenseConfigsRequest injectPageSize( + ListLicenseConfigsRequest payload, int pageSize) { + return ListLicenseConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLicenseConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLicenseConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLicenseConfigsResponse payload) { + return payload.getLicenseConfigsList(); + } + }; + + private static final PagedListResponseFactory< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + LIST_LICENSE_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + ListLicenseConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLicenseConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_LICENSE_CONFIGS_PAGE_STR_DESC, request, context); + return ListLicenseConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings + createLicenseConfigSettings() { + return createLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings + updateLicenseConfigSettings() { + return updateLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings getLicenseConfigSettings() { + return getLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return listLicenseConfigsSettings; + } + + /** Returns the object with the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings + distributeLicenseConfigSettings() { + return distributeLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings + retractLicenseConfigSettings() { + return retractLicenseConfigSettings; + } + + public LicenseConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcLicenseConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonLicenseConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LicenseConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LicenseConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LicenseConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createLicenseConfigSettings = settingsBuilder.createLicenseConfigSettings().build(); + updateLicenseConfigSettings = settingsBuilder.updateLicenseConfigSettings().build(); + getLicenseConfigSettings = settingsBuilder.getLicenseConfigSettings().build(); + listLicenseConfigsSettings = settingsBuilder.listLicenseConfigsSettings().build(); + distributeLicenseConfigSettings = settingsBuilder.distributeLicenseConfigSettings().build(); + retractLicenseConfigSettings = settingsBuilder.retractLicenseConfigSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for LicenseConfigServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createLicenseConfigSettings; + private final UnaryCallSettings.Builder + updateLicenseConfigSettings; + private final UnaryCallSettings.Builder + getLicenseConfigSettings; + private final PagedCallSettings.Builder< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings; + private final UnaryCallSettings.Builder< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigSettings; + private final UnaryCallSettings.Builder< + RetractLicenseConfigRequest, RetractLicenseConfigResponse> + retractLicenseConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + createLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLicenseConfigsSettings = PagedCallSettings.newBuilder(LIST_LICENSE_CONFIGS_PAGE_STR_FACT); + distributeLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + retractLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createLicenseConfigSettings, + updateLicenseConfigSettings, + getLicenseConfigSettings, + listLicenseConfigsSettings, + distributeLicenseConfigSettings, + retractLicenseConfigSettings); + initDefaults(this); + } + + protected Builder(LicenseConfigServiceStubSettings settings) { + super(settings); + + createLicenseConfigSettings = settings.createLicenseConfigSettings.toBuilder(); + updateLicenseConfigSettings = settings.updateLicenseConfigSettings.toBuilder(); + getLicenseConfigSettings = settings.getLicenseConfigSettings.toBuilder(); + listLicenseConfigsSettings = settings.listLicenseConfigsSettings.toBuilder(); + distributeLicenseConfigSettings = settings.distributeLicenseConfigSettings.toBuilder(); + retractLicenseConfigSettings = settings.retractLicenseConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createLicenseConfigSettings, + updateLicenseConfigSettings, + getLicenseConfigSettings, + listLicenseConfigsSettings, + distributeLicenseConfigSettings, + retractLicenseConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLicenseConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .distributeLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .retractLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings.Builder + createLicenseConfigSettings() { + return createLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings.Builder + updateLicenseConfigSettings() { + return updateLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings.Builder + getLicenseConfigSettings() { + return getLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings.Builder< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return listLicenseConfigsSettings; + } + + /** Returns the builder for the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings.Builder< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigSettings() { + return distributeLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings.Builder + retractLicenseConfigSettings() { + return retractLicenseConfigSettings; + } + + @Override + public LicenseConfigServiceStubSettings build() throws IOException { + return new LicenseConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java index c2275aea6f62..905cfc6901a2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java @@ -138,7 +138,11 @@ public class ProjectServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings provisionProjectSettings; private final OperationCallSettings diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java index ad7fb2d187ca..e99835132091 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java @@ -106,7 +106,11 @@ public class RankServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings rankSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java index b3ba550ef65b..c4b10e2ee0c6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java @@ -108,7 +108,11 @@ public class RecommendationServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings recommendSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java index 88c874673c1c..a0daa2fb4fa4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java @@ -155,7 +155,11 @@ public class SchemaServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getSchemaSettings; private final PagedCallSettings diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java index ab303e966cec..39f2395d74cf 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java @@ -141,7 +141,11 @@ public class SearchTuningServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings trainCustomModelSettings; private final OperationCallSettings< diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStub.java index 43a6ecd55d95..50846ceab88f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStub.java @@ -16,10 +16,18 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1.ServingConfig; import com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest; +import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; @@ -33,10 +41,32 @@ @Generated("by gapic-generator-java") public abstract class ServingConfigServiceStub implements BackgroundResource { + public UnaryCallable createServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createServingConfigCallable()"); + } + + public UnaryCallable deleteServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteServingConfigCallable()"); + } + public UnaryCallable updateServingConfigCallable() { throw new UnsupportedOperationException("Not implemented: updateServingConfigCallable()"); } + public UnaryCallable getServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getServingConfigCallable()"); + } + + public UnaryCallable + listServingConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listServingConfigsPagedCallable()"); + } + + public UnaryCallable + listServingConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listServingConfigsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java index 7d74faeea146..5bdd9374557a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java @@ -16,7 +16,10 @@ package com.google.cloud.discoveryengine.v1.stub; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; @@ -29,19 +32,31 @@ import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1.ServingConfig; import com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -66,7 +81,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of updateServingConfig: + * of createServingConfig: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -77,10 +92,10 @@
  * ServingConfigServiceStubSettings.Builder servingConfigServiceSettingsBuilder =
  *     ServingConfigServiceStubSettings.newBuilder();
  * servingConfigServiceSettingsBuilder
- *     .updateServingConfigSettings()
+ *     .createServingConfigSettings()
  *     .setRetrySettings(
  *         servingConfigServiceSettingsBuilder
- *             .updateServingConfigSettings()
+ *             .createServingConfigSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -107,10 +122,91 @@ public class ServingConfigServiceStubSettings
     extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
-
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
+
+  private final UnaryCallSettings
+      createServingConfigSettings;
+  private final UnaryCallSettings deleteServingConfigSettings;
   private final UnaryCallSettings
       updateServingConfigSettings;
+  private final UnaryCallSettings getServingConfigSettings;
+  private final PagedCallSettings<
+          ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+      listServingConfigsSettings;
+
+  private static final PagedListDescriptor<
+          ListServingConfigsRequest, ListServingConfigsResponse, ServingConfig>
+      LIST_SERVING_CONFIGS_PAGE_STR_DESC =
+          new PagedListDescriptor<
+              ListServingConfigsRequest, ListServingConfigsResponse, ServingConfig>() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListServingConfigsRequest injectToken(
+                ListServingConfigsRequest payload, String token) {
+              return ListServingConfigsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListServingConfigsRequest injectPageSize(
+                ListServingConfigsRequest payload, int pageSize) {
+              return ListServingConfigsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListServingConfigsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListServingConfigsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListServingConfigsResponse payload) {
+              return payload.getServingConfigsList();
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+      LIST_SERVING_CONFIGS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListServingConfigsRequest,
+              ListServingConfigsResponse,
+              ListServingConfigsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListServingConfigsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext
+                  pageContext =
+                      PageContext.create(
+                          callable, LIST_SERVING_CONFIGS_PAGE_STR_DESC, request, context);
+              return ListServingConfigsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
+  /** Returns the object with the settings used for calls to createServingConfig. */
+  public UnaryCallSettings
+      createServingConfigSettings() {
+    return createServingConfigSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deleteServingConfig. */
+  public UnaryCallSettings deleteServingConfigSettings() {
+    return deleteServingConfigSettings;
+  }
 
   /** Returns the object with the settings used for calls to updateServingConfig. */
   public UnaryCallSettings
@@ -118,6 +214,18 @@ public class ServingConfigServiceStubSettings
     return updateServingConfigSettings;
   }
 
+  /** Returns the object with the settings used for calls to getServingConfig. */
+  public UnaryCallSettings getServingConfigSettings() {
+    return getServingConfigSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listServingConfigs. */
+  public PagedCallSettings<
+          ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+      listServingConfigsSettings() {
+    return listServingConfigsSettings;
+  }
+
   public ServingConfigServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -229,7 +337,11 @@ public Builder toBuilder() {
   protected ServingConfigServiceStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
+    createServingConfigSettings = settingsBuilder.createServingConfigSettings().build();
+    deleteServingConfigSettings = settingsBuilder.deleteServingConfigSettings().build();
     updateServingConfigSettings = settingsBuilder.updateServingConfigSettings().build();
+    getServingConfigSettings = settingsBuilder.getServingConfigSettings().build();
+    listServingConfigsSettings = settingsBuilder.listServingConfigsSettings().build();
   }
 
   @Override
@@ -245,8 +357,17 @@ protected LibraryMetadata getLibraryMetadata() {
   public static class Builder
       extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
+    private final UnaryCallSettings.Builder
+        createServingConfigSettings;
+    private final UnaryCallSettings.Builder
+        deleteServingConfigSettings;
     private final UnaryCallSettings.Builder
         updateServingConfigSettings;
+    private final UnaryCallSettings.Builder
+        getServingConfigSettings;
+    private final PagedCallSettings.Builder<
+            ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+        listServingConfigsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -274,20 +395,38 @@ protected Builder() {
     protected Builder(@Nullable ClientContext clientContext) {
       super(clientContext);
 
+      createServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      deleteServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listServingConfigsSettings = PagedCallSettings.newBuilder(LIST_SERVING_CONFIGS_PAGE_STR_FACT);
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(updateServingConfigSettings);
+          ImmutableList.>of(
+              createServingConfigSettings,
+              deleteServingConfigSettings,
+              updateServingConfigSettings,
+              getServingConfigSettings,
+              listServingConfigsSettings);
       initDefaults(this);
     }
 
     protected Builder(ServingConfigServiceStubSettings settings) {
       super(settings);
 
+      createServingConfigSettings = settings.createServingConfigSettings.toBuilder();
+      deleteServingConfigSettings = settings.deleteServingConfigSettings.toBuilder();
       updateServingConfigSettings = settings.updateServingConfigSettings.toBuilder();
+      getServingConfigSettings = settings.getServingConfigSettings.toBuilder();
+      listServingConfigsSettings = settings.listServingConfigsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(updateServingConfigSettings);
+          ImmutableList.>of(
+              createServingConfigSettings,
+              deleteServingConfigSettings,
+              updateServingConfigSettings,
+              getServingConfigSettings,
+              listServingConfigsSettings);
     }
 
     private static Builder createDefault() {
@@ -315,11 +454,31 @@ private static Builder createHttpJsonDefault() {
     }
 
     private static Builder initDefaults(Builder builder) {
+      builder
+          .createServingConfigSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .deleteServingConfigSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .updateServingConfigSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .getServingConfigSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .listServingConfigsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       return builder;
     }
 
@@ -338,12 +497,37 @@ public Builder applyToAllUnaryMethods(
       return unaryMethodSettingsBuilders;
     }
 
+    /** Returns the builder for the settings used for calls to createServingConfig. */
+    public UnaryCallSettings.Builder
+        createServingConfigSettings() {
+      return createServingConfigSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deleteServingConfig. */
+    public UnaryCallSettings.Builder
+        deleteServingConfigSettings() {
+      return deleteServingConfigSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateServingConfig. */
     public UnaryCallSettings.Builder
         updateServingConfigSettings() {
       return updateServingConfigSettings;
     }
 
+    /** Returns the builder for the settings used for calls to getServingConfig. */
+    public UnaryCallSettings.Builder
+        getServingConfigSettings() {
+      return getServingConfigSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listServingConfigs. */
+    public PagedCallSettings.Builder<
+            ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse>
+        listServingConfigsSettings() {
+      return listServingConfigsSettings;
+    }
+
     @Override
     public ServingConfigServiceStubSettings build() throws IOException {
       return new ServingConfigServiceStubSettings(this);
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java
index 7f3ec733e7d1..37ac4dca0dcc 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java
@@ -121,7 +121,12 @@
 public class SessionServiceStubSettings extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
 
   private final UnaryCallSettings createSessionSettings;
   private final UnaryCallSettings deleteSessionSettings;
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java
index 05eb523dbdcc..82bd898c2400 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java
@@ -184,7 +184,11 @@ public class SiteSearchEngineServiceStubSettings
     extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
 
   private final UnaryCallSettings
       getSiteSearchEngineSettings;
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java
index a4970a4c691c..2604fa48403c 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java
@@ -145,7 +145,12 @@
 public class UserEventServiceStubSettings extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
 
   private final UnaryCallSettings writeUserEventSettings;
   private final UnaryCallSettings collectUserEventSettings;
@@ -347,7 +352,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE)));
       definitions.put(
-          "retry_policy_2_codes",
+          "retry_policy_3_codes",
           ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE)));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
@@ -378,7 +383,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder()
-                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
-                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"))
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"))
                   .build())
           .setResponseTransformer(
               ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class))
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java
index 82fd1ae24cfa..b8026bef353e 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java
@@ -24,6 +24,8 @@
 import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata;
 import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest;
 import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse;
+import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest;
+import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse;
 import com.google.cloud.discoveryengine.v1.ListUserLicensesRequest;
 import com.google.cloud.discoveryengine.v1.ListUserLicensesResponse;
 import com.google.longrunning.Operation;
@@ -61,6 +63,12 @@ public abstract class UserLicenseServiceStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listUserLicensesCallable()");
   }
 
+  public UnaryCallable
+      listLicenseConfigsUsageStatsCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: listLicenseConfigsUsageStatsCallable()");
+  }
+
   public OperationCallable<
           BatchUpdateUserLicensesRequest,
           BatchUpdateUserLicensesResponse,
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java
index 17b979b951f5..e75bb1e2685c 100644
--- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java
@@ -52,6 +52,8 @@
 import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata;
 import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest;
 import com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse;
+import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest;
+import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse;
 import com.google.cloud.discoveryengine.v1.ListUserLicensesRequest;
 import com.google.cloud.discoveryengine.v1.ListUserLicensesResponse;
 import com.google.cloud.discoveryengine.v1.UserLicense;
@@ -85,7 +87,7 @@
  *
  * 

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of listUserLicenses: + * of listLicenseConfigsUsageStats: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -96,10 +98,10 @@
  * UserLicenseServiceStubSettings.Builder userLicenseServiceSettingsBuilder =
  *     UserLicenseServiceStubSettings.newBuilder();
  * userLicenseServiceSettingsBuilder
- *     .listUserLicensesSettings()
+ *     .listLicenseConfigsUsageStatsSettings()
  *     .setRetrySettings(
  *         userLicenseServiceSettingsBuilder
- *             .listUserLicensesSettings()
+ *             .listLicenseConfigsUsageStatsSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -151,11 +153,18 @@
 public class UserLicenseServiceStubSettings extends StubSettings {
   /** The default scopes of the service. */
   private static final ImmutableList DEFAULT_SERVICE_SCOPES =
-      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+      ImmutableList.builder()
+          .add("https://www.googleapis.com/auth/cloud-platform")
+          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
+          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
+          .build();
 
   private final PagedCallSettings<
           ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse>
       listUserLicensesSettings;
+  private final UnaryCallSettings<
+          ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse>
+      listLicenseConfigsUsageStatsSettings;
   private final UnaryCallSettings
       batchUpdateUserLicensesSettings;
   private final OperationCallSettings<
@@ -228,6 +237,13 @@ public ApiFuture getFuturePagedResponse(
     return listUserLicensesSettings;
   }
 
+  /** Returns the object with the settings used for calls to listLicenseConfigsUsageStats. */
+  public UnaryCallSettings<
+          ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse>
+      listLicenseConfigsUsageStatsSettings() {
+    return listLicenseConfigsUsageStatsSettings;
+  }
+
   /** Returns the object with the settings used for calls to batchUpdateUserLicenses. */
   public UnaryCallSettings
       batchUpdateUserLicensesSettings() {
@@ -355,6 +371,8 @@ protected UserLicenseServiceStubSettings(Builder settingsBuilder) throws IOExcep
     super(settingsBuilder);
 
     listUserLicensesSettings = settingsBuilder.listUserLicensesSettings().build();
+    listLicenseConfigsUsageStatsSettings =
+        settingsBuilder.listLicenseConfigsUsageStatsSettings().build();
     batchUpdateUserLicensesSettings = settingsBuilder.batchUpdateUserLicensesSettings().build();
     batchUpdateUserLicensesOperationSettings =
         settingsBuilder.batchUpdateUserLicensesOperationSettings().build();
@@ -376,6 +394,9 @@ public static class Builder
     private final PagedCallSettings.Builder<
             ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse>
         listUserLicensesSettings;
+    private final UnaryCallSettings.Builder<
+            ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse>
+        listLicenseConfigsUsageStatsSettings;
     private final UnaryCallSettings.Builder
         batchUpdateUserLicensesSettings;
     private final OperationCallSettings.Builder<
@@ -411,12 +432,15 @@ protected Builder(@Nullable ClientContext clientContext) {
       super(clientContext);
 
       listUserLicensesSettings = PagedCallSettings.newBuilder(LIST_USER_LICENSES_PAGE_STR_FACT);
+      listLicenseConfigsUsageStatsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       batchUpdateUserLicensesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       batchUpdateUserLicensesOperationSettings = OperationCallSettings.newBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              listUserLicensesSettings, batchUpdateUserLicensesSettings);
+              listUserLicensesSettings,
+              listLicenseConfigsUsageStatsSettings,
+              batchUpdateUserLicensesSettings);
       initDefaults(this);
     }
 
@@ -424,13 +448,17 @@ protected Builder(UserLicenseServiceStubSettings settings) {
       super(settings);
 
       listUserLicensesSettings = settings.listUserLicensesSettings.toBuilder();
+      listLicenseConfigsUsageStatsSettings =
+          settings.listLicenseConfigsUsageStatsSettings.toBuilder();
       batchUpdateUserLicensesSettings = settings.batchUpdateUserLicensesSettings.toBuilder();
       batchUpdateUserLicensesOperationSettings =
           settings.batchUpdateUserLicensesOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              listUserLicensesSettings, batchUpdateUserLicensesSettings);
+              listUserLicensesSettings,
+              listLicenseConfigsUsageStatsSettings,
+              batchUpdateUserLicensesSettings);
     }
 
     private static Builder createDefault() {
@@ -463,6 +491,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLicenseConfigsUsageStatsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .batchUpdateUserLicensesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -519,6 +552,13 @@ public Builder applyToAllUnaryMethods(
       return listUserLicensesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLicenseConfigsUsageStats. */
+    public UnaryCallSettings.Builder<
+            ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse>
+        listLicenseConfigsUsageStatsSettings() {
+      return listLicenseConfigsUsageStatsSettings;
+    }
+
     /** Returns the builder for the settings used for calls to batchUpdateUserLicenses. */
     public UnaryCallSettings.Builder
         batchUpdateUserLicensesSettings() {
diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStub.java
new file mode 100644
index 000000000000..deb6aa2e3254
--- /dev/null
+++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStub.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.discoveryengine.v1.stub;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.discoveryengine.v1.GetUserStoreRequest;
+import com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest;
+import com.google.cloud.discoveryengine.v1.UserStore;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the UserStoreService service API.
+ *
+ * 

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class UserStoreServiceStub implements BackgroundResource { + + public UnaryCallable getUserStoreCallable() { + throw new UnsupportedOperationException("Not implemented: getUserStoreCallable()"); + } + + public UnaryCallable updateUserStoreCallable() { + throw new UnsupportedOperationException("Not implemented: updateUserStoreCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStubSettings.java new file mode 100644 index 000000000000..e6f9b98f8894 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserStoreServiceStubSettings.java @@ -0,0 +1,373 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserStoreServiceStub}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getUserStore: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * UserStoreServiceStubSettings.Builder userStoreServiceSettingsBuilder =
+ *     UserStoreServiceStubSettings.newBuilder();
+ * userStoreServiceSettingsBuilder
+ *     .getUserStoreSettings()
+ *     .setRetrySettings(
+ *         userStoreServiceSettingsBuilder
+ *             .getUserStoreSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * UserStoreServiceStubSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class UserStoreServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings getUserStoreSettings; + private final UnaryCallSettings updateUserStoreSettings; + + /** Returns the object with the settings used for calls to getUserStore. */ + public UnaryCallSettings getUserStoreSettings() { + return getUserStoreSettings; + } + + /** Returns the object with the settings used for calls to updateUserStore. */ + public UnaryCallSettings updateUserStoreSettings() { + return updateUserStoreSettings; + } + + public UserStoreServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcUserStoreServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonUserStoreServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserStoreServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserStoreServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserStoreServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserStoreServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getUserStoreSettings = settingsBuilder.getUserStoreSettings().build(); + updateUserStoreSettings = settingsBuilder.updateUserStoreSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for UserStoreServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getUserStoreSettings; + private final UnaryCallSettings.Builder + updateUserStoreSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + getUserStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateUserStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getUserStoreSettings, updateUserStoreSettings); + initDefaults(this); + } + + protected Builder(UserStoreServiceStubSettings settings) { + super(settings); + + getUserStoreSettings = settings.getUserStoreSettings.toBuilder(); + updateUserStoreSettings = settings.updateUserStoreSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getUserStoreSettings, updateUserStoreSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getUserStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateUserStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getUserStore. */ + public UnaryCallSettings.Builder getUserStoreSettings() { + return getUserStoreSettings; + } + + /** Returns the builder for the settings used for calls to updateUserStore. */ + public UnaryCallSettings.Builder updateUserStoreSettings() { + return updateUserStoreSettings; + } + + @Override + public UserStoreServiceStubSettings build() throws IOException { + return new UserStoreServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStub.java new file mode 100644 index 000000000000..8b6d0e489a84 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStub.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the WidgetConfigService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class WidgetConfigServiceStub implements BackgroundResource { + + public UnaryCallable getWidgetConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getWidgetConfigCallable()"); + } + + public UnaryCallable updateWidgetConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateWidgetConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStubSettings.java new file mode 100644 index 000000000000..1f656df69553 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/WidgetConfigServiceStubSettings.java @@ -0,0 +1,380 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link WidgetConfigServiceStub}. + * + *

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

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

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

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getWidgetConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WidgetConfigServiceStubSettings.Builder widgetConfigServiceSettingsBuilder =
+ *     WidgetConfigServiceStubSettings.newBuilder();
+ * widgetConfigServiceSettingsBuilder
+ *     .getWidgetConfigSettings()
+ *     .setRetrySettings(
+ *         widgetConfigServiceSettingsBuilder
+ *             .getWidgetConfigSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * WidgetConfigServiceStubSettings widgetConfigServiceSettings =
+ *     widgetConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class WidgetConfigServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings getWidgetConfigSettings; + private final UnaryCallSettings + updateWidgetConfigSettings; + + /** Returns the object with the settings used for calls to getWidgetConfig. */ + public UnaryCallSettings getWidgetConfigSettings() { + return getWidgetConfigSettings; + } + + /** Returns the object with the settings used for calls to updateWidgetConfig. */ + public UnaryCallSettings updateWidgetConfigSettings() { + return updateWidgetConfigSettings; + } + + public WidgetConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcWidgetConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonWidgetConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WidgetConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WidgetConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WidgetConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected WidgetConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getWidgetConfigSettings = settingsBuilder.getWidgetConfigSettings().build(); + updateWidgetConfigSettings = settingsBuilder.updateWidgetConfigSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for WidgetConfigServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getWidgetConfigSettings; + private final UnaryCallSettings.Builder + updateWidgetConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + getWidgetConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateWidgetConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getWidgetConfigSettings, updateWidgetConfigSettings); + initDefaults(this); + } + + protected Builder(WidgetConfigServiceStubSettings settings) { + super(settings); + + getWidgetConfigSettings = settings.getWidgetConfigSettings.toBuilder(); + updateWidgetConfigSettings = settings.updateWidgetConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getWidgetConfigSettings, updateWidgetConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getWidgetConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateWidgetConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getWidgetConfig. */ + public UnaryCallSettings.Builder + getWidgetConfigSettings() { + return getWidgetConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateWidgetConfig. */ + public UnaryCallSettings.Builder + updateWidgetConfigSettings() { + return updateWidgetConfigSettings; + } + + @Override + public WidgetConfigServiceStubSettings build() throws IOException { + return new WidgetConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json index 59aa72df5f68..ea828c56e486 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json @@ -495,7 +495,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig", + "name": "com.google.cloud.discoveryengine.v1.AclConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -504,7 +504,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.AclConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -513,7 +513,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AlloyDbSource", + "name": "com.google.cloud.discoveryengine.v1.ActionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -522,7 +522,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AlloyDbSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.ActionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -531,7 +531,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer", + "name": "com.google.cloud.discoveryengine.v1.ActionConfig$ScopeList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +540,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$AnswerSkippedReason", + "name": "com.google.cloud.discoveryengine.v1.ActionConfig$ScopeList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +549,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +558,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Citation", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$BoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +567,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Citation$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$BoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +576,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$CitationSource", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$BoostSpec$ConditionBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +585,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$CitationSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$BoostSpec$ConditionBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +594,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$GroundingSupport", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +603,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$GroundingSupport$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$SuggestionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +612,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$SuggestionTypeSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +621,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest$SuggestionTypeSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +630,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$QueryClassificationInfo", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +639,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Type", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$ContentSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$ContentSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$ContentSuggestion$ContentType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$PersonSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$PersonSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$PersonSuggestion$PersonType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$QuerySuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$StructuredDocumentInfo", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$QuerySuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$StructuredDocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$RecentSearchSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo", + "name": "com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse$RecentSearchSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo$ChunkContent", + "name": "com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo$ChunkContent$Builder", + "name": "com.google.cloud.discoveryengine.v1.AgentGatewaySetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$State", + "name": "com.google.cloud.discoveryengine.v1.AgentGatewaySetting$AgentGatewayReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step", + "name": "com.google.cloud.discoveryengine.v1.AgentGatewaySetting$AgentGatewayReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action", + "name": "com.google.cloud.discoveryengine.v1.AgentGatewaySetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Builder", + "name": "com.google.cloud.discoveryengine.v1.AlertPolicyConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation", + "name": "com.google.cloud.discoveryengine.v1.AlertPolicyConfig$AlertEnrollment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$Builder", + "name": "com.google.cloud.discoveryengine.v1.AlertPolicyConfig$AlertEnrollment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult", + "name": "com.google.cloud.discoveryengine.v1.AlertPolicyConfig$AlertEnrollment$EnrollStates", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1.AlertPolicyConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1.AlloyDbSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AlloyDbSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$SnippetInfo", + "name": "com.google.cloud.discoveryengine.v1.Answer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$SnippetInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$AnswerSkippedReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$SearchAction", + "name": "com.google.cloud.discoveryengine.v1.Answer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$SearchAction$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Citation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Citation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Answer$Step$State", + "name": "com.google.cloud.discoveryengine.v1.Answer$CitationSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest", + "name": "com.google.cloud.discoveryengine.v1.Answer$CitationSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$GroundingSupport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$GroundingSupport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$QueryClassificationInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$ChunkInfo$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$StructuredDocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$StructuredDocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$GroundingSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$GroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$GroundingSpec$FilteringLevel", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo$ChunkContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Reference$UnstructuredDocumentInfo$ChunkContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Type", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec$ModelType", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$RelatedQuestionsSpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$RelatedQuestionsSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$SnippetInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$Observation$SearchResult$SnippetInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$SearchAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$SafetySetting", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Action$SearchAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$SafetySetting$Builder", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$SafetySetting$HarmBlockThreshold", + "name": "com.google.cloud.discoveryengine.v1.Answer$Step$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec", + "name": "com.google.cloud.discoveryengine.v1.AnswerGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchParams", + "name": "com.google.cloud.discoveryengine.v1.AnswerGenerationSpec$UserDefinedClassifierSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchParams$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerGenerationSpec$UserDefinedClassifierSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryResponse", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$GroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AnswerQueryResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$GroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistAnswer", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$GroundingSpec$FilteringLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$AssistSkippedReason", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$Reply", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$Reply$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$State", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistUserMetadata", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistUserMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Assistant", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Assistant$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec$ModelType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$Blob", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$RelatedQuestionsSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$Blob$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$RelatedQuestionsSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$CodeExecutionResult", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$CodeExecutionResult$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$SafetySetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$CodeExecutionResult$Outcome", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$SafetySetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$ExecutableCode", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SafetySpec$SafetySetting$HarmBlockThreshold", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$ExecutableCode$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$File", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantContent$File$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchParams", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchParams$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Segment", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Segment$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSiteMetadata", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSiteMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$FhirMatcher", + "name": "com.google.cloud.discoveryengine.v1.AnswerQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$FhirMatcher$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Matcher", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$AssistSkippedReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Matcher$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$UrisMatcher", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$UrisMatcher$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$BannedPhraseEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$BannedPhraseEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$ModelArmorEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$ModelArmorEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$PolicyEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$PolicyEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$State", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$Verdict", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$CustomerPolicyEnforcementResult$ViolationSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$Reply", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$Reply$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistAnswer$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.AssistUserMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistUserMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse", + "name": "com.google.cloud.discoveryengine.v1.Assistant", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesMetadata", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$BannedPhrase", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$BannedPhrase$BannedPhraseMatchType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$BannedPhrase$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$ModelArmorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigQuerySource", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$ModelArmorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigQuerySource$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$CustomerPolicy$ModelArmorConfig$FailureMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions", + "name": "com.google.cloud.discoveryengine.v1.Assistant$GenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumn", + "name": "com.google.cloud.discoveryengine.v1.Assistant$GenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumn$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$GenerationConfig$SystemInstruction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumnFamily", + "name": "com.google.cloud.discoveryengine.v1.Assistant$GenerationConfig$SystemInstruction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumnFamily$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$ToolInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$Builder", + "name": "com.google.cloud.discoveryengine.v1.Assistant$ToolInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$Encoding", + "name": "com.google.cloud.discoveryengine.v1.Assistant$ToolList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$Type", + "name": "com.google.cloud.discoveryengine.v1.Assistant$ToolList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableSource", + "name": "com.google.cloud.discoveryengine.v1.Assistant$WebGroundingType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.BigtableSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingRequest", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$Blob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$Blob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$CodeExecutionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$CheckGroundingFactChunk", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$CodeExecutionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$CheckGroundingFactChunk$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$CodeExecutionResult$Outcome", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$Claim", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$ExecutableCode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$Claim$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$ExecutableCode$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingSpec", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$File", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CheckGroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantContent$File$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$AnnotationMetadata", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$AnnotationMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$ChunkMetadata", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$ChunkMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$PageSpan", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata$Language", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$PageSpan$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Segment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$StructureType", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$Segment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$StructuredContent", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$VisualSegment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Chunk$StructuredContent$Builder", + "name": "com.google.cloud.discoveryengine.v1.AssistantGroundedContent$TextGroundingMetadata$VisualSegment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CloudSqlSource", + "name": "com.google.cloud.discoveryengine.v1.BAPConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CloudSqlSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.BAPConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CmekConfig", + "name": "com.google.cloud.discoveryengine.v1.BAPConfig$ConnectorMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CmekConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.BAPConfig$ToolspecOverride", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CmekConfig$NotebookLMState", + "name": "com.google.cloud.discoveryengine.v1.BAPConfig$ToolspecOverride$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CmekConfig$State", + "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CollectUserEventRequest", + "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CollectUserEventRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompleteQueryRequest", + "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompleteQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse", + "name": "com.google.cloud.discoveryengine.v1.BatchCreateTargetSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse$QuerySuggestion", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse$QuerySuggestion$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$FhirMatcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompletionInfo", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$FhirMatcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompletionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Matcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompletionSuggestion", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$Matcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CompletionSuggestion$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$UrisMatcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Condition", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest$UrisMatcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Condition$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Condition$QueryTerm", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Condition$QueryTerm$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Condition$TimeRange", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Condition$TimeRange$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction", + "name": "com.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$AttributeType", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$ControlPoint", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$ControlPoint$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$InterpolationType", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$FilterAction", + "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$FilterAction$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$PromoteAction", + "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$PromoteAction$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$RedirectAction", + "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$RedirectAction$Builder", + "name": "com.google.cloud.discoveryengine.v1.BatchVerifyTargetSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$SynonymsAction", + "name": "com.google.cloud.discoveryengine.v1.BigQuerySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Control$SynonymsAction$Builder", + "name": "com.google.cloud.discoveryengine.v1.BigQuerySource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Conversation", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Conversation$Builder", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Conversation$State", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConversationContext", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumnFamily", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConversationContext$Builder", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$BigtableColumnFamily$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConversationMessage", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConversationMessage$Builder", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConverseConversationRequest", + "name": "com.google.cloud.discoveryengine.v1.BigtableOptions$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConverseConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.BigtableSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConverseConversationResponse", + "name": "com.google.cloud.discoveryengine.v1.BigtableSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ConverseConversationResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateControlRequest", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateConversationRequest", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$CheckGroundingFactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreMetadata", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$CheckGroundingFactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$Claim", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingResponse$Claim$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1.CheckGroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1.Chunk$AnnotationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk$AnnotationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateEngineRequest", + "name": "com.google.cloud.discoveryengine.v1.Chunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk$ChunkMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateIdentityMappingStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.Chunk$ChunkMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateIdentityMappingStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSchemaMetadata", + "name": "com.google.cloud.discoveryengine.v1.Chunk$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSchemaMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk$PageSpan", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1.Chunk$PageSpan$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk$StructureType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSessionRequest", + "name": "com.google.cloud.discoveryengine.v1.Chunk$StructuredContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Chunk$StructuredContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSitemapMetadata", + "name": "com.google.cloud.discoveryengine.v1.Citation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSitemapMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Citation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSitemapRequest", + "name": "com.google.cloud.discoveryengine.v1.Citation$PhishBlockThreshold", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateSitemapRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CitationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteMetadata", + "name": "com.google.cloud.discoveryengine.v1.CitationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.CliConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1.CliConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CloudSqlSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CustomAttribute", + "name": "com.google.cloud.discoveryengine.v1.CloudSqlSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CustomAttribute$Builder", + "name": "com.google.cloud.discoveryengine.v1.CmekConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CustomTuningModel", + "name": "com.google.cloud.discoveryengine.v1.CmekConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CustomTuningModel$Builder", + "name": "com.google.cloud.discoveryengine.v1.CmekConfig$NotebookLMState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.CustomTuningModel$ModelState", + "name": "com.google.cloud.discoveryengine.v1.CmekConfig$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DataStore", + "name": "com.google.cloud.discoveryengine.v1.CollectUserEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DataStore$BillingEstimation", + "name": "com.google.cloud.discoveryengine.v1.CollectUserEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DataStore$BillingEstimation$Builder", + "name": "com.google.cloud.discoveryengine.v1.Collection", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DataStore$Builder", + "name": "com.google.cloud.discoveryengine.v1.Collection$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DataStore$ContentConfig", + "name": "com.google.cloud.discoveryengine.v1.CompleteQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigMetadata", + "name": "com.google.cloud.discoveryengine.v1.CompleteQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigRequest", + "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse$QuerySuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteControlRequest", + "name": "com.google.cloud.discoveryengine.v1.CompleteQueryResponse$QuerySuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CompletionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteConversationRequest", + "name": "com.google.cloud.discoveryengine.v1.CompletionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CompletionSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +3249,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreMetadata", + "name": "com.google.cloud.discoveryengine.v1.CompletionSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +3258,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +3267,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.Condition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +3276,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Condition$QueryTerm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +3285,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1.Condition$QueryTerm$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +3294,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Condition$TimeRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +3303,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1.Condition$TimeRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +3312,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.ConnectorType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteEngineRequest", + "name": "com.google.cloud.discoveryengine.v1.Control", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreMetadata", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$ControlPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$ControlPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1.Control$BoostAction$InterpolationBoostSpec$InterpolationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSessionRequest", + "name": "com.google.cloud.discoveryengine.v1.Control$FilterAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$FilterAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapMetadata", + "name": "com.google.cloud.discoveryengine.v1.Control$PromoteAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$PromoteAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapRequest", + "name": "com.google.cloud.discoveryengine.v1.Control$RedirectAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$RedirectAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteMetadata", + "name": "com.google.cloud.discoveryengine.v1.Control$SynonymsAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Control$SynonymsAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1.Conversation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Conversation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +3501,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchMetadata", + "name": "com.google.cloud.discoveryengine.v1.Conversation$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +3510,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.ConversationContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +3519,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest", + "name": "com.google.cloud.discoveryengine.v1.ConversationContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +3528,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.ConversationMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +3537,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse", + "name": "com.google.cloud.discoveryengine.v1.ConversationMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +3546,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.ConverseConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +3555,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document", + "name": "com.google.cloud.discoveryengine.v1.ConverseConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +3564,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo", + "name": "com.google.cloud.discoveryengine.v1.ConverseConversationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +3573,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo$AccessRestriction", + "name": "com.google.cloud.discoveryengine.v1.ConverseConversationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +3582,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo$AccessRestriction$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +3591,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +3600,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +3609,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$Content", + "name": "com.google.cloud.discoveryengine.v1.CreateControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +3618,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$Content$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +3627,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$IndexStatus", + "name": "com.google.cloud.discoveryengine.v1.CreateConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +3636,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Document$IndexStatus$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +3645,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentInfo", + "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +3654,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +3663,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +3672,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +3681,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +3690,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +3699,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +3708,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +3717,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +3726,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateIdentityMappingStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +3735,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateIdentityMappingStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +3744,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +3753,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +3762,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateSchemaMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +3771,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateSchemaMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +3780,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +3789,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DoubleList", + "name": "com.google.cloud.discoveryengine.v1.CreateSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +3798,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.DoubleList$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +3807,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchMetadata", + "name": "com.google.cloud.discoveryengine.v1.CreateServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +3816,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +3825,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest", + "name": "com.google.cloud.discoveryengine.v1.CreateSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +3834,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateSitemapMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +3843,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse", + "name": "com.google.cloud.discoveryengine.v1.CreateSitemapMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +3852,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateSitemapRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +3861,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine", + "name": "com.google.cloud.discoveryengine.v1.CreateSitemapRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +3870,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +3879,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +3888,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig$AgentCreationConfig", + "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +3897,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig$AgentCreationConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CreateTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +3906,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CustomAttribute", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +3915,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1.CustomAttribute$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +3924,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.CustomTuningModel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +3933,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$CommonConfig", + "name": "com.google.cloud.discoveryengine.v1.CustomTuningModel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +3942,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$CommonConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.CustomTuningModel$ModelState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +3951,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig", + "name": "com.google.cloud.discoveryengine.v1.DataConnector", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +3960,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$BlockingReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +3969,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$EngineFeaturesConfig", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +3978,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$EngineFeaturesConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$ConnectorMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +3987,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$MostPopularFeatureConfig", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$ConnectorMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +3996,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$MostPopularFeatureConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$ConnectorMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +4005,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$OptimizationObjectiveConfig", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$EndUserConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +4014,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$OptimizationObjectiveConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$EndUserConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +4023,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$RecommendedForYouFeatureConfig", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$FederatedConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +4032,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$RecommendedForYouFeatureConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$FederatedConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +4041,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$TrainingState", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$RealtimeSyncConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +4050,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$SearchEngineConfig", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$RealtimeSyncConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +4059,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Engine$SearchEngineConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$RealtimeSyncConfig$StreamingError", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +4068,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FactChunk", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$RealtimeSyncConfig$StreamingError$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +4077,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FactChunk$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$RealtimeSyncConfig$StreamingError$StreamingErrorReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +4086,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$SourceEntity", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +4095,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$SourceEntity$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +4104,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +4113,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataConnector$SyncMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4122,7 +4122,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest", + "name": "com.google.cloud.discoveryengine.v1.DataProtectionPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4131,7 +4131,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataProtectionPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4140,7 +4140,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$Matcher", + "name": "com.google.cloud.discoveryengine.v1.DataProtectionPolicy$SensitiveDataProtectionPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4149,7 +4149,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$Matcher$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataProtectionPolicy$SensitiveDataProtectionPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +4158,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$UrisMatcher", + "name": "com.google.cloud.discoveryengine.v1.DataStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$UrisMatcher$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$BillingEstimation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse", + "name": "com.google.cloud.discoveryengine.v1.DataStore$BillingEstimation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4185,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4194,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse$SitemapMetadata", + "name": "com.google.cloud.discoveryengine.v1.DataStore$ConfigurableBillingApproach", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4203,7 +4203,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse$SitemapMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$ContentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4212,7 +4212,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FhirStoreSource", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4221,7 +4221,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FhirStoreSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4230,7 +4230,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FirestoreSource", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbAiNaturalLanguageConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4239,7 +4239,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.FirestoreSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbAiNaturalLanguageConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4248,7 +4248,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GcsSource", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbConnectionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4257,7 +4257,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GcsSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbConnectionConfig$AuthMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4266,7 +4266,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbConnectionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4275,7 +4275,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$AlloyDbConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4284,7 +4284,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4293,7 +4293,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$NotebooklmConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4302,7 +4302,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$NotebooklmConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4311,7 +4311,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$ThirdPartyOauthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4320,7 +4320,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Version", + "name": "com.google.cloud.discoveryengine.v1.DataStore$FederatedSearchConfig$ThirdPartyOauthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4329,7 +4329,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec", + "name": "com.google.cloud.discoveryengine.v1.DataStore$ServingConfigDataStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4338,7 +4338,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.DataStore$ServingConfigDataStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4347,7 +4347,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource", + "name": "com.google.cloud.discoveryengine.v1.DeleteAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4356,7 +4356,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4365,7 +4365,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$EnterpriseWebRetrievalSource", + "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4374,7 +4374,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$EnterpriseWebRetrievalSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4383,7 +4383,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource", + "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4392,7 +4392,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteCmekConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4401,7 +4401,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4410,7 +4410,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4419,7 +4419,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$SearchSource", + "name": "com.google.cloud.discoveryengine.v1.DeleteCollectionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4428,7 +4428,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$SearchSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteCollectionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +4437,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSpec", + "name": "com.google.cloud.discoveryengine.v1.DeleteControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +4446,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +4455,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse", + "name": "com.google.cloud.discoveryengine.v1.DeleteConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +4464,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4473,7 +4473,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate", + "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4482,7 +4482,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4491,7 +4491,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata", + "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4500,7 +4500,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4509,7 +4509,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata", + "name": "com.google.cloud.discoveryengine.v1.DeleteDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4518,7 +4518,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4527,7 +4527,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata", + "name": "com.google.cloud.discoveryengine.v1.DeleteEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4536,7 +4536,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4545,7 +4545,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Version", + "name": "com.google.cloud.discoveryengine.v1.DeleteEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4554,7 +4554,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport", + "name": "com.google.cloud.discoveryengine.v1.DeleteEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4563,7 +4563,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4572,7 +4572,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata", + "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4581,7 +4581,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4590,7 +4590,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Image", + "name": "com.google.cloud.discoveryengine.v1.DeleteIdentityMappingStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4599,7 +4599,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Image$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4608,7 +4608,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$WebsiteInfo", + "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4617,7 +4617,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$WebsiteInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4626,7 +4626,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata", + "name": "com.google.cloud.discoveryengine.v1.DeleteSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4635,7 +4635,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4644,7 +4644,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Source", + "name": "com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4653,7 +4653,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint", + "name": "com.google.cloud.discoveryengine.v1.DeleteSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4662,7 +4662,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4671,7 +4671,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetAnswerRequest", + "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4680,7 +4680,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetAnswerRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4689,7 +4689,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetCmekConfigRequest", + "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4698,7 +4698,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetCmekConfigRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteSitemapRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4707,7 +4707,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetControlRequest", + "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4716,7 +4716,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4725,7 +4725,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetConversationRequest", + "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4734,7 +4734,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DeleteTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4743,7 +4743,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.DestinationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4752,7 +4752,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DestinationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4761,7 +4761,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1.DestinationConfig$Destination", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4770,7 +4770,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DestinationConfig$Destination$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4779,7 +4779,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetEngineRequest", + "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4788,7 +4788,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4797,7 +4797,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetIdentityMappingStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4806,7 +4806,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetIdentityMappingStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4815,7 +4815,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4824,7 +4824,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4833,7 +4833,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetSessionRequest", + "name": "com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4842,7 +4842,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4851,7 +4851,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest", + "name": "com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4860,7 +4860,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4869,7 +4869,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1.Document", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4878,7 +4878,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GetTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4887,7 +4887,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent", + "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo$AccessRestriction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4896,7 +4896,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Builder", + "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo$AccessRestriction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4905,7 +4905,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Part", + "name": "com.google.cloud.discoveryengine.v1.Document$AclInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4914,7 +4914,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Part$Builder", + "name": "com.google.cloud.discoveryengine.v1.Document$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4923,7 +4923,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GroundingFact", + "name": "com.google.cloud.discoveryengine.v1.Document$Content", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4932,7 +4932,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.GroundingFact$Builder", + "name": "com.google.cloud.discoveryengine.v1.Document$Content$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4941,7 +4941,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.HarmCategory", + "name": "com.google.cloud.discoveryengine.v1.Document$IndexStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4950,7 +4950,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.HealthcareFhirConfig", + "name": "com.google.cloud.discoveryengine.v1.Document$IndexStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4959,7 +4959,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.HealthcareFhirConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4968,7 +4968,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntry", + "name": "com.google.cloud.discoveryengine.v1.DocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4977,7 +4977,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntry$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4986,7 +4986,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntryOperationMetadata", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4995,7 +4995,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntryOperationMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5004,7 +5004,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IdentityMappingStore", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5013,7 +5013,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IdentityMappingStore$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5022,7 +5022,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5031,7 +5031,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5040,7 +5040,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5049,7 +5049,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5058,7 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5067,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5076,7 +5076,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponse", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5085,7 +5085,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5094,7 +5094,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5103,7 +5103,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.DoubleList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5112,7 +5112,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1.DoubleList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5121,7 +5121,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.DynamicTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5130,7 +5130,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.DynamicTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5139,7 +5139,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5148,7 +5148,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$ReconciliationMode", + "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5157,7 +5157,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5166,7 +5166,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5175,7 +5175,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportErrorConfig", + "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5184,7 +5184,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5193,7 +5193,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest", + "name": "com.google.cloud.discoveryengine.v1.Engine", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5202,7 +5202,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$AppType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5211,7 +5211,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.Engine$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5220,7 +5220,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5229,7 +5229,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsResponse", + "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig$AgentCreationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5238,7 +5238,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig$AgentCreationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5247,7 +5247,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5256,7 +5256,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5265,7 +5265,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1.Engine$ChatEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5274,7 +5274,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$CommonConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5283,7 +5283,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.Engine$CommonConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5292,7 +5292,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$ConfigurableBillingApproach", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5301,7 +5301,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1.Engine$FeatureState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5310,7 +5310,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$KnowledgeGraphConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5319,7 +5319,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1.Engine$KnowledgeGraphConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5328,7 +5328,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$KnowledgeGraphConfig$FeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5337,7 +5337,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1.Engine$KnowledgeGraphConfig$FeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5346,7 +5346,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$MarketplaceAgentVisibility", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5355,7 +5355,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5364,7 +5364,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5373,7 +5373,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$EngineFeaturesConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5382,7 +5382,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$EngineFeaturesConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5391,7 +5391,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.IndustryVertical", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$MostPopularFeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5400,7 +5400,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Interval", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$MostPopularFeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5409,7 +5409,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Interval$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$OptimizationObjectiveConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5418,7 +5418,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsRequest", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$OptimizationObjectiveConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5427,7 +5427,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$RecommendedForYouFeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5436,7 +5436,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsResponse", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$RecommendedForYouFeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5445,7 +5445,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$MediaRecommendationEngineConfig$TrainingState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5454,7 +5454,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListControlsRequest", + "name": "com.google.cloud.discoveryengine.v1.Engine$ModelState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5463,7 +5463,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListControlsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Engine$SearchEngineConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5472,7 +5472,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListControlsResponse", + "name": "com.google.cloud.discoveryengine.v1.Engine$SearchEngineConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5481,7 +5481,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListControlsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.FactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5490,7 +5490,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListConversationsRequest", + "name": "com.google.cloud.discoveryengine.v1.FactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5499,7 +5499,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListConversationsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Feedback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5508,7 +5508,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListConversationsResponse", + "name": "com.google.cloud.discoveryengine.v1.Feedback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5517,7 +5517,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListConversationsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Feedback$ConversationInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5526,7 +5526,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsRequest", + "name": "com.google.cloud.discoveryengine.v1.Feedback$ConversationInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5535,7 +5535,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.Feedback$FeedbackSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5544,7 +5544,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsResponse", + "name": "com.google.cloud.discoveryengine.v1.Feedback$FeedbackType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5553,7 +5553,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.Feedback$Reason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5562,7 +5562,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDataStoresRequest", + "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5571,7 +5571,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDataStoresRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5580,7 +5580,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDataStoresResponse", + "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5589,7 +5589,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDataStoresResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5598,7 +5598,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5607,7 +5607,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5616,7 +5616,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$Matcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5625,7 +5625,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$Matcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5634,7 +5634,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListEnginesRequest", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$UrisMatcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5643,7 +5643,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListEnginesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsRequest$UrisMatcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5652,7 +5652,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListEnginesResponse", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5661,7 +5661,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListEnginesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5670,7 +5670,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresRequest", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse$SitemapMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5679,7 +5679,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.FetchSitemapsResponse$SitemapMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5688,7 +5688,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresResponse", + "name": "com.google.cloud.discoveryengine.v1.FhirStoreSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5697,7 +5697,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.FhirStoreSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5706,7 +5706,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsRequest", + "name": "com.google.cloud.discoveryengine.v1.FirestoreSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5715,7 +5715,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.FirestoreSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5724,7 +5724,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsResponse", + "name": "com.google.cloud.discoveryengine.v1.GcsSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5733,7 +5733,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GcsSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5742,7 +5742,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSchemasRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5751,7 +5751,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSchemasRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5760,7 +5760,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSchemasResponse", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5769,7 +5769,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSchemasResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5778,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSessionsRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5787,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSessionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5796,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSessionsResponse", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Version", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5805,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListSessionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5814,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5823,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GenerationSpec$ProvisionedThroughputSetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5832,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5841,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5850,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$EnterpriseWebRetrievalSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5859,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$EnterpriseWebRetrievalSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5868,7 +5868,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesResponse", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5877,7 +5877,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5886,7 +5886,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.MediaInfo", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5895,7 +5895,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.MediaInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5904,7 +5904,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$SearchSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5913,7 +5913,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSource$SearchSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5922,7 +5922,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig$Mode", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5931,7 +5931,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PageInfo", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest$GroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5940,7 +5940,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PageInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5949,7 +5949,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PanelInfo", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5958,7 +5958,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PanelInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5967,7 +5967,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Principal", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5976,7 +5976,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Principal$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5985,7 +5985,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Project", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5994,7 +5994,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Project$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6003,7 +6003,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Project$ServiceTerms", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6012,7 +6012,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Project$ServiceTerms$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6021,7 +6021,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Project$ServiceTerms$State", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6030,7 +6030,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectMetadata", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Version", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6039,7 +6039,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6048,7 +6048,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6057,7 +6057,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6066,7 +6066,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsMetadata", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6075,7 +6075,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Image", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6084,7 +6084,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Image$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6093,7 +6093,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$WebsiteInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6102,7 +6102,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$WebsiteInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6111,7 +6111,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6120,7 +6120,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6129,7 +6129,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Source", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6138,7 +6138,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6147,7 +6147,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6156,7 +6156,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$VideoMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6165,7 +6165,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse$Candidate$GroundingMetadata$VideoMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6174,7 +6174,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1.GetAclConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6183,7 +6183,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetAclConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6192,7 +6192,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeErrorConfig", + "name": "com.google.cloud.discoveryengine.v1.GetAnswerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6201,7 +6201,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetAnswerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6210,7 +6210,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest", + "name": "com.google.cloud.discoveryengine.v1.GetAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6219,7 +6219,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6228,7 +6228,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1.GetCmekConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6237,7 +6237,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetCmekConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6246,7 +6246,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1.GetControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6255,7 +6255,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6264,7 +6264,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1.GetConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6273,7 +6273,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6282,7 +6282,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1.GetDataConnectorRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6291,7 +6291,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetDataConnectorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6300,7 +6300,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1.GetDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6309,7 +6309,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6318,7 +6318,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1.GetDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6327,7 +6327,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6336,7 +6336,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1.GetEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6345,7 +6345,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6354,7 +6354,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Query", + "name": "com.google.cloud.discoveryengine.v1.GetIdentityMappingStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6363,7 +6363,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Query$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetIdentityMappingStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6372,7 +6372,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RankRequest", + "name": "com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6381,7 +6381,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RankRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6390,7 +6390,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RankResponse", + "name": "com.google.cloud.discoveryengine.v1.GetSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6399,7 +6399,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RankResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6408,7 +6408,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RankingRecord", + "name": "com.google.cloud.discoveryengine.v1.GetServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6417,7 +6417,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RankingRecord$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6426,7 +6426,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecommendRequest", + "name": "com.google.cloud.discoveryengine.v1.GetSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6435,7 +6435,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecommendRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6444,7 +6444,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecommendResponse", + "name": "com.google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6453,7 +6453,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecommendResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6462,7 +6462,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecommendResponse$RecommendationResult", + "name": "com.google.cloud.discoveryengine.v1.GetTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6471,7 +6471,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecommendResponse$RecommendationResult$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6480,7 +6480,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisMetadata", + "name": "com.google.cloud.discoveryengine.v1.GetUserStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6489,7 +6489,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetUserStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6498,7 +6498,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisRequest", + "name": "com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6507,7 +6507,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6516,7 +6516,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse", + "name": "com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest$GetWidgetConfigRequestOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6525,7 +6525,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest$GetWidgetConfigRequestOption$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6534,7 +6534,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo", + "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6543,7 +6543,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6552,7 +6552,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$FailureReason", + "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Part", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6561,7 +6561,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", + "name": "com.google.cloud.discoveryengine.v1.GroundedGenerationContent$Part$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6570,7 +6570,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", + "name": "com.google.cloud.discoveryengine.v1.GroundingFact", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6579,7 +6579,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Reply", + "name": "com.google.cloud.discoveryengine.v1.GroundingFact$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6588,7 +6588,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Reply$Builder", + "name": "com.google.cloud.discoveryengine.v1.HarmCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6597,7 +6597,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SafetyRating", + "name": "com.google.cloud.discoveryengine.v1.HealthcareFhirConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6606,7 +6606,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SafetyRating$Builder", + "name": "com.google.cloud.discoveryengine.v1.HealthcareFhirConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6615,7 +6615,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SafetyRating$HarmProbability", + "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6624,7 +6624,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SafetyRating$HarmSeverity", + "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6633,7 +6633,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Schema", + "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntryOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6642,7 +6642,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Schema$Builder", + "name": "com.google.cloud.discoveryengine.v1.IdentityMappingEntryOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6651,7 +6651,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchAddOn", + "name": "com.google.cloud.discoveryengine.v1.IdentityMappingStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6660,7 +6660,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchInfo", + "name": "com.google.cloud.discoveryengine.v1.IdentityMappingStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6669,7 +6669,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.IdentityScheduleConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6678,7 +6678,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchLinkPromotion", + "name": "com.google.cloud.discoveryengine.v1.IdentityScheduleConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6687,7 +6687,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchLinkPromotion$Builder", + "name": "com.google.cloud.discoveryengine.v1.IdpConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6696,7 +6696,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest", + "name": "com.google.cloud.discoveryengine.v1.IdpConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6705,7 +6705,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec", + "name": "com.google.cloud.discoveryengine.v1.IdpConfig$ExternalIdpConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6714,7 +6714,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.IdpConfig$ExternalIdpConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6723,7 +6723,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec", + "name": "com.google.cloud.discoveryengine.v1.IdpConfig$IdpType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6732,7 +6732,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6741,7 +6741,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6750,7 +6750,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6759,7 +6759,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6768,7 +6768,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6777,7 +6777,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6786,7 +6786,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6795,7 +6795,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6804,7 +6804,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6813,7 +6813,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6822,7 +6822,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ChunkSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6831,7 +6831,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ChunkSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6840,7 +6840,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6849,7 +6849,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6858,7 +6858,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SearchResultMode", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsRequest$ReconciliationMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6867,7 +6867,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SnippetSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6876,7 +6876,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6885,7 +6885,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec", + "name": "com.google.cloud.discoveryengine.v1.ImportErrorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6894,7 +6894,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportErrorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6903,7 +6903,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6912,7 +6912,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6921,7 +6921,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6930,7 +6930,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6939,7 +6939,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6948,7 +6948,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportIdentityMappingsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6957,7 +6957,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec$Mode", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6966,7 +6966,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CustomRankingParams", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6975,7 +6975,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CustomRankingParams$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6984,7 +6984,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DataStoreSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6993,7 +6993,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DataStoreSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7002,7 +7002,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DisplaySpec", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7011,7 +7011,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DisplaySpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7020,7 +7020,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DisplaySpec$MatchHighlightingCondition", + "name": "com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7029,7 +7029,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7038,7 +7038,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7047,7 +7047,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec$FacetKey", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7056,7 +7056,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec$FacetKey$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7065,7 +7065,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ImageQuery", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7074,7 +7074,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ImageQuery$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7083,7 +7083,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7092,7 +7092,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.ImportUserEventsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7101,7 +7101,2140 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$ExtractedFilterBehavior", + "name": "com.google.cloud.discoveryengine.v1.IndustryVertical", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.LicenseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.LicenseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.LicenseConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListAssistantsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListAssistantsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListAssistantsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListAssistantsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCmekConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListControlsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListControlsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListControlsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListControlsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListCustomModelsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDataStoresRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDataStoresRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDataStoresResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDataStoresResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListEnginesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListEnginesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListEnginesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListEnginesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingStoresResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListIdentityMappingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSchemasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSchemasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSchemasResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSchemasResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListServingConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListServingConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListServingConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListServingConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListTargetSitesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ListUserLicensesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.MediaInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.MediaInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ModelInfoView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ObservabilityConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ObservabilityConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PanelInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PanelInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Principal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Principal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ConfigurableBillingStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ConfigurableBillingStatus$AgentSearchTokenSubscriptionStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ConfigurableBillingStatus$AgentSearchTokenSubscriptionStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ConfigurableBillingStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ConfigurableBillingStatus$UpdateType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy$SensitiveDataProtectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy$SensitiveDataProtectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$ModelArmorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$NotebooklmConfig$ModelArmorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$ResourceAccessControlConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$CustomerProvidedConfig$ResourceAccessControlConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ServiceTerms", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ServiceTerms$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Project$ServiceTerms$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$SaasParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$SaasParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeErrorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeErrorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.PurgeUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Query", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Query$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RankRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RankRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RankResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RankResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RankingRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RankingRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecommendRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecommendRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecommendResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecommendResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecommendResponse$RecommendationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecommendResponse$RecommendationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$FailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Reply", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Reply$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SafetyRating", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SafetyRating$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SafetyRating$HarmProbability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SafetyRating$HarmSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Schema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Schema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchAddOn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchLinkPromotion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchLinkPromotion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ChunkSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ChunkSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SearchResultMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SnippetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CrowdingSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CustomRankingParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$CustomRankingParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DataStoreSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DataStoreSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DisplaySpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DisplaySpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$DisplaySpec$MatchHighlightingCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec$FacetKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$FacetSpec$FacetKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ImageQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$ImageQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$NaturalLanguageQueryUnderstandingSpec$ExtractedFilterBehavior", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7119,7 +9252,889 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec", + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec$Condition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RankingExpressionBackend", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec$RelevanceThresholdSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec$RelevanceThresholdSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceScoreSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceScoreSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceThreshold", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAddonSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAddonSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Condition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Field", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Field$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SessionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SessionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SpellCorrectionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SpellCorrectionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SpellCorrectionSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet$FacetValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet$FacetValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Comparison", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$QueryExpansionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$QueryExpansionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals$CustomSignal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals$CustomSignal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RetrievalSignals", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RetrievalSignals$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RetrievalSignals$RetrievalSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SemanticState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SessionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SessionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Citation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Citation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference$ChunkContent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference$ChunkContent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SafetyAttributes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SafetyAttributes$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SummarySkippedReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SummaryWithMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SummaryWithMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchTier", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SearchUseCase", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ServingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ServingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ServingConfig$GenericConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ServingConfig$GenericConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ServingConfig$MediaConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.ServingConfig$MediaConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Session", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Session$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Session$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Session$Turn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Session$Turn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SessionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SessionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SessionConfig$SessionManagementPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SessionConfig$SessionTtl", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SessionConfig$SessionTtl$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7128,7 +10143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.SingleRegionKey", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7137,7 +10152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$QueryExpansionSpec$Condition", + "name": "com.google.cloud.discoveryengine.v1.SingleRegionKey$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7146,7 +10161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RankingExpressionBackend", + "name": "com.google.cloud.discoveryengine.v1.SiteSearchEngine", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7155,7 +10170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec", + "name": "com.google.cloud.discoveryengine.v1.SiteSearchEngine$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7164,7 +10179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.SiteVerificationInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7173,7 +10188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec$RelevanceThresholdSpec", + "name": "com.google.cloud.discoveryengine.v1.SiteVerificationInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7182,7 +10197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceFilterSpec$RelevanceThresholdSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.SiteVerificationInfo$SiteVerificationState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7191,7 +10206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceScoreSpec", + "name": "com.google.cloud.discoveryengine.v1.Sitemap", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7200,7 +10215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceScoreSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.Sitemap$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7209,7 +10224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$RelevanceThreshold", + "name": "com.google.cloud.discoveryengine.v1.SolutionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7218,7 +10233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAddonSpec", + "name": "com.google.cloud.discoveryengine.v1.SpannerSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7227,7 +10242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAddonSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.SpannerSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7236,7 +10251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7245,7 +10260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7254,7 +10269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Condition", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec$AgentSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7263,7 +10278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Field", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec$AgentSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7272,7 +10287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SearchAsYouTypeSpec$Field$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7281,7 +10296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SessionSpec", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7290,7 +10305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SessionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$GenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7299,7 +10314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SpellCorrectionSpec", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$GenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7308,7 +10323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SpellCorrectionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7317,7 +10332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchRequest$SpellCorrectionSpec$Mode", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7326,7 +10341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$ImageGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7335,7 +10350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$ImageGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7344,7 +10359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VertexAiSearchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7353,7 +10368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VertexAiSearchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7362,7 +10377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet$FacetValue", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VideoGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7371,7 +10386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Facet$FacetValue$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VideoGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7380,7 +10395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$WebGroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7389,7 +10404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$WebGroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7398,7 +10413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7407,7 +10422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7416,7 +10431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$ConnectorAuthError", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7425,7 +10440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$ConnectorAuthError$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7434,7 +10449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$InvokedSkill", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7443,7 +10458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$InvokedSkill$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7452,7 +10467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$SessionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7461,7 +10476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint$Builder", + "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$SessionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7470,7 +10485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint", + "name": "com.google.cloud.discoveryengine.v1.SubscriptionTerm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7479,7 +10494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Builder", + "name": "com.google.cloud.discoveryengine.v1.SubscriptionTier", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7488,7 +10503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Comparison", + "name": "com.google.cloud.discoveryengine.v1.SuggestionDenyListEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7497,7 +10512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression", + "name": "com.google.cloud.discoveryengine.v1.SuggestionDenyListEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7506,7 +10521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression$Builder", + "name": "com.google.cloud.discoveryengine.v1.SuggestionDenyListEntry$MatchOperator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7515,7 +10530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint", + "name": "com.google.cloud.discoveryengine.v1.TargetSite", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7524,7 +10539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint$Builder", + "name": "com.google.cloud.discoveryengine.v1.TargetSite$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7533,7 +10548,178 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$QueryExpansionInfo", + "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason$QuotaFailure", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason$QuotaFailure$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TargetSite$IndexingStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TargetSite$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Tenant", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.Tenant$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TextInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TextInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest$GcsTrainingInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest$GcsTrainingInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TransactionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1.TransactionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7542,7 +10728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$QueryExpansionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7551,7 +10737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult", + "name": "com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7560,7 +10746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7569,7 +10755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals", + "name": "com.google.cloud.discoveryengine.v1.UpdateAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7578,7 +10764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7587,7 +10773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals$CustomSignal", + "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7596,7 +10782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RankSignals$CustomSignal$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7605,7 +10791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RetrievalSignals", + "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7614,7 +10800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RetrievalSignals$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7623,7 +10809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SearchResult$RetrievalSignals$RetrievalSource", + "name": "com.google.cloud.discoveryengine.v1.UpdateControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7632,7 +10818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SemanticState", + "name": "com.google.cloud.discoveryengine.v1.UpdateConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7641,7 +10827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SessionInfo", + "name": "com.google.cloud.discoveryengine.v1.UpdateConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7650,7 +10836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$SessionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7659,7 +10845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary", + "name": "com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7668,7 +10854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7677,7 +10863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Citation", + "name": "com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7686,7 +10872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Citation$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7695,7 +10881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationMetadata", + "name": "com.google.cloud.discoveryengine.v1.UpdateDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7704,7 +10890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7713,7 +10899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationSource", + "name": "com.google.cloud.discoveryengine.v1.UpdateEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7722,7 +10908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$CitationSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7731,7 +10917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference", + "name": "com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7740,7 +10926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7749,7 +10935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference$ChunkContent", + "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7758,7 +10944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$Reference$ChunkContent$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7767,7 +10953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SafetyAttributes", + "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7776,7 +10962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SafetyAttributes$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7785,7 +10971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SummarySkippedReason", + "name": "com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7794,7 +10980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SummaryWithMetadata", + "name": "com.google.cloud.discoveryengine.v1.UpdateSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7803,7 +10989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchResponse$Summary$SummaryWithMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7812,7 +10998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchTier", + "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7821,7 +11007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SearchUseCase", + "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7830,7 +11016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ServingConfig", + "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7839,7 +11025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ServingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7848,7 +11034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ServingConfig$GenericConfig", + "name": "com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7857,7 +11043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ServingConfig$GenericConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7866,7 +11052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ServingConfig$MediaConfig", + "name": "com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7875,7 +11061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.ServingConfig$MediaConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7884,7 +11070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Session", + "name": "com.google.cloud.discoveryengine.v1.UserEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7893,7 +11079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Session$Builder", + "name": "com.google.cloud.discoveryengine.v1.UserEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7902,7 +11088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Session$State", + "name": "com.google.cloud.discoveryengine.v1.UserInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7911,7 +11097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Session$Turn", + "name": "com.google.cloud.discoveryengine.v1.UserInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7920,7 +11106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Session$Turn$Builder", + "name": "com.google.cloud.discoveryengine.v1.UserInfo$PreciseLocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7929,7 +11115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SingleRegionKey", + "name": "com.google.cloud.discoveryengine.v1.UserInfo$PreciseLocation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7938,7 +11124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SingleRegionKey$Builder", + "name": "com.google.cloud.discoveryengine.v1.UserLicense", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7947,7 +11133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SiteSearchEngine", + "name": "com.google.cloud.discoveryengine.v1.UserLicense$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7956,7 +11142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SiteSearchEngine$Builder", + "name": "com.google.cloud.discoveryengine.v1.UserLicense$LicenseAssignmentState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7965,7 +11151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SiteVerificationInfo", + "name": "com.google.cloud.discoveryengine.v1.UserStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7974,7 +11160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SiteVerificationInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.UserStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7983,7 +11169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SiteVerificationInfo$SiteVerificationState", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7992,7 +11178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Sitemap", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$AccessSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8001,7 +11187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.Sitemap$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$AccessSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8010,7 +11196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SolutionType", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$AssistantSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8019,7 +11205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SpannerSource", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$AssistantSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8028,7 +11214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SpannerSource$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$AssistantSettings$WebGroundingType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8037,7 +11223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$BatchAuthStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8046,7 +11232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$BatchAuthStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8055,7 +11241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec$AgentSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8064,7 +11250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec$AgentSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$CollectionComponent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8073,7 +11259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$AgentsSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$CollectionComponent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8082,7 +11268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$ConnectorAuthState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8091,7 +11277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$GenerationSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$ConnectorAuthState$AuthState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8100,7 +11286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$GenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$ConnectorAuthState$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8109,7 +11295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$CustomerProvidedConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8118,7 +11304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$CustomerProvidedConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8127,7 +11313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$ImageGenerationSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$CustomerProvidedConfig$ComplianceLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8136,7 +11322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$ImageGenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$CustomerProvidedConfig$CustomerType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8145,7 +11331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VertexAiSearchSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$DataStoreComponent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8154,7 +11340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VertexAiSearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$DataStoreComponent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8163,7 +11349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VideoGenerationSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$DataStoreComponent$DataStoreConfigType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8172,7 +11358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$VideoGenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$DataStoreType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8181,7 +11367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$WebGroundingSpec", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$DataStoreUiConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8190,7 +11376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistRequest$ToolsSpec$WebGroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$DataStoreUiConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8199,7 +11385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$FacetField", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8208,7 +11394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$FacetField$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8217,7 +11403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$SessionInfo", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$HomepageSetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8226,7 +11412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.StreamAssistResponse$SessionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$HomepageSetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8235,7 +11421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SuggestionDenyListEntry", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$HomepageSetting$Shortcut", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8244,7 +11430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SuggestionDenyListEntry$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$HomepageSetting$Shortcut$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8253,7 +11439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.SuggestionDenyListEntry$MatchOperator", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$Image", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8262,7 +11448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$Image$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8271,7 +11457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$Node", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8280,7 +11466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$Node$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8289,7 +11475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$Node$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8298,7 +11484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason$QuotaFailure", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$ResultDisplayType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8307,7 +11493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$FailureReason$QuotaFailure$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UIComponentField", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8316,7 +11502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$IndexingStatus", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UIComponentField$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8325,7 +11511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TargetSite$Type", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UIComponentField$DeviceVisibility", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8334,7 +11520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TextInput", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiBrandingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8343,7 +11529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TextInput$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiBrandingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8352,7 +11538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelMetadata", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8361,7 +11547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8370,7 +11556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$FeatureState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8379,7 +11565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$GenerativeAnswerConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8388,7 +11574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest$GcsTrainingInput", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$GenerativeAnswerConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8397,7 +11583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelRequest$GcsTrainingInput$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$GenerativeAnswerConfig$ImageSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8406,7 +11592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelResponse", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$InteractionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8415,7 +11601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TrainCustomModelResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelConfigInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8424,7 +11610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TransactionInfo", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelConfigInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8433,7 +11619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.TransactionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelConfigInfo$ResolvedModel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8442,7 +11628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigMetadata", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelConfigInfo$ResolvedModel$AdminView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8451,7 +11637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelConfigInfo$ResolvedModel$AdminView$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8460,7 +11646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigRequest", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelConfigInfo$ResolvedModel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8469,7 +11655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateCmekConfigRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$ModelState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8478,7 +11664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateControlRequest", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$SearchAddonSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8487,7 +11673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.WidgetConfig$UiSettings$SearchAddonSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8496,7 +11682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateConversationRequest", + "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8505,7 +11691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8514,7 +11700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8523,7 +11709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1.WriteUserEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8532,7 +11718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1.WriteUserEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8541,7 +11727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateDocumentRequest$Builder", + "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8550,7 +11736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateEngineRequest", + "name": "com.google.cloud.location.GetLocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8559,7 +11745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateEngineRequest$Builder", + "name": "com.google.cloud.location.ListLocationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8568,7 +11754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata", + "name": "com.google.cloud.location.ListLocationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8577,7 +11763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaMetadata$Builder", + "name": "com.google.cloud.location.ListLocationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8586,7 +11772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaRequest", + "name": "com.google.cloud.location.ListLocationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8595,7 +11781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateSchemaRequest$Builder", + "name": "com.google.cloud.location.Location", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8604,7 +11790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest", + "name": "com.google.cloud.location.Location$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8613,7 +11799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest$Builder", + "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8622,7 +11808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateSessionRequest", + "name": "com.google.iam.v1.AuditConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8631,7 +11817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateSessionRequest$Builder", + "name": "com.google.iam.v1.AuditConfigDelta", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8640,7 +11826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteMetadata", + "name": "com.google.iam.v1.AuditConfigDelta$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8649,7 +11835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteMetadata$Builder", + "name": "com.google.iam.v1.AuditConfigDelta$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8658,7 +11844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteRequest", + "name": "com.google.iam.v1.AuditLogConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8667,7 +11853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UpdateTargetSiteRequest$Builder", + "name": "com.google.iam.v1.AuditLogConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8676,7 +11862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserEvent", + "name": "com.google.iam.v1.AuditLogConfig$LogType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8685,7 +11871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserEvent$Builder", + "name": "com.google.iam.v1.Binding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8694,7 +11880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserInfo", + "name": "com.google.iam.v1.Binding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8703,7 +11889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserInfo$Builder", + "name": "com.google.iam.v1.BindingDelta", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8712,7 +11898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserLicense", + "name": "com.google.iam.v1.BindingDelta$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8721,7 +11907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserLicense$Builder", + "name": "com.google.iam.v1.BindingDelta$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8730,7 +11916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.UserLicense$LicenseAssignmentState", + "name": "com.google.iam.v1.GetIamPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8739,7 +11925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig", + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8748,7 +11934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig$Builder", + "name": "com.google.iam.v1.GetPolicyOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8757,7 +11943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.WorkspaceConfig$Type", + "name": "com.google.iam.v1.GetPolicyOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8766,7 +11952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.WriteUserEventRequest", + "name": "com.google.iam.v1.Policy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8775,7 +11961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1.WriteUserEventRequest$Builder", + "name": "com.google.iam.v1.Policy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8784,7 +11970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.GetLocationRequest", + "name": "com.google.iam.v1.PolicyDelta", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8793,7 +11979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.GetLocationRequest$Builder", + "name": "com.google.iam.v1.PolicyDelta$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8802,7 +11988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsRequest", + "name": "com.google.iam.v1.SetIamPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8811,7 +11997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8820,7 +12006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsResponse", + "name": "com.google.iam.v1.TestIamPermissionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8829,7 +12015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8838,7 +12024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.Location", + "name": "com.google.iam.v1.TestIamPermissionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8847,7 +12033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.Location$Builder", + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9979,5 +13165,77 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.type.DateTime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DateTime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeZone", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeZone$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..0d4eba2a211b --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientHttpJsonTest.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1.stub.HttpJsonAclConfigServiceStub; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AclConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AclConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAclConfigServiceStub.getMethodDescriptors(), + AclConfigServiceSettings.getDefaultEndpoint()); + AclConfigServiceSettings settings = + AclConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AclConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AclConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder() + .setAclConfig( + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build()) + .build(); + + AclConfig actualResponse = client.updateAclConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAclConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder() + .setAclConfig( + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build()) + .build(); + client.updateAclConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest2() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-599/locations/location-599/aclConfig"; + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-599/locations/location-599/aclConfig"; + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientTest.java new file mode 100644 index 000000000000..361f3a173864 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AclConfigServiceClientTest.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AclConfigServiceClientTest { + private static MockAclConfigService mockAclConfigService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AclConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAclConfigService = new MockAclConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAclConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AclConfigServiceSettings settings = + AclConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AclConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + + AclConfig actualResponse = client.updateAclConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAclConfigRequest actualRequest = ((UpdateAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAclConfig(), actualRequest.getAclConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAclConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + client.updateAclConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclConfigRequest actualRequest = ((GetAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest2() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclConfigRequest actualRequest = ((GetAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientHttpJsonTest.java index b67fdb6dd504..f25e29e6f503 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientHttpJsonTest.java @@ -16,17 +16,30 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.discoveryengine.v1.stub.HttpJsonAssistantServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; +import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -76,4 +89,456 @@ public void streamAssistExceptionTest() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); } + + @Test + public void createAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + + Assistant actualResponse = client.createAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + client.createAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + client.deleteAssistant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + + client.deleteAssistant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAssistantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Assistant assistant = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Assistant actualResponse = client.updateAssistant(assistant, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Assistant assistant = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAssistant(assistant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + Assistant actualResponse = client.getAssistant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest2() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + + Assistant actualResponse = client.getAssistant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAssistantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssistantsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listAssistants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest2() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6937/locations/location-6937/collections/collection-6937/engines/engine-6937"; + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssistantsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6937/locations/location-6937/collections/collection-6937/engines/engine-6937"; + client.listAssistants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientTest.java index 335adc36dcc4..a09d346bde07 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/AssistantServiceClientTest.java @@ -16,17 +16,28 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.AssistantServiceClient.ListAssistantsPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.testing.LocalChannelProvider; import com.google.api.gax.grpc.testing.MockGrpcService; import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; @@ -86,6 +97,9 @@ public void streamAssistTest() throws Exception { .setAnswer(AssistAnswer.newBuilder().build()) .setSessionInfo(StreamAssistResponse.SessionInfo.newBuilder().build()) .setAssistToken("assistToken-336502512") + .addAllInvocationTools(new ArrayList()) + .addAllInvokedSkills(new ArrayList()) + .addAllConnectorAuthErrors(new ArrayList()) .build(); mockAssistantService.addResponse(expectedResponse); StreamAssistRequest request = @@ -152,4 +166,377 @@ public void streamAssistExceptionTest() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void createAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + + Assistant actualResponse = client.createAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAssistantRequest actualRequest = ((CreateAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getAssistant(), actualRequest.getAssistant()); + Assert.assertEquals(request.getAssistantId(), actualRequest.getAssistantId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + client.createAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + client.deleteAssistant(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantRequest actualRequest = ((DeleteAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAssistant(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantRequest actualRequest = ((DeleteAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + Assistant assistant = Assistant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Assistant actualResponse = client.updateAssistant(assistant, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAssistantRequest actualRequest = ((UpdateAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(assistant, actualRequest.getAssistant()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + Assistant assistant = Assistant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAssistant(assistant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + Assistant actualResponse = client.getAssistant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantRequest actualRequest = ((GetAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest2() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + Assistant actualResponse = client.getAssistant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantRequest actualRequest = ((GetAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantsRequest actualRequest = ((ListAssistantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listAssistants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest2() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantsRequest actualRequest = ((ListAssistantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAssistants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..7fa3ed07beba --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientHttpJsonTest.java @@ -0,0 +1,365 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.stub.HttpJsonCollectionServiceStub; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CollectionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CollectionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCollectionServiceStub.getMethodDescriptors(), + CollectionServiceSettings.getDefaultEndpoint()); + CollectionServiceSettings settings = + CollectionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CollectionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CollectionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void deleteCollectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCollectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CollectionName name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + + client.deleteCollectionAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCollectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CollectionName name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + client.deleteCollectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCollectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCollectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-283/locations/location-283/collections/collection-283"; + + client.deleteCollectionAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCollectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-283/locations/location-283/collections/collection-283"; + client.deleteCollectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-7266/locations/location-7266/collections/collection-7266"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-7266/locations/location-7266/collections/collection-7266"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-7266/locations/location-7266/collections/collection-7266"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-7266/locations/location-7266/collections/collection-7266"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientTest.java new file mode 100644 index 000000000000..2fab79d4522d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CollectionServiceClientTest.java @@ -0,0 +1,347 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CollectionServiceClientTest { + private static MockCollectionService mockCollectionService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CollectionServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCollectionService = new MockCollectionService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockCollectionService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CollectionServiceSettings settings = + CollectionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CollectionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void deleteCollectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCollectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCollectionService.addResponse(resultOperation); + + CollectionName name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + + client.deleteCollectionAsync(name).get(); + + List actualRequests = mockCollectionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCollectionRequest actualRequest = ((DeleteCollectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCollectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCollectionService.addException(exception); + + try { + CollectionName name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + client.deleteCollectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCollectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCollectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCollectionService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCollectionAsync(name).get(); + + List actualRequests = mockCollectionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCollectionRequest actualRequest = ((DeleteCollectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCollectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCollectionService.addException(exception); + + try { + String name = "name3373707"; + client.deleteCollectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockCollectionService.addResponse(expectedResponse); + + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCollectionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCollectionService.addException(exception); + + try { + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockCollectionService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCollectionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCollectionService.addException(exception); + + try { + String resource = "resource-341064690"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockCollectionService.addResponse(expectedResponse); + + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCollectionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCollectionService.addException(exception); + + try { + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockCollectionService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCollectionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCollectionService.addException(exception); + + try { + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java index 798c18336932..a023f46f7d92 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientHttpJsonTest.java @@ -141,6 +141,89 @@ public void completeQueryExceptionTest() throws Exception { } } + @Test + public void advancedCompleteQueryTest() throws Exception { + AdvancedCompleteQueryResponse expectedResponse = + AdvancedCompleteQueryResponse.newBuilder() + .addAllQuerySuggestions(new ArrayList()) + .setTailMatchTriggered(true) + .addAllPeopleSuggestions( + new ArrayList()) + .addAllContentSuggestions( + new ArrayList()) + .addAllRecentSearchSuggestions( + new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AdvancedCompleteQueryRequest request = + AdvancedCompleteQueryRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setIncludeTailSuggestions(true) + .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) + .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) + .build(); + + AdvancedCompleteQueryResponse actualResponse = client.advancedCompleteQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void advancedCompleteQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AdvancedCompleteQueryRequest request = + AdvancedCompleteQueryRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setIncludeTailSuggestions(true) + .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) + .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) + .build(); + client.advancedCompleteQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void importSuggestionDenyListEntriesTest() throws Exception { ImportSuggestionDenyListEntriesResponse expectedResponse = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java index 40b818af4be9..cba465c559b2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/CompletionServiceClientTest.java @@ -148,6 +148,95 @@ public void completeQueryExceptionTest() throws Exception { } } + @Test + public void advancedCompleteQueryTest() throws Exception { + AdvancedCompleteQueryResponse expectedResponse = + AdvancedCompleteQueryResponse.newBuilder() + .addAllQuerySuggestions(new ArrayList()) + .setTailMatchTriggered(true) + .addAllPeopleSuggestions( + new ArrayList()) + .addAllContentSuggestions( + new ArrayList()) + .addAllRecentSearchSuggestions( + new ArrayList()) + .build(); + mockCompletionService.addResponse(expectedResponse); + + AdvancedCompleteQueryRequest request = + AdvancedCompleteQueryRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setIncludeTailSuggestions(true) + .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) + .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) + .build(); + + AdvancedCompleteQueryResponse actualResponse = client.advancedCompleteQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AdvancedCompleteQueryRequest actualRequest = + ((AdvancedCompleteQueryRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getCompletionConfig(), actualRequest.getCompletionConfig()); + Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getQueryModel(), actualRequest.getQueryModel()); + Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); + Assert.assertEquals(request.getUserInfo(), actualRequest.getUserInfo()); + Assert.assertEquals( + request.getIncludeTailSuggestions(), actualRequest.getIncludeTailSuggestions()); + Assert.assertEquals(request.getBoostSpec(), actualRequest.getBoostSpec()); + Assert.assertEquals(request.getSuggestionTypesList(), actualRequest.getSuggestionTypesList()); + Assert.assertEquals( + request.getSuggestionTypeSpecsList(), actualRequest.getSuggestionTypeSpecsList()); + Assert.assertEquals(request.getExperimentIdsList(), actualRequest.getExperimentIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void advancedCompleteQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + AdvancedCompleteQueryRequest request = + AdvancedCompleteQueryRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setIncludeTailSuggestions(true) + .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) + .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) + .build(); + client.advancedCompleteQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void importSuggestionDenyListEntriesTest() throws Exception { ImportSuggestionDenyListEntriesResponse expectedResponse = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java index 6e5f30c57bab..7d0c69b3334b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientHttpJsonTest.java @@ -900,6 +900,7 @@ public void createSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -958,6 +959,7 @@ public void createSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -1100,6 +1102,7 @@ public void updateSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -1116,6 +1119,7 @@ public void updateSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1158,6 +1162,7 @@ public void updateSessionExceptionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSession(session, updateMask); @@ -1182,6 +1187,7 @@ public void getSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -1240,6 +1246,7 @@ public void getSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java index d42d591d435c..0ff6a89ee4e7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClientTest.java @@ -895,6 +895,7 @@ public void createSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -948,6 +949,7 @@ public void createSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -1071,6 +1073,7 @@ public void updateSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -1122,6 +1125,7 @@ public void getSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -1174,6 +1178,7 @@ public void getSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..6783f8292ce9 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientHttpJsonTest.java @@ -0,0 +1,624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1.stub.HttpJsonDataConnectorServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import com.google.type.DateTime; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataConnectorServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DataConnectorServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDataConnectorServiceStub.getMethodDescriptors(), + DataConnectorServiceSettings.getDefaultEndpoint()); + DataConnectorServiceSettings settings = + DataConnectorServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DataConnectorServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataConnectorServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void setUpDataConnectorTest() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("setUpDataConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + + DataConnector actualResponse = + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setUpDataConnectorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void setUpDataConnectorTest2() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("setUpDataConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + + DataConnector actualResponse = + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setUpDataConnectorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getDataConnectorTest() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataConnectorName name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + + DataConnector actualResponse = client.getDataConnector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDataConnectorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataConnectorName name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + client.getDataConnector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataConnectorTest2() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6289/locations/location-6289/collections/collection-6289/dataConnector"; + + DataConnector actualResponse = client.getDataConnector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDataConnectorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6289/locations/location-6289/collections/collection-6289/dataConnector"; + client.getDataConnector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataConnectorTest() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataConnector dataConnector = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataConnector actualResponse = client.updateDataConnector(dataConnector, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDataConnectorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataConnector dataConnector = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataConnector(dataConnector, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientTest.java new file mode 100644 index 000000000000..6b4b666e3a56 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceClientTest.java @@ -0,0 +1,527 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import com.google.type.DateTime; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataConnectorServiceClientTest { + private static MockDataConnectorService mockDataConnectorService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DataConnectorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDataConnectorService = new MockDataConnectorService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDataConnectorService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DataConnectorServiceSettings settings = + DataConnectorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataConnectorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void setUpDataConnectorTest() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("setUpDataConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataConnectorService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + + DataConnector actualResponse = + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataConnectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetUpDataConnectorRequest actualRequest = ((SetUpDataConnectorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(collectionId, actualRequest.getCollectionId()); + Assert.assertEquals(collectionDisplayName, actualRequest.getCollectionDisplayName()); + Assert.assertEquals(dataConnector, actualRequest.getDataConnector()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setUpDataConnectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataConnectorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void setUpDataConnectorTest2() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("setUpDataConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataConnectorService.addResponse(resultOperation); + + String parent = "parent-995424086"; + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + + DataConnector actualResponse = + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataConnectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetUpDataConnectorRequest actualRequest = ((SetUpDataConnectorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(collectionId, actualRequest.getCollectionId()); + Assert.assertEquals(collectionDisplayName, actualRequest.getCollectionDisplayName()); + Assert.assertEquals(dataConnector, actualRequest.getDataConnector()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setUpDataConnectorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataConnectorService.addException(exception); + + try { + String parent = "parent-995424086"; + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + client + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDataConnectorTest() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + mockDataConnectorService.addResponse(expectedResponse); + + DataConnectorName name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + + DataConnector actualResponse = client.getDataConnector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataConnectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataConnectorRequest actualRequest = ((GetDataConnectorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataConnectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataConnectorService.addException(exception); + + try { + DataConnectorName name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + client.getDataConnector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataConnectorTest2() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + mockDataConnectorService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataConnector actualResponse = client.getDataConnector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataConnectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataConnectorRequest actualRequest = ((GetDataConnectorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataConnectorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataConnectorService.addException(exception); + + try { + String name = "name3373707"; + client.getDataConnector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataConnectorTest() throws Exception { + DataConnector expectedResponse = + DataConnector.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setDataSource("dataSource1272470629") + .addAllRemoveParamKeys(new ArrayList()) + .setRefreshInterval(Duration.newBuilder().build()) + .setNextSyncTime(DateTime.newBuilder().build()) + .addAllEntities(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setLatestPauseTime(Timestamp.newBuilder().build()) + .setLastSyncTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setKmsKeyName("kmsKeyName412586233") + .addAllDestinationConfigs(new ArrayList()) + .setActionConfig(ActionConfig.newBuilder().build()) + .setEndUserConfig(DataConnector.EndUserConfig.newBuilder().build()) + .setFederatedConfig(DataConnector.FederatedConfig.newBuilder().build()) + .addAllConnectorModes(new ArrayList()) + .setStaticIpEnabled(true) + .addAllStaticIpAddresses(new ArrayList()) + .addAllOauthStaticIpAddresses(new ArrayList()) + .addAllBlockingReasons(new ArrayList()) + .setIdentityScheduleConfig(IdentityScheduleConfig.newBuilder().build()) + .setPrivateConnectivityProjectId("privateConnectivityProjectId57045082") + .setBapConfig(BAPConfig.newBuilder().build()) + .setConnectorType(ConnectorType.forNumber(0)) + .addAllAlertPolicyConfigs(new ArrayList()) + .setRealtimeSyncConfig(DataConnector.RealtimeSyncConfig.newBuilder().build()) + .setAclEnabled(true) + .setCreateEuaSaas(true) + .setAutoRunDisabled(true) + .setIncrementalSyncDisabled(true) + .setIncrementalRefreshInterval(Duration.newBuilder().build()) + .setHybridIngestionDisabled(true) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) + .addAllEgressFqdns(new ArrayList()) + .setVpcscEnabled(true) + .addAllDynamicTools(new ArrayList()) + .setCliConfig(CliConfig.newBuilder().build()) + .setConnectorSourceId("connectorSourceId-1832087037") + .setTag("tag114586") + .setMetadata(DataConnector.ConnectorMetadata.newBuilder().build()) + .build(); + mockDataConnectorService.addResponse(expectedResponse); + + DataConnector dataConnector = DataConnector.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataConnector actualResponse = client.updateDataConnector(dataConnector, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataConnectorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataConnectorRequest actualRequest = ((UpdateDataConnectorRequest) actualRequests.get(0)); + + Assert.assertEquals(dataConnector, actualRequest.getDataConnector()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataConnectorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataConnectorService.addException(exception); + + try { + DataConnector dataConnector = DataConnector.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataConnector(dataConnector, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java index 5a13c8fb59e8..5c7cb27f585c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientHttpJsonTest.java @@ -27,10 +27,15 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.discoveryengine.v1.stub.HttpJsonDataStoreServiceStub; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -106,9 +111,14 @@ public void createDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -181,9 +191,14 @@ public void createDataStoreTest2() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -256,9 +271,14 @@ public void getDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -324,9 +344,14 @@ public void getDataStoreTest2() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -582,9 +607,14 @@ public void updateDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -610,9 +640,14 @@ public void updateDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -664,9 +699,14 @@ public void updateDataStoreExceptionTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDataStore(dataStore, updateMask); @@ -675,4 +715,208 @@ public void updateDataStoreExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = + "projects/project-9368/locations/location-9368/collections/collection-9368/dataStores/dataStore-9368"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = + "projects/project-9368/locations/location-9368/collections/collection-9368/dataStores/dataStore-9368"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = + "projects/project-9368/locations/location-9368/collections/collection-9368/dataStores/dataStore-9368"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = + "projects/project-9368/locations/location-9368/collections/collection-9368/dataStores/dataStore-9368"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java index a1c72de447f7..85074b0d2ef1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClientTest.java @@ -26,10 +26,17 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -113,9 +120,14 @@ public void createDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -187,9 +199,14 @@ public void createDataStoreTest2() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -261,9 +278,14 @@ public void getDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -323,9 +345,14 @@ public void getDataStoreTest2() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -557,9 +584,14 @@ public void updateDataStoreTest() throws Exception { .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) + .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) .setIdentityMappingStore( IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) + .setDataProtectionPolicy(DataProtectionPolicy.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -595,4 +627,182 @@ public void updateDataStoreExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + String resource = "resource-341064690"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java index b8b7a0cff377..74c680147528 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientHttpJsonTest.java @@ -27,16 +27,22 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.discoveryengine.v1.stub.HttpJsonEngineServiceStub; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.concurrent.ExecutionException; import javax.annotation.Generated; @@ -95,7 +101,17 @@ public void createEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); Operation resultOperation = Operation.newBuilder() @@ -157,7 +173,17 @@ public void createEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); Operation resultOperation = Operation.newBuilder() @@ -311,7 +337,17 @@ public void updateEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); mockService.addResponse(expectedResponse); @@ -326,7 +362,17 @@ public void updateEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -367,7 +413,17 @@ public void updateEngineExceptionTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateEngine(engine, updateMask); @@ -390,7 +446,17 @@ public void getEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); mockService.addResponse(expectedResponse); @@ -443,7 +509,17 @@ public void getEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); mockService.addResponse(expectedResponse); @@ -584,4 +660,200 @@ public void listEnginesExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java index 6c490256ffa2..0e2c2d5b1534 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/EngineServiceClientTest.java @@ -26,10 +26,17 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -37,6 +44,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; @@ -102,7 +110,17 @@ public void createEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); Operation resultOperation = Operation.newBuilder() @@ -163,7 +181,17 @@ public void createEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); Operation resultOperation = Operation.newBuilder() @@ -308,7 +336,17 @@ public void updateEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); mockEngineService.addResponse(expectedResponse); @@ -358,7 +396,17 @@ public void getEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); mockEngineService.addResponse(expectedResponse); @@ -405,7 +453,17 @@ public void getEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .setSessionConfig(SessionConfig.newBuilder().build()) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) + .setAssociatedAgentRegistry("associatedAgentRegistry-1486670084") .build(); mockEngineService.addResponse(expectedResponse); @@ -526,4 +584,174 @@ public void listEnginesExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + String resource = "resource-341064690"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..5ed11c6ac2f7 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientHttpJsonTest.java @@ -0,0 +1,838 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1.stub.HttpJsonLicenseConfigServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.type.Date; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class LicenseConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static LicenseConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonLicenseConfigServiceStub.getMethodDescriptors(), + LicenseConfigServiceSettings.getDefaultEndpoint()); + LicenseConfigServiceSettings settings = + LicenseConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + LicenseConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LicenseConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LicenseConfig licenseConfig = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LicenseConfig actualResponse = client.updateLicenseConfig(licenseConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LicenseConfig licenseConfig = + LicenseConfig.newBuilder() + .setName( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLicenseConfig(licenseConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + + LicenseConfig actualResponse = client.getLicenseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9552/locations/location-9552/licenseConfigs/licenseConfig-9552"; + + LicenseConfig actualResponse = client.getLicenseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9552/locations/location-9552/licenseConfigs/licenseConfig-9552"; + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLicenseConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest2() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLicenseConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void distributeLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest2() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void distributeLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void retractLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest2() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void retractLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest3() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void retractLicenseConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest4() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void retractLicenseConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientTest.java new file mode 100644 index 000000000000..437c75ad8c0e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceClientTest.java @@ -0,0 +1,767 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import static com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.type.Date; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class LicenseConfigServiceClientTest { + private static MockLicenseConfigService mockLicenseConfigService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private LicenseConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockLicenseConfigService = new MockLicenseConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockLicenseConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + LicenseConfigServiceSettings settings = + LicenseConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LicenseConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLicenseConfigRequest actualRequest = ((CreateLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLicenseConfigRequest actualRequest = ((CreateLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LicenseConfig actualResponse = client.updateLicenseConfig(licenseConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLicenseConfigRequest actualRequest = ((UpdateLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLicenseConfig(licenseConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + + LicenseConfig actualResponse = client.getLicenseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLicenseConfigRequest actualRequest = ((GetLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .setLastUserUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + LicenseConfig actualResponse = client.getLicenseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLicenseConfigRequest actualRequest = ((GetLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsRequest actualRequest = ((ListLicenseConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest2() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsRequest actualRequest = ((ListLicenseConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DistributeLicenseConfigRequest actualRequest = + ((DistributeLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig.toString(), actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(projectNumber, actualRequest.getProjectNumber()); + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void distributeLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest2() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DistributeLicenseConfigRequest actualRequest = + ((DistributeLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig, actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(projectNumber, actualRequest.getProjectNumber()); + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void distributeLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig.toString(), actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig.toString(), actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest2() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig.toString(), actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest3() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig, actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig.toString(), actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest4() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig, actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigService.java new file mode 100644 index 000000000000..86bf25a8a609 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAclConfigService implements MockGrpcService { + private final MockAclConfigServiceImpl serviceImpl; + + public MockAclConfigService() { + serviceImpl = new MockAclConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigServiceImpl.java new file mode 100644 index 000000000000..cb601c2cb425 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAclConfigServiceImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1.AclConfigServiceGrpc.AclConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAclConfigServiceImpl extends AclConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockAclConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateAclConfig( + UpdateAclConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclConfig) { + requests.add(request); + responseObserver.onNext(((AclConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAclConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAclConfig( + GetAclConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclConfig) { + requests.add(request); + responseObserver.onNext(((AclConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAclConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclConfig.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAssistantServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAssistantServiceImpl.java index 541026449a0d..e64ade5c6487 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAssistantServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockAssistantServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1.AssistantServiceGrpc.AssistantServiceImplBase; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -78,4 +79,109 @@ public void streamAssist( Exception.class.getName()))); } } + + @Override + public void createAssistant( + CreateAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Assistant) { + requests.add(request); + responseObserver.onNext(((Assistant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Assistant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAssistant( + DeleteAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAssistant( + UpdateAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Assistant) { + requests.add(request); + responseObserver.onNext(((Assistant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Assistant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAssistant( + GetAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Assistant) { + requests.add(request); + responseObserver.onNext(((Assistant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Assistant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAssistants( + ListAssistantsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAssistantsResponse) { + requests.add(request); + responseObserver.onNext(((ListAssistantsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAssistants, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAssistantsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionService.java new file mode 100644 index 000000000000..93a9d42f34c3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCollectionService implements MockGrpcService { + private final MockCollectionServiceImpl serviceImpl; + + public MockCollectionService() { + serviceImpl = new MockCollectionServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionServiceImpl.java new file mode 100644 index 000000000000..b93419af400a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCollectionServiceImpl.java @@ -0,0 +1,125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1.CollectionServiceGrpc.CollectionServiceImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCollectionServiceImpl extends CollectionServiceImplBase { + private List requests; + private Queue responses; + + public MockCollectionServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void deleteCollection( + DeleteCollectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCollection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java index 8b4d21fa3fb3..bc6c862cf3d3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockCompletionServiceImpl.java @@ -80,6 +80,29 @@ public void completeQuery( } } + @Override + public void advancedCompleteQuery( + AdvancedCompleteQueryRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AdvancedCompleteQueryResponse) { + requests.add(request); + responseObserver.onNext(((AdvancedCompleteQueryResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AdvancedCompleteQuery, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AdvancedCompleteQueryResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void importSuggestionDenyListEntries( ImportSuggestionDenyListEntriesRequest request, StreamObserver responseObserver) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorService.java new file mode 100644 index 000000000000..e826b57a6e00 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDataConnectorService implements MockGrpcService { + private final MockDataConnectorServiceImpl serviceImpl; + + public MockDataConnectorService() { + serviceImpl = new MockDataConnectorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorServiceImpl.java new file mode 100644 index 000000000000..093d295bfd1e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataConnectorServiceImpl.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceGrpc.DataConnectorServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDataConnectorServiceImpl extends DataConnectorServiceImplBase { + private List requests; + private Queue responses; + + public MockDataConnectorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void setUpDataConnector( + SetUpDataConnectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetUpDataConnector, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataConnector( + GetDataConnectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataConnector) { + requests.add(request); + responseObserver.onNext(((DataConnector) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDataConnector, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataConnector.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataConnector( + UpdateDataConnectorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataConnector) { + requests.add(request); + responseObserver.onNext(((DataConnector) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDataConnector, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataConnector.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataStoreServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataStoreServiceImpl.java index 35e33da555b5..b3dabe5e176b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataStoreServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockDataStoreServiceImpl.java @@ -18,6 +18,9 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1.DataStoreServiceGrpc.DataStoreServiceImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; @@ -163,4 +166,44 @@ public void updateDataStore( Exception.class.getName()))); } } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockEngineServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockEngineServiceImpl.java index 45df8db64e57..d571b29e7585 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockEngineServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockEngineServiceImpl.java @@ -18,6 +18,9 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1.EngineServiceGrpc.EngineServiceImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; @@ -161,4 +164,44 @@ public void listEngines( Exception.class.getName()))); } } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigService.java new file mode 100644 index 000000000000..875a872814e2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLicenseConfigService implements MockGrpcService { + private final MockLicenseConfigServiceImpl serviceImpl; + + public MockLicenseConfigService() { + serviceImpl = new MockLicenseConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigServiceImpl.java new file mode 100644 index 000000000000..d4caf7fe4856 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockLicenseConfigServiceImpl.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceGrpc.LicenseConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLicenseConfigServiceImpl extends LicenseConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockLicenseConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createLicenseConfig( + CreateLicenseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LicenseConfig) { + requests.add(request); + responseObserver.onNext(((LicenseConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateLicenseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LicenseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLicenseConfig( + UpdateLicenseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LicenseConfig) { + requests.add(request); + responseObserver.onNext(((LicenseConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateLicenseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LicenseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLicenseConfig( + GetLicenseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LicenseConfig) { + requests.add(request); + responseObserver.onNext(((LicenseConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLicenseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LicenseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLicenseConfigs( + ListLicenseConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLicenseConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListLicenseConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLicenseConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLicenseConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void distributeLicenseConfig( + DistributeLicenseConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DistributeLicenseConfigResponse) { + requests.add(request); + responseObserver.onNext(((DistributeLicenseConfigResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DistributeLicenseConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + DistributeLicenseConfigResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void retractLicenseConfig( + RetractLicenseConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetractLicenseConfigResponse) { + requests.add(request); + responseObserver.onNext(((RetractLicenseConfigResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RetractLicenseConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + RetractLicenseConfigResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockServingConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockServingConfigServiceImpl.java index 46b06a636d48..38561c5714b9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockServingConfigServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockServingConfigServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1.ServingConfigServiceGrpc.ServingConfigServiceImplBase; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -58,6 +59,48 @@ public void reset() { responses = new LinkedList<>(); } + @Override + public void createServingConfig( + CreateServingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ServingConfig) { + requests.add(request); + responseObserver.onNext(((ServingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ServingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteServingConfig( + DeleteServingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateServingConfig( UpdateServingConfigRequest request, StreamObserver responseObserver) { @@ -78,4 +121,47 @@ public void updateServingConfig( Exception.class.getName()))); } } + + @Override + public void getServingConfig( + GetServingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ServingConfig) { + requests.add(request); + responseObserver.onNext(((ServingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ServingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listServingConfigs( + ListServingConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListServingConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListServingConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListServingConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListServingConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserLicenseServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserLicenseServiceImpl.java index 42f32c195f54..e7490c4a5fd3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserLicenseServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserLicenseServiceImpl.java @@ -80,6 +80,29 @@ public void listUserLicenses( } } + @Override + public void listLicenseConfigsUsageStats( + ListLicenseConfigsUsageStatsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLicenseConfigsUsageStatsResponse) { + requests.add(request); + responseObserver.onNext(((ListLicenseConfigsUsageStatsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLicenseConfigsUsageStats, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLicenseConfigsUsageStatsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void batchUpdateUserLicenses( BatchUpdateUserLicensesRequest request, StreamObserver responseObserver) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreService.java new file mode 100644 index 000000000000..31239687df02 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserStoreService implements MockGrpcService { + private final MockUserStoreServiceImpl serviceImpl; + + public MockUserStoreService() { + serviceImpl = new MockUserStoreServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreServiceImpl.java new file mode 100644 index 000000000000..5816fa2edcae --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockUserStoreServiceImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1.UserStoreServiceGrpc.UserStoreServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserStoreServiceImpl extends UserStoreServiceImplBase { + private List requests; + private Queue responses; + + public MockUserStoreServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getUserStore( + GetUserStoreRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserStore) { + requests.add(request); + responseObserver.onNext(((UserStore) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetUserStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UserStore.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateUserStore( + UpdateUserStoreRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserStore) { + requests.add(request); + responseObserver.onNext(((UserStore) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateUserStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UserStore.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigService.java new file mode 100644 index 000000000000..73b5bf6b77f5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockWidgetConfigService implements MockGrpcService { + private final MockWidgetConfigServiceImpl serviceImpl; + + public MockWidgetConfigService() { + serviceImpl = new MockWidgetConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigServiceImpl.java new file mode 100644 index 000000000000..4a7dfb080886 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/MockWidgetConfigServiceImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceGrpc.WidgetConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockWidgetConfigServiceImpl extends WidgetConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockWidgetConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getWidgetConfig( + GetWidgetConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WidgetConfig) { + requests.add(request); + responseObserver.onNext(((WidgetConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWidgetConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WidgetConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateWidgetConfig( + UpdateWidgetConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WidgetConfig) { + requests.add(request); + responseObserver.onNext(((WidgetConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWidgetConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WidgetConfig.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientHttpJsonTest.java index aba470dc8ed1..dbe21c632f4e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientHttpJsonTest.java @@ -83,6 +83,8 @@ public void provisionProjectTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -135,6 +137,8 @@ public void provisionProjectTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientTest.java index 47a8ac7c498f..4afb1502ac1e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ProjectServiceClientTest.java @@ -92,6 +92,8 @@ public void provisionProjectTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -141,6 +143,8 @@ public void provisionProjectTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientHttpJsonTest.java index 792462f6239a..feb5876bfa3d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientHttpJsonTest.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.testing.MockHttpService; @@ -26,10 +28,13 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.discoveryengine.v1.stub.HttpJsonServingConfigServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -74,6 +79,301 @@ public void tearDown() throws Exception { mockService.reset(); } + @Test + public void createServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createServingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest3() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createServingConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + client.deleteServingConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + + client.deleteServingConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteServingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateServingConfigTest() throws Exception { ServingConfig expectedResponse = @@ -98,6 +398,7 @@ public void updateServingConfigTest() throws Exception { .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -123,6 +424,7 @@ public void updateServingConfigTest() throws Exception { .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -174,6 +476,7 @@ public void updateServingConfigExceptionTest() throws Exception { .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateServingConfig(servingConfig, updateMask); @@ -182,4 +485,290 @@ public void updateServingConfigExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getServingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest2() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest3() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientTest.java index 0a09481760e7..4c1c6a772e6e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClientTest.java @@ -16,6 +16,8 @@ package com.google.cloud.discoveryengine.v1; +import static com.google.cloud.discoveryengine.v1.ServingConfigServiceClient.ListServingConfigsPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.testing.LocalChannelProvider; @@ -23,7 +25,9 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; @@ -81,6 +85,275 @@ public void tearDown() throws Exception { client.close(); } + @Test + public void createServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServingConfigRequest actualRequest = ((CreateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(servingConfigId, actualRequest.getServingConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServingConfigRequest actualRequest = ((CreateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(servingConfigId, actualRequest.getServingConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest3() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServingConfigRequest actualRequest = ((CreateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(servingConfigId, actualRequest.getServingConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServingConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockServingConfigService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + client.deleteServingConfig(name); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServingConfigRequest actualRequest = ((DeleteServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockServingConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteServingConfig(name); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServingConfigRequest actualRequest = ((DeleteServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String name = "name3373707"; + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateServingConfigTest() throws Exception { ServingConfig expectedResponse = @@ -105,6 +378,7 @@ public void updateServingConfigTest() throws Exception { .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockServingConfigService.addResponse(expectedResponse); @@ -140,4 +414,258 @@ public void updateServingConfigExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServingConfigRequest actualRequest = ((GetServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServingConfigRequest actualRequest = ((GetServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest2() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest3() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientHttpJsonTest.java index 63998b7718c0..957756e926ed 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientHttpJsonTest.java @@ -94,6 +94,7 @@ public void createSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -152,6 +153,7 @@ public void createSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -294,6 +296,7 @@ public void updateSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -310,6 +313,7 @@ public void updateSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -352,6 +356,7 @@ public void updateSessionExceptionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSession(session, updateMask); @@ -376,6 +381,7 @@ public void getSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -434,6 +440,7 @@ public void getSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientTest.java index 231b17e3e322..144c99f053dc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/SessionServiceClientTest.java @@ -100,6 +100,7 @@ public void createSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -153,6 +154,7 @@ public void createSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -276,6 +278,7 @@ public void updateSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -327,6 +330,7 @@ public void getSessionTest() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -379,6 +383,7 @@ public void getSessionTest2() throws Exception { .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java index daa8b07ace83..c5b227afdd72 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientHttpJsonTest.java @@ -110,6 +110,8 @@ public void writeUserEventTest() throws Exception { .putAllAttributes(new HashMap()) .setMediaInfo(MediaInfo.newBuilder().build()) .addAllPanels(new ArrayList()) + .setFeedback(Feedback.newBuilder().build()) + .setEntity("entity-1298275357") .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java index 21a1b037d241..cde82ee5c210 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserEventServiceClientTest.java @@ -118,6 +118,8 @@ public void writeUserEventTest() throws Exception { .putAllAttributes(new HashMap()) .setMediaInfo(MediaInfo.newBuilder().build()) .addAllPanels(new ArrayList()) + .setFeedback(Feedback.newBuilder().build()) + .setEntity("entity-1298275357") .build(); mockUserEventService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientHttpJsonTest.java index 834b89ee74d0..ca6b7c815421 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientHttpJsonTest.java @@ -180,6 +180,96 @@ public void listUserLicensesExceptionTest2() throws Exception { } } + @Test + public void listLicenseConfigsUsageStatsTest() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLicenseConfigsUsageStatsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsUsageStatsTest2() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3682/locations/location-3682/userStores/userStore-3682"; + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLicenseConfigsUsageStatsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3682/locations/location-3682/userStores/userStore-3682"; + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void batchUpdateUserLicensesTest() throws Exception { BatchUpdateUserLicensesResponse expectedResponse = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientTest.java index 075ca45e1ed5..2babcd752b28 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClientTest.java @@ -175,6 +175,86 @@ public void listUserLicensesExceptionTest2() throws Exception { } } + @Test + public void listLicenseConfigsUsageStatsTest() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockUserLicenseService.addResponse(expectedResponse); + + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsUsageStatsRequest actualRequest = + ((ListLicenseConfigsUsageStatsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsUsageStatsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsUsageStatsTest2() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockUserLicenseService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsUsageStatsRequest actualRequest = + ((ListLicenseConfigsUsageStatsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsUsageStatsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void batchUpdateUserLicensesTest() throws Exception { BatchUpdateUserLicensesResponse expectedResponse = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..702fcdc16840 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientHttpJsonTest.java @@ -0,0 +1,239 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1.stub.HttpJsonUserStoreServiceStub; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserStoreServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static UserStoreServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonUserStoreServiceStub.getMethodDescriptors(), + UserStoreServiceSettings.getDefaultEndpoint()); + UserStoreServiceSettings settings = + UserStoreServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + UserStoreServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserStoreServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockService.addResponse(expectedResponse); + + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + UserStore actualResponse = client.getUserStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUserStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserStoreTest2() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5651/locations/location-5651/userStores/userStore-5651"; + + UserStore actualResponse = client.getUserStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUserStoreExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5651/locations/location-5651/userStores/userStore-5651"; + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockService.addResponse(expectedResponse); + + UserStore userStore = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UserStore actualResponse = client.updateUserStore(userStore, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateUserStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStore userStore = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUserStore(userStore, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientTest.java new file mode 100644 index 000000000000..af58ef50cc08 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/UserStoreServiceClientTest.java @@ -0,0 +1,213 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserStoreServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockUserStoreService mockUserStoreService; + private LocalChannelProvider channelProvider; + private UserStoreServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockUserStoreService = new MockUserStoreService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockUserStoreService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + UserStoreServiceSettings settings = + UserStoreServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserStoreServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockUserStoreService.addResponse(expectedResponse); + + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + UserStore actualResponse = client.getUserStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserStoreRequest actualRequest = ((GetUserStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserStoreService.addException(exception); + + try { + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserStoreTest2() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockUserStoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + UserStore actualResponse = client.getUserStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserStoreRequest actualRequest = ((GetUserStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserStoreService.addException(exception); + + try { + String name = "name3373707"; + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockUserStoreService.addResponse(expectedResponse); + + UserStore userStore = UserStore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UserStore actualResponse = client.updateUserStore(userStore, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateUserStoreRequest actualRequest = ((UpdateUserStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(userStore, actualRequest.getUserStore()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateUserStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserStoreService.addException(exception); + + try { + UserStore userStore = UserStore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUserStore(userStore, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..803ba78048fc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientHttpJsonTest.java @@ -0,0 +1,337 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1.stub.HttpJsonWidgetConfigServiceStub; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class WidgetConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static WidgetConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonWidgetConfigServiceStub.getMethodDescriptors(), + WidgetConfigServiceSettings.getDefaultEndpoint()); + WidgetConfigServiceSettings settings = + WidgetConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + WidgetConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WidgetConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getWidgetConfigTest() throws Exception { + WidgetConfig expectedResponse = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + WidgetConfigName name = + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]"); + + WidgetConfig actualResponse = client.getWidgetConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWidgetConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WidgetConfigName name = + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]"); + client.getWidgetConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWidgetConfigTest2() throws Exception { + WidgetConfig expectedResponse = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9787/locations/location-9787/dataStores/dataStore-9787/widgetConfigs/widgetConfig-9787"; + + WidgetConfig actualResponse = client.getWidgetConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWidgetConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9787/locations/location-9787/dataStores/dataStore-9787/widgetConfigs/widgetConfig-9787"; + client.getWidgetConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateWidgetConfigTest() throws Exception { + WidgetConfig expectedResponse = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + WidgetConfig widgetConfig = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WidgetConfig actualResponse = client.updateWidgetConfig(widgetConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateWidgetConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WidgetConfig widgetConfig = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWidgetConfig(widgetConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientTest.java new file mode 100644 index 000000000000..b61050cd51a5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceClientTest.java @@ -0,0 +1,273 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class WidgetConfigServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockWidgetConfigService mockWidgetConfigService; + private LocalChannelProvider channelProvider; + private WidgetConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockWidgetConfigService = new MockWidgetConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockWidgetConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + WidgetConfigServiceSettings settings = + WidgetConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WidgetConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getWidgetConfigTest() throws Exception { + WidgetConfig expectedResponse = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + mockWidgetConfigService.addResponse(expectedResponse); + + WidgetConfigName name = + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]"); + + WidgetConfig actualResponse = client.getWidgetConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWidgetConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWidgetConfigRequest actualRequest = ((GetWidgetConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWidgetConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWidgetConfigService.addException(exception); + + try { + WidgetConfigName name = + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]"); + client.getWidgetConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWidgetConfigTest2() throws Exception { + WidgetConfig expectedResponse = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + mockWidgetConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + WidgetConfig actualResponse = client.getWidgetConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWidgetConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWidgetConfigRequest actualRequest = ((GetWidgetConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWidgetConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWidgetConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getWidgetConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateWidgetConfigTest() throws Exception { + WidgetConfig expectedResponse = + WidgetConfig.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfigId("configId-580140035") + .setSolutionType(SolutionType.forNumber(0)) + .setIndustryVertical(IndustryVertical.forNumber(0)) + .setLlmEnabled(true) + .setEnableResultScore(true) + .setMinimumDataTermAccepted(true) + .addAllCollectionComponents(new ArrayList()) + .setUiSettings(WidgetConfig.UiSettings.newBuilder().build()) + .setAccessSettings(WidgetConfig.AccessSettings.newBuilder().build()) + .setUiBranding(WidgetConfig.UiBrandingSettings.newBuilder().build()) + .setHomepageSetting(WidgetConfig.HomepageSetting.newBuilder().build()) + .setAssistantSettings(WidgetConfig.AssistantSettings.newBuilder().build()) + .setCustomerProvidedConfig(WidgetConfig.CustomerProvidedConfig.newBuilder().build()) + .setEnablePrivateKnowledgeGraph(true) + .setGeminiBundle(true) + .addAllBatchAuthStatuses(new ArrayList()) + .addAllNodes(new ArrayList()) + .build(); + mockWidgetConfigService.addResponse(expectedResponse); + + WidgetConfig widgetConfig = WidgetConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WidgetConfig actualResponse = client.updateWidgetConfig(widgetConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWidgetConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateWidgetConfigRequest actualRequest = ((UpdateWidgetConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(widgetConfig, actualRequest.getWidgetConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateWidgetConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWidgetConfigService.addException(exception); + + try { + WidgetConfig widgetConfig = WidgetConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWidgetConfig(widgetConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceGrpc.java new file mode 100644 index 000000000000..ab1f854f727e --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceGrpc.java @@ -0,0 +1,567 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing Acl Configuration.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AclConfigServiceGrpc { + + private AclConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1.AclConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig> + getUpdateAclConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAclConfig", + requestType = com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.AclConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig> + getUpdateAclConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig> + getUpdateAclConfigMethod; + if ((getUpdateAclConfigMethod = AclConfigServiceGrpc.getUpdateAclConfigMethod) == null) { + synchronized (AclConfigServiceGrpc.class) { + if ((getUpdateAclConfigMethod = AclConfigServiceGrpc.getUpdateAclConfigMethod) == null) { + AclConfigServiceGrpc.getUpdateAclConfigMethod = + getUpdateAclConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance())) + .setSchemaDescriptor( + new AclConfigServiceMethodDescriptorSupplier("UpdateAclConfig")) + .build(); + } + } + } + return getUpdateAclConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig> + getGetAclConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclConfig", + requestType = com.google.cloud.discoveryengine.v1.GetAclConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.AclConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig> + getGetAclConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig> + getGetAclConfigMethod; + if ((getGetAclConfigMethod = AclConfigServiceGrpc.getGetAclConfigMethod) == null) { + synchronized (AclConfigServiceGrpc.class) { + if ((getGetAclConfigMethod = AclConfigServiceGrpc.getGetAclConfigMethod) == null) { + AclConfigServiceGrpc.getGetAclConfigMethod = + getGetAclConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance())) + .setSchemaDescriptor( + new AclConfigServiceMethodDescriptorSupplier("GetAclConfig")) + .build(); + } + } + } + return getGetAclConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AclConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceStub(channel, callOptions); + } + }; + return AclConfigServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AclConfigServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingV2Stub(channel, callOptions); + } + }; + return AclConfigServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AclConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingStub(channel, callOptions); + } + }; + return AclConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AclConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceFutureStub(channel, callOptions); + } + }; + return AclConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing Acl Configuration.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Default ACL configuration for use in a location of a customer's project.
+     * Updates will only reflect to new data stores. Existing data stores will
+     * still use the old value.
+     * 
+ */ + default void updateAclConfig( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig].
+     * 
+ */ + default void getAclConfig( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AclConfigService. + * + *
+   * Service for managing Acl Configuration.
+   * 
+ */ + public abstract static class AclConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AclConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AclConfigService. + * + *
+   * Service for managing Acl Configuration.
+   * 
+ */ + public static final class AclConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AclConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Default ACL configuration for use in a location of a customer's project.
+     * Updates will only reflect to new data stores. Existing data stores will
+     * still use the old value.
+     * 
+ */ + public void updateAclConfig( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig].
+     * 
+ */ + public void getAclConfig( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AclConfigService. + * + *
+   * Service for managing Acl Configuration.
+   * 
+ */ + public static final class AclConfigServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AclConfigServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Default ACL configuration for use in a location of a customer's project.
+     * Updates will only reflect to new data stores. Existing data stores will
+     * still use the old value.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.AclConfig updateAclConfig( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAclConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.AclConfig getAclConfig( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AclConfigService. + * + *
+   * Service for managing Acl Configuration.
+   * 
+ */ + public static final class AclConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AclConfigServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Default ACL configuration for use in a location of a customer's project.
+     * Updates will only reflect to new data stores. Existing data stores will
+     * still use the old value.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.AclConfig updateAclConfig( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.AclConfig getAclConfig( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AclConfigService. + * + *
+   * Service for managing Acl Configuration.
+   * 
+ */ + public static final class AclConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AclConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Default ACL configuration for use in a location of a customer's project.
+     * Updates will only reflect to new data stores. Existing data stores will
+     * still use the old value.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.AclConfig> + updateAclConfig(com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.AclConfig> + getAclConfig(com.google.cloud.discoveryengine.v1.GetAclConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_UPDATE_ACL_CONFIG = 0; + private static final int METHODID_GET_ACL_CONFIG = 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_UPDATE_ACL_CONFIG: + serviceImpl.updateAclConfig( + (com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACL_CONFIG: + serviceImpl.getAclConfig( + (com.google.cloud.discoveryengine.v1.GetAclConfigRequest) 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( + getUpdateAclConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig>( + service, METHODID_UPDATE_ACL_CONFIG))) + .addMethod( + getGetAclConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1.AclConfig>( + service, METHODID_GET_ACL_CONFIG))) + .build(); + } + + private abstract static class AclConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AclConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AclConfigService"); + } + } + + private static final class AclConfigServiceFileDescriptorSupplier + extends AclConfigServiceBaseDescriptorSupplier { + AclConfigServiceFileDescriptorSupplier() {} + } + + private static final class AclConfigServiceMethodDescriptorSupplier + extends AclConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AclConfigServiceMethodDescriptorSupplier(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 (AclConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AclConfigServiceFileDescriptorSupplier()) + .addMethod(getUpdateAclConfigMethod()) + .addMethod(getGetAclConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java index 5a27eaabffa9..8c953785d12b 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceGrpc.java @@ -80,6 +80,234 @@ private AssistantServiceGrpc() {} return getStreamAssistMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getCreateAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAssistant", + requestType = com.google.cloud.discoveryengine.v1.CreateAssistantRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Assistant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getCreateAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getCreateAssistantMethod; + if ((getCreateAssistantMethod = AssistantServiceGrpc.getCreateAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getCreateAssistantMethod = AssistantServiceGrpc.getCreateAssistantMethod) == null) { + AssistantServiceGrpc.getCreateAssistantMethod = + getCreateAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("CreateAssistant")) + .build(); + } + } + } + return getCreateAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest, com.google.protobuf.Empty> + getDeleteAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAssistant", + requestType = com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest, com.google.protobuf.Empty> + getDeleteAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest, com.google.protobuf.Empty> + getDeleteAssistantMethod; + if ((getDeleteAssistantMethod = AssistantServiceGrpc.getDeleteAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getDeleteAssistantMethod = AssistantServiceGrpc.getDeleteAssistantMethod) == null) { + AssistantServiceGrpc.getDeleteAssistantMethod = + getDeleteAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("DeleteAssistant")) + .build(); + } + } + } + return getDeleteAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getUpdateAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAssistant", + requestType = com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Assistant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getUpdateAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getUpdateAssistantMethod; + if ((getUpdateAssistantMethod = AssistantServiceGrpc.getUpdateAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getUpdateAssistantMethod = AssistantServiceGrpc.getUpdateAssistantMethod) == null) { + AssistantServiceGrpc.getUpdateAssistantMethod = + getUpdateAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("UpdateAssistant")) + .build(); + } + } + } + return getUpdateAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getGetAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAssistant", + requestType = com.google.cloud.discoveryengine.v1.GetAssistantRequest.class, + responseType = com.google.cloud.discoveryengine.v1.Assistant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getGetAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant> + getGetAssistantMethod; + if ((getGetAssistantMethod = AssistantServiceGrpc.getGetAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getGetAssistantMethod = AssistantServiceGrpc.getGetAssistantMethod) == null) { + AssistantServiceGrpc.getGetAssistantMethod = + getGetAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("GetAssistant")) + .build(); + } + } + } + return getGetAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1.ListAssistantsResponse> + getListAssistantsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssistants", + requestType = com.google.cloud.discoveryengine.v1.ListAssistantsRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListAssistantsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1.ListAssistantsResponse> + getListAssistantsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1.ListAssistantsResponse> + getListAssistantsMethod; + if ((getListAssistantsMethod = AssistantServiceGrpc.getListAssistantsMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getListAssistantsMethod = AssistantServiceGrpc.getListAssistantsMethod) == null) { + AssistantServiceGrpc.getListAssistantsMethod = + getListAssistantsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssistants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListAssistantsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("ListAssistants")) + .build(); + } + } + } + return getListAssistantsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AssistantServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -157,6 +385,81 @@ default void streamAssist( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStreamAssistMethod(), responseObserver); } + + /** + * + * + *
+     * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + default void createAssistant( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + default void deleteAssistant( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant]
+     * 
+ */ + default void updateAssistant( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + default void getAssistant( + com.google.cloud.discoveryengine.v1.GetAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ */ + default void listAssistants( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAssistantsMethod(), responseObserver); + } } /** @@ -209,6 +512,91 @@ public void streamAssist( request, responseObserver); } + + /** + * + * + *
+     * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public void createAssistant( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public void deleteAssistant( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant]
+     * 
+ */ + public void updateAssistant( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public void getAssistant( + com.google.cloud.discoveryengine.v1.GetAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ */ + public void listAssistants( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssistantsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -245,6 +633,77 @@ protected AssistantServiceBlockingV2Stub build( return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getStreamAssistMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Assistant createAssistant( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.protobuf.Empty deleteAssistant( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant]
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Assistant updateAssistant( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Assistant getAssistant( + com.google.cloud.discoveryengine.v1.GetAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListAssistantsResponse listAssistants( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAssistantsMethod(), getCallOptions(), request); + } } /** @@ -278,6 +737,72 @@ protected AssistantServiceBlockingStub build( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamAssistMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Assistant createAssistant( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.protobuf.Empty deleteAssistant( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant]
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Assistant updateAssistant( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.Assistant getAssistant( + com.google.cloud.discoveryengine.v1.GetAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListAssistantsResponse listAssistants( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssistantsMethod(), getCallOptions(), request); + } } /** @@ -298,9 +823,84 @@ protected AssistantServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssistantServiceFutureStub(channel, callOptions); } + + /** + * + * + *
+     * Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.Assistant> + createAssistant(com.google.cloud.discoveryengine.v1.CreateAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAssistant(com.google.cloud.discoveryengine.v1.DeleteAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant]
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.Assistant> + updateAssistant(com.google.cloud.discoveryengine.v1.UpdateAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.Assistant> + getAssistant(com.google.cloud.discoveryengine.v1.GetAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.ListAssistantsResponse> + listAssistants(com.google.cloud.discoveryengine.v1.ListAssistantsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssistantsMethod(), getCallOptions()), request); + } } private static final int METHODID_STREAM_ASSIST = 0; + private static final int METHODID_CREATE_ASSISTANT = 1; + private static final int METHODID_DELETE_ASSISTANT = 2; + private static final int METHODID_UPDATE_ASSISTANT = 3; + private static final int METHODID_GET_ASSISTANT = 4; + private static final int METHODID_LIST_ASSISTANTS = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -326,6 +926,36 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.discoveryengine.v1.StreamAssistResponse>) responseObserver); break; + case METHODID_CREATE_ASSISTANT: + serviceImpl.createAssistant( + (com.google.cloud.discoveryengine.v1.CreateAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ASSISTANT: + serviceImpl.deleteAssistant( + (com.google.cloud.discoveryengine.v1.DeleteAssistantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ASSISTANT: + serviceImpl.updateAssistant( + (com.google.cloud.discoveryengine.v1.UpdateAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ASSISTANT: + serviceImpl.getAssistant( + (com.google.cloud.discoveryengine.v1.GetAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ASSISTANTS: + serviceImpl.listAssistants( + (com.google.cloud.discoveryengine.v1.ListAssistantsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.ListAssistantsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -351,6 +981,40 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1.StreamAssistRequest, com.google.cloud.discoveryengine.v1.StreamAssistResponse>( service, METHODID_STREAM_ASSIST))) + .addMethod( + getCreateAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant>( + service, METHODID_CREATE_ASSISTANT))) + .addMethod( + getDeleteAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ASSISTANT))) + .addMethod( + getUpdateAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant>( + service, METHODID_UPDATE_ASSISTANT))) + .addMethod( + getGetAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetAssistantRequest, + com.google.cloud.discoveryengine.v1.Assistant>( + service, METHODID_GET_ASSISTANT))) + .addMethod( + getListAssistantsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1.ListAssistantsResponse>( + service, METHODID_LIST_ASSISTANTS))) .build(); } @@ -403,6 +1067,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AssistantServiceFileDescriptorSupplier()) .addMethod(getStreamAssistMethod()) + .addMethod(getCreateAssistantMethod()) + .addMethod(getDeleteAssistantMethod()) + .addMethod(getUpdateAssistantMethod()) + .addMethod(getGetAssistantMethod()) + .addMethod(getListAssistantsMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceGrpc.java new file mode 100644 index 000000000000..671c80a76a0a --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceGrpc.java @@ -0,0 +1,735 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing
+ * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class CollectionServiceGrpc { + + private CollectionServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1.CollectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest, + com.google.longrunning.Operation> + getDeleteCollectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCollection", + requestType = com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest, + com.google.longrunning.Operation> + getDeleteCollectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest, + com.google.longrunning.Operation> + getDeleteCollectionMethod; + if ((getDeleteCollectionMethod = CollectionServiceGrpc.getDeleteCollectionMethod) == null) { + synchronized (CollectionServiceGrpc.class) { + if ((getDeleteCollectionMethod = CollectionServiceGrpc.getDeleteCollectionMethod) == null) { + CollectionServiceGrpc.getDeleteCollectionMethod = + getDeleteCollectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCollection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CollectionServiceMethodDescriptorSupplier("DeleteCollection")) + .build(); + } + } + } + return getDeleteCollectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = CollectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (CollectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = CollectionServiceGrpc.getGetIamPolicyMethod) == null) { + CollectionServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new CollectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = CollectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (CollectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = CollectionServiceGrpc.getSetIamPolicyMethod) == null) { + CollectionServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new CollectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CollectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CollectionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceStub(channel, callOptions); + } + }; + return CollectionServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static CollectionServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CollectionServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceBlockingV2Stub(channel, callOptions); + } + }; + return CollectionServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CollectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CollectionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceBlockingStub(channel, callOptions); + } + }; + return CollectionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CollectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CollectionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceFutureStub(channel, callOptions); + } + }; + return CollectionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing
+   * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + default void deleteCollection( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCollectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist. An empty policy is
+     * returned if the resource exists but does not have a policy set on it.
+     * 
+ */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a Collection resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CollectionService. + * + *
+   * Service for managing
+   * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+   * 
+ */ + public abstract static class CollectionServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return CollectionServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CollectionService. + * + *
+   * Service for managing
+   * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+   * 
+ */ + public static final class CollectionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CollectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CollectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public void deleteCollection( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCollectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist. An empty policy is
+     * returned if the resource exists but does not have a policy set on it.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a Collection resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CollectionService. + * + *
+   * Service for managing
+   * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+   * 
+ */ + public static final class CollectionServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private CollectionServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CollectionServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public com.google.longrunning.Operation deleteCollection( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCollectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist. An empty policy is
+     * returned if the resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a Collection resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service CollectionService. + * + *
+   * Service for managing
+   * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+   * 
+ */ + public static final class CollectionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CollectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CollectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public com.google.longrunning.Operation deleteCollection( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCollectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist. An empty policy is
+     * returned if the resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a Collection resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CollectionService. + * + *
+   * Service for managing
+   * [Collection][google.cloud.discoveryengine.v1.Collection]s.
+   * 
+ */ + public static final class CollectionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CollectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CollectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CollectionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Deletes a [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCollection(com.google.cloud.discoveryengine.v1.DeleteCollectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCollectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist. An empty policy is
+     * returned if the resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND`
+     * error is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a Collection resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_DELETE_COLLECTION = 0; + private static final int METHODID_GET_IAM_POLICY = 1; + private static final int METHODID_SET_IAM_POLICY = 2; + + 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_DELETE_COLLECTION: + serviceImpl.deleteCollection( + (com.google.cloud.discoveryengine.v1.DeleteCollectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + 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( + getDeleteCollectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_COLLECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) + .build(); + } + + private abstract static class CollectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CollectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CollectionService"); + } + } + + private static final class CollectionServiceFileDescriptorSupplier + extends CollectionServiceBaseDescriptorSupplier { + CollectionServiceFileDescriptorSupplier() {} + } + + private static final class CollectionServiceMethodDescriptorSupplier + extends CollectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + CollectionServiceMethodDescriptorSupplier(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 (CollectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CollectionServiceFileDescriptorSupplier()) + .addMethod(getDeleteCollectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java index 5799b562ece1..d4d64d9e5f49 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceGrpc.java @@ -80,6 +80,56 @@ private CompletionServiceGrpc() {} return getCompleteQueryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse> + getAdvancedCompleteQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AdvancedCompleteQuery", + requestType = com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse> + getAdvancedCompleteQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse> + getAdvancedCompleteQueryMethod; + if ((getAdvancedCompleteQueryMethod = CompletionServiceGrpc.getAdvancedCompleteQueryMethod) + == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getAdvancedCompleteQueryMethod = CompletionServiceGrpc.getAdvancedCompleteQueryMethod) + == null) { + CompletionServiceGrpc.getAdvancedCompleteQueryMethod = + getAdvancedCompleteQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AdvancedCompleteQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CompletionServiceMethodDescriptorSupplier("AdvancedCompleteQuery")) + .build(); + } + } + } + return getAdvancedCompleteQueryMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest, com.google.longrunning.Operation> @@ -367,6 +417,22 @@ default void completeQuery( getCompleteQueryMethod(), responseObserver); } + /** + * + * + *
+     * Completes the user input with advanced keyword suggestions.
+     * 
+ */ + default void advancedCompleteQuery( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAdvancedCompleteQueryMethod(), responseObserver); + } + /** * * @@ -484,6 +550,24 @@ public void completeQuery( responseObserver); } + /** + * + * + *
+     * Completes the user input with advanced keyword suggestions.
+     * 
+ */ + public void advancedCompleteQuery( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAdvancedCompleteQueryMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -591,6 +675,20 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Completes the user input with advanced keyword suggestions.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse advancedCompleteQuery( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAdvancedCompleteQueryMethod(), getCallOptions(), request); + } + /** * * @@ -689,6 +787,19 @@ public com.google.cloud.discoveryengine.v1.CompleteQueryResponse completeQuery( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Completes the user input with advanced keyword suggestions.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse advancedCompleteQuery( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAdvancedCompleteQueryMethod(), getCallOptions(), request); + } + /** * * @@ -783,6 +894,21 @@ protected CompletionServiceFutureStub build( getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Completes the user input with advanced keyword suggestions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse> + advancedCompleteQuery( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAdvancedCompleteQueryMethod(), getCallOptions()), request); + } + /** * * @@ -851,10 +977,11 @@ protected CompletionServiceFutureStub build( } private static final int METHODID_COMPLETE_QUERY = 0; - private static final int METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES = 1; - private static final int METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES = 2; - private static final int METHODID_IMPORT_COMPLETION_SUGGESTIONS = 3; - private static final int METHODID_PURGE_COMPLETION_SUGGESTIONS = 4; + private static final int METHODID_ADVANCED_COMPLETE_QUERY = 1; + private static final int METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES = 2; + private static final int METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES = 3; + private static final int METHODID_IMPORT_COMPLETION_SUGGESTIONS = 4; + private static final int METHODID_PURGE_COMPLETION_SUGGESTIONS = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -880,6 +1007,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.discoveryengine.v1.CompleteQueryResponse>) responseObserver); break; + case METHODID_ADVANCED_COMPLETE_QUERY: + serviceImpl.advancedCompleteQuery( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse>) + responseObserver); + break; case METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES: serviceImpl.importSuggestionDenyListEntries( (com.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest) request, @@ -925,6 +1059,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1.CompleteQueryRequest, com.google.cloud.discoveryengine.v1.CompleteQueryResponse>( service, METHODID_COMPLETE_QUERY))) + .addMethod( + getAdvancedCompleteQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse>( + service, METHODID_ADVANCED_COMPLETE_QUERY))) .addMethod( getImportSuggestionDenyListEntriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1005,6 +1146,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) .addMethod(getCompleteQueryMethod()) + .addMethod(getAdvancedCompleteQueryMethod()) .addMethod(getImportSuggestionDenyListEntriesMethod()) .addMethod(getPurgeSuggestionDenyListEntriesMethod()) .addMethod(getImportCompletionSuggestionsMethod()) diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceGrpc.java new file mode 100644 index 000000000000..7055c4235d75 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceGrpc.java @@ -0,0 +1,743 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for data connector management.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class DataConnectorServiceGrpc { + + private DataConnectorServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1.DataConnectorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest, + com.google.longrunning.Operation> + getSetUpDataConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetUpDataConnector", + requestType = com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest, + com.google.longrunning.Operation> + getSetUpDataConnectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest, + com.google.longrunning.Operation> + getSetUpDataConnectorMethod; + if ((getSetUpDataConnectorMethod = DataConnectorServiceGrpc.getSetUpDataConnectorMethod) + == null) { + synchronized (DataConnectorServiceGrpc.class) { + if ((getSetUpDataConnectorMethod = DataConnectorServiceGrpc.getSetUpDataConnectorMethod) + == null) { + DataConnectorServiceGrpc.getSetUpDataConnectorMethod = + getSetUpDataConnectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetUpDataConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataConnectorServiceMethodDescriptorSupplier("SetUpDataConnector")) + .build(); + } + } + } + return getSetUpDataConnectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector> + getGetDataConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataConnector", + requestType = com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.class, + responseType = com.google.cloud.discoveryengine.v1.DataConnector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector> + getGetDataConnectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector> + getGetDataConnectorMethod; + if ((getGetDataConnectorMethod = DataConnectorServiceGrpc.getGetDataConnectorMethod) == null) { + synchronized (DataConnectorServiceGrpc.class) { + if ((getGetDataConnectorMethod = DataConnectorServiceGrpc.getGetDataConnectorMethod) + == null) { + DataConnectorServiceGrpc.getGetDataConnectorMethod = + getGetDataConnectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DataConnector + .getDefaultInstance())) + .setSchemaDescriptor( + new DataConnectorServiceMethodDescriptorSupplier("GetDataConnector")) + .build(); + } + } + } + return getGetDataConnectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector> + getUpdateDataConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataConnector", + requestType = com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.class, + responseType = com.google.cloud.discoveryengine.v1.DataConnector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector> + getUpdateDataConnectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector> + getUpdateDataConnectorMethod; + if ((getUpdateDataConnectorMethod = DataConnectorServiceGrpc.getUpdateDataConnectorMethod) + == null) { + synchronized (DataConnectorServiceGrpc.class) { + if ((getUpdateDataConnectorMethod = DataConnectorServiceGrpc.getUpdateDataConnectorMethod) + == null) { + DataConnectorServiceGrpc.getUpdateDataConnectorMethod = + getUpdateDataConnectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDataConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DataConnector + .getDefaultInstance())) + .setSchemaDescriptor( + new DataConnectorServiceMethodDescriptorSupplier("UpdateDataConnector")) + .build(); + } + } + } + return getUpdateDataConnectorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataConnectorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataConnectorServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceStub(channel, callOptions); + } + }; + return DataConnectorServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DataConnectorServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataConnectorServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceBlockingV2Stub(channel, callOptions); + } + }; + return DataConnectorServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataConnectorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataConnectorServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceBlockingStub(channel, callOptions); + } + }; + return DataConnectorServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataConnectorServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataConnectorServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceFutureStub(channel, callOptions); + } + }; + return DataConnectorServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for data connector management.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets
+     * up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for
+     * it. To stop a
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup,
+     * use the
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * method.
+     * 
+ */ + default void setUpDataConnector( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetUpDataConnectorMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource for each
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + default void getDataConnector( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataConnectorMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * 
+ */ + default void updateDataConnector( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataConnectorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DataConnectorService. + * + *
+   * Service for data connector management.
+   * 
+ */ + public abstract static class DataConnectorServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DataConnectorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DataConnectorService. + * + *
+   * Service for data connector management.
+   * 
+ */ + public static final class DataConnectorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataConnectorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataConnectorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets
+     * up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for
+     * it. To stop a
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup,
+     * use the
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * method.
+     * 
+ */ + public void setUpDataConnector( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetUpDataConnectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource for each
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public void getDataConnector( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataConnectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * 
+ */ + public void updateDataConnector( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataConnectorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DataConnectorService. + * + *
+   * Service for data connector management.
+   * 
+ */ + public static final class DataConnectorServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataConnectorServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataConnectorServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets
+     * up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for
+     * it. To stop a
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup,
+     * use the
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * method.
+     * 
+ */ + public com.google.longrunning.Operation setUpDataConnector( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetUpDataConnectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource for each
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.DataConnector getDataConnector( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDataConnectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.DataConnector updateDataConnector( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateDataConnectorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DataConnectorService. + * + *
+   * Service for data connector management.
+   * 
+ */ + public static final class DataConnectorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataConnectorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataConnectorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets
+     * up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for
+     * it. To stop a
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup,
+     * use the
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * method.
+     * 
+ */ + public com.google.longrunning.Operation setUpDataConnector( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetUpDataConnectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource for each
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.DataConnector getDataConnector( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataConnectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.DataConnector updateDataConnector( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataConnectorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DataConnectorService. + * + *
+   * Service for data connector management.
+   * 
+ */ + public static final class DataConnectorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataConnectorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataConnectorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataConnectorServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets
+     * up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for
+     * it. To stop a
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup,
+     * use the
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setUpDataConnector(com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetUpDataConnectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource for each
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.DataConnector> + getDataConnector(com.google.cloud.discoveryengine.v1.GetDataConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataConnectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.DataConnector> + updateDataConnector( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataConnectorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SET_UP_DATA_CONNECTOR = 0; + private static final int METHODID_GET_DATA_CONNECTOR = 1; + private static final int METHODID_UPDATE_DATA_CONNECTOR = 2; + + 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_SET_UP_DATA_CONNECTOR: + serviceImpl.setUpDataConnector( + (com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA_CONNECTOR: + serviceImpl.getDataConnector( + (com.google.cloud.discoveryengine.v1.GetDataConnectorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DATA_CONNECTOR: + serviceImpl.updateDataConnector( + (com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) 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( + getSetUpDataConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest, + com.google.longrunning.Operation>(service, METHODID_SET_UP_DATA_CONNECTOR))) + .addMethod( + getGetDataConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector>( + service, METHODID_GET_DATA_CONNECTOR))) + .addMethod( + getUpdateDataConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest, + com.google.cloud.discoveryengine.v1.DataConnector>( + service, METHODID_UPDATE_DATA_CONNECTOR))) + .build(); + } + + private abstract static class DataConnectorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataConnectorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataConnectorService"); + } + } + + private static final class DataConnectorServiceFileDescriptorSupplier + extends DataConnectorServiceBaseDescriptorSupplier { + DataConnectorServiceFileDescriptorSupplier() {} + } + + private static final class DataConnectorServiceMethodDescriptorSupplier + extends DataConnectorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DataConnectorServiceMethodDescriptorSupplier(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 (DataConnectorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataConnectorServiceFileDescriptorSupplier()) + .addMethod(getSetUpDataConnectorMethod()) + .addMethod(getGetDataConnectorMethod()) + .addMethod(getUpdateDataConnectorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java index c17ba27d8ece..618c68465194 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceGrpc.java @@ -265,6 +265,84 @@ private DataStoreServiceGrpc() {} return getUpdateDataStoreMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DataStoreServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (DataStoreServiceGrpc.class) { + if ((getGetIamPolicyMethod = DataStoreServiceGrpc.getGetIamPolicyMethod) == null) { + DataStoreServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new DataStoreServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DataStoreServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (DataStoreServiceGrpc.class) { + if ((getSetIamPolicyMethod = DataStoreServiceGrpc.getSetIamPolicyMethod) == null) { + DataStoreServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new DataStoreServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataStoreServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -407,6 +485,48 @@ default void updateDataStore( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateDataStoreMethod(), responseObserver); } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist. An empty policy is returned if
+     * the resource exists but does not have a policy set on it.
+     * 
+ */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a DataStore resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } } /** @@ -533,6 +653,52 @@ public void updateDataStore( request, responseObserver); } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist. An empty policy is returned if
+     * the resource exists but does not have a policy set on it.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a DataStore resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -631,6 +797,46 @@ public com.google.cloud.discoveryengine.v1.DataStore updateDataStore( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateDataStoreMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist. An empty policy is returned if
+     * the resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a DataStore resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } } /** @@ -723,6 +929,44 @@ public com.google.cloud.discoveryengine.v1.DataStore updateDataStore( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDataStoreMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist. An empty policy is returned if
+     * the resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a DataStore resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } } /** @@ -818,6 +1062,46 @@ protected DataStoreServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDataStoreMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist. An empty policy is returned if
+     * the resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error
+     * is returned if the resource does not exist.
+     * **Important:** When setting a policy directly on a DataStore resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`
+     * `roles/discoveryengine.agentspaceAdmin`
+     * `roles/discoveryengine.viewer`
+     * `roles/discoveryengine.agentspaceViewer`
+     * `roles/discoveryengine.user`
+     * `roles/discoveryengine.agentspaceUser`
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_DATA_STORE = 0; @@ -825,6 +1109,8 @@ protected DataStoreServiceFutureStub build( private static final int METHODID_LIST_DATA_STORES = 2; private static final int METHODID_DELETE_DATA_STORE = 3; private static final int METHODID_UPDATE_DATA_STORE = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -872,6 +1158,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -923,6 +1219,16 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1.UpdateDataStoreRequest, com.google.cloud.discoveryengine.v1.DataStore>( service, METHODID_UPDATE_DATA_STORE))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) .build(); } @@ -979,6 +1285,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListDataStoresMethod()) .addMethod(getDeleteDataStoreMethod()) .addMethod(getUpdateDataStoreMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java index a0c912cc7e3d..5f9f753702f2 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceGrpc.java @@ -259,6 +259,84 @@ private EngineServiceGrpc() {} return getListEnginesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = EngineServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (EngineServiceGrpc.class) { + if ((getGetIamPolicyMethod = EngineServiceGrpc.getGetIamPolicyMethod) == null) { + EngineServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new EngineServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = EngineServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (EngineServiceGrpc.class) { + if ((getSetIamPolicyMethod = EngineServiceGrpc.getSetIamPolicyMethod) == null) { + EngineServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new EngineServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EngineServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -327,7 +405,7 @@ public interface AsyncService { * * *
-     * Creates a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Creates an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ default void createEngine( @@ -341,7 +419,7 @@ default void createEngine( * * *
-     * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ default void deleteEngine( @@ -369,7 +447,7 @@ default void updateEngine( * * *
-     * Gets a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Gets an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ default void getEngine( @@ -393,6 +471,48 @@ default void listEngines( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListEnginesMethod(), responseObserver); } + + /** + * + * + *
+     * Gets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist. An empty policy is returned if the
+     * resource exists but does not have a policy set on it.
+     * 
+ */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist.
+     * **Important:** When setting a policy directly on an Engine resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`,
+     * `roles/discoveryengine.agentspaceAdmin`,
+     * `roles/discoveryengine.user`,
+     * `roles/discoveryengine.agentspaceUser`,
+     * `roles/discoveryengine.viewer`,
+     * `roles/discoveryengine.agentspaceViewer`.
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } } /** @@ -435,7 +555,7 @@ protected EngineServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions c * * *
-     * Creates a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Creates an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public void createEngine( @@ -451,7 +571,7 @@ public void createEngine( * * *
-     * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public void deleteEngine( @@ -483,7 +603,7 @@ public void updateEngine( * * *
-     * Gets a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Gets an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public void getEngine( @@ -510,6 +630,52 @@ public void listEngines( request, responseObserver); } + + /** + * + * + *
+     * Gets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist. An empty policy is returned if the
+     * resource exists but does not have a policy set on it.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist.
+     * **Important:** When setting a policy directly on an Engine resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`,
+     * `roles/discoveryengine.agentspaceAdmin`,
+     * `roles/discoveryengine.user`,
+     * `roles/discoveryengine.agentspaceUser`,
+     * `roles/discoveryengine.viewer`,
+     * `roles/discoveryengine.agentspaceViewer`.
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -536,7 +702,7 @@ protected EngineServiceBlockingV2Stub build( * * *
-     * Creates a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Creates an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.longrunning.Operation createEngine( @@ -550,7 +716,7 @@ public com.google.longrunning.Operation createEngine( * * *
-     * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.longrunning.Operation deleteEngine( @@ -578,7 +744,7 @@ public com.google.cloud.discoveryengine.v1.Engine updateEngine( * * *
-     * Gets a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Gets an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.cloud.discoveryengine.v1.Engine getEngine( @@ -602,6 +768,46 @@ public com.google.cloud.discoveryengine.v1.ListEnginesResponse listEngines( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListEnginesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist. An empty policy is returned if the
+     * resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist.
+     * **Important:** When setting a policy directly on an Engine resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`,
+     * `roles/discoveryengine.agentspaceAdmin`,
+     * `roles/discoveryengine.user`,
+     * `roles/discoveryengine.agentspaceUser`,
+     * `roles/discoveryengine.viewer`,
+     * `roles/discoveryengine.agentspaceViewer`.
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } } /** @@ -628,7 +834,7 @@ protected EngineServiceBlockingStub build( * * *
-     * Creates a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Creates an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.longrunning.Operation createEngine( @@ -641,7 +847,7 @@ public com.google.longrunning.Operation createEngine( * * *
-     * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.longrunning.Operation deleteEngine( @@ -667,7 +873,7 @@ public com.google.cloud.discoveryengine.v1.Engine updateEngine( * * *
-     * Gets a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Gets an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.cloud.discoveryengine.v1.Engine getEngine( @@ -689,6 +895,44 @@ public com.google.cloud.discoveryengine.v1.ListEnginesResponse listEngines( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEnginesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist. An empty policy is returned if the
+     * resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist.
+     * **Important:** When setting a policy directly on an Engine resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`,
+     * `roles/discoveryengine.agentspaceAdmin`,
+     * `roles/discoveryengine.user`,
+     * `roles/discoveryengine.agentspaceUser`,
+     * `roles/discoveryengine.viewer`,
+     * `roles/discoveryengine.agentspaceViewer`.
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } } /** @@ -715,7 +959,7 @@ protected EngineServiceFutureStub build( * * *
-     * Creates a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Creates an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -728,7 +972,7 @@ protected EngineServiceFutureStub build( * * *
-     * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Deletes an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -755,7 +999,7 @@ protected EngineServiceFutureStub build( * * *
-     * Gets a [Engine][google.cloud.discoveryengine.v1.Engine].
+     * Gets an [Engine][google.cloud.discoveryengine.v1.Engine].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -779,6 +1023,46 @@ protected EngineServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEnginesMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist. An empty policy is returned if the
+     * resource exists but does not have a policy set on it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the IAM access control policy for an
+     * [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is
+     * returned if the resource does not exist.
+     * **Important:** When setting a policy directly on an Engine resource,
+     * the only recommended roles in the bindings are:
+     * `roles/discoveryengine.admin`,
+     * `roles/discoveryengine.agentspaceAdmin`,
+     * `roles/discoveryengine.user`,
+     * `roles/discoveryengine.agentspaceUser`,
+     * `roles/discoveryengine.viewer`,
+     * `roles/discoveryengine.agentspaceViewer`.
+     * Attempting to grant any other role will result in a warning in logging.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_ENGINE = 0; @@ -786,6 +1070,8 @@ protected EngineServiceFutureStub build( private static final int METHODID_UPDATE_ENGINE = 2; private static final int METHODID_GET_ENGINE = 3; private static final int METHODID_LIST_ENGINES = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -832,6 +1118,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -881,6 +1177,16 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1.ListEnginesRequest, com.google.cloud.discoveryengine.v1.ListEnginesResponse>( service, METHODID_LIST_ENGINES))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) .build(); } @@ -937,6 +1243,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateEngineMethod()) .addMethod(getGetEngineMethod()) .addMethod(getListEnginesMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceGrpc.java new file mode 100644 index 000000000000..b1aba14275e2 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceGrpc.java @@ -0,0 +1,1173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing license config related resources.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class LicenseConfigServiceGrpc { + + private LicenseConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1.LicenseConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getCreateLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.LicenseConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getCreateLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getCreateLicenseConfigMethod; + if ((getCreateLicenseConfigMethod = LicenseConfigServiceGrpc.getCreateLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getCreateLicenseConfigMethod = LicenseConfigServiceGrpc.getCreateLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getCreateLicenseConfigMethod = + getCreateLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.LicenseConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("CreateLicenseConfig")) + .build(); + } + } + } + return getCreateLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getUpdateLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.LicenseConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getUpdateLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getUpdateLicenseConfigMethod; + if ((getUpdateLicenseConfigMethod = LicenseConfigServiceGrpc.getUpdateLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getUpdateLicenseConfigMethod = LicenseConfigServiceGrpc.getUpdateLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getUpdateLicenseConfigMethod = + getUpdateLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.LicenseConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("UpdateLicenseConfig")) + .build(); + } + } + } + return getUpdateLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getGetLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.LicenseConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getGetLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig> + getGetLicenseConfigMethod; + if ((getGetLicenseConfigMethod = LicenseConfigServiceGrpc.getGetLicenseConfigMethod) == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getGetLicenseConfigMethod = LicenseConfigServiceGrpc.getGetLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getGetLicenseConfigMethod = + getGetLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.LicenseConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("GetLicenseConfig")) + .build(); + } + } + } + return getGetLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse> + getListLicenseConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLicenseConfigs", + requestType = com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse> + getListLicenseConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse> + getListLicenseConfigsMethod; + if ((getListLicenseConfigsMethod = LicenseConfigServiceGrpc.getListLicenseConfigsMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getListLicenseConfigsMethod = LicenseConfigServiceGrpc.getListLicenseConfigsMethod) + == null) { + LicenseConfigServiceGrpc.getListLicenseConfigsMethod = + getListLicenseConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLicenseConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("ListLicenseConfigs")) + .build(); + } + } + } + return getListLicenseConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse> + getDistributeLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DistributeLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse> + getDistributeLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse> + getDistributeLicenseConfigMethod; + if ((getDistributeLicenseConfigMethod = + LicenseConfigServiceGrpc.getDistributeLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getDistributeLicenseConfigMethod = + LicenseConfigServiceGrpc.getDistributeLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getDistributeLicenseConfigMethod = + getDistributeLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DistributeLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier( + "DistributeLicenseConfig")) + .build(); + } + } + } + return getDistributeLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse> + getRetractLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetractLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse> + getRetractLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse> + getRetractLicenseConfigMethod; + if ((getRetractLicenseConfigMethod = LicenseConfigServiceGrpc.getRetractLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getRetractLicenseConfigMethod = LicenseConfigServiceGrpc.getRetractLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getRetractLicenseConfigMethod = + getRetractLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RetractLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("RetractLicenseConfig")) + .build(); + } + } + } + return getRetractLicenseConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static LicenseConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceStub(channel, callOptions); + } + }; + return LicenseConfigServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static LicenseConfigServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingV2Stub(channel, callOptions); + } + }; + return LicenseConfigServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LicenseConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingStub(channel, callOptions); + } + }; + return LicenseConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static LicenseConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceFutureStub(channel, callOptions); + } + }; + return LicenseConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing license config related resources.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * This method should only be used for creating NotebookLm licenses or Gemini
+     * Enterprise free trial licenses.
+     * 
+ */ + default void createLicenseConfig( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * 
+ */ + default void updateLicenseConfig( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     * 
+ */ + default void getLicenseConfig( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated
+     * with the project.
+     * 
+ */ + default void listLicenseConfigs( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLicenseConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Distributes a
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing
+     * account level to project level.
+     * 
+ */ + default void distributeLicenseConfig( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDistributeLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * This method is called from the billing account side to retract the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the
+     * given project back to the billing account.
+     * 
+ */ + default void retractLicenseConfig( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetractLicenseConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service LicenseConfigService. + * + *
+   * Service for managing license config related resources.
+   * 
+ */ + public abstract static class LicenseConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return LicenseConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service LicenseConfigService. + * + *
+   * Service for managing license config related resources.
+   * 
+ */ + public static final class LicenseConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private LicenseConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * This method should only be used for creating NotebookLm licenses or Gemini
+     * Enterprise free trial licenses.
+     * 
+ */ + public void createLicenseConfig( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * 
+ */ + public void updateLicenseConfig( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     * 
+ */ + public void getLicenseConfig( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated
+     * with the project.
+     * 
+ */ + public void listLicenseConfigs( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLicenseConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Distributes a
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing
+     * account level to project level.
+     * 
+ */ + public void distributeLicenseConfig( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDistributeLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * This method is called from the billing account side to retract the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the
+     * given project back to the billing account.
+     * 
+ */ + public void retractLicenseConfig( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetractLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service LicenseConfigService. + * + *
+   * Service for managing license config related resources.
+   * 
+ */ + public static final class LicenseConfigServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private LicenseConfigServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * This method should only be used for creating NotebookLm licenses or Gemini
+     * Enterprise free trial licenses.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.LicenseConfig createLicenseConfig( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.LicenseConfig updateLicenseConfig( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated
+     * with the project.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse listLicenseConfigs( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListLicenseConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Distributes a
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing
+     * account level to project level.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + distributeLicenseConfig( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDistributeLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This method is called from the billing account side to retract the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the
+     * given project back to the billing account.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse retractLicenseConfig( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRetractLicenseConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service LicenseConfigService. + * + *
+   * Service for managing license config related resources.
+   * 
+ */ + public static final class LicenseConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private LicenseConfigServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * This method should only be used for creating NotebookLm licenses or Gemini
+     * Enterprise free trial licenses.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.LicenseConfig createLicenseConfig( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.LicenseConfig updateLicenseConfig( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated
+     * with the project.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse listLicenseConfigs( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLicenseConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Distributes a
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing
+     * account level to project level.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + distributeLicenseConfig( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDistributeLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * This method is called from the billing account side to retract the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the
+     * given project back to the billing account.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse retractLicenseConfig( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetractLicenseConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service LicenseConfigService. + * + *
+   * Service for managing license config related resources.
+   * 
+ */ + public static final class LicenseConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private LicenseConfigServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * This method should only be used for creating NotebookLm licenses or Gemini
+     * Enterprise free trial licenses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.LicenseConfig> + createLicenseConfig( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.LicenseConfig> + updateLicenseConfig( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.LicenseConfig> + getLicenseConfig(com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated
+     * with the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse> + listLicenseConfigs(com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLicenseConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Distributes a
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing
+     * account level to project level.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse> + distributeLicenseConfig( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDistributeLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * This method is called from the billing account side to retract the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the
+     * given project back to the billing account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse> + retractLicenseConfig( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetractLicenseConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_LICENSE_CONFIG = 0; + private static final int METHODID_UPDATE_LICENSE_CONFIG = 1; + private static final int METHODID_GET_LICENSE_CONFIG = 2; + private static final int METHODID_LIST_LICENSE_CONFIGS = 3; + private static final int METHODID_DISTRIBUTE_LICENSE_CONFIG = 4; + private static final int METHODID_RETRACT_LICENSE_CONFIG = 5; + + 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_LICENSE_CONFIG: + serviceImpl.createLicenseConfig( + (com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_LICENSE_CONFIG: + serviceImpl.updateLicenseConfig( + (com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_LICENSE_CONFIG: + serviceImpl.getLicenseConfig( + (com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_LICENSE_CONFIGS: + serviceImpl.listLicenseConfigs( + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse>) + responseObserver); + break; + case METHODID_DISTRIBUTE_LICENSE_CONFIG: + serviceImpl.distributeLicenseConfig( + (com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse>) + responseObserver); + break; + case METHODID_RETRACT_LICENSE_CONFIG: + serviceImpl.retractLicenseConfig( + (com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse>) + 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( + getCreateLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig>( + service, METHODID_CREATE_LICENSE_CONFIG))) + .addMethod( + getUpdateLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig>( + service, METHODID_UPDATE_LICENSE_CONFIG))) + .addMethod( + getGetLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.LicenseConfig>( + service, METHODID_GET_LICENSE_CONFIG))) + .addMethod( + getListLicenseConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse>( + service, METHODID_LIST_LICENSE_CONFIGS))) + .addMethod( + getDistributeLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse>( + service, METHODID_DISTRIBUTE_LICENSE_CONFIG))) + .addMethod( + getRetractLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse>( + service, METHODID_RETRACT_LICENSE_CONFIG))) + .build(); + } + + private abstract static class LicenseConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LicenseConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("LicenseConfigService"); + } + } + + private static final class LicenseConfigServiceFileDescriptorSupplier + extends LicenseConfigServiceBaseDescriptorSupplier { + LicenseConfigServiceFileDescriptorSupplier() {} + } + + private static final class LicenseConfigServiceMethodDescriptorSupplier + extends LicenseConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + LicenseConfigServiceMethodDescriptorSupplier(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 (LicenseConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LicenseConfigServiceFileDescriptorSupplier()) + .addMethod(getCreateLicenseConfigMethod()) + .addMethod(getUpdateLicenseConfigMethod()) + .addMethod(getGetLicenseConfigMethod()) + .addMethod(getListLicenseConfigsMethod()) + .addMethod(getDistributeLicenseConfigMethod()) + .addMethod(getRetractLicenseConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java index 271bfe584447..2514b9879f32 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceGrpc.java @@ -34,6 +34,103 @@ private ServingConfigServiceGrpc() {} "google.cloud.discoveryengine.v1.ServingConfigService"; // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig> + getCreateServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServingConfig", + requestType = com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ServingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig> + getCreateServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig> + getCreateServingConfigMethod; + if ((getCreateServingConfigMethod = ServingConfigServiceGrpc.getCreateServingConfigMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getCreateServingConfigMethod = ServingConfigServiceGrpc.getCreateServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getCreateServingConfigMethod = + getCreateServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ServingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("CreateServingConfig")) + .build(); + } + } + } + return getCreateServingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest, com.google.protobuf.Empty> + getDeleteServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteServingConfig", + requestType = com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest, com.google.protobuf.Empty> + getDeleteServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest, + com.google.protobuf.Empty> + getDeleteServingConfigMethod; + if ((getDeleteServingConfigMethod = ServingConfigServiceGrpc.getDeleteServingConfigMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getDeleteServingConfigMethod = ServingConfigServiceGrpc.getDeleteServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getDeleteServingConfigMethod = + getDeleteServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("DeleteServingConfig")) + .build(); + } + } + } + return getDeleteServingConfigMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest, com.google.cloud.discoveryengine.v1.ServingConfig> @@ -84,6 +181,103 @@ private ServingConfigServiceGrpc() {} return getUpdateServingConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig> + getGetServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServingConfig", + requestType = com.google.cloud.discoveryengine.v1.GetServingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ServingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig> + getGetServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig> + getGetServingConfigMethod; + if ((getGetServingConfigMethod = ServingConfigServiceGrpc.getGetServingConfigMethod) == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getGetServingConfigMethod = ServingConfigServiceGrpc.getGetServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getGetServingConfigMethod = + getGetServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ServingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("GetServingConfig")) + .build(); + } + } + } + return getGetServingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse> + getListServingConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServingConfigs", + requestType = com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse> + getListServingConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse> + getListServingConfigsMethod; + if ((getListServingConfigsMethod = ServingConfigServiceGrpc.getListServingConfigsMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getListServingConfigsMethod = ServingConfigServiceGrpc.getListServingConfigsMethod) + == null) { + ServingConfigServiceGrpc.getListServingConfigsMethod = + getListServingConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServingConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("ListServingConfigs")) + .build(); + } + } + } + return getListServingConfigsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ServingConfigServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -148,6 +342,42 @@ public ServingConfigServiceFutureStub newStub( */ public interface AsyncService { + /** + * + * + *
+     * Creates a ServingConfig.
+     * Note: The Google Cloud console works only with the default serving config.
+     * Additional ServingConfigs can be created and managed only via the API.
+     * A maximum of 100
+     * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed
+     * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a
+     * RESOURCE_EXHAUSTED error is returned.
+     * 
+ */ + default void createServingConfig( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServingConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a ServingConfig.
+     * Returns a NOT_FOUND error if the ServingConfig does not exist.
+     * 
+ */ + default void deleteServingConfig( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServingConfigMethod(), responseObserver); + } + /** * * @@ -163,6 +393,37 @@ default void updateServingConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateServingConfigMethod(), responseObserver); } + + /** + * + * + *
+     * Gets a ServingConfig.
+     * Returns a NotFound error if the ServingConfig does not exist.
+     * 
+ */ + default void getServingConfig( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetServingConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all ServingConfigs linked to this dataStore.
+     * 
+ */ + default void listServingConfigs( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServingConfigsMethod(), responseObserver); + } } /** @@ -202,6 +463,46 @@ protected ServingConfigServiceStub build( return new ServingConfigServiceStub(channel, callOptions); } + /** + * + * + *
+     * Creates a ServingConfig.
+     * Note: The Google Cloud console works only with the default serving config.
+     * Additional ServingConfigs can be created and managed only via the API.
+     * A maximum of 100
+     * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed
+     * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a
+     * RESOURCE_EXHAUSTED error is returned.
+     * 
+ */ + public void createServingConfig( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a ServingConfig.
+     * Returns a NOT_FOUND error if the ServingConfig does not exist.
+     * 
+ */ + public void deleteServingConfig( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -219,6 +520,41 @@ public void updateServingConfig( request, responseObserver); } + + /** + * + * + *
+     * Gets a ServingConfig.
+     * Returns a NotFound error if the ServingConfig does not exist.
+     * 
+ */ + public void getServingConfig( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all ServingConfigs linked to this dataStore.
+     * 
+ */ + public void listServingConfigs( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServingConfigsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -242,6 +578,41 @@ protected ServingConfigServiceBlockingV2Stub build( return new ServingConfigServiceBlockingV2Stub(channel, callOptions); } + /** + * + * + *
+     * Creates a ServingConfig.
+     * Note: The Google Cloud console works only with the default serving config.
+     * Additional ServingConfigs can be created and managed only via the API.
+     * A maximum of 100
+     * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed
+     * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a
+     * RESOURCE_EXHAUSTED error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ServingConfig createServingConfig( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a ServingConfig.
+     * Returns a NOT_FOUND error if the ServingConfig does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteServingConfig( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); + } + /** * * @@ -256,6 +627,35 @@ public com.google.cloud.discoveryengine.v1.ServingConfig updateServingConfig( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets a ServingConfig.
+     * Returns a NotFound error if the ServingConfig does not exist.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ServingConfig getServingConfig( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all ServingConfigs linked to this dataStore.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListServingConfigsResponse listServingConfigs( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListServingConfigsMethod(), getCallOptions(), request); + } } /** @@ -279,6 +679,39 @@ protected ServingConfigServiceBlockingStub build( return new ServingConfigServiceBlockingStub(channel, callOptions); } + /** + * + * + *
+     * Creates a ServingConfig.
+     * Note: The Google Cloud console works only with the default serving config.
+     * Additional ServingConfigs can be created and managed only via the API.
+     * A maximum of 100
+     * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed
+     * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a
+     * RESOURCE_EXHAUSTED error is returned.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ServingConfig createServingConfig( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a ServingConfig.
+     * Returns a NOT_FOUND error if the ServingConfig does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteServingConfig( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); + } + /** * * @@ -292,6 +725,33 @@ public com.google.cloud.discoveryengine.v1.ServingConfig updateServingConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets a ServingConfig.
+     * Returns a NotFound error if the ServingConfig does not exist.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ServingConfig getServingConfig( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all ServingConfigs linked to this dataStore.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListServingConfigsResponse listServingConfigs( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServingConfigsMethod(), getCallOptions(), request); + } } /** @@ -315,6 +775,42 @@ protected ServingConfigServiceFutureStub build( return new ServingConfigServiceFutureStub(channel, callOptions); } + /** + * + * + *
+     * Creates a ServingConfig.
+     * Note: The Google Cloud console works only with the default serving config.
+     * Additional ServingConfigs can be created and managed only via the API.
+     * A maximum of 100
+     * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed
+     * in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a
+     * RESOURCE_EXHAUSTED error is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.ServingConfig> + createServingConfig( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a ServingConfig.
+     * Returns a NOT_FOUND error if the ServingConfig does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteServingConfig( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServingConfigMethod(), getCallOptions()), request); + } + /** * * @@ -330,9 +826,42 @@ protected ServingConfigServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateServingConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets a ServingConfig.
+     * Returns a NotFound error if the ServingConfig does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.ServingConfig> + getServingConfig(com.google.cloud.discoveryengine.v1.GetServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all ServingConfigs linked to this dataStore.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse> + listServingConfigs(com.google.cloud.discoveryengine.v1.ListServingConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServingConfigsMethod(), getCallOptions()), request); + } } - private static final int METHODID_UPDATE_SERVING_CONFIG = 0; + private static final int METHODID_CREATE_SERVING_CONFIG = 0; + private static final int METHODID_DELETE_SERVING_CONFIG = 1; + private static final int METHODID_UPDATE_SERVING_CONFIG = 2; + private static final int METHODID_GET_SERVING_CONFIG = 3; + private static final int METHODID_LIST_SERVING_CONFIGS = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -351,12 +880,36 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_CREATE_SERVING_CONFIG: + serviceImpl.createServingConfig( + (com.google.cloud.discoveryengine.v1.CreateServingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SERVING_CONFIG: + serviceImpl.deleteServingConfig( + (com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_SERVING_CONFIG: serviceImpl.updateServingConfig( (com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_SERVING_CONFIG: + serviceImpl.getServingConfig( + (com.google.cloud.discoveryengine.v1.GetServingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SERVING_CONFIGS: + serviceImpl.listServingConfigs( + (com.google.cloud.discoveryengine.v1.ListServingConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -375,6 +928,19 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig>( + service, METHODID_CREATE_SERVING_CONFIG))) + .addMethod( + getDeleteServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SERVING_CONFIG))) .addMethod( getUpdateServingConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -382,6 +948,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1.UpdateServingConfigRequest, com.google.cloud.discoveryengine.v1.ServingConfig>( service, METHODID_UPDATE_SERVING_CONFIG))) + .addMethod( + getGetServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1.ServingConfig>( + service, METHODID_GET_SERVING_CONFIG))) + .addMethod( + getListServingConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse>( + service, METHODID_LIST_SERVING_CONFIGS))) .build(); } @@ -433,7 +1013,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ServingConfigServiceFileDescriptorSupplier()) + .addMethod(getCreateServingConfigMethod()) + .addMethod(getDeleteServingConfigMethod()) .addMethod(getUpdateServingConfigMethod()) + .addMethod(getGetServingConfigMethod()) + .addMethod(getListServingConfigsMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java index adc0bf25f998..408116460561 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceGrpc.java @@ -81,6 +81,59 @@ private UserLicenseServiceGrpc() {} return getListUserLicensesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse> + getListLicenseConfigsUsageStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLicenseConfigsUsageStats", + requestType = com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest.class, + responseType = com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse> + getListLicenseConfigsUsageStatsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse> + getListLicenseConfigsUsageStatsMethod; + if ((getListLicenseConfigsUsageStatsMethod = + UserLicenseServiceGrpc.getListLicenseConfigsUsageStatsMethod) + == null) { + synchronized (UserLicenseServiceGrpc.class) { + if ((getListLicenseConfigsUsageStatsMethod = + UserLicenseServiceGrpc.getListLicenseConfigsUsageStatsMethod) + == null) { + UserLicenseServiceGrpc.getListLicenseConfigsUsageStatsMethod = + getListLicenseConfigsUsageStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListLicenseConfigsUsageStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1 + .ListLicenseConfigsUsageStatsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1 + .ListLicenseConfigsUsageStatsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new UserLicenseServiceMethodDescriptorSupplier( + "ListLicenseConfigsUsageStats")) + .build(); + } + } + } + return getListLicenseConfigsUsageStatsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest, com.google.longrunning.Operation> @@ -209,6 +262,24 @@ default void listUserLicenses( getListUserLicensesMethod(), responseObserver); } + /** + * + * + *
+     * Lists all the
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s
+     * associated with the project.
+     * 
+ */ + default void listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLicenseConfigsUsageStatsMethod(), responseObserver); + } + /** * * @@ -277,6 +348,26 @@ public void listUserLicenses( responseObserver); } + /** + * + * + *
+     * Lists all the
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s
+     * associated with the project.
+     * 
+ */ + public void listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLicenseConfigsUsageStatsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -329,6 +420,23 @@ public com.google.cloud.discoveryengine.v1.ListUserLicensesResponse listUserLice getChannel(), getListUserLicensesMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists all the
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s
+     * associated with the project.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListLicenseConfigsUsageStatsMethod(), getCallOptions(), request); + } + /** * * @@ -378,6 +486,22 @@ public com.google.cloud.discoveryengine.v1.ListUserLicensesResponse listUserLice getChannel(), getListUserLicensesMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists all the
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s
+     * associated with the project.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLicenseConfigsUsageStatsMethod(), getCallOptions(), request); + } + /** * * @@ -426,6 +550,23 @@ protected UserLicenseServiceFutureStub build( getChannel().newCall(getListUserLicensesMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists all the
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s
+     * associated with the project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLicenseConfigsUsageStatsMethod(), getCallOptions()), request); + } + /** * * @@ -443,7 +584,8 @@ protected UserLicenseServiceFutureStub build( } private static final int METHODID_LIST_USER_LICENSES = 0; - private static final int METHODID_BATCH_UPDATE_USER_LICENSES = 1; + private static final int METHODID_LIST_LICENSE_CONFIGS_USAGE_STATS = 1; + private static final int METHODID_BATCH_UPDATE_USER_LICENSES = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -469,6 +611,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.discoveryengine.v1.ListUserLicensesResponse>) responseObserver); break; + case METHODID_LIST_LICENSE_CONFIGS_USAGE_STATS: + serviceImpl.listLicenseConfigsUsageStats( + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse>) + responseObserver); + break; case METHODID_BATCH_UPDATE_USER_LICENSES: serviceImpl.batchUpdateUserLicenses( (com.google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest) request, @@ -499,6 +648,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1.ListUserLicensesRequest, com.google.cloud.discoveryengine.v1.ListUserLicensesResponse>( service, METHODID_LIST_USER_LICENSES))) + .addMethod( + getListLicenseConfigsUsageStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse>( + service, METHODID_LIST_LICENSE_CONFIGS_USAGE_STATS))) .addMethod( getBatchUpdateUserLicensesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -558,6 +714,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new UserLicenseServiceFileDescriptorSupplier()) .addMethod(getListUserLicensesMethod()) + .addMethod(getListLicenseConfigsUsageStatsMethod()) .addMethod(getBatchUpdateUserLicensesMethod()) .build(); } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceGrpc.java new file mode 100644 index 000000000000..75bb537cc4ed --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceGrpc.java @@ -0,0 +1,557 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing User Stores.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class UserStoreServiceGrpc { + + private UserStoreServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1.UserStoreService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore> + getGetUserStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUserStore", + requestType = com.google.cloud.discoveryengine.v1.GetUserStoreRequest.class, + responseType = com.google.cloud.discoveryengine.v1.UserStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore> + getGetUserStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore> + getGetUserStoreMethod; + if ((getGetUserStoreMethod = UserStoreServiceGrpc.getGetUserStoreMethod) == null) { + synchronized (UserStoreServiceGrpc.class) { + if ((getGetUserStoreMethod = UserStoreServiceGrpc.getGetUserStoreMethod) == null) { + UserStoreServiceGrpc.getGetUserStoreMethod = + getGetUserStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUserStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance())) + .setSchemaDescriptor( + new UserStoreServiceMethodDescriptorSupplier("GetUserStore")) + .build(); + } + } + } + return getGetUserStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore> + getUpdateUserStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUserStore", + requestType = com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.class, + responseType = com.google.cloud.discoveryengine.v1.UserStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore> + getUpdateUserStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore> + getUpdateUserStoreMethod; + if ((getUpdateUserStoreMethod = UserStoreServiceGrpc.getUpdateUserStoreMethod) == null) { + synchronized (UserStoreServiceGrpc.class) { + if ((getUpdateUserStoreMethod = UserStoreServiceGrpc.getUpdateUserStoreMethod) == null) { + UserStoreServiceGrpc.getUpdateUserStoreMethod = + getUpdateUserStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUserStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance())) + .setSchemaDescriptor( + new UserStoreServiceMethodDescriptorSupplier("UpdateUserStore")) + .build(); + } + } + } + return getUpdateUserStoreMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static UserStoreServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceStub(channel, callOptions); + } + }; + return UserStoreServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static UserStoreServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingV2Stub(channel, callOptions); + } + }; + return UserStoreServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UserStoreServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingStub(channel, callOptions); + } + }; + return UserStoreServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static UserStoreServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceFutureStub(channel, callOptions); + } + }; + return UserStoreServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing User Stores.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Gets the User Store.
+     * 
+ */ + default void getUserStore( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUserStoreMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the User Store.
+     * 
+ */ + default void updateUserStore( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUserStoreMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service UserStoreService. + * + *
+   * Service for managing User Stores.
+   * 
+ */ + public abstract static class UserStoreServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return UserStoreServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service UserStoreService. + * + *
+   * Service for managing User Stores.
+   * 
+ */ + public static final class UserStoreServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private UserStoreServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the User Store.
+     * 
+ */ + public void getUserStore( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the User Store.
+     * 
+ */ + public void updateUserStore( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUserStoreMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service UserStoreService. + * + *
+   * Service for managing User Stores.
+   * 
+ */ + public static final class UserStoreServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private UserStoreServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the User Store.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.UserStore getUserStore( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetUserStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the User Store.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.UserStore updateUserStore( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateUserStoreMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service UserStoreService. + * + *
+   * Service for managing User Stores.
+   * 
+ */ + public static final class UserStoreServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private UserStoreServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the User Store.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.UserStore getUserStore( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the User Store.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.UserStore updateUserStore( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserStoreMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service UserStoreService. + * + *
+   * Service for managing User Stores.
+   * 
+ */ + public static final class UserStoreServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private UserStoreServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the User Store.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.UserStore> + getUserStore(com.google.cloud.discoveryengine.v1.GetUserStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the User Store.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.UserStore> + updateUserStore(com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUserStoreMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_USER_STORE = 0; + private static final int METHODID_UPDATE_USER_STORE = 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_GET_USER_STORE: + serviceImpl.getUserStore( + (com.google.cloud.discoveryengine.v1.GetUserStoreRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_USER_STORE: + serviceImpl.updateUserStore( + (com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest) 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( + getGetUserStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore>( + service, METHODID_GET_USER_STORE))) + .addMethod( + getUpdateUserStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1.UserStore>( + service, METHODID_UPDATE_USER_STORE))) + .build(); + } + + private abstract static class UserStoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UserStoreServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UserStoreService"); + } + } + + private static final class UserStoreServiceFileDescriptorSupplier + extends UserStoreServiceBaseDescriptorSupplier { + UserStoreServiceFileDescriptorSupplier() {} + } + + private static final class UserStoreServiceMethodDescriptorSupplier + extends UserStoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + UserStoreServiceMethodDescriptorSupplier(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 (UserStoreServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserStoreServiceFileDescriptorSupplier()) + .addMethod(getGetUserStoreMethod()) + .addMethod(getUpdateUserStoreMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceGrpc.java new file mode 100644 index 000000000000..c35f2ccca82e --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceGrpc.java @@ -0,0 +1,571 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.discoveryengine.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing
+ * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class WidgetConfigServiceGrpc { + + private WidgetConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1.WidgetConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig> + getGetWidgetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWidgetConfig", + requestType = com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.WidgetConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig> + getGetWidgetConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig> + getGetWidgetConfigMethod; + if ((getGetWidgetConfigMethod = WidgetConfigServiceGrpc.getGetWidgetConfigMethod) == null) { + synchronized (WidgetConfigServiceGrpc.class) { + if ((getGetWidgetConfigMethod = WidgetConfigServiceGrpc.getGetWidgetConfigMethod) == null) { + WidgetConfigServiceGrpc.getGetWidgetConfigMethod = + getGetWidgetConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWidgetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.WidgetConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WidgetConfigServiceMethodDescriptorSupplier("GetWidgetConfig")) + .build(); + } + } + } + return getGetWidgetConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig> + getUpdateWidgetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWidgetConfig", + requestType = com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1.WidgetConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig> + getUpdateWidgetConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig> + getUpdateWidgetConfigMethod; + if ((getUpdateWidgetConfigMethod = WidgetConfigServiceGrpc.getUpdateWidgetConfigMethod) + == null) { + synchronized (WidgetConfigServiceGrpc.class) { + if ((getUpdateWidgetConfigMethod = WidgetConfigServiceGrpc.getUpdateWidgetConfigMethod) + == null) { + WidgetConfigServiceGrpc.getUpdateWidgetConfigMethod = + getUpdateWidgetConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWidgetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1.WidgetConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WidgetConfigServiceMethodDescriptorSupplier("UpdateWidgetConfig")) + .build(); + } + } + } + return getUpdateWidgetConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WidgetConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceStub(channel, callOptions); + } + }; + return WidgetConfigServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static WidgetConfigServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetConfigServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceBlockingV2Stub(channel, callOptions); + } + }; + return WidgetConfigServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WidgetConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceBlockingStub(channel, callOptions); + } + }; + return WidgetConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WidgetConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WidgetConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceFutureStub(channel, callOptions); + } + }; + return WidgetConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ */ + default void getWidgetConfig( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWidgetConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a WidgetConfig.
+     * 
+ */ + default void updateWidgetConfig( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWidgetConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service WidgetConfigService. + * + *
+   * Service for managing
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+   * 
+ */ + public abstract static class WidgetConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WidgetConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WidgetConfigService. + * + *
+   * Service for managing
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+   * 
+ */ + public static final class WidgetConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private WidgetConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetConfigServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ */ + public void getWidgetConfig( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWidgetConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a WidgetConfig.
+     * 
+ */ + public void updateWidgetConfig( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWidgetConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WidgetConfigService. + * + *
+   * Service for managing
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+   * 
+ */ + public static final class WidgetConfigServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private WidgetConfigServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetConfigServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.WidgetConfig getWidgetConfig( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetWidgetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a WidgetConfig.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.WidgetConfig updateWidgetConfig( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateWidgetConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service WidgetConfigService. + * + *
+   * Service for managing
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+   * 
+ */ + public static final class WidgetConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WidgetConfigServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.WidgetConfig getWidgetConfig( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWidgetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a WidgetConfig.
+     * 
+ */ + public com.google.cloud.discoveryengine.v1.WidgetConfig updateWidgetConfig( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWidgetConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WidgetConfigService. + * + *
+   * Service for managing
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration.
+   * 
+ */ + public static final class WidgetConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WidgetConfigServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WidgetConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WidgetConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.WidgetConfig> + getWidgetConfig(com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWidgetConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a WidgetConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1.WidgetConfig> + updateWidgetConfig(com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWidgetConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WIDGET_CONFIG = 0; + private static final int METHODID_UPDATE_WIDGET_CONFIG = 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_GET_WIDGET_CONFIG: + serviceImpl.getWidgetConfig( + (com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_WIDGET_CONFIG: + serviceImpl.updateWidgetConfig( + (com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) 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( + getGetWidgetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig>( + service, METHODID_GET_WIDGET_CONFIG))) + .addMethod( + getUpdateWidgetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest, + com.google.cloud.discoveryengine.v1.WidgetConfig>( + service, METHODID_UPDATE_WIDGET_CONFIG))) + .build(); + } + + private abstract static class WidgetConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WidgetConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WidgetConfigService"); + } + } + + private static final class WidgetConfigServiceFileDescriptorSupplier + extends WidgetConfigServiceBaseDescriptorSupplier { + WidgetConfigServiceFileDescriptorSupplier() {} + } + + private static final class WidgetConfigServiceMethodDescriptorSupplier + extends WidgetConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WidgetConfigServiceMethodDescriptorSupplier(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 (WidgetConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WidgetConfigServiceFileDescriptorSupplier()) + .addMethod(getGetWidgetConfigMethod()) + .addMethod(getUpdateWidgetConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfig.java new file mode 100644 index 000000000000..270b4a1b73b0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfig.java @@ -0,0 +1,923 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Access Control Configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AclConfig} + */ +@com.google.protobuf.Generated +public final class AclConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AclConfig) + AclConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclConfig"); + } + + // Use AclConfig.newBuilder() to construct. + private AclConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclConfig() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1_AclConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1_AclConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AclConfig.class, + com.google.cloud.discoveryengine.v1.AclConfig.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. The full resource name of the acl configuration.
+   * Format:
+   * `projects/{project}/locations/{location}/aclConfig`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. The full resource name of the acl configuration.
+   * Format:
+   * `projects/{project}/locations/{location}/aclConfig`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.IdpConfig idpConfig_; + + /** + * + * + *
+   * Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + /** + * + * + *
+   * Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIdpConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdpConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.AclConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AclConfig other = + (com.google.cloud.discoveryengine.v1.AclConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.AclConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Access Control Configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AclConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AclConfig) + com.google.cloud.discoveryengine.v1.AclConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1_AclConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1_AclConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AclConfig.class, + com.google.cloud.discoveryengine.v1.AclConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.AclConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIdpConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1_AclConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AclConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AclConfig build() { + com.google.cloud.discoveryengine.v1.AclConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AclConfig buildPartial() { + com.google.cloud.discoveryengine.v1.AclConfig result = + new com.google.cloud.discoveryengine.v1.AclConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.AclConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.AclConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.AclConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AclConfig other) { + if (other == com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetIdpConfigFieldBuilder().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 name_ = ""; + + /** + * + * + *
+     * Immutable. The full resource name of the acl configuration.
+     * Format:
+     * `projects/{project}/locations/{location}/aclConfig`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the acl configuration.
+     * Format:
+     * `projects/{project}/locations/{location}/aclConfig`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the acl configuration.
+     * Format:
+     * `projects/{project}/locations/{location}/aclConfig`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the acl configuration.
+     * Format:
+     * `projects/{project}/locations/{location}/aclConfig`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the acl configuration.
+     * Format:
+     * `projects/{project}/locations/{location}/aclConfig`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder> + idpConfigBuilder_; + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && idpConfig_ != null + && idpConfig_ != com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + public com.google.cloud.discoveryengine.v1.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + public com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + + /** + * + * + *
+     * Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder> + internalGetIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AclConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AclConfig) + private static final com.google.cloud.discoveryengine.v1.AclConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.AclConfig(); + } + + public static com.google.cloud.discoveryengine.v1.AclConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AclConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigName.java new file mode 100644 index 000000000000..c6ec1d7991d8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigName.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/aclConfig"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected AclConfigName() { + project = null; + location = null; + } + + private AclConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclConfigName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static @Nullable AclConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "AclConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable AclConfigName> values) { + List list = new ArrayList<>(values.size()); + for (AclConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclConfigName that = ((AclConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aclConfig. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(AclConfigName aclConfigName) { + this.project = aclConfigName.project; + this.location = aclConfigName.location; + } + + public AclConfigName build() { + return new AclConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigOrBuilder.java new file mode 100644 index 000000000000..7d39628b9f4d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface AclConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AclConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The full resource name of the acl configuration.
+   * Format:
+   * `projects/{project}/locations/{location}/aclConfig`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Immutable. The full resource name of the acl configuration.
+   * Format:
+   * `projects/{project}/locations/{location}/aclConfig`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + + /** + * + * + *
+   * Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig(); + + /** + * + * + *
+   * Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 2; + */ + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigProto.java new file mode 100644 index 000000000000..d7c615f5f228 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class AclConfigProto extends com.google.protobuf.GeneratedFile { + private AclConfigProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclConfigProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AclConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AclConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/discoveryengine/v1/acl_co" + + "nfig.proto\022\037google.cloud.discoveryengine" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032,google/cloud/di" + + "scoveryengine/v1/common.proto\"\301\001\n\tAclCon" + + "fig\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022>\n\nidp_config\030\002 " + + "\001(\0132*.google.cloud.discoveryengine.v1.Id" + + "pConfig:`\352A]\n(discoveryengine.googleapis" + + ".com/AclConfig\0221projects/{project}/locat" + + "ions/{location}/aclConfigB\201\002\n#com.google" + + ".cloud.discoveryengine.v1B\016AclConfigProt" + + "oP\001ZMcloud.google.com/go/discoveryengine" + + "/apiv1/discoveryenginepb;discoveryengine" + + "pb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Disc" + + "overyEngine.V1\312\002\037Google\\Cloud\\DiscoveryE" + + "ngine\\V1\352\002\"Google::Cloud::DiscoveryEngin" + + "e::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_AclConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_AclConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AclConfig_descriptor, + new java.lang.String[] { + "Name", "IdpConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceProto.java new file mode 100644 index 000000000000..74a0243ab776 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AclConfigServiceProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class AclConfigServiceProto extends com.google.protobuf.GeneratedFile { + private AclConfigServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclConfigServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1/acl_co" + + "nfig_service.proto\022\037google.cloud.discove" + + "ryengine.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\0320google/cloud/discoveryengine/v1/" + + "acl_config.proto\"V\n\023GetAclConfigRequest\022" + + "?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine." + + "googleapis.com/AclConfig\"^\n\026UpdateAclCon" + + "figRequest\022D\n\nacl_config\030\001 \001(\0132*.google." + + "cloud.discoveryengine.v1.AclConfigB\004\342A\001\002" + + "2\330\004\n\020AclConfigService\022\302\001\n\017UpdateAclConfi" + + "g\0227.google.cloud.discoveryengine.v1.Upda" + + "teAclConfigRequest\032*.google.cloud.discov" + + "eryengine.v1.AclConfig\"J\202\323\344\223\002D26/v1/{acl" + + "_config.name=projects/*/locations/*/aclC" + + "onfig}:\nacl_config\022\254\001\n\014GetAclConfig\0224.go" + + "ogle.cloud.discoveryengine.v1.GetAclConf" + + "igRequest\032*.google.cloud.discoveryengine" + + ".v1.AclConfig\":\332A\004name\202\323\344\223\002-\022+/v1/{name=" + + "projects/*/locations/*/aclConfig}\032\317\001\312A\036d" + + "iscoveryengine.googleapis.com\322A\252\001https:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/discover" + + "yengine.readwrite,https://www.googleapis" + + ".com/auth/discoveryengine.serving.readwr" + + "iteB\210\002\n#com.google.cloud.discoveryengine" + + ".v1B\025AclConfigServiceProtoP\001ZMcloud.goog" + + "le.com/go/discoveryengine/apiv1/discover" + + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" + + "NGINE\252\002\037Google.Cloud.DiscoveryEngine.V1\312" + + "\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Goog" + + "le::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.AclConfigProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_descriptor, + new java.lang.String[] { + "AclConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.AclConfigProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfig.java new file mode 100644 index 000000000000..a7f0a9731a53 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfig.java @@ -0,0 +1,2839 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Informations to support actions on the connector.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ActionConfig} + */ +@com.google.protobuf.Generated +public final class ActionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ActionConfig) + ActionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ActionConfig"); + } + + // Use ActionConfig.newBuilder() to construct. + private ActionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActionConfig() { + serviceName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetUserDefinedScopesMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ActionConfig.class, + com.google.cloud.discoveryengine.v1.ActionConfig.Builder.class); + } + + public interface ScopeListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ActionConfig.ScopeList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + } + + /** + * + * + *
+   * Stores a list of scopes.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ActionConfig.ScopeList} + */ + public static final class ScopeList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ActionConfig.ScopeList) + ScopeListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ScopeList"); + } + + // Use ScopeList.newBuilder() to construct. + private ScopeList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeList() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.class, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + } + + /** + * + * + *
+     * Optional. The list of scopes.
+     * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + } + + 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.GeneratedMessage.writeString(output, 1, scopes_.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 < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList other = + (com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) obj; + + if (!getScopesList().equals(other.getScopesList())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Stores a list of scopes.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ActionConfig.ScopeList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ActionConfig.ScopeList) + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.class, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList build() { + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList buildPartial() { + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList result = + new com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList other) { + if (other + == com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.getDefaultInstance()) + return this; + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000001; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + 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 + 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; + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of scopes.
+       * 
+ * + * repeated string scopes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ActionConfig.ScopeList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ActionConfig.ScopeList) + private static final com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList(); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionConfigParamsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object actionConfigParams_; + + public enum ActionConfigParamsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACTION_PARAMS(2), + JSON_ACTION_PARAMS(6), + ACTIONCONFIGPARAMS_NOT_SET(0); + private final int value; + + private ActionConfigParamsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionConfigParamsCase valueOf(int value) { + return forNumber(value); + } + + public static ActionConfigParamsCase forNumber(int value) { + switch (value) { + case 2: + return ACTION_PARAMS; + case 6: + return JSON_ACTION_PARAMS; + case 0: + return ACTIONCONFIGPARAMS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionConfigParamsCase getActionConfigParamsCase() { + return ActionConfigParamsCase.forNumber(actionConfigParamsCase_); + } + + public static final int ACTION_PARAMS_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Action parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the actionParams field is set. + */ + @java.lang.Override + public boolean hasActionParams() { + return actionConfigParamsCase_ == 2; + } + + /** + * + * + *
+   * Optional. Action parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getActionParams() { + if (actionConfigParamsCase_ == 2) { + return (com.google.protobuf.Struct) actionConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Action parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getActionParamsOrBuilder() { + if (actionConfigParamsCase_ == 2) { + return (com.google.protobuf.Struct) actionConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_ACTION_PARAMS_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Optional. Action parameters in json string format.
+   * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonActionParams field is set. + */ + public boolean hasJsonActionParams() { + return actionConfigParamsCase_ == 6; + } + + /** + * + * + *
+   * Optional. Action parameters in json string format.
+   * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonActionParams. + */ + public java.lang.String getJsonActionParams() { + java.lang.Object ref = ""; + if (actionConfigParamsCase_ == 6) { + ref = actionConfigParams_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionConfigParamsCase_ == 6) { + actionConfigParams_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Action parameters in json string format.
+   * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonActionParams. + */ + public com.google.protobuf.ByteString getJsonActionParamsBytes() { + java.lang.Object ref = ""; + if (actionConfigParamsCase_ == 6) { + ref = actionConfigParams_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionConfigParamsCase_ == 6) { + actionConfigParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ACTION_CONFIGURED_FIELD_NUMBER = 1; + private boolean isActionConfigured_ = false; + + /** + * + * + *
+   * Output only. The connector contains the necessary parameters and is
+   * configured to support actions.
+   * 
+ * + * bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isActionConfigured. + */ + @java.lang.Override + public boolean getIsActionConfigured() { + return isActionConfigured_; + } + + public static final int SERVICE_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceName_ = ""; + + /** + * + * + *
+   * Optional. The Service Directory resource name
+   * (projects/*/locations/*/namespaces/*/services/*)
+   * representing a VPC network endpoint used to connect to the data source's
+   * `instance_uri`, defined in
+   * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+   *
+   * Required when VPC Service Controls are enabled.
+   * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceName. + */ + @java.lang.Override + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Service Directory resource name
+   * (projects/*/locations/*/namespaces/*/services/*)
+   * representing a VPC network endpoint used to connect to the data source's
+   * `instance_uri`, defined in
+   * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+   *
+   * Required when VPC Service Controls are enabled.
+   * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_STATIC_SECRETS_FIELD_NUMBER = 4; + private boolean useStaticSecrets_ = false; + + /** + * + * + *
+   * Optional. Whether to use static secrets for the connector. If true, the
+   * secrets provided in the action_params will be ignored.
+   * 
+ * + * bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useStaticSecrets. + */ + @java.lang.Override + public boolean getUseStaticSecrets() { + return useStaticSecrets_; + } + + public static final int CREATE_BAP_CONNECTION_FIELD_NUMBER = 5; + private boolean createBapConnection_ = false; + + /** + * + * + *
+   * Optional. Whether to create a BAP connection for the connector.
+   * 
+ * + * bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createBapConnection. + */ + @java.lang.Override + public boolean getCreateBapConnection() { + return createBapConnection_; + } + + public static final int USER_DEFINED_SCOPES_MAPPING_FIELD_NUMBER = 10; + + private static final class UserDefinedScopesMappingDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_UserDefinedScopesMappingEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + userDefinedScopesMapping_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + internalGetUserDefinedScopesMapping() { + if (userDefinedScopesMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserDefinedScopesMappingDefaultEntryHolder.defaultEntry); + } + return userDefinedScopesMapping_; + } + + public int getUserDefinedScopesMappingCount() { + return internalGetUserDefinedScopesMapping().getMap().size(); + } + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsUserDefinedScopesMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserDefinedScopesMapping().getMap().containsKey(key); + } + + /** Use {@link #getUserDefinedScopesMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getUserDefinedScopesMapping() { + return getUserDefinedScopesMappingMap(); + } + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getUserDefinedScopesMappingMap() { + return internalGetUserDefinedScopesMapping().getMap(); + } + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + getUserDefinedScopesMappingOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetUserDefinedScopesMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + getUserDefinedScopesMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetUserDefinedScopesMapping().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 (isActionConfigured_ != false) { + output.writeBool(1, isActionConfigured_); + } + if (actionConfigParamsCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Struct) actionConfigParams_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, serviceName_); + } + if (useStaticSecrets_ != false) { + output.writeBool(4, useStaticSecrets_); + } + if (createBapConnection_ != false) { + output.writeBool(5, createBapConnection_); + } + if (actionConfigParamsCase_ == 6) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, actionConfigParams_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetUserDefinedScopesMapping(), + UserDefinedScopesMappingDefaultEntryHolder.defaultEntry, + 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isActionConfigured_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isActionConfigured_); + } + if (actionConfigParamsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Struct) actionConfigParams_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, serviceName_); + } + if (useStaticSecrets_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, useStaticSecrets_); + } + if (createBapConnection_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, createBapConnection_); + } + if (actionConfigParamsCase_ == 6) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, actionConfigParams_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + entry : internalGetUserDefinedScopesMapping().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + userDefinedScopesMapping__ = + UserDefinedScopesMappingDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, userDefinedScopesMapping__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ActionConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ActionConfig other = + (com.google.cloud.discoveryengine.v1.ActionConfig) obj; + + if (getIsActionConfigured() != other.getIsActionConfigured()) return false; + if (!getServiceName().equals(other.getServiceName())) return false; + if (getUseStaticSecrets() != other.getUseStaticSecrets()) return false; + if (getCreateBapConnection() != other.getCreateBapConnection()) return false; + if (!internalGetUserDefinedScopesMapping().equals(other.internalGetUserDefinedScopesMapping())) + return false; + if (!getActionConfigParamsCase().equals(other.getActionConfigParamsCase())) return false; + switch (actionConfigParamsCase_) { + case 2: + if (!getActionParams().equals(other.getActionParams())) return false; + break; + case 6: + if (!getJsonActionParams().equals(other.getJsonActionParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IS_ACTION_CONFIGURED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsActionConfigured()); + hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServiceName().hashCode(); + hash = (37 * hash) + USE_STATIC_SECRETS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseStaticSecrets()); + hash = (37 * hash) + CREATE_BAP_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateBapConnection()); + if (!internalGetUserDefinedScopesMapping().getMap().isEmpty()) { + hash = (37 * hash) + USER_DEFINED_SCOPES_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserDefinedScopesMapping().hashCode(); + } + switch (actionConfigParamsCase_) { + case 2: + hash = (37 * hash) + ACTION_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getActionParams().hashCode(); + break; + case 6: + hash = (37 * hash) + JSON_ACTION_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getJsonActionParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.ActionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Informations to support actions on the connector.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ActionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ActionConfig) + com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetUserDefinedScopesMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableUserDefinedScopesMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ActionConfig.class, + com.google.cloud.discoveryengine.v1.ActionConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ActionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (actionParamsBuilder_ != null) { + actionParamsBuilder_.clear(); + } + isActionConfigured_ = false; + serviceName_ = ""; + useStaticSecrets_ = false; + createBapConnection_ = false; + internalGetMutableUserDefinedScopesMapping().clear(); + actionConfigParamsCase_ = 0; + actionConfigParams_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig build() { + com.google.cloud.discoveryengine.v1.ActionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig buildPartial() { + com.google.cloud.discoveryengine.v1.ActionConfig result = + new com.google.cloud.discoveryengine.v1.ActionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.ActionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isActionConfigured_ = isActionConfigured_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceName_ = serviceName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.useStaticSecrets_ = useStaticSecrets_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createBapConnection_ = createBapConnection_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userDefinedScopesMapping_ = + internalGetUserDefinedScopesMapping() + .build(UserDefinedScopesMappingDefaultEntryHolder.defaultEntry); + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.ActionConfig result) { + result.actionConfigParamsCase_ = actionConfigParamsCase_; + result.actionConfigParams_ = this.actionConfigParams_; + if (actionConfigParamsCase_ == 2 && actionParamsBuilder_ != null) { + result.actionConfigParams_ = actionParamsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ActionConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ActionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ActionConfig other) { + if (other == com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance()) + return this; + if (other.getIsActionConfigured() != false) { + setIsActionConfigured(other.getIsActionConfigured()); + } + if (!other.getServiceName().isEmpty()) { + serviceName_ = other.serviceName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getUseStaticSecrets() != false) { + setUseStaticSecrets(other.getUseStaticSecrets()); + } + if (other.getCreateBapConnection() != false) { + setCreateBapConnection(other.getCreateBapConnection()); + } + internalGetMutableUserDefinedScopesMapping() + .mergeFrom(other.internalGetUserDefinedScopesMapping()); + bitField0_ |= 0x00000040; + switch (other.getActionConfigParamsCase()) { + case ACTION_PARAMS: + { + mergeActionParams(other.getActionParams()); + break; + } + case JSON_ACTION_PARAMS: + { + actionConfigParamsCase_ = 6; + actionConfigParams_ = other.actionConfigParams_; + onChanged(); + break; + } + case ACTIONCONFIGPARAMS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + isActionConfigured_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetActionParamsFieldBuilder().getBuilder(), extensionRegistry); + actionConfigParamsCase_ = 2; + break; + } // case 18 + case 26: + { + serviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: + { + useStaticSecrets_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + createBapConnection_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + actionConfigParamsCase_ = 6; + actionConfigParams_ = s; + break; + } // case 50 + case 82: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + userDefinedScopesMapping__ = + input.readMessage( + UserDefinedScopesMappingDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableUserDefinedScopesMapping() + .ensureBuilderMap() + .put( + userDefinedScopesMapping__.getKey(), userDefinedScopesMapping__.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 actionConfigParamsCase_ = 0; + private java.lang.Object actionConfigParams_; + + public ActionConfigParamsCase getActionConfigParamsCase() { + return ActionConfigParamsCase.forNumber(actionConfigParamsCase_); + } + + public Builder clearActionConfigParams() { + actionConfigParamsCase_ = 0; + actionConfigParams_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + actionParamsBuilder_; + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the actionParams field is set. + */ + @java.lang.Override + public boolean hasActionParams() { + return actionConfigParamsCase_ == 2; + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getActionParams() { + if (actionParamsBuilder_ == null) { + if (actionConfigParamsCase_ == 2) { + return (com.google.protobuf.Struct) actionConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (actionConfigParamsCase_ == 2) { + return actionParamsBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActionParams(com.google.protobuf.Struct value) { + if (actionParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionConfigParams_ = value; + onChanged(); + } else { + actionParamsBuilder_.setMessage(value); + } + actionConfigParamsCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActionParams(com.google.protobuf.Struct.Builder builderForValue) { + if (actionParamsBuilder_ == null) { + actionConfigParams_ = builderForValue.build(); + onChanged(); + } else { + actionParamsBuilder_.setMessage(builderForValue.build()); + } + actionConfigParamsCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeActionParams(com.google.protobuf.Struct value) { + if (actionParamsBuilder_ == null) { + if (actionConfigParamsCase_ == 2 + && actionConfigParams_ != com.google.protobuf.Struct.getDefaultInstance()) { + actionConfigParams_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) actionConfigParams_) + .mergeFrom(value) + .buildPartial(); + } else { + actionConfigParams_ = value; + } + onChanged(); + } else { + if (actionConfigParamsCase_ == 2) { + actionParamsBuilder_.mergeFrom(value); + } else { + actionParamsBuilder_.setMessage(value); + } + } + actionConfigParamsCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearActionParams() { + if (actionParamsBuilder_ == null) { + if (actionConfigParamsCase_ == 2) { + actionConfigParamsCase_ = 0; + actionConfigParams_ = null; + onChanged(); + } + } else { + if (actionConfigParamsCase_ == 2) { + actionConfigParamsCase_ = 0; + actionConfigParams_ = null; + } + actionParamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getActionParamsBuilder() { + return internalGetActionParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getActionParamsOrBuilder() { + if ((actionConfigParamsCase_ == 2) && (actionParamsBuilder_ != null)) { + return actionParamsBuilder_.getMessageOrBuilder(); + } else { + if (actionConfigParamsCase_ == 2) { + return (com.google.protobuf.Struct) actionConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Action parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetActionParamsFieldBuilder() { + if (actionParamsBuilder_ == null) { + if (!(actionConfigParamsCase_ == 2)) { + actionConfigParams_ = com.google.protobuf.Struct.getDefaultInstance(); + } + actionParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) actionConfigParams_, + getParentForChildren(), + isClean()); + actionConfigParams_ = null; + } + actionConfigParamsCase_ = 2; + onChanged(); + return actionParamsBuilder_; + } + + /** + * + * + *
+     * Optional. Action parameters in json string format.
+     * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonActionParams field is set. + */ + @java.lang.Override + public boolean hasJsonActionParams() { + return actionConfigParamsCase_ == 6; + } + + /** + * + * + *
+     * Optional. Action parameters in json string format.
+     * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonActionParams. + */ + @java.lang.Override + public java.lang.String getJsonActionParams() { + java.lang.Object ref = ""; + if (actionConfigParamsCase_ == 6) { + ref = actionConfigParams_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionConfigParamsCase_ == 6) { + actionConfigParams_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Action parameters in json string format.
+     * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonActionParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonActionParamsBytes() { + java.lang.Object ref = ""; + if (actionConfigParamsCase_ == 6) { + ref = actionConfigParams_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionConfigParamsCase_ == 6) { + actionConfigParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Action parameters in json string format.
+     * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonActionParams to set. + * @return This builder for chaining. + */ + public Builder setJsonActionParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionConfigParamsCase_ = 6; + actionConfigParams_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Action parameters in json string format.
+     * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonActionParams() { + if (actionConfigParamsCase_ == 6) { + actionConfigParamsCase_ = 0; + actionConfigParams_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Action parameters in json string format.
+     * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonActionParams to set. + * @return This builder for chaining. + */ + public Builder setJsonActionParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionConfigParamsCase_ = 6; + actionConfigParams_ = value; + onChanged(); + return this; + } + + private boolean isActionConfigured_; + + /** + * + * + *
+     * Output only. The connector contains the necessary parameters and is
+     * configured to support actions.
+     * 
+ * + * bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isActionConfigured. + */ + @java.lang.Override + public boolean getIsActionConfigured() { + return isActionConfigured_; + } + + /** + * + * + *
+     * Output only. The connector contains the necessary parameters and is
+     * configured to support actions.
+     * 
+ * + * bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isActionConfigured to set. + * @return This builder for chaining. + */ + public Builder setIsActionConfigured(boolean value) { + + isActionConfigured_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The connector contains the necessary parameters and is
+     * configured to support actions.
+     * 
+ * + * bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsActionConfigured() { + bitField0_ = (bitField0_ & ~0x00000004); + isActionConfigured_ = false; + onChanged(); + return this; + } + + private java.lang.Object serviceName_ = ""; + + /** + * + * + *
+     * Optional. The Service Directory resource name
+     * (projects/*/locations/*/namespaces/*/services/*)
+     * representing a VPC network endpoint used to connect to the data source's
+     * `instance_uri`, defined in
+     * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+     *
+     * Required when VPC Service Controls are enabled.
+     * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceName. + */ + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Service Directory resource name
+     * (projects/*/locations/*/namespaces/*/services/*)
+     * representing a VPC network endpoint used to connect to the data source's
+     * `instance_uri`, defined in
+     * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+     *
+     * Required when VPC Service Controls are enabled.
+     * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceName. + */ + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Service Directory resource name
+     * (projects/*/locations/*/namespaces/*/services/*)
+     * representing a VPC network endpoint used to connect to the data source's
+     * `instance_uri`, defined in
+     * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+     *
+     * Required when VPC Service Controls are enabled.
+     * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceName to set. + * @return This builder for chaining. + */ + public Builder setServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Service Directory resource name
+     * (projects/*/locations/*/namespaces/*/services/*)
+     * representing a VPC network endpoint used to connect to the data source's
+     * `instance_uri`, defined in
+     * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+     *
+     * Required when VPC Service Controls are enabled.
+     * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceName() { + serviceName_ = getDefaultInstance().getServiceName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Service Directory resource name
+     * (projects/*/locations/*/namespaces/*/services/*)
+     * representing a VPC network endpoint used to connect to the data source's
+     * `instance_uri`, defined in
+     * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+     *
+     * Required when VPC Service Controls are enabled.
+     * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceName to set. + * @return This builder for chaining. + */ + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean useStaticSecrets_; + + /** + * + * + *
+     * Optional. Whether to use static secrets for the connector. If true, the
+     * secrets provided in the action_params will be ignored.
+     * 
+ * + * bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useStaticSecrets. + */ + @java.lang.Override + public boolean getUseStaticSecrets() { + return useStaticSecrets_; + } + + /** + * + * + *
+     * Optional. Whether to use static secrets for the connector. If true, the
+     * secrets provided in the action_params will be ignored.
+     * 
+ * + * bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useStaticSecrets to set. + * @return This builder for chaining. + */ + public Builder setUseStaticSecrets(boolean value) { + + useStaticSecrets_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to use static secrets for the connector. If true, the
+     * secrets provided in the action_params will be ignored.
+     * 
+ * + * bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseStaticSecrets() { + bitField0_ = (bitField0_ & ~0x00000010); + useStaticSecrets_ = false; + onChanged(); + return this; + } + + private boolean createBapConnection_; + + /** + * + * + *
+     * Optional. Whether to create a BAP connection for the connector.
+     * 
+ * + * bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createBapConnection. + */ + @java.lang.Override + public boolean getCreateBapConnection() { + return createBapConnection_; + } + + /** + * + * + *
+     * Optional. Whether to create a BAP connection for the connector.
+     * 
+ * + * bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The createBapConnection to set. + * @return This builder for chaining. + */ + public Builder setCreateBapConnection(boolean value) { + + createBapConnection_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to create a BAP connection for the connector.
+     * 
+ * + * bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCreateBapConnection() { + bitField0_ = (bitField0_ & ~0x00000020); + createBapConnection_ = false; + onChanged(); + return this; + } + + private static final class UserDefinedScopesMappingConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList build( + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder val) { + if (val instanceof com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) { + return (com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) val; + } + return ((com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + defaultEntry() { + return UserDefinedScopesMappingDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final UserDefinedScopesMappingConverter userDefinedScopesMappingConverter = + new UserDefinedScopesMappingConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder> + userDefinedScopesMapping_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder> + internalGetUserDefinedScopesMapping() { + if (userDefinedScopesMapping_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(userDefinedScopesMappingConverter); + } + return userDefinedScopesMapping_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList, + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder> + internalGetMutableUserDefinedScopesMapping() { + if (userDefinedScopesMapping_ == null) { + userDefinedScopesMapping_ = + new com.google.protobuf.MapFieldBuilder<>(userDefinedScopesMappingConverter); + } + bitField0_ |= 0x00000040; + onChanged(); + return userDefinedScopesMapping_; + } + + public int getUserDefinedScopesMappingCount() { + return internalGetUserDefinedScopesMapping().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsUserDefinedScopesMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserDefinedScopesMapping().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getUserDefinedScopesMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + getUserDefinedScopesMapping() { + return getUserDefinedScopesMappingMap(); + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + getUserDefinedScopesMappingMap() { + return internalGetUserDefinedScopesMapping().getImmutableMap(); + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + getUserDefinedScopesMappingOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder> + map = internalGetMutableUserDefinedScopesMapping().ensureBuilderMap(); + return map.containsKey(key) + ? userDefinedScopesMappingConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList + getUserDefinedScopesMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder> + map = internalGetMutableUserDefinedScopesMapping().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return userDefinedScopesMappingConverter.build(map.get(key)); + } + + public Builder clearUserDefinedScopesMapping() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableUserDefinedScopesMapping().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeUserDefinedScopesMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserDefinedScopesMapping().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + getMutableUserDefinedScopesMapping() { + bitField0_ |= 0x00000040; + return internalGetMutableUserDefinedScopesMapping().ensureMessageMap(); + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putUserDefinedScopesMapping( + java.lang.String key, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUserDefinedScopesMapping().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllUserDefinedScopesMapping( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableUserDefinedScopesMapping().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. Mapping from operation name to the list of scopes. Only be
+     * populated if there are user specified scopes.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder + putUserDefinedScopesMappingBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder> + builderMap = internalGetMutableUserDefinedScopesMapping().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeListOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) { + entry = ((com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ActionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ActionConfig) + private static final com.google.cloud.discoveryengine.v1.ActionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ActionConfig(); + } + + public static com.google.cloud.discoveryengine.v1.ActionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfigOrBuilder.java new file mode 100644 index 000000000000..e1e3da6028f6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ActionConfigOrBuilder.java @@ -0,0 +1,274 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ActionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ActionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Action parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the actionParams field is set. + */ + boolean hasActionParams(); + + /** + * + * + *
+   * Optional. Action parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionParams. + */ + com.google.protobuf.Struct getActionParams(); + + /** + * + * + *
+   * Optional. Action parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getActionParamsOrBuilder(); + + /** + * + * + *
+   * Optional. Action parameters in json string format.
+   * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonActionParams field is set. + */ + boolean hasJsonActionParams(); + + /** + * + * + *
+   * Optional. Action parameters in json string format.
+   * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonActionParams. + */ + java.lang.String getJsonActionParams(); + + /** + * + * + *
+   * Optional. Action parameters in json string format.
+   * 
+ * + * string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonActionParams. + */ + com.google.protobuf.ByteString getJsonActionParamsBytes(); + + /** + * + * + *
+   * Output only. The connector contains the necessary parameters and is
+   * configured to support actions.
+   * 
+ * + * bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isActionConfigured. + */ + boolean getIsActionConfigured(); + + /** + * + * + *
+   * Optional. The Service Directory resource name
+   * (projects/*/locations/*/namespaces/*/services/*)
+   * representing a VPC network endpoint used to connect to the data source's
+   * `instance_uri`, defined in
+   * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+   *
+   * Required when VPC Service Controls are enabled.
+   * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceName. + */ + java.lang.String getServiceName(); + + /** + * + * + *
+   * Optional. The Service Directory resource name
+   * (projects/*/locations/*/namespaces/*/services/*)
+   * representing a VPC network endpoint used to connect to the data source's
+   * `instance_uri`, defined in
+   * [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params].
+   *
+   * Required when VPC Service Controls are enabled.
+   * 
+ * + * + * string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceName. + */ + com.google.protobuf.ByteString getServiceNameBytes(); + + /** + * + * + *
+   * Optional. Whether to use static secrets for the connector. If true, the
+   * secrets provided in the action_params will be ignored.
+   * 
+ * + * bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useStaticSecrets. + */ + boolean getUseStaticSecrets(); + + /** + * + * + *
+   * Optional. Whether to create a BAP connection for the connector.
+   * 
+ * + * bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createBapConnection. + */ + boolean getCreateBapConnection(); + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUserDefinedScopesMappingCount(); + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsUserDefinedScopesMapping(java.lang.String key); + + /** Use {@link #getUserDefinedScopesMappingMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getUserDefinedScopesMapping(); + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getUserDefinedScopesMappingMap(); + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList getUserDefinedScopesMappingOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList defaultValue); + + /** + * + * + *
+   * Optional. Mapping from operation name to the list of scopes. Only be
+   * populated if there are user specified scopes.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.ActionConfig.ScopeList getUserDefinedScopesMappingOrThrow( + java.lang.String key); + + com.google.cloud.discoveryengine.v1.ActionConfig.ActionConfigParamsCase + getActionConfigParamsCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequest.java new file mode 100644 index 000000000000..72a3def663bf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequest.java @@ -0,0 +1,6868 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/completion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1.CompletionService.AdvancedCompleteQuery]
+ * method.
+ * .
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest} + */ +@com.google.protobuf.Generated +public final class AdvancedCompleteQueryRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) + AdvancedCompleteQueryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AdvancedCompleteQueryRequest"); + } + + // Use AdvancedCompleteQueryRequest.newBuilder() to construct. + private AdvancedCompleteQueryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdvancedCompleteQueryRequest() { + completionConfig_ = ""; + query_ = ""; + queryModel_ = ""; + userPseudoId_ = ""; + suggestionTypes_ = emptyIntList(); + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + experimentIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.Builder.class); + } + + /** + * + * + *
+   * Suggestion type to return.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType} + */ + public enum SuggestionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * SUGGESTION_TYPE_UNSPECIFIED = 0; + */ + SUGGESTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Returns query suggestions.
+     * 
+ * + * QUERY = 1; + */ + QUERY(1), + /** + * + * + *
+     * Returns people suggestions.
+     * 
+ * + * PEOPLE = 2; + */ + PEOPLE(2), + /** + * + * + *
+     * Returns content suggestions.
+     * 
+ * + * CONTENT = 3; + */ + CONTENT(3), + /** + * + * + *
+     * Returns recent search suggestions.
+     * 
+ * + * RECENT_SEARCH = 4; + */ + RECENT_SEARCH(4), + /** + * + * + *
+     * Returns Google Workspace suggestions.
+     * 
+ * + * GOOGLE_WORKSPACE = 5; + */ + GOOGLE_WORKSPACE(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SuggestionType"); + } + + /** + * + * + *
+     * Default value.
+     * 
+ * + * SUGGESTION_TYPE_UNSPECIFIED = 0; + */ + public static final int SUGGESTION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Returns query suggestions.
+     * 
+ * + * QUERY = 1; + */ + public static final int QUERY_VALUE = 1; + + /** + * + * + *
+     * Returns people suggestions.
+     * 
+ * + * PEOPLE = 2; + */ + public static final int PEOPLE_VALUE = 2; + + /** + * + * + *
+     * Returns content suggestions.
+     * 
+ * + * CONTENT = 3; + */ + public static final int CONTENT_VALUE = 3; + + /** + * + * + *
+     * Returns recent search suggestions.
+     * 
+ * + * RECENT_SEARCH = 4; + */ + public static final int RECENT_SEARCH_VALUE = 4; + + /** + * + * + *
+     * Returns Google Workspace suggestions.
+     * 
+ * + * GOOGLE_WORKSPACE = 5; + */ + public static final int GOOGLE_WORKSPACE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SuggestionType 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 SuggestionType forNumber(int value) { + switch (value) { + case 0: + return SUGGESTION_TYPE_UNSPECIFIED; + case 1: + return QUERY; + case 2: + return PEOPLE; + case 3: + return CONTENT; + case 4: + return RECENT_SEARCH; + case 5: + return GOOGLE_WORKSPACE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SuggestionType findValueByNumber(int number) { + return SuggestionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SuggestionType[] VALUES = values(); + + public static SuggestionType 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 SuggestionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType) + } + + public interface BoostSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec> + getConditionBoostSpecsList(); + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec + getConditionBoostSpecs(int index); + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + int getConditionBoostSpecsCount(); + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder> + getConditionBoostSpecsOrBuilderList(); + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder + getConditionBoostSpecsOrBuilder(int index); + } + + /** + * + * + *
+   * Specification to boost suggestions based on the condition of the
+   * suggestion.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec} + */ + public static final class BoostSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) + BoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BoostSpec"); + } + + // Use BoostSpec.newBuilder() to construct. + private BoostSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BoostSpec() { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder + .class); + } + + public interface ConditionBoostSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * An expression which specifies a boost condition. The syntax is the same
+       * as [filter expression
+       * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+       * Currently, the only supported condition is a list of BCP-47 lang codes.
+       *
+       * Example:
+       *
+       * * To boost suggestions in languages `en` or `fr`:
+       * `(lang_code: ANY("en", "fr"))`
+       * 
+ * + * string condition = 1; + * + * @return The condition. + */ + java.lang.String getCondition(); + + /** + * + * + *
+       * An expression which specifies a boost condition. The syntax is the same
+       * as [filter expression
+       * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+       * Currently, the only supported condition is a list of BCP-47 lang codes.
+       *
+       * Example:
+       *
+       * * To boost suggestions in languages `en` or `fr`:
+       * `(lang_code: ANY("en", "fr"))`
+       * 
+ * + * string condition = 1; + * + * @return The bytes for condition. + */ + com.google.protobuf.ByteString getConditionBytes(); + + /** + * + * + *
+       * Strength of the boost, which should be in [-1, 1].
+       * Negative boost means demotion. Default is 0.0.
+       *
+       * Setting to 1.0 gives the suggestions a big promotion. However, it does
+       * not necessarily mean that the top result will be a boosted suggestion.
+       *
+       * Setting to -1.0 gives the suggestions a big demotion. However, other
+       * suggestions that are relevant might still be shown.
+       *
+       * Setting to 0.0 means no boost applied. The boosting condition is
+       * ignored.
+       * 
+ * + * float boost = 2; + * + * @return The boost. + */ + float getBoost(); + } + + /** + * + * + *
+     * Boost applies to suggestions which match a condition.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec} + */ + public static final class ConditionBoostSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec) + ConditionBoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConditionBoostSpec"); + } + + // Use ConditionBoostSpec.newBuilder() to construct. + private ConditionBoostSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConditionBoostSpec() { + condition_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; + + /** + * + * + *
+       * An expression which specifies a boost condition. The syntax is the same
+       * as [filter expression
+       * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+       * Currently, the only supported condition is a list of BCP-47 lang codes.
+       *
+       * Example:
+       *
+       * * To boost suggestions in languages `en` or `fr`:
+       * `(lang_code: ANY("en", "fr"))`
+       * 
+ * + * string condition = 1; + * + * @return The condition. + */ + @java.lang.Override + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } + } + + /** + * + * + *
+       * An expression which specifies a boost condition. The syntax is the same
+       * as [filter expression
+       * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+       * Currently, the only supported condition is a list of BCP-47 lang codes.
+       *
+       * Example:
+       *
+       * * To boost suggestions in languages `en` or `fr`:
+       * `(lang_code: ANY("en", "fr"))`
+       * 
+ * + * string condition = 1; + * + * @return The bytes for condition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_FIELD_NUMBER = 2; + private float boost_ = 0F; + + /** + * + * + *
+       * Strength of the boost, which should be in [-1, 1].
+       * Negative boost means demotion. Default is 0.0.
+       *
+       * Setting to 1.0 gives the suggestions a big promotion. However, it does
+       * not necessarily mean that the top result will be a boosted suggestion.
+       *
+       * Setting to -1.0 gives the suggestions a big demotion. However, other
+       * suggestions that are relevant might still be shown.
+       *
+       * Setting to 0.0 means no boost applied. The boosting condition is
+       * ignored.
+       * 
+ * + * float boost = 2; + * + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(condition_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, condition_); + } + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + output.writeFloat(2, boost_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(condition_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, condition_); + } + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec) + obj; + + if (!getCondition().equals(other.getCondition())) return false; + if (java.lang.Float.floatToIntBits(getBoost()) + != java.lang.Float.floatToIntBits(other.getBoost())) 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) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + hash = (37 * hash) + BOOST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Boost applies to suggestions which match a condition.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + condition_ = ""; + boost_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.boost_ = boost_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.getDefaultInstance()) return this; + if (!other.getCondition().isEmpty()) { + condition_ = other.condition_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getBoost()) != 0) { + setBoost(other.getBoost()); + } + 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: + { + condition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + 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 condition_ = ""; + + /** + * + * + *
+         * An expression which specifies a boost condition. The syntax is the same
+         * as [filter expression
+         * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+         * Currently, the only supported condition is a list of BCP-47 lang codes.
+         *
+         * Example:
+         *
+         * * To boost suggestions in languages `en` or `fr`:
+         * `(lang_code: ANY("en", "fr"))`
+         * 
+ * + * string condition = 1; + * + * @return The condition. + */ + public java.lang.String getCondition() { + java.lang.Object ref = condition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + condition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * An expression which specifies a boost condition. The syntax is the same
+         * as [filter expression
+         * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+         * Currently, the only supported condition is a list of BCP-47 lang codes.
+         *
+         * Example:
+         *
+         * * To boost suggestions in languages `en` or `fr`:
+         * `(lang_code: ANY("en", "fr"))`
+         * 
+ * + * string condition = 1; + * + * @return The bytes for condition. + */ + public com.google.protobuf.ByteString getConditionBytes() { + java.lang.Object ref = condition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + condition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * An expression which specifies a boost condition. The syntax is the same
+         * as [filter expression
+         * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+         * Currently, the only supported condition is a list of BCP-47 lang codes.
+         *
+         * Example:
+         *
+         * * To boost suggestions in languages `en` or `fr`:
+         * `(lang_code: ANY("en", "fr"))`
+         * 
+ * + * string condition = 1; + * + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * An expression which specifies a boost condition. The syntax is the same
+         * as [filter expression
+         * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+         * Currently, the only supported condition is a list of BCP-47 lang codes.
+         *
+         * Example:
+         *
+         * * To boost suggestions in languages `en` or `fr`:
+         * `(lang_code: ANY("en", "fr"))`
+         * 
+ * + * string condition = 1; + * + * @return This builder for chaining. + */ + public Builder clearCondition() { + condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * An expression which specifies a boost condition. The syntax is the same
+         * as [filter expression
+         * syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax).
+         * Currently, the only supported condition is a list of BCP-47 lang codes.
+         *
+         * Example:
+         *
+         * * To boost suggestions in languages `en` or `fr`:
+         * `(lang_code: ANY("en", "fr"))`
+         * 
+ * + * string condition = 1; + * + * @param value The bytes for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + condition_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float boost_; + + /** + * + * + *
+         * Strength of the boost, which should be in [-1, 1].
+         * Negative boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the suggestions a big promotion. However, it does
+         * not necessarily mean that the top result will be a boosted suggestion.
+         *
+         * Setting to -1.0 gives the suggestions a big demotion. However, other
+         * suggestions that are relevant might still be shown.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored.
+         * 
+ * + * float boost = 2; + * + * @return The boost. + */ + @java.lang.Override + public float getBoost() { + return boost_; + } + + /** + * + * + *
+         * Strength of the boost, which should be in [-1, 1].
+         * Negative boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the suggestions a big promotion. However, it does
+         * not necessarily mean that the top result will be a boosted suggestion.
+         *
+         * Setting to -1.0 gives the suggestions a big demotion. However, other
+         * suggestions that are relevant might still be shown.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored.
+         * 
+ * + * float boost = 2; + * + * @param value The boost to set. + * @return This builder for chaining. + */ + public Builder setBoost(float value) { + + boost_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Strength of the boost, which should be in [-1, 1].
+         * Negative boost means demotion. Default is 0.0.
+         *
+         * Setting to 1.0 gives the suggestions a big promotion. However, it does
+         * not necessarily mean that the top result will be a boosted suggestion.
+         *
+         * Setting to -1.0 gives the suggestions a big demotion. However, other
+         * suggestions that are relevant might still be shown.
+         *
+         * Setting to 0.0 means no boost applied. The boosting condition is
+         * ignored.
+         * 
+ * + * float boost = 2; + * + * @return This builder for chaining. + */ + public Builder clearBoost() { + bitField0_ = (bitField0_ & ~0x00000002); + boost_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .BoostSpec.ConditionBoostSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionBoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CONDITION_BOOST_SPECS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec> + conditionBoostSpecs_; + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec> + getConditionBoostSpecsList() { + return conditionBoostSpecs_; + } + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder> + getConditionBoostSpecsOrBuilderList() { + return conditionBoostSpecs_; + } + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + @java.lang.Override + public int getConditionBoostSpecsCount() { + return conditionBoostSpecs_.size(); + } + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + getConditionBoostSpecs(int index) { + return conditionBoostSpecs_.get(index); + } + + /** + * + * + *
+     * Condition boost specifications. If a suggestion matches multiple
+     * conditions in the specifications, boost values from these specifications
+     * are all applied and combined in a non-linear way. Maximum number of
+     * specifications is 20.
+     *
+     * Note: Currently only support language condition boost.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder + getConditionBoostSpecsOrBuilder(int index) { + return conditionBoostSpecs_.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 < conditionBoostSpecs_.size(); i++) { + output.writeMessage(1, conditionBoostSpecs_.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 < conditionBoostSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, conditionBoostSpecs_.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.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) obj; + + if (!getConditionBoostSpecsList().equals(other.getConditionBoostSpecsList())) 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 (getConditionBoostSpecsCount() > 0) { + hash = (37 * hash) + CONDITION_BOOST_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getConditionBoostSpecsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Specification to boost suggestions based on the condition of the
+     * suggestion.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + } else { + conditionBoostSpecs_ = null; + conditionBoostSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec result) { + if (conditionBoostSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conditionBoostSpecs_ = java.util.Collections.unmodifiableList(conditionBoostSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conditionBoostSpecs_ = conditionBoostSpecs_; + } else { + result.conditionBoostSpecs_ = conditionBoostSpecsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance()) return this; + if (conditionBoostSpecsBuilder_ == null) { + if (!other.conditionBoostSpecs_.isEmpty()) { + if (conditionBoostSpecs_.isEmpty()) { + conditionBoostSpecs_ = other.conditionBoostSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.addAll(other.conditionBoostSpecs_); + } + onChanged(); + } + } else { + if (!other.conditionBoostSpecs_.isEmpty()) { + if (conditionBoostSpecsBuilder_.isEmpty()) { + conditionBoostSpecsBuilder_.dispose(); + conditionBoostSpecsBuilder_ = null; + conditionBoostSpecs_ = other.conditionBoostSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + conditionBoostSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConditionBoostSpecsFieldBuilder() + : null; + } else { + conditionBoostSpecsBuilder_.addAllMessages(other.conditionBoostSpecs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .BoostSpec.ConditionBoostSpec.parser(), + extensionRegistry); + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(m); + } else { + conditionBoostSpecsBuilder_.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< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec> + conditionBoostSpecs_ = java.util.Collections.emptyList(); + + private void ensureConditionBoostSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conditionBoostSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec>(conditionBoostSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder> + conditionBoostSpecsBuilder_; + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec> + getConditionBoostSpecsList() { + if (conditionBoostSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditionBoostSpecs_); + } else { + return conditionBoostSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public int getConditionBoostSpecsCount() { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.size(); + } else { + return conditionBoostSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + getConditionBoostSpecs(int index) { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.get(index); + } else { + return conditionBoostSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder setConditionBoostSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.set(index, value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder setConditionBoostSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder + builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder addConditionBoostSpecs( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder addConditionBoostSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec + value) { + if (conditionBoostSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(index, value); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder addConditionBoostSpecs( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder + builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder addConditionBoostSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder + builderForValue) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder addAllConditionBoostSpecs( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec> + values) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditionBoostSpecs_); + onChanged(); + } else { + conditionBoostSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder clearConditionBoostSpecs() { + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conditionBoostSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public Builder removeConditionBoostSpecs(int index) { + if (conditionBoostSpecsBuilder_ == null) { + ensureConditionBoostSpecsIsMutable(); + conditionBoostSpecs_.remove(index); + onChanged(); + } else { + conditionBoostSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder + getConditionBoostSpecsBuilder(int index) { + return internalGetConditionBoostSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder + getConditionBoostSpecsOrBuilder(int index) { + if (conditionBoostSpecsBuilder_ == null) { + return conditionBoostSpecs_.get(index); + } else { + return conditionBoostSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder> + getConditionBoostSpecsOrBuilderList() { + if (conditionBoostSpecsBuilder_ != null) { + return conditionBoostSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditionBoostSpecs_); + } + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder + addConditionBoostSpecsBuilder() { + return internalGetConditionBoostSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.getDefaultInstance()); + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder + addConditionBoostSpecsBuilder(int index) { + return internalGetConditionBoostSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.getDefaultInstance()); + } + + /** + * + * + *
+       * Condition boost specifications. If a suggestion matches multiple
+       * conditions in the specifications, boost values from these specifications
+       * are all applied and combined in a non-linear way. Maximum number of
+       * specifications is 20.
+       *
+       * Note: Currently only support language condition boost.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder> + getConditionBoostSpecsBuilderList() { + return internalGetConditionBoostSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder> + internalGetConditionBoostSpecsFieldBuilder() { + if (conditionBoostSpecsBuilder_ == null) { + conditionBoostSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpec.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .ConditionBoostSpecOrBuilder>( + conditionBoostSpecs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conditionBoostSpecs_ = null; + } + return conditionBoostSpecsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SuggestionTypeSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Suggestion type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionType. + */ + int getSuggestionTypeValue(); + + /** + * + * + *
+     * Optional. Suggestion type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionType. + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionType(); + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return for each suggestion
+     * type.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + int getMaxSuggestions(); + } + + /** + * + * + *
+   * Specification of each suggestion type.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec} + */ + public static final class SuggestionTypeSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + SuggestionTypeSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SuggestionTypeSpec"); + } + + // Use SuggestionTypeSpec.newBuilder() to construct. + private SuggestionTypeSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SuggestionTypeSpec() { + suggestionType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder.class); + } + + public static final int SUGGESTION_TYPE_FIELD_NUMBER = 1; + private int suggestionType_ = 0; + + /** + * + * + *
+     * Optional. Suggestion type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionType. + */ + @java.lang.Override + public int getSuggestionTypeValue() { + return suggestionType_; + } + + /** + * + * + *
+     * Optional. Suggestion type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionType() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType.forNumber( + suggestionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + .UNRECOGNIZED + : result; + } + + public static final int MAX_SUGGESTIONS_FIELD_NUMBER = 2; + private int maxSuggestions_ = 0; + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return for each suggestion
+     * type.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + 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 (suggestionType_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + .SUGGESTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, suggestionType_); + } + if (maxSuggestions_ != 0) { + output.writeInt32(2, maxSuggestions_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (suggestionType_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + .SUGGESTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, suggestionType_); + } + if (maxSuggestions_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxSuggestions_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) obj; + + if (suggestionType_ != other.suggestionType_) return false; + if (getMaxSuggestions() != other.getMaxSuggestions()) 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) + SUGGESTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + suggestionType_; + hash = (37 * hash) + MAX_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaxSuggestions(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Specification of each suggestion type.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestionType_ = 0; + maxSuggestions_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestionType_ = suggestionType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxSuggestions_ = maxSuggestions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .getDefaultInstance()) return this; + if (other.suggestionType_ != 0) { + setSuggestionTypeValue(other.getSuggestionTypeValue()); + } + if (other.getMaxSuggestions() != 0) { + setMaxSuggestions(other.getMaxSuggestions()); + } + 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: + { + suggestionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxSuggestions_ = input.readInt32(); + 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 suggestionType_ = 0; + + /** + * + * + *
+       * Optional. Suggestion type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionType. + */ + @java.lang.Override + public int getSuggestionTypeValue() { + return suggestionType_; + } + + /** + * + * + *
+       * Optional. Suggestion type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for suggestionType to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTypeValue(int value) { + suggestionType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Suggestion type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionType() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + .forNumber(suggestionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Suggestion type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionType to set. + * @return This builder for chaining. + */ + public Builder setSuggestionType( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + suggestionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Suggestion type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionType() { + bitField0_ = (bitField0_ & ~0x00000001); + suggestionType_ = 0; + onChanged(); + return this; + } + + private int maxSuggestions_; + + /** + * + * + *
+       * Optional. Maximum number of suggestions to return for each suggestion
+       * type.
+       * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + /** + * + * + *
+       * Optional. Maximum number of suggestions to return for each suggestion
+       * type.
+       * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSuggestions to set. + * @return This builder for chaining. + */ + public Builder setMaxSuggestions(int value) { + + maxSuggestions_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Maximum number of suggestions to return for each suggestion
+       * type.
+       * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSuggestions() { + bitField0_ = (bitField0_ & ~0x00000002); + maxSuggestions_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionTypeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int COMPLETION_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object completionConfig_ = ""; + + /** + * + * + *
+   * Required. The completion_config of the parent dataStore or engine resource
+   * name for which the completion is performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+   * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + @java.lang.Override + public java.lang.String getCompletionConfig() { + java.lang.Object ref = completionConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The completion_config of the parent dataStore or engine resource
+   * name for which the completion is performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+   * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompletionConfigBytes() { + java.lang.Object ref = completionConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   *
+   * The query can not be empty for most of the suggestion types. If it is
+   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+   * be an empty string. The is called "zero prefix" feature, which returns
+   * user's recently searched queries given the empty query.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   *
+   * The query can not be empty for most of the suggestion types. If it is
+   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+   * be an empty string. The is called "zero prefix" feature, which returns
+   * user's recently searched queries given the empty query.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryModel_ = ""; + + /** + * + * + *
+   * Specifies the autocomplete query model, which only applies to the QUERY
+   * SuggestionType. This overrides any model specified in the Configuration >
+   * Autocomplete section of the Cloud console. Currently supported values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * + * @return The queryModel. + */ + @java.lang.Override + public java.lang.String getQueryModel() { + java.lang.Object ref = queryModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryModel_ = s; + return s; + } + } + + /** + * + * + *
+   * Specifies the autocomplete query model, which only applies to the QUERY
+   * SuggestionType. This overrides any model specified in the Configuration >
+   * Autocomplete section of the Cloud console. Currently supported values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * + * @return The bytes for queryModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryModelBytes() { + java.lang.Object ref = queryModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 9; + private com.google.cloud.discoveryengine.v1.UserInfo userInfo_; + + /** + * + * + *
+   * Optional. Information about the end user.
+   *
+   * This should be the same identifier information as
+   * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+   * and
+   * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Information about the end user.
+   *
+   * This should be the same identifier information as
+   * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+   * and
+   * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() + : userInfo_; + } + + /** + * + * + *
+   * Optional. Information about the end user.
+   *
+   * This should be the same identifier information as
+   * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+   * and
+   * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() + : userInfo_; + } + + public static final int INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER = 5; + private boolean includeTailSuggestions_ = false; + + /** + * + * + *
+   * Indicates if tail suggestions should be returned if there are no
+   * suggestions that match the full query. Even if set to true, if there are
+   * suggestions that match the full query, those are returned and no
+   * tail suggestions are returned.
+   * 
+ * + * bool include_tail_suggestions = 5; + * + * @return The includeTailSuggestions. + */ + @java.lang.Override + public boolean getIncludeTailSuggestions() { + return includeTailSuggestions_; + } + + public static final int BOOST_SPEC_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boostSpec_; + + /** + * + * + *
+   * Optional. Specification to boost suggestions matching the condition.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Specification to boost suggestions matching the condition.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
+   * Optional. Specification to boost suggestions matching the condition.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + + public static final int SUGGESTION_TYPES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList suggestionTypes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType> + suggestionTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType>() { + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + convert(int from) { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionType.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + .UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the suggestionTypes. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType> + getSuggestionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType>( + suggestionTypes_, suggestionTypes_converter_); + } + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of suggestionTypes. + */ + @java.lang.Override + public int getSuggestionTypesCount() { + return suggestionTypes_.size(); + } + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The suggestionTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionTypes(int index) { + return suggestionTypes_converter_.convert(suggestionTypes_.getInt(index)); + } + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for suggestionTypes. + */ + @java.lang.Override + public java.util.List getSuggestionTypesValueList() { + return suggestionTypes_; + } + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suggestionTypes at the given index. + */ + @java.lang.Override + public int getSuggestionTypesValue(int index) { + return suggestionTypes_.getInt(index); + } + + private int suggestionTypesMemoizedSerializedSize; + + public static final int SUGGESTION_TYPE_SPECS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + suggestionTypeSpecs_; + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + getSuggestionTypeSpecsList() { + return suggestionTypeSpecs_; + } + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + getSuggestionTypeSpecsOrBuilderList() { + return suggestionTypeSpecs_; + } + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSuggestionTypeSpecsCount() { + return suggestionTypeSpecs_.size(); + } + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getSuggestionTypeSpecs(int index) { + return suggestionTypeSpecs_.get(index); + } + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder + getSuggestionTypeSpecsOrBuilder(int index) { + return suggestionTypeSpecs_.get(index); + } + + public static final int EXPERIMENT_IDS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList experimentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the experimentIds. + */ + public com.google.protobuf.ProtocolStringList getExperimentIdsList() { + return experimentIds_; + } + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of experimentIds. + */ + public int getExperimentIdsCount() { + return experimentIds_.size(); + } + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The experimentIds at the given index. + */ + public java.lang.String getExperimentIds(int index) { + return experimentIds_.get(index); + } + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the experimentIds at the given index. + */ + public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { + return experimentIds_.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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, completionConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryModel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, queryModel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, userPseudoId_); + } + if (includeTailSuggestions_ != false) { + output.writeBool(5, includeTailSuggestions_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getBoostSpec()); + } + if (getSuggestionTypesList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(suggestionTypesMemoizedSerializedSize); + } + for (int i = 0; i < suggestionTypes_.size(); i++) { + output.writeEnumNoTag(suggestionTypes_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getUserInfo()); + } + for (int i = 0; i < suggestionTypeSpecs_.size(); i++) { + output.writeMessage(10, suggestionTypeSpecs_.get(i)); + } + for (int i = 0; i < experimentIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, experimentIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, completionConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryModel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, queryModel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, userPseudoId_); + } + if (includeTailSuggestions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeTailSuggestions_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBoostSpec()); + } + { + int dataSize = 0; + for (int i = 0; i < suggestionTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(suggestionTypes_.getInt(i)); + } + size += dataSize; + if (!getSuggestionTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + suggestionTypesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUserInfo()); + } + for (int i = 0; i < suggestionTypeSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, suggestionTypeSpecs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < experimentIds_.size(); i++) { + dataSize += computeStringSizeNoTag(experimentIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getExperimentIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) obj; + + if (!getCompletionConfig().equals(other.getCompletionConfig())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getQueryModel().equals(other.getQueryModel())) return false; + if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } + if (getIncludeTailSuggestions() != other.getIncludeTailSuggestions()) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } + if (!suggestionTypes_.equals(other.suggestionTypes_)) return false; + if (!getSuggestionTypeSpecsList().equals(other.getSuggestionTypeSpecsList())) return false; + if (!getExperimentIdsList().equals(other.getExperimentIdsList())) 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) + COMPLETION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCompletionConfig().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + QUERY_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getQueryModel().hashCode(); + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + hash = (37 * hash) + INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeTailSuggestions()); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } + if (getSuggestionTypesCount() > 0) { + hash = (37 * hash) + SUGGESTION_TYPES_FIELD_NUMBER; + hash = (53 * hash) + suggestionTypes_.hashCode(); + } + if (getSuggestionTypeSpecsCount() > 0) { + hash = (37 * hash) + SUGGESTION_TYPE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionTypeSpecsList().hashCode(); + } + if (getExperimentIdsCount() > 0) { + hash = (37 * hash) + EXPERIMENT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getExperimentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1.CompletionService.AdvancedCompleteQuery]
+   * method.
+   * .
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserInfoFieldBuilder(); + internalGetBoostSpecFieldBuilder(); + internalGetSuggestionTypeSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + completionConfig_ = ""; + query_ = ""; + queryModel_ = ""; + userPseudoId_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + includeTailSuggestions_ = false; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + suggestionTypes_ = emptyIntList(); + if (suggestionTypeSpecsBuilder_ == null) { + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + } else { + suggestionTypeSpecs_ = null; + suggestionTypeSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + experimentIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest result) { + if (suggestionTypeSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + suggestionTypeSpecs_ = java.util.Collections.unmodifiableList(suggestionTypeSpecs_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.suggestionTypeSpecs_ = suggestionTypeSpecs_; + } else { + result.suggestionTypeSpecs_ = suggestionTypeSpecsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.completionConfig_ = completionConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryModel_ = queryModel_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.includeTailSuggestions_ = includeTailSuggestions_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + suggestionTypes_.makeImmutable(); + result.suggestionTypes_ = suggestionTypes_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + experimentIds_.makeImmutable(); + result.experimentIds_ = experimentIds_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.getDefaultInstance()) + return this; + if (!other.getCompletionConfig().isEmpty()) { + completionConfig_ = other.completionConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQueryModel().isEmpty()) { + queryModel_ = other.queryModel_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (other.getIncludeTailSuggestions() != false) { + setIncludeTailSuggestions(other.getIncludeTailSuggestions()); + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + if (!other.suggestionTypes_.isEmpty()) { + if (suggestionTypes_.isEmpty()) { + suggestionTypes_ = other.suggestionTypes_; + suggestionTypes_.makeImmutable(); + bitField0_ |= 0x00000080; + } else { + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addAll(other.suggestionTypes_); + } + onChanged(); + } + if (suggestionTypeSpecsBuilder_ == null) { + if (!other.suggestionTypeSpecs_.isEmpty()) { + if (suggestionTypeSpecs_.isEmpty()) { + suggestionTypeSpecs_ = other.suggestionTypeSpecs_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.addAll(other.suggestionTypeSpecs_); + } + onChanged(); + } + } else { + if (!other.suggestionTypeSpecs_.isEmpty()) { + if (suggestionTypeSpecsBuilder_.isEmpty()) { + suggestionTypeSpecsBuilder_.dispose(); + suggestionTypeSpecsBuilder_ = null; + suggestionTypeSpecs_ = other.suggestionTypeSpecs_; + bitField0_ = (bitField0_ & ~0x00000100); + suggestionTypeSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSuggestionTypeSpecsFieldBuilder() + : null; + } else { + suggestionTypeSpecsBuilder_.addAllMessages(other.suggestionTypeSpecs_); + } + } + } + if (!other.experimentIds_.isEmpty()) { + if (experimentIds_.isEmpty()) { + experimentIds_ = other.experimentIds_; + bitField0_ |= 0x00000200; + } else { + ensureExperimentIdsIsMutable(); + experimentIds_.addAll(other.experimentIds_); + } + 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: + { + completionConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + queryModel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + includeTailSuggestions_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: + { + int tmpRaw = input.readEnum(); + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addInt(tmpRaw); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSuggestionTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + suggestionTypes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 58 + case 74: + { + input.readMessage( + internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 74 + case 82: + { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.parser(), + extensionRegistry); + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(m); + } else { + suggestionTypeSpecsBuilder_.addMessage(m); + } + break; + } // case 82 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExperimentIdsIsMutable(); + experimentIds_.add(s); + break; + } // case 114 + 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 completionConfig_ = ""; + + /** + * + * + *
+     * Required. The completion_config of the parent dataStore or engine resource
+     * name for which the completion is performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+     * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + public java.lang.String getCompletionConfig() { + java.lang.Object ref = completionConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The completion_config of the parent dataStore or engine resource
+     * name for which the completion is performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+     * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + public com.google.protobuf.ByteString getCompletionConfigBytes() { + java.lang.Object ref = completionConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The completion_config of the parent dataStore or engine resource
+     * name for which the completion is performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+     * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The completionConfig to set. + * @return This builder for chaining. + */ + public Builder setCompletionConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + completionConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The completion_config of the parent dataStore or engine resource
+     * name for which the completion is performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+     * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCompletionConfig() { + completionConfig_ = getDefaultInstance().getCompletionConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The completion_config of the parent dataStore or engine resource
+     * name for which the completion is performed, such as
+     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+     * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for completionConfig to set. + * @return This builder for chaining. + */ + public Builder setCompletionConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + completionConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + + /** + * + * + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     *
+     * The query can not be empty for most of the suggestion types. If it is
+     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+     * be an empty string. The is called "zero prefix" feature, which returns
+     * user's recently searched queries given the empty query.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     *
+     * The query can not be empty for most of the suggestion types. If it is
+     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+     * be an empty string. The is called "zero prefix" feature, which returns
+     * user's recently searched queries given the empty query.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     *
+     * The query can not be empty for most of the suggestion types. If it is
+     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+     * be an empty string. The is called "zero prefix" feature, which returns
+     * user's recently searched queries given the empty query.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     *
+     * The query can not be empty for most of the suggestion types. If it is
+     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+     * be an empty string. The is called "zero prefix" feature, which returns
+     * user's recently searched queries given the empty query.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The typeahead input used to fetch suggestions. Maximum length is
+     * 128 characters.
+     *
+     * The query can not be empty for most of the suggestion types. If it is
+     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+     * be an empty string. The is called "zero prefix" feature, which returns
+     * user's recently searched queries given the empty query.
+     * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object queryModel_ = ""; + + /** + * + * + *
+     * Specifies the autocomplete query model, which only applies to the QUERY
+     * SuggestionType. This overrides any model specified in the Configuration >
+     * Autocomplete section of the Cloud console. Currently supported values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * + * @return The queryModel. + */ + public java.lang.String getQueryModel() { + java.lang.Object ref = queryModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Specifies the autocomplete query model, which only applies to the QUERY
+     * SuggestionType. This overrides any model specified in the Configuration >
+     * Autocomplete section of the Cloud console. Currently supported values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * + * @return The bytes for queryModel. + */ + public com.google.protobuf.ByteString getQueryModelBytes() { + java.lang.Object ref = queryModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Specifies the autocomplete query model, which only applies to the QUERY
+     * SuggestionType. This overrides any model specified in the Configuration >
+     * Autocomplete section of the Cloud console. Currently supported values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * + * @param value The queryModel to set. + * @return This builder for chaining. + */ + public Builder setQueryModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the autocomplete query model, which only applies to the QUERY
+     * SuggestionType. This overrides any model specified in the Configuration >
+     * Autocomplete section of the Cloud console. Currently supported values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * + * @return This builder for chaining. + */ + public Builder clearQueryModel() { + queryModel_ = getDefaultInstance().getQueryModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Specifies the autocomplete query model, which only applies to the QUERY
+     * SuggestionType. This overrides any model specified in the Configuration >
+     * Autocomplete section of the Cloud console. Currently supported values:
+     *
+     * * `document` - Using suggestions generated from user-imported documents.
+     * * `search-history` - Using suggestions generated from the past history of
+     * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+     * API calls. Do not use it when there is no traffic for Search API.
+     * * `user-event` - Using suggestions generated from user-imported search
+     * events.
+     * * `document-completable` - Using suggestions taken directly from
+     * user-imported document fields marked as completable.
+     *
+     * Default values:
+     *
+     * * `document` is the default model for regular dataStores.
+     * * `search-history` is the default model for site search dataStores.
+     * 
+ * + * string query_model = 3; + * + * @param value The bytes for queryModel to set. + * @return This builder for chaining. + */ + public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
+     *
+     * This field should NOT have a fixed value such as `unknown_visitor`.
+     *
+     * This should be the same identifier as
+     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+     * and
+     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+     *
+     * The field must be a UTF-8 encoded string with a length limit of 128
+     * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserInfo, + com.google.cloud.discoveryengine.v1.UserInfo.Builder, + com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> + userInfoBuilder_; + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + public com.google.cloud.discoveryengine.v1.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() + : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo( + com.google.cloud.discoveryengine.v1.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + if (userInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUserInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.getDefaultInstance() + : userInfo_; + } + } + + /** + * + * + *
+     * Optional. Information about the end user.
+     *
+     * This should be the same identifier information as
+     * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+     * and
+     * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserInfo, + com.google.cloud.discoveryengine.v1.UserInfo.Builder, + com.google.cloud.discoveryengine.v1.UserInfoOrBuilder> + internalGetUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserInfo, + com.google.cloud.discoveryengine.v1.UserInfo.Builder, + com.google.cloud.discoveryengine.v1.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + + private boolean includeTailSuggestions_; + + /** + * + * + *
+     * Indicates if tail suggestions should be returned if there are no
+     * suggestions that match the full query. Even if set to true, if there are
+     * suggestions that match the full query, those are returned and no
+     * tail suggestions are returned.
+     * 
+ * + * bool include_tail_suggestions = 5; + * + * @return The includeTailSuggestions. + */ + @java.lang.Override + public boolean getIncludeTailSuggestions() { + return includeTailSuggestions_; + } + + /** + * + * + *
+     * Indicates if tail suggestions should be returned if there are no
+     * suggestions that match the full query. Even if set to true, if there are
+     * suggestions that match the full query, those are returned and no
+     * tail suggestions are returned.
+     * 
+ * + * bool include_tail_suggestions = 5; + * + * @param value The includeTailSuggestions to set. + * @return This builder for chaining. + */ + public Builder setIncludeTailSuggestions(boolean value) { + + includeTailSuggestions_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates if tail suggestions should be returned if there are no
+     * suggestions that match the full query. Even if set to true, if there are
+     * suggestions that match the full query, those are returned and no
+     * tail suggestions are returned.
+     * 
+ * + * bool include_tail_suggestions = 5; + * + * @return This builder for chaining. + */ + public Builder clearIncludeTailSuggestions() { + bitField0_ = (bitField0_ & ~0x00000020); + includeTailSuggestions_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder + builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000040); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetBoostSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + } + + /** + * + * + *
+     * Optional. Specification to boost suggestions matching the condition.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpecOrBuilder> + internalGetBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .BoostSpecOrBuilder>(getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + + private com.google.protobuf.Internal.IntList suggestionTypes_ = emptyIntList(); + + private void ensureSuggestionTypesIsMutable() { + if (!suggestionTypes_.isModifiable()) { + suggestionTypes_ = makeMutableCopy(suggestionTypes_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the suggestionTypes. + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType> + getSuggestionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType>( + suggestionTypes_, suggestionTypes_converter_); + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of suggestionTypes. + */ + public int getSuggestionTypesCount() { + return suggestionTypes_.size(); + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The suggestionTypes at the given index. + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionTypes(int index) { + return suggestionTypes_converter_.convert(suggestionTypes_.getInt(index)); + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The suggestionTypes to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTypes( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypesIsMutable(); + suggestionTypes_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionTypes to add. + * @return This builder for chaining. + */ + public Builder addSuggestionTypes( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The suggestionTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSuggestionTypes( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType> + values) { + ensureSuggestionTypesIsMutable(); + for (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType value : + values) { + suggestionTypes_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionTypes() { + suggestionTypes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for suggestionTypes. + */ + public java.util.List getSuggestionTypesValueList() { + suggestionTypes_.makeImmutable(); + return suggestionTypes_; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suggestionTypes at the given index. + */ + public int getSuggestionTypesValue(int index) { + return suggestionTypes_.getInt(index); + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for suggestionTypes to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTypesValue(int index, int value) { + ensureSuggestionTypesIsMutable(); + suggestionTypes_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for suggestionTypes to add. + * @return This builder for chaining. + */ + public Builder addSuggestionTypesValue(int value) { + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Suggestion types to return. If empty or unspecified, query
+     * suggestions are returned. Only one suggestion type is supported at the
+     * moment.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for suggestionTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSuggestionTypesValue(java.lang.Iterable values) { + ensureSuggestionTypesIsMutable(); + for (int value : values) { + suggestionTypes_.addInt(value); + } + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + + private void ensureSuggestionTypeSpecsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + suggestionTypeSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec>(suggestionTypeSpecs_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + suggestionTypeSpecsBuilder_; + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + getSuggestionTypeSpecsList() { + if (suggestionTypeSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestionTypeSpecs_); + } else { + return suggestionTypeSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSuggestionTypeSpecsCount() { + if (suggestionTypeSpecsBuilder_ == null) { + return suggestionTypeSpecs_.size(); + } else { + return suggestionTypeSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getSuggestionTypeSpecs(int index) { + if (suggestionTypeSpecsBuilder_ == null) { + return suggestionTypeSpecs_.get(index); + } else { + return suggestionTypeSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec value) { + if (suggestionTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.set(index, value); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec.Builder + builderForValue) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSuggestionTypeSpecs( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec value) { + if (suggestionTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(value); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec value) { + if (suggestionTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(index, value); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSuggestionTypeSpecs( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec.Builder + builderForValue) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(builderForValue.build()); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec.Builder + builderForValue) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSuggestionTypeSpecs( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpec> + values) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestionTypeSpecs_); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSuggestionTypeSpecs() { + if (suggestionTypeSpecsBuilder_ == null) { + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSuggestionTypeSpecs(int index) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.remove(index); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + getSuggestionTypeSpecsBuilder(int index) { + return internalGetSuggestionTypeSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder + getSuggestionTypeSpecsOrBuilder(int index) { + if (suggestionTypeSpecsBuilder_ == null) { + return suggestionTypeSpecs_.get(index); + } else { + return suggestionTypeSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + getSuggestionTypeSpecsOrBuilderList() { + if (suggestionTypeSpecsBuilder_ != null) { + return suggestionTypeSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestionTypeSpecs_); + } + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + addSuggestionTypeSpecsBuilder() { + return internalGetSuggestionTypeSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + addSuggestionTypeSpecsBuilder(int index) { + return internalGetSuggestionTypeSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Specification of each suggestion type.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder> + getSuggestionTypeSpecsBuilderList() { + return internalGetSuggestionTypeSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + internalGetSuggestionTypeSpecsFieldBuilder() { + if (suggestionTypeSpecsBuilder_ == null) { + suggestionTypeSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder>( + suggestionTypeSpecs_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + suggestionTypeSpecs_ = null; + } + return suggestionTypeSpecsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList experimentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExperimentIdsIsMutable() { + if (!experimentIds_.isModifiable()) { + experimentIds_ = new com.google.protobuf.LazyStringArrayList(experimentIds_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the experimentIds. + */ + public com.google.protobuf.ProtocolStringList getExperimentIdsList() { + experimentIds_.makeImmutable(); + return experimentIds_; + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of experimentIds. + */ + public int getExperimentIdsCount() { + return experimentIds_.size(); + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The experimentIds at the given index. + */ + public java.lang.String getExperimentIds(int index) { + return experimentIds_.get(index); + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the experimentIds at the given index. + */ + public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { + return experimentIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The experimentIds to set. + * @return This builder for chaining. + */ + public Builder setExperimentIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); + experimentIds_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The experimentIds to add. + * @return This builder for chaining. + */ + public Builder addExperimentIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); + experimentIds_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The experimentIds to add. + * @return This builder for chaining. + */ + public Builder addAllExperimentIds(java.lang.Iterable values) { + ensureExperimentIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, experimentIds_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExperimentIds() { + experimentIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Experiment ids for this request.
+     * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the experimentIds to add. + * @return This builder for chaining. + */ + public Builder addExperimentIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExperimentIdsIsMutable(); + experimentIds_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedCompleteQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequestOrBuilder.java new file mode 100644 index 000000000000..039865c1e2cc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryRequestOrBuilder.java @@ -0,0 +1,546 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/completion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface AdvancedCompleteQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The completion_config of the parent dataStore or engine resource
+   * name for which the completion is performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+   * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + java.lang.String getCompletionConfig(); + + /** + * + * + *
+   * Required. The completion_config of the parent dataStore or engine resource
+   * name for which the completion is performed, such as
+   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
+   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
+   * 
+ * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + com.google.protobuf.ByteString getCompletionConfigBytes(); + + /** + * + * + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   *
+   * The query can not be empty for most of the suggestion types. If it is
+   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+   * be an empty string. The is called "zero prefix" feature, which returns
+   * user's recently searched queries given the empty query.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
+   * Required. The typeahead input used to fetch suggestions. Maximum length is
+   * 128 characters.
+   *
+   * The query can not be empty for most of the suggestion types. If it is
+   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
+   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
+   * be an empty string. The is called "zero prefix" feature, which returns
+   * user's recently searched queries given the empty query.
+   * 
+ * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
+   * Specifies the autocomplete query model, which only applies to the QUERY
+   * SuggestionType. This overrides any model specified in the Configuration >
+   * Autocomplete section of the Cloud console. Currently supported values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * + * @return The queryModel. + */ + java.lang.String getQueryModel(); + + /** + * + * + *
+   * Specifies the autocomplete query model, which only applies to the QUERY
+   * SuggestionType. This overrides any model specified in the Configuration >
+   * Autocomplete section of the Cloud console. Currently supported values:
+   *
+   * * `document` - Using suggestions generated from user-imported documents.
+   * * `search-history` - Using suggestions generated from the past history of
+   * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
+   * API calls. Do not use it when there is no traffic for Search API.
+   * * `user-event` - Using suggestions generated from user-imported search
+   * events.
+   * * `document-completable` - Using suggestions taken directly from
+   * user-imported document fields marked as completable.
+   *
+   * Default values:
+   *
+   * * `document` is the default model for regular dataStores.
+   * * `search-history` is the default model for site search dataStores.
+   * 
+ * + * string query_model = 3; + * + * @return The bytes for queryModel. + */ + com.google.protobuf.ByteString getQueryModelBytes(); + + /** + * + * + *
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + java.lang.String getUserPseudoId(); + + /** + * + * + *
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
+   *
+   * This field should NOT have a fixed value such as `unknown_visitor`.
+   *
+   * This should be the same identifier as
+   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id]
+   * and
+   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id].
+   *
+   * The field must be a UTF-8 encoded string with a length limit of 128
+   * 
+ * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + com.google.protobuf.ByteString getUserPseudoIdBytes(); + + /** + * + * + *
+   * Optional. Information about the end user.
+   *
+   * This should be the same identifier information as
+   * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+   * and
+   * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + + /** + * + * + *
+   * Optional. Information about the end user.
+   *
+   * This should be the same identifier information as
+   * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+   * and
+   * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + com.google.cloud.discoveryengine.v1.UserInfo getUserInfo(); + + /** + * + * + *
+   * Optional. Information about the end user.
+   *
+   * This should be the same identifier information as
+   * [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info]
+   * and
+   * [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.UserInfoOrBuilder getUserInfoOrBuilder(); + + /** + * + * + *
+   * Indicates if tail suggestions should be returned if there are no
+   * suggestions that match the full query. Even if set to true, if there are
+   * suggestions that match the full query, those are returned and no
+   * tail suggestions are returned.
+   * 
+ * + * bool include_tail_suggestions = 5; + * + * @return The includeTailSuggestions. + */ + boolean getIncludeTailSuggestions(); + + /** + * + * + *
+   * Optional. Specification to boost suggestions matching the condition.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + + /** + * + * + *
+   * Optional. Specification to boost suggestions matching the condition.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec getBoostSpec(); + + /** + * + * + *
+   * Optional. Specification to boost suggestions matching the condition.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder(); + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the suggestionTypes. + */ + java.util.List + getSuggestionTypesList(); + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of suggestionTypes. + */ + int getSuggestionTypesCount(); + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The suggestionTypes at the given index. + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionTypes(int index); + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for suggestionTypes. + */ + java.util.List getSuggestionTypesValueList(); + + /** + * + * + *
+   * Optional. Suggestion types to return. If empty or unspecified, query
+   * suggestions are returned. Only one suggestion type is supported at the
+   * moment.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suggestionTypes at the given index. + */ + int getSuggestionTypesValue(int index); + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + getSuggestionTypeSpecsList(); + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getSuggestionTypeSpecs(int index); + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSuggestionTypeSpecsCount(); + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + getSuggestionTypeSpecsOrBuilderList(); + + /** + * + * + *
+   * Optional. Specification of each suggestion type.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.SuggestionTypeSpecOrBuilder + getSuggestionTypeSpecsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the experimentIds. + */ + java.util.List getExperimentIdsList(); + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of experimentIds. + */ + int getExperimentIdsCount(); + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The experimentIds at the given index. + */ + java.lang.String getExperimentIds(int index); + + /** + * + * + *
+   * Optional. Experiment ids for this request.
+   * 
+ * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the experimentIds at the given index. + */ + com.google.protobuf.ByteString getExperimentIdsBytes(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponse.java new file mode 100644 index 000000000000..d9614a5a1778 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponse.java @@ -0,0 +1,10056 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/completion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response message for
+ * [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1.CompletionService.AdvancedCompleteQuery]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse} + */ +@com.google.protobuf.Generated +public final class AdvancedCompleteQueryResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) + AdvancedCompleteQueryResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AdvancedCompleteQueryResponse"); + } + + // Use AdvancedCompleteQueryResponse.newBuilder() to construct. + private AdvancedCompleteQueryResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdvancedCompleteQueryResponse() { + querySuggestions_ = java.util.Collections.emptyList(); + peopleSuggestions_ = java.util.Collections.emptyList(); + contentSuggestions_ = java.util.Collections.emptyList(); + recentSearchSuggestions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.Builder.class); + } + + public interface QuerySuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + java.lang.String getSuggestion(); + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @return A list containing the completableFieldPaths. + */ + java.util.List getCompletableFieldPathsList(); + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @return The count of completableFieldPaths. + */ + int getCompletableFieldPathsCount(); + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index of the element to return. + * @return The completableFieldPaths at the given index. + */ + java.lang.String getCompletableFieldPaths(int index); + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the completableFieldPaths at the given index. + */ + com.google.protobuf.ByteString getCompletableFieldPathsBytes(int index); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @return A list containing the dataStore. + */ + java.util.List getDataStoreList(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @return The count of dataStore. + */ + int getDataStoreCount(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @param index The index of the element to return. + * @return The dataStore at the given index. + */ + java.lang.String getDataStore(int index); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @param index The index of the value to return. + * @return The bytes of the dataStore at the given index. + */ + com.google.protobuf.ByteString getDataStoreBytes(int index); + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 4; + * + * @return The score. + */ + double getScore(); + } + + /** + * + * + *
+   * Suggestions as search queries.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion} + */ + public static final class QuerySuggestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) + QuerySuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "QuerySuggestion"); + } + + // Use QuerySuggestion.newBuilder() to construct. + private QuerySuggestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QuerySuggestion() { + suggestion_ = ""; + completableFieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dataStore_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .Builder.class); + } + + public static final int SUGGESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestion_ = ""; + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + @java.lang.Override + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPLETABLE_FIELD_PATHS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @return A list containing the completableFieldPaths. + */ + public com.google.protobuf.ProtocolStringList getCompletableFieldPathsList() { + return completableFieldPaths_; + } + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @return The count of completableFieldPaths. + */ + public int getCompletableFieldPathsCount() { + return completableFieldPaths_.size(); + } + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index of the element to return. + * @return The completableFieldPaths at the given index. + */ + public java.lang.String getCompletableFieldPaths(int index) { + return completableFieldPaths_.get(index); + } + + /** + * + * + *
+     * The unique document field paths that serve as the source of this
+     * suggestion if it was generated from completable fields.
+     *
+     * This field is only populated for the document-completable model.
+     * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the completableFieldPaths at the given index. + */ + public com.google.protobuf.ByteString getCompletableFieldPathsBytes(int index) { + return completableFieldPaths_.getByteString(index); + } + + public static final int DATA_STORE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataStore_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @return A list containing the dataStore. + */ + public com.google.protobuf.ProtocolStringList getDataStoreList() { + return dataStore_; + } + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @return The count of dataStore. + */ + public int getDataStoreCount() { + return dataStore_.size(); + } + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @param index The index of the element to return. + * @return The dataStore at the given index. + */ + public java.lang.String getDataStore(int index) { + return dataStore_.get(index); + } + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * repeated string data_store = 3; + * + * @param index The index of the value to return. + * @return The bytes of the dataStore at the given index. + */ + public com.google.protobuf.ByteString getDataStoreBytes(int index) { + return dataStore_.getByteString(index); + } + + public static final int SCORE_FIELD_NUMBER = 4; + private double score_ = 0D; + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 4; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, suggestion_); + } + for (int i = 0; i < completableFieldPaths_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, completableFieldPaths_.getRaw(i)); + } + for (int i = 0; i < dataStore_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataStore_.getRaw(i)); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(4, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suggestion_); + } + { + int dataSize = 0; + for (int i = 0; i < completableFieldPaths_.size(); i++) { + dataSize += computeStringSizeNoTag(completableFieldPaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompletableFieldPathsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < dataStore_.size(); i++) { + dataSize += computeStringSizeNoTag(dataStore_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataStoreList().size(); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) obj; + + if (!getSuggestion().equals(other.getSuggestion())) return false; + if (!getCompletableFieldPathsList().equals(other.getCompletableFieldPathsList())) + return false; + if (!getDataStoreList().equals(other.getDataStoreList())) return false; + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) 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) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + if (getCompletableFieldPathsCount() > 0) { + hash = (37 * hash) + COMPLETABLE_FIELD_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getCompletableFieldPathsList().hashCode(); + } + if (getDataStoreCount() > 0) { + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreList().hashCode(); + } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Suggestions as search queries.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestion_ = ""; + completableFieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dataStore_ = com.google.protobuf.LazyStringArrayList.emptyList(); + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestion_ = suggestion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + completableFieldPaths_.makeImmutable(); + result.completableFieldPaths_ = completableFieldPaths_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + dataStore_.makeImmutable(); + result.dataStore_ = dataStore_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.score_ = score_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.completableFieldPaths_.isEmpty()) { + if (completableFieldPaths_.isEmpty()) { + completableFieldPaths_ = other.completableFieldPaths_; + bitField0_ |= 0x00000002; + } else { + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.addAll(other.completableFieldPaths_); + } + onChanged(); + } + if (!other.dataStore_.isEmpty()) { + if (dataStore_.isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000004; + } else { + ensureDataStoreIsMutable(); + dataStore_.addAll(other.dataStore_); + } + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } + 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: + { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataStoreIsMutable(); + dataStore_.add(s); + break; + } // case 26 + case 33: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + 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 suggestion_ = ""; + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuggestion() { + suggestion_ = getDefaultInstance().getSuggestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The bytes for suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList completableFieldPaths_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCompletableFieldPathsIsMutable() { + if (!completableFieldPaths_.isModifiable()) { + completableFieldPaths_ = + new com.google.protobuf.LazyStringArrayList(completableFieldPaths_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @return A list containing the completableFieldPaths. + */ + public com.google.protobuf.ProtocolStringList getCompletableFieldPathsList() { + completableFieldPaths_.makeImmutable(); + return completableFieldPaths_; + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @return The count of completableFieldPaths. + */ + public int getCompletableFieldPathsCount() { + return completableFieldPaths_.size(); + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index of the element to return. + * @return The completableFieldPaths at the given index. + */ + public java.lang.String getCompletableFieldPaths(int index) { + return completableFieldPaths_.get(index); + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index of the value to return. + * @return The bytes of the completableFieldPaths at the given index. + */ + public com.google.protobuf.ByteString getCompletableFieldPathsBytes(int index) { + return completableFieldPaths_.getByteString(index); + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @param index The index to set the value at. + * @param value The completableFieldPaths to set. + * @return This builder for chaining. + */ + public Builder setCompletableFieldPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @param value The completableFieldPaths to add. + * @return This builder for chaining. + */ + public Builder addCompletableFieldPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @param values The completableFieldPaths to add. + * @return This builder for chaining. + */ + public Builder addAllCompletableFieldPaths(java.lang.Iterable values) { + ensureCompletableFieldPathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, completableFieldPaths_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @return This builder for chaining. + */ + public Builder clearCompletableFieldPaths() { + completableFieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * The unique document field paths that serve as the source of this
+       * suggestion if it was generated from completable fields.
+       *
+       * This field is only populated for the document-completable model.
+       * 
+ * + * repeated string completable_field_paths = 2; + * + * @param value The bytes of the completableFieldPaths to add. + * @return This builder for chaining. + */ + public Builder addCompletableFieldPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompletableFieldPathsIsMutable(); + completableFieldPaths_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dataStore_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDataStoreIsMutable() { + if (!dataStore_.isModifiable()) { + dataStore_ = new com.google.protobuf.LazyStringArrayList(dataStore_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @return A list containing the dataStore. + */ + public com.google.protobuf.ProtocolStringList getDataStoreList() { + dataStore_.makeImmutable(); + return dataStore_; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @return The count of dataStore. + */ + public int getDataStoreCount() { + return dataStore_.size(); + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @param index The index of the element to return. + * @return The dataStore at the given index. + */ + public java.lang.String getDataStore(int index) { + return dataStore_.get(index); + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @param index The index of the value to return. + * @return The bytes of the dataStore at the given index. + */ + public com.google.protobuf.ByteString getDataStoreBytes(int index) { + return dataStore_.getByteString(index); + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @param index The index to set the value at. + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreIsMutable(); + dataStore_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @param value The dataStore to add. + * @return This builder for chaining. + */ + public Builder addDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreIsMutable(); + dataStore_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @param values The dataStore to add. + * @return This builder for chaining. + */ + public Builder addAllDataStore(java.lang.Iterable values) { + ensureDataStoreIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStore_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * repeated string data_store = 3; + * + * @param value The bytes of the dataStore to add. + * @return This builder for chaining. + */ + public Builder addDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataStoreIsMutable(); + dataStore_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private double score_; + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 4; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 4; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 4; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000008); + score_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuerySuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PersonSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + java.lang.String getSuggestion(); + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The type of the person.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return The enum numeric value on the wire for personType. + */ + int getPersonTypeValue(); + + /** + * + * + *
+     * The type of the person.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return The personType. + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType + getPersonType(); + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields is
+     * populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return Whether the document field is set. + */ + boolean hasDocument(); + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields is
+     * populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return The document. + */ + com.google.cloud.discoveryengine.v1.Document getDocument(); + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields is
+     * populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + java.lang.String getDataStore(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 6; + * + * @return The score. + */ + double getScore(); + + /** + * + * + *
+     * The photo uri of the person suggestion.
+     * 
+ * + * string display_photo_uri = 7; + * + * @return The displayPhotoUri. + */ + java.lang.String getDisplayPhotoUri(); + + /** + * + * + *
+     * The photo uri of the person suggestion.
+     * 
+ * + * string display_photo_uri = 7; + * + * @return The bytes for displayPhotoUri. + */ + com.google.protobuf.ByteString getDisplayPhotoUriBytes(); + + /** + * + * + *
+     * The destination uri of the person suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + java.lang.String getDestinationUri(); + + /** + * + * + *
+     * The destination uri of the person suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + com.google.protobuf.ByteString getDestinationUriBytes(); + } + + /** + * + * + *
+   * Suggestions as people.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion} + */ + public static final class PersonSuggestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) + PersonSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PersonSuggestion"); + } + + // Use PersonSuggestion.newBuilder() to construct. + private PersonSuggestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PersonSuggestion() { + suggestion_ = ""; + personType_ = 0; + dataStore_ = ""; + displayPhotoUri_ = ""; + destinationUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder.class); + } + + /** + * + * + *
+     * Classifies the person by identity source and entity kind; GOOGLE_GROUP
+     * takes precedence for groups regardless of their identity source.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType} + */ + public enum PersonType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value.
+       * 
+ * + * PERSON_TYPE_UNSPECIFIED = 0; + */ + PERSON_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The suggestion is from a GOOGLE_IDENTITY source.
+       * 
+ * + * CLOUD_IDENTITY = 1; + */ + CLOUD_IDENTITY(1), + /** + * + * + *
+       * The suggestion is from a THIRD_PARTY_IDENTITY source.
+       * 
+ * + * THIRD_PARTY_IDENTITY = 2; + */ + THIRD_PARTY_IDENTITY(2), + /** + * + * + *
+       * The suggestion is a group (e.g. a Google Group), not an individual.
+       * 
+ * + * GOOGLE_GROUP = 3; + */ + GOOGLE_GROUP(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PersonType"); + } + + /** + * + * + *
+       * Default value.
+       * 
+ * + * PERSON_TYPE_UNSPECIFIED = 0; + */ + public static final int PERSON_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The suggestion is from a GOOGLE_IDENTITY source.
+       * 
+ * + * CLOUD_IDENTITY = 1; + */ + public static final int CLOUD_IDENTITY_VALUE = 1; + + /** + * + * + *
+       * The suggestion is from a THIRD_PARTY_IDENTITY source.
+       * 
+ * + * THIRD_PARTY_IDENTITY = 2; + */ + public static final int THIRD_PARTY_IDENTITY_VALUE = 2; + + /** + * + * + *
+       * The suggestion is a group (e.g. a Google Group), not an individual.
+       * 
+ * + * GOOGLE_GROUP = 3; + */ + public static final int GOOGLE_GROUP_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 PersonType 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 PersonType forNumber(int value) { + switch (value) { + case 0: + return PERSON_TYPE_UNSPECIFIED; + case 1: + return CLOUD_IDENTITY; + case 2: + return THIRD_PARTY_IDENTITY; + case 3: + return GOOGLE_GROUP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PersonType findValueByNumber(int number) { + return PersonType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PersonType[] VALUES = values(); + + public static PersonType 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 PersonType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType) + } + + private int bitField0_; + public static final int SUGGESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestion_ = ""; + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + @java.lang.Override + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PERSON_TYPE_FIELD_NUMBER = 2; + private int personType_ = 0; + + /** + * + * + *
+     * The type of the person.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return The enum numeric value on the wire for personType. + */ + @java.lang.Override + public int getPersonTypeValue() { + return personType_; + } + + /** + * + * + *
+     * The type of the person.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return The personType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType + getPersonType() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType + result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType.forNumber(personType_); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType.UNRECOGNIZED + : result; + } + + public static final int DOCUMENT_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.Document document_; + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields is
+     * populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields is
+     * populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return The document. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Document getDocument() { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields is
+     * populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } + + public static final int DATA_STORE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + public static final int DISPLAY_PHOTO_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayPhotoUri_ = ""; + + /** + * + * + *
+     * The photo uri of the person suggestion.
+     * 
+ * + * string display_photo_uri = 7; + * + * @return The displayPhotoUri. + */ + @java.lang.Override + public java.lang.String getDisplayPhotoUri() { + java.lang.Object ref = displayPhotoUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayPhotoUri_ = s; + return s; + } + } + + /** + * + * + *
+     * The photo uri of the person suggestion.
+     * 
+ * + * string display_photo_uri = 7; + * + * @return The bytes for displayPhotoUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayPhotoUriBytes() { + java.lang.Object ref = displayPhotoUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayPhotoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationUri_ = ""; + + /** + * + * + *
+     * The destination uri of the person suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + @java.lang.Override + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } + } + + /** + * + * + *
+     * The destination uri of the person suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, suggestion_); + } + if (personType_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType.PERSON_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, personType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDocument()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStore_); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayPhotoUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, displayPhotoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, destinationUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suggestion_); + } + if (personType_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType.PERSON_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, personType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocument()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, dataStore_); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayPhotoUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, displayPhotoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, destinationUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) obj; + + if (!getSuggestion().equals(other.getSuggestion())) return false; + if (personType_ != other.personType_) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument().equals(other.getDocument())) return false; + } + if (!getDataStore().equals(other.getDataStore())) return false; + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + if (!getDisplayPhotoUri().equals(other.getDisplayPhotoUri())) return false; + if (!getDestinationUri().equals(other.getDestinationUri())) 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) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + hash = (37 * hash) + PERSON_TYPE_FIELD_NUMBER; + hash = (53 * hash) + personType_; + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + hash = (37 * hash) + DISPLAY_PHOTO_URI_FIELD_NUMBER; + hash = (53 * hash) + getDisplayPhotoUri().hashCode(); + hash = (37 * hash) + DESTINATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Suggestions as people.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestion_ = ""; + personType_ = 0; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + dataStore_ = ""; + score_ = 0D; + displayPhotoUri_ = ""; + destinationUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestion_ = suggestion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.personType_ = personType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataStore_ = dataStore_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayPhotoUri_ = displayPhotoUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationUri_ = destinationUri_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.personType_ != 0) { + setPersonTypeValue(other.getPersonTypeValue()); + } + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } + if (!other.getDisplayPhotoUri().isEmpty()) { + displayPhotoUri_ = other.displayPhotoUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDestinationUri().isEmpty()) { + destinationUri_ = other.destinationUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + personType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage( + internalGetDocumentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 49 + case 58: + { + displayPhotoUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + destinationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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 suggestion_ = ""; + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuggestion() { + suggestion_ = getDefaultInstance().getSuggestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The bytes for suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int personType_ = 0; + + /** + * + * + *
+       * The type of the person.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return The enum numeric value on the wire for personType. + */ + @java.lang.Override + public int getPersonTypeValue() { + return personType_; + } + + /** + * + * + *
+       * The type of the person.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @param value The enum numeric value on the wire for personType to set. + * @return This builder for chaining. + */ + public Builder setPersonTypeValue(int value) { + personType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The type of the person.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return The personType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType + getPersonType() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType + result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType.forNumber(personType_); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * The type of the person.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @param value The personType to set. + * @return This builder for chaining. + */ + public Builder setPersonType( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .PersonType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + personType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * The type of the person.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearPersonType() { + bitField0_ = (bitField0_ & ~0x00000002); + personType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Document document_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Document, + com.google.cloud.discoveryengine.v1.Document.Builder, + com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + documentBuilder_; + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return The document. + */ + public com.google.cloud.discoveryengine.v1.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } else { + return documentBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && document_ != null + && document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + if (document_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000004); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDocumentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields is
+       * populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Document, + com.google.cloud.discoveryengine.v1.Document.Builder, + com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + internalGetDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Document, + com.google.cloud.discoveryengine.v1.Document.Builder, + com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); + document_ = null; + } + return documentBuilder_; + } + + private java.lang.Object dataStore_ = ""; + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double score_; + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000010); + score_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object displayPhotoUri_ = ""; + + /** + * + * + *
+       * The photo uri of the person suggestion.
+       * 
+ * + * string display_photo_uri = 7; + * + * @return The displayPhotoUri. + */ + public java.lang.String getDisplayPhotoUri() { + java.lang.Object ref = displayPhotoUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayPhotoUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The photo uri of the person suggestion.
+       * 
+ * + * string display_photo_uri = 7; + * + * @return The bytes for displayPhotoUri. + */ + public com.google.protobuf.ByteString getDisplayPhotoUriBytes() { + java.lang.Object ref = displayPhotoUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayPhotoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The photo uri of the person suggestion.
+       * 
+ * + * string display_photo_uri = 7; + * + * @param value The displayPhotoUri to set. + * @return This builder for chaining. + */ + public Builder setDisplayPhotoUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayPhotoUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * The photo uri of the person suggestion.
+       * 
+ * + * string display_photo_uri = 7; + * + * @return This builder for chaining. + */ + public Builder clearDisplayPhotoUri() { + displayPhotoUri_ = getDefaultInstance().getDisplayPhotoUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+       * The photo uri of the person suggestion.
+       * 
+ * + * string display_photo_uri = 7; + * + * @param value The bytes for displayPhotoUri to set. + * @return This builder for chaining. + */ + public Builder setDisplayPhotoUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayPhotoUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object destinationUri_ = ""; + + /** + * + * + *
+       * The destination uri of the person suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The destination uri of the person suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The destination uri of the person suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @param value The destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * The destination uri of the person suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @return This builder for chaining. + */ + public Builder clearDestinationUri() { + destinationUri_ = getDefaultInstance().getDestinationUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+       * The destination uri of the person suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @param value The bytes for destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ContentSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + java.lang.String getSuggestion(); + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The type of the content suggestion.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return The enum numeric value on the wire for contentType. + */ + int getContentTypeValue(); + + /** + * + * + *
+     * The type of the content suggestion.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return The contentType. + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType + getContentType(); + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields will
+     * be populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return Whether the document field is set. + */ + boolean hasDocument(); + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields will
+     * be populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return The document. + */ + com.google.cloud.discoveryengine.v1.Document getDocument(); + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields will
+     * be populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + java.lang.String getDataStore(); + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 6; + * + * @return The score. + */ + double getScore(); + + /** + * + * + *
+     * The icon uri of the content suggestion.
+     * 
+ * + * string icon_uri = 7; + * + * @return The iconUri. + */ + java.lang.String getIconUri(); + + /** + * + * + *
+     * The icon uri of the content suggestion.
+     * 
+ * + * string icon_uri = 7; + * + * @return The bytes for iconUri. + */ + com.google.protobuf.ByteString getIconUriBytes(); + + /** + * + * + *
+     * The destination uri of the content suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + java.lang.String getDestinationUri(); + + /** + * + * + *
+     * The destination uri of the content suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + com.google.protobuf.ByteString getDestinationUriBytes(); + } + + /** + * + * + *
+   * Suggestions as content.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion} + */ + public static final class ContentSuggestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) + ContentSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ContentSuggestion"); + } + + // Use ContentSuggestion.newBuilder() to construct. + private ContentSuggestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ContentSuggestion() { + suggestion_ = ""; + contentType_ = 0; + dataStore_ = ""; + iconUri_ = ""; + destinationUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder.class); + } + + /** + * + * + *
+     * The type of the content returned for content suggestions.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType} + */ + public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value.
+       * 
+ * + * CONTENT_TYPE_UNSPECIFIED = 0; + */ + CONTENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The suggestion is from a Google Workspace source.
+       * 
+ * + * GOOGLE_WORKSPACE = 1; + */ + GOOGLE_WORKSPACE(1), + /** + * + * + *
+       * The suggestion is from a third party source.
+       * 
+ * + * THIRD_PARTY = 2; + */ + THIRD_PARTY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ContentType"); + } + + /** + * + * + *
+       * Default value.
+       * 
+ * + * CONTENT_TYPE_UNSPECIFIED = 0; + */ + public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The suggestion is from a Google Workspace source.
+       * 
+ * + * GOOGLE_WORKSPACE = 1; + */ + public static final int GOOGLE_WORKSPACE_VALUE = 1; + + /** + * + * + *
+       * The suggestion is from a third party source.
+       * 
+ * + * THIRD_PARTY = 2; + */ + public static final int THIRD_PARTY_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 ContentType 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 ContentType forNumber(int value) { + switch (value) { + case 0: + return CONTENT_TYPE_UNSPECIFIED; + case 1: + return GOOGLE_WORKSPACE; + case 2: + return THIRD_PARTY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ContentType[] VALUES = values(); + + public static ContentType 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 ContentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType) + } + + private int bitField0_; + public static final int SUGGESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestion_ = ""; + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + @java.lang.Override + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_TYPE_FIELD_NUMBER = 2; + private int contentType_ = 0; + + /** + * + * + *
+     * The type of the content suggestion.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return The enum numeric value on the wire for contentType. + */ + @java.lang.Override + public int getContentTypeValue() { + return contentType_; + } + + /** + * + * + *
+     * The type of the content suggestion.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return The contentType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType + getContentType() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType + result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType.forNumber(contentType_); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType.UNRECOGNIZED + : result; + } + + public static final int DOCUMENT_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.Document document_; + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields will
+     * be populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields will
+     * be populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return The document. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Document getDocument() { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } + + /** + * + * + *
+     * The document data snippet in the suggestion. Only a subset of fields will
+     * be populated.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } + + public static final int DATA_STORE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the dataStore that this suggestion belongs to.
+     * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + public static final int ICON_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconUri_ = ""; + + /** + * + * + *
+     * The icon uri of the content suggestion.
+     * 
+ * + * string icon_uri = 7; + * + * @return The iconUri. + */ + @java.lang.Override + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } + } + + /** + * + * + *
+     * The icon uri of the content suggestion.
+     * 
+ * + * string icon_uri = 7; + * + * @return The bytes for iconUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationUri_ = ""; + + /** + * + * + *
+     * The destination uri of the content suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + @java.lang.Override + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } + } + + /** + * + * + *
+     * The destination uri of the content suggestion.
+     * 
+ * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, suggestion_); + } + if (contentType_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType.CONTENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, contentType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDocument()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStore_); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, iconUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, destinationUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suggestion_); + } + if (contentType_ + != com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType.CONTENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, contentType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocument()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, dataStore_); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, iconUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, destinationUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) obj; + + if (!getSuggestion().equals(other.getSuggestion())) return false; + if (contentType_ != other.contentType_) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument().equals(other.getDocument())) return false; + } + if (!getDataStore().equals(other.getDataStore())) return false; + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + if (!getIconUri().equals(other.getIconUri())) return false; + if (!getDestinationUri().equals(other.getDestinationUri())) 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) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + contentType_; + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + hash = (37 * hash) + ICON_URI_FIELD_NUMBER; + hash = (53 * hash) + getIconUri().hashCode(); + hash = (37 * hash) + DESTINATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Suggestions as content.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestion_ = ""; + contentType_ = 0; + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + dataStore_ = ""; + score_ = 0D; + iconUri_ = ""; + destinationUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestion_ = suggestion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contentType_ = contentType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.document_ = documentBuilder_ == null ? document_ : documentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataStore_ = dataStore_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.iconUri_ = iconUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationUri_ = destinationUri_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.contentType_ != 0) { + setContentTypeValue(other.getContentTypeValue()); + } + if (other.hasDocument()) { + mergeDocument(other.getDocument()); + } + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } + if (!other.getIconUri().isEmpty()) { + iconUri_ = other.iconUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDestinationUri().isEmpty()) { + destinationUri_ = other.destinationUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + contentType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage( + internalGetDocumentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 49 + case 58: + { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + destinationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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 suggestion_ = ""; + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuggestion() { + suggestion_ = getDefaultInstance().getSuggestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The bytes for suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int contentType_ = 0; + + /** + * + * + *
+       * The type of the content suggestion.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return The enum numeric value on the wire for contentType. + */ + @java.lang.Override + public int getContentTypeValue() { + return contentType_; + } + + /** + * + * + *
+       * The type of the content suggestion.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @param value The enum numeric value on the wire for contentType to set. + * @return This builder for chaining. + */ + public Builder setContentTypeValue(int value) { + contentType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The type of the content suggestion.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return The contentType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType + getContentType() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType + result = + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType.forNumber(contentType_); + return result == null + ? com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * The type of the content suggestion.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @param value The contentType to set. + * @return This builder for chaining. + */ + public Builder setContentType( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .ContentType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + contentType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * The type of the content suggestion.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearContentType() { + bitField0_ = (bitField0_ & ~0x00000002); + contentType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Document document_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Document, + com.google.cloud.discoveryengine.v1.Document.Builder, + com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + documentBuilder_; + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + * + * @return The document. + */ + public com.google.cloud.discoveryengine.v1.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } else { + return documentBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && document_ != null + && document_ != com.google.cloud.discoveryengine.v1.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + if (document_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000004); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public com.google.cloud.discoveryengine.v1.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDocumentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + public com.google.cloud.discoveryengine.v1.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null + ? com.google.cloud.discoveryengine.v1.Document.getDefaultInstance() + : document_; + } + } + + /** + * + * + *
+       * The document data snippet in the suggestion. Only a subset of fields will
+       * be populated.
+       * 
+ * + * .google.cloud.discoveryengine.v1.Document document = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Document, + com.google.cloud.discoveryengine.v1.Document.Builder, + com.google.cloud.discoveryengine.v1.DocumentOrBuilder> + internalGetDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Document, + com.google.cloud.discoveryengine.v1.Document.Builder, + com.google.cloud.discoveryengine.v1.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); + document_ = null; + } + return documentBuilder_; + } + + private java.lang.Object dataStore_ = ""; + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the dataStore that this suggestion belongs to.
+       * 
+ * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double score_; + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000010); + score_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object iconUri_ = ""; + + /** + * + * + *
+       * The icon uri of the content suggestion.
+       * 
+ * + * string icon_uri = 7; + * + * @return The iconUri. + */ + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The icon uri of the content suggestion.
+       * 
+ * + * string icon_uri = 7; + * + * @return The bytes for iconUri. + */ + public com.google.protobuf.ByteString getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The icon uri of the content suggestion.
+       * 
+ * + * string icon_uri = 7; + * + * @param value The iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + iconUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * The icon uri of the content suggestion.
+       * 
+ * + * string icon_uri = 7; + * + * @return This builder for chaining. + */ + public Builder clearIconUri() { + iconUri_ = getDefaultInstance().getIconUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+       * The icon uri of the content suggestion.
+       * 
+ * + * string icon_uri = 7; + * + * @param value The bytes for iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iconUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object destinationUri_ = ""; + + /** + * + * + *
+       * The destination uri of the content suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The destination uri of the content suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The destination uri of the content suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @param value The destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * The destination uri of the content suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @return This builder for chaining. + */ + public Builder clearDestinationUri() { + destinationUri_ = getDefaultInstance().getDestinationUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+       * The destination uri of the content suggestion.
+       * 
+ * + * string destination_uri = 8; + * + * @param value The bytes for destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RecentSearchSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + java.lang.String getSuggestion(); + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + com.google.protobuf.ByteString getSuggestionBytes(); + + /** + * + * + *
+     * The time when this recent rearch happened.
+     * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + * + * @return Whether the recentSearchTime field is set. + */ + boolean hasRecentSearchTime(); + + /** + * + * + *
+     * The time when this recent rearch happened.
+     * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + * + * @return The recentSearchTime. + */ + com.google.protobuf.Timestamp getRecentSearchTime(); + + /** + * + * + *
+     * The time when this recent rearch happened.
+     * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getRecentSearchTimeOrBuilder(); + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 3; + * + * @return The score. + */ + double getScore(); + } + + /** + * + * + *
+   * Suggestions from recent search history.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion} + */ + public static final class RecentSearchSuggestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion) + RecentSearchSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RecentSearchSuggestion"); + } + + // Use RecentSearchSuggestion.newBuilder() to construct. + private RecentSearchSuggestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RecentSearchSuggestion() { + suggestion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.Builder.class); + } + + private int bitField0_; + public static final int SUGGESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestion_ = ""; + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + @java.lang.Override + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } + } + + /** + * + * + *
+     * The suggestion for the query.
+     * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECENT_SEARCH_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp recentSearchTime_; + + /** + * + * + *
+     * The time when this recent rearch happened.
+     * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + * + * @return Whether the recentSearchTime field is set. + */ + @java.lang.Override + public boolean hasRecentSearchTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The time when this recent rearch happened.
+     * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + * + * @return The recentSearchTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRecentSearchTime() { + return recentSearchTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : recentSearchTime_; + } + + /** + * + * + *
+     * The time when this recent rearch happened.
+     * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRecentSearchTimeOrBuilder() { + return recentSearchTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : recentSearchTime_; + } + + public static final int SCORE_FIELD_NUMBER = 3; + private double score_ = 0D; + + /** + * + * + *
+     * The score of each suggestion. The score is in the range of [0, 1].
+     * 
+ * + * double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, suggestion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRecentSearchTime()); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(3, score_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suggestion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRecentSearchTime()); + } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, score_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion) + obj; + + if (!getSuggestion().equals(other.getSuggestion())) return false; + if (hasRecentSearchTime() != other.hasRecentSearchTime()) return false; + if (hasRecentSearchTime()) { + if (!getRecentSearchTime().equals(other.getRecentSearchTime())) return false; + } + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) 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) + SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSuggestion().hashCode(); + if (hasRecentSearchTime()) { + hash = (37 * hash) + RECENT_SEARCH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRecentSearchTime().hashCode(); + } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Suggestions from recent search history.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRecentSearchTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestion_ = ""; + recentSearchTime_ = null; + if (recentSearchTimeBuilder_ != null) { + recentSearchTimeBuilder_.dispose(); + recentSearchTimeBuilder_ = null; + } + score_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestion_ = suggestion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recentSearchTime_ = + recentSearchTimeBuilder_ == null + ? recentSearchTime_ + : recentSearchTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.score_ = score_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.getDefaultInstance()) return this; + if (!other.getSuggestion().isEmpty()) { + suggestion_ = other.suggestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRecentSearchTime()) { + mergeRecentSearchTime(other.getRecentSearchTime()); + } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } + 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: + { + suggestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRecentSearchTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 25: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + 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 suggestion_ = ""; + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The suggestion. + */ + public java.lang.String getSuggestion() { + java.lang.Object ref = suggestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return The bytes for suggestion. + */ + public com.google.protobuf.ByteString getSuggestionBytes() { + java.lang.Object ref = suggestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuggestion() { + suggestion_ = getDefaultInstance().getSuggestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The suggestion for the query.
+       * 
+ * + * string suggestion = 1; + * + * @param value The bytes for suggestion to set. + * @return This builder for chaining. + */ + public Builder setSuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp recentSearchTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + recentSearchTimeBuilder_; + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + * + * @return Whether the recentSearchTime field is set. + */ + public boolean hasRecentSearchTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + * + * @return The recentSearchTime. + */ + public com.google.protobuf.Timestamp getRecentSearchTime() { + if (recentSearchTimeBuilder_ == null) { + return recentSearchTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : recentSearchTime_; + } else { + return recentSearchTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + public Builder setRecentSearchTime(com.google.protobuf.Timestamp value) { + if (recentSearchTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recentSearchTime_ = value; + } else { + recentSearchTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + public Builder setRecentSearchTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (recentSearchTimeBuilder_ == null) { + recentSearchTime_ = builderForValue.build(); + } else { + recentSearchTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + public Builder mergeRecentSearchTime(com.google.protobuf.Timestamp value) { + if (recentSearchTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && recentSearchTime_ != null + && recentSearchTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRecentSearchTimeBuilder().mergeFrom(value); + } else { + recentSearchTime_ = value; + } + } else { + recentSearchTimeBuilder_.mergeFrom(value); + } + if (recentSearchTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + public Builder clearRecentSearchTime() { + bitField0_ = (bitField0_ & ~0x00000002); + recentSearchTime_ = null; + if (recentSearchTimeBuilder_ != null) { + recentSearchTimeBuilder_.dispose(); + recentSearchTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getRecentSearchTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRecentSearchTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getRecentSearchTimeOrBuilder() { + if (recentSearchTimeBuilder_ != null) { + return recentSearchTimeBuilder_.getMessageOrBuilder(); + } else { + return recentSearchTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : recentSearchTime_; + } + } + + /** + * + * + *
+       * The time when this recent rearch happened.
+       * 
+ * + * .google.protobuf.Timestamp recent_search_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetRecentSearchTimeFieldBuilder() { + if (recentSearchTimeBuilder_ == null) { + recentSearchTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRecentSearchTime(), getParentForChildren(), isClean()); + recentSearchTime_ = null; + } + return recentSearchTimeBuilder_; + } + + private double score_; + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 3; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The score of each suggestion. The score is in the range of [0, 1].
+       * 
+ * + * double score = 3; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000004); + score_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecentSearchSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int QUERY_SUGGESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion> + querySuggestions_; + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion> + getQuerySuggestionsList() { + return querySuggestions_; + } + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder> + getQuerySuggestionsOrBuilderList() { + return querySuggestions_; + } + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + @java.lang.Override + public int getQuerySuggestionsCount() { + return querySuggestions_.size(); + } + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + getQuerySuggestions(int index) { + return querySuggestions_.get(index); + } + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder + getQuerySuggestionsOrBuilder(int index) { + return querySuggestions_.get(index); + } + + public static final int TAIL_MATCH_TRIGGERED_FIELD_NUMBER = 2; + private boolean tailMatchTriggered_ = false; + + /** + * + * + *
+   * True if the returned suggestions are all tail suggestions.
+   *
+   * For tail matching to be triggered, include_tail_suggestions in the request
+   * must be true and there must be no suggestions that match the full query.
+   * 
+ * + * bool tail_match_triggered = 2; + * + * @return The tailMatchTriggered. + */ + @java.lang.Override + public boolean getTailMatchTriggered() { + return tailMatchTriggered_; + } + + public static final int PEOPLE_SUGGESTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion> + peopleSuggestions_; + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion> + getPeopleSuggestionsList() { + return peopleSuggestions_; + } + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder> + getPeopleSuggestionsOrBuilderList() { + return peopleSuggestions_; + } + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + @java.lang.Override + public int getPeopleSuggestionsCount() { + return peopleSuggestions_.size(); + } + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + getPeopleSuggestions(int index) { + return peopleSuggestions_.get(index); + } + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder + getPeopleSuggestionsOrBuilder(int index) { + return peopleSuggestions_.get(index); + } + + public static final int CONTENT_SUGGESTIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion> + contentSuggestions_; + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion> + getContentSuggestionsList() { + return contentSuggestions_; + } + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder> + getContentSuggestionsOrBuilderList() { + return contentSuggestions_; + } + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + @java.lang.Override + public int getContentSuggestionsCount() { + return contentSuggestions_.size(); + } + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + getContentSuggestions(int index) { + return contentSuggestions_.get(index); + } + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder + getContentSuggestionsOrBuilder(int index) { + return contentSuggestions_.get(index); + } + + public static final int RECENT_SEARCH_SUGGESTIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion> + recentSearchSuggestions_; + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion> + getRecentSearchSuggestionsList() { + return recentSearchSuggestions_; + } + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder> + getRecentSearchSuggestionsOrBuilderList() { + return recentSearchSuggestions_; + } + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + @java.lang.Override + public int getRecentSearchSuggestionsCount() { + return recentSearchSuggestions_.size(); + } + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + getRecentSearchSuggestions(int index) { + return recentSearchSuggestions_.get(index); + } + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder + getRecentSearchSuggestionsOrBuilder(int index) { + return recentSearchSuggestions_.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 < querySuggestions_.size(); i++) { + output.writeMessage(1, querySuggestions_.get(i)); + } + if (tailMatchTriggered_ != false) { + output.writeBool(2, tailMatchTriggered_); + } + for (int i = 0; i < peopleSuggestions_.size(); i++) { + output.writeMessage(3, peopleSuggestions_.get(i)); + } + for (int i = 0; i < contentSuggestions_.size(); i++) { + output.writeMessage(4, contentSuggestions_.get(i)); + } + for (int i = 0; i < recentSearchSuggestions_.size(); i++) { + output.writeMessage(5, recentSearchSuggestions_.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 < querySuggestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, querySuggestions_.get(i)); + } + if (tailMatchTriggered_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, tailMatchTriggered_); + } + for (int i = 0; i < peopleSuggestions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, peopleSuggestions_.get(i)); + } + for (int i = 0; i < contentSuggestions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, contentSuggestions_.get(i)); + } + for (int i = 0; i < recentSearchSuggestions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, recentSearchSuggestions_.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.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse other = + (com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) obj; + + if (!getQuerySuggestionsList().equals(other.getQuerySuggestionsList())) return false; + if (getTailMatchTriggered() != other.getTailMatchTriggered()) return false; + if (!getPeopleSuggestionsList().equals(other.getPeopleSuggestionsList())) return false; + if (!getContentSuggestionsList().equals(other.getContentSuggestionsList())) return false; + if (!getRecentSearchSuggestionsList().equals(other.getRecentSearchSuggestionsList())) + 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 (getQuerySuggestionsCount() > 0) { + hash = (37 * hash) + QUERY_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuerySuggestionsList().hashCode(); + } + hash = (37 * hash) + TAIL_MATCH_TRIGGERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTailMatchTriggered()); + if (getPeopleSuggestionsCount() > 0) { + hash = (37 * hash) + PEOPLE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPeopleSuggestionsList().hashCode(); + } + if (getContentSuggestionsCount() > 0) { + hash = (37 * hash) + CONTENT_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getContentSuggestionsList().hashCode(); + } + if (getRecentSearchSuggestionsCount() > 0) { + hash = (37 * hash) + RECENT_SEARCH_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRecentSearchSuggestionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1.CompletionService.AdvancedCompleteQuery]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.class, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (querySuggestionsBuilder_ == null) { + querySuggestions_ = java.util.Collections.emptyList(); + } else { + querySuggestions_ = null; + querySuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + tailMatchTriggered_ = false; + if (peopleSuggestionsBuilder_ == null) { + peopleSuggestions_ = java.util.Collections.emptyList(); + } else { + peopleSuggestions_ = null; + peopleSuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (contentSuggestionsBuilder_ == null) { + contentSuggestions_ = java.util.Collections.emptyList(); + } else { + contentSuggestions_ = null; + contentSuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (recentSearchSuggestionsBuilder_ == null) { + recentSearchSuggestions_ = java.util.Collections.emptyList(); + } else { + recentSearchSuggestions_ = null; + recentSearchSuggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse build() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse buildPartial() { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse result = + new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse result) { + if (querySuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + querySuggestions_ = java.util.Collections.unmodifiableList(querySuggestions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.querySuggestions_ = querySuggestions_; + } else { + result.querySuggestions_ = querySuggestionsBuilder_.build(); + } + if (peopleSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + peopleSuggestions_ = java.util.Collections.unmodifiableList(peopleSuggestions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.peopleSuggestions_ = peopleSuggestions_; + } else { + result.peopleSuggestions_ = peopleSuggestionsBuilder_.build(); + } + if (contentSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + contentSuggestions_ = java.util.Collections.unmodifiableList(contentSuggestions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.contentSuggestions_ = contentSuggestions_; + } else { + result.contentSuggestions_ = contentSuggestionsBuilder_.build(); + } + if (recentSearchSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + recentSearchSuggestions_ = + java.util.Collections.unmodifiableList(recentSearchSuggestions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.recentSearchSuggestions_ = recentSearchSuggestions_; + } else { + result.recentSearchSuggestions_ = recentSearchSuggestionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tailMatchTriggered_ = tailMatchTriggered_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.getDefaultInstance()) + return this; + if (querySuggestionsBuilder_ == null) { + if (!other.querySuggestions_.isEmpty()) { + if (querySuggestions_.isEmpty()) { + querySuggestions_ = other.querySuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.addAll(other.querySuggestions_); + } + onChanged(); + } + } else { + if (!other.querySuggestions_.isEmpty()) { + if (querySuggestionsBuilder_.isEmpty()) { + querySuggestionsBuilder_.dispose(); + querySuggestionsBuilder_ = null; + querySuggestions_ = other.querySuggestions_; + bitField0_ = (bitField0_ & ~0x00000001); + querySuggestionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQuerySuggestionsFieldBuilder() + : null; + } else { + querySuggestionsBuilder_.addAllMessages(other.querySuggestions_); + } + } + } + if (other.getTailMatchTriggered() != false) { + setTailMatchTriggered(other.getTailMatchTriggered()); + } + if (peopleSuggestionsBuilder_ == null) { + if (!other.peopleSuggestions_.isEmpty()) { + if (peopleSuggestions_.isEmpty()) { + peopleSuggestions_ = other.peopleSuggestions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.addAll(other.peopleSuggestions_); + } + onChanged(); + } + } else { + if (!other.peopleSuggestions_.isEmpty()) { + if (peopleSuggestionsBuilder_.isEmpty()) { + peopleSuggestionsBuilder_.dispose(); + peopleSuggestionsBuilder_ = null; + peopleSuggestions_ = other.peopleSuggestions_; + bitField0_ = (bitField0_ & ~0x00000004); + peopleSuggestionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPeopleSuggestionsFieldBuilder() + : null; + } else { + peopleSuggestionsBuilder_.addAllMessages(other.peopleSuggestions_); + } + } + } + if (contentSuggestionsBuilder_ == null) { + if (!other.contentSuggestions_.isEmpty()) { + if (contentSuggestions_.isEmpty()) { + contentSuggestions_ = other.contentSuggestions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureContentSuggestionsIsMutable(); + contentSuggestions_.addAll(other.contentSuggestions_); + } + onChanged(); + } + } else { + if (!other.contentSuggestions_.isEmpty()) { + if (contentSuggestionsBuilder_.isEmpty()) { + contentSuggestionsBuilder_.dispose(); + contentSuggestionsBuilder_ = null; + contentSuggestions_ = other.contentSuggestions_; + bitField0_ = (bitField0_ & ~0x00000008); + contentSuggestionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContentSuggestionsFieldBuilder() + : null; + } else { + contentSuggestionsBuilder_.addAllMessages(other.contentSuggestions_); + } + } + } + if (recentSearchSuggestionsBuilder_ == null) { + if (!other.recentSearchSuggestions_.isEmpty()) { + if (recentSearchSuggestions_.isEmpty()) { + recentSearchSuggestions_ = other.recentSearchSuggestions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.addAll(other.recentSearchSuggestions_); + } + onChanged(); + } + } else { + if (!other.recentSearchSuggestions_.isEmpty()) { + if (recentSearchSuggestionsBuilder_.isEmpty()) { + recentSearchSuggestionsBuilder_.dispose(); + recentSearchSuggestionsBuilder_ = null; + recentSearchSuggestions_ = other.recentSearchSuggestions_; + bitField0_ = (bitField0_ & ~0x00000010); + recentSearchSuggestionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRecentSearchSuggestionsFieldBuilder() + : null; + } else { + recentSearchSuggestionsBuilder_.addAllMessages(other.recentSearchSuggestions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestion.parser(), + extensionRegistry); + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(m); + } else { + querySuggestionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + tailMatchTriggered_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestion.parser(), + extensionRegistry); + if (peopleSuggestionsBuilder_ == null) { + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.add(m); + } else { + peopleSuggestionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion.parser(), + extensionRegistry); + if (contentSuggestionsBuilder_ == null) { + ensureContentSuggestionsIsMutable(); + contentSuggestions_.add(m); + } else { + contentSuggestionsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.parser(), + extensionRegistry); + if (recentSearchSuggestionsBuilder_ == null) { + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.add(m); + } else { + recentSearchSuggestionsBuilder_.addMessage(m); + } + 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.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion> + querySuggestions_ = java.util.Collections.emptyList(); + + private void ensureQuerySuggestionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + querySuggestions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion>( + querySuggestions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder> + querySuggestionsBuilder_; + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion> + getQuerySuggestionsList() { + if (querySuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(querySuggestions_); + } else { + return querySuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public int getQuerySuggestionsCount() { + if (querySuggestionsBuilder_ == null) { + return querySuggestions_.size(); + } else { + return querySuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + getQuerySuggestions(int index) { + if (querySuggestionsBuilder_ == null) { + return querySuggestions_.get(index); + } else { + return querySuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder setQuerySuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion value) { + if (querySuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuerySuggestionsIsMutable(); + querySuggestions_.set(index, value); + onChanged(); + } else { + querySuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder setQuerySuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.Builder + builderForValue) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + querySuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder addQuerySuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion value) { + if (querySuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(value); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder addQuerySuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion value) { + if (querySuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(index, value); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder addQuerySuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.Builder + builderForValue) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(builderForValue.build()); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder addQuerySuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.Builder + builderForValue) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + querySuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder addAllQuerySuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestion> + values) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, querySuggestions_); + onChanged(); + } else { + querySuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder clearQuerySuggestions() { + if (querySuggestionsBuilder_ == null) { + querySuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + querySuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public Builder removeQuerySuggestions(int index) { + if (querySuggestionsBuilder_ == null) { + ensureQuerySuggestionsIsMutable(); + querySuggestions_.remove(index); + onChanged(); + } else { + querySuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.Builder + getQuerySuggestionsBuilder(int index) { + return internalGetQuerySuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder + getQuerySuggestionsOrBuilder(int index) { + if (querySuggestionsBuilder_ == null) { + return querySuggestions_.get(index); + } else { + return querySuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder> + getQuerySuggestionsOrBuilderList() { + if (querySuggestionsBuilder_ != null) { + return querySuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(querySuggestions_); + } + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.Builder + addQuerySuggestionsBuilder() { + return internalGetQuerySuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion.Builder + addQuerySuggestionsBuilder(int index) { + return internalGetQuerySuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched query suggestions. The result list is ordered and
+     * the first result is a top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .Builder> + getQuerySuggestionsBuilderList() { + return internalGetQuerySuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder> + internalGetQuerySuggestionsFieldBuilder() { + if (querySuggestionsBuilder_ == null) { + querySuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder>( + querySuggestions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + querySuggestions_ = null; + } + return querySuggestionsBuilder_; + } + + private boolean tailMatchTriggered_; + + /** + * + * + *
+     * True if the returned suggestions are all tail suggestions.
+     *
+     * For tail matching to be triggered, include_tail_suggestions in the request
+     * must be true and there must be no suggestions that match the full query.
+     * 
+ * + * bool tail_match_triggered = 2; + * + * @return The tailMatchTriggered. + */ + @java.lang.Override + public boolean getTailMatchTriggered() { + return tailMatchTriggered_; + } + + /** + * + * + *
+     * True if the returned suggestions are all tail suggestions.
+     *
+     * For tail matching to be triggered, include_tail_suggestions in the request
+     * must be true and there must be no suggestions that match the full query.
+     * 
+ * + * bool tail_match_triggered = 2; + * + * @param value The tailMatchTriggered to set. + * @return This builder for chaining. + */ + public Builder setTailMatchTriggered(boolean value) { + + tailMatchTriggered_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * True if the returned suggestions are all tail suggestions.
+     *
+     * For tail matching to be triggered, include_tail_suggestions in the request
+     * must be true and there must be no suggestions that match the full query.
+     * 
+ * + * bool tail_match_triggered = 2; + * + * @return This builder for chaining. + */ + public Builder clearTailMatchTriggered() { + bitField0_ = (bitField0_ & ~0x00000002); + tailMatchTriggered_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion> + peopleSuggestions_ = java.util.Collections.emptyList(); + + private void ensurePeopleSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + peopleSuggestions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion>( + peopleSuggestions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder> + peopleSuggestionsBuilder_; + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion> + getPeopleSuggestionsList() { + if (peopleSuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(peopleSuggestions_); + } else { + return peopleSuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public int getPeopleSuggestionsCount() { + if (peopleSuggestionsBuilder_ == null) { + return peopleSuggestions_.size(); + } else { + return peopleSuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + getPeopleSuggestions(int index) { + if (peopleSuggestionsBuilder_ == null) { + return peopleSuggestions_.get(index); + } else { + return peopleSuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder setPeopleSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion value) { + if (peopleSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.set(index, value); + onChanged(); + } else { + peopleSuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder setPeopleSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.Builder + builderForValue) { + if (peopleSuggestionsBuilder_ == null) { + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + peopleSuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder addPeopleSuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion value) { + if (peopleSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.add(value); + onChanged(); + } else { + peopleSuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder addPeopleSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion value) { + if (peopleSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.add(index, value); + onChanged(); + } else { + peopleSuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder addPeopleSuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.Builder + builderForValue) { + if (peopleSuggestionsBuilder_ == null) { + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.add(builderForValue.build()); + onChanged(); + } else { + peopleSuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder addPeopleSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion.Builder + builderForValue) { + if (peopleSuggestionsBuilder_ == null) { + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + peopleSuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder addAllPeopleSuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestion> + values) { + if (peopleSuggestionsBuilder_ == null) { + ensurePeopleSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, peopleSuggestions_); + onChanged(); + } else { + peopleSuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder clearPeopleSuggestions() { + if (peopleSuggestionsBuilder_ == null) { + peopleSuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + peopleSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public Builder removePeopleSuggestions(int index) { + if (peopleSuggestionsBuilder_ == null) { + ensurePeopleSuggestionsIsMutable(); + peopleSuggestions_.remove(index); + onChanged(); + } else { + peopleSuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder + getPeopleSuggestionsBuilder(int index) { + return internalGetPeopleSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder + getPeopleSuggestionsOrBuilder(int index) { + if (peopleSuggestionsBuilder_ == null) { + return peopleSuggestions_.get(index); + } else { + return peopleSuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder> + getPeopleSuggestionsOrBuilderList() { + if (peopleSuggestionsBuilder_ != null) { + return peopleSuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(peopleSuggestions_); + } + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder + addPeopleSuggestionsBuilder() { + return internalGetPeopleSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder + addPeopleSuggestionsBuilder(int index) { + return internalGetPeopleSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched people suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder> + getPeopleSuggestionsBuilderList() { + return internalGetPeopleSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder> + internalGetPeopleSuggestionsFieldBuilder() { + if (peopleSuggestionsBuilder_ == null) { + peopleSuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder>( + peopleSuggestions_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + peopleSuggestions_ = null; + } + return peopleSuggestionsBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion> + contentSuggestions_ = java.util.Collections.emptyList(); + + private void ensureContentSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + contentSuggestions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion>(contentSuggestions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder> + contentSuggestionsBuilder_; + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion> + getContentSuggestionsList() { + if (contentSuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contentSuggestions_); + } else { + return contentSuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public int getContentSuggestionsCount() { + if (contentSuggestionsBuilder_ == null) { + return contentSuggestions_.size(); + } else { + return contentSuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + getContentSuggestions(int index) { + if (contentSuggestionsBuilder_ == null) { + return contentSuggestions_.get(index); + } else { + return contentSuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder setContentSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion value) { + if (contentSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentSuggestionsIsMutable(); + contentSuggestions_.set(index, value); + onChanged(); + } else { + contentSuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder setContentSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.Builder + builderForValue) { + if (contentSuggestionsBuilder_ == null) { + ensureContentSuggestionsIsMutable(); + contentSuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + contentSuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder addContentSuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion value) { + if (contentSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentSuggestionsIsMutable(); + contentSuggestions_.add(value); + onChanged(); + } else { + contentSuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder addContentSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion value) { + if (contentSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentSuggestionsIsMutable(); + contentSuggestions_.add(index, value); + onChanged(); + } else { + contentSuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder addContentSuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.Builder + builderForValue) { + if (contentSuggestionsBuilder_ == null) { + ensureContentSuggestionsIsMutable(); + contentSuggestions_.add(builderForValue.build()); + onChanged(); + } else { + contentSuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder addContentSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.Builder + builderForValue) { + if (contentSuggestionsBuilder_ == null) { + ensureContentSuggestionsIsMutable(); + contentSuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + contentSuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder addAllContentSuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestion> + values) { + if (contentSuggestionsBuilder_ == null) { + ensureContentSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentSuggestions_); + onChanged(); + } else { + contentSuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder clearContentSuggestions() { + if (contentSuggestionsBuilder_ == null) { + contentSuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + contentSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public Builder removeContentSuggestions(int index) { + if (contentSuggestionsBuilder_ == null) { + ensureContentSuggestionsIsMutable(); + contentSuggestions_.remove(index); + onChanged(); + } else { + contentSuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder + getContentSuggestionsBuilder(int index) { + return internalGetContentSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder + getContentSuggestionsOrBuilder(int index) { + if (contentSuggestionsBuilder_ == null) { + return contentSuggestions_.get(index); + } else { + return contentSuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder> + getContentSuggestionsOrBuilderList() { + if (contentSuggestionsBuilder_ != null) { + return contentSuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contentSuggestions_); + } + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder + addContentSuggestionsBuilder() { + return internalGetContentSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder + addContentSuggestionsBuilder(int index) { + return internalGetContentSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched content suggestions. The result list is ordered and
+     * the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder> + getContentSuggestionsBuilderList() { + return internalGetContentSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder> + internalGetContentSuggestionsFieldBuilder() { + if (contentSuggestionsBuilder_ == null) { + contentSuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder>( + contentSuggestions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + contentSuggestions_ = null; + } + return contentSuggestionsBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion> + recentSearchSuggestions_ = java.util.Collections.emptyList(); + + private void ensureRecentSearchSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + recentSearchSuggestions_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion>(recentSearchSuggestions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder> + recentSearchSuggestionsBuilder_; + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion> + getRecentSearchSuggestionsList() { + if (recentSearchSuggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentSearchSuggestions_); + } else { + return recentSearchSuggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public int getRecentSearchSuggestionsCount() { + if (recentSearchSuggestionsBuilder_ == null) { + return recentSearchSuggestions_.size(); + } else { + return recentSearchSuggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + getRecentSearchSuggestions(int index) { + if (recentSearchSuggestionsBuilder_ == null) { + return recentSearchSuggestions_.get(index); + } else { + return recentSearchSuggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder setRecentSearchSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + value) { + if (recentSearchSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.set(index, value); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder setRecentSearchSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder + builderForValue) { + if (recentSearchSuggestionsBuilder_ == null) { + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder addRecentSearchSuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + value) { + if (recentSearchSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.add(value); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder addRecentSearchSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + value) { + if (recentSearchSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.add(index, value); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder addRecentSearchSuggestions( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder + builderForValue) { + if (recentSearchSuggestionsBuilder_ == null) { + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.add(builderForValue.build()); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder addRecentSearchSuggestions( + int index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder + builderForValue) { + if (recentSearchSuggestionsBuilder_ == null) { + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder addAllRecentSearchSuggestions( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion> + values) { + if (recentSearchSuggestionsBuilder_ == null) { + ensureRecentSearchSuggestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentSearchSuggestions_); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder clearRecentSearchSuggestions() { + if (recentSearchSuggestionsBuilder_ == null) { + recentSearchSuggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public Builder removeRecentSearchSuggestions(int index) { + if (recentSearchSuggestionsBuilder_ == null) { + ensureRecentSearchSuggestionsIsMutable(); + recentSearchSuggestions_.remove(index); + onChanged(); + } else { + recentSearchSuggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder + getRecentSearchSuggestionsBuilder(int index) { + return internalGetRecentSearchSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder + getRecentSearchSuggestionsOrBuilder(int index) { + if (recentSearchSuggestionsBuilder_ == null) { + return recentSearchSuggestions_.get(index); + } else { + return recentSearchSuggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder> + getRecentSearchSuggestionsOrBuilderList() { + if (recentSearchSuggestionsBuilder_ != null) { + return recentSearchSuggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentSearchSuggestions_); + } + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder + addRecentSearchSuggestionsBuilder() { + return internalGetRecentSearchSuggestionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder + addRecentSearchSuggestionsBuilder(int index) { + return internalGetRecentSearchSuggestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.getDefaultInstance()); + } + + /** + * + * + *
+     * Results of the matched "recent search" suggestions. The result list is
+     * ordered and the first result is the top suggestion.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder> + getRecentSearchSuggestionsBuilderList() { + return internalGetRecentSearchSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + .Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder> + internalGetRecentSearchSuggestionsFieldBuilder() { + if (recentSearchSuggestionsBuilder_ == null) { + recentSearchSuggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestion.Builder, + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder>( + recentSearchSuggestions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + recentSearchSuggestions_ = null; + } + return recentSearchSuggestionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) + private static final com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse(); + } + + public static com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedCompleteQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponseOrBuilder.java new file mode 100644 index 000000000000..5279e85eef85 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AdvancedCompleteQueryResponseOrBuilder.java @@ -0,0 +1,354 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/completion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface AdvancedCompleteQueryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + java.util.List + getQuerySuggestionsList(); + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion + getQuerySuggestions(int index); + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + int getQuerySuggestionsCount(); + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .QuerySuggestionOrBuilder> + getQuerySuggestionsOrBuilderList(); + + /** + * + * + *
+   * Results of the matched query suggestions. The result list is ordered and
+   * the first result is a top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder + getQuerySuggestionsOrBuilder(int index); + + /** + * + * + *
+   * True if the returned suggestions are all tail suggestions.
+   *
+   * For tail matching to be triggered, include_tail_suggestions in the request
+   * must be true and there must be no suggestions that match the full query.
+   * 
+ * + * bool tail_match_triggered = 2; + * + * @return The tailMatchTriggered. + */ + boolean getTailMatchTriggered(); + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + java.util.List + getPeopleSuggestionsList(); + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion + getPeopleSuggestions(int index); + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + int getPeopleSuggestionsCount(); + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .PersonSuggestionOrBuilder> + getPeopleSuggestionsOrBuilderList(); + + /** + * + * + *
+   * Results of the matched people suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder + getPeopleSuggestionsOrBuilder(int index); + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion> + getContentSuggestionsList(); + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion + getContentSuggestions(int index); + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + int getContentSuggestionsCount(); + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .ContentSuggestionOrBuilder> + getContentSuggestionsOrBuilderList(); + + /** + * + * + *
+   * Results of the matched content suggestions. The result list is ordered and
+   * the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder + getContentSuggestionsOrBuilder(int index); + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion> + getRecentSearchSuggestionsList(); + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion + getRecentSearchSuggestions(int index); + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + int getRecentSearchSuggestionsCount(); + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse + .RecentSearchSuggestionOrBuilder> + getRecentSearchSuggestionsOrBuilderList(); + + /** + * + * + *
+   * Results of the matched "recent search" suggestions. The result list is
+   * ordered and the first result is the top suggestion.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5; + * + */ + com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilder + getRecentSearchSuggestionsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySetting.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySetting.java new file mode 100644 index 000000000000..2823de15f91e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySetting.java @@ -0,0 +1,1482 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/agent_gateway_setting.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Agent Gateway setting, which may be attached to Gemini Enterprise resources
+ * for egress control of Gemini Enterprise agents to agents and tools outside of
+ * Gemini Enterprise.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AgentGatewaySetting} + */ +@com.google.protobuf.Generated +public final class AgentGatewaySetting extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AgentGatewaySetting) + AgentGatewaySettingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentGatewaySetting"); + } + + // Use AgentGatewaySetting.newBuilder() to construct. + private AgentGatewaySetting(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGatewaySetting() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.class, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder.class); + } + + public interface AgentGatewayReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Immutable. The resource name of the agent gateway.
+     *
+     * Expected format:
+     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * Required. Immutable. The resource name of the agent gateway.
+     *
+     * Expected format:
+     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
+   * Reference to an Agent Gateway resource.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference} + */ + public static final class AgentGatewayReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) + AgentGatewayReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentGatewayReference"); + } + + // Use AgentGatewayReference.newBuilder() to construct. + private AgentGatewayReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGatewayReference() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.class, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Immutable. The resource name of the agent gateway.
+     *
+     * Expected format:
+     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Immutable. The resource name of the agent gateway.
+     *
+     * Expected format:
+     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference other = + (com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Reference to an Agent Gateway resource.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.class, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference build() { + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + buildPartial() { + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference result = + new com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference other) { + if (other + == com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * Required. Immutable. The resource name of the agent gateway.
+       *
+       * Expected format:
+       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+       * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Immutable. The resource name of the agent gateway.
+       *
+       * Expected format:
+       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+       * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Immutable. The resource name of the agent gateway.
+       *
+       * Expected format:
+       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+       * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Immutable. The resource name of the agent gateway.
+       *
+       * Expected format:
+       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+       * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Immutable. The resource name of the agent gateway.
+       *
+       * Expected format:
+       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
+       * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference) + private static final com.google.cloud.discoveryengine.v1.AgentGatewaySetting + .AgentGatewayReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference(); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGatewayReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DEFAULT_EGRESS_AGENT_GATEWAY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + defaultEgressAgentGateway_; + + /** + * + * + *
+   * Optional. The default egress agent gateway to use, when this setting is
+   * applied to a Gemini Enterprise resource.
+   *
+   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+   * must be AGENT_TO_ANYWHERE.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEgressAgentGateway field is set. + */ + @java.lang.Override + public boolean hasDefaultEgressAgentGateway() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The default egress agent gateway to use, when this setting is
+   * applied to a Gemini Enterprise resource.
+   *
+   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+   * must be AGENT_TO_ANYWHERE.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEgressAgentGateway. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + getDefaultEgressAgentGateway() { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } + + /** + * + * + *
+   * Optional. The default egress agent gateway to use, when this setting is
+   * applied to a Gemini Enterprise resource.
+   *
+   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+   * must be AGENT_TO_ANYWHERE.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReferenceOrBuilder + getDefaultEgressAgentGatewayOrBuilder() { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } + + 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, getDefaultEgressAgentGateway()); + } + 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, getDefaultEgressAgentGateway()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.AgentGatewaySetting)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AgentGatewaySetting other = + (com.google.cloud.discoveryengine.v1.AgentGatewaySetting) obj; + + if (hasDefaultEgressAgentGateway() != other.hasDefaultEgressAgentGateway()) return false; + if (hasDefaultEgressAgentGateway()) { + if (!getDefaultEgressAgentGateway().equals(other.getDefaultEgressAgentGateway())) + 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 (hasDefaultEgressAgentGateway()) { + hash = (37 * hash) + DEFAULT_EGRESS_AGENT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getDefaultEgressAgentGateway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Agent Gateway setting, which may be attached to Gemini Enterprise resources
+   * for egress control of Gemini Enterprise agents to agents and tools outside of
+   * Gemini Enterprise.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AgentGatewaySetting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AgentGatewaySetting) + com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.class, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.AgentGatewaySetting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultEgressAgentGatewayFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultEgressAgentGateway_ = null; + if (defaultEgressAgentGatewayBuilder_ != null) { + defaultEgressAgentGatewayBuilder_.dispose(); + defaultEgressAgentGatewayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting build() { + com.google.cloud.discoveryengine.v1.AgentGatewaySetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting buildPartial() { + com.google.cloud.discoveryengine.v1.AgentGatewaySetting result = + new com.google.cloud.discoveryengine.v1.AgentGatewaySetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.AgentGatewaySetting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultEgressAgentGateway_ = + defaultEgressAgentGatewayBuilder_ == null + ? defaultEgressAgentGateway_ + : defaultEgressAgentGatewayBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.AgentGatewaySetting) { + return mergeFrom((com.google.cloud.discoveryengine.v1.AgentGatewaySetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AgentGatewaySetting other) { + if (other == com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance()) + return this; + if (other.hasDefaultEgressAgentGateway()) { + mergeDefaultEgressAgentGateway(other.getDefaultEgressAgentGateway()); + } + 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( + internalGetDefaultEgressAgentGatewayFieldBuilder().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.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + defaultEgressAgentGateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.Builder, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReferenceOrBuilder> + defaultEgressAgentGatewayBuilder_; + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEgressAgentGateway field is set. + */ + public boolean hasDefaultEgressAgentGateway() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEgressAgentGateway. + */ + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + getDefaultEgressAgentGateway() { + if (defaultEgressAgentGatewayBuilder_ == null) { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } else { + return defaultEgressAgentGatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultEgressAgentGateway( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference value) { + if (defaultEgressAgentGatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultEgressAgentGateway_ = value; + } else { + defaultEgressAgentGatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultEgressAgentGateway( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.Builder + builderForValue) { + if (defaultEgressAgentGatewayBuilder_ == null) { + defaultEgressAgentGateway_ = builderForValue.build(); + } else { + defaultEgressAgentGatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultEgressAgentGateway( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference value) { + if (defaultEgressAgentGatewayBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && defaultEgressAgentGateway_ != null + && defaultEgressAgentGateway_ + != com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance()) { + getDefaultEgressAgentGatewayBuilder().mergeFrom(value); + } else { + defaultEgressAgentGateway_ = value; + } + } else { + defaultEgressAgentGatewayBuilder_.mergeFrom(value); + } + if (defaultEgressAgentGateway_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultEgressAgentGateway() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultEgressAgentGateway_ = null; + if (defaultEgressAgentGatewayBuilder_ != null) { + defaultEgressAgentGatewayBuilder_.dispose(); + defaultEgressAgentGatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.Builder + getDefaultEgressAgentGatewayBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDefaultEgressAgentGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReferenceOrBuilder + getDefaultEgressAgentGatewayOrBuilder() { + if (defaultEgressAgentGatewayBuilder_ != null) { + return defaultEgressAgentGatewayBuilder_.getMessageOrBuilder(); + } else { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } + } + + /** + * + * + *
+     * Optional. The default egress agent gateway to use, when this setting is
+     * applied to a Gemini Enterprise resource.
+     *
+     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+     * must be AGENT_TO_ANYWHERE.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference.Builder, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReferenceOrBuilder> + internalGetDefaultEgressAgentGatewayFieldBuilder() { + if (defaultEgressAgentGatewayBuilder_ == null) { + defaultEgressAgentGatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + .Builder, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting + .AgentGatewayReferenceOrBuilder>( + getDefaultEgressAgentGateway(), getParentForChildren(), isClean()); + defaultEgressAgentGateway_ = null; + } + return defaultEgressAgentGatewayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AgentGatewaySetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AgentGatewaySetting) + private static final com.google.cloud.discoveryengine.v1.AgentGatewaySetting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.AgentGatewaySetting(); + } + + public static com.google.cloud.discoveryengine.v1.AgentGatewaySetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGatewaySetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingOrBuilder.java new file mode 100644 index 000000000000..8af825844525 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/agent_gateway_setting.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface AgentGatewaySettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AgentGatewaySetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The default egress agent gateway to use, when this setting is
+   * applied to a Gemini Enterprise resource.
+   *
+   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+   * must be AGENT_TO_ANYWHERE.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEgressAgentGateway field is set. + */ + boolean hasDefaultEgressAgentGateway(); + + /** + * + * + *
+   * Optional. The default egress agent gateway to use, when this setting is
+   * applied to a Gemini Enterprise resource.
+   *
+   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+   * must be AGENT_TO_ANYWHERE.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEgressAgentGateway. + */ + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference + getDefaultEgressAgentGateway(); + + /** + * + * + *
+   * Optional. The default egress agent gateway to use, when this setting is
+   * applied to a Gemini Enterprise resource.
+   *
+   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
+   * must be AGENT_TO_ANYWHERE.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.AgentGatewayReferenceOrBuilder + getDefaultEgressAgentGatewayOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingProto.java new file mode 100644 index 000000000000..d70960226e14 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AgentGatewaySettingProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/agent_gateway_setting.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class AgentGatewaySettingProto extends com.google.protobuf.GeneratedFile { + private AgentGatewaySettingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentGatewaySettingProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/discoveryengine/v1/agent_" + + "gateway_setting.proto\022\037google.cloud.disc" + + "overyengine.v1\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\"\353\001\n\023A" + + "gentGatewaySetting\022v\n\034default_egress_age" + + "nt_gateway\030\001 \001(\0132J.google.cloud.discover" + + "yengine.v1.AgentGatewaySetting.AgentGate" + + "wayReferenceB\004\342A\001\001\032\\\n\025AgentGatewayRefere" + + "nce\022C\n\004name\030\001 \001(\tB5\342A\002\002\005\372A-\n+networkserv" + + "ices.googleapis.com/AgentGatewayB\213\002\n#com" + + ".google.cloud.discoveryengine.v1B\030AgentG" + + "atewaySettingProtoP\001ZMcloud.google.com/g" + + "o/discoveryengine/apiv1/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037" + + "Google.Cloud.DiscoveryEngine.V1\312\002\037Google" + + "\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Clou" + + "d::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor, + new java.lang.String[] { + "DefaultEgressAgentGateway", + }); + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_descriptor = + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AgentGatewaySetting_AgentGatewayReference_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfig.java new file mode 100644 index 000000000000..a8b6b4f80764 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfig.java @@ -0,0 +1,2211 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * The connector level alert config.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AlertPolicyConfig} + */ +@com.google.protobuf.Generated +public final class AlertPolicyConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AlertPolicyConfig) + AlertPolicyConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlertPolicyConfig"); + } + + // Use AlertPolicyConfig.newBuilder() to construct. + private AlertPolicyConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlertPolicyConfig() { + alertPolicyName_ = ""; + alertEnrollments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.class, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder.class); + } + + public interface AlertEnrollmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Immutable. The id of an alert.
+     * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The alertId. + */ + java.lang.String getAlertId(); + + /** + * + * + *
+     * Immutable. The id of an alert.
+     * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for alertId. + */ + com.google.protobuf.ByteString getAlertIdBytes(); + + /** + * + * + *
+     * Required. The enrollment status of a customer.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for enrollState. + */ + int getEnrollStateValue(); + + /** + * + * + *
+     * Required. The enrollment status of a customer.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enrollState. + */ + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + getEnrollState(); + } + + /** + * + * + *
+   * The alert enrollment status.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment} + */ + public static final class AlertEnrollment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) + AlertEnrollmentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlertEnrollment"); + } + + // Use AlertEnrollment.newBuilder() to construct. + private AlertEnrollment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlertEnrollment() { + alertId_ = ""; + enrollState_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.class, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder.class); + } + + /** + * + * + *
+     * The enrollment status enum for the alert.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates} + */ + public enum EnrollStates implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. Used for customers who have not responded to the
+       * alert policy.
+       * 
+ * + * ENROLL_STATES_UNSPECIFIED = 0; + */ + ENROLL_STATES_UNSPECIFIED(0), + /** + * + * + *
+       * Customer is enrolled in this policy.
+       * 
+ * + * ENROLLED = 1; + */ + ENROLLED(1), + /** + * + * + *
+       * Customer declined this policy.
+       * 
+ * + * DECLINED = 2; + */ + DECLINED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "EnrollStates"); + } + + /** + * + * + *
+       * Default value. Used for customers who have not responded to the
+       * alert policy.
+       * 
+ * + * ENROLL_STATES_UNSPECIFIED = 0; + */ + public static final int ENROLL_STATES_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Customer is enrolled in this policy.
+       * 
+ * + * ENROLLED = 1; + */ + public static final int ENROLLED_VALUE = 1; + + /** + * + * + *
+       * Customer declined this policy.
+       * 
+ * + * DECLINED = 2; + */ + public static final int DECLINED_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 EnrollStates 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 EnrollStates forNumber(int value) { + switch (value) { + case 0: + return ENROLL_STATES_UNSPECIFIED; + case 1: + return ENROLLED; + case 2: + return DECLINED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnrollStates findValueByNumber(int number) { + return EnrollStates.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EnrollStates[] VALUES = values(); + + public static EnrollStates 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 EnrollStates(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates) + } + + public static final int ALERT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object alertId_ = ""; + + /** + * + * + *
+     * Immutable. The id of an alert.
+     * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The alertId. + */ + @java.lang.Override + public java.lang.String getAlertId() { + java.lang.Object ref = alertId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertId_ = s; + return s; + } + } + + /** + * + * + *
+     * Immutable. The id of an alert.
+     * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for alertId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlertIdBytes() { + java.lang.Object ref = alertId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alertId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENROLL_STATE_FIELD_NUMBER = 5; + private int enrollState_ = 0; + + /** + * + * + *
+     * Required. The enrollment status of a customer.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for enrollState. + */ + @java.lang.Override + public int getEnrollStateValue() { + return enrollState_; + } + + /** + * + * + *
+     * Required. The enrollment status of a customer.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enrollState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + getEnrollState() { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates result = + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + .forNumber(enrollState_); + return result == null + ? com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alertId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, alertId_); + } + if (enrollState_ + != com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + .ENROLL_STATES_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, enrollState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(alertId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, alertId_); + } + if (enrollState_ + != com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + .ENROLL_STATES_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, enrollState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment other = + (com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) obj; + + if (!getAlertId().equals(other.getAlertId())) return false; + if (enrollState_ != other.enrollState_) 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) + ALERT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAlertId().hashCode(); + hash = (37 * hash) + ENROLL_STATE_FIELD_NUMBER; + hash = (53 * hash) + enrollState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The alert enrollment status.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.class, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alertId_ = ""; + enrollState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment build() { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment buildPartial() { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment result = + new com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alertId_ = alertId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enrollState_ = enrollState_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment other) { + if (other + == com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + .getDefaultInstance()) return this; + if (!other.getAlertId().isEmpty()) { + alertId_ = other.alertId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.enrollState_ != 0) { + setEnrollStateValue(other.getEnrollStateValue()); + } + 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: + { + alertId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 40: + { + enrollState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 40 + 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 alertId_ = ""; + + /** + * + * + *
+       * Immutable. The id of an alert.
+       * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The alertId. + */ + public java.lang.String getAlertId() { + java.lang.Object ref = alertId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Immutable. The id of an alert.
+       * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for alertId. + */ + public com.google.protobuf.ByteString getAlertIdBytes() { + java.lang.Object ref = alertId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alertId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Immutable. The id of an alert.
+       * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The alertId to set. + * @return This builder for chaining. + */ + public Builder setAlertId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alertId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Immutable. The id of an alert.
+       * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAlertId() { + alertId_ = getDefaultInstance().getAlertId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Immutable. The id of an alert.
+       * 
+ * + * string alert_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for alertId to set. + * @return This builder for chaining. + */ + public Builder setAlertIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alertId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int enrollState_ = 0; + + /** + * + * + *
+       * Required. The enrollment status of a customer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for enrollState. + */ + @java.lang.Override + public int getEnrollStateValue() { + return enrollState_; + } + + /** + * + * + *
+       * Required. The enrollment status of a customer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for enrollState to set. + * @return This builder for chaining. + */ + public Builder setEnrollStateValue(int value) { + enrollState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The enrollment status of a customer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enrollState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + getEnrollState() { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates result = + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + .forNumber(enrollState_); + return result == null + ? com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Required. The enrollment status of a customer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enrollState to set. + * @return This builder for chaining. + */ + public Builder setEnrollState( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + enrollState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The enrollment status of a customer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStates enroll_state = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnrollState() { + bitField0_ = (bitField0_ & ~0x00000002); + enrollState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment) + private static final com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment(); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertEnrollment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ALERT_POLICY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object alertPolicyName_ = ""; + + /** + * + * + *
+   * Immutable. The fully qualified resource name of the AlertPolicy.
+   * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The alertPolicyName. + */ + @java.lang.Override + public java.lang.String getAlertPolicyName() { + java.lang.Object ref = alertPolicyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertPolicyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. The fully qualified resource name of the AlertPolicy.
+   * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for alertPolicyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlertPolicyNameBytes() { + java.lang.Object ref = alertPolicyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alertPolicyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALERT_ENROLLMENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + alertEnrollments_; + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAlertEnrollmentsList() { + return alertEnrollments_; + } + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder> + getAlertEnrollmentsOrBuilderList() { + return alertEnrollments_; + } + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAlertEnrollmentsCount() { + return alertEnrollments_.size(); + } + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment getAlertEnrollments( + int index) { + return alertEnrollments_.get(index); + } + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder + getAlertEnrollmentsOrBuilder(int index) { + return alertEnrollments_.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.GeneratedMessage.isStringEmpty(alertPolicyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, alertPolicyName_); + } + for (int i = 0; i < alertEnrollments_.size(); i++) { + output.writeMessage(2, alertEnrollments_.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.GeneratedMessage.isStringEmpty(alertPolicyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, alertPolicyName_); + } + for (int i = 0; i < alertEnrollments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, alertEnrollments_.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.google.cloud.discoveryengine.v1.AlertPolicyConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AlertPolicyConfig other = + (com.google.cloud.discoveryengine.v1.AlertPolicyConfig) obj; + + if (!getAlertPolicyName().equals(other.getAlertPolicyName())) return false; + if (!getAlertEnrollmentsList().equals(other.getAlertEnrollmentsList())) 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) + ALERT_POLICY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAlertPolicyName().hashCode(); + if (getAlertEnrollmentsCount() > 0) { + hash = (37 * hash) + ALERT_ENROLLMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAlertEnrollmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The connector level alert config.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AlertPolicyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AlertPolicyConfig) + com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.class, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.AlertPolicyConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alertPolicyName_ = ""; + if (alertEnrollmentsBuilder_ == null) { + alertEnrollments_ = java.util.Collections.emptyList(); + } else { + alertEnrollments_ = null; + alertEnrollmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AlertPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig build() { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig buildPartial() { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig result = + new com.google.cloud.discoveryengine.v1.AlertPolicyConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig result) { + if (alertEnrollmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + alertEnrollments_ = java.util.Collections.unmodifiableList(alertEnrollments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.alertEnrollments_ = alertEnrollments_; + } else { + result.alertEnrollments_ = alertEnrollmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.AlertPolicyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alertPolicyName_ = alertPolicyName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.AlertPolicyConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.AlertPolicyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AlertPolicyConfig other) { + if (other == com.google.cloud.discoveryengine.v1.AlertPolicyConfig.getDefaultInstance()) + return this; + if (!other.getAlertPolicyName().isEmpty()) { + alertPolicyName_ = other.alertPolicyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (alertEnrollmentsBuilder_ == null) { + if (!other.alertEnrollments_.isEmpty()) { + if (alertEnrollments_.isEmpty()) { + alertEnrollments_ = other.alertEnrollments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.addAll(other.alertEnrollments_); + } + onChanged(); + } + } else { + if (!other.alertEnrollments_.isEmpty()) { + if (alertEnrollmentsBuilder_.isEmpty()) { + alertEnrollmentsBuilder_.dispose(); + alertEnrollmentsBuilder_ = null; + alertEnrollments_ = other.alertEnrollments_; + bitField0_ = (bitField0_ & ~0x00000002); + alertEnrollmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAlertEnrollmentsFieldBuilder() + : null; + } else { + alertEnrollmentsBuilder_.addAllMessages(other.alertEnrollments_); + } + } + } + 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: + { + alertPolicyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + .parser(), + extensionRegistry); + if (alertEnrollmentsBuilder_ == null) { + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.add(m); + } else { + alertEnrollmentsBuilder_.addMessage(m); + } + 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 alertPolicyName_ = ""; + + /** + * + * + *
+     * Immutable. The fully qualified resource name of the AlertPolicy.
+     * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The alertPolicyName. + */ + public java.lang.String getAlertPolicyName() { + java.lang.Object ref = alertPolicyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertPolicyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. The fully qualified resource name of the AlertPolicy.
+     * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for alertPolicyName. + */ + public com.google.protobuf.ByteString getAlertPolicyNameBytes() { + java.lang.Object ref = alertPolicyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alertPolicyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. The fully qualified resource name of the AlertPolicy.
+     * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The alertPolicyName to set. + * @return This builder for chaining. + */ + public Builder setAlertPolicyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alertPolicyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The fully qualified resource name of the AlertPolicy.
+     * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAlertPolicyName() { + alertPolicyName_ = getDefaultInstance().getAlertPolicyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The fully qualified resource name of the AlertPolicy.
+     * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for alertPolicyName to set. + * @return This builder for chaining. + */ + public Builder setAlertPolicyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alertPolicyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + alertEnrollments_ = java.util.Collections.emptyList(); + + private void ensureAlertEnrollmentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + alertEnrollments_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment>( + alertEnrollments_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder> + alertEnrollmentsBuilder_; + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlertEnrollmentsList() { + if (alertEnrollmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(alertEnrollments_); + } else { + return alertEnrollmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAlertEnrollmentsCount() { + if (alertEnrollmentsBuilder_ == null) { + return alertEnrollments_.size(); + } else { + return alertEnrollmentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + getAlertEnrollments(int index) { + if (alertEnrollmentsBuilder_ == null) { + return alertEnrollments_.get(index); + } else { + return alertEnrollmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlertEnrollments( + int index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment value) { + if (alertEnrollmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.set(index, value); + onChanged(); + } else { + alertEnrollmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlertEnrollments( + int index, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + builderForValue) { + if (alertEnrollmentsBuilder_ == null) { + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.set(index, builderForValue.build()); + onChanged(); + } else { + alertEnrollmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertEnrollments( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment value) { + if (alertEnrollmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.add(value); + onChanged(); + } else { + alertEnrollmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertEnrollments( + int index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment value) { + if (alertEnrollmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.add(index, value); + onChanged(); + } else { + alertEnrollmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertEnrollments( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + builderForValue) { + if (alertEnrollmentsBuilder_ == null) { + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.add(builderForValue.build()); + onChanged(); + } else { + alertEnrollmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertEnrollments( + int index, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + builderForValue) { + if (alertEnrollmentsBuilder_ == null) { + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.add(index, builderForValue.build()); + onChanged(); + } else { + alertEnrollmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAlertEnrollments( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment> + values) { + if (alertEnrollmentsBuilder_ == null) { + ensureAlertEnrollmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alertEnrollments_); + onChanged(); + } else { + alertEnrollmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAlertEnrollments() { + if (alertEnrollmentsBuilder_ == null) { + alertEnrollments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + alertEnrollmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAlertEnrollments(int index) { + if (alertEnrollmentsBuilder_ == null) { + ensureAlertEnrollmentsIsMutable(); + alertEnrollments_.remove(index); + onChanged(); + } else { + alertEnrollmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + getAlertEnrollmentsBuilder(int index) { + return internalGetAlertEnrollmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder + getAlertEnrollmentsOrBuilder(int index) { + if (alertEnrollmentsBuilder_ == null) { + return alertEnrollments_.get(index); + } else { + return alertEnrollmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder> + getAlertEnrollmentsOrBuilderList() { + if (alertEnrollmentsBuilder_ != null) { + return alertEnrollmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alertEnrollments_); + } + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + addAlertEnrollmentsBuilder() { + return internalGetAlertEnrollmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder + addAlertEnrollmentsBuilder(int index) { + return internalGetAlertEnrollmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The enrollment states of each alert.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder> + getAlertEnrollmentsBuilderList() { + return internalGetAlertEnrollmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder> + internalGetAlertEnrollmentsFieldBuilder() { + if (alertEnrollmentsBuilder_ == null) { + alertEnrollmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment.Builder, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder>( + alertEnrollments_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + alertEnrollments_ = null; + } + return alertEnrollmentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AlertPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AlertPolicyConfig) + private static final com.google.cloud.discoveryengine.v1.AlertPolicyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.AlertPolicyConfig(); + } + + public static com.google.cloud.discoveryengine.v1.AlertPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..134fcba7ad32 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AlertPolicyConfigOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface AlertPolicyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AlertPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The fully qualified resource name of the AlertPolicy.
+   * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The alertPolicyName. + */ + java.lang.String getAlertPolicyName(); + + /** + * + * + *
+   * Immutable. The fully qualified resource name of the AlertPolicy.
+   * 
+ * + * string alert_policy_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for alertPolicyName. + */ + com.google.protobuf.ByteString getAlertPolicyNameBytes(); + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAlertEnrollmentsList(); + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment getAlertEnrollments( + int index); + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAlertEnrollmentsCount(); + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder> + getAlertEnrollmentsOrBuilderList(); + + /** + * + * + *
+   * Optional. The enrollment states of each alert.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollment alert_enrollments = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentOrBuilder + getAlertEnrollmentsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpec.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpec.java new file mode 100644 index 000000000000..62e03e0e3101 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpec.java @@ -0,0 +1,2399 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * The specification for answer generation.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AnswerGenerationSpec} + */ +@com.google.protobuf.Generated +public final class AnswerGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AnswerGenerationSpec) + AnswerGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AnswerGenerationSpec"); + } + + // Use AnswerGenerationSpec.newBuilder() to construct. + private AnswerGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AnswerGenerationSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.class, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder.class); + } + + public interface UserDefinedClassifierSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Whether or not to enable and include user defined classifier.
+     * 
+ * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableUserDefinedClassifier. + */ + boolean getEnableUserDefinedClassifier(); + + /** + * + * + *
+     * Optional. The preamble to be used for the user defined classifier.
+     * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preamble. + */ + java.lang.String getPreamble(); + + /** + * + * + *
+     * Optional. The preamble to be used for the user defined classifier.
+     * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preamble. + */ + com.google.protobuf.ByteString getPreambleBytes(); + + /** + * + * + *
+     * Optional. The model id to be used for the user defined classifier.
+     * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + + /** + * + * + *
+     * Optional. The model id to be used for the user defined classifier.
+     * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
+     * Optional. The task marker to be used for the user defined classifier.
+     * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskMarker. + */ + java.lang.String getTaskMarker(); + + /** + * + * + *
+     * Optional. The task marker to be used for the user defined classifier.
+     * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskMarker. + */ + com.google.protobuf.ByteString getTaskMarkerBytes(); + + /** + * + * + *
+     * Optional. The top-p value to be used for the user defined classifier.
+     * 
+ * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topP. + */ + double getTopP(); + + /** + * + * + *
+     * Optional. The top-k value to be used for the user defined classifier.
+     * 
+ * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + long getTopK(); + + /** + * + * + *
+     * Optional. The temperature value to be used for the user defined
+     * classifier.
+     * 
+ * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + double getTemperature(); + + /** + * + * + *
+     * Optional. The seed value to be used for the user defined classifier.
+     * 
+ * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The seed. + */ + int getSeed(); + } + + /** + * + * + *
+   * The specification for user defined classifier.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec} + */ + public static final class UserDefinedClassifierSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) + UserDefinedClassifierSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UserDefinedClassifierSpec"); + } + + // Use UserDefinedClassifierSpec.newBuilder() to construct. + private UserDefinedClassifierSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserDefinedClassifierSpec() { + preamble_ = ""; + modelId_ = ""; + taskMarker_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .class, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder.class); + } + + public static final int ENABLE_USER_DEFINED_CLASSIFIER_FIELD_NUMBER = 1; + private boolean enableUserDefinedClassifier_ = false; + + /** + * + * + *
+     * Optional. Whether or not to enable and include user defined classifier.
+     * 
+ * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableUserDefinedClassifier. + */ + @java.lang.Override + public boolean getEnableUserDefinedClassifier() { + return enableUserDefinedClassifier_; + } + + public static final int PREAMBLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object preamble_ = ""; + + /** + * + * + *
+     * Optional. The preamble to be used for the user defined classifier.
+     * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preamble. + */ + @java.lang.Override + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preamble_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The preamble to be used for the user defined classifier.
+     * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preamble. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; + + /** + * + * + *
+     * Optional. The model id to be used for the user defined classifier.
+     * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The model id to be used for the user defined classifier.
+     * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_MARKER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskMarker_ = ""; + + /** + * + * + *
+     * Optional. The task marker to be used for the user defined classifier.
+     * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskMarker. + */ + @java.lang.Override + public java.lang.String getTaskMarker() { + java.lang.Object ref = taskMarker_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskMarker_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The task marker to be used for the user defined classifier.
+     * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskMarker. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTaskMarkerBytes() { + java.lang.Object ref = taskMarker_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskMarker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOP_P_FIELD_NUMBER = 5; + private double topP_ = 0D; + + /** + * + * + *
+     * Optional. The top-p value to be used for the user defined classifier.
+     * 
+ * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + public static final int TOP_K_FIELD_NUMBER = 6; + private long topK_ = 0L; + + /** + * + * + *
+     * Optional. The top-k value to be used for the user defined classifier.
+     * 
+ * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + + public static final int TEMPERATURE_FIELD_NUMBER = 7; + private double temperature_ = 0D; + + /** + * + * + *
+     * Optional. The temperature value to be used for the user defined
+     * classifier.
+     * 
+ * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int SEED_FIELD_NUMBER = 8; + private int seed_ = 0; + + /** + * + * + *
+     * Optional. The seed value to be used for the user defined classifier.
+     * 
+ * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The seed. + */ + @java.lang.Override + public int getSeed() { + return seed_; + } + + 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 (enableUserDefinedClassifier_ != false) { + output.writeBool(1, enableUserDefinedClassifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, preamble_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, modelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskMarker_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, taskMarker_); + } + if (java.lang.Double.doubleToRawLongBits(topP_) != 0) { + output.writeDouble(5, topP_); + } + if (topK_ != 0L) { + output.writeInt64(6, topK_); + } + if (java.lang.Double.doubleToRawLongBits(temperature_) != 0) { + output.writeDouble(7, temperature_); + } + if (seed_ != 0) { + output.writeInt32(8, seed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableUserDefinedClassifier_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableUserDefinedClassifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, preamble_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, modelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskMarker_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, taskMarker_); + } + if (java.lang.Double.doubleToRawLongBits(topP_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, topP_); + } + if (topK_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, topK_); + } + if (java.lang.Double.doubleToRawLongBits(temperature_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, temperature_); + } + if (seed_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, seed_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec other = + (com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) obj; + + if (getEnableUserDefinedClassifier() != other.getEnableUserDefinedClassifier()) return false; + if (!getPreamble().equals(other.getPreamble())) return false; + if (!getModelId().equals(other.getModelId())) return false; + if (!getTaskMarker().equals(other.getTaskMarker())) return false; + if (java.lang.Double.doubleToLongBits(getTopP()) + != java.lang.Double.doubleToLongBits(other.getTopP())) return false; + if (getTopK() != other.getTopK()) return false; + if (java.lang.Double.doubleToLongBits(getTemperature()) + != java.lang.Double.doubleToLongBits(other.getTemperature())) return false; + if (getSeed() != other.getSeed()) 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) + ENABLE_USER_DEFINED_CLASSIFIER_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableUserDefinedClassifier()); + hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; + hash = (53 * hash) + getPreamble().hashCode(); + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + TASK_MARKER_FIELD_NUMBER; + hash = (53 * hash) + getTaskMarker().hashCode(); + hash = (37 * hash) + TOP_P_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTopP())); + hash = (37 * hash) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTopK()); + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTemperature())); + hash = (37 * hash) + SEED_FIELD_NUMBER; + hash = (53 * hash) + getSeed(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The specification for user defined classifier.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .class, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableUserDefinedClassifier_ = false; + preamble_ = ""; + modelId_ = ""; + taskMarker_ = ""; + topP_ = 0D; + topK_ = 0L; + temperature_ = 0D; + seed_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + build() { + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec result = + new com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableUserDefinedClassifier_ = enableUserDefinedClassifier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preamble_ = preamble_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.taskMarker_ = taskMarker_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.topP_ = topP_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.topK_ = topK_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.temperature_ = temperature_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.seed_ = seed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance()) return this; + if (other.getEnableUserDefinedClassifier() != false) { + setEnableUserDefinedClassifier(other.getEnableUserDefinedClassifier()); + } + if (!other.getPreamble().isEmpty()) { + preamble_ = other.preamble_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTaskMarker().isEmpty()) { + taskMarker_ = other.taskMarker_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getTopP()) != 0) { + setTopP(other.getTopP()); + } + if (other.getTopK() != 0L) { + setTopK(other.getTopK()); + } + if (java.lang.Double.doubleToRawLongBits(other.getTemperature()) != 0) { + setTemperature(other.getTemperature()); + } + if (other.getSeed() != 0) { + setSeed(other.getSeed()); + } + 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: + { + enableUserDefinedClassifier_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + preamble_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + modelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + taskMarker_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 41: + { + topP_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 48: + { + topK_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57: + { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 64: + { + seed_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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 enableUserDefinedClassifier_; + + /** + * + * + *
+       * Optional. Whether or not to enable and include user defined classifier.
+       * 
+ * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableUserDefinedClassifier. + */ + @java.lang.Override + public boolean getEnableUserDefinedClassifier() { + return enableUserDefinedClassifier_; + } + + /** + * + * + *
+       * Optional. Whether or not to enable and include user defined classifier.
+       * 
+ * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableUserDefinedClassifier to set. + * @return This builder for chaining. + */ + public Builder setEnableUserDefinedClassifier(boolean value) { + + enableUserDefinedClassifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether or not to enable and include user defined classifier.
+       * 
+ * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableUserDefinedClassifier() { + bitField0_ = (bitField0_ & ~0x00000001); + enableUserDefinedClassifier_ = false; + onChanged(); + return this; + } + + private java.lang.Object preamble_ = ""; + + /** + * + * + *
+       * Optional. The preamble to be used for the user defined classifier.
+       * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preamble. + */ + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preamble_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The preamble to be used for the user defined classifier.
+       * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preamble. + */ + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The preamble to be used for the user defined classifier.
+       * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preamble to set. + * @return This builder for chaining. + */ + public Builder setPreamble(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + preamble_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The preamble to be used for the user defined classifier.
+       * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreamble() { + preamble_ = getDefaultInstance().getPreamble(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The preamble to be used for the user defined classifier.
+       * 
+ * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for preamble to set. + * @return This builder for chaining. + */ + public Builder setPreambleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + preamble_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object modelId_ = ""; + + /** + * + * + *
+       * Optional. The model id to be used for the user defined classifier.
+       * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The model id to be used for the user defined classifier.
+       * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The model id to be used for the user defined classifier.
+       * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The model id to be used for the user defined classifier.
+       * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The model id to be used for the user defined classifier.
+       * 
+ * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object taskMarker_ = ""; + + /** + * + * + *
+       * Optional. The task marker to be used for the user defined classifier.
+       * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskMarker. + */ + public java.lang.String getTaskMarker() { + java.lang.Object ref = taskMarker_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskMarker_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The task marker to be used for the user defined classifier.
+       * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskMarker. + */ + public com.google.protobuf.ByteString getTaskMarkerBytes() { + java.lang.Object ref = taskMarker_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskMarker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The task marker to be used for the user defined classifier.
+       * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The taskMarker to set. + * @return This builder for chaining. + */ + public Builder setTaskMarker(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + taskMarker_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The task marker to be used for the user defined classifier.
+       * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTaskMarker() { + taskMarker_ = getDefaultInstance().getTaskMarker(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The task marker to be used for the user defined classifier.
+       * 
+ * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for taskMarker to set. + * @return This builder for chaining. + */ + public Builder setTaskMarkerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + taskMarker_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double topP_; + + /** + * + * + *
+       * Optional. The top-p value to be used for the user defined classifier.
+       * 
+ * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + /** + * + * + *
+       * Optional. The top-p value to be used for the user defined classifier.
+       * 
+ * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The top-p value to be used for the user defined classifier.
+       * 
+ * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000010); + topP_ = 0D; + onChanged(); + return this; + } + + private long topK_; + + /** + * + * + *
+       * Optional. The top-k value to be used for the user defined classifier.
+       * 
+ * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + + /** + * + * + *
+       * Optional. The top-k value to be used for the user defined classifier.
+       * 
+ * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(long value) { + + topK_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The top-k value to be used for the user defined classifier.
+       * 
+ * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000020); + topK_ = 0L; + onChanged(); + return this; + } + + private double temperature_; + + /** + * + * + *
+       * Optional. The temperature value to be used for the user defined
+       * classifier.
+       * 
+ * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + /** + * + * + *
+       * Optional. The temperature value to be used for the user defined
+       * classifier.
+       * 
+ * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The temperature value to be used for the user defined
+       * classifier.
+       * 
+ * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000040); + temperature_ = 0D; + onChanged(); + return this; + } + + private int seed_; + + /** + * + * + *
+       * Optional. The seed value to be used for the user defined classifier.
+       * 
+ * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The seed. + */ + @java.lang.Override + public int getSeed() { + return seed_; + } + + /** + * + * + *
+       * Optional. The seed value to be used for the user defined classifier.
+       * 
+ * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The seed to set. + * @return This builder for chaining. + */ + public Builder setSeed(int value) { + + seed_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The seed value to be used for the user defined classifier.
+       * 
+ * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSeed() { + bitField0_ = (bitField0_ & ~0x00000080); + seed_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec) + private static final com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec(); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDefinedClassifierSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int USER_DEFINED_CLASSIFIER_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + userDefinedClassifierSpec_; + + /** + * + * + *
+   * Optional. The specification for user specified classifier spec.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedClassifierSpec field is set. + */ + @java.lang.Override + public boolean hasUserDefinedClassifierSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The specification for user specified classifier spec.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedClassifierSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + getUserDefinedClassifierSpec() { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } + + /** + * + * + *
+   * Optional. The specification for user specified classifier spec.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpecOrBuilder + getUserDefinedClassifierSpecOrBuilder() { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } + + 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, getUserDefinedClassifierSpec()); + } + 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, getUserDefinedClassifierSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.AnswerGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec other = + (com.google.cloud.discoveryengine.v1.AnswerGenerationSpec) obj; + + if (hasUserDefinedClassifierSpec() != other.hasUserDefinedClassifierSpec()) return false; + if (hasUserDefinedClassifierSpec()) { + if (!getUserDefinedClassifierSpec().equals(other.getUserDefinedClassifierSpec())) + 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 (hasUserDefinedClassifierSpec()) { + hash = (37 * hash) + USER_DEFINED_CLASSIFIER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getUserDefinedClassifierSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The specification for answer generation.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.AnswerGenerationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AnswerGenerationSpec) + com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.class, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserDefinedClassifierSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userDefinedClassifierSpec_ = null; + if (userDefinedClassifierSpecBuilder_ != null) { + userDefinedClassifierSpecBuilder_.dispose(); + userDefinedClassifierSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec build() { + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec buildPartial() { + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec result = + new com.google.cloud.discoveryengine.v1.AnswerGenerationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.AnswerGenerationSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userDefinedClassifierSpec_ = + userDefinedClassifierSpecBuilder_ == null + ? userDefinedClassifierSpec_ + : userDefinedClassifierSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.AnswerGenerationSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1.AnswerGenerationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AnswerGenerationSpec other) { + if (other == com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance()) + return this; + if (other.hasUserDefinedClassifierSpec()) { + mergeUserDefinedClassifierSpec(other.getUserDefinedClassifierSpec()); + } + 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( + internalGetUserDefinedClassifierSpecFieldBuilder().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.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + userDefinedClassifierSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder> + userDefinedClassifierSpecBuilder_; + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedClassifierSpec field is set. + */ + public boolean hasUserDefinedClassifierSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedClassifierSpec. + */ + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + getUserDefinedClassifierSpec() { + if (userDefinedClassifierSpecBuilder_ == null) { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } else { + return userDefinedClassifierSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDefinedClassifierSpec( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec value) { + if (userDefinedClassifierSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userDefinedClassifierSpec_ = value; + } else { + userDefinedClassifierSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDefinedClassifierSpec( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec.Builder + builderForValue) { + if (userDefinedClassifierSpecBuilder_ == null) { + userDefinedClassifierSpec_ = builderForValue.build(); + } else { + userDefinedClassifierSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserDefinedClassifierSpec( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec value) { + if (userDefinedClassifierSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && userDefinedClassifierSpec_ != null + && userDefinedClassifierSpec_ + != com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpec.getDefaultInstance()) { + getUserDefinedClassifierSpecBuilder().mergeFrom(value); + } else { + userDefinedClassifierSpec_ = value; + } + } else { + userDefinedClassifierSpecBuilder_.mergeFrom(value); + } + if (userDefinedClassifierSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserDefinedClassifierSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + userDefinedClassifierSpec_ = null; + if (userDefinedClassifierSpecBuilder_ != null) { + userDefinedClassifierSpecBuilder_.dispose(); + userDefinedClassifierSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder + getUserDefinedClassifierSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUserDefinedClassifierSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder + getUserDefinedClassifierSpecOrBuilder() { + if (userDefinedClassifierSpecBuilder_ != null) { + return userDefinedClassifierSpecBuilder_.getMessageOrBuilder(); + } else { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } + } + + /** + * + * + *
+     * Optional. The specification for user specified classifier spec.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder> + internalGetUserDefinedClassifierSpecFieldBuilder() { + if (userDefinedClassifierSpecBuilder_ == null) { + userDefinedClassifierSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder>( + getUserDefinedClassifierSpec(), getParentForChildren(), isClean()); + userDefinedClassifierSpec_ = null; + } + return userDefinedClassifierSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AnswerGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AnswerGenerationSpec) + private static final com.google.cloud.discoveryengine.v1.AnswerGenerationSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.AnswerGenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1.AnswerGenerationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerGenerationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpecOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpecOrBuilder.java new file mode 100644 index 000000000000..2e6159a65a2b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerGenerationSpecOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface AnswerGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AnswerGenerationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The specification for user specified classifier spec.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedClassifierSpec field is set. + */ + boolean hasUserDefinedClassifierSpec(); + + /** + * + * + *
+   * Optional. The specification for user specified classifier spec.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedClassifierSpec. + */ + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec + getUserDefinedClassifierSpec(); + + /** + * + * + *
+   * Optional. The specification for user specified classifier spec.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.UserDefinedClassifierSpecOrBuilder + getUserDefinedClassifierSpecOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java index a3c4aac66485..0500d519d750 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequest.java @@ -30770,6 +30770,12 @@ public com.google.protobuf.Parser getParserForType() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -30801,6 +30807,12 @@ public java.lang.String getServingConfig() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -31326,7 +31338,7 @@ public boolean hasQueryUnderstandingSpec() { * bool asynchronous_mode = 10 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is deprecated. - * See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=978 + * See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=986 * @return The asynchronousMode. */ @java.lang.Override @@ -32382,6 +32394,12 @@ public Builder mergeFrom( * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -32412,6 +32430,12 @@ public java.lang.String getServingConfig() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -32442,6 +32466,12 @@ public com.google.protobuf.ByteString getServingConfigBytes() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -32471,6 +32501,12 @@ public Builder setServingConfig(java.lang.String value) { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -32496,6 +32532,12 @@ public Builder clearServingConfig() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -34189,7 +34231,7 @@ public Builder clearQueryUnderstandingSpec() { * bool asynchronous_mode = 10 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is - * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=978 + * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=986 * @return The asynchronousMode. */ @java.lang.Override @@ -34219,7 +34261,7 @@ public boolean getAsynchronousMode() { * bool asynchronous_mode = 10 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is - * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=978 + * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=986 * @param value The asynchronousMode to set. * @return This builder for chaining. */ @@ -34253,7 +34295,7 @@ public Builder setAsynchronousMode(boolean value) { * bool asynchronous_mode = 10 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is - * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=978 + * deprecated. See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=986 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java index 849f066ca081..2899bb7ec575 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerQueryRequestOrBuilder.java @@ -34,6 +34,12 @@ public interface AnswerQueryRequestOrBuilder * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -54,6 +60,12 @@ public interface AnswerQueryRequestOrBuilder * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. * @@ -421,7 +433,7 @@ public interface AnswerQueryRequestOrBuilder * bool asynchronous_mode = 10 [deprecated = true]; * * @deprecated google.cloud.discoveryengine.v1.AnswerQueryRequest.asynchronous_mode is deprecated. - * See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=978 + * See google/cloud/discoveryengine/v1/conversational_search_service.proto;l=986 * @return The asynchronousMode. */ @java.lang.Deprecated diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswer.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswer.java index f7cd0f9dd897..29fd8ac708bc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswer.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswer.java @@ -64,6 +64,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 14: + return internalGetConnectorDisplayNames(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -134,6 +146,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SKIPPED = 4; */ SKIPPED(4), + /** + * + * + *
+     * Assist operation has been cancelled (e.g. client closed the stream).
+     * May contain a partial response.
+     * 
+ * + * CANCELLED = 5; + */ + CANCELLED(5), UNRECOGNIZED(-1), ; @@ -202,6 +225,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SKIPPED_VALUE = 4; + /** + * + * + *
+     * Assist operation has been cancelled (e.g. client closed the stream).
+     * May contain a partial response.
+     * 
+ * + * CANCELLED = 5; + */ + public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -236,6 +271,8 @@ public static State forNumber(int value) { return SUCCEEDED; case 4: return SKIPPED; + case 5: + return CANCELLED; default: return null; } @@ -510,6 +547,43 @@ public interface ReplyOrBuilder com.google.cloud.discoveryengine.v1.AssistantGroundedContentOrBuilder getGroundedContentOrBuilder(); + /** + * + * + *
+     * The time when the reply was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+     * The time when the reply was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+     * The time when the reply was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.ReplyCase getReplyCase(); } @@ -560,6 +634,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.Builder.class); } + private int bitField0_; private int replyCase_ = 0; @SuppressWarnings("serial") @@ -662,6 +737,55 @@ public com.google.cloud.discoveryengine.v1.AssistantGroundedContent getGroundedC return com.google.cloud.discoveryengine.v1.AssistantGroundedContent.getDefaultInstance(); } + public static final int CREATE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+     * The time when the reply was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The time when the reply was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+     * The time when the reply was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -680,6 +804,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 1, (com.google.cloud.discoveryengine.v1.AssistantGroundedContent) reply_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(14, getCreateTime()); + } getUnknownFields().writeTo(output); } @@ -694,6 +821,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.discoveryengine.v1.AssistantGroundedContent) reply_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -710,6 +840,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.discoveryengine.v1.AssistAnswer.Reply other = (com.google.cloud.discoveryengine.v1.AssistAnswer.Reply) obj; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } if (!getReplyCase().equals(other.getReplyCase())) return false; switch (replyCase_) { case 1: @@ -729,6 +863,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } switch (replyCase_) { case 1: hash = (37 * hash) + GROUNDED_CONTENT_FIELD_NUMBER; @@ -868,10 +1006,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -881,6 +1028,11 @@ public Builder clear() { if (groundedContentBuilder_ != null) { groundedContentBuilder_.clear(); } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } replyCase_ = 0; reply_ = null; return this; @@ -920,6 +1072,13 @@ public com.google.cloud.discoveryengine.v1.AssistAnswer.Reply buildPartial() { private void buildPartial0(com.google.cloud.discoveryengine.v1.AssistAnswer.Reply result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = + createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -944,6 +1103,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AssistAnswer.Reply other) { if (other == com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } switch (other.getReplyCase()) { case GROUNDED_CONTENT: { @@ -988,6 +1150,13 @@ public Builder mergeFrom( replyCase_ = 1; break; } // case 10 + case 114: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1255,6 +1424,200 @@ public Builder clearGroundedContent() { return groundedContentBuilder_; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+       * The time when the reply was created.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 14; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistAnswer.Reply) } @@ -1307,53 +1670,5547 @@ public com.google.cloud.discoveryengine.v1.AssistAnswer.Reply getDefaultInstance } } - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + public interface CustomerPolicyEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * Immutable. Resource name of the `AssistAnswer`.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } + /** + * + * + *
+     * Final verdict of the customer policy enforcement. If only one policy
+     * blocked the processing, the verdict is BLOCK.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The enum numeric value on the wire for verdict. + */ + int getVerdictValue(); - /** - * - * - *
-   * Immutable. Resource name of the `AssistAnswer`.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
+    /**
+     *
+     *
+     * 
+     * Final verdict of the customer policy enforcement. If only one policy
+     * blocked the processing, the verdict is BLOCK.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The verdict. + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + getVerdict(); + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + getPolicyResultsList(); + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getPolicyResults(int index); + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + int getPolicyResultsCount(); + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + getPolicyResultsOrBuilderList(); + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder + getPolicyResultsOrBuilder(int index); + + /** + * + * + *
+     * Output only. The source of the violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for violationSource. + */ + int getViolationSourceValue(); + + /** + * + * + *
+     * Output only. The source of the violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The violationSource. + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource + getViolationSource(); + } + + /** + * + * + *
+   * Customer policy enforcement results. Contains the results of the various
+   * policy checks, like the banned phrases or the Model Armor checks.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult} + */ + public static final class CustomerPolicyEnforcementResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) + CustomerPolicyEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomerPolicyEnforcementResult"); + } + + // Use CustomerPolicyEnforcementResult.newBuilder() to construct. + private CustomerPolicyEnforcementResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomerPolicyEnforcementResult() { + verdict_ = 0; + policyResults_ = java.util.Collections.emptyList(); + violationSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Builder.class); + } + + /** + * + * + *
+     * The verdict of the customer policy enforcement.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict} + */ + public enum Verdict implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unknown value.
+       * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+       * There was no policy violation.
+       * 
+ * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
+       * Processing was blocked by the customer policy.
+       * 
+ * + * BLOCK = 2; + */ + BLOCK(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Verdict"); + } + + /** + * + * + *
+       * Unknown value.
+       * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * There was no policy violation.
+       * 
+ * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + + /** + * + * + *
+       * Processing was blocked by the customer policy.
+       * 
+ * + * BLOCK = 2; + */ + public static final int BLOCK_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 Verdict 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 Verdict forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return BLOCK; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Verdict findValueByNumber(int number) { + return Verdict.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Verdict[] VALUES = values(); + + public static Verdict 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 Verdict(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict) + } + + /** + * + * + *
+     * If the assist call was skipped due to a policy violation, this contains
+     * the source of the violation.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource} + */ + public enum ViolationSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unknown value.
+       * 
+ * + * VIOLATION_SOURCE_UNSPECIFIED = 0; + */ + VIOLATION_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+       * Violation found in the system response.
+       * 
+ * + * SYSTEM = 1; + */ + SYSTEM(1), + /** + * + * + *
+       * Violation found in the user prompt.
+       * 
+ * + * PROMPT = 2; + */ + PROMPT(2), + /** + * + * + *
+       * Violation found in the user attachment.
+       * 
+ * + * ATTACHMENT = 3; + */ + ATTACHMENT(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ViolationSource"); + } + + /** + * + * + *
+       * Unknown value.
+       * 
+ * + * VIOLATION_SOURCE_UNSPECIFIED = 0; + */ + public static final int VIOLATION_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Violation found in the system response.
+       * 
+ * + * SYSTEM = 1; + */ + public static final int SYSTEM_VALUE = 1; + + /** + * + * + *
+       * Violation found in the user prompt.
+       * 
+ * + * PROMPT = 2; + */ + public static final int PROMPT_VALUE = 2; + + /** + * + * + *
+       * Violation found in the user attachment.
+       * 
+ * + * ATTACHMENT = 3; + */ + public static final int ATTACHMENT_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 ViolationSource 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 ViolationSource forNumber(int value) { + switch (value) { + case 0: + return VIOLATION_SOURCE_UNSPECIFIED; + case 1: + return SYSTEM; + case 2: + return PROMPT; + case 3: + return ATTACHMENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ViolationSource findValueByNumber(int number) { + return ViolationSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ViolationSource[] VALUES = values(); + + public static ViolationSource 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 ViolationSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource) + } + + public interface BannedPhraseEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @return A list containing the bannedPhrases. + */ + java.util.List getBannedPhrasesList(); + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @return The count of bannedPhrases. + */ + int getBannedPhrasesCount(); + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index of the element to return. + * @return The bannedPhrases at the given index. + */ + java.lang.String getBannedPhrases(int index); + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the bannedPhrases at the given index. + */ + com.google.protobuf.ByteString getBannedPhrasesBytes(int index); + } + + /** + * + * + *
+     * Customer policy enforcement result for the banned phrase policy.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult} + */ + public static final class BannedPhraseEnforcementResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + BannedPhraseEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BannedPhraseEnforcementResult"); + } + + // Use BannedPhraseEnforcementResult.newBuilder() to construct. + private BannedPhraseEnforcementResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BannedPhraseEnforcementResult() { + bannedPhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder.class); + } + + public static final int BANNED_PHRASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList bannedPhrases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @return A list containing the bannedPhrases. + */ + public com.google.protobuf.ProtocolStringList getBannedPhrasesList() { + return bannedPhrases_; + } + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @return The count of bannedPhrases. + */ + public int getBannedPhrasesCount() { + return bannedPhrases_.size(); + } + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index of the element to return. + * @return The bannedPhrases at the given index. + */ + public java.lang.String getBannedPhrases(int index) { + return bannedPhrases_.get(index); + } + + /** + * + * + *
+       * The banned phrases that were found in the query or the answer.
+       * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the bannedPhrases at the given index. + */ + public com.google.protobuf.ByteString getBannedPhrasesBytes(int index) { + return bannedPhrases_.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 < bannedPhrases_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bannedPhrases_.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 < bannedPhrases_.size(); i++) { + dataSize += computeStringSizeNoTag(bannedPhrases_.getRaw(i)); + } + size += dataSize; + size += 1 * getBannedPhrasesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + other = + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + obj; + + if (!getBannedPhrasesList().equals(other.getBannedPhrasesList())) 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 (getBannedPhrasesCount() > 0) { + hash = (37 * hash) + BANNED_PHRASES_FIELD_NUMBER; + hash = (53 * hash) + getBannedPhrasesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Customer policy enforcement result for the banned phrase policy.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bannedPhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + build() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + result = + new com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + bannedPhrases_.makeImmutable(); + result.bannedPhrases_ = bannedPhrases_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance()) return this; + if (!other.bannedPhrases_.isEmpty()) { + if (bannedPhrases_.isEmpty()) { + bannedPhrases_ = other.bannedPhrases_; + bitField0_ |= 0x00000001; + } else { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.addAll(other.bannedPhrases_); + } + 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(); + ensureBannedPhrasesIsMutable(); + bannedPhrases_.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 bannedPhrases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBannedPhrasesIsMutable() { + if (!bannedPhrases_.isModifiable()) { + bannedPhrases_ = new com.google.protobuf.LazyStringArrayList(bannedPhrases_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @return A list containing the bannedPhrases. + */ + public com.google.protobuf.ProtocolStringList getBannedPhrasesList() { + bannedPhrases_.makeImmutable(); + return bannedPhrases_; + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @return The count of bannedPhrases. + */ + public int getBannedPhrasesCount() { + return bannedPhrases_.size(); + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index of the element to return. + * @return The bannedPhrases at the given index. + */ + public java.lang.String getBannedPhrases(int index) { + return bannedPhrases_.get(index); + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the bannedPhrases at the given index. + */ + public com.google.protobuf.ByteString getBannedPhrasesBytes(int index) { + return bannedPhrases_.getByteString(index); + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @param index The index to set the value at. + * @param value The bannedPhrases to set. + * @return This builder for chaining. + */ + public Builder setBannedPhrases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @param value The bannedPhrases to add. + * @return This builder for chaining. + */ + public Builder addBannedPhrases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @param values The bannedPhrases to add. + * @return This builder for chaining. + */ + public Builder addAllBannedPhrases(java.lang.Iterable values) { + ensureBannedPhrasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bannedPhrases_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @return This builder for chaining. + */ + public Builder clearBannedPhrases() { + bannedPhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * The banned phrases that were found in the query or the answer.
+         * 
+ * + * repeated string banned_phrases = 1; + * + * @param value The bytes of the bannedPhrases to add. + * @return This builder for chaining. + */ + public Builder addBannedPhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + private static final com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BannedPhraseEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelArmorEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The Model Armor violation that was found.
+       * 
+ * + * string model_armor_violation = 1; + * + * @return Whether the modelArmorViolation field is set. + */ + boolean hasModelArmorViolation(); + + /** + * + * + *
+       * The Model Armor violation that was found.
+       * 
+ * + * string model_armor_violation = 1; + * + * @return The modelArmorViolation. + */ + java.lang.String getModelArmorViolation(); + + /** + * + * + *
+       * The Model Armor violation that was found.
+       * 
+ * + * string model_armor_violation = 1; + * + * @return The bytes for modelArmorViolation. + */ + com.google.protobuf.ByteString getModelArmorViolationBytes(); + + /** + * + * + *
+       * The error returned by Model Armor if the policy enforcement failed
+       * for some reason.
+       * 
+ * + * .google.rpc.Status error = 2; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
+       * The error returned by Model Armor if the policy enforcement failed
+       * for some reason.
+       * 
+ * + * .google.rpc.Status error = 2; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
+       * The error returned by Model Armor if the policy enforcement failed
+       * for some reason.
+       * 
+ * + * .google.rpc.Status error = 2; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.ResultCase + getResultCase(); + } + + /** + * + * + *
+     * Customer policy enforcement result for the Model Armor policy.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult} + */ + public static final class ModelArmorEnforcementResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + ModelArmorEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelArmorEnforcementResult"); + } + + // Use ModelArmorEnforcementResult.newBuilder() to construct. + private ModelArmorEnforcementResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelArmorEnforcementResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MODEL_ARMOR_VIOLATION(1), + ERROR(2), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return MODEL_ARMOR_VIOLATION; + case 2: + return ERROR; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int MODEL_ARMOR_VIOLATION_FIELD_NUMBER = 1; + + /** + * + * + *
+       * The Model Armor violation that was found.
+       * 
+ * + * string model_armor_violation = 1; + * + * @return Whether the modelArmorViolation field is set. + */ + public boolean hasModelArmorViolation() { + return resultCase_ == 1; + } + + /** + * + * + *
+       * The Model Armor violation that was found.
+       * 
+ * + * string model_armor_violation = 1; + * + * @return The modelArmorViolation. + */ + public java.lang.String getModelArmorViolation() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 1) { + result_ = s; + } + return s; + } + } + + /** + * + * + *
+       * The Model Armor violation that was found.
+       * 
+ * + * string model_armor_violation = 1; + * + * @return The bytes for modelArmorViolation. + */ + public com.google.protobuf.ByteString getModelArmorViolationBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 1) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + + /** + * + * + *
+       * The error returned by Model Armor if the policy enforcement failed
+       * for some reason.
+       * 
+ * + * .google.rpc.Status error = 2; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 2; + } + + /** + * + * + *
+       * The error returned by Model Armor if the policy enforcement failed
+       * for some reason.
+       * 
+ * + * .google.rpc.Status error = 2; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + /** + * + * + *
+       * The error returned by Model Armor if the policy enforcement failed
+       * for some reason.
+       * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resultCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, result_); + } + if (resultCase_ == 2) { + output.writeMessage(2, (com.google.rpc.Status) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, result_); + } + if (resultCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.rpc.Status) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + other = + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + obj; + + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 1: + if (!getModelArmorViolation().equals(other.getModelArmorViolation())) return false; + break; + case 2: + if (!getError().equals(other.getError())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (resultCase_) { + case 1: + hash = (37 * hash) + MODEL_ARMOR_VIOLATION_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorViolation().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Customer policy enforcement result for the Model Armor policy.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + build() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result = + new com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 2 && errorBuilder_ != null) { + result.result_ = errorBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance()) return this; + switch (other.getResultCase()) { + case MODEL_ARMOR_VIOLATION: + { + resultCase_ = 1; + result_ = other.result_; + onChanged(); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + resultCase_ = 1; + result_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 2; + 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 resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+         * The Model Armor violation that was found.
+         * 
+ * + * string model_armor_violation = 1; + * + * @return Whether the modelArmorViolation field is set. + */ + @java.lang.Override + public boolean hasModelArmorViolation() { + return resultCase_ == 1; + } + + /** + * + * + *
+         * The Model Armor violation that was found.
+         * 
+ * + * string model_armor_violation = 1; + * + * @return The modelArmorViolation. + */ + @java.lang.Override + public java.lang.String getModelArmorViolation() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 1) { + result_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The Model Armor violation that was found.
+         * 
+ * + * string model_armor_violation = 1; + * + * @return The bytes for modelArmorViolation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelArmorViolationBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 1) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The Model Armor violation that was found.
+         * 
+ * + * string model_armor_violation = 1; + * + * @param value The modelArmorViolation to set. + * @return This builder for chaining. + */ + public Builder setModelArmorViolation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resultCase_ = 1; + result_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+         * The Model Armor violation that was found.
+         * 
+ * + * string model_armor_violation = 1; + * + * @return This builder for chaining. + */ + public Builder clearModelArmorViolation() { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * The Model Armor violation that was found.
+         * 
+ * + * string model_armor_violation = 1; + * + * @param value The bytes for modelArmorViolation to set. + * @return This builder for chaining. + */ + public Builder setModelArmorViolationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resultCase_ = 1; + result_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 2; + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (resultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (resultCase_ == 2 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + } + errorBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if ((resultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + + /** + * + * + *
+         * The error returned by Model Armor if the policy enforcement failed
+         * for some reason.
+         * 
+ * + * .google.rpc.Status error = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(resultCase_ == 2)) { + result_ = com.google.rpc.Status.getDefaultInstance(); + } + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + result_ = null; + } + resultCase_ = 2; + onChanged(); + return errorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + private static final com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelArmorEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PolicyEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The policy enforcement result for the banned phrase policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return Whether the bannedPhraseEnforcementResult field is set. + */ + boolean hasBannedPhraseEnforcementResult(); + + /** + * + * + *
+       * The policy enforcement result for the banned phrase policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return The bannedPhraseEnforcementResult. + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getBannedPhraseEnforcementResult(); + + /** + * + * + *
+       * The policy enforcement result for the banned phrase policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder + getBannedPhraseEnforcementResultOrBuilder(); + + /** + * + * + *
+       * The policy enforcement result for the Model Armor policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return Whether the modelArmorEnforcementResult field is set. + */ + boolean hasModelArmorEnforcementResult(); + + /** + * + * + *
+       * The policy enforcement result for the Model Armor policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return The modelArmorEnforcementResult. + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getModelArmorEnforcementResult(); + + /** + * + * + *
+       * The policy enforcement result for the Model Armor policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder + getModelArmorEnforcementResultOrBuilder(); + + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.EnforcementResultCase + getEnforcementResultCase(); + } + + /** + * + * + *
+     * Customer policy enforcement result for a single policy type.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult} + */ + public static final class PolicyEnforcementResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + PolicyEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PolicyEnforcementResult"); + } + + // Use PolicyEnforcementResult.newBuilder() to construct. + private PolicyEnforcementResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PolicyEnforcementResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder.class); + } + + private int enforcementResultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object enforcementResult_; + + public enum EnforcementResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BANNED_PHRASE_ENFORCEMENT_RESULT(3), + MODEL_ARMOR_ENFORCEMENT_RESULT(4), + ENFORCEMENTRESULT_NOT_SET(0); + private final int value; + + private EnforcementResultCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnforcementResultCase valueOf(int value) { + return forNumber(value); + } + + public static EnforcementResultCase forNumber(int value) { + switch (value) { + case 3: + return BANNED_PHRASE_ENFORCEMENT_RESULT; + case 4: + return MODEL_ARMOR_ENFORCEMENT_RESULT; + case 0: + return ENFORCEMENTRESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EnforcementResultCase getEnforcementResultCase() { + return EnforcementResultCase.forNumber(enforcementResultCase_); + } + + public static final int BANNED_PHRASE_ENFORCEMENT_RESULT_FIELD_NUMBER = 3; + + /** + * + * + *
+       * The policy enforcement result for the banned phrase policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return Whether the bannedPhraseEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasBannedPhraseEnforcementResult() { + return enforcementResultCase_ == 3; + } + + /** + * + * + *
+       * The policy enforcement result for the banned phrase policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return The bannedPhraseEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getBannedPhraseEnforcementResult() { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + + /** + * + * + *
+       * The policy enforcement result for the banned phrase policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder + getBannedPhraseEnforcementResultOrBuilder() { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + + public static final int MODEL_ARMOR_ENFORCEMENT_RESULT_FIELD_NUMBER = 4; + + /** + * + * + *
+       * The policy enforcement result for the Model Armor policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return Whether the modelArmorEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasModelArmorEnforcementResult() { + return enforcementResultCase_ == 4; + } + + /** + * + * + *
+       * The policy enforcement result for the Model Armor policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return The modelArmorEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getModelArmorEnforcementResult() { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + + /** + * + * + *
+       * The policy enforcement result for the Model Armor policy.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder + getModelArmorEnforcementResultOrBuilder() { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enforcementResultCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + enforcementResult_); + } + if (enforcementResultCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + enforcementResult_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enforcementResultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + enforcementResult_); + } + if (enforcementResultCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + enforcementResult_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + other = + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult) + obj; + + if (!getEnforcementResultCase().equals(other.getEnforcementResultCase())) return false; + switch (enforcementResultCase_) { + case 3: + if (!getBannedPhraseEnforcementResult() + .equals(other.getBannedPhraseEnforcementResult())) return false; + break; + case 4: + if (!getModelArmorEnforcementResult().equals(other.getModelArmorEnforcementResult())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (enforcementResultCase_) { + case 3: + hash = (37 * hash) + BANNED_PHRASE_ENFORCEMENT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getBannedPhraseEnforcementResult().hashCode(); + break; + case 4: + hash = (37 * hash) + MODEL_ARMOR_ENFORCEMENT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorEnforcementResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Customer policy enforcement result for a single policy type.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bannedPhraseEnforcementResultBuilder_ != null) { + bannedPhraseEnforcementResultBuilder_.clear(); + } + if (modelArmorEnforcementResultBuilder_ != null) { + modelArmorEnforcementResultBuilder_.clear(); + } + enforcementResultCase_ = 0; + enforcementResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + build() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result = + new com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result) { + result.enforcementResultCase_ = enforcementResultCase_; + result.enforcementResult_ = this.enforcementResult_; + if (enforcementResultCase_ == 3 && bannedPhraseEnforcementResultBuilder_ != null) { + result.enforcementResult_ = bannedPhraseEnforcementResultBuilder_.build(); + } + if (enforcementResultCase_ == 4 && modelArmorEnforcementResultBuilder_ != null) { + result.enforcementResult_ = modelArmorEnforcementResultBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.getDefaultInstance()) return this; + switch (other.getEnforcementResultCase()) { + case BANNED_PHRASE_ENFORCEMENT_RESULT: + { + mergeBannedPhraseEnforcementResult(other.getBannedPhraseEnforcementResult()); + break; + } + case MODEL_ARMOR_ENFORCEMENT_RESULT: + { + mergeModelArmorEnforcementResult(other.getModelArmorEnforcementResult()); + break; + } + case ENFORCEMENTRESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + input.readMessage( + internalGetBannedPhraseEnforcementResultFieldBuilder().getBuilder(), + extensionRegistry); + enforcementResultCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetModelArmorEnforcementResultFieldBuilder().getBuilder(), + extensionRegistry); + enforcementResultCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int enforcementResultCase_ = 0; + private java.lang.Object enforcementResult_; + + public EnforcementResultCase getEnforcementResultCase() { + return EnforcementResultCase.forNumber(enforcementResultCase_); + } + + public Builder clearEnforcementResult() { + enforcementResultCase_ = 0; + enforcementResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder> + bannedPhraseEnforcementResultBuilder_; + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return Whether the bannedPhraseEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasBannedPhraseEnforcementResult() { + return enforcementResultCase_ == 3; + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return The bannedPhraseEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getBannedPhraseEnforcementResult() { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } else { + if (enforcementResultCase_ == 3) { + return bannedPhraseEnforcementResultBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder setBannedPhraseEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + value) { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enforcementResult_ = value; + onChanged(); + } else { + bannedPhraseEnforcementResultBuilder_.setMessage(value); + } + enforcementResultCase_ = 3; + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder setBannedPhraseEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder + builderForValue) { + if (bannedPhraseEnforcementResultBuilder_ == null) { + enforcementResult_ = builderForValue.build(); + onChanged(); + } else { + bannedPhraseEnforcementResultBuilder_.setMessage(builderForValue.build()); + } + enforcementResultCase_ = 3; + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder mergeBannedPhraseEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + value) { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 3 + && enforcementResult_ + != com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + .getDefaultInstance()) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.newBuilder( + (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_) + .mergeFrom(value) + .buildPartial(); + } else { + enforcementResult_ = value; + } + onChanged(); + } else { + if (enforcementResultCase_ == 3) { + bannedPhraseEnforcementResultBuilder_.mergeFrom(value); + } else { + bannedPhraseEnforcementResultBuilder_.setMessage(value); + } + } + enforcementResultCase_ = 3; + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder clearBannedPhraseEnforcementResult() { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 3) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + onChanged(); + } + } else { + if (enforcementResultCase_ == 3) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + } + bannedPhraseEnforcementResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder + getBannedPhraseEnforcementResultBuilder() { + return internalGetBannedPhraseEnforcementResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder + getBannedPhraseEnforcementResultOrBuilder() { + if ((enforcementResultCase_ == 3) && (bannedPhraseEnforcementResultBuilder_ != null)) { + return bannedPhraseEnforcementResultBuilder_.getMessageOrBuilder(); + } else { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
+         * The policy enforcement result for the banned phrase policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder> + internalGetBannedPhraseEnforcementResultFieldBuilder() { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (!(enforcementResultCase_ == 3)) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + bannedPhraseEnforcementResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder>( + (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_, + getParentForChildren(), + isClean()); + enforcementResult_ = null; + } + enforcementResultCase_ = 3; + onChanged(); + return bannedPhraseEnforcementResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder> + modelArmorEnforcementResultBuilder_; + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return Whether the modelArmorEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasModelArmorEnforcementResult() { + return enforcementResultCase_ == 4; + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return The modelArmorEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getModelArmorEnforcementResult() { + if (modelArmorEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } else { + if (enforcementResultCase_ == 4) { + return modelArmorEnforcementResultBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder setModelArmorEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + value) { + if (modelArmorEnforcementResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enforcementResult_ = value; + onChanged(); + } else { + modelArmorEnforcementResultBuilder_.setMessage(value); + } + enforcementResultCase_ = 4; + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder setModelArmorEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder + builderForValue) { + if (modelArmorEnforcementResultBuilder_ == null) { + enforcementResult_ = builderForValue.build(); + onChanged(); + } else { + modelArmorEnforcementResultBuilder_.setMessage(builderForValue.build()); + } + enforcementResultCase_ = 4; + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder mergeModelArmorEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + value) { + if (modelArmorEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 4 + && enforcementResult_ + != com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + .getDefaultInstance()) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.newBuilder( + (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_) + .mergeFrom(value) + .buildPartial(); + } else { + enforcementResult_ = value; + } + onChanged(); + } else { + if (enforcementResultCase_ == 4) { + modelArmorEnforcementResultBuilder_.mergeFrom(value); + } else { + modelArmorEnforcementResultBuilder_.setMessage(value); + } + } + enforcementResultCase_ = 4; + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder clearModelArmorEnforcementResult() { + if (modelArmorEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 4) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + onChanged(); + } + } else { + if (enforcementResultCase_ == 4) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + } + modelArmorEnforcementResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder + getModelArmorEnforcementResultBuilder() { + return internalGetModelArmorEnforcementResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder + getModelArmorEnforcementResultOrBuilder() { + if ((enforcementResultCase_ == 4) && (modelArmorEnforcementResultBuilder_ != null)) { + return modelArmorEnforcementResultBuilder_.getMessageOrBuilder(); + } else { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
+         * The policy enforcement result for the Model Armor policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder> + internalGetModelArmorEnforcementResultFieldBuilder() { + if (modelArmorEnforcementResultBuilder_ == null) { + if (!(enforcementResultCase_ == 4)) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + modelArmorEnforcementResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder>( + (com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_, + getParentForChildren(), + isClean()); + enforcementResult_ = null; + } + enforcementResultCase_ = 4; + onChanged(); + return modelArmorEnforcementResultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + private static final com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int VERDICT_FIELD_NUMBER = 1; + private int verdict_ = 0; + + /** + * + * + *
+     * Final verdict of the customer policy enforcement. If only one policy
+     * blocked the processing, the verdict is BLOCK.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The enum numeric value on the wire for verdict. + */ + @java.lang.Override + public int getVerdictValue() { + return verdict_; + } + + /** + * + * + *
+     * Final verdict of the customer policy enforcement. If only one policy
+     * blocked the processing, the verdict is BLOCK.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The verdict. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + getVerdict() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + result = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.forNumber(verdict_); + return result == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + .UNRECOGNIZED + : result; + } + + public static final int POLICY_RESULTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + policyResults_; + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + getPolicyResultsList() { + return policyResults_; + } + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + getPolicyResultsOrBuilderList() { + return policyResults_; + } + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public int getPolicyResultsCount() { + return policyResults_.size(); + } + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getPolicyResults(int index) { + return policyResults_.get(index); + } + + /** + * + * + *
+     * Customer policy enforcement results.
+     * Populated only if the assist call was skipped due to a policy
+     * violation. It contains results from those filters that blocked the
+     * processing of the query.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder + getPolicyResultsOrBuilder(int index) { + return policyResults_.get(index); + } + + public static final int VIOLATION_SOURCE_FIELD_NUMBER = 4; + private int violationSource_ = 0; + + /** + * + * + *
+     * Output only. The source of the violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for violationSource. + */ + @java.lang.Override + public int getViolationSourceValue() { + return violationSource_; + } + + /** + * + * + *
+     * Output only. The source of the violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The violationSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource + getViolationSource() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource + result = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource.forNumber(violationSource_); + return result == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource.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 (verdict_ + != com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNSPECIFIED + .getNumber()) { + output.writeEnum(1, verdict_); + } + for (int i = 0; i < policyResults_.size(); i++) { + output.writeMessage(3, policyResults_.get(i)); + } + if (violationSource_ + != com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource.VIOLATION_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, violationSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (verdict_ + != com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, verdict_); + } + for (int i = 0; i < policyResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyResults_.get(i)); + } + if (violationSource_ + != com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource.VIOLATION_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, violationSource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult other = + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) obj; + + if (verdict_ != other.verdict_) return false; + if (!getPolicyResultsList().equals(other.getPolicyResultsList())) return false; + if (violationSource_ != other.violationSource_) 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) + VERDICT_FIELD_NUMBER; + hash = (53 * hash) + verdict_; + if (getPolicyResultsCount() > 0) { + hash = (37 * hash) + POLICY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyResultsList().hashCode(); + } + hash = (37 * hash) + VIOLATION_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + violationSource_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Customer policy enforcement results. Contains the results of the various
+     * policy checks, like the banned phrases or the Model Armor checks.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .class, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + verdict_ = 0; + if (policyResultsBuilder_ == null) { + policyResults_ = java.util.Collections.emptyList(); + } else { + policyResults_ = null; + policyResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + violationSource_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + build() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult result = + new com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult result) { + if (policyResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + policyResults_ = java.util.Collections.unmodifiableList(policyResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.policyResults_ = policyResults_; + } else { + result.policyResults_ = policyResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.verdict_ = verdict_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.violationSource_ = violationSource_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance()) return this; + if (other.verdict_ != 0) { + setVerdictValue(other.getVerdictValue()); + } + if (policyResultsBuilder_ == null) { + if (!other.policyResults_.isEmpty()) { + if (policyResults_.isEmpty()) { + policyResults_ = other.policyResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePolicyResultsIsMutable(); + policyResults_.addAll(other.policyResults_); + } + onChanged(); + } + } else { + if (!other.policyResults_.isEmpty()) { + if (policyResultsBuilder_.isEmpty()) { + policyResultsBuilder_.dispose(); + policyResultsBuilder_ = null; + policyResults_ = other.policyResults_; + bitField0_ = (bitField0_ & ~0x00000002); + policyResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPolicyResultsFieldBuilder() + : null; + } else { + policyResultsBuilder_.addAllMessages(other.policyResults_); + } + } + } + if (other.violationSource_ != 0) { + setViolationSourceValue(other.getViolationSourceValue()); + } + 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: + { + verdict_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.parser(), + extensionRegistry); + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(m); + } else { + policyResultsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + violationSource_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + 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 verdict_ = 0; + + /** + * + * + *
+       * Final verdict of the customer policy enforcement. If only one policy
+       * blocked the processing, the verdict is BLOCK.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The enum numeric value on the wire for verdict. + */ + @java.lang.Override + public int getVerdictValue() { + return verdict_; + } + + /** + * + * + *
+       * Final verdict of the customer policy enforcement. If only one policy
+       * blocked the processing, the verdict is BLOCK.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @param value The enum numeric value on the wire for verdict to set. + * @return This builder for chaining. + */ + public Builder setVerdictValue(int value) { + verdict_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Final verdict of the customer policy enforcement. If only one policy
+       * blocked the processing, the verdict is BLOCK.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The verdict. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict + getVerdict() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + result = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.forNumber(verdict_); + return result == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Final verdict of the customer policy enforcement. If only one policy
+       * blocked the processing, the verdict is BLOCK.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @param value The verdict to set. + * @return This builder for chaining. + */ + public Builder setVerdict( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + verdict_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Final verdict of the customer policy enforcement. If only one policy
+       * blocked the processing, the verdict is BLOCK.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearVerdict() { + bitField0_ = (bitField0_ & ~0x00000001); + verdict_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + policyResults_ = java.util.Collections.emptyList(); + + private void ensurePolicyResultsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + policyResults_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult>(policyResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + policyResultsBuilder_; + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + getPolicyResultsList() { + if (policyResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyResults_); + } else { + return policyResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public int getPolicyResultsCount() { + if (policyResultsBuilder_ == null) { + return policyResults_.size(); + } else { + return policyResultsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getPolicyResults(int index) { + if (policyResultsBuilder_ == null) { + return policyResults_.get(index); + } else { + return policyResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder setPolicyResults( + int index, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.set(index, value); + onChanged(); + } else { + policyResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder setPolicyResults( + int index, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.set(index, builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.add(value); + onChanged(); + } else { + policyResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + int index, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.add(index, value); + onChanged(); + } else { + policyResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + int index, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(index, builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addAllPolicyResults( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult> + values) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyResults_); + onChanged(); + } else { + policyResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder clearPolicyResults() { + if (policyResultsBuilder_ == null) { + policyResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + policyResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder removePolicyResults(int index) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.remove(index); + onChanged(); + } else { + policyResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + getPolicyResultsBuilder(int index) { + return internalGetPolicyResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder + getPolicyResultsOrBuilder(int index) { + if (policyResultsBuilder_ == null) { + return policyResults_.get(index); + } else { + return policyResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + getPolicyResultsOrBuilderList() { + if (policyResultsBuilder_ != null) { + return policyResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyResults_); + } + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + addPolicyResultsBuilder() { + return internalGetPolicyResultsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.getDefaultInstance()); + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + addPolicyResultsBuilder(int index) { + return internalGetPolicyResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.getDefaultInstance()); + } + + /** + * + * + *
+       * Customer policy enforcement results.
+       * Populated only if the assist call was skipped due to a policy
+       * violation. It contains results from those filters that blocked the
+       * processing of the query.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder> + getPolicyResultsBuilderList() { + return internalGetPolicyResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + internalGetPolicyResultsFieldBuilder() { + if (policyResultsBuilder_ == null) { + policyResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder>( + policyResults_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + policyResults_ = null; + } + return policyResultsBuilder_; + } + + private int violationSource_ = 0; + + /** + * + * + *
+       * Output only. The source of the violation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for violationSource. + */ + @java.lang.Override + public int getViolationSourceValue() { + return violationSource_; + } + + /** + * + * + *
+       * Output only. The source of the violation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for violationSource to set. + * @return This builder for chaining. + */ + public Builder setViolationSourceValue(int value) { + violationSource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The source of the violation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The violationSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource + getViolationSource() { + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource + result = + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource.forNumber(violationSource_); + return result == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The source of the violation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The violationSource to set. + * @return This builder for chaining. + */ + public Builder setViolationSource( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .ViolationSource + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + violationSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The source of the violation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearViolationSource() { + bitField0_ = (bitField0_ & ~0x00000004); + violationSource_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult) + private static final com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerPolicyEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. Identifier. Resource name of the `AssistAnswer`.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
    *
    * This field must be a UTF-8 encoded string with a length limit of 1024
    * characters.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. Identifier. Resource name of the `AssistAnswer`.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1409,6 +7266,145 @@ public com.google.cloud.discoveryengine.v1.AssistAnswer.State getState() { : result; } + public static final int CONNECTOR_DISPLAY_NAMES_FIELD_NUMBER = 14; + + private static final class ConnectorDisplayNamesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_ConnectorDisplayNamesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField connectorDisplayNames_; + + private com.google.protobuf.MapField + internalGetConnectorDisplayNames() { + if (connectorDisplayNames_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectorDisplayNamesDefaultEntryHolder.defaultEntry); + } + return connectorDisplayNames_; + } + + public int getConnectorDisplayNamesCount() { + return internalGetConnectorDisplayNames().getMap().size(); + } + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsConnectorDisplayNames(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectorDisplayNames().getMap().containsKey(key); + } + + /** Use {@link #getConnectorDisplayNamesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectorDisplayNames() { + return getConnectorDisplayNamesMap(); + } + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getConnectorDisplayNamesMap() { + return internalGetConnectorDisplayNames().getMap(); + } + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectorDisplayNamesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorDisplayNames().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getConnectorDisplayNamesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorDisplayNames().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public static final int REPLIES_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -1606,6 +7602,76 @@ public int getAssistSkippedReasonsValue(int index) { private int assistSkippedReasonsMemoizedSerializedSize; + public static final int CUSTOMER_POLICY_ENFORCEMENT_RESULT_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + customerPolicyEnforcementResult_; + + /** + * + * + *
+   * Optional. The field contains information about the various policy checks'
+   * results like the banned phrases or the Model Armor checks. This field is
+   * populated only if the assist call was skipped due to a policy violation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicyEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasCustomerPolicyEnforcementResult() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The field contains information about the various policy checks'
+   * results like the banned phrases or the Model Armor checks. This field is
+   * populated only if the assist call was skipped due to a policy violation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicyEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + getCustomerPolicyEnforcementResult() { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } + + /** + * + * + *
+   * Optional. The field contains information about the various policy checks'
+   * results like the banned phrases or the Model Armor checks. This field is
+   * populated only if the assist call was skipped due to a policy violation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResultOrBuilder + getCustomerPolicyEnforcementResultOrBuilder() { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1638,6 +7704,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assistSkippedReasons_.size(); i++) { output.writeEnumNoTag(assistSkippedReasons_.getInt(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getCustomerPolicyEnforcementResult()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetConnectorDisplayNames(), + ConnectorDisplayNamesDefaultEntryHolder.defaultEntry, + 14); getUnknownFields().writeTo(output); } @@ -1671,6 +7745,21 @@ public int getSerializedSize() { } assistSkippedReasonsMemoizedSerializedSize = dataSize; } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getCustomerPolicyEnforcementResult()); + } + for (java.util.Map.Entry entry : + internalGetConnectorDisplayNames().getMap().entrySet()) { + com.google.protobuf.MapEntry connectorDisplayNames__ = + ConnectorDisplayNamesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, connectorDisplayNames__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1689,8 +7778,16 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; + if (!internalGetConnectorDisplayNames().equals(other.internalGetConnectorDisplayNames())) + return false; if (!getRepliesList().equals(other.getRepliesList())) return false; if (!assistSkippedReasons_.equals(other.assistSkippedReasons_)) return false; + if (hasCustomerPolicyEnforcementResult() != other.hasCustomerPolicyEnforcementResult()) + return false; + if (hasCustomerPolicyEnforcementResult()) { + if (!getCustomerPolicyEnforcementResult().equals(other.getCustomerPolicyEnforcementResult())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1706,6 +7803,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + if (!internalGetConnectorDisplayNames().getMap().isEmpty()) { + hash = (37 * hash) + CONNECTOR_DISPLAY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnectorDisplayNames().hashCode(); + } if (getRepliesCount() > 0) { hash = (37 * hash) + REPLIES_FIELD_NUMBER; hash = (53 * hash) + getRepliesList().hashCode(); @@ -1714,6 +7815,10 @@ public int hashCode() { hash = (37 * hash) + ASSIST_SKIPPED_REASONS_FIELD_NUMBER; hash = (53 * hash) + assistSkippedReasons_.hashCode(); } + if (hasCustomerPolicyEnforcementResult()) { + hash = (37 * hash) + CUSTOMER_POLICY_ENFORCEMENT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCustomerPolicyEnforcementResult().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1834,6 +7939,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 14: + return internalGetConnectorDisplayNames(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 14: + return internalGetMutableConnectorDisplayNames(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -1845,10 +7972,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1.AssistAnswer.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRepliesFieldBuilder(); + internalGetCustomerPolicyEnforcementResultFieldBuilder(); + } } @java.lang.Override @@ -1857,14 +7994,20 @@ public Builder clear() { bitField0_ = 0; name_ = ""; state_ = 0; + internalGetMutableConnectorDisplayNames().clear(); if (repliesBuilder_ == null) { replies_ = java.util.Collections.emptyList(); } else { replies_ = null; repliesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); assistSkippedReasons_ = emptyIntList(); + customerPolicyEnforcementResult_ = null; + if (customerPolicyEnforcementResultBuilder_ != null) { + customerPolicyEnforcementResultBuilder_.dispose(); + customerPolicyEnforcementResultBuilder_ = null; + } return this; } @@ -1903,9 +8046,9 @@ public com.google.cloud.discoveryengine.v1.AssistAnswer buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1.AssistAnswer result) { if (repliesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { replies_ = java.util.Collections.unmodifiableList(replies_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.replies_ = replies_; } else { @@ -1921,10 +8064,23 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.AssistAnswer resu if (((from_bitField0_ & 0x00000002) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { + result.connectorDisplayNames_ = internalGetConnectorDisplayNames(); + result.connectorDisplayNames_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { assistSkippedReasons_.makeImmutable(); result.assistSkippedReasons_ = assistSkippedReasons_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.customerPolicyEnforcementResult_ = + customerPolicyEnforcementResultBuilder_ == null + ? customerPolicyEnforcementResult_ + : customerPolicyEnforcementResultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1948,11 +8104,13 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AssistAnswer other) if (other.state_ != 0) { setStateValue(other.getStateValue()); } + internalGetMutableConnectorDisplayNames().mergeFrom(other.internalGetConnectorDisplayNames()); + bitField0_ |= 0x00000004; if (repliesBuilder_ == null) { if (!other.replies_.isEmpty()) { if (replies_.isEmpty()) { replies_ = other.replies_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRepliesIsMutable(); replies_.addAll(other.replies_); @@ -1965,7 +8123,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AssistAnswer other) repliesBuilder_.dispose(); repliesBuilder_ = null; replies_ = other.replies_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); repliesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetRepliesFieldBuilder() @@ -1979,13 +8137,16 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AssistAnswer other) if (assistSkippedReasons_.isEmpty()) { assistSkippedReasons_ = other.assistSkippedReasons_; assistSkippedReasons_.makeImmutable(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } else { ensureAssistSkippedReasonsIsMutable(); assistSkippedReasons_.addAll(other.assistSkippedReasons_); } onChanged(); } + if (other.hasCustomerPolicyEnforcementResult()) { + mergeCustomerPolicyEnforcementResult(other.getCustomerPolicyEnforcementResult()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2056,6 +8217,27 @@ public Builder mergeFrom( input.popLimit(limit); break; } // case 42 + case 66: + { + input.readMessage( + internalGetCustomerPolicyEnforcementResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 114: + { + com.google.protobuf.MapEntry + connectorDisplayNames__ = + input.readMessage( + ConnectorDisplayNamesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConnectorDisplayNames() + .getMutableMap() + .put(connectorDisplayNames__.getKey(), connectorDisplayNames__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2081,7 +8263,7 @@ public Builder mergeFrom( * * *
-     * Immutable. Resource name of the `AssistAnswer`.
+     * Immutable. Identifier. Resource name of the `AssistAnswer`.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      *
@@ -2089,7 +8271,9 @@ public Builder mergeFrom(
      * characters.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -2109,7 +8293,7 @@ public java.lang.String getName() { * * *
-     * Immutable. Resource name of the `AssistAnswer`.
+     * Immutable. Identifier. Resource name of the `AssistAnswer`.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      *
@@ -2117,7 +8301,9 @@ public java.lang.String getName() {
      * characters.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -2137,7 +8323,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Immutable. Resource name of the `AssistAnswer`.
+     * Immutable. Identifier. Resource name of the `AssistAnswer`.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      *
@@ -2145,7 +8331,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      * characters.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -2164,7 +8352,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Immutable. Resource name of the `AssistAnswer`.
+     * Immutable. Identifier. Resource name of the `AssistAnswer`.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      *
@@ -2172,7 +8360,9 @@ public Builder setName(java.lang.String value) {
      * characters.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -2187,7 +8377,7 @@ public Builder clearName() { * * *
-     * Immutable. Resource name of the `AssistAnswer`.
+     * Immutable. Identifier. Resource name of the `AssistAnswer`.
      * Format:
      * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      *
@@ -2195,7 +8385,9 @@ public Builder clearName() {
      * characters.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -2308,15 +8500,243 @@ public Builder clearState() { return this; } + private com.google.protobuf.MapField connectorDisplayNames_; + + private com.google.protobuf.MapField + internalGetConnectorDisplayNames() { + if (connectorDisplayNames_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectorDisplayNamesDefaultEntryHolder.defaultEntry); + } + return connectorDisplayNames_; + } + + private com.google.protobuf.MapField + internalGetMutableConnectorDisplayNames() { + if (connectorDisplayNames_ == null) { + connectorDisplayNames_ = + com.google.protobuf.MapField.newMapField( + ConnectorDisplayNamesDefaultEntryHolder.defaultEntry); + } + if (!connectorDisplayNames_.isMutable()) { + connectorDisplayNames_ = connectorDisplayNames_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return connectorDisplayNames_; + } + + public int getConnectorDisplayNamesCount() { + return internalGetConnectorDisplayNames().getMap().size(); + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsConnectorDisplayNames(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectorDisplayNames().getMap().containsKey(key); + } + + /** Use {@link #getConnectorDisplayNamesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectorDisplayNames() { + return getConnectorDisplayNamesMap(); + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getConnectorDisplayNamesMap() { + return internalGetConnectorDisplayNames().getMap(); + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectorDisplayNamesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorDisplayNames().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getConnectorDisplayNamesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorDisplayNames().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConnectorDisplayNames() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableConnectorDisplayNames().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConnectorDisplayNames(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConnectorDisplayNames().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConnectorDisplayNames() { + bitField0_ |= 0x00000004; + return internalGetMutableConnectorDisplayNames().getMutableMap(); + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putConnectorDisplayNames(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConnectorDisplayNames().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Output only. Maps an internal connector agent name (the machine identifier
+     * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+     * connector's human-readable display name. Populated at serving time for
+     * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+     * tool-call chip) can show the connector name instead of its internal
+     * identifier. Empty when there are no such connectors.
+     * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllConnectorDisplayNames( + java.util.Map values) { + internalGetMutableConnectorDisplayNames().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + private java.util.List replies_ = java.util.Collections.emptyList(); private void ensureRepliesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { replies_ = new java.util.ArrayList( replies_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -2545,7 +8965,7 @@ public Builder addAllReplies( public Builder clearReplies() { if (repliesBuilder_ == null) { replies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { repliesBuilder_.clear(); @@ -2678,7 +9098,7 @@ public com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.Builder addReplies com.google.cloud.discoveryengine.v1.AssistAnswer.Reply, com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.Builder, com.google.cloud.discoveryengine.v1.AssistAnswer.ReplyOrBuilder>( - replies_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + replies_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); replies_ = null; } return repliesBuilder_; @@ -2690,7 +9110,7 @@ private void ensureAssistSkippedReasonsIsMutable() { if (!assistSkippedReasons_.isModifiable()) { assistSkippedReasons_ = makeMutableCopy(assistSkippedReasons_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } /** @@ -2841,7 +9261,7 @@ public Builder addAllAssistSkippedReasons( */ public Builder clearAssistSkippedReasons() { assistSkippedReasons_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2948,6 +9368,254 @@ public Builder addAllAssistSkippedReasonsValue(java.lang.Iterable + customerPolicyEnforcementResultBuilder_; + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicyEnforcementResult field is set. + */ + public boolean hasCustomerPolicyEnforcementResult() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicyEnforcementResult. + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + getCustomerPolicyEnforcementResult() { + if (customerPolicyEnforcementResultBuilder_ == null) { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } else { + return customerPolicyEnforcementResultBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicyEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult value) { + if (customerPolicyEnforcementResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customerPolicyEnforcementResult_ = value; + } else { + customerPolicyEnforcementResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicyEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Builder + builderForValue) { + if (customerPolicyEnforcementResultBuilder_ == null) { + customerPolicyEnforcementResult_ = builderForValue.build(); + } else { + customerPolicyEnforcementResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomerPolicyEnforcementResult( + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult value) { + if (customerPolicyEnforcementResultBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && customerPolicyEnforcementResult_ != null + && customerPolicyEnforcementResult_ + != com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance()) { + getCustomerPolicyEnforcementResultBuilder().mergeFrom(value); + } else { + customerPolicyEnforcementResult_ = value; + } + } else { + customerPolicyEnforcementResultBuilder_.mergeFrom(value); + } + if (customerPolicyEnforcementResult_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerPolicyEnforcementResult() { + bitField0_ = (bitField0_ & ~0x00000020); + customerPolicyEnforcementResult_ = null; + if (customerPolicyEnforcementResultBuilder_ != null) { + customerPolicyEnforcementResultBuilder_.dispose(); + customerPolicyEnforcementResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Builder + getCustomerPolicyEnforcementResultBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCustomerPolicyEnforcementResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResultOrBuilder + getCustomerPolicyEnforcementResultOrBuilder() { + if (customerPolicyEnforcementResultBuilder_ != null) { + return customerPolicyEnforcementResultBuilder_.getMessageOrBuilder(); + } else { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } + } + + /** + * + * + *
+     * Optional. The field contains information about the various policy checks'
+     * results like the banned phrases or the Model Armor checks. This field is
+     * populated only if the assist call was skipped due to a policy violation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder> + internalGetCustomerPolicyEnforcementResultFieldBuilder() { + if (customerPolicyEnforcementResultBuilder_ == null) { + customerPolicyEnforcementResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult, + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + .Builder, + com.google.cloud.discoveryengine.v1.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder>( + getCustomerPolicyEnforcementResult(), getParentForChildren(), isClean()); + customerPolicyEnforcementResult_ = null; + } + return customerPolicyEnforcementResultBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistAnswer) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerOrBuilder.java index 0e8d96e7308b..8f605a2b6da3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerOrBuilder.java @@ -30,7 +30,7 @@ public interface AssistAnswerOrBuilder * * *
-   * Immutable. Resource name of the `AssistAnswer`.
+   * Immutable. Identifier. Resource name of the `AssistAnswer`.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
    *
@@ -38,7 +38,9 @@ public interface AssistAnswerOrBuilder
    * characters.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -48,7 +50,7 @@ public interface AssistAnswerOrBuilder * * *
-   * Immutable. Resource name of the `AssistAnswer`.
+   * Immutable. Identifier. Resource name of the `AssistAnswer`.
    * Format:
    * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
    *
@@ -56,7 +58,9 @@ public interface AssistAnswerOrBuilder
    * characters.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -88,6 +92,104 @@ public interface AssistAnswerOrBuilder */ com.google.cloud.discoveryengine.v1.AssistAnswer.State getState(); + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConnectorDisplayNamesCount(); + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsConnectorDisplayNames(java.lang.String key); + + /** Use {@link #getConnectorDisplayNamesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConnectorDisplayNames(); + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getConnectorDisplayNamesMap(); + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getConnectorDisplayNamesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. Maps an internal connector agent name (the machine identifier
+   * embedded in tool names, e.g. `custom_mcp_<fingerprint>_agent`) to the
+   * connector's human-readable display name. Populated at serving time for
+   * custom MCP / agent gateway connectors so user-facing surfaces (e.g. the
+   * tool-call chip) can show the connector name instead of its internal
+   * identifier. Empty when there are no such connectors.
+   * 
+ * + * + * map<string, string> connector_display_names = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getConnectorDisplayNamesOrThrow(java.lang.String key); + /** * * @@ -222,4 +324,55 @@ com.google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason getAssistSk * @return The enum numeric value on the wire of assistSkippedReasons at the given index. */ int getAssistSkippedReasonsValue(int index); + + /** + * + * + *
+   * Optional. The field contains information about the various policy checks'
+   * results like the banned phrases or the Model Armor checks. This field is
+   * populated only if the assist call was skipped due to a policy violation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicyEnforcementResult field is set. + */ + boolean hasCustomerPolicyEnforcementResult(); + + /** + * + * + *
+   * Optional. The field contains information about the various policy checks'
+   * results like the banned phrases or the Model Armor checks. This field is
+   * populated only if the assist call was skipped due to a policy violation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicyEnforcementResult. + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult + getCustomerPolicyEnforcementResult(); + + /** + * + * + *
+   * Optional. The field contains information about the various policy checks'
+   * results like the banned phrases or the Model Armor checks. This field is
+   * populated only if the assist call was skipped due to a policy violation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResultOrBuilder + getCustomerPolicyEnforcementResultOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerProto.java index af9d6df0d9a2..6029db6f33b3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistAnswerProto.java @@ -48,6 +48,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_AssistAnswer_Reply_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_AssistAnswer_Reply_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_ConnectorDisplayNamesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_ConnectorDisplayNamesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_AssistantContent_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -80,6 +100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -99,42 +123,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "3google/cloud/discoveryengine/v1/assist_answer.proto\022\037google.cloud.discoveryeng" - + "ine.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\216\006\n" - + "\014AssistAnswer\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\005\022B\n" - + "\005state\030\002 \001(\01623" - + ".google.cloud.discoveryengine.v1.AssistAnswer.State\022D\n" - + "\007replies\030\003 \003(\01323.google.cl" - + "oud.discoveryengine.v1.AssistAnswer.Reply\022a\n" - + "\026assist_skipped_reasons\030\005 \003(\0162A.goog" - + "le.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason\032g\n" + + "ine.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032Agoogle/cloud/discoveryengine/v1/grounded_generation_" + + "service.proto\032\034google/protobuf/struct.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\243\021\n" + + "\014AssistAnswer\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\005\010\022B\n" + + "\005state\030\002 \001(\01623.goo" + + "gle.cloud.discoveryengine.v1.AssistAnswer.State\022o\n" + + "\027connector_display_names\030\016 \003(\0132H.google.cloud.discoveryengine.v1.Assis" + + "tAnswer.ConnectorDisplayNamesEntryB\004\342A\001\003\022D\n" + + "\007replies\030\003" + + " \003(\01323.google.cloud.discoveryengine.v1.AssistAnswer.Reply\022a\n" + + "\026assist_skipped_reasons\030\005 \003(\0162A.google.cloud.di" + + "scoveryengine.v1.AssistAnswer.AssistSkippedReason\022\177\n" + + "\"customer_policy_enforcement_result\030\010 \001(\0132M.google.cloud.discoveryen" + + "gine.v1.AssistAnswer.CustomerPolicyEnforcementResultB\004\342A\001\001\032\230\001\n" + "\005Reply\022U\n" + "\020grounded_content\030\001" - + " \001(\01329.google.cloud.discoveryengine.v1.AssistantGroundedContentH\000B\007\n" - + "\005reply\"W\n" + + " \001(\01329.google.cloud.discoveryengine.v1.AssistantGroundedContentH\000\022/\n" + + "\013create_time\030\016 \001(\0132\032.google.protobuf.TimestampB\007\n" + + "\005reply\032\240\010\n" + + "\037CustomerPolicyEnforcementResult\022f\n" + + "\007verdict\030\001 \001(\0162U.google.clou" + + "d.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict\022}\n" + + "\016policy_results\030\003 \003(\0132e.google.cloud.discove" + + "ryengine.v1.AssistAnswer.CustomerPolicyE" + + "nforcementResult.PolicyEnforcementResult\022}\n" + + "\020violation_source\030\004 \001(\0162].google.clou" + + "d.discoveryengine.v1.AssistAnswer.Custom" + + "erPolicyEnforcementResult.ViolationSourceB\004\342A\001\003\0327\n" + + "\035BannedPhraseEnforcementResult\022\026\n" + + "\016banned_phrases\030\001 \003(\t\032m\n" + + "\033ModelArmorEnforcementResult\022\037\n" + + "\025model_armor_violation\030\001 \001(\tH\000\022#\n" + + "\005error\030\002 \001(\0132\022.google.rpc.StatusH\000B\010\n" + + "\006result\032\337\002\n" + + "\027PolicyEnforcementResult\022\227\001\n" + + " banned_phrase_enforcement_result\030\003 \001(\0132k.google.cloud.discoveryengine.v1" + + ".AssistAnswer.CustomerPolicyEnforcementR" + + "esult.BannedPhraseEnforcementResultH\000\022\223\001\n" + + "\036model_armor_enforcement_result\030\004 \001(\0132i" + + ".google.cloud.discoveryengine.v1.AssistA" + + "nswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResultH\000B\024\n" + + "\022enforcement_result\"0\n" + + "\007Verdict\022\017\n" + + "\013UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\t\n" + + "\005BLOCK\020\002\"[\n" + + "\017ViolationSource\022 \n" + + "\034VIOLATION_SOURCE_UNSPECIFIED\020\000\022\n\n" + + "\006SYSTEM\020\001\022\n\n" + + "\006PROMPT\020\002\022\016\n\n" + + "ATTACHMENT\020\003\032<\n" + + "\032ConnectorDisplayNamesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"f\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" + "\013IN_PROGRESS\020\001\022\n\n" + "\006FAILED\020\002\022\r\n" + "\tSUCCEEDED\020\003\022\013\n" - + "\007SKIPPED\020\004\"\201\001\n" + + "\007SKIPPED\020\004\022\r\n" + + "\tCANCELLED\020\005\"\201\001\n" + "\023AssistSkippedReason\022%\n" + "!ASSIST_SKIPPED_REASON_UNSPECIFIED\020\000\022$\n" + " NON_ASSIST_SEEKING_QUERY_IGNORED\020\001\022\035\n" + "\031CUSTOMER_POLICY_VIOLATION\020\002:\266\001\352A\262\001\n" - + "+discoveryengine.googleapis.com/AssistAnswer\022\202" - + "\001projects/{project}/locations/{location}/collections/{collection}/engines/{engin" - + "e}/sessions/{session}/assistAnswers/{assist_answer}\"\271\006\n" + + "+discoveryengine.googleapis.com/AssistAnswer\022\202\001projects/{proje" + + "ct}/locations/{location}/collections/{co" + + "llection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}\"\271\006\n" + "\020AssistantContent\022\016\n" + "\004text\030\002 \001(\tH\000\022M\n" - + "\013inline_data\030\003 \001(\01326.google.c" - + "loud.discoveryengine.v1.AssistantContent.BlobH\000\022F\n" - + "\004file\030\004 \001(\01326.google.cloud.dis" - + "coveryengine.v1.AssistantContent.FileH\000\022[\n" - + "\017executable_code\030\007 \001(\0132@.google.cloud." - + "discoveryengine.v1.AssistantContent.ExecutableCodeH\000\022f\n" - + "\025code_execution_result\030\010 " - + "\001(\0132E.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResultH\000\022\014\n" + + "\013inline_data\030\003" + + " \001(\01326.google.cloud.discoveryengine.v1.AssistantContent.BlobH\000\022F\n" + + "\004file\030\004" + + " \001(\01326.google.cloud.discoveryengine.v1.AssistantContent.FileH\000\022[\n" + + "\017executable_code\030\007" + + " \001(\0132@.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCodeH\000\022f\n" + + "\025code_execution_result\030\010 \001(\0132E.google.clo" + + "ud.discoveryengine.v1.AssistantContent.CodeExecutionResultH\000\022\014\n" + "\004role\030\001 \001(\t\022\025\n" + "\007thought\030\006 \001(\010B\004\342A\001\001\0323\n" + "\004Blob\022\027\n" @@ -146,54 +214,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ExecutableCode\022\022\n" + "\004code\030\002 \001(\tB\004\342A\001\002\032\370\001\n" + "\023CodeExecutionResult\022d\n" - + "\007outcome\030\001 \001(\0162M.google.cloud.dis" - + "coveryengine.v1.AssistantContent.CodeExecutionResult.OutcomeB\004\342A\001\002\022\024\n" + + "\007outcome\030\001 \001(\0162M.google.cloud.discoveryengine.v1." + + "AssistantContent.CodeExecutionResult.OutcomeB\004\342A\001\002\022\024\n" + "\006output\030\002 \001(\tB\004\342A\001\001\"e\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n" + "OUTCOME_OK\020\001\022\022\n" + "\016OUTCOME_FAILED\020\002\022\035\n" + "\031OUTCOME_DEADLINE_EXCEEDED\020\003B\006\n" - + "\004data\"\337\007\n" + + "\004data\"\233\014\n" + "\030AssistantGroundedContent\022r\n" - + "\027text_grounding_metadata\030\003 \001(\0132O.google.cloud.dis" - + "coveryengine.v1.AssistantGroundedContent.TextGroundingMetadataH\000\022B\n" - + "\007content\030\001 \001(" - + "\01321.google.cloud.discoveryengine.v1.AssistantContent\032\376\005\n" + + "\027text_grounding_metadata\030\003 \001(\0132O.google.cloud.discoveryengine.v1." + + "AssistantGroundedContent.TextGroundingMetadataH\000\022B\n" + + "\007content\030\001" + + " \001(\01321.google.cloud.discoveryengine.v1.AssistantContent\022L\n" + + "\021citation_metadata\030\005" + + " \001(\01321.google.cloud.discoveryengine.v1.CitationMetadata\032\354\t\n" + "\025TextGroundingMetadata\022i\n" - + "\010segments\030\004 \003(\0132W.google.cloud.discover" - + "yengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment\022m\n\n" - + "references\030\002 \003(\0132Y.google.cloud.discoveryengine.v1." - + "AssistantGroundedContent.TextGroundingMetadata.Reference\032s\n" + + "\010segments\030\004 \003(\0132W.google.cloud.discoveryengine.v1.Assista" + + "ntGroundedContent.TextGroundingMetadata.Segment\022v\n" + + "\017visual_segments\030\006 \003(\0132].google.cloud.discoveryengine.v1.AssistantGrou" + + "ndedContent.TextGroundingMetadata.VisualSegment\022m\n\n" + + "references\030\002 \003(\0132Y.google.cloud.discoveryengine.v1.AssistantGroundedC" + + "ontent.TextGroundingMetadata.Reference\032s\n" + "\007Segment\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022\031\n" + "\021reference_indices\030\004 \003(\005\022\027\n" + "\017grounding_score\030\005 \001(\002\022\014\n" - + "\004text\030\006 \001(\t\032\225\003\n" + + "\004text\030\006 \001(\t\032>\n\r" + + "VisualSegment\022\031\n" + + "\021reference_indices\030\001 \003(\005\022\022\n\n" + + "content_id\030\002 \001(\t\032\313\005\n" + "\tReference\022\017\n" - + "\007content\030\001 \001(\t\022\205\001\n" - + "\021document_metadata\030\002 \001(\0132j.googl" - + "e.cloud.discoveryengine.v1.AssistantGrou" - + "ndedContent.TextGroundingMetadata.Reference.DocumentMetadata\032\356\001\n" - + "\020DocumentMetadata\022C\n" + + "\007content\030\001 \001(\t\022\024\n" + + "\014code_snippet\030\004 \001(\t\022\205\001\n" + + "\021document_metadata\030\002 \001(\0132j.google.cloud.disc" + + "overyengine.v1.AssistantGroundedContent." + + "TextGroundingMetadata.Reference.DocumentMetadata\0225\n" + + "\016chunk_metadata\030\005" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\003\032\327\003\n" + + "\020DocumentMetadata\022\205\001\n" + + "\010language\030\010 \001(\0162s.google.cloud.d" + + "iscoveryengine.v1.AssistantGroundedConte" + + "nt.TextGroundingMetadata.Reference.DocumentMetadata.Language\022C\n" + "\010document\030\001 \001(\tB,\372A)\n" + "\'discoveryengine.googleapis.com/DocumentH\000\210\001\001\022\020\n" + "\003uri\030\002 \001(\tH\001\210\001\001\022\022\n" + "\005title\030\003 \001(\tH\002\210\001\001\022\034\n" + "\017page_identifier\030\004 \001(\tH\003\210\001\001\022\023\n" - + "\006domain\030\005 \001(\tH\004\210\001\001B\013\n" + + "\006domain\030\005 \001(\tH\004\210\001\001\022\026\n" + + "\tmime_type\030\007 \001(\tH\005\210\001\001\"9\n" + + "\010Language\022\030\n" + + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" + + "\006PYTHON\020\001\022\007\n" + + "\003SQL\020\002B\013\n" + "\t_documentB\006\n" + "\004_uriB\010\n" + "\006_titleB\022\n" + "\020_page_identifierB\t\n" - + "\007_domainB\n\n" + + "\007_domainB\014\n\n" + + "_mime_typeB\n\n" + "\010metadataB\204\002\n" - + "#com.google.cloud.discoveryengine.v1B\021Assis" - + "tAnswerProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;disc" - + "overyenginepb\242\002\017DISCOVERYENGINE\252\002\037Google" - + ".Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud" - + "\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "#com.google.cloud.discoveryengine.v1B\021AssistAns" + + "werProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clo" + + "ud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Dis" + + "coveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -201,6 +288,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor = getDescriptor().getMessageType(0); @@ -208,7 +299,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor, new java.lang.String[] { - "Name", "State", "Replies", "AssistSkippedReasons", + "Name", + "State", + "ConnectorDisplayNames", + "Replies", + "AssistSkippedReasons", + "CustomerPolicyEnforcementResult", }); internal_static_google_cloud_discoveryengine_v1_AssistAnswer_Reply_descriptor = internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor.getNestedType(0); @@ -216,7 +312,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AssistAnswer_Reply_descriptor, new java.lang.String[] { - "GroundedContent", "Reply", + "GroundedContent", "CreateTime", "Reply", + }); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor, + new java.lang.String[] { + "Verdict", "PolicyResults", "ViolationSource", + }); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor, + new java.lang.String[] { + "BannedPhrases", + }); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor, + new java.lang.String[] { + "ModelArmorViolation", "Error", "Result", + }); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor, + new java.lang.String[] { + "BannedPhraseEnforcementResult", "ModelArmorEnforcementResult", "EnforcementResult", + }); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_ConnectorDisplayNamesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_ConnectorDisplayNamesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AssistAnswer_ConnectorDisplayNamesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_discoveryengine_v1_AssistantContent_descriptor = getDescriptor().getMessageType(1); @@ -275,7 +414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_descriptor, new java.lang.String[] { - "TextGroundingMetadata", "Content", "Metadata", + "TextGroundingMetadata", "Content", "CitationMetadata", "Metadata", }); internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor = internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_descriptor @@ -284,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor, new java.lang.String[] { - "Segments", "References", + "Segments", "VisualSegments", "References", }); internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor = internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor @@ -295,14 +434,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StartIndex", "EndIndex", "ReferenceIndices", "GroundingScore", "Text", }); - internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor = internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor, + new java.lang.String[] { + "ReferenceIndices", "ContentId", + }); + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor + .getNestedType(2); internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor, new java.lang.String[] { - "Content", "DocumentMetadata", + "Content", "CodeSnippet", "DocumentMetadata", "ChunkMetadata", }); internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor = internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor @@ -311,11 +459,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor, new java.lang.String[] { - "Document", "Uri", "Title", "PageIdentifier", "Domain", + "Language", "Document", "Uri", "Title", "PageIdentifier", "Domain", "MimeType", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Assistant.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Assistant.java index e30f2bc74301..276857adff20 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Assistant.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Assistant.java @@ -53,6 +53,9 @@ private Assistant(com.google.protobuf.GeneratedMessage.Builder builder) { private Assistant() { name_ = ""; + displayName_ = ""; + description_ = ""; + webGroundingType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -60,6 +63,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetEnabledTools(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -70,402 +85,11584 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.Assistant.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** * * *
-   * Immutable. Resource name of the assistant.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
-   *
-   * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+   * The type of web grounding to use.
    * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. + * Protobuf enum {@code google.cloud.discoveryengine.v1.Assistant.WebGroundingType} */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } + public enum WebGroundingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default, unspecified setting. This is the same as disabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + */ + WEB_GROUNDING_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Web grounding is disabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_DISABLED = 1; + */ + WEB_GROUNDING_TYPE_DISABLED(1), + /** + * + * + *
+     * Grounding with Google Search is enabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + */ + WEB_GROUNDING_TYPE_GOOGLE_SEARCH(2), + /** + * + * + *
+     * Grounding with Enterprise Web Search is enabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + */ + WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH(3), + UNRECOGNIZED(-1), + ; - /** - * - * - *
-   * Immutable. Resource name of the assistant.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
-   *
-   * It must be a UTF-8 encoded string with a length limit of 1024 characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WebGroundingType"); } - } - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Default, unspecified setting. This is the same as disabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + */ + public static final int WEB_GROUNDING_TYPE_UNSPECIFIED_VALUE = 0; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+     * Web grounding is disabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_DISABLED = 1; + */ + public static final int WEB_GROUNDING_TYPE_DISABLED_VALUE = 1; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
+     * Grounding with Google Search is enabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + */ + public static final int WEB_GROUNDING_TYPE_GOOGLE_SEARCH_VALUE = 2; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
+     * Grounding with Enterprise Web Search is enabled.
+     * 
+ * + * WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + */ + public static final int WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH_VALUE = 3; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + /** + * @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 WebGroundingType valueOf(int value) { + return forNumber(value); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static WebGroundingType forNumber(int value) { + switch (value) { + case 0: + return WEB_GROUNDING_TYPE_UNSPECIFIED; + case 1: + return WEB_GROUNDING_TYPE_DISABLED; + case 2: + return WEB_GROUNDING_TYPE_GOOGLE_SEARCH; + case 3: + return WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH; + default: + return null; + } } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Assistant)) { - return super.equals(obj); + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - com.google.cloud.discoveryengine.v1.Assistant other = - (com.google.cloud.discoveryengine.v1.Assistant) obj; - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WebGroundingType findValueByNumber(int number) { + return WebGroundingType.forNumber(number); + } + }; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + 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()); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Assistant.getDescriptor().getEnumTypes().get(0); + } - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final WebGroundingType[] VALUES = values(); - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static WebGroundingType 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()]; + } - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private final int value; - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private WebGroundingType(int value) { + this.value = value; + } - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Assistant.WebGroundingType) } - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public interface GenerationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.GenerationConfig) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1.Assistant parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
+     * Optional. The default model to use for assistant.
+     * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultModelId. + */ + java.lang.String getDefaultModelId(); - public static com.google.cloud.discoveryengine.v1.Assistant parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * Optional. The default model to use for assistant.
+     * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultModelId. + */ + com.google.protobuf.ByteString getDefaultModelIdBytes(); - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedModelIds. + */ + java.util.List getAllowedModelIdsList(); - public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedModelIds. + */ + int getAllowedModelIdsCount(); - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedModelIds at the given index. + */ + java.lang.String getAllowedModelIds(int index); - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedModelIds at the given index. + */ + com.google.protobuf.ByteString getAllowedModelIdsBytes(int index); - public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Assistant prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return The systemInstruction. + */ + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + getSystemInstruction(); - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstructionOrBuilder + getSystemInstructionOrBuilder(); + + /** + * + * + *
+     * The default language to use for the generation of the assistant
+     * response.
+     * Use an ISO 639-1 language code such as `en`.
+     * If not specified, the language will be automatically detected.
+     * 
+ * + * string default_language = 4; + * + * @return The defaultLanguage. + */ + java.lang.String getDefaultLanguage(); + + /** + * + * + *
+     * The default language to use for the generation of the assistant
+     * response.
+     * Use an ISO 639-1 language code such as `en`.
+     * If not specified, the language will be automatically detected.
+     * 
+ * + * string default_language = 4; + * + * @return The bytes for defaultLanguage. + */ + com.google.protobuf.ByteString getDefaultLanguageBytes(); } /** * * *
-   * Discovery Engine Assistant resource.
+   * Configuration for the generation of the assistant response.
    * 
* - * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant} + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.GenerationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + public static final class GenerationConfig extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant) - com.google.cloud.discoveryengine.v1.AssistantOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.GenerationConfig) + GenerationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerationConfig"); + } + + // Use GenerationConfig.newBuilder() to construct. + private GenerationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerationConfig() { + defaultModelId_ = ""; + allowedModelIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + defaultLanguage_ = ""; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.AssistantProto - .internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor; + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.AssistantProto - .internal_static_google_cloud_discoveryengine_v1_Assistant_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Assistant.class, - com.google.cloud.discoveryengine.v1.Assistant.Builder.class); + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.class, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1.Assistant.newBuilder() - private Builder() {} + public interface SystemInstructionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) + com.google.protobuf.MessageOrBuilder { - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+       * Optional. Additional system instruction that will be added to the
+       * default system instruction.
+       * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalSystemInstruction. + */ + java.lang.String getAdditionalSystemInstruction(); - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; + /** + * + * + *
+       * Optional. Additional system instruction that will be added to the
+       * default system instruction.
+       * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additionalSystemInstruction. + */ + com.google.protobuf.ByteString getAdditionalSystemInstructionBytes(); } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.AssistantProto - .internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor; - } + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction} + */ + public static final class SystemInstruction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) + SystemInstructionOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Assistant getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance(); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SystemInstruction"); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Assistant build() { - com.google.cloud.discoveryengine.v1.Assistant result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + // Use SystemInstruction.newBuilder() to construct. + private SystemInstruction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - return result; + + private SystemInstruction() { + additionalSystemInstruction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .class, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .Builder.class); + } + + public static final int ADDITIONAL_SYSTEM_INSTRUCTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object additionalSystemInstruction_ = ""; + + /** + * + * + *
+       * Optional. Additional system instruction that will be added to the
+       * default system instruction.
+       * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalSystemInstruction. + */ + @java.lang.Override + public java.lang.String getAdditionalSystemInstruction() { + java.lang.Object ref = additionalSystemInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalSystemInstruction_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. Additional system instruction that will be added to the
+       * default system instruction.
+       * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additionalSystemInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditionalSystemInstructionBytes() { + java.lang.Object ref = additionalSystemInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalSystemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalSystemInstruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, additionalSystemInstruction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalSystemInstruction_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 2, additionalSystemInstruction_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction other = + (com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) obj; + + if (!getAdditionalSystemInstruction().equals(other.getAdditionalSystemInstruction())) + 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) + ADDITIONAL_SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalSystemInstruction().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstructionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .class, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + additionalSystemInstruction_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + build() { + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction result = + new com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.additionalSystemInstruction_ = additionalSystemInstruction_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + other) { + if (other + == com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance()) return this; + if (!other.getAdditionalSystemInstruction().isEmpty()) { + additionalSystemInstruction_ = other.additionalSystemInstruction_; + 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 18: + { + additionalSystemInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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 additionalSystemInstruction_ = ""; + + /** + * + * + *
+         * Optional. Additional system instruction that will be added to the
+         * default system instruction.
+         * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalSystemInstruction. + */ + public java.lang.String getAdditionalSystemInstruction() { + java.lang.Object ref = additionalSystemInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalSystemInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. Additional system instruction that will be added to the
+         * default system instruction.
+         * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additionalSystemInstruction. + */ + public com.google.protobuf.ByteString getAdditionalSystemInstructionBytes() { + java.lang.Object ref = additionalSystemInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalSystemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. Additional system instruction that will be added to the
+         * default system instruction.
+         * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalSystemInstruction to set. + * @return This builder for chaining. + */ + public Builder setAdditionalSystemInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additionalSystemInstruction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Additional system instruction that will be added to the
+         * default system instruction.
+         * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalSystemInstruction() { + additionalSystemInstruction_ = getDefaultInstance().getAdditionalSystemInstruction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Additional system instruction that will be added to the
+         * default system instruction.
+         * 
+ * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for additionalSystemInstruction to set. + * @return This builder for chaining. + */ + public Builder setAdditionalSystemInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additionalSystemInstruction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction) + private static final com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstruction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemInstruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DEFAULT_MODEL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultModelId_ = ""; + + /** + * + * + *
+     * Optional. The default model to use for assistant.
+     * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultModelId. + */ + @java.lang.Override + public java.lang.String getDefaultModelId() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultModelId_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The default model to use for assistant.
+     * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultModelIdBytes() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_MODEL_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedModelIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedModelIds. + */ + public com.google.protobuf.ProtocolStringList getAllowedModelIdsList() { + return allowedModelIds_; + } + + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedModelIds. + */ + public int getAllowedModelIdsCount() { + return allowedModelIds_.size(); + } + + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedModelIds at the given index. + */ + public java.lang.String getAllowedModelIds(int index) { + return allowedModelIds_.get(index); + } + + /** + * + * + *
+     * Optional. The list of models that are allowed to be used for assistant.
+     * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedModelIds at the given index. + */ + public com.google.protobuf.ByteString getAllowedModelIdsBytes(int index) { + return allowedModelIds_.getByteString(index); + } + + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + systemInstruction_; + + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return The systemInstruction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + getSystemInstruction() { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } + + /** + * + * + *
+     * System instruction, also known as the prompt preamble for LLM calls.
+     * See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstructionOrBuilder + getSystemInstructionOrBuilder() { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } + + public static final int DEFAULT_LANGUAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguage_ = ""; + + /** + * + * + *
+     * The default language to use for the generation of the assistant
+     * response.
+     * Use an ISO 639-1 language code such as `en`.
+     * If not specified, the language will be automatically detected.
+     * 
+ * + * string default_language = 4; + * + * @return The defaultLanguage. + */ + @java.lang.Override + public java.lang.String getDefaultLanguage() { + java.lang.Object ref = defaultLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguage_ = s; + return s; + } + } + + /** + * + * + *
+     * The default language to use for the generation of the assistant
+     * response.
+     * Use an ISO 639-1 language code such as `en`.
+     * If not specified, the language will be automatically detected.
+     * 
+ * + * string default_language = 4; + * + * @return The bytes for defaultLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLanguageBytes() { + java.lang.Object ref = defaultLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultModelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultModelId_); + } + for (int i = 0; i < allowedModelIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedModelIds_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSystemInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, defaultLanguage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultModelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultModelId_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedModelIds_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedModelIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedModelIdsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSystemInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, defaultLanguage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig other = + (com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig) obj; + + if (!getDefaultModelId().equals(other.getDefaultModelId())) return false; + if (!getAllowedModelIdsList().equals(other.getAllowedModelIdsList())) return false; + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } + if (!getDefaultLanguage().equals(other.getDefaultLanguage())) 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) + DEFAULT_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultModelId().hashCode(); + if (getAllowedModelIdsCount() > 0) { + hash = (37 * hash) + ALLOWED_MODEL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedModelIdsList().hashCode(); + } + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } + hash = (37 * hash) + DEFAULT_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLanguage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for the generation of the assistant response.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.GenerationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.GenerationConfig) + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.class, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSystemInstructionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultModelId_ = ""; + allowedModelIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + defaultLanguage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig build() { + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig result = + new com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultModelId_ = defaultModelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedModelIds_.makeImmutable(); + result.allowedModelIds_ = allowedModelIds_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.systemInstruction_ = + systemInstructionBuilder_ == null + ? systemInstruction_ + : systemInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultLanguage_ = defaultLanguage_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.getDefaultInstance()) + return this; + if (!other.getDefaultModelId().isEmpty()) { + defaultModelId_ = other.defaultModelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedModelIds_.isEmpty()) { + if (allowedModelIds_.isEmpty()) { + allowedModelIds_ = other.allowedModelIds_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.addAll(other.allowedModelIds_); + } + onChanged(); + } + if (other.hasSystemInstruction()) { + mergeSystemInstruction(other.getSystemInstruction()); + } + if (!other.getDefaultLanguage().isEmpty()) { + defaultLanguage_ = other.defaultLanguage_; + 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: + { + defaultModelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSystemInstructionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + defaultLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object defaultModelId_ = ""; + + /** + * + * + *
+       * Optional. The default model to use for assistant.
+       * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultModelId. + */ + public java.lang.String getDefaultModelId() { + java.lang.Object ref = defaultModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The default model to use for assistant.
+       * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultModelId. + */ + public com.google.protobuf.ByteString getDefaultModelIdBytes() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The default model to use for assistant.
+       * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultModelId to set. + * @return This builder for chaining. + */ + public Builder setDefaultModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultModelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The default model to use for assistant.
+       * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultModelId() { + defaultModelId_ = getDefaultInstance().getDefaultModelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The default model to use for assistant.
+       * 
+ * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultModelId to set. + * @return This builder for chaining. + */ + public Builder setDefaultModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultModelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedModelIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedModelIdsIsMutable() { + if (!allowedModelIds_.isModifiable()) { + allowedModelIds_ = new com.google.protobuf.LazyStringArrayList(allowedModelIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedModelIds. + */ + public com.google.protobuf.ProtocolStringList getAllowedModelIdsList() { + allowedModelIds_.makeImmutable(); + return allowedModelIds_; + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedModelIds. + */ + public int getAllowedModelIdsCount() { + return allowedModelIds_.size(); + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedModelIds at the given index. + */ + public java.lang.String getAllowedModelIds(int index) { + return allowedModelIds_.get(index); + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedModelIds at the given index. + */ + public com.google.protobuf.ByteString getAllowedModelIdsBytes(int index) { + return allowedModelIds_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedModelIds to set. + * @return This builder for chaining. + */ + public Builder setAllowedModelIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedModelIds to add. + * @return This builder for chaining. + */ + public Builder addAllowedModelIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedModelIds to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedModelIds(java.lang.Iterable values) { + ensureAllowedModelIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedModelIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedModelIds() { + allowedModelIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The list of models that are allowed to be used for assistant.
+       * 
+ * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedModelIds to add. + * @return This builder for chaining. + */ + public Builder addAllowedModelIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + systemInstruction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .Builder, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstructionOrBuilder> + systemInstructionBuilder_; + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return The systemInstruction. + */ + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + getSystemInstruction() { + if (systemInstructionBuilder_ == null) { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } else { + return systemInstructionBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder setSystemInstruction( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction value) { + if (systemInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + } else { + systemInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder setSystemInstruction( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction.Builder + builderForValue) { + if (systemInstructionBuilder_ == null) { + systemInstruction_ = builderForValue.build(); + } else { + systemInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder mergeSystemInstruction( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction value) { + if (systemInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && systemInstruction_ != null + && systemInstruction_ + != com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstruction.getDefaultInstance()) { + getSystemInstructionBuilder().mergeFrom(value); + } else { + systemInstruction_ = value; + } + } else { + systemInstructionBuilder_.mergeFrom(value); + } + if (systemInstruction_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder clearSystemInstruction() { + bitField0_ = (bitField0_ & ~0x00000004); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .Builder + getSystemInstructionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSystemInstructionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstructionOrBuilder + getSystemInstructionOrBuilder() { + if (systemInstructionBuilder_ != null) { + return systemInstructionBuilder_.getMessageOrBuilder(); + } else { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } + } + + /** + * + * + *
+       * System instruction, also known as the prompt preamble for LLM calls.
+       * See also
+       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .Builder, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstructionOrBuilder> + internalGetSystemInstructionFieldBuilder() { + if (systemInstructionBuilder_ == null) { + systemInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction + .Builder, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .SystemInstructionOrBuilder>( + getSystemInstruction(), getParentForChildren(), isClean()); + systemInstruction_ = null; + } + return systemInstructionBuilder_; + } + + private java.lang.Object defaultLanguage_ = ""; + + /** + * + * + *
+       * The default language to use for the generation of the assistant
+       * response.
+       * Use an ISO 639-1 language code such as `en`.
+       * If not specified, the language will be automatically detected.
+       * 
+ * + * string default_language = 4; + * + * @return The defaultLanguage. + */ + public java.lang.String getDefaultLanguage() { + java.lang.Object ref = defaultLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The default language to use for the generation of the assistant
+       * response.
+       * Use an ISO 639-1 language code such as `en`.
+       * If not specified, the language will be automatically detected.
+       * 
+ * + * string default_language = 4; + * + * @return The bytes for defaultLanguage. + */ + public com.google.protobuf.ByteString getDefaultLanguageBytes() { + java.lang.Object ref = defaultLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The default language to use for the generation of the assistant
+       * response.
+       * Use an ISO 639-1 language code such as `en`.
+       * If not specified, the language will be automatically detected.
+       * 
+ * + * string default_language = 4; + * + * @param value The defaultLanguage to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLanguage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The default language to use for the generation of the assistant
+       * response.
+       * Use an ISO 639-1 language code such as `en`.
+       * If not specified, the language will be automatically detected.
+       * 
+ * + * string default_language = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultLanguage() { + defaultLanguage_ = getDefaultInstance().getDefaultLanguage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * The default language to use for the generation of the assistant
+       * response.
+       * Use an ISO 639-1 language code such as `en`.
+       * If not specified, the language will be automatically detected.
+       * 
+ * + * string default_language = 4; + * + * @param value The bytes for defaultLanguage to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLanguage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.GenerationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.GenerationConfig) + private static final com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.ToolInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the tool as defined by
+     * DataConnectorService.QueryAvailableActions.
+     * Note: it's using `action` in the DataConnectorService apis, but they are
+     * the same as the `tool` here.
+     * 
+ * + * string tool_name = 1; + * + * @return The toolName. + */ + java.lang.String getToolName(); + + /** + * + * + *
+     * The name of the tool as defined by
+     * DataConnectorService.QueryAvailableActions.
+     * Note: it's using `action` in the DataConnectorService apis, but they are
+     * the same as the `tool` here.
+     * 
+ * + * string tool_name = 1; + * + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString getToolNameBytes(); + + /** + * + * + *
+     * The display name of the tool.
+     * 
+ * + * string tool_display_name = 2; + * + * @return The toolDisplayName. + */ + java.lang.String getToolDisplayName(); + + /** + * + * + *
+     * The display name of the tool.
+     * 
+ * + * string tool_display_name = 2; + * + * @return The bytes for toolDisplayName. + */ + com.google.protobuf.ByteString getToolDisplayNameBytes(); + } + + /** + * + * + *
+   * Information to identify a tool.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.ToolInfo} + */ + public static final class ToolInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.ToolInfo) + ToolInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ToolInfo"); + } + + // Use ToolInfo.newBuilder() to construct. + private ToolInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolInfo() { + toolName_ = ""; + toolDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.class, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder.class); + } + + public static final int TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + + /** + * + * + *
+     * The name of the tool as defined by
+     * DataConnectorService.QueryAvailableActions.
+     * Note: it's using `action` in the DataConnectorService apis, but they are
+     * the same as the `tool` here.
+     * 
+ * + * string tool_name = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The name of the tool as defined by
+     * DataConnectorService.QueryAvailableActions.
+     * Note: it's using `action` in the DataConnectorService apis, but they are
+     * the same as the `tool` here.
+     * 
+ * + * string tool_name = 1; + * + * @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 TOOL_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolDisplayName_ = ""; + + /** + * + * + *
+     * The display name of the tool.
+     * 
+ * + * string tool_display_name = 2; + * + * @return The toolDisplayName. + */ + @java.lang.Override + public java.lang.String getToolDisplayName() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+     * The display name of the tool.
+     * 
+ * + * string tool_display_name = 2; + * + * @return The bytes for toolDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolDisplayNameBytes() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toolDisplayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toolDisplayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Assistant.ToolInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo other = + (com.google.cloud.discoveryengine.v1.Assistant.ToolInfo) obj; + + if (!getToolName().equals(other.getToolName())) return false; + if (!getToolDisplayName().equals(other.getToolDisplayName())) 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) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + hash = (37 * hash) + TOOL_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Information to identify a tool.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.ToolInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.ToolInfo) + com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.class, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolName_ = ""; + toolDisplayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo build() { + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo result = + new com.google.cloud.discoveryengine.v1.Assistant.ToolInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Assistant.ToolInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolName_ = toolName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolDisplayName_ = toolDisplayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Assistant.ToolInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Assistant.ToolInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Assistant.ToolInfo other) { + if (other == com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.getDefaultInstance()) + return this; + if (!other.getToolName().isEmpty()) { + toolName_ = other.toolName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToolDisplayName().isEmpty()) { + toolDisplayName_ = other.toolDisplayName_; + 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: + { + toolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolDisplayName_ = 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 toolName_ = ""; + + /** + * + * + *
+       * The name of the tool as defined by
+       * DataConnectorService.QueryAvailableActions.
+       * Note: it's using `action` in the DataConnectorService apis, but they are
+       * the same as the `tool` here.
+       * 
+ * + * string tool_name = 1; + * + * @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; + } + } + + /** + * + * + *
+       * The name of the tool as defined by
+       * DataConnectorService.QueryAvailableActions.
+       * Note: it's using `action` in the DataConnectorService apis, but they are
+       * the same as the `tool` here.
+       * 
+ * + * string tool_name = 1; + * + * @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; + } + } + + /** + * + * + *
+       * The name of the tool as defined by
+       * DataConnectorService.QueryAvailableActions.
+       * Note: it's using `action` in the DataConnectorService apis, but they are
+       * the same as the `tool` here.
+       * 
+ * + * string tool_name = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the tool as defined by
+       * DataConnectorService.QueryAvailableActions.
+       * Note: it's using `action` in the DataConnectorService apis, but they are
+       * the same as the `tool` here.
+       * 
+ * + * string tool_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the tool as defined by
+       * DataConnectorService.QueryAvailableActions.
+       * Note: it's using `action` in the DataConnectorService apis, but they are
+       * the same as the `tool` here.
+       * 
+ * + * string tool_name = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolDisplayName_ = ""; + + /** + * + * + *
+       * The display name of the tool.
+       * 
+ * + * string tool_display_name = 2; + * + * @return The toolDisplayName. + */ + public java.lang.String getToolDisplayName() { + java.lang.Object ref = toolDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The display name of the tool.
+       * 
+ * + * string tool_display_name = 2; + * + * @return The bytes for toolDisplayName. + */ + public com.google.protobuf.ByteString getToolDisplayNameBytes() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The display name of the tool.
+       * 
+ * + * string tool_display_name = 2; + * + * @param value The toolDisplayName to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the tool.
+       * 
+ * + * string tool_display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearToolDisplayName() { + toolDisplayName_ = getDefaultInstance().getToolDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the tool.
+       * 
+ * + * string tool_display_name = 2; + * + * @param value The bytes for toolDisplayName to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.ToolInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.ToolInfo) + private static final com.google.cloud.discoveryengine.v1.Assistant.ToolInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Assistant.ToolInfo(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.ToolList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + java.util.List getToolInfoList(); + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo getToolInfo(int index); + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + int getToolInfoCount(); + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + java.util.List + getToolInfoOrBuilderList(); + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder getToolInfoOrBuilder(int index); + } + + /** + * + * + *
+   * The enabled tools on a connector
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.ToolList} + */ + public static final class ToolList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.ToolList) + ToolListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ToolList"); + } + + // Use ToolList.newBuilder() to construct. + private ToolList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolList() { + toolInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.ToolList.class, + com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder.class); + } + + public static final int TOOL_INFO_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolInfo_; + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public java.util.List + getToolInfoList() { + return toolInfo_; + } + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public java.util.List + getToolInfoOrBuilderList() { + return toolInfo_; + } + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public int getToolInfoCount() { + return toolInfo_.size(); + } + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo getToolInfo(int index) { + return toolInfo_.get(index); + } + + /** + * + * + *
+     * The list of tools with corresponding tool information.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder getToolInfoOrBuilder( + int index) { + return toolInfo_.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 < toolInfo_.size(); i++) { + output.writeMessage(1, toolInfo_.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 < toolInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolInfo_.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.google.cloud.discoveryengine.v1.Assistant.ToolList)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.ToolList other = + (com.google.cloud.discoveryengine.v1.Assistant.ToolList) obj; + + if (!getToolInfoList().equals(other.getToolInfoList())) 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 (getToolInfoCount() > 0) { + hash = (37 * hash) + TOOL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getToolInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.ToolList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The enabled tools on a connector
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.ToolList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.ToolList) + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.ToolList.class, + com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Assistant.ToolList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolInfoBuilder_ == null) { + toolInfo_ = java.util.Collections.emptyList(); + } else { + toolInfo_ = null; + toolInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.ToolList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList build() { + com.google.cloud.discoveryengine.v1.Assistant.ToolList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.ToolList result = + new com.google.cloud.discoveryengine.v1.Assistant.ToolList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.Assistant.ToolList result) { + if (toolInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolInfo_ = java.util.Collections.unmodifiableList(toolInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolInfo_ = toolInfo_; + } else { + result.toolInfo_ = toolInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Assistant.ToolList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Assistant.ToolList) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Assistant.ToolList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Assistant.ToolList other) { + if (other == com.google.cloud.discoveryengine.v1.Assistant.ToolList.getDefaultInstance()) + return this; + if (toolInfoBuilder_ == null) { + if (!other.toolInfo_.isEmpty()) { + if (toolInfo_.isEmpty()) { + toolInfo_ = other.toolInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolInfoIsMutable(); + toolInfo_.addAll(other.toolInfo_); + } + onChanged(); + } + } else { + if (!other.toolInfo_.isEmpty()) { + if (toolInfoBuilder_.isEmpty()) { + toolInfoBuilder_.dispose(); + toolInfoBuilder_ = null; + toolInfo_ = other.toolInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + toolInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolInfoFieldBuilder() + : null; + } else { + toolInfoBuilder_.addAllMessages(other.toolInfo_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.parser(), + extensionRegistry); + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.add(m); + } else { + toolInfoBuilder_.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 toolInfo_ = + java.util.Collections.emptyList(); + + private void ensureToolInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolInfo_ = + new java.util.ArrayList( + toolInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder> + toolInfoBuilder_; + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public java.util.List + getToolInfoList() { + if (toolInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolInfo_); + } else { + return toolInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public int getToolInfoCount() { + if (toolInfoBuilder_ == null) { + return toolInfo_.size(); + } else { + return toolInfoBuilder_.getCount(); + } + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo getToolInfo(int index) { + if (toolInfoBuilder_ == null) { + return toolInfo_.get(index); + } else { + return toolInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder setToolInfo( + int index, com.google.cloud.discoveryengine.v1.Assistant.ToolInfo value) { + if (toolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolInfoIsMutable(); + toolInfo_.set(index, value); + onChanged(); + } else { + toolInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder setToolInfo( + int index, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder builderForValue) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + toolInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder addToolInfo(com.google.cloud.discoveryengine.v1.Assistant.ToolInfo value) { + if (toolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolInfoIsMutable(); + toolInfo_.add(value); + onChanged(); + } else { + toolInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder addToolInfo( + int index, com.google.cloud.discoveryengine.v1.Assistant.ToolInfo value) { + if (toolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolInfoIsMutable(); + toolInfo_.add(index, value); + onChanged(); + } else { + toolInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder addToolInfo( + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder builderForValue) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.add(builderForValue.build()); + onChanged(); + } else { + toolInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder addToolInfo( + int index, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder builderForValue) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + toolInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder addAllToolInfo( + java.lang.Iterable + values) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolInfo_); + onChanged(); + } else { + toolInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder clearToolInfo() { + if (toolInfoBuilder_ == null) { + toolInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public Builder removeToolInfo(int index) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.remove(index); + onChanged(); + } else { + toolInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder getToolInfoBuilder( + int index) { + return internalGetToolInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder getToolInfoOrBuilder( + int index) { + if (toolInfoBuilder_ == null) { + return toolInfo_.get(index); + } else { + return toolInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder> + getToolInfoOrBuilderList() { + if (toolInfoBuilder_ != null) { + return toolInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolInfo_); + } + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder addToolInfoBuilder() { + return internalGetToolInfoFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.getDefaultInstance()); + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder addToolInfoBuilder( + int index) { + return internalGetToolInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.getDefaultInstance()); + } + + /** + * + * + *
+       * The list of tools with corresponding tool information.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant.ToolInfo tool_info = 1; + */ + public java.util.List + getToolInfoBuilderList() { + return internalGetToolInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder> + internalGetToolInfoFieldBuilder() { + if (toolInfoBuilder_ == null) { + toolInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfo.Builder, + com.google.cloud.discoveryengine.v1.Assistant.ToolInfoOrBuilder>( + toolInfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolInfo_ = null; + } + return toolInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.ToolList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.ToolList) + private static final com.google.cloud.discoveryengine.v1.Assistant.ToolList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Assistant.ToolList(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.ToolList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomerPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBannedPhrasesList(); + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase getBannedPhrases( + int index); + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBannedPhrasesCount(); + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder> + getBannedPhrasesOrBuilderList(); + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder + getBannedPhrasesOrBuilder(int index); + + /** + * + * + *
+     * Optional. Model Armor configuration to be used for sanitizing user
+     * prompts and assistant responses.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + boolean hasModelArmorConfig(); + + /** + * + * + *
+     * Optional. Model Armor configuration to be used for sanitizing user
+     * prompts and assistant responses.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + getModelArmorConfig(); + + /** + * + * + *
+     * Optional. Model Armor configuration to be used for sanitizing user
+     * prompts and assistant responses.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder(); + + /** + * + * + *
+     * Optional. Data protection policy to be used for sanitizing file uploads.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + boolean hasDataProtectionPolicy(); + + /** + * + * + *
+     * Optional. Data protection policy to be used for sanitizing file uploads.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy(); + + /** + * + * + *
+     * Optional. Data protection policy to be used for sanitizing file uploads.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder(); + } + + /** + * + * + *
+   * Customer-defined policy for the assistant.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.CustomerPolicy} + */ + public static final class CustomerPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) + CustomerPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomerPolicy"); + } + + // Use CustomerPolicy.newBuilder() to construct. + private CustomerPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomerPolicy() { + bannedPhrases_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.class, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder.class); + } + + public interface BannedPhraseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The raw string content to be banned.
+       * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phrase. + */ + java.lang.String getPhrase(); + + /** + * + * + *
+       * Required. The raw string content to be banned.
+       * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phrase. + */ + com.google.protobuf.ByteString getPhraseBytes(); + + /** + * + * + *
+       * Optional. Match type for the banned phrase.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + + /** + * + * + *
+       * Optional. Match type for the banned phrase.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchType. + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + getMatchType(); + + /** + * + * + *
+       * Optional. If true, diacritical marks (e.g., accents, umlauts) are
+       * ignored when matching banned phrases. For example, "cafe" would match
+       * "café".
+       * 
+ * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreDiacritics. + */ + boolean getIgnoreDiacritics(); + } + + /** + * + * + *
+     * Definition of a customer-defined banned phrase. A banned phrase is not
+     * allowed to appear in the user query or the LLM response, or else the
+     * answer will be refused.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase} + */ + public static final class BannedPhrase extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) + BannedPhraseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BannedPhrase"); + } + + // Use BannedPhrase.newBuilder() to construct. + private BannedPhrase(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BannedPhrase() { + phrase_ = ""; + matchType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.class, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + .class); + } + + /** + * + * + *
+       * The matching method for the banned phrase.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType} + */ + public enum BannedPhraseMatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Defaults to SIMPLE_STRING_MATCH.
+         * 
+ * + * BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0; + */ + BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+         * The banned phrase matches if it is found anywhere in the text as an
+         * exact substring.
+         * 
+ * + * SIMPLE_STRING_MATCH = 1; + */ + SIMPLE_STRING_MATCH(1), + /** + * + * + *
+         * Banned phrase only matches if the pattern found in the text is
+         * surrounded by word delimiters. The phrase itself may still contain
+         * word delimiters.
+         * 
+ * + * WORD_BOUNDARY_STRING_MATCH = 2; + */ + WORD_BOUNDARY_STRING_MATCH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BannedPhraseMatchType"); + } + + /** + * + * + *
+         * Defaults to SIMPLE_STRING_MATCH.
+         * 
+ * + * BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+         * The banned phrase matches if it is found anywhere in the text as an
+         * exact substring.
+         * 
+ * + * SIMPLE_STRING_MATCH = 1; + */ + public static final int SIMPLE_STRING_MATCH_VALUE = 1; + + /** + * + * + *
+         * Banned phrase only matches if the pattern found in the text is
+         * surrounded by word delimiters. The phrase itself may still contain
+         * word delimiters.
+         * 
+ * + * WORD_BOUNDARY_STRING_MATCH = 2; + */ + public static final int WORD_BOUNDARY_STRING_MATCH_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 BannedPhraseMatchType 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 BannedPhraseMatchType forNumber(int value) { + switch (value) { + case 0: + return BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED; + case 1: + return SIMPLE_STRING_MATCH; + case 2: + return WORD_BOUNDARY_STRING_MATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BannedPhraseMatchType findValueByNumber(int number) { + return BannedPhraseMatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BannedPhraseMatchType[] VALUES = values(); + + public static BannedPhraseMatchType 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 BannedPhraseMatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType) + } + + public static final int PHRASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object phrase_ = ""; + + /** + * + * + *
+       * Required. The raw string content to be banned.
+       * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phrase. + */ + @java.lang.Override + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phrase_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. The raw string content to be banned.
+       * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 2; + private int matchType_ = 0; + + /** + * + * + *
+       * Optional. Match type for the banned phrase.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + + /** + * + * + *
+       * Optional. Match type for the banned phrase.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + getMatchType() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + result = + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.forNumber(matchType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.UNRECOGNIZED + : result; + } + + public static final int IGNORE_DIACRITICS_FIELD_NUMBER = 3; + private boolean ignoreDiacritics_ = false; + + /** + * + * + *
+       * Optional. If true, diacritical marks (e.g., accents, umlauts) are
+       * ignored when matching banned phrases. For example, "cafe" would match
+       * "café".
+       * 
+ * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreDiacritics. + */ + @java.lang.Override + public boolean getIgnoreDiacritics() { + return ignoreDiacritics_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phrase_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, phrase_); + } + if (matchType_ + != com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, matchType_); + } + if (ignoreDiacritics_ != false) { + output.writeBool(3, ignoreDiacritics_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phrase_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, phrase_); + } + if (matchType_ + != com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, matchType_); + } + if (ignoreDiacritics_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreDiacritics_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase other = + (com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) obj; + + if (!getPhrase().equals(other.getPhrase())) return false; + if (matchType_ != other.matchType_) return false; + if (getIgnoreDiacritics() != other.getIgnoreDiacritics()) 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) + PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPhrase().hashCode(); + hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + IGNORE_DIACRITICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreDiacritics()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Definition of a customer-defined banned phrase. A banned phrase is not
+       * allowed to appear in the user query or the LLM response, or else the
+       * answer will be refused.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.class, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phrase_ = ""; + matchType_ = 0; + ignoreDiacritics_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase build() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase result = + new com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phrase_ = phrase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreDiacritics_ = ignoreDiacritics_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase other) { + if (other + == com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance()) return this; + if (!other.getPhrase().isEmpty()) { + phrase_ = other.phrase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (other.getIgnoreDiacritics() != false) { + setIgnoreDiacritics(other.getIgnoreDiacritics()); + } + 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: + { + phrase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + ignoreDiacritics_ = input.readBool(); + 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 phrase_ = ""; + + /** + * + * + *
+         * Required. The raw string content to be banned.
+         * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phrase. + */ + public java.lang.String getPhrase() { + java.lang.Object ref = phrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The raw string content to be banned.
+         * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phrase. + */ + public com.google.protobuf.ByteString getPhraseBytes() { + java.lang.Object ref = phrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The raw string content to be banned.
+         * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The phrase to set. + * @return This builder for chaining. + */ + public Builder setPhrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The raw string content to be banned.
+         * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPhrase() { + phrase_ = getDefaultInstance().getPhrase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The raw string content to be banned.
+         * 
+ * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for phrase to set. + * @return This builder for chaining. + */ + public Builder setPhraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int matchType_ = 0; + + /** + * + * + *
+         * Optional. Match type for the banned phrase.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + + /** + * + * + *
+         * Optional. Match type for the banned phrase.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Match type for the banned phrase.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + getMatchType() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + result = + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.forNumber(matchType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Optional. Match type for the banned phrase.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Match type for the banned phrase.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000002); + matchType_ = 0; + onChanged(); + return this; + } + + private boolean ignoreDiacritics_; + + /** + * + * + *
+         * Optional. If true, diacritical marks (e.g., accents, umlauts) are
+         * ignored when matching banned phrases. For example, "cafe" would match
+         * "café".
+         * 
+ * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreDiacritics. + */ + @java.lang.Override + public boolean getIgnoreDiacritics() { + return ignoreDiacritics_; + } + + /** + * + * + *
+         * Optional. If true, diacritical marks (e.g., accents, umlauts) are
+         * ignored when matching banned phrases. For example, "cafe" would match
+         * "café".
+         * 
+ * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreDiacritics to set. + * @return This builder for chaining. + */ + public Builder setIgnoreDiacritics(boolean value) { + + ignoreDiacritics_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If true, diacritical marks (e.g., accents, umlauts) are
+         * ignored when matching banned phrases. For example, "cafe" would match
+         * "café".
+         * 
+ * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreDiacritics() { + bitField0_ = (bitField0_ & ~0x00000004); + ignoreDiacritics_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase) + private static final com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BannedPhrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelArmorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * user prompts. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the user prompt.
+       * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + java.lang.String getUserPromptTemplate(); + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * user prompts. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the user prompt.
+       * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + com.google.protobuf.ByteString getUserPromptTemplateBytes(); + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * assistant responses. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the assistant
+       * response.
+       * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + java.lang.String getResponseTemplate(); + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * assistant responses. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the assistant
+       * response.
+       * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + com.google.protobuf.ByteString getResponseTemplateBytes(); + + /** + * + * + *
+       * Optional. Defines the failure mode for Model Armor sanitization.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failureMode. + */ + int getFailureModeValue(); + + /** + * + * + *
+       * Optional. Defines the failure mode for Model Armor sanitization.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failureMode. + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode + getFailureMode(); + } + + /** + * + * + *
+     * Configuration for customer defined Model Armor templates to be used for
+     * sanitizing user prompts and assistant responses.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig} + */ + public static final class ModelArmorConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) + ModelArmorConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelArmorConfig"); + } + + // Use ModelArmorConfig.newBuilder() to construct. + private ModelArmorConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelArmorConfig() { + userPromptTemplate_ = ""; + responseTemplate_ = ""; + failureMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.class, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .Builder.class); + } + + /** + * + * + *
+       * Determines the behavior when Model Armor fails to process a request.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode} + */ + public enum FailureMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified failure mode, default behavior is `FAIL_CLOSED`.
+         * 
+ * + * FAILURE_MODE_UNSPECIFIED = 0; + */ + FAILURE_MODE_UNSPECIFIED(0), + /** + * + * + *
+         * In case of a Model Armor processing failure, the request is allowed
+         * to proceed without any changes.
+         * 
+ * + * FAIL_OPEN = 1; + */ + FAIL_OPEN(1), + /** + * + * + *
+         * In case of a Model Armor processing failure, the request is rejected.
+         * 
+ * + * FAIL_CLOSED = 2; + */ + FAIL_CLOSED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FailureMode"); + } + + /** + * + * + *
+         * Unspecified failure mode, default behavior is `FAIL_CLOSED`.
+         * 
+ * + * FAILURE_MODE_UNSPECIFIED = 0; + */ + public static final int FAILURE_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+         * In case of a Model Armor processing failure, the request is allowed
+         * to proceed without any changes.
+         * 
+ * + * FAIL_OPEN = 1; + */ + public static final int FAIL_OPEN_VALUE = 1; + + /** + * + * + *
+         * In case of a Model Armor processing failure, the request is rejected.
+         * 
+ * + * FAIL_CLOSED = 2; + */ + public static final int FAIL_CLOSED_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 FailureMode 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 FailureMode forNumber(int value) { + switch (value) { + case 0: + return FAILURE_MODE_UNSPECIFIED; + case 1: + return FAIL_OPEN; + case 2: + return FAIL_CLOSED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailureMode findValueByNumber(int number) { + return FailureMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FailureMode[] VALUES = values(); + + public static FailureMode 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 FailureMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode) + } + + public static final int USER_PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPromptTemplate_ = ""; + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * user prompts. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the user prompt.
+       * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + @java.lang.Override + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * user prompts. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the user prompt.
+       * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * assistant responses. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the assistant
+       * response.
+       * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + @java.lang.Override + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The resource name of the Model Armor template for sanitizing
+       * assistant responses. Format:
+       * `projects/{project}/locations/{location}/templates/{template_id}`
+       *
+       * If not specified, no sanitization will be applied to the assistant
+       * response.
+       * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAILURE_MODE_FIELD_NUMBER = 3; + private int failureMode_ = 0; + + /** + * + * + *
+       * Optional. Defines the failure mode for Model Armor sanitization.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failureMode. + */ + @java.lang.Override + public int getFailureModeValue() { + return failureMode_; + } + + /** + * + * + *
+       * Optional. Defines the failure mode for Model Armor sanitization.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failureMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + getFailureMode() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode + result = + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.forNumber(failureMode_); + return result == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, responseTemplate_); + } + if (failureMode_ + != com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.FAILURE_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, failureMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, responseTemplate_); + } + if (failureMode_ + != com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.FAILURE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, failureMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig other = + (com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) obj; + + if (!getUserPromptTemplate().equals(other.getUserPromptTemplate())) return false; + if (!getResponseTemplate().equals(other.getResponseTemplate())) return false; + if (failureMode_ != other.failureMode_) 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_PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getUserPromptTemplate().hashCode(); + hash = (37 * hash) + RESPONSE_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getResponseTemplate().hashCode(); + hash = (37 * hash) + FAILURE_MODE_FIELD_NUMBER; + hash = (53 * hash) + failureMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Configuration for customer defined Model Armor templates to be used for
+       * sanitizing user prompts and assistant responses.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .class, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userPromptTemplate_ = ""; + responseTemplate_ = ""; + failureMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + build() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig result = + new com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userPromptTemplate_ = userPromptTemplate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.responseTemplate_ = responseTemplate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failureMode_ = failureMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance()) return this; + if (!other.getUserPromptTemplate().isEmpty()) { + userPromptTemplate_ = other.userPromptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResponseTemplate().isEmpty()) { + responseTemplate_ = other.responseTemplate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.failureMode_ != 0) { + setFailureModeValue(other.getFailureModeValue()); + } + 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: + { + userPromptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + responseTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + failureMode_ = 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 java.lang.Object userPromptTemplate_ = ""; + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * user prompts. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * user prompts. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * user prompts. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * user prompts. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserPromptTemplate() { + userPromptTemplate_ = getDefaultInstance().getUserPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * user prompts. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * assistant responses. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the assistant
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * assistant responses. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the assistant
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * assistant responses. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the assistant
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * assistant responses. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the assistant
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResponseTemplate() { + responseTemplate_ = getDefaultInstance().getResponseTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The resource name of the Model Armor template for sanitizing
+         * assistant responses. Format:
+         * `projects/{project}/locations/{location}/templates/{template_id}`
+         *
+         * If not specified, no sanitization will be applied to the assistant
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int failureMode_ = 0; + + /** + * + * + *
+         * Optional. Defines the failure mode for Model Armor sanitization.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failureMode. + */ + @java.lang.Override + public int getFailureModeValue() { + return failureMode_; + } + + /** + * + * + *
+         * Optional. Defines the failure mode for Model Armor sanitization.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for failureMode to set. + * @return This builder for chaining. + */ + public Builder setFailureModeValue(int value) { + failureMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Defines the failure mode for Model Armor sanitization.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failureMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + getFailureMode() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode + result = + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.forNumber(failureMode_); + return result == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Optional. Defines the failure mode for Model Armor sanitization.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The failureMode to set. + * @return This builder for chaining. + */ + public Builder setFailureMode( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + failureMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Defines the failure mode for Model Armor sanitization.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFailureMode() { + bitField0_ = (bitField0_ & ~0x00000004); + failureMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig) + private static final com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .ModelArmorConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelArmorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int BANNED_PHRASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase> + bannedPhrases_; + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getBannedPhrasesList() { + return bannedPhrases_; + } + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder> + getBannedPhrasesOrBuilderList() { + return bannedPhrases_; + } + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBannedPhrasesCount() { + return bannedPhrases_.size(); + } + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + getBannedPhrases(int index) { + return bannedPhrases_.get(index); + } + + /** + * + * + *
+     * Optional. List of banned phrases.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder + getBannedPhrasesOrBuilder(int index) { + return bannedPhrases_.get(index); + } + + public static final int MODEL_ARMOR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + modelArmorConfig_; + + /** + * + * + *
+     * Optional. Model Armor configuration to be used for sanitizing user
+     * prompts and assistant responses.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + @java.lang.Override + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Model Armor configuration to be used for sanitizing user
+     * prompts and assistant responses.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + getModelArmorConfig() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } + + /** + * + * + *
+     * Optional. Model Armor configuration to be used for sanitizing user
+     * prompts and assistant responses.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } + + public static final int DATA_PROTECTION_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy dataProtectionPolicy_; + + /** + * + * + *
+     * Optional. Data protection policy to be used for sanitizing file uploads.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Data protection policy to be used for sanitizing file uploads.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + /** + * + * + *
+     * Optional. Data protection policy to be used for sanitizing file uploads.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + 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 < bannedPhrases_.size(); i++) { + output.writeMessage(1, bannedPhrases_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getModelArmorConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDataProtectionPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bannedPhrases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bannedPhrases_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getModelArmorConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataProtectionPolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy other = + (com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) obj; + + if (!getBannedPhrasesList().equals(other.getBannedPhrasesList())) return false; + if (hasModelArmorConfig() != other.hasModelArmorConfig()) return false; + if (hasModelArmorConfig()) { + if (!getModelArmorConfig().equals(other.getModelArmorConfig())) return false; + } + if (hasDataProtectionPolicy() != other.hasDataProtectionPolicy()) return false; + if (hasDataProtectionPolicy()) { + if (!getDataProtectionPolicy().equals(other.getDataProtectionPolicy())) 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 (getBannedPhrasesCount() > 0) { + hash = (37 * hash) + BANNED_PHRASES_FIELD_NUMBER; + hash = (53 * hash) + getBannedPhrasesList().hashCode(); + } + if (hasModelArmorConfig()) { + hash = (37 * hash) + MODEL_ARMOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorConfig().hashCode(); + } + if (hasDataProtectionPolicy()) { + hash = (37 * hash) + DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataProtectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Customer-defined policy for the assistant.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant.CustomerPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.class, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBannedPhrasesFieldBuilder(); + internalGetModelArmorConfigFieldBuilder(); + internalGetDataProtectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bannedPhrasesBuilder_ == null) { + bannedPhrases_ = java.util.Collections.emptyList(); + } else { + bannedPhrases_ = null; + bannedPhrasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy build() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy result = + new com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy result) { + if (bannedPhrasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bannedPhrases_ = java.util.Collections.unmodifiableList(bannedPhrases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bannedPhrases_ = bannedPhrases_; + } else { + result.bannedPhrases_ = bannedPhrasesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelArmorConfig_ = + modelArmorConfigBuilder_ == null + ? modelArmorConfig_ + : modelArmorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataProtectionPolicy_ = + dataProtectionPolicyBuilder_ == null + ? dataProtectionPolicy_ + : dataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy other) { + if (other + == com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.getDefaultInstance()) + return this; + if (bannedPhrasesBuilder_ == null) { + if (!other.bannedPhrases_.isEmpty()) { + if (bannedPhrases_.isEmpty()) { + bannedPhrases_ = other.bannedPhrases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.addAll(other.bannedPhrases_); + } + onChanged(); + } + } else { + if (!other.bannedPhrases_.isEmpty()) { + if (bannedPhrasesBuilder_.isEmpty()) { + bannedPhrasesBuilder_.dispose(); + bannedPhrasesBuilder_ = null; + bannedPhrases_ = other.bannedPhrases_; + bitField0_ = (bitField0_ & ~0x00000001); + bannedPhrasesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBannedPhrasesFieldBuilder() + : null; + } else { + bannedPhrasesBuilder_.addAllMessages(other.bannedPhrases_); + } + } + } + if (other.hasModelArmorConfig()) { + mergeModelArmorConfig(other.getModelArmorConfig()); + } + if (other.hasDataProtectionPolicy()) { + mergeDataProtectionPolicy(other.getDataProtectionPolicy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .parser(), + extensionRegistry); + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(m); + } else { + bannedPhrasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetModelArmorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDataProtectionPolicyFieldBuilder().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.util.List< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase> + bannedPhrases_ = java.util.Collections.emptyList(); + + private void ensureBannedPhrasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bannedPhrases_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase>( + bannedPhrases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder> + bannedPhrasesBuilder_; + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase> + getBannedPhrasesList() { + if (bannedPhrasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(bannedPhrases_); + } else { + return bannedPhrasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBannedPhrasesCount() { + if (bannedPhrasesBuilder_ == null) { + return bannedPhrases_.size(); + } else { + return bannedPhrasesBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + getBannedPhrases(int index) { + if (bannedPhrasesBuilder_ == null) { + return bannedPhrases_.get(index); + } else { + return bannedPhrasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase value) { + if (bannedPhrasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.set(index, value); + onChanged(); + } else { + bannedPhrasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + builderForValue) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.set(index, builderForValue.build()); + onChanged(); + } else { + bannedPhrasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase value) { + if (bannedPhrasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(value); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase value) { + if (bannedPhrasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(index, value); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + builderForValue) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(builderForValue.build()); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + builderForValue) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(index, builderForValue.build()); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBannedPhrases( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase> + values) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bannedPhrases_); + onChanged(); + } else { + bannedPhrasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBannedPhrases() { + if (bannedPhrasesBuilder_ == null) { + bannedPhrases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bannedPhrasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBannedPhrases(int index) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.remove(index); + onChanged(); + } else { + bannedPhrasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + getBannedPhrasesBuilder(int index) { + return internalGetBannedPhrasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder + getBannedPhrasesOrBuilder(int index) { + if (bannedPhrasesBuilder_ == null) { + return bannedPhrases_.get(index); + } else { + return bannedPhrasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .BannedPhraseOrBuilder> + getBannedPhrasesOrBuilderList() { + if (bannedPhrasesBuilder_ != null) { + return bannedPhrasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bannedPhrases_); + } + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + addBannedPhrasesBuilder() { + return internalGetBannedPhrasesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder + addBannedPhrasesBuilder(int index) { + return internalGetBannedPhrasesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. List of banned phrases.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder> + getBannedPhrasesBuilderList() { + return internalGetBannedPhrasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseOrBuilder> + internalGetBannedPhrasesFieldBuilder() { + if (bannedPhrasesBuilder_ == null) { + bannedPhrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .BannedPhraseOrBuilder>( + bannedPhrases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bannedPhrases_ = null; + } + return bannedPhrasesBuilder_; + } + + private com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + modelArmorConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder> + modelArmorConfigBuilder_; + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + getModelArmorConfig() { + if (modelArmorConfigBuilder_ == null) { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } else { + return modelArmorConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig value) { + if (modelArmorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelArmorConfig_ = value; + } else { + modelArmorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.Builder + builderForValue) { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfig_ = builderForValue.build(); + } else { + modelArmorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelArmorConfig( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig value) { + if (modelArmorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && modelArmorConfig_ != null + && modelArmorConfig_ + != com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance()) { + getModelArmorConfigBuilder().mergeFrom(value); + } else { + modelArmorConfig_ = value; + } + } else { + modelArmorConfigBuilder_.mergeFrom(value); + } + if (modelArmorConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelArmorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.Builder + getModelArmorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetModelArmorConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + if (modelArmorConfigBuilder_ != null) { + return modelArmorConfigBuilder_.getMessageOrBuilder(); + } else { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } + } + + /** + * + * + *
+       * Optional. Model Armor configuration to be used for sanitizing user
+       * prompts and assistant responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder> + internalGetModelArmorConfigFieldBuilder() { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.ModelArmorConfig + .Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder>( + getModelArmorConfig(), getParentForChildren(), isClean()); + modelArmorConfig_ = null; + } + return modelArmorConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy dataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder> + dataProtectionPolicyBuilder_; + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy() { + if (dataProtectionPolicyBuilder_ == null) { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } else { + return dataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy value) { + if (dataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataProtectionPolicy_ = value; + } else { + dataProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder builderForValue) { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicy_ = builderForValue.build(); + } else { + dataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy value) { + if (dataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dataProtectionPolicy_ != null + && dataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .getDefaultInstance()) { + getDataProtectionPolicyBuilder().mergeFrom(value); + } else { + dataProtectionPolicy_ = value; + } + } else { + dataProtectionPolicyBuilder_.mergeFrom(value); + } + if (dataProtectionPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder + getDataProtectionPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + if (dataProtectionPolicyBuilder_ != null) { + return dataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + } + + /** + * + * + *
+       * Optional. Data protection policy to be used for sanitizing file uploads.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder> + internalGetDataProtectionPolicyFieldBuilder() { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder>( + getDataProtectionPolicy(), getParentForChildren(), isClean()); + dataProtectionPolicy_ = null; + } + return dataProtectionPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Assistant.CustomerPolicy) + private static final com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy(); + } + + public static com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. Resource name of the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. Resource name of the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The assistant display name.
+   *
+   * It must be a UTF-8 encoded string with a length limit of 128 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The assistant display name.
+   *
+   * It must be a UTF-8 encoded string with a length limit of 128 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description for additional information. Expected to be shown on
+   * the configuration UI, not to the users of the assistant.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Description for additional information. Expected to be shown on
+   * the configuration UI, not to the users of the assistant.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_CONFIG_FIELD_NUMBER = 19; + private com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig generationConfig_; + + /** + * + * + *
+   * Optional. Configuration for the generation of the assistant response.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + @java.lang.Override + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for the generation of the assistant response.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig getGenerationConfig() { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for the generation of the assistant response.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + + public static final int WEB_GROUNDING_TYPE_FIELD_NUMBER = 4; + private int webGroundingType_ = 0; + + /** + * + * + *
+   * Optional. The type of web grounding to use.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + @java.lang.Override + public int getWebGroundingTypeValue() { + return webGroundingType_; + } + + /** + * + * + *
+   * Optional. The type of web grounding to use.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType getWebGroundingType() { + com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType result = + com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType.forNumber(webGroundingType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_WEB_GROUNDING_TOGGLE_OFF_FIELD_NUMBER = 22; + private boolean defaultWebGroundingToggleOff_ = false; + + /** + * + * + *
+   * Optional. This field controls the default web grounding toggle for end
+   * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
+   * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+   * grounding enabled by default on UI. If true, grounding toggle will be
+   * disabled by default on UI. End users can still enable web grounding in
+   * the UI if web grounding is enabled.
+   * 
+ * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + @java.lang.Override + public boolean getDefaultWebGroundingToggleOff() { + return defaultWebGroundingToggleOff_; + } + + public static final int ENABLED_TOOLS_FIELD_NUMBER = 18; + + private static final class EnabledToolsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_EnabledToolsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1.Assistant.ToolList + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + enabledTools_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + internalGetEnabledTools() { + if (enabledTools_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnabledToolsDefaultEntryHolder.defaultEntry); + } + return enabledTools_; + } + + public int getEnabledToolsCount() { + return internalGetEnabledTools().getMap().size(); + } + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsEnabledTools(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetEnabledTools().getMap().containsKey(key); + } + + /** Use {@link #getEnabledToolsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getEnabledTools() { + return getEnabledToolsMap(); + } + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getEnabledToolsMap() { + return internalGetEnabledTools().getMap(); + } + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Assistant.ToolList + getEnabledToolsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Assistant.ToolList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetEnabledTools().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList getEnabledToolsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetEnabledTools().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CUSTOMER_POLICY_FIELD_NUMBER = 12; + private com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customerPolicy_; + + /** + * + * + *
+   * Optional. Customer policy for the assistant.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicy field is set. + */ + @java.lang.Override + public boolean hasCustomerPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Customer policy for the assistant.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy getCustomerPolicy() { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } + + /** + * + * + *
+   * Optional. Customer policy for the assistant.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder + getCustomerPolicyOrBuilder() { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 25; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (webGroundingType_ + != com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType + .WEB_GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, webGroundingType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getCustomerPolicy()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetEnabledTools(), EnabledToolsDefaultEntryHolder.defaultEntry, 18); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(19, getGenerationConfig()); + } + if (defaultWebGroundingToggleOff_ != false) { + output.writeBool(22, defaultWebGroundingToggleOff_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(24, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(25, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (webGroundingType_ + != com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType + .WEB_GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, webGroundingType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCustomerPolicy()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + entry : internalGetEnabledTools().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + enabledTools__ = + EnabledToolsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, enabledTools__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getGenerationConfig()); + } + if (defaultWebGroundingToggleOff_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(22, defaultWebGroundingToggleOff_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Assistant)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Assistant other = + (com.google.cloud.discoveryengine.v1.Assistant) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasGenerationConfig() != other.hasGenerationConfig()) return false; + if (hasGenerationConfig()) { + if (!getGenerationConfig().equals(other.getGenerationConfig())) return false; + } + if (webGroundingType_ != other.webGroundingType_) return false; + if (getDefaultWebGroundingToggleOff() != other.getDefaultWebGroundingToggleOff()) return false; + if (!internalGetEnabledTools().equals(other.internalGetEnabledTools())) return false; + if (hasCustomerPolicy() != other.hasCustomerPolicy()) return false; + if (hasCustomerPolicy()) { + if (!getCustomerPolicy().equals(other.getCustomerPolicy())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasGenerationConfig()) { + hash = (37 * hash) + GENERATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGenerationConfig().hashCode(); + } + hash = (37 * hash) + WEB_GROUNDING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + webGroundingType_; + hash = (37 * hash) + DEFAULT_WEB_GROUNDING_TOGGLE_OFF_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultWebGroundingToggleOff()); + if (!internalGetEnabledTools().getMap().isEmpty()) { + hash = (37 * hash) + ENABLED_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnabledTools().hashCode(); + } + if (hasCustomerPolicy()) { + hash = (37 * hash) + CUSTOMER_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getCustomerPolicy().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Assistant parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Assistant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Discovery Engine Assistant resource.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Assistant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Assistant) + com.google.cloud.discoveryengine.v1.AssistantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetEnabledTools(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetMutableEnabledTools(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Assistant.class, + com.google.cloud.discoveryengine.v1.Assistant.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Assistant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenerationConfigFieldBuilder(); + internalGetCustomerPolicyFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } + webGroundingType_ = 0; + defaultWebGroundingToggleOff_ = false; + internalGetMutableEnabledTools().clear(); + customerPolicy_ = null; + if (customerPolicyBuilder_ != null) { + customerPolicyBuilder_.dispose(); + customerPolicyBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantProto + .internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant build() { + com.google.cloud.discoveryengine.v1.Assistant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant buildPartial() { + com.google.cloud.discoveryengine.v1.Assistant result = + new com.google.cloud.discoveryengine.v1.Assistant(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Assistant result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationConfig_ = + generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.webGroundingType_ = webGroundingType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultWebGroundingToggleOff_ = defaultWebGroundingToggleOff_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.enabledTools_ = + internalGetEnabledTools().build(EnabledToolsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.customerPolicy_ = + customerPolicyBuilder_ == null ? customerPolicy_ : customerPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Assistant) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Assistant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Assistant other) { + if (other == com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGenerationConfig()) { + mergeGenerationConfig(other.getGenerationConfig()); + } + if (other.webGroundingType_ != 0) { + setWebGroundingTypeValue(other.getWebGroundingTypeValue()); + } + if (other.getDefaultWebGroundingToggleOff() != false) { + setDefaultWebGroundingToggleOff(other.getDefaultWebGroundingToggleOff()); + } + internalGetMutableEnabledTools().mergeFrom(other.internalGetEnabledTools()); + bitField0_ |= 0x00000040; + if (other.hasCustomerPolicy()) { + mergeCustomerPolicy(other.getCustomerPolicy()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + webGroundingType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 98: + { + input.readMessage( + internalGetCustomerPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 98 + case 146: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + enabledTools__ = + input.readMessage( + EnabledToolsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableEnabledTools() + .ensureBuilderMap() + .put(enabledTools__.getKey(), enabledTools__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 146 + case 154: + { + input.readMessage( + internalGetGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 154 + case 176: + { + defaultWebGroundingToggleOff_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 176 + case 194: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 194 + case 202: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 202 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Immutable. Resource name of the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. Resource name of the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. Resource name of the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Resource name of the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Resource name of the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. The assistant display name.
+     *
+     * It must be a UTF-8 encoded string with a length limit of 128 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The assistant display name.
+     *
+     * It must be a UTF-8 encoded string with a length limit of 128 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The assistant display name.
+     *
+     * It must be a UTF-8 encoded string with a length limit of 128 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant display name.
+     *
+     * It must be a UTF-8 encoded string with a length limit of 128 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant display name.
+     *
+     * It must be a UTF-8 encoded string with a length limit of 128 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description for additional information. Expected to be shown on
+     * the configuration UI, not to the users of the assistant.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Description for additional information. Expected to be shown on
+     * the configuration UI, not to the users of the assistant.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Description for additional information. Expected to be shown on
+     * the configuration UI, not to the users of the assistant.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description for additional information. Expected to be shown on
+     * the configuration UI, not to the users of the assistant.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description for additional information. Expected to be shown on
+     * the configuration UI, not to the users of the assistant.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig generationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder> + generationConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig getGenerationConfig() { + if (generationConfigBuilder_ == null) { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.getDefaultInstance() + : generationConfig_; + } else { + return generationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationConfig_ = value; + } else { + generationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder builderForValue) { + if (generationConfigBuilder_ == null) { + generationConfig_ = builderForValue.build(); + } else { + generationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationConfig( + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationConfig_ != null + && generationConfig_ + != com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig + .getDefaultInstance()) { + getGenerationConfigBuilder().mergeFrom(value); + } else { + generationConfig_ = value; + } + } else { + generationConfigBuilder_.mergeFrom(value); + } + if (generationConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder + getGenerationConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetGenerationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + if (generationConfigBuilder_ != null) { + return generationConfigBuilder_.getMessageOrBuilder(); + } else { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for the generation of the assistant response.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder> + internalGetGenerationConfigFieldBuilder() { + if (generationConfigBuilder_ == null) { + generationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig.Builder, + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder>( + getGenerationConfig(), getParentForChildren(), isClean()); + generationConfig_ = null; + } + return generationConfigBuilder_; + } + + private int webGroundingType_ = 0; + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + @java.lang.Override + public int getWebGroundingTypeValue() { + return webGroundingType_; + } + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for webGroundingType to set. + * @return This builder for chaining. + */ + public Builder setWebGroundingTypeValue(int value) { + webGroundingType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType getWebGroundingType() { + com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType result = + com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType.forNumber( + webGroundingType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The webGroundingType to set. + * @return This builder for chaining. + */ + public Builder setWebGroundingType( + com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + webGroundingType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWebGroundingType() { + bitField0_ = (bitField0_ & ~0x00000010); + webGroundingType_ = 0; + onChanged(); + return this; + } + + private boolean defaultWebGroundingToggleOff_; + + /** + * + * + *
+     * Optional. This field controls the default web grounding toggle for end
+     * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
+     * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+     * grounding enabled by default on UI. If true, grounding toggle will be
+     * disabled by default on UI. End users can still enable web grounding in
+     * the UI if web grounding is enabled.
+     * 
+ * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + @java.lang.Override + public boolean getDefaultWebGroundingToggleOff() { + return defaultWebGroundingToggleOff_; + } + + /** + * + * + *
+     * Optional. This field controls the default web grounding toggle for end
+     * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
+     * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+     * grounding enabled by default on UI. If true, grounding toggle will be
+     * disabled by default on UI. End users can still enable web grounding in
+     * the UI if web grounding is enabled.
+     * 
+ * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The defaultWebGroundingToggleOff to set. + * @return This builder for chaining. + */ + public Builder setDefaultWebGroundingToggleOff(boolean value) { + + defaultWebGroundingToggleOff_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field controls the default web grounding toggle for end
+     * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
+     * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+     * grounding enabled by default on UI. If true, grounding toggle will be
+     * disabled by default on UI. End users can still enable web grounding in
+     * the UI if web grounding is enabled.
+     * 
+ * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultWebGroundingToggleOff() { + bitField0_ = (bitField0_ & ~0x00000020); + defaultWebGroundingToggleOff_ = false; + onChanged(); + return this; + } + + private static final class EnabledToolsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1.Assistant.ToolList> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList build( + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder val) { + if (val instanceof com.google.cloud.discoveryengine.v1.Assistant.ToolList) { + return (com.google.cloud.discoveryengine.v1.Assistant.ToolList) val; + } + return ((com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + defaultEntry() { + return EnabledToolsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final EnabledToolsConverter enabledToolsConverter = new EnabledToolsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1.Assistant.ToolList, + com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder> + enabledTools_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1.Assistant.ToolList, + com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder> + internalGetEnabledTools() { + if (enabledTools_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(enabledToolsConverter); + } + return enabledTools_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1.Assistant.ToolList, + com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder> + internalGetMutableEnabledTools() { + if (enabledTools_ == null) { + enabledTools_ = new com.google.protobuf.MapFieldBuilder<>(enabledToolsConverter); + } + bitField0_ |= 0x00000040; + onChanged(); + return enabledTools_; + } + + public int getEnabledToolsCount() { + return internalGetEnabledTools().ensureBuilderMap().size(); + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsEnabledTools(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetEnabledTools().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getEnabledToolsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getEnabledTools() { + return getEnabledToolsMap(); + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getEnabledToolsMap() { + return internalGetEnabledTools().getImmutableMap(); + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Assistant.ToolList + getEnabledToolsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Assistant.ToolList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder> + map = internalGetMutableEnabledTools().ensureBuilderMap(); + return map.containsKey(key) ? enabledToolsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant.ToolList getEnabledToolsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder> + map = internalGetMutableEnabledTools().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return enabledToolsConverter.build(map.get(key)); + } + + public Builder clearEnabledTools() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableEnabledTools().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEnabledTools(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnabledTools().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableEnabledTools() { + bitField0_ |= 0x00000040; + return internalGetMutableEnabledTools().ensureMessageMap(); + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putEnabledTools( + java.lang.String key, com.google.cloud.discoveryengine.v1.Assistant.ToolList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEnabledTools().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllEnabledTools( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableEnabledTools().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. Note: not implemented yet. Use
+     * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+     * instead. The enabled tools on this assistant. The keys are connector name,
+     * for example
+     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+     * The values consist of admin enabled tools towards the connector
+     * instance. Admin can selectively enable multiple tools on any of the
+     * connector instances that they created in the project. For example
+     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+     * "transferTicket")],
+     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder + putEnabledToolsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder> + builderMap = internalGetMutableEnabledTools().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1.Assistant.ToolListOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.discoveryengine.v1.Assistant.ToolList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.discoveryengine.v1.Assistant.ToolList) { + entry = ((com.google.cloud.discoveryengine.v1.Assistant.ToolList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1.Assistant.ToolList.Builder) entry; + } + + private com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customerPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder> + customerPolicyBuilder_; + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicy field is set. + */ + public boolean hasCustomerPolicy() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicy. + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy getCustomerPolicy() { + if (customerPolicyBuilder_ == null) { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } else { + return customerPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicy( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy value) { + if (customerPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customerPolicy_ = value; + } else { + customerPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicy( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder builderForValue) { + if (customerPolicyBuilder_ == null) { + customerPolicy_ = builderForValue.build(); + } else { + customerPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomerPolicy( + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy value) { + if (customerPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && customerPolicy_ != null + && customerPolicy_ + != com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy + .getDefaultInstance()) { + getCustomerPolicyBuilder().mergeFrom(value); + } else { + customerPolicy_ = value; + } + } else { + customerPolicyBuilder_.mergeFrom(value); + } + if (customerPolicy_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerPolicy() { + bitField0_ = (bitField0_ & ~0x00000080); + customerPolicy_ = null; + if (customerPolicyBuilder_ != null) { + customerPolicyBuilder_.dispose(); + customerPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder + getCustomerPolicyBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCustomerPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder + getCustomerPolicyOrBuilder() { + if (customerPolicyBuilder_ != null) { + return customerPolicyBuilder_.getMessageOrBuilder(); + } else { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } + } + + /** + * + * + *
+     * Optional. Customer policy for the assistant.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder> + internalGetCustomerPolicyFieldBuilder() { + if (customerPolicyBuilder_ == null) { + customerPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.Builder, + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder>( + getCustomerPolicy(), getParentForChildren(), isClean()); + customerPolicy_ = null; + } + return customerPolicyBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Assistant buildPartial() { - com.google.cloud.discoveryengine.v1.Assistant result = - new com.google.cloud.discoveryengine.v1.Assistant(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - onBuilt(); - return result; } - private void buildPartial0(com.google.cloud.discoveryengine.v1.Assistant result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00000100; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Assistant) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Assistant) other); + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); } else { - super.mergeFrom(other); - return this; + createTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000100; + onChanged(); + return this; } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Assistant other) { - if (other == com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } - @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(); + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; } - private int bitField0_; + /** + * + * + *
+     * Output only. Represents the time when this Assistant was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } - private java.lang.Object name_ = ""; + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** * * *
-     * Immutable. Resource name of the assistant.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
+     * 
* - * It must be a UTF-8 encoded string with a length limit of 1024 characters. + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The name. + * @return The updateTime. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { - return (java.lang.String) ref; + return updateTimeBuilder_.getMessage(); } } @@ -473,51 +11670,47 @@ public java.lang.String getName() { * * *
-     * Immutable. Resource name of the assistant.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
-     *
-     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; } else { - return (com.google.protobuf.ByteString) ref; + updateTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Immutable. Resource name of the assistant.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
-     *
-     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); } - name_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -526,20 +11719,52 @@ public Builder setName(java.lang.String value) { * * *
-     * Immutable. Resource name of the assistant.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
-     *
-     * It must be a UTF-8 encoded string with a length limit of 1024 characters.
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** * - * @return This builder for chaining. + * + *
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } onChanged(); return this; } @@ -548,27 +11773,69 @@ public Builder clearName() { * * *
-     * Immutable. Resource name of the assistant.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
+     * 
* - * It must be a UTF-8 encoded string with a length limit of 1024 characters. + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
+     * Output only. Represents the time when this Assistant was most recently
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + return updateTimeBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Assistant) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContent.java index aa701ec85936..12b38f627873 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContent.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContent.java @@ -151,6 +151,81 @@ public interface TextGroundingMetadataOrBuilder .SegmentOrBuilder getSegmentsOrBuilder(int index); + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + getVisualSegmentsList(); + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment + getVisualSegments(int index); + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + int getVisualSegmentsCount(); + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder> + getVisualSegmentsOrBuilderList(); + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder + getVisualSegmentsOrBuilder(int index); + /** * * @@ -260,6 +335,7 @@ private TextGroundingMetadata(com.google.protobuf.GeneratedMessage.Builder bu private TextGroundingMetadata() { segments_ = java.util.Collections.emptyList(); + visualSegments_ = java.util.Collections.emptyList(); references_ = java.util.Collections.emptyList(); } @@ -1591,99 +1667,96 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ReferenceOrBuilder + public interface VisualSegmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) com.google.protobuf.MessageOrBuilder { /** * * *
-       * Referenced text content.
+       * References for the visual segment.
        * 
* - * string content = 1; + * repeated int32 reference_indices = 1; * - * @return The content. + * @return A list containing the referenceIndices. */ - java.lang.String getContent(); + java.util.List getReferenceIndicesList(); /** * * *
-       * Referenced text content.
+       * References for the visual segment.
        * 
* - * string content = 1; + * repeated int32 reference_indices = 1; * - * @return The bytes for content. + * @return The count of referenceIndices. */ - com.google.protobuf.ByteString getContentBytes(); + int getReferenceIndicesCount(); /** * * *
-       * Document metadata.
+       * References for the visual segment.
        * 
* - * - * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; - * + * repeated int32 reference_indices = 1; * - * @return Whether the documentMetadata field is set. + * @param index The index of the element to return. + * @return The referenceIndices at the given index. */ - boolean hasDocumentMetadata(); + int getReferenceIndices(int index); /** * * *
-       * Document metadata.
+       * The content id of the visual segment. In order to display the citation
+       * of the visual element, this content_id needs to match with the
+       * `grounded_content.content_metadata.content_id` field.
        * 
* - * - * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; - * + * string content_id = 2; * - * @return The documentMetadata. + * @return The contentId. */ - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference - .DocumentMetadata - getDocumentMetadata(); + java.lang.String getContentId(); /** * * *
-       * Document metadata.
+       * The content id of the visual segment. In order to display the citation
+       * of the visual element, this content_id needs to match with the
+       * `grounded_content.content_metadata.content_id` field.
        * 
* - * - * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; - * + * string content_id = 2; + * + * @return The bytes for contentId. */ - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference - .DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder(); + com.google.protobuf.ByteString getContentIdBytes(); } /** * * *
-     * Referenced content and related document metadata.
+     * Grounding information for a visual segment.
      * 
* * Protobuf type {@code - * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference} + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment} */ - public static final class Reference extends com.google.protobuf.GeneratedMessage + public static final class VisualSegment extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference) - ReferenceOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + VisualSegmentOrBuilder { private static final long serialVersionUID = 0L; static { @@ -1693,627 +1766,742 @@ public static final class Reference extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "Reference"); + "VisualSegment"); } - // Use Reference.newBuilder() to construct. - private Reference(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use VisualSegment.newBuilder() to construct. + private VisualSegment(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Reference() { - content_ = ""; + private VisualSegment() { + referenceIndices_ = emptyIntList(); + contentId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.class, + .VisualSegment.class, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.Builder.class); + .VisualSegment.Builder.class); } - public interface DocumentMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-         * Document resource name.
-         * 
- * - * optional string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return Whether the document field is set. - */ - boolean hasDocument(); + public static final int REFERENCE_INDICES_FIELD_NUMBER = 1; - /** - * - * - *
-         * Document resource name.
-         * 
- * - * optional string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - java.lang.String getDocument(); + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList referenceIndices_ = emptyIntList(); - /** - * - * - *
-         * Document resource name.
-         * 
- * - * optional string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ - com.google.protobuf.ByteString getDocumentBytes(); + /** + * + * + *
+       * References for the visual segment.
+       * 
+ * + * repeated int32 reference_indices = 1; + * + * @return A list containing the referenceIndices. + */ + @java.lang.Override + public java.util.List getReferenceIndicesList() { + return referenceIndices_; + } - /** - * - * - *
-         * URI for the document. It may contain a URL that redirects to the
-         * actual website.
-         * 
- * - * optional string uri = 2; - * - * @return Whether the uri field is set. - */ - boolean hasUri(); + /** + * + * + *
+       * References for the visual segment.
+       * 
+ * + * repeated int32 reference_indices = 1; + * + * @return The count of referenceIndices. + */ + public int getReferenceIndicesCount() { + return referenceIndices_.size(); + } - /** - * - * - *
-         * URI for the document. It may contain a URL that redirects to the
-         * actual website.
-         * 
- * - * optional string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + /** + * + * + *
+       * References for the visual segment.
+       * 
+ * + * repeated int32 reference_indices = 1; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + public int getReferenceIndices(int index) { + return referenceIndices_.getInt(index); + } - /** - * - * - *
-         * URI for the document. It may contain a URL that redirects to the
-         * actual website.
-         * 
- * - * optional string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + private int referenceIndicesMemoizedSerializedSize = -1; - /** - * - * - *
-         * Title.
-         * 
- * - * optional string title = 3; - * - * @return Whether the title field is set. - */ - boolean hasTitle(); + public static final int CONTENT_ID_FIELD_NUMBER = 2; - /** - * - * - *
-         * Title.
-         * 
- * - * optional string title = 3; - * - * @return The title. - */ - java.lang.String getTitle(); + @SuppressWarnings("serial") + private volatile java.lang.Object contentId_ = ""; - /** - * - * - *
-         * Title.
-         * 
- * - * optional string title = 3; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - - /** - * - * - *
-         * Page identifier.
-         * 
- * - * optional string page_identifier = 4; - * - * @return Whether the pageIdentifier field is set. - */ - boolean hasPageIdentifier(); - - /** - * - * - *
-         * Page identifier.
-         * 
- * - * optional string page_identifier = 4; - * - * @return The pageIdentifier. - */ - java.lang.String getPageIdentifier(); - - /** - * - * - *
-         * Page identifier.
-         * 
- * - * optional string page_identifier = 4; - * - * @return The bytes for pageIdentifier. - */ - com.google.protobuf.ByteString getPageIdentifierBytes(); - - /** - * - * - *
-         * Domain name from the document URI. Note that the `uri` field may
-         * contain a URL that redirects to the actual website, in which case
-         * this will contain the domain name of the target site.
-         * 
- * - * optional string domain = 5; - * - * @return Whether the domain field is set. - */ - boolean hasDomain(); - - /** - * - * - *
-         * Domain name from the document URI. Note that the `uri` field may
-         * contain a URL that redirects to the actual website, in which case
-         * this will contain the domain name of the target site.
-         * 
- * - * optional string domain = 5; - * - * @return The domain. - */ - java.lang.String getDomain(); - - /** - * - * - *
-         * Domain name from the document URI. Note that the `uri` field may
-         * contain a URL that redirects to the actual website, in which case
-         * this will contain the domain name of the target site.
-         * 
- * - * optional string domain = 5; - * - * @return The bytes for domain. - */ - com.google.protobuf.ByteString getDomainBytes(); + /** + * + * + *
+       * The content id of the visual segment. In order to display the citation
+       * of the visual element, this content_id needs to match with the
+       * `grounded_content.content_metadata.content_id` field.
+       * 
+ * + * string content_id = 2; + * + * @return The contentId. + */ + @java.lang.Override + public java.lang.String getContentId() { + java.lang.Object ref = contentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentId_ = s; + return s; + } } /** * * *
-       * Document metadata.
+       * The content id of the visual segment. In order to display the citation
+       * of the visual element, this content_id needs to match with the
+       * `grounded_content.content_metadata.content_id` field.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata} + * string content_id = 2; + * + * @return The bytes for contentId. */ - public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) - DocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DocumentMetadata"); + @java.lang.Override + public com.google.protobuf.ByteString getContentIdBytes() { + java.lang.Object ref = contentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - // Use DocumentMetadata.newBuilder() to construct. - private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getReferenceIndicesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(referenceIndicesMemoizedSerializedSize); + } + for (int i = 0; i < referenceIndices_.size(); i++) { + output.writeInt32NoTag(referenceIndices_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, contentId_); } + getUnknownFields().writeTo(output); + } - private DocumentMetadata() { - document_ = ""; - uri_ = ""; - title_ = ""; - pageIdentifier_ = ""; - domain_ = ""; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < referenceIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + referenceIndices_.getInt(i)); + } + size += dataSize; + if (!getReferenceIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + referenceIndicesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contentId_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + other = + (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment) + obj; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata.class, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata.Builder.class); + if (!getReferenceIndicesList().equals(other.getReferenceIndicesList())) return false; + if (!getContentId().equals(other.getContentId())) 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 (getReferenceIndicesCount() > 0) { + hash = (37 * hash) + REFERENCE_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getReferenceIndicesList().hashCode(); } + hash = (37 * hash) + CONTENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getContentId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private int bitField0_; - public static final int DOCUMENT_FIELD_NUMBER = 1; + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private volatile java.lang.Object document_ = ""; + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-         * Document resource name.
-         * 
- * - * optional string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return Whether the document field is set. - */ - @java.lang.Override - public boolean hasDocument() { - return ((bitField0_ & 0x00000001) != 0); - } + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-         * Document resource name.
-         * 
- * - * optional string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - @java.lang.Override - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Grounding information for a visual segment.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; } - /** - * - * - *
-         * Document resource name.
-         * 
- * - * optional string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.class, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder.class); } - public static final int URI_FIELD_NUMBER = 2; + // Construct using + // com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment.newBuilder() + private Builder() {} - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
-         * URI for the document. It may contain a URL that redirects to the
-         * actual website.
-         * 
- * - * optional string uri = 2; - * - * @return Whether the uri field is set. - */ @java.lang.Override - public boolean hasUri() { - return ((bitField0_ & 0x00000002) != 0); + public Builder clear() { + super.clear(); + bitField0_ = 0; + referenceIndices_ = emptyIntList(); + contentId_ = ""; + return this; } - /** - * - * - *
-         * URI for the document. It may contain a URL that redirects to the
-         * actual website.
-         * 
- * - * optional string uri = 2; - * - * @return The uri. - */ @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; } - /** - * - * - *
-         * URI for the document. It may contain a URL that redirects to the
-         * actual website.
-         * 
- * - * optional string uri = 2; - * - * @return The bytes for uri. - */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.getDefaultInstance(); } - public static final int TITLE_FIELD_NUMBER = 3; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + build() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + result = + new com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + referenceIndices_.makeImmutable(); + result.referenceIndices_ = referenceIndices_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contentId_ = contentId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.getDefaultInstance()) return this; + if (!other.referenceIndices_.isEmpty()) { + if (referenceIndices_.isEmpty()) { + referenceIndices_ = other.referenceIndices_; + referenceIndices_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureReferenceIndicesIsMutable(); + referenceIndices_.addAll(other.referenceIndices_); + } + onChanged(); + } + if (!other.getContentId().isEmpty()) { + contentId_ = other.contentId_; + 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 8: + { + int v = input.readInt32(); + ensureReferenceIndicesIsMutable(); + referenceIndices_.addInt(v); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureReferenceIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + referenceIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: + { + contentId_ = 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.Internal.IntList referenceIndices_ = emptyIntList(); + + private void ensureReferenceIndicesIsMutable() { + if (!referenceIndices_.isModifiable()) { + referenceIndices_ = makeMutableCopy(referenceIndices_); + } + bitField0_ |= 0x00000001; + } /** * * *
-         * Title.
+         * References for the visual segment.
          * 
* - * optional string title = 3; + * repeated int32 reference_indices = 1; * - * @return Whether the title field is set. + * @return A list containing the referenceIndices. */ - @java.lang.Override - public boolean hasTitle() { - return ((bitField0_ & 0x00000004) != 0); + public java.util.List getReferenceIndicesList() { + referenceIndices_.makeImmutable(); + return referenceIndices_; } /** * * *
-         * Title.
+         * References for the visual segment.
          * 
* - * optional string title = 3; + * repeated int32 reference_indices = 1; * - * @return The title. + * @return The count of referenceIndices. */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } + public int getReferenceIndicesCount() { + return referenceIndices_.size(); } /** * * *
-         * Title.
+         * References for the visual segment.
          * 
* - * optional string title = 3; + * repeated int32 reference_indices = 1; * - * @return The bytes for title. + * @param index The index of the element to return. + * @return The referenceIndices at the given index. */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getReferenceIndices(int index) { + return referenceIndices_.getInt(index); } - public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageIdentifier_ = ""; - /** * * *
-         * Page identifier.
+         * References for the visual segment.
          * 
* - * optional string page_identifier = 4; + * repeated int32 reference_indices = 1; * - * @return Whether the pageIdentifier field is set. + * @param index The index to set the value at. + * @param value The referenceIndices to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasPageIdentifier() { - return ((bitField0_ & 0x00000008) != 0); + public Builder setReferenceIndices(int index, int value) { + + ensureReferenceIndicesIsMutable(); + referenceIndices_.setInt(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-         * Page identifier.
+         * References for the visual segment.
          * 
* - * optional string page_identifier = 4; + * repeated int32 reference_indices = 1; * - * @return The pageIdentifier. + * @param value The referenceIndices to add. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } + public Builder addReferenceIndices(int value) { + + ensureReferenceIndicesIsMutable(); + referenceIndices_.addInt(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-         * Page identifier.
+         * References for the visual segment.
          * 
* - * optional string page_identifier = 4; + * repeated int32 reference_indices = 1; * - * @return The bytes for pageIdentifier. + * @param values The referenceIndices to add. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder addAllReferenceIndices( + java.lang.Iterable values) { + ensureReferenceIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceIndices_); + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static final int DOMAIN_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object domain_ = ""; - /** * * *
-         * Domain name from the document URI. Note that the `uri` field may
-         * contain a URL that redirects to the actual website, in which case
-         * this will contain the domain name of the target site.
+         * References for the visual segment.
          * 
* - * optional string domain = 5; + * repeated int32 reference_indices = 1; * - * @return Whether the domain field is set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasDomain() { - return ((bitField0_ & 0x00000010) != 0); + public Builder clearReferenceIndices() { + referenceIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } + private java.lang.Object contentId_ = ""; + /** * * *
-         * Domain name from the document URI. Note that the `uri` field may
-         * contain a URL that redirects to the actual website, in which case
-         * this will contain the domain name of the target site.
+         * The content id of the visual segment. In order to display the citation
+         * of the visual element, this content_id needs to match with the
+         * `grounded_content.content_metadata.content_id` field.
          * 
* - * optional string domain = 5; + * string content_id = 2; * - * @return The domain. + * @return The contentId. */ - @java.lang.Override - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { + public java.lang.String getContentId() { + java.lang.Object ref = contentId_; + if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - domain_ = s; + contentId_ = s; return s; + } else { + return (java.lang.String) ref; } } @@ -2321,478 +2509,1777 @@ public java.lang.String getDomain() { * * *
-         * Domain name from the document URI. Note that the `uri` field may
-         * contain a URL that redirects to the actual website, in which case
-         * this will contain the domain name of the target site.
+         * The content id of the visual segment. In order to display the citation
+         * of the visual element, this content_id needs to match with the
+         * `grounded_content.content_metadata.content_id` field.
          * 
* - * optional string domain = 5; + * string content_id = 2; * - * @return The bytes for domain. + * @return The bytes for contentId. */ - @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { + public com.google.protobuf.ByteString getContentIdBytes() { + java.lang.Object ref = contentId_; + if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domain_ = b; + contentId_ = 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.GeneratedMessage.writeString(output, 1, document_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, pageIdentifier_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, domain_); + /** + * + * + *
+         * The content id of the visual segment. In order to display the citation
+         * of the visual element, this content_id needs to match with the
+         * `grounded_content.content_metadata.content_id` field.
+         * 
+ * + * string content_id = 2; + * + * @param value The contentId to set. + * @return This builder for chaining. + */ + public Builder setContentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - getUnknownFields().writeTo(output); + contentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+         * The content id of the visual segment. In order to display the citation
+         * of the visual element, this content_id needs to match with the
+         * `grounded_content.content_metadata.content_id` field.
+         * 
+ * + * string content_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearContentId() { + contentId_ = getDefaultInstance().getContentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageIdentifier_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, domain_); + /** + * + * + *
+         * The content id of the visual segment. In order to display the citation
+         * of the visual element, this content_id needs to match with the
+         * `grounded_content.content_metadata.content_id` field.
+         * 
+ * + * string content_id = 2; + * + * @param value The bytes for contentId to set. + * @return This builder for chaining. + */ + public Builder setContentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + checkByteStringIsUtf8(value); + contentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - other = - (com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata) - obj; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + } - if (hasDocument() != other.hasDocument()) return false; - if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; - } - if (hasUri() != other.hasUri()) return false; - if (hasUri()) { - if (!getUri().equals(other.getUri())) return false; - } - if (hasTitle() != other.hasTitle()) return false; - if (hasTitle()) { - if (!getTitle().equals(other.getTitle())) return false; - } - if (hasPageIdentifier() != other.hasPageIdentifier()) return false; - if (hasPageIdentifier()) { - if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; - } - if (hasDomain() != other.hasDomain()) return false; - if (hasDomain()) { - if (!getDomain().equals(other.getDomain())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + private static final com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + DEFAULT_INSTANCE; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDocument()) { - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - } - if (hasUri()) { - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - } - if (hasTitle()) { - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - } - if (hasPageIdentifier()) { - hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPageIdentifier().hashCode(); - } - if (hasDomain()) { - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment(); + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom( - java.nio.ByteBuffer data, + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VisualSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + 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.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public interface ReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+       * Referenced text content.
+       * 
+ * + * string content = 1; + * + * @return The content. + */ + java.lang.String getContent(); - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+       * Referenced text content.
+       * 
+ * + * string content = 1; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
+       * Chunk of code snippet from the referenced document.
+       * 
+ * + * string code_snippet = 4; + * + * @return The codeSnippet. + */ + java.lang.String getCodeSnippet(); - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+       * Chunk of code snippet from the referenced document.
+       * 
+ * + * string code_snippet = 4; + * + * @return The bytes for codeSnippet. + */ + com.google.protobuf.ByteString getCodeSnippetBytes(); - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+       * Document metadata.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. + */ + boolean hasDocumentMetadata(); - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+       * Document metadata.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. + */ + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference + .DocumentMetadata + getDocumentMetadata(); - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
+       * Document metadata.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference + .DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+       * Output only. Generic structured chunk metadata from upstream data
+       * source connectors.
+       * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + boolean hasChunkMetadata(); - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+       * Output only. Generic structured chunk metadata from upstream data
+       * source connectors.
+       * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + com.google.protobuf.Struct getChunkMetadata(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+       * Output only. Generic structured chunk metadata from upstream data
+       * source connectors.
+       * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getChunkMetadataOrBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+     * Referenced content and related document metadata.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference} + */ + public static final class Reference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference) + ReferenceOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-         * Document metadata.
-         * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Reference"); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata.class, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata.Builder.class); - } + // Use Reference.newBuilder() to construct. + private Reference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - // Construct using - // com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.newBuilder() - private Builder() {} + private Reference() { + content_ = ""; + codeSnippet_ = ""; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - document_ = ""; - uri_ = ""; - title_ = ""; - pageIdentifier_ = ""; - domain_ = ""; - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.class, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; - } + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance(); - } + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The enum numeric value on the wire for language. + */ + int getLanguageValue(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - build() { - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The language. + */ + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference + .DocumentMetadata.Language + getLanguage(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - buildPartial() { - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - result = - new com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
+         * Document resource name.
+         * 
+ * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the document field is set. + */ + boolean hasDocument(); - private void buildPartial0( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.document_ = document_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uri_ = uri_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageIdentifier_ = pageIdentifier_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.domain_ = domain_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } + /** + * + * + *
+         * Document resource name.
+         * 
+ * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + java.lang.String getDocument(); - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
+         * Document resource name.
+         * 
+ * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata - other) { - if (other - == com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance()) - return this; - if (other.hasDocument()) { - document_ = other.document_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasUri()) { - uri_ = other.uri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasTitle()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasPageIdentifier()) { - pageIdentifier_ = other.pageIdentifier_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasDomain()) { - domain_ = other.domain_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
+         * URI for the document. It may contain a URL that redirects to the
+         * actual website.
+         * 
+ * + * optional string uri = 2; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
+         * URI for the document. It may contain a URL that redirects to the
+         * actual website.
+         * 
+ * + * optional string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); - @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(); + /** + * + * + *
+         * URI for the document. It may contain a URL that redirects to the
+         * actual website.
+         * 
+ * + * optional string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+         * Title.
+         * 
+ * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
+         * Title.
+         * 
+ * + * optional string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+         * Title.
+         * 
+ * + * optional string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+         * Page identifier.
+         * 
+ * + * optional string page_identifier = 4; + * + * @return Whether the pageIdentifier field is set. + */ + boolean hasPageIdentifier(); + + /** + * + * + *
+         * Page identifier.
+         * 
+ * + * optional string page_identifier = 4; + * + * @return The pageIdentifier. + */ + java.lang.String getPageIdentifier(); + + /** + * + * + *
+         * Page identifier.
+         * 
+ * + * optional string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + com.google.protobuf.ByteString getPageIdentifierBytes(); + + /** + * + * + *
+         * Domain name from the document URI. Note that the `uri` field may
+         * contain a URL that redirects to the actual website, in which case
+         * this will contain the domain name of the target site.
+         * 
+ * + * optional string domain = 5; + * + * @return Whether the domain field is set. + */ + boolean hasDomain(); + + /** + * + * + *
+         * Domain name from the document URI. Note that the `uri` field may
+         * contain a URL that redirects to the actual website, in which case
+         * this will contain the domain name of the target site.
+         * 
+ * + * optional string domain = 5; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
+         * Domain name from the document URI. Note that the `uri` field may
+         * contain a URL that redirects to the actual website, in which case
+         * this will contain the domain name of the target site.
+         * 
+ * + * optional string domain = 5; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
+         * The mime type of the document.
+         * https://www.iana.org/assignments/media-types/media-types.xhtml.
+         * 
+ * + * optional string mime_type = 7; + * + * @return Whether the mimeType field is set. + */ + boolean hasMimeType(); + + /** + * + * + *
+         * The mime type of the document.
+         * https://www.iana.org/assignments/media-types/media-types.xhtml.
+         * 
+ * + * optional string mime_type = 7; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+         * The mime type of the document.
+         * https://www.iana.org/assignments/media-types/media-types.xhtml.
+         * 
+ * + * optional string mime_type = 7; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + } + + /** + * + * + *
+       * Document metadata.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata} + */ + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DocumentMetadata"); + } + + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DocumentMetadata() { + language_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + pageIdentifier_ = ""; + domain_ = ""; + mimeType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Builder.class); + } + + /** + * + * + *
+         * Language of the referenced content. For now, it is only used for
+         * code.
+         * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language} + */ + public enum Language implements com.google.protobuf.ProtocolMessageEnum { + /** LANGUAGE_UNSPECIFIED = 0; */ + LANGUAGE_UNSPECIFIED(0), + /** PYTHON = 1; */ + PYTHON(1), + /** SQL = 2; */ + SQL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Language"); + } + + /** LANGUAGE_UNSPECIFIED = 0; */ + public static final int LANGUAGE_UNSPECIFIED_VALUE = 0; + + /** PYTHON = 1; */ + public static final int PYTHON_VALUE = 1; + + /** SQL = 2; */ + public static final int SQL_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 Language 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 Language forNumber(int value) { + switch (value) { + case 0: + return LANGUAGE_UNSPECIFIED; + case 1: + return PYTHON; + case 2: + return SQL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Language findValueByNumber(int number) { + return Language.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Language[] VALUES = values(); + + public static Language 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 Language(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language) + } + + private int bitField0_; + public static final int LANGUAGE_FIELD_NUMBER = 8; + private int language_ = 0; + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The enum numeric value on the wire for language. + */ + @java.lang.Override + public int getLanguageValue() { + return language_; + } + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The language. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + getLanguage() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + result = + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language.forNumber(language_); + return result == null + ? com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language.UNRECOGNIZED + : result; + } + + public static final int DOCUMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; + + /** + * + * + *
+         * Document resource name.
+         * 
+ * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Document resource name.
+         * 
+ * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } + } + + /** + * + * + *
+         * Document resource name.
+         * 
+ * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+         * URI for the document. It may contain a URL that redirects to the
+         * actual website.
+         * 
+ * + * optional string uri = 2; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * URI for the document. It may contain a URL that redirects to the
+         * actual website.
+         * 
+ * + * optional string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+         * URI for the document. It may contain a URL that redirects to the
+         * actual website.
+         * 
+ * + * optional string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+         * Title.
+         * 
+ * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+         * Title.
+         * 
+ * + * optional string title = 3; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+         * Title.
+         * 
+ * + * optional string title = 3; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + + /** + * + * + *
+         * Page identifier.
+         * 
+ * + * optional string page_identifier = 4; + * + * @return Whether the pageIdentifier field is set. + */ + @java.lang.Override + public boolean hasPageIdentifier() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+         * Page identifier.
+         * 
+ * + * optional string page_identifier = 4; + * + * @return The pageIdentifier. + */ + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } + } + + /** + * + * + *
+         * Page identifier.
+         * 
+ * + * optional string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
+         * Domain name from the document URI. Note that the `uri` field may
+         * contain a URL that redirects to the actual website, in which case
+         * this will contain the domain name of the target site.
+         * 
+ * + * optional string domain = 5; + * + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+         * Domain name from the document URI. Note that the `uri` field may
+         * contain a URL that redirects to the actual website, in which case
+         * this will contain the domain name of the target site.
+         * 
+ * + * optional string domain = 5; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + + /** + * + * + *
+         * Domain name from the document URI. Note that the `uri` field may
+         * contain a URL that redirects to the actual website, in which case
+         * this will contain the domain name of the target site.
+         * 
+ * + * optional string domain = 5; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIME_TYPE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+         * The mime type of the document.
+         * https://www.iana.org/assignments/media-types/media-types.xhtml.
+         * 
+ * + * optional string mime_type = 7; + * + * @return Whether the mimeType field is set. + */ + @java.lang.Override + public boolean hasMimeType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+         * The mime type of the document.
+         * https://www.iana.org/assignments/media-types/media-types.xhtml.
+         * 
+ * + * optional string mime_type = 7; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+         * The mime type of the document.
+         * https://www.iana.org/assignments/media-types/media-types.xhtml.
+         * 
+ * + * optional string mime_type = 7; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = 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.GeneratedMessage.writeString(output, 1, document_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageIdentifier_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, domain_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, mimeType_); + } + if (language_ + != com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language.LANGUAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, language_); + } + 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.GeneratedMessage.computeStringSize(1, document_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageIdentifier_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, domain_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, mimeType_); + } + if (language_ + != com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language.LANGUAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, language_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + other = + (com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata) + obj; + + if (language_ != other.language_) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument().equals(other.getDocument())) return false; + } + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasPageIdentifier() != other.hasPageIdentifier()) return false; + if (hasPageIdentifier()) { + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + } + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain().equals(other.getDomain())) return false; + } + if (hasMimeType() != other.hasMimeType()) return false; + if (hasMimeType()) { + if (!getMimeType().equals(other.getMimeType())) 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) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasPageIdentifier()) { + hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + } + if (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + if (hasMimeType()) { + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Document metadata.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + language_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + pageIdentifier_ = ""; + domain_ = ""; + mimeType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + build() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + result = + new com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.language_ = language_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.document_ = document_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.domain_ = domain_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mimeType_ = mimeType_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance()) + return this; + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (other.hasDocument()) { + document_ = other.document_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasPageIdentifier()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDomain()) { + domain_ = other.domain_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasMimeType()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); switch (tag) { case 0: done = true; @@ -2800,33 +4287,45 @@ public Builder mergeFrom( case 10: { document_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 case 18: { uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { pageIdentifier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { domain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 + case 58: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + language_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2846,6 +4345,93 @@ public Builder mergeFrom( private int bitField0_; + private int language_ = 0; + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The enum numeric value on the wire for language. + */ + @java.lang.Override + public int getLanguageValue() { + return language_; + } + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @param value The enum numeric value on the wire for language to set. + * @return This builder for chaining. + */ + public Builder setLanguageValue(int value) { + language_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The language. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + getLanguage() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + result = + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.forNumber( + language_); + return result == null + ? com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language.UNRECOGNIZED + : result; + } + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @param value The language to set. + * @return This builder for chaining. + */ + public Builder setLanguage( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + language_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return This builder for chaining. + */ + public Builder clearLanguage() { + bitField0_ = (bitField0_ & ~0x00000001); + language_ = 0; + onChanged(); + return this; + } + private java.lang.Object document_ = ""; /** @@ -2860,7 +4446,7 @@ public Builder mergeFrom( * @return Whether the document field is set. */ public boolean hasDocument() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -2926,7 +4512,7 @@ public Builder setDocument(java.lang.String value) { throw new NullPointerException(); } document_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2944,7 +4530,7 @@ public Builder setDocument(java.lang.String value) { */ public Builder clearDocument() { document_ = getDefaultInstance().getDocument(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2967,7 +4553,7 @@ public Builder setDocumentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); document_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2987,7 +4573,7 @@ public Builder setDocumentBytes(com.google.protobuf.ByteString value) { * @return Whether the uri field is set. */ public boolean hasUri() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -3056,7 +4642,7 @@ public Builder setUri(java.lang.String value) { throw new NullPointerException(); } uri_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3075,7 +4661,7 @@ public Builder setUri(java.lang.String value) { */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3099,7 +4685,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uri_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3118,7 +4704,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * @return Whether the title field is set. */ public boolean hasTitle() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -3184,7 +4770,7 @@ public Builder setTitle(java.lang.String value) { throw new NullPointerException(); } title_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3202,7 +4788,7 @@ public Builder setTitle(java.lang.String value) { */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -3225,7 +4811,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); title_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3244,7 +4830,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { * @return Whether the pageIdentifier field is set. */ public boolean hasPageIdentifier() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -3300,17 +4886,151 @@ public com.google.protobuf.ByteString getPageIdentifierBytes() { * Page identifier. *
* - * optional string page_identifier = 4; + * optional string page_identifier = 4; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+           * Page identifier.
+           * 
+ * + * optional string page_identifier = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+           * Page identifier.
+           * 
+ * + * optional string page_identifier = 4; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
+           * Domain name from the document URI. Note that the `uri` field may
+           * contain a URL that redirects to the actual website, in which case
+           * this will contain the domain name of the target site.
+           * 
+ * + * optional string domain = 5; + * + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+           * Domain name from the document URI. Note that the `uri` field may
+           * contain a URL that redirects to the actual website, in which case
+           * this will contain the domain name of the target site.
+           * 
+ * + * optional string domain = 5; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Domain name from the document URI. Note that the `uri` field may
+           * contain a URL that redirects to the actual website, in which case
+           * this will contain the domain name of the target site.
+           * 
+ * + * optional string domain = 5; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Domain name from the document URI. Note that the `uri` field may
+           * contain a URL that redirects to the actual website, in which case
+           * this will contain the domain name of the target site.
+           * 
+ * + * optional string domain = 5; * - * @param value The pageIdentifier to set. + * @param value The domain to set. * @return This builder for chaining. */ - public Builder setPageIdentifier(java.lang.String value) { + public Builder setDomain(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageIdentifier_ = value; - bitField0_ |= 0x00000008; + domain_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3319,16 +5039,18 @@ public Builder setPageIdentifier(java.lang.String value) { * * *
-           * Page identifier.
+           * Domain name from the document URI. Note that the `uri` field may
+           * contain a URL that redirects to the actual website, in which case
+           * this will contain the domain name of the target site.
            * 
* - * optional string page_identifier = 4; + * optional string domain = 5; * * @return This builder for chaining. */ - public Builder clearPageIdentifier() { - pageIdentifier_ = getDefaultInstance().getPageIdentifier(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3337,63 +5059,63 @@ public Builder clearPageIdentifier() { * * *
-           * Page identifier.
+           * Domain name from the document URI. Note that the `uri` field may
+           * contain a URL that redirects to the actual website, in which case
+           * this will contain the domain name of the target site.
            * 
* - * optional string page_identifier = 4; + * optional string domain = 5; * - * @param value The bytes for pageIdentifier to set. + * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + public Builder setDomainBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageIdentifier_ = value; - bitField0_ |= 0x00000008; + domain_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private java.lang.Object domain_ = ""; + private java.lang.Object mimeType_ = ""; /** * * *
-           * Domain name from the document URI. Note that the `uri` field may
-           * contain a URL that redirects to the actual website, in which case
-           * this will contain the domain name of the target site.
+           * The mime type of the document.
+           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            * 
* - * optional string domain = 5; + * optional string mime_type = 7; * - * @return Whether the domain field is set. + * @return Whether the mimeType field is set. */ - public boolean hasDomain() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasMimeType() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-           * Domain name from the document URI. Note that the `uri` field may
-           * contain a URL that redirects to the actual website, in which case
-           * this will contain the domain name of the target site.
+           * The mime type of the document.
+           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            * 
* - * optional string domain = 5; + * optional string mime_type = 7; * - * @return The domain. + * @return The mimeType. */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - domain_ = s; + mimeType_ = s; return s; } else { return (java.lang.String) ref; @@ -3404,21 +5126,20 @@ public java.lang.String getDomain() { * * *
-           * Domain name from the document URI. Note that the `uri` field may
-           * contain a URL that redirects to the actual website, in which case
-           * this will contain the domain name of the target site.
+           * The mime type of the document.
+           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            * 
* - * optional string domain = 5; + * optional string mime_type = 7; * - * @return The bytes for domain. + * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getDomainBytes() { - java.lang.Object ref = domain_; + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - domain_ = b; + mimeType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3429,22 +5150,21 @@ public com.google.protobuf.ByteString getDomainBytes() { * * *
-           * Domain name from the document URI. Note that the `uri` field may
-           * contain a URL that redirects to the actual website, in which case
-           * this will contain the domain name of the target site.
+           * The mime type of the document.
+           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            * 
* - * optional string domain = 5; + * optional string mime_type = 7; * - * @param value The domain to set. + * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { + public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - domain_ = value; - bitField0_ |= 0x00000010; + mimeType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3453,18 +5173,17 @@ public Builder setDomain(java.lang.String value) { * * *
-           * Domain name from the document URI. Note that the `uri` field may
-           * contain a URL that redirects to the actual website, in which case
-           * this will contain the domain name of the target site.
+           * The mime type of the document.
+           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            * 
* - * optional string domain = 5; + * optional string mime_type = 7; * * @return This builder for chaining. */ - public Builder clearDomain() { - domain_ = getDefaultInstance().getDomain(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3473,23 +5192,22 @@ public Builder clearDomain() { * * *
-           * Domain name from the document URI. Note that the `uri` field may
-           * contain a URL that redirects to the actual website, in which case
-           * this will contain the domain name of the target site.
+           * The mime type of the document.
+           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            * 
* - * optional string domain = 5; + * optional string mime_type = 7; * - * @param value The bytes for domain to set. + * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - domain_ = value; - bitField0_ |= 0x00000010; + mimeType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3608,6 +5326,59 @@ public com.google.protobuf.ByteString getContentBytes() { } } + public static final int CODE_SNIPPET_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object codeSnippet_ = ""; + + /** + * + * + *
+       * Chunk of code snippet from the referenced document.
+       * 
+ * + * string code_snippet = 4; + * + * @return The codeSnippet. + */ + @java.lang.Override + public java.lang.String getCodeSnippet() { + java.lang.Object ref = codeSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + codeSnippet_ = s; + return s; + } + } + + /** + * + * + *
+       * Chunk of code snippet from the referenced document.
+       * 
+ * + * string code_snippet = 4; + * + * @return The bytes for codeSnippet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeSnippetBytes() { + java.lang.Object ref = codeSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + codeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 2; private com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata .Reference.DocumentMetadata @@ -3675,6 +5446,68 @@ public boolean hasDocumentMetadata() { : documentMetadata_; } + public static final int CHUNK_METADATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct chunkMetadata_; + + /** + * + * + *
+       * Output only. Generic structured chunk metadata from upstream data
+       * source connectors.
+       * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + @java.lang.Override + public boolean hasChunkMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Output only. Generic structured chunk metadata from upstream data
+       * source connectors.
+       * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getChunkMetadata() { + return chunkMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : chunkMetadata_; + } + + /** + * + * + *
+       * Output only. Generic structured chunk metadata from upstream data
+       * source connectors.
+       * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getChunkMetadataOrBuilder() { + return chunkMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : chunkMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3695,6 +5528,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getDocumentMetadata()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(codeSnippet_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, codeSnippet_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getChunkMetadata()); + } getUnknownFields().writeTo(output); } @@ -3711,6 +5550,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentMetadata()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(codeSnippet_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, codeSnippet_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getChunkMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3734,10 +5579,15 @@ public boolean equals(final java.lang.Object obj) { obj; if (!getContent().equals(other.getContent())) return false; + if (!getCodeSnippet().equals(other.getCodeSnippet())) return false; if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; if (hasDocumentMetadata()) { if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; } + if (hasChunkMetadata() != other.hasChunkMetadata()) return false; + if (hasChunkMetadata()) { + if (!getChunkMetadata().equals(other.getChunkMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3751,10 +5601,16 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + CODE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getCodeSnippet().hashCode(); if (hasDocumentMetadata()) { hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; hash = (53 * hash) + getDocumentMetadata().hashCode(); } + if (hasChunkMetadata()) { + hash = (37 * hash) + CHUNK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getChunkMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3927,6 +5783,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetDocumentMetadataFieldBuilder(); + internalGetChunkMetadataFieldBuilder(); } } @@ -3935,11 +5792,17 @@ public Builder clear() { super.clear(); bitField0_ = 0; content_ = ""; + codeSnippet_ = ""; documentMetadata_ = null; if (documentMetadataBuilder_ != null) { documentMetadataBuilder_.dispose(); documentMetadataBuilder_ = null; } + chunkMetadata_ = null; + if (chunkMetadataBuilder_ != null) { + chunkMetadataBuilder_.dispose(); + chunkMetadataBuilder_ = null; + } return this; } @@ -3994,14 +5857,22 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.content_ = content_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { + result.codeSnippet_ = codeSnippet_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.documentMetadata_ = documentMetadataBuilder_ == null ? documentMetadata_ : documentMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.chunkMetadata_ = + chunkMetadataBuilder_ == null ? chunkMetadata_ : chunkMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -4033,9 +5904,17 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (!other.getCodeSnippet().isEmpty()) { + codeSnippet_ = other.codeSnippet_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.hasDocumentMetadata()) { mergeDocumentMetadata(other.getDocumentMetadata()); } + if (other.hasChunkMetadata()) { + mergeChunkMetadata(other.getChunkMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4072,9 +5951,22 @@ public Builder mergeFrom( { input.readMessage( internalGetDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 + case 34: + { + codeSnippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetChunkMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4092,9 +5984,95 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private java.lang.Object content_ = ""; + private int bitField0_; + + private java.lang.Object content_ = ""; + + /** + * + * + *
+         * Referenced text content.
+         * 
+ * + * string content = 1; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Referenced text content.
+         * 
+ * + * string content = 1; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Referenced text content.
+         * 
+ * + * string content = 1; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Referenced text content.
+         * 
+ * + * string content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } /** * @@ -4105,14 +6083,39 @@ public Builder mergeFrom( * * string content = 1; * - * @return The content. + * @param value The bytes for content to set. + * @return This builder for chaining. */ - public java.lang.String getContent() { - java.lang.Object ref = content_; + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object codeSnippet_ = ""; + + /** + * + * + *
+         * Chunk of code snippet from the referenced document.
+         * 
+ * + * string code_snippet = 4; + * + * @return The codeSnippet. + */ + public java.lang.String getCodeSnippet() { + java.lang.Object ref = codeSnippet_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - content_ = s; + codeSnippet_ = s; return s; } else { return (java.lang.String) ref; @@ -4123,19 +6126,19 @@ public java.lang.String getContent() { * * *
-         * Referenced text content.
+         * Chunk of code snippet from the referenced document.
          * 
* - * string content = 1; + * string code_snippet = 4; * - * @return The bytes for content. + * @return The bytes for codeSnippet. */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; + public com.google.protobuf.ByteString getCodeSnippetBytes() { + java.lang.Object ref = codeSnippet_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - content_ = b; + codeSnippet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4146,20 +6149,20 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-         * Referenced text content.
+         * Chunk of code snippet from the referenced document.
          * 
* - * string content = 1; + * string code_snippet = 4; * - * @param value The content to set. + * @param value The codeSnippet to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setCodeSnippet(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000001; + codeSnippet_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4168,16 +6171,16 @@ public Builder setContent(java.lang.String value) { * * *
-         * Referenced text content.
+         * Chunk of code snippet from the referenced document.
          * 
* - * string content = 1; + * string code_snippet = 4; * * @return This builder for chaining. */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearCodeSnippet() { + codeSnippet_ = getDefaultInstance().getCodeSnippet(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4186,21 +6189,21 @@ public Builder clearContent() { * * *
-         * Referenced text content.
+         * Chunk of code snippet from the referenced document.
          * 
* - * string content = 1; + * string code_snippet = 4; * - * @param value The bytes for content to set. + * @param value The bytes for codeSnippet to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setCodeSnippetBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000001; + codeSnippet_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4231,7 +6234,7 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * @return Whether the documentMetadata field is set. */ public boolean hasDocumentMetadata() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -4283,7 +6286,7 @@ public Builder setDocumentMetadata( } else { documentMetadataBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4308,7 +6311,7 @@ public Builder setDocumentMetadata( } else { documentMetadataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4329,7 +6332,7 @@ public Builder mergeDocumentMetadata( .Reference.DocumentMetadata value) { if (documentMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && documentMetadata_ != null && documentMetadata_ != com.google.cloud.discoveryengine.v1.AssistantGroundedContent @@ -4342,7 +6345,7 @@ public Builder mergeDocumentMetadata( documentMetadataBuilder_.mergeFrom(value); } if (documentMetadata_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -4360,7 +6363,7 @@ public Builder mergeDocumentMetadata( * */ public Builder clearDocumentMetadata() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); documentMetadata_ = null; if (documentMetadataBuilder_ != null) { documentMetadataBuilder_.dispose(); @@ -4384,32 +6387,258 @@ public Builder clearDocumentMetadata() { public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata .Reference.DocumentMetadata.Builder getDocumentMetadataBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDocumentMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Document metadata.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + } + + /** + * + * + *
+         * Document metadata.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadataOrBuilder> + internalGetDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; + } + + private com.google.protobuf.Struct chunkMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + chunkMetadataBuilder_; + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + public boolean hasChunkMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + public com.google.protobuf.Struct getChunkMetadata() { + if (chunkMetadataBuilder_ == null) { + return chunkMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : chunkMetadata_; + } else { + return chunkMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChunkMetadata(com.google.protobuf.Struct value) { + if (chunkMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkMetadata_ = value; + } else { + chunkMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChunkMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (chunkMetadataBuilder_ == null) { + chunkMetadata_ = builderForValue.build(); + } else { + chunkMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeChunkMetadata(com.google.protobuf.Struct value) { + if (chunkMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && chunkMetadata_ != null + && chunkMetadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getChunkMetadataBuilder().mergeFrom(value); + } else { + chunkMetadata_ = value; + } + } else { + chunkMetadataBuilder_.mergeFrom(value); + } + if (chunkMetadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearChunkMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + chunkMetadata_ = null; + if (chunkMetadataBuilder_ != null) { + chunkMetadataBuilder_.dispose(); + chunkMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
+         * 
+ * + * + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getChunkMetadataBuilder() { + bitField0_ |= 0x00000008; onChanged(); - return internalGetDocumentMetadataFieldBuilder().getBuilder(); + return internalGetChunkMetadataFieldBuilder().getBuilder(); } /** * * *
-         * Document metadata.
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
          * 
* * - * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - if (documentMetadataBuilder_ != null) { - return documentMetadataBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getChunkMetadataOrBuilder() { + if (chunkMetadataBuilder_ != null) { + return chunkMetadataBuilder_.getMessageOrBuilder(); } else { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata.getDefaultInstance() - : documentMetadata_; + return chunkMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : chunkMetadata_; } } @@ -4417,34 +6646,29 @@ public Builder clearDocumentMetadata() { * * *
-         * Document metadata.
+         * Output only. Generic structured chunk metadata from upstream data
+         * source connectors.
          * 
* * - * .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * .google.protobuf.Struct chunk_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference.DocumentMetadataOrBuilder> - internalGetDocumentMetadataFieldBuilder() { - if (documentMetadataBuilder_ == null) { - documentMetadataBuilder_ = + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetChunkMetadataFieldBuilder() { + if (chunkMetadataBuilder_ == null) { + chunkMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.DocumentMetadataOrBuilder>( - getDocumentMetadata(), getParentForChildren(), isClean()); - documentMetadata_ = null; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getChunkMetadata(), getParentForChildren(), isClean()); + chunkMetadata_ = null; } - return documentMetadataBuilder_; + return chunkMetadataBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference) @@ -4606,6 +6830,105 @@ public int getSegmentsCount() { return segments_.get(index); } + public static final int VISUAL_SEGMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + visualSegments_; + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + getVisualSegmentsList() { + return visualSegments_; + } + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder> + getVisualSegmentsOrBuilderList() { + return visualSegments_; + } + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public int getVisualSegmentsCount() { + return visualSegments_.size(); + } + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getVisualSegments(int index) { + return visualSegments_.get(index); + } + + /** + * + * + *
+     * Grounding information for parts of the visual content.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder + getVisualSegmentsOrBuilder(int index) { + return visualSegments_.get(index); + } + public static final int REFERENCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -4725,6 +7048,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < segments_.size(); i++) { output.writeMessage(4, segments_.get(i)); } + for (int i = 0; i < visualSegments_.size(); i++) { + output.writeMessage(6, visualSegments_.get(i)); + } getUnknownFields().writeTo(output); } @@ -4740,6 +7066,9 @@ public int getSerializedSize() { for (int i = 0; i < segments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, segments_.get(i)); } + for (int i = 0; i < visualSegments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, visualSegments_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4759,6 +7088,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) obj; if (!getSegmentsList().equals(other.getSegmentsList())) return false; + if (!getVisualSegmentsList().equals(other.getVisualSegmentsList())) return false; if (!getReferencesList().equals(other.getReferencesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4775,6 +7105,10 @@ public int hashCode() { hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getSegmentsList().hashCode(); } + if (getVisualSegmentsCount() > 0) { + hash = (37 * hash) + VISUAL_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getVisualSegmentsList().hashCode(); + } if (getReferencesCount() > 0) { hash = (37 * hash) + REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getReferencesList().hashCode(); @@ -4803,415 +7137,935 @@ public int hashCode() { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Grounding details for text sources.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .class, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + } else { + segments_ = null; + segmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (visualSegmentsBuilder_ == null) { + visualSegments_ = java.util.Collections.emptyList(); + } else { + visualSegments_ = null; + visualSegmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + } else { + references_ = null; + referencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + build() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata result = + new com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + result) { + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + if (visualSegmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + visualSegments_ = java.util.Collections.unmodifiableList(visualSegments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.visualSegments_ = visualSegments_; + } else { + result.visualSegments_ = visualSegmentsBuilder_.build(); + } + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + references_ = java.util.Collections.unmodifiableList(references_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.references_ = references_; + } else { + result.references_ = referencesBuilder_.build(); + } + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + result) { + int from_bitField0_ = bitField0_; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .getDefaultInstance()) return this; + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (visualSegmentsBuilder_ == null) { + if (!other.visualSegments_.isEmpty()) { + if (visualSegments_.isEmpty()) { + visualSegments_ = other.visualSegments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVisualSegmentsIsMutable(); + visualSegments_.addAll(other.visualSegments_); + } + onChanged(); + } + } else { + if (!other.visualSegments_.isEmpty()) { + if (visualSegmentsBuilder_.isEmpty()) { + visualSegmentsBuilder_.dispose(); + visualSegmentsBuilder_ = null; + visualSegments_ = other.visualSegments_; + bitField0_ = (bitField0_ & ~0x00000002); + visualSegmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVisualSegmentsFieldBuilder() + : null; + } else { + visualSegmentsBuilder_.addAllMessages(other.visualSegments_); + } + } + } + if (referencesBuilder_ == null) { + if (!other.references_.isEmpty()) { + if (references_.isEmpty()) { + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureReferencesIsMutable(); + references_.addAll(other.references_); + } + onChanged(); + } + } else { + if (!other.references_.isEmpty()) { + if (referencesBuilder_.isEmpty()) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000004); + referencesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetReferencesFieldBuilder() + : null; + } else { + referencesBuilder_.addAllMessages(other.references_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public 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 18: + { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Reference + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Reference.parser(), + extensionRegistry); + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(m); + } else { + referencesBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: + { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Segment.parser(), + extensionRegistry); + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(m); + } else { + segmentsBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: + { + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.parser(), + extensionRegistry); + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.add(m); + } else { + visualSegmentsBuilder_.addMessage(m); + } + 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; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int bitField0_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private java.util.List< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment> + segments_ = java.util.Collections.emptyList(); - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment>(segments_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder> + segmentsBuilder_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment> + getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } - /** - * - * - *
-     * Grounding details for text sources.
-     * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor; + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .class, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Builder.class); + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment + getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } } - // Construct using - // com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.newBuilder() - private Builder() {} + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder setSegments( + int index, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder setSegments( + int index, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + .Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + value) { if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); } else { - segments_ = null; - segmentsBuilder_.clear(); + segmentsBuilder_.addMessage(value); } - bitField0_ = (bitField0_ & ~0x00000001); - if (referencesBuilder_ == null) { - references_ = java.util.Collections.emptyList(); + return this; + } + + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + int index, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); } else { - references_ = null; - referencesBuilder_.clear(); + segmentsBuilder_.addMessage(index, value); } - bitField0_ = (bitField0_ & ~0x00000002); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.AssistAnswerProto - .internal_static_google_cloud_discoveryengine_v1_AssistantGroundedContent_TextGroundingMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - build() { - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + .Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); } - return result; + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - buildPartial() { - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata result = - new com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata( - this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + int index, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + .Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); } - onBuilt(); - return result; + return this; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - result) { + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addAllSegments( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.AssistantGroundedContent + .TextGroundingMetadata.Segment> + values) { if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.segments_ = segments_; - } else { - result.segments_ = segmentsBuilder_.build(); - } - if (referencesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - references_ = java.util.Collections.unmodifiableList(references_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.references_ = references_; + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); } else { - result.references_ = referencesBuilder_.build(); + segmentsBuilder_.addAllMessages(values); } + return this; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) - other); + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - super.mergeFrom(other); - return this; + segmentsBuilder_.clear(); } + return this; } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - other) { - if (other - == com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .getDefaultInstance()) return this; + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder removeSegments(int index) { if (segmentsBuilder_ == null) { - if (!other.segments_.isEmpty()) { - if (segments_.isEmpty()) { - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSegmentsIsMutable(); - segments_.addAll(other.segments_); - } - onChanged(); - } + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); } else { - if (!other.segments_.isEmpty()) { - if (segmentsBuilder_.isEmpty()) { - segmentsBuilder_.dispose(); - segmentsBuilder_ = null; - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000001); - segmentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSegmentsFieldBuilder() - : null; - } else { - segmentsBuilder_.addAllMessages(other.segments_); - } - } + segmentsBuilder_.remove(index); } - if (referencesBuilder_ == null) { - if (!other.references_.isEmpty()) { - if (references_.isEmpty()) { - references_ = other.references_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureReferencesIsMutable(); - references_.addAll(other.references_); - } - onChanged(); - } + return this; + } + + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + getSegmentsBuilder(int index) { + return internalGetSegmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder + getSegmentsOrBuilder(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); } else { - if (!other.references_.isEmpty()) { - if (referencesBuilder_.isEmpty()) { - referencesBuilder_.dispose(); - referencesBuilder_ = null; - references_ = other.references_; - bitField0_ = (bitField0_ & ~0x00000002); - referencesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetReferencesFieldBuilder() - : null; - } else { - referencesBuilder_.addAllMessages(other.references_); - } - } + return segmentsBuilder_.getMessageOrBuilder(index); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder> + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } } - @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 18: - { + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + addSegmentsBuilder() { + return internalGetSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.getDefaultInstance()); + } + + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + addSegmentsBuilder(int index) { + return internalGetSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.getDefaultInstance()); + } + + /** + * + * + *
+       * Grounding information for parts of the text.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder> + getSegmentsBuilderList() { + return internalGetSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder> + internalGetSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Reference - m = - input.readMessage( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Reference.parser(), - extensionRegistry); - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.add(m); - } else { - referencesBuilder_.addMessage(m); - } - break; - } // case 18 - case 34: - { + .Segment, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment - m = - input.readMessage( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Segment.parser(), - extensionRegistry); - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(m); - } else { - segmentsBuilder_.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; + .Segment.Builder, + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder>( + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + segments_ = null; + } + return segmentsBuilder_; } - private int bitField0_; - private java.util.List< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment> - segments_ = java.util.Collections.emptyList(); + .VisualSegment> + visualSegments_ = java.util.Collections.emptyList(); - private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - segments_ = + private void ensureVisualSegmentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + visualSegments_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment>(segments_); - bitField0_ |= 0x00000001; + .VisualSegment>(visualSegments_); + bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment, + .VisualSegment, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder, + .VisualSegment.Builder, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .SegmentOrBuilder> - segmentsBuilder_; + .VisualSegmentOrBuilder> + visualSegmentsBuilder_; /** * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public java.util.List< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment> - getSegmentsList() { - if (segmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(segments_); + .VisualSegment> + getVisualSegmentsList() { + if (visualSegmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(visualSegments_); } else { - return segmentsBuilder_.getMessageList(); + return visualSegmentsBuilder_.getMessageList(); } } @@ -5219,18 +8073,18 @@ private void ensureSegmentsIsMutable() { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public int getSegmentsCount() { - if (segmentsBuilder_ == null) { - return segments_.size(); + public int getVisualSegmentsCount() { + if (visualSegmentsBuilder_ == null) { + return visualSegments_.size(); } else { - return segmentsBuilder_.getCount(); + return visualSegmentsBuilder_.getCount(); } } @@ -5238,20 +8092,20 @@ public int getSegmentsCount() { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment - getSegments(int index) { - if (segmentsBuilder_ == null) { - return segments_.get(index); + .VisualSegment + getVisualSegments(int index) { + if (visualSegmentsBuilder_ == null) { + return visualSegments_.get(index); } else { - return segmentsBuilder_.getMessage(index); + return visualSegmentsBuilder_.getMessage(index); } } @@ -5259,26 +8113,27 @@ public int getSegmentsCount() { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder setSegments( + public Builder setVisualSegments( int index, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment value) { - if (segmentsBuilder_ == null) { + if (visualSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSegmentsIsMutable(); - segments_.set(index, value); + ensureVisualSegmentsIsMutable(); + visualSegments_.set(index, value); onChanged(); } else { - segmentsBuilder_.setMessage(index, value); + visualSegmentsBuilder_.setMessage(index, value); } return this; } @@ -5287,24 +8142,24 @@ public Builder setSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder setSegments( + public Builder setVisualSegments( int index, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment - .Builder + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.set(index, builderForValue.build()); + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.set(index, builderForValue.build()); onChanged(); } else { - segmentsBuilder_.setMessage(index, builderForValue.build()); + visualSegmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -5313,25 +8168,26 @@ public Builder setSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder addSegments( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + public Builder addVisualSegments( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment value) { - if (segmentsBuilder_ == null) { + if (visualSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSegmentsIsMutable(); - segments_.add(value); + ensureVisualSegmentsIsMutable(); + visualSegments_.add(value); onChanged(); } else { - segmentsBuilder_.addMessage(value); + visualSegmentsBuilder_.addMessage(value); } return this; } @@ -5340,26 +8196,27 @@ public Builder addSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder addSegments( + public Builder addVisualSegments( int index, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment value) { - if (segmentsBuilder_ == null) { + if (visualSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSegmentsIsMutable(); - segments_.add(index, value); + ensureVisualSegmentsIsMutable(); + visualSegments_.add(index, value); onChanged(); } else { - segmentsBuilder_.addMessage(index, value); + visualSegmentsBuilder_.addMessage(index, value); } return this; } @@ -5368,23 +8225,23 @@ public Builder addSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder addSegments( - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment - .Builder + public Builder addVisualSegments( + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(builderForValue.build()); + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.add(builderForValue.build()); onChanged(); } else { - segmentsBuilder_.addMessage(builderForValue.build()); + visualSegmentsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -5393,24 +8250,24 @@ public Builder addSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder addSegments( + public Builder addVisualSegments( int index, - com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment - .Builder + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(index, builderForValue.build()); + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.add(index, builderForValue.build()); onChanged(); } else { - segmentsBuilder_.addMessage(index, builderForValue.build()); + visualSegmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -5419,25 +8276,25 @@ public Builder addSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder addAllSegments( + public Builder addAllVisualSegments( java.lang.Iterable< ? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent - .TextGroundingMetadata.Segment> + .TextGroundingMetadata.VisualSegment> values) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visualSegments_); onChanged(); } else { - segmentsBuilder_.addAllMessages(values); + visualSegmentsBuilder_.addAllMessages(values); } return this; } @@ -5446,20 +8303,20 @@ public Builder addAllSegments( * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder clearSegments() { - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearVisualSegments() { + if (visualSegmentsBuilder_ == null) { + visualSegments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - segmentsBuilder_.clear(); + visualSegmentsBuilder_.clear(); } return this; } @@ -5468,20 +8325,20 @@ public Builder clearSegments() { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ - public Builder removeSegments(int index) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.remove(index); + public Builder removeVisualSegments(int index) { + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.remove(index); onChanged(); } else { - segmentsBuilder_.remove(index); + visualSegmentsBuilder_.remove(index); } return this; } @@ -5490,37 +8347,37 @@ public Builder removeSegments(int index) { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder - getSegmentsBuilder(int index) { - return internalGetSegmentsFieldBuilder().getBuilder(index); + .VisualSegment.Builder + getVisualSegmentsBuilder(int index) { + return internalGetVisualSegmentsFieldBuilder().getBuilder(index); } /** * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .SegmentOrBuilder - getSegmentsOrBuilder(int index) { - if (segmentsBuilder_ == null) { - return segments_.get(index); + .VisualSegmentOrBuilder + getVisualSegmentsOrBuilder(int index) { + if (visualSegmentsBuilder_ == null) { + return visualSegments_.get(index); } else { - return segmentsBuilder_.getMessageOrBuilder(index); + return visualSegmentsBuilder_.getMessageOrBuilder(index); } } @@ -5528,22 +8385,22 @@ public Builder removeSegments(int index) { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public java.util.List< ? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .SegmentOrBuilder> - getSegmentsOrBuilderList() { - if (segmentsBuilder_ != null) { - return segmentsBuilder_.getMessageOrBuilderList(); + .VisualSegmentOrBuilder> + getVisualSegmentsOrBuilderList() { + if (visualSegmentsBuilder_ != null) { + return visualSegmentsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(segments_); + return java.util.Collections.unmodifiableList(visualSegments_); } } @@ -5551,82 +8408,85 @@ public Builder removeSegments(int index) { * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder - addSegmentsBuilder() { - return internalGetSegmentsFieldBuilder() + .VisualSegment.Builder + addVisualSegmentsBuilder() { + return internalGetVisualSegmentsFieldBuilder() .addBuilder( com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.getDefaultInstance()); + .VisualSegment.getDefaultInstance()); } /** * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder - addSegmentsBuilder(int index) { - return internalGetSegmentsFieldBuilder() + .VisualSegment.Builder + addVisualSegmentsBuilder(int index) { + return internalGetVisualSegmentsFieldBuilder() .addBuilder( index, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.getDefaultInstance()); + .VisualSegment.getDefaultInstance()); } /** * * *
-       * Grounding information for parts of the text.
+       * Grounding information for parts of the visual content.
        * 
* * - * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; * */ public java.util.List< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder> - getSegmentsBuilderList() { - return internalGetSegmentsFieldBuilder().getBuilderList(); + .VisualSegment.Builder> + getVisualSegmentsBuilderList() { + return internalGetVisualSegmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment, + .VisualSegment, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder, + .VisualSegment.Builder, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .SegmentOrBuilder> - internalGetSegmentsFieldBuilder() { - if (segmentsBuilder_ == null) { - segmentsBuilder_ = + .VisualSegmentOrBuilder> + internalGetVisualSegmentsFieldBuilder() { + if (visualSegmentsBuilder_ == null) { + visualSegmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment, + .VisualSegment, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .Segment.Builder, + .VisualSegment.Builder, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata - .SegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - segments_ = null; + .VisualSegmentOrBuilder>( + visualSegments_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + visualSegments_ = null; } - return segmentsBuilder_; + return visualSegmentsBuilder_; } private java.util.List< @@ -5635,12 +8495,12 @@ public Builder removeSegments(int index) { references_ = java.util.Collections.emptyList(); private void ensureReferencesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { references_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata .Reference>(references_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -5919,7 +8779,7 @@ public Builder addAllReferences( public Builder clearReferences() { if (referencesBuilder_ == null) { references_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { referencesBuilder_.clear(); @@ -6086,7 +8946,7 @@ public Builder removeReferences(int index) { .Reference.Builder, com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata .ReferenceOrBuilder>( - references_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + references_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); references_ = null; } return referencesBuilder_; @@ -6316,6 +9176,63 @@ public com.google.cloud.discoveryengine.v1.AssistantContentOrBuilder getContentO : content_; } + public static final int CITATION_METADATA_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1.CitationMetadata citationMetadata_; + + /** + * + * + *
+   * Source attribution of the generated content. See also
+   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+   * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + * + * @return Whether the citationMetadata field is set. + */ + @java.lang.Override + public boolean hasCitationMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Source attribution of the generated content. See also
+   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+   * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + * + * @return The citationMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationMetadata getCitationMetadata() { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } + + /** + * + * + *
+   * Source attribution of the generated content. See also
+   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+   * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder + getCitationMetadataOrBuilder() { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6339,6 +9256,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) metadata_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getCitationMetadata()); + } getUnknownFields().writeTo(output); } @@ -6358,6 +9278,9 @@ public int getSerializedSize() { (com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata) metadata_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCitationMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6378,6 +9301,10 @@ public boolean equals(final java.lang.Object obj) { if (hasContent()) { if (!getContent().equals(other.getContent())) return false; } + if (hasCitationMetadata() != other.hasCitationMetadata()) return false; + if (hasCitationMetadata()) { + if (!getCitationMetadata().equals(other.getCitationMetadata())) return false; + } if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 3: @@ -6401,6 +9328,10 @@ public int hashCode() { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); } + if (hasCitationMetadata()) { + hash = (37 * hash) + CITATION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCitationMetadata().hashCode(); + } switch (metadataCase_) { case 3: hash = (37 * hash) + TEXT_GROUNDING_METADATA_FIELD_NUMBER; @@ -6555,6 +9486,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetContentFieldBuilder(); + internalGetCitationMetadataFieldBuilder(); } } @@ -6570,6 +9502,11 @@ public Builder clear() { contentBuilder_.dispose(); contentBuilder_ = null; } + citationMetadata_ = null; + if (citationMetadataBuilder_ != null) { + citationMetadataBuilder_.dispose(); + citationMetadataBuilder_ = null; + } metadataCase_ = 0; metadata_ = null; return this; @@ -6616,6 +9553,11 @@ private void buildPartial0( result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.citationMetadata_ = + citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -6645,6 +9587,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.AssistantGroundedCo if (other.hasContent()) { mergeContent(other.getContent()); } + if (other.hasCitationMetadata()) { + mergeCitationMetadata(other.getCitationMetadata()); + } switch (other.getMetadataCase()) { case TEXT_GROUNDING_METADATA: { @@ -6695,6 +9640,13 @@ public Builder mergeFrom( metadataCase_ = 3; break; } // case 26 + case 42: + { + input.readMessage( + internalGetCitationMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7189,6 +10141,214 @@ public com.google.cloud.discoveryengine.v1.AssistantContentOrBuilder getContentO return contentBuilder_; } + private com.google.cloud.discoveryengine.v1.CitationMetadata citationMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CitationMetadata, + com.google.cloud.discoveryengine.v1.CitationMetadata.Builder, + com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder> + citationMetadataBuilder_; + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + * + * @return Whether the citationMetadata field is set. + */ + public boolean hasCitationMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + * + * @return The citationMetadata. + */ + public com.google.cloud.discoveryengine.v1.CitationMetadata getCitationMetadata() { + if (citationMetadataBuilder_ == null) { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } else { + return citationMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + public Builder setCitationMetadata(com.google.cloud.discoveryengine.v1.CitationMetadata value) { + if (citationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + citationMetadata_ = value; + } else { + citationMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + public Builder setCitationMetadata( + com.google.cloud.discoveryengine.v1.CitationMetadata.Builder builderForValue) { + if (citationMetadataBuilder_ == null) { + citationMetadata_ = builderForValue.build(); + } else { + citationMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + public Builder mergeCitationMetadata( + com.google.cloud.discoveryengine.v1.CitationMetadata value) { + if (citationMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && citationMetadata_ != null + && citationMetadata_ + != com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance()) { + getCitationMetadataBuilder().mergeFrom(value); + } else { + citationMetadata_ = value; + } + } else { + citationMetadataBuilder_.mergeFrom(value); + } + if (citationMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + public Builder clearCitationMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + citationMetadata_ = null; + if (citationMetadataBuilder_ != null) { + citationMetadataBuilder_.dispose(); + citationMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + public com.google.cloud.discoveryengine.v1.CitationMetadata.Builder + getCitationMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCitationMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + public com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder + getCitationMetadataOrBuilder() { + if (citationMetadataBuilder_ != null) { + return citationMetadataBuilder_.getMessageOrBuilder(); + } else { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } + } + + /** + * + * + *
+     * Source attribution of the generated content. See also
+     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+     * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CitationMetadata, + com.google.cloud.discoveryengine.v1.CitationMetadata.Builder, + com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder> + internalGetCitationMetadataFieldBuilder() { + if (citationMetadataBuilder_ == null) { + citationMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CitationMetadata, + com.google.cloud.discoveryengine.v1.CitationMetadata.Builder, + com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder>( + getCitationMetadata(), getParentForChildren(), isClean()); + citationMetadata_ = null; + } + return citationMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.AssistantGroundedContent) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContentOrBuilder.java index 594065dc10c0..26fc4263e502 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContentOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantGroundedContentOrBuilder.java @@ -108,5 +108,45 @@ public interface AssistantGroundedContentOrBuilder */ com.google.cloud.discoveryengine.v1.AssistantContentOrBuilder getContentOrBuilder(); + /** + * + * + *
+   * Source attribution of the generated content. See also
+   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+   * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + * + * @return Whether the citationMetadata field is set. + */ + boolean hasCitationMetadata(); + + /** + * + * + *
+   * Source attribution of the generated content. See also
+   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+   * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + * + * @return The citationMetadata. + */ + com.google.cloud.discoveryengine.v1.CitationMetadata getCitationMetadata(); + + /** + * + * + *
+   * Source attribution of the generated content. See also
+   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
+   * 
+ * + * .google.cloud.discoveryengine.v1.CitationMetadata citation_metadata = 5; + */ + com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder getCitationMetadataOrBuilder(); + com.google.cloud.discoveryengine.v1.AssistantGroundedContent.MetadataCase getMetadataCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantOrBuilder.java index db89e4cd021d..16396d0a53b0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantOrBuilder.java @@ -59,4 +59,410 @@ public interface AssistantOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The assistant display name.
+   *
+   * It must be a UTF-8 encoded string with a length limit of 128 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. The assistant display name.
+   *
+   * It must be a UTF-8 encoded string with a length limit of 128 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for additional information. Expected to be shown on
+   * the configuration UI, not to the users of the assistant.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description for additional information. Expected to be shown on
+   * the configuration UI, not to the users of the assistant.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Configuration for the generation of the assistant response.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + boolean hasGenerationConfig(); + + /** + * + * + *
+   * Optional. Configuration for the generation of the assistant response.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfig getGenerationConfig(); + + /** + * + * + *
+   * Optional. Configuration for the generation of the assistant response.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.GenerationConfigOrBuilder + getGenerationConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The type of web grounding to use.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + int getWebGroundingTypeValue(); + + /** + * + * + *
+   * Optional. The type of web grounding to use.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + com.google.cloud.discoveryengine.v1.Assistant.WebGroundingType getWebGroundingType(); + + /** + * + * + *
+   * Optional. This field controls the default web grounding toggle for end
+   * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
+   * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
+   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+   * grounding enabled by default on UI. If true, grounding toggle will be
+   * disabled by default on UI. End users can still enable web grounding in
+   * the UI if web grounding is enabled.
+   * 
+ * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + boolean getDefaultWebGroundingToggleOff(); + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEnabledToolsCount(); + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsEnabledTools(java.lang.String key); + + /** Use {@link #getEnabledToolsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getEnabledTools(); + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getEnabledToolsMap(); + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.Assistant.ToolList getEnabledToolsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Assistant.ToolList defaultValue); + + /** + * + * + *
+   * Optional. Note: not implemented yet. Use
+   * [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions]
+   * instead. The enabled tools on this assistant. The keys are connector name,
+   * for example
+   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
+   * The values consist of admin enabled tools towards the connector
+   * instance. Admin can selectively enable multiple tools on any of the
+   * connector instances that they created in the project. For example
+   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
+   * "transferTicket")],
+   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.ToolList getEnabledToolsOrThrow( + java.lang.String key); + + /** + * + * + *
+   * Optional. Customer policy for the assistant.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicy field is set. + */ + boolean hasCustomerPolicy(); + + /** + * + * + *
+   * Optional. Customer policy for the assistant.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicy. + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicy getCustomerPolicy(); + + /** + * + * + *
+   * Optional. Customer policy for the assistant.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Assistant.CustomerPolicyOrBuilder + getCustomerPolicyOrBuilder(); + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Represents the time when this Assistant was most recently
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantProto.java index bdcbbb823997..634dc1ea313e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantProto.java @@ -44,6 +44,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_Assistant_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Assistant_EnabledToolsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Assistant_EnabledToolsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -53,21 +85,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n/google/cloud/discoveryengine/v1/assist" - + "ant.proto\022\037google.cloud.discoveryengine." + "\n" + + "/google/cloud/discoveryengine/v1/assistant.proto\022\037google.cloud.discoveryengine." + "v1\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\"\272\001\n\tAssistant\022\022\n\004" - + "name\030\001 \001(\tB\004\342A\001\005:\230\001\352A\224\001\n(discoveryengine" - + ".googleapis.com/Assistant\022hprojects/{pro" - + "ject}/locations/{location}/collections/{" - + "collection}/engines/{engine}/assistants/" - + "{assistant}B\201\002\n#com.google.cloud.discove" - + "ryengine.v1B\016AssistantProtoP\001ZMcloud.goo" - + "gle.com/go/discoveryengine/apiv1/discove" - + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" - + "ENGINE\252\002\037Google.Cloud.DiscoveryEngine.V1" - + "\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Goo" - + "gle::Cloud::DiscoveryEngine::V1b\006proto3" + + "gle/api/resource.proto\032,google/cloud/dis" + + "coveryengine/v1/common.proto\032\037google/protobuf/timestamp.proto\"\255\023\n" + + "\tAssistant\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\005\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\001\022\\\n" + + "\021generation_config\030\023 \001(\0132;.google.cloud.discove" + + "ryengine.v1.Assistant.GenerationConfigB\004\342A\001\001\022]\n" + + "\022web_grounding_type\030\004 \001(\0162;.googl" + + "e.cloud.discoveryengine.v1.Assistant.WebGroundingTypeB\004\342A\001\001\022.\n" + + " default_web_grounding_toggle_off\030\026 \001(\010B\004\342A\001\001\022Y\n\r" + + "enabled_tools\030\022 \003(\0132<.google.cloud.discoveryengin" + + "e.v1.Assistant.EnabledToolsEntryB\004\342A\001\001\022X\n" + + "\017customer_policy\030\014 \001(\01329.google.cloud.d" + + "iscoveryengine.v1.Assistant.CustomerPolicyB\004\342A\001\001\0225\n" + + "\013create_time\030\030" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\031" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\032\232\002\n" + + "\020GenerationConfig\022\036\n" + + "\020default_model_id\030\001 \001(\tB\004\342A\001\001\022\037\n" + + "\021allowed_model_ids\030\002 \003(\tB\004\342A\001\001\022i\n" + + "\022system_instruction\030\003 \001(\0132M.googl" + + "e.cloud.discoveryengine.v1.Assistant.GenerationConfig.SystemInstruction\022\030\n" + + "\020default_language\030\004 \001(\t\032@\n" + + "\021SystemInstruction\022+\n" + + "\035additional_system_instruction\030\002 \001(\tB\004\342A\001\001\0328\n" + + "\010ToolInfo\022\021\n" + + "\ttool_name\030\001 \001(\t\022\031\n" + + "\021tool_display_name\030\002 \001(\t\032R\n" + + "\010ToolList\022F\n" + + "\ttool_info\030\001" + + " \003(\01323.google.cloud.discoveryengine.v1.Assistant.ToolInfo\032\346\007\n" + + "\016CustomerPolicy\022d\n" + + "\016banned_phrases\030\001 \003(\0132F.google.cl" + + "oud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhraseB\004\342A\001\001\022l\n" + + "\022model_armor_config\030\002 \001(\0132J.google.cloud.discoverye" + + "ngine.v1.Assistant.CustomerPolicy.ModelArmorConfigB\004\342A\001\001\022[\n" + + "\026data_protection_policy\030\003" + + " \001(\01325.google.cloud.discoveryengine.v1.DataProtectionPolicyB\004\342A\001\001\032\271\002\n" + + "\014BannedPhrase\022\024\n" + + "\006phrase\030\001 \001(\tB\004\342A\001\002\022v\n\n" + + "match_type\030\002 \001(\0162\\.google.cloud.discoveryengine." + + "v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchTypeB\004\342A\001\001\022\037\n" + + "\021ignore_diacritics\030\003 \001(\010B\004\342A\001\001\"z\n" + + "\025BannedPhraseMatchType\022(\n" + + "$BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED\020\000\022\027\n" + + "\023SIMPLE_STRING_MATCH\020\001\022\036\n" + + "\032WORD_BOUNDARY_STRING_MATCH\020\002\032\346\002\n" + + "\020ModelArmorConfig\022I\n" + + "\024user_prompt_template\030\001 \001(\tB+\342A\001\001\372A$\n" + + "\"modelarmor.googleapis.com/Template\022F\n" + + "\021response_template\030\002 \001(\tB+\342A\001\001\372A$\n" + + "\"modelarmor.googleapis.com/Template\022r\n" + + "\014failure_mode\030\003 \001(\0162V.google.cloud.discovery" + + "engine.v1.Assistant.CustomerPolicy.ModelArmorConfig.FailureModeB\004\342A\001\001\"K\n" + + "\013FailureMode\022\034\n" + + "\030FAILURE_MODE_UNSPECIFIED\020\000\022\r\n" + + "\tFAIL_OPEN\020\001\022\017\n" + + "\013FAIL_CLOSED\020\002\032h\n" + + "\021EnabledToolsEntry\022\013\n" + + "\003key\030\001 \001(\t\022B\n" + + "\005value\030\002 \001(\01323.go" + + "ogle.cloud.discoveryengine.v1.Assistant.ToolList:\0028\001\"\253\001\n" + + "\020WebGroundingType\022\"\n" + + "\036WEB_GROUNDING_TYPE_UNSPECIFIED\020\000\022\037\n" + + "\033WEB_GROUNDING_TYPE_DISABLED\020\001\022$\n" + + " WEB_GROUNDING_TYPE_GOOGLE_SEARCH\020\002\022,\n" + + "(WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH\020\003:\230\001\352A\224\001\n" + + "(discoveryengine.googleapis.com/Assistant\022hpro" + + "jects/{project}/locations/{location}/col" + + "lections/{collection}/engines/{engine}/assistants/{assistant}B\201\002\n" + + "#com.google.cloud.discoveryengine.v1B\016AssistantProtoP\001Z" + + "Mcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\242\002" + + "\017DISCOVERYENGINE\252\002\037Google.Cloud.Discover" + + "yEngine.V1\312\002\037Google\\Cloud\\DiscoveryEngin" + + "e\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -75,6 +172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor = getDescriptor().getMessageType(0); @@ -83,14 +182,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor, new java.lang.String[] { "Name", + "DisplayName", + "Description", + "GenerationConfig", + "WebGroundingType", + "DefaultWebGroundingToggleOff", + "EnabledTools", + "CustomerPolicy", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor, + new java.lang.String[] { + "DefaultModelId", "AllowedModelIds", "SystemInstruction", "DefaultLanguage", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_GenerationConfig_SystemInstruction_descriptor, + new java.lang.String[] { + "AdditionalSystemInstruction", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolInfo_descriptor, + new java.lang.String[] { + "ToolName", "ToolDisplayName", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_ToolList_descriptor, + new java.lang.String[] { + "ToolInfo", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor, + new java.lang.String[] { + "BannedPhrases", "ModelArmorConfig", "DataProtectionPolicy", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_BannedPhrase_descriptor, + new java.lang.String[] { + "Phrase", "MatchType", "IgnoreDiacritics", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_CustomerPolicy_ModelArmorConfig_descriptor, + new java.lang.String[] { + "UserPromptTemplate", "ResponseTemplate", "FailureMode", + }); + internal_static_google_cloud_discoveryengine_v1_Assistant_EnabledToolsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_Assistant_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_Assistant_EnabledToolsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Assistant_EnabledToolsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceProto.java index c90e27934246..764c1236e9e4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceProto.java @@ -88,6 +88,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_SessionInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_SessionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -103,70 +135,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\027google/api/client.proto\032\037google/api/fi" + "eld_behavior.proto\032\031google/api/resource." + "proto\0323google/cloud/discoveryengine/v1/a" - + "ssist_answer.proto\0324google/cloud/discove" - + "ryengine/v1/search_service.proto\032-google" - + "/cloud/discoveryengine/v1/session.proto\"" - + "T\n\022AssistUserMetadata\022\027\n\ttime_zone\030\001 \001(\t" - + "B\004\342A\001\001\022%\n\027preferred_language_code\030\002 \001(\tB" - + "\004\342A\001\001\"\275\013\n\023StreamAssistRequest\022?\n\004name\030\001 " - + "\001(\tB1\342A\001\002\372A*\n(discoveryengine.googleapis" - + ".com/Assistant\022;\n\005query\030\002 \001(\0132&.google.c" - + "loud.discoveryengine.v1.QueryB\004\342A\001\001\022@\n\007s" - + "ession\030\003 \001(\tB/\342A\001\001\372A(\n&discoveryengine.g" - + "oogleapis.com/Session\022P\n\ruser_metadata\030\006" - + " \001(\01323.google.cloud.discoveryengine.v1.A" - + "ssistUserMetadataB\004\342A\001\001\022Z\n\013agents_spec\030\026" - + " \001(\0132?.google.cloud.discoveryengine.v1.S" - + "treamAssistRequest.AgentsSpecB\004\342A\001\001\022X\n\nt" - + "ools_spec\030\022 \001(\0132>.google.cloud.discovery" - + "engine.v1.StreamAssistRequest.ToolsSpecB" - + "\004\342A\001\001\022b\n\017generation_spec\030\023 \001(\0132C.google." - + "cloud.discoveryengine.v1.StreamAssistReq" - + "uest.GenerationSpecB\004\342A\001\001\032\227\001\n\nAgentsSpec" - + "\022d\n\013agent_specs\030\001 \003(\0132I.google.cloud.dis" - + "coveryengine.v1.StreamAssistRequest.Agen" - + "tsSpec.AgentSpecB\004\342A\001\001\032#\n\tAgentSpec\022\026\n\010a" - + "gent_id\030\001 \001(\tB\004\342A\001\002\032\265\005\n\tToolsSpec\022v\n\025ver" - + "tex_ai_search_spec\030\001 \001(\0132Q.google.cloud." - + "discoveryengine.v1.StreamAssistRequest.T" - + "oolsSpec.VertexAiSearchSpecB\004\342A\001\001\022q\n\022web" - + "_grounding_spec\030\002 \001(\0132O.google.cloud.dis" - + "coveryengine.v1.StreamAssistRequest.Tool" - + "sSpec.WebGroundingSpecB\004\342A\001\001\022w\n\025image_ge" - + "neration_spec\030\003 \001(\0132R.google.cloud.disco" - + "veryengine.v1.StreamAssistRequest.ToolsS" - + "pec.ImageGenerationSpecB\004\342A\001\001\022w\n\025video_g" - + "eneration_spec\030\004 \001(\0132R.google.cloud.disc" - + "overyengine.v1.StreamAssistRequest.Tools" - + "Spec.VideoGenerationSpecB\004\342A\001\001\032\210\001\n\022Verte" - + "xAiSearchSpec\022\\\n\020data_store_specs\030\002 \003(\0132" - + "<.google.cloud.discoveryengine.v1.Search" - + "Request.DataStoreSpecB\004\342A\001\001\022\024\n\006filter\030\004 " - + "\001(\tB\004\342A\001\001\032\022\n\020WebGroundingSpec\032\025\n\023ImageGe" - + "nerationSpec\032\025\n\023VideoGenerationSpec\032(\n\016G" - + "enerationSpec\022\026\n\010model_id\030\001 \001(\tB\004\342A\001\001\"\221\002" - + "\n\024StreamAssistResponse\022=\n\006answer\030\001 \001(\0132-" - + ".google.cloud.discoveryengine.v1.AssistA" - + "nswer\022W\n\014session_info\030\002 \001(\0132A.google.clo" - + "ud.discoveryengine.v1.StreamAssistRespon" - + "se.SessionInfo\022\024\n\014assist_token\030\004 \001(\t\032K\n\013" - + "SessionInfo\022<\n\007session\030\001 \001(\tB+\372A(\n&disco" - + "veryengine.googleapis.com/Session2\306\002\n\020As" - + "sistantService\022\335\001\n\014StreamAssist\0224.google" - + ".cloud.discoveryengine.v1.StreamAssistRe" - + "quest\0325.google.cloud.discoveryengine.v1." - + "StreamAssistResponse\"^\202\323\344\223\002X\"S/v1/{name=" - + "projects/*/locations/*/collections/*/eng" - + "ines/*/assistants/*}:streamAssist:\001*0\001\032R" - + "\312A\036discoveryengine.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\210\002\n#com.google.cloud.discoveryengine." - + "v1B\025AssistantServiceProtoP\001ZMcloud.googl" - + "e.com/go/discoveryengine/apiv1/discovery" - + "enginepb;discoveryenginepb\242\002\017DISCOVERYEN" - + "GINE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002" - + "\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Googl" - + "e::Cloud::DiscoveryEngine::V1b\006proto3" + + "ssist_answer.proto\032/google/cloud/discove" + + "ryengine/v1/assistant.proto\0324google/clou" + + "d/discoveryengine/v1/search_service.prot" + + "o\032-google/cloud/discoveryengine/v1/sessi" + + "on.proto\032\033google/protobuf/empty.proto\032 g" + + "oogle/protobuf/field_mask.proto\"T\n\022Assis" + + "tUserMetadata\022\027\n\ttime_zone\030\001 \001(\tB\004\342A\001\001\022%" + + "\n\027preferred_language_code\030\002 \001(\tB\004\342A\001\001\"\275\013" + + "\n\023StreamAssistRequest\022?\n\004name\030\001 \001(\tB1\342A\001" + + "\002\372A*\n(discoveryengine.googleapis.com/Ass" + + "istant\022;\n\005query\030\002 \001(\0132&.google.cloud.dis" + + "coveryengine.v1.QueryB\004\342A\001\001\022@\n\007session\030\003" + + " \001(\tB/\342A\001\001\372A(\n&discoveryengine.googleapi" + + "s.com/Session\022P\n\ruser_metadata\030\006 \001(\01323.g" + + "oogle.cloud.discoveryengine.v1.AssistUse" + + "rMetadataB\004\342A\001\001\022Z\n\013agents_spec\030\026 \001(\0132?.g" + + "oogle.cloud.discoveryengine.v1.StreamAss" + + "istRequest.AgentsSpecB\004\342A\001\001\022X\n\ntools_spe" + + "c\030\022 \001(\0132>.google.cloud.discoveryengine.v" + + "1.StreamAssistRequest.ToolsSpecB\004\342A\001\001\022b\n" + + "\017generation_spec\030\023 \001(\0132C.google.cloud.di" + + "scoveryengine.v1.StreamAssistRequest.Gen" + + "erationSpecB\004\342A\001\001\032\227\001\n\nAgentsSpec\022d\n\013agen" + + "t_specs\030\001 \003(\0132I.google.cloud.discoveryen" + + "gine.v1.StreamAssistRequest.AgentsSpec.A" + + "gentSpecB\004\342A\001\001\032#\n\tAgentSpec\022\026\n\010agent_id\030" + + "\001 \001(\tB\004\342A\001\002\032\265\005\n\tToolsSpec\022v\n\025vertex_ai_s" + + "earch_spec\030\001 \001(\0132Q.google.cloud.discover" + + "yengine.v1.StreamAssistRequest.ToolsSpec" + + ".VertexAiSearchSpecB\004\342A\001\001\022q\n\022web_groundi" + + "ng_spec\030\002 \001(\0132O.google.cloud.discoveryen" + + "gine.v1.StreamAssistRequest.ToolsSpec.We" + + "bGroundingSpecB\004\342A\001\001\022w\n\025image_generation" + + "_spec\030\003 \001(\0132R.google.cloud.discoveryengi" + + "ne.v1.StreamAssistRequest.ToolsSpec.Imag" + + "eGenerationSpecB\004\342A\001\001\022w\n\025video_generatio" + + "n_spec\030\004 \001(\0132R.google.cloud.discoveryeng" + + "ine.v1.StreamAssistRequest.ToolsSpec.Vid" + + "eoGenerationSpecB\004\342A\001\001\032\210\001\n\022VertexAiSearc" + + "hSpec\022\\\n\020data_store_specs\030\002 \003(\0132<.google" + + ".cloud.discoveryengine.v1.SearchRequest." + + "DataStoreSpecB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001" + + "\001\032\022\n\020WebGroundingSpec\032\025\n\023ImageGeneration" + + "Spec\032\025\n\023VideoGenerationSpec\032(\n\016Generatio" + + "nSpec\022\026\n\010model_id\030\001 \001(\tB\004\342A\001\001\"\351\004\n\024Stream" + + "AssistResponse\022=\n\006answer\030\001 \001(\0132-.google." + + "cloud.discoveryengine.v1.AssistAnswer\022W\n" + + "\014session_info\030\002 \001(\0132A.google.cloud.disco" + + "veryengine.v1.StreamAssistResponse.Sessi" + + "onInfo\022\024\n\014assist_token\030\004 \001(\t\022\030\n\020invocati" + + "on_tools\030\010 \003(\t\022Z\n\016invoked_skills\030\n \003(\0132B" + + ".google.cloud.discoveryengine.v1.StreamA" + + "ssistResponse.InvokedSkill\022g\n\025connector_" + + "auth_errors\030\013 \003(\0132H.google.cloud.discove" + + "ryengine.v1.StreamAssistResponse.Connect" + + "orAuthError\032K\n\013SessionInfo\022<\n\007session\030\001 " + + "\001(\tB+\372A(\n&discoveryengine.googleapis.com" + + "/Session\0322\n\014InvokedSkill\022\014\n\004name\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\032C\n\022ConnectorAuthErr" + + "or\022\026\n\016data_connector\030\001 \001(\t\022\025\n\rerror_mess" + + "age\030\002 \001(\t\"\271\001\n\026CreateAssistantRequest\022>\n\006" + + "parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryengine.g" + + "oogleapis.com/Engine\022C\n\tassistant\030\002 \001(\0132" + + "*.google.cloud.discoveryengine.v1.Assist" + + "antB\004\342A\001\002\022\032\n\014assistant_id\030\003 \001(\tB\004\342A\001\002\"Y\n" + + "\026DeleteAssistantRequest\022?\n\004name\030\001 \001(\tB1\342" + + "A\001\002\372A*\n(discoveryengine.googleapis.com/A" + + "ssistant\"V\n\023GetAssistantRequest\022?\n\004name\030" + + "\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.googleap" + + "is.com/Assistant\"~\n\025ListAssistantsReques" + + "t\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%discoveryeng" + + "ine.googleapis.com/Engine\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\026ListAssistan" + + "tsResponse\022>\n\nassistants\030\001 \003(\0132*.google." + + "cloud.discoveryengine.v1.Assistant\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\216\001\n\026UpdateAssistantR" + + "equest\022C\n\tassistant\030\001 \001(\0132*.google.cloud" + + ".discoveryengine.v1.AssistantB\004\342A\001\002\022/\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "Mask2\262\014\n\020AssistantService\022\335\001\n\014StreamAssi" + + "st\0224.google.cloud.discoveryengine.v1.Str" + + "eamAssistRequest\0325.google.cloud.discover" + + "yengine.v1.StreamAssistResponse\"^\202\323\344\223\002X\"" + + "S/v1/{name=projects/*/locations/*/collec" + + "tions/*/engines/*/assistants/*}:streamAs" + + "sist:\001*0\001\022\321\001\n\017CreateAssistant\0227.google.c" + + "loud.discoveryengine.v1.CreateAssistantR" + + "equest\032*.google.cloud.discoveryengine.v1" + + ".Assistant\"Y\202\323\344\223\002S\"F/v1/{parent=projects" + + "/*/locations/*/collections/*/engines/*}/" + + "assistants:\tassistant\022\271\001\n\017DeleteAssistan" + + "t\0227.google.cloud.discoveryengine.v1.Dele" + + "teAssistantRequest\032\026.google.protobuf.Emp" + + "ty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=projects/*/" + + "locations/*/collections/*/engines/*/assi" + + "stants/*}\022\363\001\n\017UpdateAssistant\0227.google.c" + + "loud.discoveryengine.v1.UpdateAssistantR" + + "equest\032*.google.cloud.discoveryengine.v1" + + ".Assistant\"{\332A\025assistant,update_mask\202\323\344\223" + + "\002]2P/v1/{assistant.name=projects/*/locat" + + "ions/*/collections/*/engines/*/assistant" + + "s/*}:\tassistant\022\307\001\n\014GetAssistant\0224.googl" + + "e.cloud.discoveryengine.v1.GetAssistantR" + + "equest\032*.google.cloud.discoveryengine.v1" + + ".Assistant\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=pro" + + "jects/*/locations/*/collections/*/engine" + + "s/*/assistants/*}\022\332\001\n\016ListAssistants\0226.g" + + "oogle.cloud.discoveryengine.v1.ListAssis" + + "tantsRequest\0327.google.cloud.discoveryeng" + + "ine.v1.ListAssistantsResponse\"W\332A\006parent" + + "\202\323\344\223\002H\022F/v1/{parent=projects/*/locations" + + "/*/collections/*/engines/*}/assistants\032\220" + + "\002\312A\036discoveryengine.googleapis.com\322A\353\001ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form,https://www.googleapis.com/auth/dis" + + "coveryengine.assist.readwrite,https://ww" + + "w.googleapis.com/auth/discoveryengine.re" + + "adwrite,https://www.googleapis.com/auth/" + + "discoveryengine.serving.readwriteB\210\002\n#co" + + "m.google.cloud.discoveryengine.v1B\025Assis" + + "tantServiceProtoP\001ZMcloud.google.com/go/" + + "discoveryengine/apiv1/discoveryenginepb;" + + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Go" + + "ogle.Cloud.DiscoveryEngine.V1\312\002\037Google\\C" + + "loud\\DiscoveryEngine\\V1\352\002\"Google::Cloud:" + + ":DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -177,8 +271,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.AssistAnswerProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.AssistantProto.getDescriptor(), com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.SessionProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_AssistUserMetadata_descriptor = getDescriptor().getMessageType(0); @@ -277,7 +374,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor, new java.lang.String[] { - "Answer", "SessionInfo", "AssistToken", + "Answer", + "SessionInfo", + "AssistToken", + "InvocationTools", + "InvokedSkills", + "ConnectorAuthErrors", }); internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_SessionInfo_descriptor = internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor @@ -288,19 +390,89 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Session", }); + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_descriptor = + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_descriptor = + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_descriptor, + new java.lang.String[] { + "DataConnector", "ErrorMessage", + }); + internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_descriptor, + new java.lang.String[] { + "Parent", "Assistant", "AssistantId", + }); + internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_descriptor, + new java.lang.String[] { + "Assistants", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_descriptor, + new java.lang.String[] { + "Assistant", "UpdateMask", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.AssistAnswerProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.AssistantProto.getDescriptor(); com.google.cloud.discoveryengine.v1.SearchServiceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.SessionProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfig.java new file mode 100644 index 000000000000..950b1c8b5f32 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfig.java @@ -0,0 +1,3086 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * The configuration for the BAP connector.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.BAPConfig} + */ +@com.google.protobuf.Generated +public final class BAPConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.BAPConfig) + BAPConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BAPConfig"); + } + + // Use BAPConfig.newBuilder() to construct. + private BAPConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BAPConfig() { + supportedConnectorModes_ = emptyIntList(); + enabledActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.BAPConfig.class, + com.google.cloud.discoveryengine.v1.BAPConfig.Builder.class); + } + + /** + * + * + *
+   * Use cases supported by this BAP connector.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode} + */ + public enum ConnectorMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Connector mode unspecified.
+     * 
+ * + * CONNECTOR_MODE_UNSPECIFIED = 0; + */ + CONNECTOR_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Connector utilized for data ingestion.
+     * 
+ * + * DATA_INGESTION = 1; + */ + DATA_INGESTION(1), + /** + * + * + *
+     * Connector utilized for Actions
+     * 
+ * + * ACTIONS = 2; + */ + ACTIONS(2), + /** + * + * + *
+     * Connector utilized for End User Authentication.
+     * 
+ * + * END_USER_AUTHENTICATION = 3; + */ + END_USER_AUTHENTICATION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectorMode"); + } + + /** + * + * + *
+     * Connector mode unspecified.
+     * 
+ * + * CONNECTOR_MODE_UNSPECIFIED = 0; + */ + public static final int CONNECTOR_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Connector utilized for data ingestion.
+     * 
+ * + * DATA_INGESTION = 1; + */ + public static final int DATA_INGESTION_VALUE = 1; + + /** + * + * + *
+     * Connector utilized for Actions
+     * 
+ * + * ACTIONS = 2; + */ + public static final int ACTIONS_VALUE = 2; + + /** + * + * + *
+     * Connector utilized for End User Authentication.
+     * 
+ * + * END_USER_AUTHENTICATION = 3; + */ + public static final int END_USER_AUTHENTICATION_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 ConnectorMode 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 ConnectorMode forNumber(int value) { + switch (value) { + case 0: + return CONNECTOR_MODE_UNSPECIFIED; + case 1: + return DATA_INGESTION; + case 2: + return ACTIONS; + case 3: + return END_USER_AUTHENTICATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectorMode findValueByNumber(int number) { + return ConnectorMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.BAPConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final ConnectorMode[] VALUES = values(); + + public static ConnectorMode 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 ConnectorMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode) + } + + public interface ToolspecOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getToolsList(); + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.Struct getTools(int index); + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getToolsCount(); + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getToolsOrBuilderList(); + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.StructOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
+     * Required. Base toolspec version against which `tools` were authored. On
+     * Update, MUST match the server's current stable toolspec version
+     * for the connection; mismatch is rejected with a user-facing error
+     * directing the admin to re-download the latest tools first.
+     * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseVersion. + */ + java.lang.String getBaseVersion(); + + /** + * + * + *
+     * Required. Base toolspec version against which `tools` were authored. On
+     * Update, MUST match the server's current stable toolspec version
+     * for the connection; mismatch is rejected with a user-facing error
+     * directing the admin to re-download the latest tools first.
+     * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseVersion. + */ + com.google.protobuf.ByteString getBaseVersionBytes(); + } + + /** + * + * + *
+   * Customer-facing view of the admin-curated toolspec for a BAP
+   * connection. Holds the (simplified) per-tool definitions surfaced to
+   * and editable by the admin in the Discovery Engine UI.
+   *
+   * Mirrors the shape of the backend
+   * `google.cloud.connectorexecution.v1.ToolspecOverride` message, but
+   * is intentionally kept as a separate public type so the Discovery
+   * Engine API surface can evolve independently of the fed-API surface
+   * (AIP-215). Handlers convert between the two via helpers in
+   * //cloud/ml/discoveryengine/external_service/v1main/data_connector_service/lib:bap_custom_tool_util.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride} + */ + public static final class ToolspecOverride extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) + ToolspecOverrideOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ToolspecOverride"); + } + + // Use ToolspecOverride.newBuilder() to construct. + private ToolspecOverride(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolspecOverride() { + tools_ = java.util.Collections.emptyList(); + baseVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.class, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder.class); + } + + public static final int TOOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
+     * Required. Tool definitions (one Struct per tool) that the admin has
+     * customised on top of the base toolspec returned by the fed API.
+     * REQUIRED because it is the only user-editable field in the
+     * modify API; the request must carry at least one tool.
+     * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int BASE_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseVersion_ = ""; + + /** + * + * + *
+     * Required. Base toolspec version against which `tools` were authored. On
+     * Update, MUST match the server's current stable toolspec version
+     * for the connection; mismatch is rejected with a user-facing error
+     * directing the admin to re-download the latest tools first.
+     * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseVersion. + */ + @java.lang.Override + public java.lang.String getBaseVersion() { + java.lang.Object ref = baseVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersion_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Base toolspec version against which `tools` were authored. On
+     * Update, MUST match the server's current stable toolspec version
+     * for the connection; mismatch is rejected with a user-facing error
+     * directing the admin to re-download the latest tools first.
+     * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseVersionBytes() { + java.lang.Object ref = baseVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersion_ = 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 < tools_.size(); i++) { + output.writeMessage(1, tools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, baseVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baseVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, baseVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride other = + (com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) obj; + + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getBaseVersion().equals(other.getBaseVersion())) 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 (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + hash = (37 * hash) + BASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getBaseVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Customer-facing view of the admin-curated toolspec for a BAP
+     * connection. Holds the (simplified) per-tool definitions surfaced to
+     * and editable by the admin in the Discovery Engine UI.
+     *
+     * Mirrors the shape of the backend
+     * `google.cloud.connectorexecution.v1.ToolspecOverride` message, but
+     * is intentionally kept as a separate public type so the Discovery
+     * Engine API surface can evolve independently of the fed-API surface
+     * (AIP-215). Handlers convert between the two via helpers in
+     * //cloud/ml/discoveryengine/external_service/v1main/data_connector_service/lib:bap_custom_tool_util.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.class, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + baseVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride build() { + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride buildPartial() { + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride result = + new com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.baseVersion_ = baseVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) { + return mergeFrom((com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride other) { + if (other + == com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.getDefaultInstance()) + return this; + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000001); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (!other.getBaseVersion().isEmpty()) { + baseVersion_ = other.baseVersion_; + 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: + { + com.google.protobuf.Struct m = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + baseVersion_ = 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.util.List tools_ = java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + toolsBuilder_; + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTools(int index, com.google.protobuf.Struct value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTools(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(com.google.protobuf.Struct value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(int index, com.google.protobuf.Struct value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(com.google.protobuf.Struct.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addTools(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.StructOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); + } + + /** + * + * + *
+       * Required. Tool definitions (one Struct per tool) that the admin has
+       * customised on top of the base toolspec returned by the fed API.
+       * REQUIRED because it is the only user-editable field in the
+       * modify API; the request must carry at least one tool.
+       * 
+ * + * repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + tools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private java.lang.Object baseVersion_ = ""; + + /** + * + * + *
+       * Required. Base toolspec version against which `tools` were authored. On
+       * Update, MUST match the server's current stable toolspec version
+       * for the connection; mismatch is rejected with a user-facing error
+       * directing the admin to re-download the latest tools first.
+       * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The baseVersion. + */ + public java.lang.String getBaseVersion() { + java.lang.Object ref = baseVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Base toolspec version against which `tools` were authored. On
+       * Update, MUST match the server's current stable toolspec version
+       * for the connection; mismatch is rejected with a user-facing error
+       * directing the admin to re-download the latest tools first.
+       * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for baseVersion. + */ + public com.google.protobuf.ByteString getBaseVersionBytes() { + java.lang.Object ref = baseVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Base toolspec version against which `tools` were authored. On
+       * Update, MUST match the server's current stable toolspec version
+       * for the connection; mismatch is rejected with a user-facing error
+       * directing the admin to re-download the latest tools first.
+       * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The baseVersion to set. + * @return This builder for chaining. + */ + public Builder setBaseVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + baseVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Base toolspec version against which `tools` were authored. On
+       * Update, MUST match the server's current stable toolspec version
+       * for the connection; mismatch is rejected with a user-facing error
+       * directing the admin to re-download the latest tools first.
+       * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBaseVersion() { + baseVersion_ = getDefaultInstance().getBaseVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Base toolspec version against which `tools` were authored. On
+       * Update, MUST match the server's current stable toolspec version
+       * for the connection; mismatch is rejected with a user-facing error
+       * directing the admin to re-download the latest tools first.
+       * 
+ * + * string base_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for baseVersion to set. + * @return This builder for chaining. + */ + public Builder setBaseVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride) + private static final com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride(); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolspecOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SUPPORTED_CONNECTOR_MODES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList supportedConnectorModes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode> + supportedConnectorModes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode>() { + public com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode convert(int from) { + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode result = + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the supportedConnectorModes. + */ + @java.lang.Override + public java.util.List + getSupportedConnectorModesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode>( + supportedConnectorModes_, supportedConnectorModes_converter_); + } + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of supportedConnectorModes. + */ + @java.lang.Override + public int getSupportedConnectorModesCount() { + return supportedConnectorModes_.size(); + } + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The supportedConnectorModes at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode getSupportedConnectorModes( + int index) { + return supportedConnectorModes_converter_.convert(supportedConnectorModes_.getInt(index)); + } + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for supportedConnectorModes. + */ + @java.lang.Override + public java.util.List getSupportedConnectorModesValueList() { + return supportedConnectorModes_; + } + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedConnectorModes at the given index. + */ + @java.lang.Override + public int getSupportedConnectorModesValue(int index) { + return supportedConnectorModes_.getInt(index); + } + + private int supportedConnectorModesMemoizedSerializedSize; + + public static final int ENABLED_ACTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enabledActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enabledActions. + */ + public com.google.protobuf.ProtocolStringList getEnabledActionsList() { + return enabledActions_; + } + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enabledActions. + */ + public int getEnabledActionsCount() { + return enabledActions_.size(); + } + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enabledActions at the given index. + */ + public java.lang.String getEnabledActions(int index) { + return enabledActions_.get(index); + } + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enabledActions at the given index. + */ + public com.google.protobuf.ByteString getEnabledActionsBytes(int index) { + return enabledActions_.getByteString(index); + } + + public static final int TOOLSPEC_OVERRIDE_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspecOverride_; + + /** + * + * + *
+   * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+   * connectors that support admin-curated tool definitions, this holds the
+   * (simplified) per-tool overrides. On Get, populated by the server by
+   * merging persisted overrides with live runtime tool definitions and
+   * trimming the result for UI consumption. On Update, the supplied value
+   * replaces the persisted overrides after server-side validation and
+   * merging: the `base_version` field MUST match the server's current base
+   * toolspec version (otherwise the request is rejected with a user-facing
+   * error directing the admin to re-download the latest tools first).
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolspecOverride field is set. + */ + @java.lang.Override + public boolean hasToolspecOverride() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+   * connectors that support admin-curated tool definitions, this holds the
+   * (simplified) per-tool overrides. On Get, populated by the server by
+   * merging persisted overrides with live runtime tool definitions and
+   * trimming the result for UI consumption. On Update, the supplied value
+   * replaces the persisted overrides after server-side validation and
+   * merging: the `base_version` field MUST match the server's current base
+   * toolspec version (otherwise the request is rejected with a user-facing
+   * error directing the admin to re-download the latest tools first).
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolspecOverride. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride getToolspecOverride() { + return toolspecOverride_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.getDefaultInstance() + : toolspecOverride_; + } + + /** + * + * + *
+   * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+   * connectors that support admin-curated tool definitions, this holds the
+   * (simplified) per-tool overrides. On Get, populated by the server by
+   * merging persisted overrides with live runtime tool definitions and
+   * trimming the result for UI consumption. On Update, the supplied value
+   * replaces the persisted overrides after server-side validation and
+   * merging: the `base_version` field MUST match the server's current base
+   * toolspec version (otherwise the request is rejected with a user-facing
+   * error directing the admin to re-download the latest tools first).
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder + getToolspecOverrideOrBuilder() { + return toolspecOverride_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.getDefaultInstance() + : toolspecOverride_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getSupportedConnectorModesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(supportedConnectorModesMemoizedSerializedSize); + } + for (int i = 0; i < supportedConnectorModes_.size(); i++) { + output.writeEnumNoTag(supportedConnectorModes_.getInt(i)); + } + for (int i = 0; i < enabledActions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, enabledActions_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getToolspecOverride()); + } + 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 < supportedConnectorModes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + supportedConnectorModes_.getInt(i)); + } + size += dataSize; + if (!getSupportedConnectorModesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + supportedConnectorModesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < enabledActions_.size(); i++) { + dataSize += computeStringSizeNoTag(enabledActions_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnabledActionsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getToolspecOverride()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.BAPConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.BAPConfig other = + (com.google.cloud.discoveryengine.v1.BAPConfig) obj; + + if (!supportedConnectorModes_.equals(other.supportedConnectorModes_)) return false; + if (!getEnabledActionsList().equals(other.getEnabledActionsList())) return false; + if (hasToolspecOverride() != other.hasToolspecOverride()) return false; + if (hasToolspecOverride()) { + if (!getToolspecOverride().equals(other.getToolspecOverride())) 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 (getSupportedConnectorModesCount() > 0) { + hash = (37 * hash) + SUPPORTED_CONNECTOR_MODES_FIELD_NUMBER; + hash = (53 * hash) + supportedConnectorModes_.hashCode(); + } + if (getEnabledActionsCount() > 0) { + hash = (37 * hash) + ENABLED_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getEnabledActionsList().hashCode(); + } + if (hasToolspecOverride()) { + hash = (37 * hash) + TOOLSPEC_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getToolspecOverride().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.BAPConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The configuration for the BAP connector.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.BAPConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.BAPConfig) + com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.BAPConfig.class, + com.google.cloud.discoveryengine.v1.BAPConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.BAPConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetToolspecOverrideFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + supportedConnectorModes_ = emptyIntList(); + enabledActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + toolspecOverride_ = null; + if (toolspecOverrideBuilder_ != null) { + toolspecOverrideBuilder_.dispose(); + toolspecOverrideBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig build() { + com.google.cloud.discoveryengine.v1.BAPConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig buildPartial() { + com.google.cloud.discoveryengine.v1.BAPConfig result = + new com.google.cloud.discoveryengine.v1.BAPConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.BAPConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + supportedConnectorModes_.makeImmutable(); + result.supportedConnectorModes_ = supportedConnectorModes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + enabledActions_.makeImmutable(); + result.enabledActions_ = enabledActions_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.toolspecOverride_ = + toolspecOverrideBuilder_ == null ? toolspecOverride_ : toolspecOverrideBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.BAPConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.BAPConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.BAPConfig other) { + if (other == com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance()) return this; + if (!other.supportedConnectorModes_.isEmpty()) { + if (supportedConnectorModes_.isEmpty()) { + supportedConnectorModes_ = other.supportedConnectorModes_; + supportedConnectorModes_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureSupportedConnectorModesIsMutable(); + supportedConnectorModes_.addAll(other.supportedConnectorModes_); + } + onChanged(); + } + if (!other.enabledActions_.isEmpty()) { + if (enabledActions_.isEmpty()) { + enabledActions_ = other.enabledActions_; + bitField0_ |= 0x00000002; + } else { + ensureEnabledActionsIsMutable(); + enabledActions_.addAll(other.enabledActions_); + } + onChanged(); + } + if (other.hasToolspecOverride()) { + mergeToolspecOverride(other.getToolspecOverride()); + } + 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: + { + int tmpRaw = input.readEnum(); + ensureSupportedConnectorModesIsMutable(); + supportedConnectorModes_.addInt(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSupportedConnectorModesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + supportedConnectorModes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEnabledActionsIsMutable(); + enabledActions_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetToolspecOverrideFieldBuilder().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.Internal.IntList supportedConnectorModes_ = emptyIntList(); + + private void ensureSupportedConnectorModesIsMutable() { + if (!supportedConnectorModes_.isModifiable()) { + supportedConnectorModes_ = makeMutableCopy(supportedConnectorModes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the supportedConnectorModes. + */ + public java.util.List + getSupportedConnectorModesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode>( + supportedConnectorModes_, supportedConnectorModes_converter_); + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of supportedConnectorModes. + */ + public int getSupportedConnectorModesCount() { + return supportedConnectorModes_.size(); + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The supportedConnectorModes at the given index. + */ + public com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode getSupportedConnectorModes( + int index) { + return supportedConnectorModes_converter_.convert(supportedConnectorModes_.getInt(index)); + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The supportedConnectorModes to set. + * @return This builder for chaining. + */ + public Builder setSupportedConnectorModes( + int index, com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedConnectorModesIsMutable(); + supportedConnectorModes_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The supportedConnectorModes to add. + * @return This builder for chaining. + */ + public Builder addSupportedConnectorModes( + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportedConnectorModesIsMutable(); + supportedConnectorModes_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The supportedConnectorModes to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedConnectorModes( + java.lang.Iterable + values) { + ensureSupportedConnectorModesIsMutable(); + for (com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode value : values) { + supportedConnectorModes_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSupportedConnectorModes() { + supportedConnectorModes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for supportedConnectorModes. + */ + public java.util.List getSupportedConnectorModesValueList() { + supportedConnectorModes_.makeImmutable(); + return supportedConnectorModes_; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedConnectorModes at the given index. + */ + public int getSupportedConnectorModesValue(int index) { + return supportedConnectorModes_.getInt(index); + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for supportedConnectorModes to set. + * @return This builder for chaining. + */ + public Builder setSupportedConnectorModesValue(int index, int value) { + ensureSupportedConnectorModesIsMutable(); + supportedConnectorModes_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for supportedConnectorModes to add. + * @return This builder for chaining. + */ + public Builder addSupportedConnectorModesValue(int value) { + ensureSupportedConnectorModesIsMutable(); + supportedConnectorModes_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The supported connector modes for the associated BAP connection.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for supportedConnectorModes to add. + * @return This builder for chaining. + */ + public Builder addAllSupportedConnectorModesValue( + java.lang.Iterable values) { + ensureSupportedConnectorModesIsMutable(); + for (int value : values) { + supportedConnectorModes_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList enabledActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEnabledActionsIsMutable() { + if (!enabledActions_.isModifiable()) { + enabledActions_ = new com.google.protobuf.LazyStringArrayList(enabledActions_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enabledActions. + */ + public com.google.protobuf.ProtocolStringList getEnabledActionsList() { + enabledActions_.makeImmutable(); + return enabledActions_; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enabledActions. + */ + public int getEnabledActionsCount() { + return enabledActions_.size(); + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enabledActions at the given index. + */ + public java.lang.String getEnabledActions(int index) { + return enabledActions_.get(index); + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enabledActions at the given index. + */ + public com.google.protobuf.ByteString getEnabledActionsBytes(int index) { + return enabledActions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The enabledActions to set. + * @return This builder for chaining. + */ + public Builder setEnabledActions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnabledActionsIsMutable(); + enabledActions_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabledActions to add. + * @return This builder for chaining. + */ + public Builder addEnabledActions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnabledActionsIsMutable(); + enabledActions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The enabledActions to add. + * @return This builder for chaining. + */ + public Builder addAllEnabledActions(java.lang.Iterable values) { + ensureEnabledActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledActions_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabledActions() { + enabledActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated BAP connection.
+     * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the enabledActions to add. + * @return This builder for chaining. + */ + public Builder addEnabledActionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnabledActionsIsMutable(); + enabledActions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspecOverride_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder> + toolspecOverrideBuilder_; + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolspecOverride field is set. + */ + public boolean hasToolspecOverride() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolspecOverride. + */ + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride getToolspecOverride() { + if (toolspecOverrideBuilder_ == null) { + return toolspecOverride_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.getDefaultInstance() + : toolspecOverride_; + } else { + return toolspecOverrideBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolspecOverride( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride value) { + if (toolspecOverrideBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolspecOverride_ = value; + } else { + toolspecOverrideBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolspecOverride( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder builderForValue) { + if (toolspecOverrideBuilder_ == null) { + toolspecOverride_ = builderForValue.build(); + } else { + toolspecOverrideBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolspecOverride( + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride value) { + if (toolspecOverrideBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && toolspecOverride_ != null + && toolspecOverride_ + != com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride + .getDefaultInstance()) { + getToolspecOverrideBuilder().mergeFrom(value); + } else { + toolspecOverride_ = value; + } + } else { + toolspecOverrideBuilder_.mergeFrom(value); + } + if (toolspecOverride_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolspecOverride() { + bitField0_ = (bitField0_ & ~0x00000004); + toolspecOverride_ = null; + if (toolspecOverrideBuilder_ != null) { + toolspecOverrideBuilder_.dispose(); + toolspecOverrideBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder + getToolspecOverrideBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetToolspecOverrideFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder + getToolspecOverrideOrBuilder() { + if (toolspecOverrideBuilder_ != null) { + return toolspecOverrideBuilder_.getMessageOrBuilder(); + } else { + return toolspecOverride_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.getDefaultInstance() + : toolspecOverride_; + } + } + + /** + * + * + *
+     * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+     * connectors that support admin-curated tool definitions, this holds the
+     * (simplified) per-tool overrides. On Get, populated by the server by
+     * merging persisted overrides with live runtime tool definitions and
+     * trimming the result for UI consumption. On Update, the supplied value
+     * replaces the persisted overrides after server-side validation and
+     * merging: the `base_version` field MUST match the server's current base
+     * toolspec version (otherwise the request is rejected with a user-facing
+     * error directing the admin to re-download the latest tools first).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder> + internalGetToolspecOverrideFieldBuilder() { + if (toolspecOverrideBuilder_ == null) { + toolspecOverrideBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride.Builder, + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder>( + getToolspecOverride(), getParentForChildren(), isClean()); + toolspecOverride_ = null; + } + return toolspecOverrideBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.BAPConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.BAPConfig) + private static final com.google.cloud.discoveryengine.v1.BAPConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.BAPConfig(); + } + + public static com.google.cloud.discoveryengine.v1.BAPConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BAPConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfigOrBuilder.java new file mode 100644 index 000000000000..653f869410ad --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BAPConfigOrBuilder.java @@ -0,0 +1,228 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface BAPConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.BAPConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the supportedConnectorModes. + */ + java.util.List + getSupportedConnectorModesList(); + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of supportedConnectorModes. + */ + int getSupportedConnectorModesCount(); + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The supportedConnectorModes at the given index. + */ + com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode getSupportedConnectorModes(int index); + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for supportedConnectorModes. + */ + java.util.List getSupportedConnectorModesValueList(); + + /** + * + * + *
+   * Required. The supported connector modes for the associated BAP connection.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedConnectorModes at the given index. + */ + int getSupportedConnectorModesValue(int index); + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enabledActions. + */ + java.util.List getEnabledActionsList(); + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enabledActions. + */ + int getEnabledActionsCount(); + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enabledActions at the given index. + */ + java.lang.String getEnabledActions(int index); + + /** + * + * + *
+   * Optional. The actions enabled on the associated BAP connection.
+   * 
+ * + * repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enabledActions at the given index. + */ + com.google.protobuf.ByteString getEnabledActionsBytes(int index); + + /** + * + * + *
+   * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+   * connectors that support admin-curated tool definitions, this holds the
+   * (simplified) per-tool overrides. On Get, populated by the server by
+   * merging persisted overrides with live runtime tool definitions and
+   * trimming the result for UI consumption. On Update, the supplied value
+   * replaces the persisted overrides after server-side validation and
+   * merging: the `base_version` field MUST match the server's current base
+   * toolspec version (otherwise the request is rejected with a user-facing
+   * error directing the admin to re-download the latest tools first).
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolspecOverride field is set. + */ + boolean hasToolspecOverride(); + + /** + * + * + *
+   * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+   * connectors that support admin-curated tool definitions, this holds the
+   * (simplified) per-tool overrides. On Get, populated by the server by
+   * merging persisted overrides with live runtime tool definitions and
+   * trimming the result for UI consumption. On Update, the supplied value
+   * replaces the persisted overrides after server-side validation and
+   * merging: the `base_version` field MUST match the server's current base
+   * toolspec version (otherwise the request is rejected with a user-facing
+   * error directing the admin to re-download the latest tools first).
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolspecOverride. + */ + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride getToolspecOverride(); + + /** + * + * + *
+   * Optional. Custom toolspec overrides for this connection. For Enterprise BAP
+   * connectors that support admin-curated tool definitions, this holds the
+   * (simplified) per-tool overrides. On Get, populated by the server by
+   * merging persisted overrides with live runtime tool definitions and
+   * trimming the result for UI consumption. On Update, the supplied value
+   * replaces the persisted overrides after server-side validation and
+   * merging: the `base_version` field MUST match the server's current base
+   * toolspec version (otherwise the request is rejected with a user-facing
+   * error directing the admin to re-download the latest tools first).
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideOrBuilder + getToolspecOverrideOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequest.java index 564a6c0ccecc..35383348e831 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequest.java @@ -1591,7 +1591,7 @@ public SourceCase getSourceCase() { * * *
-   * The inline source for the input content for document embeddings.
+   * The inline source for the input content for license assignment.
    * 
* * @@ -1609,7 +1609,7 @@ public boolean hasInlineSource() { * * *
-   * The inline source for the input content for document embeddings.
+   * The inline source for the input content for license assignment.
    * 
* * @@ -1633,7 +1633,7 @@ public boolean hasInlineSource() { * * *
-   * The inline source for the input content for document embeddings.
+   * The inline source for the input content for license assignment.
    * 
* * @@ -1660,7 +1660,8 @@ public boolean hasInlineSource() { * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -1687,7 +1688,8 @@ public java.lang.String getParent() { * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -2164,7 +2166,7 @@ public Builder clearSource() { * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2182,7 +2184,7 @@ public boolean hasInlineSource() { * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2214,7 +2216,7 @@ public boolean hasInlineSource() { * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2240,7 +2242,7 @@ public Builder setInlineSource( * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2264,7 +2266,7 @@ public Builder setInlineSource( * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2305,7 +2307,7 @@ public Builder mergeInlineSource( * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2333,7 +2335,7 @@ public Builder clearInlineSource() { * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2349,7 +2351,7 @@ public Builder clearInlineSource() { * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2375,7 +2377,7 @@ public Builder clearInlineSource() { * * *
-     * The inline source for the input content for document embeddings.
+     * The inline source for the input content for license assignment.
      * 
* * @@ -2418,7 +2420,8 @@ public Builder clearInlineSource() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -2444,7 +2447,8 @@ public java.lang.String getParent() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -2470,7 +2474,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -2495,7 +2500,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -2516,7 +2522,8 @@ public Builder clearParent() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequestOrBuilder.java index afaa05c72aab..81e3648db724 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BatchUpdateUserLicensesRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface BatchUpdateUserLicensesRequestOrBuilder * * *
-   * The inline source for the input content for document embeddings.
+   * The inline source for the input content for license assignment.
    * 
* * @@ -45,7 +45,7 @@ public interface BatchUpdateUserLicensesRequestOrBuilder * * *
-   * The inline source for the input content for document embeddings.
+   * The inline source for the input content for license assignment.
    * 
* * @@ -60,7 +60,7 @@ public interface BatchUpdateUserLicensesRequestOrBuilder * * *
-   * The inline source for the input content for document embeddings.
+   * The inline source for the input content for license assignment.
    * 
* * @@ -74,7 +74,8 @@ public interface BatchUpdateUserLicensesRequestOrBuilder * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -90,7 +91,8 @@ public interface BatchUpdateUserLicensesRequestOrBuilder * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BillingAccountLicenseConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BillingAccountLicenseConfigName.java new file mode 100644 index 000000000000..a2c562bfcf77 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BillingAccountLicenseConfigName.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class BillingAccountLicenseConfigName implements ResourceName { + private static final PathTemplate BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config}"); + private volatile Map fieldValuesMap; + private final String billingAccount; + private final String billingAccountLicenseConfig; + + @Deprecated + protected BillingAccountLicenseConfigName() { + billingAccount = null; + billingAccountLicenseConfig = null; + } + + private BillingAccountLicenseConfigName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + billingAccountLicenseConfig = + Preconditions.checkNotNull(builder.getBillingAccountLicenseConfig()); + } + + public String getBillingAccount() { + return billingAccount; + } + + public String getBillingAccountLicenseConfig() { + return billingAccountLicenseConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BillingAccountLicenseConfigName of( + String billingAccount, String billingAccountLicenseConfig) { + return newBuilder() + .setBillingAccount(billingAccount) + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .build(); + } + + public static String format(String billingAccount, String billingAccountLicenseConfig) { + return newBuilder() + .setBillingAccount(billingAccount) + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .build() + .toString(); + } + + public static @Nullable BillingAccountLicenseConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG.validatedMatch( + formattedString, + "BillingAccountLicenseConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account"), matchMap.get("billing_account_license_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable BillingAccountLicenseConfigName> values) { + List list = new ArrayList<>(values.size()); + for (BillingAccountLicenseConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (billingAccount != null) { + fieldMapBuilder.put("billing_account", billingAccount); + } + if (billingAccountLicenseConfig != null) { + fieldMapBuilder.put("billing_account_license_config", billingAccountLicenseConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG.instantiate( + "billing_account", + billingAccount, + "billing_account_license_config", + billingAccountLicenseConfig); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BillingAccountLicenseConfigName that = ((BillingAccountLicenseConfigName) o); + return Objects.equals(this.billingAccount, that.billingAccount) + && Objects.equals(this.billingAccountLicenseConfig, that.billingAccountLicenseConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(billingAccount); + h *= 1000003; + h ^= Objects.hashCode(billingAccountLicenseConfig); + return h; + } + + /** + * Builder for + * billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config}. + */ + public static class Builder { + private String billingAccount; + private String billingAccountLicenseConfig; + + protected Builder() {} + + public String getBillingAccount() { + return billingAccount; + } + + public String getBillingAccountLicenseConfig() { + return billingAccountLicenseConfig; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public Builder setBillingAccountLicenseConfig(String billingAccountLicenseConfig) { + this.billingAccountLicenseConfig = billingAccountLicenseConfig; + return this; + } + + private Builder(BillingAccountLicenseConfigName billingAccountLicenseConfigName) { + this.billingAccount = billingAccountLicenseConfigName.billingAccount; + this.billingAccountLicenseConfig = + billingAccountLicenseConfigName.billingAccountLicenseConfig; + } + + public BillingAccountLicenseConfigName build() { + return new BillingAccountLicenseConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Chunk.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Chunk.java index fa9bf06288d7..7db6f9bed258 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Chunk.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Chunk.java @@ -325,6 +325,34 @@ public interface DocumentMetadataOrBuilder */ com.google.protobuf.ByteString getTitleBytes(); + /** + * + * + *
+     * The mime type of the document.
+     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 4; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+     * The mime type of the document.
+     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 4; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + /** * * @@ -406,6 +434,7 @@ private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder private DocumentMetadata() { uri_ = ""; title_ = ""; + mimeType_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -530,6 +559,61 @@ public com.google.protobuf.ByteString getTitleBytes() { } } + public static final int MIME_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * The mime type of the document.
+     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 4; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+     * The mime type of the document.
+     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * 
+ * + * string mime_type = 4; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STRUCT_DATA_FIELD_NUMBER = 3; private com.google.protobuf.Struct structData_; @@ -611,6 +695,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getStructData()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, mimeType_); + } getUnknownFields().writeTo(output); } @@ -629,6 +716,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStructData()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, mimeType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -647,6 +737,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUri().equals(other.getUri())) return false; if (!getTitle().equals(other.getTitle())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (hasStructData() != other.hasStructData()) return false; if (hasStructData()) { if (!getStructData().equals(other.getStructData())) return false; @@ -666,6 +757,8 @@ public int hashCode() { hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); if (hasStructData()) { hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; hash = (53 * hash) + getStructData().hashCode(); @@ -823,6 +916,7 @@ public Builder clear() { bitField0_ = 0; uri_ = ""; title_ = ""; + mimeType_ = ""; structData_ = null; if (structDataBuilder_ != null) { structDataBuilder_.dispose(); @@ -872,8 +966,11 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.title_ = title_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { + result.mimeType_ = mimeType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { result.structData_ = structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); to_bitField0_ |= 0x00000001; @@ -905,6 +1002,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Chunk.DocumentMetad bitField0_ |= 0x00000002; onChanged(); } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasStructData()) { mergeStructData(other.getStructData()); } @@ -950,9 +1052,15 @@ public Builder mergeFrom( { input.readMessage( internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1194,6 +1302,122 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+       * The mime type of the document.
+       * https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 4; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The mime type of the document.
+       * https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 4; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The mime type of the document.
+       * https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 4; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The mime type of the document.
+       * https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * The mime type of the document.
+       * https://www.iana.org/assignments/media-types/media-types.xhtml.
+       * 
+ * + * string mime_type = 4; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.protobuf.Struct structData_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, @@ -1216,7 +1440,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { * @return Whether the structData field is set. */ public boolean hasStructData() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1264,7 +1488,7 @@ public Builder setStructData(com.google.protobuf.Struct value) { } else { structDataBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1287,7 +1511,7 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) } else { structDataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1306,7 +1530,7 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) */ public Builder mergeStructData(com.google.protobuf.Struct value) { if (structDataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && structData_ != null && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { getStructDataBuilder().mergeFrom(value); @@ -1317,7 +1541,7 @@ public Builder mergeStructData(com.google.protobuf.Struct value) { structDataBuilder_.mergeFrom(value); } if (structData_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1336,7 +1560,7 @@ public Builder mergeStructData(com.google.protobuf.Struct value) { * .google.protobuf.Struct struct_data = 3; */ public Builder clearStructData() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); structData_ = null; if (structDataBuilder_ != null) { structDataBuilder_.dispose(); @@ -1359,7 +1583,7 @@ public Builder clearStructData() { * .google.protobuf.Struct struct_data = 3; */ public com.google.protobuf.Struct.Builder getStructDataBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetStructDataFieldBuilder().getBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ChunkProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ChunkProto.java index 7b98d89b9375..5099f19d14e3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ChunkProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ChunkProto.java @@ -77,7 +77,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+google/cloud/discoveryengine/v1/chunk." + "proto\022\037google.cloud.discoveryengine.v1\032\037" + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032\034google/protobuf/struct.proto\"\211\014\n" + + "api/resource.proto\032\034google/protobuf/struct.proto\"\234\014\n" + "\005Chunk\022\014\n" + "\004name\030\001 \001(\t\022\n\n" + "\002id\030\002 \001(\t\022\017\n" @@ -93,10 +93,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdata_urls\030\t \003(\tB\004\342A\001\003\022!\n" + "\023annotation_contents\030\013 \003(\tB\004\342A\001\003\022\\\n" + "\023annotation_metadata\030\014 \003" - + "(\01329.google.cloud.discoveryengine.v1.Chunk.AnnotationMetadataB\004\342A\001\003\032\\\n" + + "(\01329.google.cloud.discoveryengine.v1.Chunk.AnnotationMetadataB\004\342A\001\003\032o\n" + "\020DocumentMetadata\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" - + "\005title\030\002 \001(\t\022,\n" + + "\005title\030\002 \001(\t\022\021\n" + + "\tmime_type\030\004 \001(\t\022,\n" + "\013struct_data\030\003 \001(\0132\027.google.protobuf.Struct\0320\n" + "\010PageSpan\022\022\n\n" + "page_start\030\001 \001(\005\022\020\n" @@ -105,29 +106,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017previous_chunks\030\001 \003(\0132&.google.cloud.discoveryengine.v1.Chunk\022;\n" + "\013next_chunks\030\002 \003(\0132&.google.cloud.discoveryengine.v1.Chunk\032~\n" + "\021StructuredContent\022R\n" - + "\016structure_type\030\001 \001(\016" - + "24.google.cloud.discoveryengine.v1.Chunk.StructureTypeB\004\342A\001\003\022\025\n" + + "\016structure_type\030\001 \001(\01624.google.cloud.disco" + + "veryengine.v1.Chunk.StructureTypeB\004\342A\001\003\022\025\n" + "\007content\030\002 \001(\tB\004\342A\001\003\032\210\001\n" + "\022AnnotationMetadata\022Z\n" - + "\022structured_content\030\001 \001(\01328.google.cloud.discoverye" - + "ngine.v1.Chunk.StructuredContentB\004\342A\001\003\022\026\n" + + "\022structured_content\030\001 \001(\01328.goog" + + "le.cloud.discoveryengine.v1.Chunk.StructuredContentB\004\342A\001\003\022\026\n" + "\010image_id\030\002 \001(\tB\004\342A\001\003\"{\n\r" + "StructureType\022\036\n" + "\032STRUCTURE_TYPE_UNSPECIFIED\020\000\022\031\n" + "\025SHAREHOLDER_STRUCTURE\020\001\022\027\n" + "\023SIGNATURE_STRUCTURE\020\002\022\026\n" + "\022CHECKBOX_STRUCTURE\020\003:\262\002\352A\256\002\n" - + "$discoveryengine.googleapis.com/Chunk\022uprojec" - + "ts/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/docu" - + "ments/{document}/chunks/{chunk}\022\216\001projec" - + "ts/{project}/locations/{location}/collections/{collection}/dataStores/{data_stor" - + "e}/branches/{branch}/documents/{document}/chunks/{chunk}B\022\n" + + "$discoveryengine.googleapis.com/Chunk\022uprojects/{project}/location" + + "s/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chun" + + "ks/{chunk}\022\216\001projects/{project}/location" + + "s/{location}/collections/{collection}/da" + + "taStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}B\022\n" + "\020_relevance_scoreB\375\001\n" + "#com.google.cloud.discoveryengine.v1B\n" - + "ChunkProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discover" - + "yenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clo" - + "ud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Dis" - + "coveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "ChunkProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discove" + + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" + + "ENGINE\252\002\037Google.Cloud.DiscoveryEngine.V1" + + "\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Goo" + + "gle::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -161,7 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Chunk_DocumentMetadata_descriptor, new java.lang.String[] { - "Uri", "Title", "StructData", + "Uri", "Title", "MimeType", "StructData", }); internal_static_google_cloud_discoveryengine_v1_Chunk_PageSpan_descriptor = internal_static_google_cloud_discoveryengine_v1_Chunk_descriptor.getNestedType(1); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Citation.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Citation.java new file mode 100644 index 000000000000..194bc703bf6e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Citation.java @@ -0,0 +1,1729 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Source attributions for content.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Citation} + */ +@com.google.protobuf.Generated +public final class Citation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Citation) + CitationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Citation"); + } + + // Use Citation.newBuilder() to construct. + private Citation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Citation() { + uri_ = ""; + title_ = ""; + license_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_Citation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_Citation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Citation.class, + com.google.cloud.discoveryengine.v1.Citation.Builder.class); + } + + /** + * + * + *
+   * These are available confidence level user can set to block malicious urls
+   * with chosen confidence and above. For understanding different confidence of
+   * webrisk, please refer to
+   * https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold} + */ + public enum PhishBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Defaults to unspecified.
+     * 
+ * + * PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + PHISH_BLOCK_THRESHOLD_UNSPECIFIED(0), + /** + * + * + *
+     * Blocks Low and above confidence URL that is risky.
+     * 
+ * + * BLOCK_LOW_AND_ABOVE = 30; + */ + BLOCK_LOW_AND_ABOVE(30), + /** + * + * + *
+     * Blocks Medium and above confidence URL that is risky.
+     * 
+ * + * BLOCK_MEDIUM_AND_ABOVE = 40; + */ + BLOCK_MEDIUM_AND_ABOVE(40), + /** + * + * + *
+     * Blocks High and above confidence URL that is risky.
+     * 
+ * + * BLOCK_HIGH_AND_ABOVE = 50; + */ + BLOCK_HIGH_AND_ABOVE(50), + /** + * + * + *
+     * Blocks Higher and above confidence URL that is risky.
+     * 
+ * + * BLOCK_HIGHER_AND_ABOVE = 55; + */ + BLOCK_HIGHER_AND_ABOVE(55), + /** + * + * + *
+     * Blocks Very high and above confidence URL that is risky.
+     * 
+ * + * BLOCK_VERY_HIGH_AND_ABOVE = 60; + */ + BLOCK_VERY_HIGH_AND_ABOVE(60), + /** + * + * + *
+     * Blocks Extremely high confidence URL that is risky.
+     * 
+ * + * BLOCK_ONLY_EXTREMELY_HIGH = 100; + */ + BLOCK_ONLY_EXTREMELY_HIGH(100), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PhishBlockThreshold"); + } + + /** + * + * + *
+     * Defaults to unspecified.
+     * 
+ * + * PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + public static final int PHISH_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Blocks Low and above confidence URL that is risky.
+     * 
+ * + * BLOCK_LOW_AND_ABOVE = 30; + */ + public static final int BLOCK_LOW_AND_ABOVE_VALUE = 30; + + /** + * + * + *
+     * Blocks Medium and above confidence URL that is risky.
+     * 
+ * + * BLOCK_MEDIUM_AND_ABOVE = 40; + */ + public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 40; + + /** + * + * + *
+     * Blocks High and above confidence URL that is risky.
+     * 
+ * + * BLOCK_HIGH_AND_ABOVE = 50; + */ + public static final int BLOCK_HIGH_AND_ABOVE_VALUE = 50; + + /** + * + * + *
+     * Blocks Higher and above confidence URL that is risky.
+     * 
+ * + * BLOCK_HIGHER_AND_ABOVE = 55; + */ + public static final int BLOCK_HIGHER_AND_ABOVE_VALUE = 55; + + /** + * + * + *
+     * Blocks Very high and above confidence URL that is risky.
+     * 
+ * + * BLOCK_VERY_HIGH_AND_ABOVE = 60; + */ + public static final int BLOCK_VERY_HIGH_AND_ABOVE_VALUE = 60; + + /** + * + * + *
+     * Blocks Extremely high confidence URL that is risky.
+     * 
+ * + * BLOCK_ONLY_EXTREMELY_HIGH = 100; + */ + public static final int BLOCK_ONLY_EXTREMELY_HIGH_VALUE = 100; + + 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 PhishBlockThreshold 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 PhishBlockThreshold forNumber(int value) { + switch (value) { + case 0: + return PHISH_BLOCK_THRESHOLD_UNSPECIFIED; + case 30: + return BLOCK_LOW_AND_ABOVE; + case 40: + return BLOCK_MEDIUM_AND_ABOVE; + case 50: + return BLOCK_HIGH_AND_ABOVE; + case 55: + return BLOCK_HIGHER_AND_ABOVE; + case 60: + return BLOCK_VERY_HIGH_AND_ABOVE; + case 100: + return BLOCK_ONLY_EXTREMELY_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PhishBlockThreshold findValueByNumber(int number) { + return PhishBlockThreshold.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Citation.getDescriptor().getEnumTypes().get(0); + } + + private static final PhishBlockThreshold[] VALUES = values(); + + public static PhishBlockThreshold 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 PhishBlockThreshold(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold) + } + + private int bitField0_; + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + + /** + * + * + *
+   * Output only. Start index into the content.
+   * 
+ * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + + /** + * + * + *
+   * Output only. End index into the content.
+   * 
+ * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Output only. Url reference of the attribution.
+   * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Url reference of the attribution.
+   * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+   * Output only. Title of the attribution.
+   * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Title of the attribution.
+   * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object license_ = ""; + + /** + * + * + *
+   * Output only. License of the attribution.
+   * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The license. + */ + @java.lang.Override + public java.lang.String getLicense() { + java.lang.Object ref = license_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + license_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. License of the attribution.
+   * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for license. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseBytes() { + java.lang.Object ref = license_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + license_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICATION_DATE_FIELD_NUMBER = 6; + private com.google.type.Date publicationDate_; + + /** + * + * + *
+   * Output only. Publication date of the attribution.
+   * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the publicationDate field is set. + */ + @java.lang.Override + public boolean hasPublicationDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Publication date of the attribution.
+   * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicationDate. + */ + @java.lang.Override + public com.google.type.Date getPublicationDate() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + + /** + * + * + *
+   * Output only. Publication date of the attribution.
+   * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + + 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 (startIndex_ != 0) { + output.writeInt32(1, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(2, endIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(license_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, license_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getPublicationDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(license_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, license_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPublicationDate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Citation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Citation other = + (com.google.cloud.discoveryengine.v1.Citation) obj; + + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getLicense().equals(other.getLicense())) return false; + if (hasPublicationDate() != other.hasPublicationDate()) return false; + if (hasPublicationDate()) { + if (!getPublicationDate().equals(other.getPublicationDate())) 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) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + LICENSE_FIELD_NUMBER; + hash = (53 * hash) + getLicense().hashCode(); + if (hasPublicationDate()) { + hash = (37 * hash) + PUBLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Citation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Citation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Source attributions for content.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Citation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Citation) + com.google.cloud.discoveryengine.v1.CitationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_Citation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_Citation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Citation.class, + com.google.cloud.discoveryengine.v1.Citation.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Citation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPublicationDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + uri_ = ""; + title_ = ""; + license_ = ""; + publicationDate_ = null; + if (publicationDateBuilder_ != null) { + publicationDateBuilder_.dispose(); + publicationDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_Citation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Citation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation build() { + com.google.cloud.discoveryengine.v1.Citation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation buildPartial() { + com.google.cloud.discoveryengine.v1.Citation result = + new com.google.cloud.discoveryengine.v1.Citation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Citation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.license_ = license_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.publicationDate_ = + publicationDateBuilder_ == null ? publicationDate_ : publicationDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Citation) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Citation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Citation other) { + if (other == com.google.cloud.discoveryengine.v1.Citation.getDefaultInstance()) return this; + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLicense().isEmpty()) { + license_ = other.license_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasPublicationDate()) { + mergePublicationDate(other.getPublicationDate()); + } + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + license_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetPublicationDateFieldBuilder().getBuilder(), extensionRegistry); + 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 int startIndex_; + + /** + * + * + *
+     * Output only. Start index into the content.
+     * 
+ * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + /** + * + * + *
+     * Output only. Start index into the content.
+     * 
+ * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Start index into the content.
+     * 
+ * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + + /** + * + * + *
+     * Output only. End index into the content.
+     * 
+ * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + /** + * + * + *
+     * Output only. End index into the content.
+     * 
+ * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. End index into the content.
+     * 
+ * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+     * Output only. Url reference of the attribution.
+     * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Url reference of the attribution.
+     * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Url reference of the attribution.
+     * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Url reference of the attribution.
+     * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Url reference of the attribution.
+     * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object license_ = ""; + + /** + * + * + *
+     * Output only. License of the attribution.
+     * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The license. + */ + public java.lang.String getLicense() { + java.lang.Object ref = license_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + license_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. License of the attribution.
+     * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for license. + */ + public com.google.protobuf.ByteString getLicenseBytes() { + java.lang.Object ref = license_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + license_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. License of the attribution.
+     * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The license to set. + * @return This builder for chaining. + */ + public Builder setLicense(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + license_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. License of the attribution.
+     * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLicense() { + license_ = getDefaultInstance().getLicense(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. License of the attribution.
+     * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for license to set. + * @return This builder for chaining. + */ + public Builder setLicenseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + license_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.type.Date publicationDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + publicationDateBuilder_; + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the publicationDate field is set. + */ + public boolean hasPublicationDate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicationDate. + */ + public com.google.type.Date getPublicationDate() { + if (publicationDateBuilder_ == null) { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } else { + return publicationDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicationDate_ = value; + } else { + publicationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPublicationDate(com.google.type.Date.Builder builderForValue) { + if (publicationDateBuilder_ == null) { + publicationDate_ = builderForValue.build(); + } else { + publicationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && publicationDate_ != null + && publicationDate_ != com.google.type.Date.getDefaultInstance()) { + getPublicationDateBuilder().mergeFrom(value); + } else { + publicationDate_ = value; + } + } else { + publicationDateBuilder_.mergeFrom(value); + } + if (publicationDate_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPublicationDate() { + bitField0_ = (bitField0_ & ~0x00000020); + publicationDate_ = null; + if (publicationDateBuilder_ != null) { + publicationDateBuilder_.dispose(); + publicationDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getPublicationDateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPublicationDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + if (publicationDateBuilder_ != null) { + return publicationDateBuilder_.getMessageOrBuilder(); + } else { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } + } + + /** + * + * + *
+     * Output only. Publication date of the attribution.
+     * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetPublicationDateFieldBuilder() { + if (publicationDateBuilder_ == null) { + publicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPublicationDate(), getParentForChildren(), isClean()); + publicationDate_ = null; + } + return publicationDateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Citation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Citation) + private static final com.google.cloud.discoveryengine.v1.Citation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Citation(); + } + + public static com.google.cloud.discoveryengine.v1.Citation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Citation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadata.java new file mode 100644 index 000000000000..2fd8f170641e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadata.java @@ -0,0 +1,970 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * A collection of source attributions for a piece of content.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CitationMetadata} + */ +@com.google.protobuf.Generated +public final class CitationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CitationMetadata) + CitationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CitationMetadata"); + } + + // Use CitationMetadata.newBuilder() to construct. + private CitationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CitationMetadata() { + citations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_CitationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_CitationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CitationMetadata.class, + com.google.cloud.discoveryengine.v1.CitationMetadata.Builder.class); + } + + public static final int CITATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List citations_; + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getCitationsList() { + return citations_; + } + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCitationsOrBuilderList() { + return citations_; + } + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCitationsCount() { + return citations_.size(); + } + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation getCitations(int index) { + return citations_.get(index); + } + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationOrBuilder getCitationsOrBuilder(int index) { + return citations_.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 < citations_.size(); i++) { + output.writeMessage(1, citations_.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 < citations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, citations_.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.google.cloud.discoveryengine.v1.CitationMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.CitationMetadata other = + (com.google.cloud.discoveryengine.v1.CitationMetadata) obj; + + if (!getCitationsList().equals(other.getCitationsList())) 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 (getCitationsCount() > 0) { + hash = (37 * hash) + CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCitationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CitationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A collection of source attributions for a piece of content.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CitationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.CitationMetadata) + com.google.cloud.discoveryengine.v1.CitationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_CitationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_CitationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CitationMetadata.class, + com.google.cloud.discoveryengine.v1.CitationMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.CitationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + } else { + citations_ = null; + citationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_CitationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationMetadata build() { + com.google.cloud.discoveryengine.v1.CitationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationMetadata buildPartial() { + com.google.cloud.discoveryengine.v1.CitationMetadata result = + new com.google.cloud.discoveryengine.v1.CitationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.CitationMetadata result) { + if (citationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + citations_ = java.util.Collections.unmodifiableList(citations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.citations_ = citations_; + } else { + result.citations_ = citationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.CitationMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.CitationMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1.CitationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CitationMetadata other) { + if (other == com.google.cloud.discoveryengine.v1.CitationMetadata.getDefaultInstance()) + return this; + if (citationsBuilder_ == null) { + if (!other.citations_.isEmpty()) { + if (citations_.isEmpty()) { + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCitationsIsMutable(); + citations_.addAll(other.citations_); + } + onChanged(); + } + } else { + if (!other.citations_.isEmpty()) { + if (citationsBuilder_.isEmpty()) { + citationsBuilder_.dispose(); + citationsBuilder_ = null; + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000001); + citationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitationsFieldBuilder() + : null; + } else { + citationsBuilder_.addAllMessages(other.citations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.Citation m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Citation.parser(), extensionRegistry); + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(m); + } else { + citationsBuilder_.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 citations_ = + java.util.Collections.emptyList(); + + private void ensureCitationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + citations_ = + new java.util.ArrayList(citations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Citation, + com.google.cloud.discoveryengine.v1.Citation.Builder, + com.google.cloud.discoveryengine.v1.CitationOrBuilder> + citationsBuilder_; + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getCitationsList() { + if (citationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(citations_); + } else { + return citationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCitationsCount() { + if (citationsBuilder_ == null) { + return citations_.size(); + } else { + return citationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Citation getCitations(int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCitations(int index, com.google.cloud.discoveryengine.v1.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.set(index, value); + onChanged(); + } else { + citationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCitations( + int index, com.google.cloud.discoveryengine.v1.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.set(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations(com.google.cloud.discoveryengine.v1.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(value); + onChanged(); + } else { + citationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations(int index, com.google.cloud.discoveryengine.v1.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(index, value); + onChanged(); + } else { + citationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations( + com.google.cloud.discoveryengine.v1.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations( + int index, com.google.cloud.discoveryengine.v1.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCitations( + java.lang.Iterable values) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citations_); + onChanged(); + } else { + citationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCitations() { + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + citationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCitations(int index) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.remove(index); + onChanged(); + } else { + citationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Citation.Builder getCitationsBuilder(int index) { + return internalGetCitationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.CitationOrBuilder getCitationsOrBuilder(int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCitationsOrBuilderList() { + if (citationsBuilder_ != null) { + return citationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citations_); + } + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Citation.Builder addCitationsBuilder() { + return internalGetCitationsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.Citation.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Citation.Builder addCitationsBuilder(int index) { + return internalGetCitationsFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1.Citation.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of citations.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCitationsBuilderList() { + return internalGetCitationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Citation, + com.google.cloud.discoveryengine.v1.Citation.Builder, + com.google.cloud.discoveryengine.v1.CitationOrBuilder> + internalGetCitationsFieldBuilder() { + if (citationsBuilder_ == null) { + citationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Citation, + com.google.cloud.discoveryengine.v1.Citation.Builder, + com.google.cloud.discoveryengine.v1.CitationOrBuilder>( + citations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + citations_ = null; + } + return citationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CitationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CitationMetadata) + private static final com.google.cloud.discoveryengine.v1.CitationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CitationMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.CitationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CitationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CitationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadataOrBuilder.java new file mode 100644 index 000000000000..70c5ce565cc6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationMetadataOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CitationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CitationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCitationsList(); + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.Citation getCitations(int index); + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCitationsCount(); + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCitationsOrBuilderList(); + + /** + * + * + *
+   * Output only. List of citations.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.CitationOrBuilder getCitationsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationOrBuilder.java new file mode 100644 index 000000000000..d0bc2783ab61 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CitationOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/grounded_generation_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CitationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Citation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Start index into the content.
+   * 
+ * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
+   * Output only. End index into the content.
+   * 
+ * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
+   * Output only. Url reference of the attribution.
+   * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Output only. Url reference of the attribution.
+   * 
+ * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Output only. Title of the attribution.
+   * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+   * Output only. Title of the attribution.
+   * 
+ * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+   * Output only. License of the attribution.
+   * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The license. + */ + java.lang.String getLicense(); + + /** + * + * + *
+   * Output only. License of the attribution.
+   * 
+ * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for license. + */ + com.google.protobuf.ByteString getLicenseBytes(); + + /** + * + * + *
+   * Output only. Publication date of the attribution.
+   * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the publicationDate field is set. + */ + boolean hasPublicationDate(); + + /** + * + * + *
+   * Output only. Publication date of the attribution.
+   * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicationDate. + */ + com.google.type.Date getPublicationDate(); + + /** + * + * + *
+   * Output only. Publication date of the attribution.
+   * 
+ * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getPublicationDateOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfig.java new file mode 100644 index 000000000000..fd8dc2b830c0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfig.java @@ -0,0 +1,696 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * The configuration for the CLI execution based connectors.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CliConfig} + */ +@com.google.protobuf.Generated +public final class CliConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CliConfig) + CliConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CliConfig"); + } + + // Use CliConfig.newBuilder() to construct. + private CliConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CliConfig() { + enabledActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_CliConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_CliConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CliConfig.class, + com.google.cloud.discoveryengine.v1.CliConfig.Builder.class); + } + + public static final int ENABLED_ACTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enabledActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enabledActions. + */ + public com.google.protobuf.ProtocolStringList getEnabledActionsList() { + return enabledActions_; + } + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enabledActions. + */ + public int getEnabledActionsCount() { + return enabledActions_.size(); + } + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enabledActions at the given index. + */ + public java.lang.String getEnabledActions(int index) { + return enabledActions_.get(index); + } + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enabledActions at the given index. + */ + public com.google.protobuf.ByteString getEnabledActionsBytes(int index) { + return enabledActions_.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 < enabledActions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, enabledActions_.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 < enabledActions_.size(); i++) { + dataSize += computeStringSizeNoTag(enabledActions_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnabledActionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.CliConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.CliConfig other = + (com.google.cloud.discoveryengine.v1.CliConfig) obj; + + if (!getEnabledActionsList().equals(other.getEnabledActionsList())) 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 (getEnabledActionsCount() > 0) { + hash = (37 * hash) + ENABLED_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getEnabledActionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.CliConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The configuration for the CLI execution based connectors.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CliConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.CliConfig) + com.google.cloud.discoveryengine.v1.CliConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_CliConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_CliConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CliConfig.class, + com.google.cloud.discoveryengine.v1.CliConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.CliConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabledActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_CliConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CliConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CliConfig build() { + com.google.cloud.discoveryengine.v1.CliConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CliConfig buildPartial() { + com.google.cloud.discoveryengine.v1.CliConfig result = + new com.google.cloud.discoveryengine.v1.CliConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.CliConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + enabledActions_.makeImmutable(); + result.enabledActions_ = enabledActions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.CliConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.CliConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CliConfig other) { + if (other == com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance()) return this; + if (!other.enabledActions_.isEmpty()) { + if (enabledActions_.isEmpty()) { + enabledActions_ = other.enabledActions_; + bitField0_ |= 0x00000001; + } else { + ensureEnabledActionsIsMutable(); + enabledActions_.addAll(other.enabledActions_); + } + 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(); + ensureEnabledActionsIsMutable(); + enabledActions_.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 enabledActions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEnabledActionsIsMutable() { + if (!enabledActions_.isModifiable()) { + enabledActions_ = new com.google.protobuf.LazyStringArrayList(enabledActions_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enabledActions. + */ + public com.google.protobuf.ProtocolStringList getEnabledActionsList() { + enabledActions_.makeImmutable(); + return enabledActions_; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enabledActions. + */ + public int getEnabledActionsCount() { + return enabledActions_.size(); + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enabledActions at the given index. + */ + public java.lang.String getEnabledActions(int index) { + return enabledActions_.get(index); + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enabledActions at the given index. + */ + public com.google.protobuf.ByteString getEnabledActionsBytes(int index) { + return enabledActions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The enabledActions to set. + * @return This builder for chaining. + */ + public Builder setEnabledActions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnabledActionsIsMutable(); + enabledActions_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabledActions to add. + * @return This builder for chaining. + */ + public Builder addEnabledActions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnabledActionsIsMutable(); + enabledActions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The enabledActions to add. + * @return This builder for chaining. + */ + public Builder addAllEnabledActions(java.lang.Iterable values) { + ensureEnabledActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledActions_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabledActions() { + enabledActions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The actions enabled on the associated CLI connection.
+     * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the enabledActions to add. + * @return This builder for chaining. + */ + public Builder addEnabledActionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnabledActionsIsMutable(); + enabledActions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CliConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CliConfig) + private static final com.google.cloud.discoveryengine.v1.CliConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CliConfig(); + } + + public static com.google.cloud.discoveryengine.v1.CliConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CliConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CliConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfigOrBuilder.java new file mode 100644 index 000000000000..510931f55cf4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CliConfigOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CliConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CliConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the enabledActions. + */ + java.util.List getEnabledActionsList(); + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of enabledActions. + */ + int getEnabledActionsCount(); + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The enabledActions at the given index. + */ + java.lang.String getEnabledActions(int index); + + /** + * + * + *
+   * Optional. The actions enabled on the associated CLI connection.
+   * 
+ * + * repeated string enabled_actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the enabledActions at the given index. + */ + com.google.protobuf.ByteString getEnabledActionsBytes(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfig.java index 403ed9684474..345b56084eb4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfig.java @@ -177,6 +177,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETED = 8; */ DELETED(8), + /** + * + * + *
+     * The KMS key is expired, meaning the key has been disabled for 30+ days.
+     * The customer can call DeleteCmekConfig to change the state to DELETED.
+     * 
+ * + * EXPIRED = 9; + */ + EXPIRED(9), UNRECOGNIZED(-1), ; @@ -291,6 +302,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 8; + /** + * + * + *
+     * The KMS key is expired, meaning the key has been disabled for 30+ days.
+     * The customer can call DeleteCmekConfig to change the state to DELETED.
+     * 
+ * + * EXPIRED = 9; + */ + public static final int EXPIRED_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -333,6 +356,8 @@ public static State forNumber(int value) { return ACTIVE_ROTATING; case 8: return DELETED; + case 9: + return EXPIRED; default: return null; } @@ -701,11 +726,14 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { * * *
-   * KMS key version resource name which will be used to encrypt resources
+   * Output only. KMS key version resource name which will be used to encrypt
+   * resources
    * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
    * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyVersion. */ @@ -726,11 +754,14 @@ public java.lang.String getKmsKeyVersion() { * * *
-   * KMS key version resource name which will be used to encrypt resources
+   * Output only. KMS key version resource name which will be used to encrypt
+   * resources
    * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
    * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyVersion. */ @@ -1729,11 +1760,14 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * KMS key version resource name which will be used to encrypt resources
+     * Output only. KMS key version resource name which will be used to encrypt
+     * resources
      * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
      * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyVersion. */ @@ -1753,11 +1787,14 @@ public java.lang.String getKmsKeyVersion() { * * *
-     * KMS key version resource name which will be used to encrypt resources
+     * Output only. KMS key version resource name which will be used to encrypt
+     * resources
      * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
      * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyVersion. */ @@ -1777,11 +1814,14 @@ public com.google.protobuf.ByteString getKmsKeyVersionBytes() { * * *
-     * KMS key version resource name which will be used to encrypt resources
+     * Output only. KMS key version resource name which will be used to encrypt
+     * resources
      * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
      * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @param value The kmsKeyVersion to set. * @return This builder for chaining. @@ -1800,11 +1840,14 @@ public Builder setKmsKeyVersion(java.lang.String value) { * * *
-     * KMS key version resource name which will be used to encrypt resources
+     * Output only. KMS key version resource name which will be used to encrypt
+     * resources
      * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
      * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1819,11 +1862,14 @@ public Builder clearKmsKeyVersion() { * * *
-     * KMS key version resource name which will be used to encrypt resources
+     * Output only. KMS key version resource name which will be used to encrypt
+     * resources
      * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
      * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for kmsKeyVersion to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigOrBuilder.java index 5d8e1565d394..daeb9a941610 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigOrBuilder.java @@ -88,11 +88,14 @@ public interface CmekConfigOrBuilder * * *
-   * KMS key version resource name which will be used to encrypt resources
+   * Output only. KMS key version resource name which will be used to encrypt
+   * resources
    * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
    * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyVersion. */ @@ -102,11 +105,14 @@ public interface CmekConfigOrBuilder * * *
-   * KMS key version resource name which will be used to encrypt resources
+   * Output only. KMS key version resource name which will be used to encrypt
+   * resources
    * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
    * 
* - * string kms_key_version = 6 [(.google.api.resource_reference) = { ... } + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyVersion. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceProto.java index ee735412922a..dce9ea1122b4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceProto.java @@ -99,81 +99,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "quest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)discoverye" + "ngine.googleapis.com/CmekConfig\"O\n\017Singl" + "eRegionKey\022<\n\007kms_key\030\001 \001(\tB+\342A\001\002\372A$\n\"cl" - + "oudkms.googleapis.com/CryptoKeys\"\307\007\n\nCme" + + "oudkms.googleapis.com/CryptoKeys\"\330\007\n\nCme" + "kConfig\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0228\n\007kms_key\030\002" + " \001(\tB\'\372A$\n\"cloudkms.googleapis.com/Crypt" - + "oKeys\022G\n\017kms_key_version\030\006 \001(\tB.\372A+\n)clo" - + "udkms.googleapis.com/CryptoKeyVersions\022F" - + "\n\005state\030\003 \001(\01621.google.cloud.discoveryen" - + "gine.v1.CmekConfig.StateB\004\342A\001\003\022\030\n\nis_def" - + "ault\030\004 \001(\010B\004\342A\001\003\022,\n\036last_rotation_timest" - + "amp_micros\030\005 \001(\003B\004\342A\001\003\022R\n\022single_region_" - + "keys\030\007 \003(\01320.google.cloud.discoveryengin" - + "e.v1.SingleRegionKeyB\004\342A\001\001\022[\n\020notebooklm" - + "_state\030\010 \001(\0162;.google.cloud.discoveryeng" - + "ine.v1.CmekConfig.NotebookLMStateB\004\342A\001\003\"" - + "\230\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" - + "TING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tKEY_ISSUE\020\003\022\014\n\010DEL" - + "ETING\020\004\022\021\n\rDELETE_FAILED\020\007\022\014\n\010UNUSABLE\020\005" - + "\022\023\n\017ACTIVE_ROTATING\020\006\022\013\n\007DELETED\020\010\"\203\001\n\017N" - + "otebookLMState\022!\n\035NOTEBOOK_LM_STATE_UNSP" - + "ECIFIED\020\000\022\031\n\025NOTEBOOK_LM_NOT_READY\020\001\022\025\n\021" - + "NOTEBOOK_LM_READY\020\002\022\033\n\027NOTEBOOK_LM_NOT_E" - + "NABLED\020\003:\277\001\352A\273\001\n)discoveryengine.googlea" - + "pis.com/CmekConfig\0222projects/{project}/l" - + "ocations/{location}/cmekConfig\022Aprojects" - + "/{project}/locations/{location}/cmekConf" - + "igs/{cmek_config}*\013cmekConfigs2\ncmekConf" - + "ig\"|\n\030UpdateCmekConfigMetadata\022/\n\013create" - + "_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022" - + "/\n\013update_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestamp\"Z\n\026ListCmekConfigsRequest\022@\n\006pa" - + "rent\030\001 \001(\tB0\342A\001\002\372A)\n\'discoveryengine.goo" - + "gleapis.com/Location\"\\\n\027ListCmekConfigsR" - + "esponse\022A\n\014cmek_configs\030\001 \003(\0132+.google.c" - + "loud.discoveryengine.v1.CmekConfig\"[\n\027De" - + "leteCmekConfigRequest\022@\n\004name\030\001 \001(\tB2\342A\001" - + "\002\372A+\n)discoveryengine.googleapis.com/Cme" - + "kConfig\"|\n\030DeleteCmekConfigMetadata\022/\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tamp\022/\n\013update_time\030\002 \001(\0132\032.google.proto" - + "buf.Timestamp2\201\t\n\021CmekConfigService\022\345\002\n\020" - + "UpdateCmekConfig\0228.google.cloud.discover" - + "yengine.v1.UpdateCmekConfigRequest\032\035.goo" - + "gle.longrunning.Operation\"\367\001\312Af\n*google." - + "cloud.discoveryengine.v1.CmekConfig\0228goo" - + "gle.cloud.discoveryengine.v1.UpdateCmekC" - + "onfigMetadata\332A\006config\202\323\344\223\002\17723/v1/{confi" + + "oKeys\022K\n\017kms_key_version\030\006 \001(\tB2\342A\001\003\372A+\n" + + ")cloudkms.googleapis.com/CryptoKeyVersio" + + "ns\022F\n\005state\030\003 \001(\01621.google.cloud.discove" + + "ryengine.v1.CmekConfig.StateB\004\342A\001\003\022\030\n\nis" + + "_default\030\004 \001(\010B\004\342A\001\003\022,\n\036last_rotation_ti" + + "mestamp_micros\030\005 \001(\003B\004\342A\001\003\022R\n\022single_reg" + + "ion_keys\030\007 \003(\01320.google.cloud.discoverye" + + "ngine.v1.SingleRegionKeyB\004\342A\001\001\022[\n\020notebo" + + "oklm_state\030\010 \001(\0162;.google.cloud.discover" + + "yengine.v1.CmekConfig.NotebookLMStateB\004\342" + + "A\001\003\"\245\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tKEY_ISSUE\020\003\022\014\n" + + "\010DELETING\020\004\022\021\n\rDELETE_FAILED\020\007\022\014\n\010UNUSAB" + + "LE\020\005\022\023\n\017ACTIVE_ROTATING\020\006\022\013\n\007DELETED\020\010\022\013" + + "\n\007EXPIRED\020\t\"\203\001\n\017NotebookLMState\022!\n\035NOTEB" + + "OOK_LM_STATE_UNSPECIFIED\020\000\022\031\n\025NOTEBOOK_L" + + "M_NOT_READY\020\001\022\025\n\021NOTEBOOK_LM_READY\020\002\022\033\n\027" + + "NOTEBOOK_LM_NOT_ENABLED\020\003:\277\001\352A\273\001\n)discov" + + "eryengine.googleapis.com/CmekConfig\0222pro" + + "jects/{project}/locations/{location}/cme" + + "kConfig\022Aprojects/{project}/locations/{l" + + "ocation}/cmekConfigs/{cmek_config}*\013cmek" + + "Configs2\ncmekConfig\"|\n\030UpdateCmekConfigM" + + "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\"Z\n\026ListCmekCon" + + "figsRequest\022@\n\006parent\030\001 \001(\tB0\342A\001\002\372A)\n\'di" + + "scoveryengine.googleapis.com/Location\"\\\n" + + "\027ListCmekConfigsResponse\022A\n\014cmek_configs" + + "\030\001 \003(\0132+.google.cloud.discoveryengine.v1" + + ".CmekConfig\"[\n\027DeleteCmekConfigRequest\022@" + + "\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)discoveryengine.g" + + "oogleapis.com/CmekConfig\"|\n\030DeleteCmekCo" + + "nfigMetadata\022/\n\013create_time\030\001 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013update_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp2\377\t\n\021CmekC" + + "onfigService\022\345\002\n\020UpdateCmekConfig\0228.goog" + + "le.cloud.discoveryengine.v1.UpdateCmekCo" + + "nfigRequest\032\035.google.longrunning.Operati" + + "on\"\367\001\312Af\n*google.cloud.discoveryengine.v" + + "1.CmekConfig\0228google.cloud.discoveryengi" + + "ne.v1.UpdateCmekConfigMetadata\332A\006config\202" + + "\323\344\223\002\17723/v1/{config.name=projects/*/locat" + + "ions/*/cmekConfig}:\006configZ@26/v1/{confi" + "g.name=projects/*/locations/*/cmekConfig" - + "}:\006configZ@26/v1/{config.name=projects/*" - + "/locations/*/cmekConfigs/*}:\006config\022\343\001\n\r" - + "GetCmekConfig\0225.google.cloud.discoveryen" - + "gine.v1.GetCmekConfigRequest\032+.google.cl" - + "oud.discoveryengine.v1.CmekConfig\"n\332A\004na" - + "me\202\323\344\223\002a\022,/v1/{name=projects/*/locations" - + "/*/cmekConfig}Z1\022//v1/{name=projects/*/l" - + "ocations/*/cmekConfigs/*}\022\306\001\n\017ListCmekCo" - + "nfigs\0227.google.cloud.discoveryengine.v1." - + "ListCmekConfigsRequest\0328.google.cloud.di" - + "scoveryengine.v1.ListCmekConfigsResponse" - + "\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/" - + "*/locations/*}/cmekConfigs\022\200\002\n\020DeleteCme" - + "kConfig\0228.google.cloud.discoveryengine.v" - + "1.DeleteCmekConfigRequest\032\035.google.longr" - + "unning.Operation\"\222\001\312AQ\n\025google.protobuf." - + "Empty\0228google.cloud.discoveryengine.v1.D" - + "eleteCmekConfigMetadata\332A\004name\202\323\344\223\0021*//v" - + "1/{name=projects/*/locations/*/cmekConfi" - + "gs/*}\032R\312A\036discoveryengine.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\211\002\n#com.google.cloud.discovery" - + "engine.v1B\026CmekConfigServiceProtoP\001ZMclo" - + "ud.google.com/go/discoveryengine/apiv1/d" - + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" - + "COVERYENGINE\252\002\037Google.Cloud.DiscoveryEng" - + "ine.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1" - + "\352\002\"Google::Cloud::DiscoveryEngine::V1b\006p" - + "roto3" + + "s/*}:\006config\022\343\001\n\rGetCmekConfig\0225.google." + + "cloud.discoveryengine.v1.GetCmekConfigRe" + + "quest\032+.google.cloud.discoveryengine.v1." + + "CmekConfig\"n\332A\004name\202\323\344\223\002a\022,/v1/{name=pro" + + "jects/*/locations/*/cmekConfig}Z1\022//v1/{" + + "name=projects/*/locations/*/cmekConfigs/" + + "*}\022\306\001\n\017ListCmekConfigs\0227.google.cloud.di" + + "scoveryengine.v1.ListCmekConfigsRequest\032" + + "8.google.cloud.discoveryengine.v1.ListCm" + + "ekConfigsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/" + + "{parent=projects/*/locations/*}/cmekConf" + + "igs\022\200\002\n\020DeleteCmekConfig\0228.google.cloud." + + "discoveryengine.v1.DeleteCmekConfigReque" + + "st\032\035.google.longrunning.Operation\"\222\001\312AQ\n" + + "\025google.protobuf.Empty\0228google.cloud.dis" + + "coveryengine.v1.DeleteCmekConfigMetadata" + + "\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/loca" + + "tions/*/cmekConfigs/*}\032\317\001\312A\036discoveryeng" + + "ine.googleapis.com\322A\252\001https://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/discoveryengine.rea" + + "dwrite,https://www.googleapis.com/auth/d" + + "iscoveryengine.serving.readwriteB\211\002\n#com" + + ".google.cloud.discoveryengine.v1B\026CmekCo" + + "nfigServiceProtoP\001ZMcloud.google.com/go/" + + "discoveryengine/apiv1/discoveryenginepb;" + + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Go" + + "ogle.Cloud.DiscoveryEngine.V1\312\002\037Google\\C" + + "loud\\DiscoveryEngine\\V1\352\002\"Google::Cloud:" + + ":DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Collection.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Collection.java new file mode 100644 index 000000000000..63303976901c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Collection.java @@ -0,0 +1,1163 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Collection is a container for configuring resources and access to a set of
+ * DataStores.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Collection} + */ +@com.google.protobuf.Generated +public final class Collection extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Collection) + CollectionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Collection"); + } + + // Use Collection.newBuilder() to construct. + private Collection(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Collection() { + name_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionProto + .internal_static_google_cloud_discoveryengine_v1_Collection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CollectionProto + .internal_static_google_cloud_discoveryengine_v1_Collection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Collection.class, + com.google.cloud.discoveryengine.v1.Collection.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. The full resource name of the Collection.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. The full resource name of the Collection.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The Collection display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The Collection display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp the
+   * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Collection)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Collection other = + (com.google.cloud.discoveryengine.v1.Collection) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Collection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Collection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Collection is a container for configuring resources and access to a set of
+   * DataStores.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Collection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Collection) + com.google.cloud.discoveryengine.v1.CollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionProto + .internal_static_google_cloud_discoveryengine_v1_Collection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CollectionProto + .internal_static_google_cloud_discoveryengine_v1_Collection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Collection.class, + com.google.cloud.discoveryengine.v1.Collection.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Collection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CollectionProto + .internal_static_google_cloud_discoveryengine_v1_Collection_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Collection getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Collection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Collection build() { + com.google.cloud.discoveryengine.v1.Collection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Collection buildPartial() { + com.google.cloud.discoveryengine.v1.Collection result = + new com.google.cloud.discoveryengine.v1.Collection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Collection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Collection) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Collection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Collection other) { + if (other == com.google.cloud.discoveryengine.v1.Collection.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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 name_ = ""; + + /** + * + * + *
+     * Immutable. The full resource name of the Collection.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the Collection.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the Collection.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the Collection.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the Collection.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. The Collection display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The Collection display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The Collection display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Collection display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The Collection display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Collection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Collection) + private static final com.google.cloud.discoveryengine.v1.Collection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Collection(); + } + + public static com.google.cloud.discoveryengine.v1.Collection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Collection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Collection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionOrBuilder.java new file mode 100644 index 000000000000..7b9df74e686b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CollectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Collection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The full resource name of the Collection.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Immutable. The full resource name of the Collection.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The Collection display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. The Collection display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [Collection][google.cloud.discoveryengine.v1.Collection] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionProto.java new file mode 100644 index 000000000000..dcd61dd04672 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class CollectionProto extends com.google.protobuf.GeneratedFile { + private CollectionProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CollectionProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Collection_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Collection_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" + + "0google/cloud/discoveryengine/v1/collection.proto\022\037google.cloud.discoveryengine" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\037google/protobuf/timestamp.proto\"\345\001\n\n" + + "Collection\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\005\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\002\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003:p\352Am\n" + + ")discoveryengine.googleapis.com/Collection\022@projects/{projec" + + "t}/locations/{location}/collections/{collection}B\202\002\n" + + "#com.google.cloud.discoveryengine.v1B\017CollectionProtoP\001ZMcloud.googl" + + "e.com/go/discoveryengine/apiv1/discovery" + + "enginepb;discoveryenginepb\242\002\017DISCOVERYEN" + + "GINE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002" + + "\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Googl" + + "e::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_Collection_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_Collection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Collection_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "CreateTime", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceProto.java new file mode 100644 index 000000000000..864bdb40cd0f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionServiceProto.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class CollectionServiceProto extends com.google.protobuf.GeneratedFile { + private CollectionServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CollectionServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1/collec" + + "tion_service.proto\022\037google.cloud.discove" + + "ryengine.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + + "google/iam/v1/policy.proto\032#google/longr" + + "unning/operations.proto\032\033google/protobuf" + + "/empty.proto\032\037google/protobuf/timestamp." + + "proto\"[\n\027DeleteCollectionRequest\022@\n\004name" + + "\030\001 \001(\tB2\342A\001\002\372A+\n)discoveryengine.googlea" + + "pis.com/Collection\"|\n\030DeleteCollectionMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp2\264\006\n\021CollectionS" + + "ervice\022\200\002\n\020DeleteCollection\0228.google.clo" + + "ud.discoveryengine.v1.DeleteCollectionRe" + + "quest\032\035.google.longrunning.Operation\"\222\001\312" + + "AQ\n\025google.protobuf.Empty\0228google.cloud." + + "discoveryengine.v1.DeleteCollectionMetad" + + "ata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/l" + + "ocations/*/collections/*}\022\236\001\n\014GetIamPoli" + + "cy\022\".google.iam.v1.GetIamPolicyRequest\032\025" + + ".google.iam.v1.Policy\"S\332A\010resource\202\323\344\223\002B" + + "\022@/v1/{resource=projects/*/locations/*/c" + + "ollections/*}:getIamPolicy\022\250\001\n\014SetIamPol" + + "icy\022\".google.iam.v1.SetIamPolicyRequest\032" + + "\025.google.iam.v1.Policy\"]\332A\017resource,poli" + + "cy\202\323\344\223\002E\"@/v1/{resource=projects/*/locat" + + "ions/*/collections/*}:setIamPolicy:\001*\032\317\001" + + "\312A\036discoveryengine.googleapis.com\322A\252\001htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/disc" + + "overyengine.readwrite,https://www.google" + + "apis.com/auth/discoveryengine.serving.re" + + "adwriteB\211\002\n#com.google.cloud.discoveryen" + + "gine.v1B\026CollectionServiceProtoP\001ZMcloud" + + ".google.com/go/discoveryengine/apiv1/dis" + + "coveryenginepb;discoveryenginepb\242\002\017DISCO" + + "VERYENGINE\252\002\037Google.Cloud.DiscoveryEngin" + + "e.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002" + + "\"Google::Cloud::DiscoveryEngine::V1b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java index 44da330a339f..36c6a64d8192 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CommonProto.java @@ -52,10 +52,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_UserInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_DoubleList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_DoubleList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_IdpConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_IdpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_Principal_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -68,6 +80,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_SearchLinkPromotion_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_SearchLinkPromotion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SessionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SessionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -80,7 +108,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ",google/cloud/discoveryengine/v1/common" + ".proto\022\037google.cloud.discoveryengine.v1\032" - + "\037google/api/field_behavior.proto\032\031google/api/resource.proto\"x\n" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\030google/type/latlng.proto\"x\n" + "\010Interval\022\021\n" + "\007minimum\030\001 \001(\001H\000\022\033\n" + "\021exclusive_minimum\030\002 \001(\001H\000\022\021\n" @@ -90,21 +119,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003max\"0\n" + "\017CustomAttribute\022\014\n" + "\004text\030\001 \003(\t\022\017\n" - + "\007numbers\030\002 \003(\001\"H\n" + + "\007numbers\030\002 \003(\001\"\202\002\n" + "\010UserInfo\022\017\n" + "\007user_id\030\001 \001(\t\022\022\n\n" + "user_agent\030\002 \001(\t\022\027\n" - + "\ttime_zone\030\003 \001(\tB\004\342A\001\001\"\034\n\n" + + "\ttime_zone\030\003 \001(\tB\004\342A\001\001\022Z\n" + + "\020precise_location\030\004 \001(\01329" + + ".google.cloud.discoveryengine.v1.UserInfo.PreciseLocationB\005\342A\002\004\001\032\\\n" + + "\017PreciseLocation\022*\n" + + "\005point\030\001 \001(\0132\023.google.type.LatLngB\004\342A\001\001H\000\022\021\n" + + "\007address\030\002 \001(\tH\000B\n\n" + + "\010location\"\034\n\n" + "DoubleList\022\016\n" - + "\006values\030\001 \003(\001\"]\n" + + "\006values\030\001 \003(\001\"\240\002\n" + + "\tIdpConfig\022D\n" + + "\010idp_type\030\001" + + " \001(\01622.google.cloud.discoveryengine.v1.IdpConfig.IdpType\022Y\n" + + "\023external_idp_config\030\002 \001(\0132<.google.cloud.dis" + + "coveryengine.v1.IdpConfig.ExternalIdpConfig\0320\n" + + "\021ExternalIdpConfig\022\033\n" + + "\023workforce_pool_name\030\001 \001(\t\"@\n" + + "\007IdpType\022\030\n" + + "\024IDP_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006GSUITE\020\001\022\017\n" + + "\013THIRD_PARTY\020\002\"]\n" + "\tPrincipal\022\021\n" + "\007user_id\030\001 \001(\tH\000\022\022\n" + "\010group_id\030\002 \001(\tH\000\022\034\n" + "\022external_entity_id\030\003 \001(\tH\000B\013\n" - + "\tprincipal\"n\n" + + "\tprincipal\"\223\001\n" + "\024HealthcareFhirConfig\022\"\n" + "\032enable_configurable_schema\030\001 \001(\010\0222\n" - + "*enable_static_indexing_for_batch_ingestion\030\002 \001(\010\"\314\001\n" + + "*enable_static_indexing_for_batch_ingestion\030\002 \001(\010\022#\n" + + "\025initial_filter_groups\030\004 \003(\tB\004\342A\001\001\"\314\001\n" + "\023SearchLinkPromotion\022\023\n" + "\005title\030\001 \001(\tB\004\342A\001\002\022\021\n" + "\003uri\030\002 \001(\tB\004\342A\001\001\022B\n" @@ -112,18 +159,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'discoveryengine.googleapis.com/Document\022\027\n" + "\timage_uri\030\003 \001(\tB\004\342A\001\001\022\031\n" + "\013description\030\004 \001(\tB\004\342A\001\001\022\025\n" - + "\007enabled\030\005 \001(\010B\004\342A\001\001*b\n" + + "\007enabled\030\005 \001(\010B\004\342A\001\001\"\357\002\n\r" + + "SessionConfig\022o\n" + + "\031session_management_policy\030\001 \001(\0162F.google.cloud." + + "discoveryengine.v1.SessionConfig.SessionManagementPolicyB\004\342A\001\001\022T\n" + + "\013session_ttl\030\002 " + + "\001(\01329.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlB\004\342A\001\001\032)\n\n" + + "SessionTtl\022\016\n" + + "\004days\030\001 \001(\005H\000B\013\n" + + "\ttime_info\"l\n" + + "\027SessionManagementPolicy\022)\n" + + "%SESSION_MANAGEMENT_POLICY_UNSPECIFIED\020\000\022\017\n" + + "\013NOT_MANAGED\020\001\022\025\n" + + "\021VERTEX_AI_MANAGED\020\002\"\370\001\n" + + "\024DataProtectionPolicy\022\203\001\n" + + " sensitive_data_protection_policy\030\001 \001(\0132S.google.cloud.discoveryengine" + + ".v1.DataProtectionPolicy.SensitiveDataProtectionPolicyB\004\342A\001\001\032Z\n" + + "\035SensitiveDataProtectionPolicy\0229\n" + + "\006policy\030\001 \001(\tB)\342A\001\001\372A\"\n" + + " dlp.googleapis.com/ContentPolicy*b\n" + "\020IndustryVertical\022!\n" + "\035INDUSTRY_VERTICAL_UNSPECIFIED\020\000\022\013\n" + "\007GENERIC\020\001\022\t\n" + "\005MEDIA\020\002\022\023\n" - + "\017HEALTHCARE_FHIR\020\007*\244\001\n" + + "\017HEALTHCARE_FHIR\020\007*\277\001\n" + "\014SolutionType\022\035\n" + "\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n" + "\034SOLUTION_TYPE_RECOMMENDATION\020\001\022\030\n" + "\024SOLUTION_TYPE_SEARCH\020\002\022\026\n" + "\022SOLUTION_TYPE_CHAT\020\003\022!\n" - + "\035SOLUTION_TYPE_GENERATIVE_CHAT\020\004*h\n\r" + + "\035SOLUTION_TYPE_GENERATIVE_CHAT\020\004\022\031\n" + + "\025SOLUTION_TYPE_AI_MODE\020\005*h\n\r" + "SearchUseCase\022\037\n" + "\033SEARCH_USE_CASE_UNSPECIFIED\020\000\022\032\n" + "\026SEARCH_USE_CASE_SEARCH\020\001\022\032\n" @@ -134,38 +200,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SEARCH_TIER_ENTERPRISE\020\002*C\n" + "\013SearchAddOn\022\035\n" + "\031SEARCH_ADD_ON_UNSPECIFIED\020\000\022\025\n" - + "\021SEARCH_ADD_ON_LLM\020\001B\332\r\n" - + "#com.google.cloud.discoveryengine.v1B\013CommonProtoP\001ZMcloud.google.co" - + "m/go/discoveryengine/apiv1/discoveryengi" - + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" - + "\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Goo" - + "gle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1\352A\346\001\n" - + "%discoveryengine.googleapis.com/Branch\022Qprojects/{" - + "project}/locations/{location}/dataStores/{data_store}/branches/{branch}\022jproject" - + "s/{project}/locations/{location}/collect" - + "ions/{collection}/dataStores/{data_store}/branches/{branch}\352Am\n" - + ")discoveryengine.googleapis.com/Collection\022@projects/{pro" - + "ject}/locations/{location}/collections/{collection}\352AR\n" - + "\'discoveryengine.googleap" - + "is.com/Location\022\'projects/{project}/locations/{location}\352A}\n" - + ".discoveryengine.googleapis.com/GroundingConfig\022Kprojects/{p" - + "roject}/locations/{location}/groundingConfigs/{grounding_config}\352Aw\n" - + ",discoveryengine.googleapis.com/RankingConfig\022Gproje" - + "cts/{project}/locations/{location}/rankingConfigs/{ranking_config}\352Aw\n" - + ",discoveryengine.googleapis.com/LicenseConfig\022Gpro" - + "jects/{project}/locations/{location}/licenseConfigs/{license_config}\352Ak\n" - + "(discoveryengine.googleapis.com/UserStore\022?proje" - + "cts/{project}/locations/{location}/userStores/{user_store}\352Ay\n" - + "#healthcare.googleapis.com/FhirStore\022Rprojects/{project}/l" - + "ocations/{location}/datasets/{dataset}/fhirStores/{fhir_store}\352A\244\001\n" - + "&healthcare.googleapis.com/FhirResource\022zprojects/{pr" - + "oject}/locations/{location}/datasets/{da" - + "taset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}\352Ay\n" - + "\"cloudkms.googleapis.com/CryptoKeys\022Sprojects/" - + "{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\247\001\n" - + ")cloudkms.googleapis.com/CryptoKeyVersions\022zprojects/{project}/locations/{locatio" - + "n}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_ver" - + "sion}b\006proto3" + + "\021SEARCH_ADD_ON_LLM\020\001*\353\004\n" + + "\020SubscriptionTier\022!\n" + + "\035SUBSCRIPTION_TIER_UNSPECIFIED\020\000\022\034\n" + + "\030SUBSCRIPTION_TIER_SEARCH\020\001\022*\n" + + "&SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT\020\002\022!\n" + + "\035SUBSCRIPTION_TIER_NOTEBOOK_LM\020\003\022&\n" + + "\"SUBSCRIPTION_TIER_FRONTLINE_WORKER\020\004\022(\n" + + "$SUBSCRIPTION_TIER_AGENTSPACE_STARTER\020\n" + + "\022)\n" + + "%SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS\020\006\022 \n" + + "\034SUBSCRIPTION_TIER_ENTERPRISE\020\007\022)\n" + + "%SUBSCRIPTION_TIER_ENTERPRISE_EMERGING\020\017\022\031\n" + + "\025SUBSCRIPTION_TIER_EDU\020\010\022\035\n" + + "\031SUBSCRIPTION_TIER_EDU_PRO\020\t\022\"\n" + + "\036SUBSCRIPTION_TIER_EDU_EMERGING\020\013\022&\n" + + "\"SUBSCRIPTION_TIER_EDU_PRO_EMERGING\020\014\022\'\n" + + "#SUBSCRIPTION_TIER_FRONTLINE_STARTER\020\r" + + "\022&\n" + + "\"SUBSCRIPTION_TIER_CONSUMPTION_ONLY\020\020\022&\n" + + "\"SUBSCRIPTION_TIER_EDU_GOV_EMERGING\020\021*\267\001\n" + + "\020SubscriptionTerm\022!\n" + + "\035SUBSCRIPTION_TERM_UNSPECIFIED\020\000\022\037\n" + + "\033SUBSCRIPTION_TERM_ONE_MONTH\020\001\022\036\n" + + "\032SUBSCRIPTION_TERM_ONE_YEAR\020\002\022!\n" + + "\035SUBSCRIPTION_TERM_THREE_YEARS\020\003\022\034\n" + + "\030SUBSCRIPTION_TERM_CUSTOM\020\006B\202\024\n" + + "#com.google.cloud.discoveryengine.v1B\013CommonProtoP\001ZMcloud.google.com/" + + "go/discoveryengine/apiv1/discoveryengine" + + "pb;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002" + + "\037Google.Cloud.DiscoveryEngine.V1\312\002\037Googl" + + "e\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1\352A\346\001\n" + + "%discoveryengine.googleapis.com/Branch\022Qprojects/{pr" + + "oject}/locations/{location}/dataStores/{data_store}/branches/{branch}\022jprojects/" + + "{project}/locations/{location}/collectio" + + "ns/{collection}/dataStores/{data_store}/branches/{branch}\352AR\n" + + "\'discoveryengine.go" + + "ogleapis.com/Location\022\'projects/{project}/locations/{location}\352A}\n" + + ".discoveryengine.googleapis.com/GroundingConfig\022Kproje" + + "cts/{project}/locations/{location}/groundingConfigs/{grounding_config}\352Aw\n" + + ",discoveryengine.googleapis.com/RankingConfig\022" + + "Gprojects/{project}/locations/{location}/rankingConfigs/{ranking_config}\352A\322\002\n" + + "/discoveryengine.googleapis.com/CompletionConfig\022Pprojects/{project}/locations/{loc" + + "ation}/dataStores/{data_store}/completionConfig\022iprojects/{project}/locations/{l" + + "ocation}/collections/{collection}/dataStores/{data_store}/completionConfig\022bproj" + + "ects/{project}/locations/{location}/coll" + + "ections/{collection}/engines/{engine}/completionConfig\352A\235\001\n" + + ":discoveryengine.googleapis.com/BillingAccountLicenseConfig\022_" + + "billingAccounts/{billing_account}/billin" + + "gAccountLicenseConfigs/{billing_account_license_config}\352Ag\n" + + "\'discoveryengine.googleapis.com/Notebook\022 - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. + * Optional. A unique identifier for tracking visitors. For example, this + * could be implemented with an HTTP cookie, which should be able to uniquely + * identify a visitor on a single device. This unique identifier should not + * change if the visitor logs in or out of the website. * * This field should NOT have a fixed value such as `unknown_visitor`. * @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getQueryModelBytes() { * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. * * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -322,10 +322,10 @@ public java.lang.String getUserPseudoId() { * * *
-   * A unique identifier for tracking visitors. For example, this could be
-   * implemented with an HTTP cookie, which should be able to uniquely identify
-   * a visitor on a single device. This unique identifier should not change if
-   * the visitor logs in or out of the website.
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
    *
    * This field should NOT have a fixed value such as `unknown_visitor`.
    *
@@ -338,7 +338,7 @@ public java.lang.String getUserPseudoId() {
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -1228,10 +1228,10 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { * * *
-     * A unique identifier for tracking visitors. For example, this could be
-     * implemented with an HTTP cookie, which should be able to uniquely identify
-     * a visitor on a single device. This unique identifier should not change if
-     * the visitor logs in or out of the website.
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
      *
      * This field should NOT have a fixed value such as `unknown_visitor`.
      *
@@ -1244,7 +1244,7 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -1264,10 +1264,10 @@ public java.lang.String getUserPseudoId() { * * *
-     * A unique identifier for tracking visitors. For example, this could be
-     * implemented with an HTTP cookie, which should be able to uniquely identify
-     * a visitor on a single device. This unique identifier should not change if
-     * the visitor logs in or out of the website.
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
      *
      * This field should NOT have a fixed value such as `unknown_visitor`.
      *
@@ -1280,7 +1280,7 @@ public java.lang.String getUserPseudoId() {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -1300,10 +1300,10 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { * * *
-     * A unique identifier for tracking visitors. For example, this could be
-     * implemented with an HTTP cookie, which should be able to uniquely identify
-     * a visitor on a single device. This unique identifier should not change if
-     * the visitor logs in or out of the website.
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
      *
      * This field should NOT have a fixed value such as `unknown_visitor`.
      *
@@ -1316,7 +1316,7 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The userPseudoId to set. * @return This builder for chaining. @@ -1335,10 +1335,10 @@ public Builder setUserPseudoId(java.lang.String value) { * * *
-     * A unique identifier for tracking visitors. For example, this could be
-     * implemented with an HTTP cookie, which should be able to uniquely identify
-     * a visitor on a single device. This unique identifier should not change if
-     * the visitor logs in or out of the website.
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
      *
      * This field should NOT have a fixed value such as `unknown_visitor`.
      *
@@ -1351,7 +1351,7 @@ public Builder setUserPseudoId(java.lang.String value) {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1366,10 +1366,10 @@ public Builder clearUserPseudoId() { * * *
-     * A unique identifier for tracking visitors. For example, this could be
-     * implemented with an HTTP cookie, which should be able to uniquely identify
-     * a visitor on a single device. This unique identifier should not change if
-     * the visitor logs in or out of the website.
+     * Optional. A unique identifier for tracking visitors. For example, this
+     * could be implemented with an HTTP cookie, which should be able to uniquely
+     * identify a visitor on a single device. This unique identifier should not
+     * change if the visitor logs in or out of the website.
      *
      * This field should NOT have a fixed value such as `unknown_visitor`.
      *
@@ -1382,7 +1382,7 @@ public Builder clearUserPseudoId() {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java index f3af2e0e616c..3eff02040250 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompleteQueryRequestOrBuilder.java @@ -150,10 +150,10 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * A unique identifier for tracking visitors. For example, this could be
-   * implemented with an HTTP cookie, which should be able to uniquely identify
-   * a visitor on a single device. This unique identifier should not change if
-   * the visitor logs in or out of the website.
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
    *
    * This field should NOT have a fixed value such as `unknown_visitor`.
    *
@@ -166,7 +166,7 @@ public interface CompleteQueryRequestOrBuilder
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -176,10 +176,10 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * A unique identifier for tracking visitors. For example, this could be
-   * implemented with an HTTP cookie, which should be able to uniquely identify
-   * a visitor on a single device. This unique identifier should not change if
-   * the visitor logs in or out of the website.
+   * Optional. A unique identifier for tracking visitors. For example, this
+   * could be implemented with an HTTP cookie, which should be able to uniquely
+   * identify a visitor on a single device. This unique identifier should not
+   * change if the visitor logs in or out of the website.
    *
    * This field should NOT have a fixed value such as `unknown_visitor`.
    *
@@ -192,7 +192,7 @@ public interface CompleteQueryRequestOrBuilder
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionConfigName.java new file mode 100644 index 000000000000..14ac139904b4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionConfigName.java @@ -0,0 +1,482 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class CompletionConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/completionConfig"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/completionConfig"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_ENGINE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/completionConfig"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String collection; + private final String engine; + + @Deprecated + protected CompletionConfigName() { + project = null; + location = null; + dataStore = null; + collection = null; + engine = null; + } + + private CompletionConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + collection = null; + engine = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE; + } + + private CompletionConfigName(ProjectLocationCollectionDataStoreBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + engine = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE; + } + + private CompletionConfigName(ProjectLocationCollectionEngineBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + engine = Preconditions.checkNotNull(builder.getEngine()); + dataStore = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationDataStoreBuilder() { + return new Builder(); + } + + public static ProjectLocationCollectionDataStoreBuilder + newProjectLocationCollectionDataStoreBuilder() { + return new ProjectLocationCollectionDataStoreBuilder(); + } + + public static ProjectLocationCollectionEngineBuilder newProjectLocationCollectionEngineBuilder() { + return new ProjectLocationCollectionEngineBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CompletionConfigName of(String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + public static CompletionConfigName ofProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + public static CompletionConfigName ofProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build(); + } + + public static CompletionConfigName ofProjectLocationCollectionEngineName( + String project, String location, String collection, String engine) { + return newProjectLocationCollectionEngineBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .build(); + } + + public static String format(String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static String formatProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static String formatProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static String formatProjectLocationCollectionEngineName( + String project, String location, String collection, String engine) { + return newProjectLocationCollectionEngineBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .build() + .toString(); + } + + public static @Nullable CompletionConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_STORE.match(formattedString); + return ofProjectLocationDataStoreName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("data_store")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_COLLECTION_DATA_STORE.match(formattedString); + return ofProjectLocationCollectionDataStoreName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store")); + } else if (PROJECT_LOCATION_COLLECTION_ENGINE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_COLLECTION_ENGINE.match(formattedString); + return ofProjectLocationCollectionEngineName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("engine")); + } + throw new ValidationException( + "CompletionConfigName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable CompletionConfigName> values) { + List list = new ArrayList<>(values.size()); + for (CompletionConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_ENGINE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + if (engine != null) { + fieldMapBuilder.put("engine", engine); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CompletionConfigName that = ((CompletionConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.collection, that.collection) + && Objects.equals(this.engine, that.engine); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(collection); + h *= 1000003; + h ^= Objects.hashCode(engine); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/dataStores/{data_store}/completionConfig. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + private Builder(CompletionConfigName completionConfigName) { + Preconditions.checkArgument( + Objects.equals(completionConfigName.pathTemplate, PROJECT_LOCATION_DATA_STORE), + "toBuilder is only supported when CompletionConfigName has the pattern of" + + " projects/{project}/locations/{location}/dataStores/{data_store}/completionConfig"); + this.project = completionConfigName.project; + this.location = completionConfigName.location; + this.dataStore = completionConfigName.dataStore; + } + + public CompletionConfigName build() { + return new CompletionConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/completionConfig. + */ + public static class ProjectLocationCollectionDataStoreBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + + protected ProjectLocationCollectionDataStoreBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public ProjectLocationCollectionDataStoreBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public CompletionConfigName build() { + return new CompletionConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/completionConfig. + */ + public static class ProjectLocationCollectionEngineBuilder { + private String project; + private String location; + private String collection; + private String engine; + + protected ProjectLocationCollectionEngineBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public ProjectLocationCollectionEngineBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionEngineBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionEngineBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionEngineBuilder setEngine(String engine) { + this.engine = engine; + return this; + } + + public CompletionConfigName build() { + return new CompletionConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java index 9dc68d91fcb1..5e8d835a99fa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfo.java @@ -80,11 +80,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * End user selected
+   * Optional. End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The selectedSuggestion. */ @@ -105,11 +105,11 @@ public java.lang.String getSelectedSuggestion() { * * *
-   * End user selected
+   * Optional. End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for selectedSuggestion. */ @@ -486,11 +486,11 @@ public Builder mergeFrom( * * *
-     * End user selected
+     * Optional. End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The selectedSuggestion. */ @@ -510,11 +510,11 @@ public java.lang.String getSelectedSuggestion() { * * *
-     * End user selected
+     * Optional. End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for selectedSuggestion. */ @@ -534,11 +534,11 @@ public com.google.protobuf.ByteString getSelectedSuggestionBytes() { * * *
-     * End user selected
+     * Optional. End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The selectedSuggestion to set. * @return This builder for chaining. @@ -557,11 +557,11 @@ public Builder setSelectedSuggestion(java.lang.String value) { * * *
-     * End user selected
+     * Optional. End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -576,11 +576,11 @@ public Builder clearSelectedSuggestion() { * * *
-     * End user selected
+     * Optional. End user selected
      * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
      * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for selectedSuggestion to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java index 47fab2b3cd24..fdff0a5c90f8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionInfoOrBuilder.java @@ -30,11 +30,11 @@ public interface CompletionInfoOrBuilder * * *
-   * End user selected
+   * Optional. End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The selectedSuggestion. */ @@ -44,11 +44,11 @@ public interface CompletionInfoOrBuilder * * *
-   * End user selected
+   * Optional. End user selected
    * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion].
    * 
* - * string selected_suggestion = 1; + * string selected_suggestion = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for selectedSuggestion. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java index 76a9ebc52849..9970b5ce95cd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceProto.java @@ -52,6 +52,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_CompleteQueryResponse_QuerySuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -61,90 +97,169 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n8google/cloud/discoveryengine/v1/comple" - + "tion_service.proto\022\037google.cloud.discove" + "\n" + + "8google/cloud/discoveryengine/v1/completion_service.proto\022\037google.cloud.discove" + "ryengine.v1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\0323google/cloud/discoveryengine/v1/" - + "import_config.proto\0322google/cloud/discov" - + "eryengine/v1/purge_config.proto\032#google/" - + "longrunning/operations.proto\"\301\001\n\024Complet" - + "eQueryRequest\022E\n\ndata_store\030\001 \001(\tB1\342A\001\002\372" - + "A*\n(discoveryengine.googleapis.com/DataS" - + "tore\022\023\n\005query\030\002 \001(\tB\004\342A\001\002\022\023\n\013query_model" - + "\030\003 \001(\t\022\026\n\016user_pseudo_id\030\004 \001(\t\022 \n\030includ" - + "e_tail_suggestions\030\005 \001(\010\"\340\001\n\025CompleteQue" - + "ryResponse\022a\n\021query_suggestions\030\001 \003(\0132F." - + "google.cloud.discoveryengine.v1.Complete" - + "QueryResponse.QuerySuggestion\022\034\n\024tail_ma" - + "tch_triggered\030\002 \001(\010\032F\n\017QuerySuggestion\022\022" - + "\n\nsuggestion\030\001 \001(\t\022\037\n\027completable_field_" - + "paths\030\002 \003(\t2\357\021\n\021CompletionService\022\240\002\n\rCo" - + "mpleteQuery\0225.google.cloud.discoveryengi" - + "ne.v1.CompleteQueryRequest\0326.google.clou" - + "d.discoveryengine.v1.CompleteQueryRespon" - + "se\"\237\001\202\323\344\223\002\230\001\022B/v1/{data_store=projects/*" - + "/locations/*/dataStores/*}:completeQuery" - + "ZR\022P/v1/{data_store=projects/*/locations" - + "/*/collections/*/dataStores/*}:completeQ" - + "uery\022\345\003\n\037ImportSuggestionDenyListEntries" - + "\022G.google.cloud.discoveryengine.v1.Impor" - + "tSuggestionDenyListEntriesRequest\032\035.goog" - + "le.longrunning.Operation\"\331\002\312A\222\001\nGgoogle." - + "cloud.discoveryengine.v1.ImportSuggestio" - + "nDenyListEntriesResponse\022Ggoogle.cloud.d" - + "iscoveryengine.v1.ImportSuggestionDenyLi" - + "stEntriesMetadata\202\323\344\223\002\274\001\"_/v1/{parent=pr" - + "ojects/*/locations/*/collections/*/dataS" - + "tores/*}/suggestionDenyListEntries:impor" - + "t:\001*ZV\"Q/v1/{parent=projects/*/locations" - + "/*/dataStores/*}/suggestionDenyListEntri" - + "es:import:\001*\022\340\003\n\036PurgeSuggestionDenyList" - + "Entries\022F.google.cloud.discoveryengine.v" - + "1.PurgeSuggestionDenyListEntriesRequest\032" - + "\035.google.longrunning.Operation\"\326\002\312A\220\001\nFg" - + "oogle.cloud.discoveryengine.v1.PurgeSugg" - + "estionDenyListEntriesResponse\022Fgoogle.cl" - + "oud.discoveryengine.v1.PurgeSuggestionDe" - + "nyListEntriesMetadata\202\323\344\223\002\273\001\"^/v1/{paren" - + "t=projects/*/locations/*/collections/*/d" - + "ataStores/*}/suggestionDenyListEntries:p" - + "urge:\001*ZV\"Q/v1/{parent=projects/*/locati" - + "ons/*/dataStores/**}/suggestionDenyListE" - + "ntries:purge:\001*\022\315\003\n\033ImportCompletionSugg" - + "estions\022C.google.cloud.discoveryengine.v" - + "1.ImportCompletionSuggestionsRequest\032\035.g" - + "oogle.longrunning.Operation\"\311\002\312A\212\001\nCgoog" - + "le.cloud.discoveryengine.v1.ImportComple" - + "tionSuggestionsResponse\022Cgoogle.cloud.di" - + "scoveryengine.v1.ImportCompletionSuggest" - + "ionsMetadata\202\323\344\223\002\264\001\"[/v1/{parent=project" - + "s/*/locations/*/collections/*/dataStores" - + "/*}/completionSuggestions:import:\001*ZR\"M/" - + "v1/{parent=projects/*/locations/*/dataSt" - + "ores/*}/completionSuggestions:import:\001*\022" - + "\307\003\n\032PurgeCompletionSuggestions\022B.google." - + "cloud.discoveryengine.v1.PurgeCompletion" - + "SuggestionsRequest\032\035.google.longrunning." - + "Operation\"\305\002\312A\210\001\nBgoogle.cloud.discovery" - + "engine.v1.PurgeCompletionSuggestionsResp" - + "onse\022Bgoogle.cloud.discoveryengine.v1.Pu" - + "rgeCompletionSuggestionsMetadata\202\323\344\223\002\262\001\"" - + "Z/v1/{parent=projects/*/locations/*/coll" - + "ections/*/dataStores/*}/completionSugges" - + "tions:purge:\001*ZQ\"L/v1/{parent=projects/*" - + "/locations/*/dataStores/*}/completionSug" - + "gestions:purge:\001*\032R\312A\036discoveryengine.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\211\002\n#com.google.clo" - + "ud.discoveryengine.v1B\026CompletionService" - + "ProtoP\001ZMcloud.google.com/go/discoveryen" - + "gine/apiv1/discoveryenginepb;discoveryen" - + "ginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud." - + "DiscoveryEngine.V1\312\002\037Google\\Cloud\\Discov" - + "eryEngine\\V1\352\002\"Google::Cloud::DiscoveryE" - + "ngine::V1b\006proto3" + + ".proto\032,google/cloud/discoveryengine/v1/common.proto\032.google/cloud/discoveryengi" + + "ne/v1/document.proto\0323google/cloud/discoveryengine/v1/import_config.proto\0322googl" + + "e/cloud/discoveryengine/v1/purge_config." + + "proto\032#google/longrunning/operations.proto\032\037google/protobuf/timestamp.proto\"\307\001\n" + + "\024CompleteQueryRequest\022E\n\n" + + "data_store\030\001 \001(\tB1\342A\001\002\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022\023\n" + + "\005query\030\002 \001(\tB\004\342A\001\002\022\023\n" + + "\013query_model\030\003 \001(\t\022\034\n" + + "\016user_pseudo_id\030\004 \001(\tB\004\342A\001\001\022 \n" + + "\030include_tail_suggestions\030\005 \001(\010\"\340\001\n" + + "\025CompleteQueryResponse\022a\n" + + "\021query_suggestions\030\001 \003(\0132F.google.cloud.discoveryengin" + + "e.v1.CompleteQueryResponse.QuerySuggestion\022\034\n" + + "\024tail_match_triggered\030\002 \001(\010\032F\n" + + "\017QuerySuggestion\022\022\n\n" + + "suggestion\030\001 \001(\t\022\037\n" + + "\027completable_field_paths\030\002 \003(\t\"\353\010\n" + + "\034AdvancedCompleteQueryRequest\022S\n" + + "\021completion_config\030\001 \001(\tB8\342A\001\002\372A1\n" + + "/discoveryengine.googleapis.com/CompletionConfig\022\023\n" + + "\005query\030\002 \001(\tB\004\342A\001\002\022\023\n" + + "\013query_model\030\003 \001(\t\022\034\n" + + "\016user_pseudo_id\030\004 \001(\tB\004\342A\001\001\022B\n" + + "\tuser_info\030\t \001(\0132).goog" + + "le.cloud.discoveryengine.v1.UserInfoB\004\342A\001\001\022 \n" + + "\030include_tail_suggestions\030\005 \001(\010\022a\n\n" + + "boost_spec\030\006 \001(\0132G.google.cloud.discover" + + "yengine.v1.AdvancedCompleteQueryRequest.BoostSpecB\004\342A\001\001\022l\n" + + "\020suggestion_types\030\007 \003(\0162L.google.cloud.discoveryengine.v1.Adva" + + "ncedCompleteQueryRequest.SuggestionTypeB\004\342A\001\001\022u\n" + + "\025suggestion_type_specs\030\n" + + " \003(\0132P.google.cloud.discoveryengine.v1.AdvancedC" + + "ompleteQueryRequest.SuggestionTypeSpecB\004\342A\001\001\022\034\n" + + "\016experiment_ids\030\016 \003(\tB\004\342A\001\001\032\276\001\n" + + "\tBoostSpec\022y\n" + + "\025condition_boost_specs\030\001 \003(\0132Z.google.cloud.discoveryengine.v1.Advanc" + + "edCompleteQueryRequest.BoostSpec.ConditionBoostSpec\0326\n" + + "\022ConditionBoostSpec\022\021\n" + + "\tcondition\030\001 \001(\t\022\r\n" + + "\005boost\030\002 \001(\002\032\240\001\n" + + "\022SuggestionTypeSpec\022k\n" + + "\017suggestion_type\030\001 \001(\0162L.google.cloud.discoveryengine.v1.AdvancedCo" + + "mpleteQueryRequest.SuggestionTypeB\004\342A\001\001\022\035\n" + + "\017max_suggestions\030\002 \001(\005B\004\342A\001\001\"~\n" + + "\016SuggestionType\022\037\n" + + "\033SUGGESTION_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005QUERY\020\001\022\n\n" + + "\006PEOPLE\020\002\022\013\n" + + "\007CONTENT\020\003\022\021\n" + + "\r" + + "RECENT_SEARCH\020\004\022\024\n" + + "\020GOOGLE_WORKSPACE\020\005\"\322\014\n" + + "\035AdvancedCompleteQueryResponse\022i\n" + + "\021query_suggestions\030\001 \003(\0132N.google.cloud.disco" + + "veryengine.v1.AdvancedCompleteQueryResponse.QuerySuggestion\022\034\n" + + "\024tail_match_triggered\030\002 \001(\010\022k\n" + + "\022people_suggestions\030\003 \003(\0132O.google.cloud.discoveryengine.v1.Advanced" + + "CompleteQueryResponse.PersonSuggestion\022m\n" + + "\023content_suggestions\030\004 \003(\0132P.google.clo" + + "ud.discoveryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion\022x\n" + + "\031recent_search_suggestions\030\005 \003(\0132U.google.cloud." + + "discoveryengine.v1.AdvancedCompleteQueryResponse.RecentSearchSuggestion\032i\n" + + "\017QuerySuggestion\022\022\n\n" + + "suggestion\030\001 \001(\t\022\037\n" + + "\027completable_field_paths\030\002 \003(\t\022\022\n\n" + + "data_store\030\003 \003(\t\022\r\n" + + "\005score\030\004 \001(\001\032\305\003\n" + + "\020PersonSuggestion\022\022\n\n" + + "suggestion\030\001 \001(\t\022o\n" + + "\013person_type\030\002 \001(\0162Z.google.cloud.discoveryengine.v1.Advan" + + "cedCompleteQueryResponse.PersonSuggestion.PersonType\022;\n" + + "\010document\030\004 \001(\0132).google.cloud.discoveryengine.v1.Document\022A\n\n" + + "data_store\030\005 \001(\tB-\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022\r\n" + + "\005score\030\006 \001(\001\022\031\n" + + "\021display_photo_uri\030\007 \001(\t\022\027\n" + + "\017destination_uri\030\010 \001(\t\"i\n\n" + + "PersonType\022\033\n" + + "\027PERSON_TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016CLOUD_IDENTITY\020\001\022\030\n" + + "\024THIRD_PARTY_IDENTITY\020\002\022\020\n" + + "\014GOOGLE_GROUP\020\003\032\251\003\n" + + "\021ContentSuggestion\022\022\n\n" + + "suggestion\030\001 \001(\t\022r\n" + + "\014content_type\030\002 \001(\0162\\.google.cloud.discov" + + "eryengine.v1.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType\022;\n" + + "\010document\030\004 \001(\0132).google.cloud.discoveryengine.v1.Document\022A\n\n" + + "data_store\030\005 \001(\tB-\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022\r\n" + + "\005score\030\006 \001(\001\022\020\n" + + "\010icon_uri\030\007 \001(\t\022\027\n" + + "\017destination_uri\030\010 \001(\t\"R\n" + + "\013ContentType\022\034\n" + + "\030CONTENT_TYPE_UNSPECIFIED\020\000\022\024\n" + + "\020GOOGLE_WORKSPACE\020\001\022\017\n" + + "\013THIRD_PARTY\020\002\032s\n" + + "\026RecentSearchSuggestion\022\022\n\n" + + "suggestion\030\001 \001(\t\0226\n" + + "\022recent_search_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\r\n" + + "\005score\030\003 \001(\0012\276\027\n" + + "\021CompletionService\022\240\002\n\r" + + "CompleteQuery\0225.google.cloud.discoveryengine.v1.CompleteQueryRequest\0326.goo" + + "gle.cloud.discoveryengine.v1.CompleteQue" + + "ryResponse\"\237\001\202\323\344\223\002\230\001\022B/v1/{data_store=pr" + + "ojects/*/locations/*/dataStores/*}:completeQueryZR\022P/v1/{data_store=projects/*/l" + + "ocations/*/collections/*/dataStores/*}:completeQuery\022\332\003\n" + + "\025AdvancedCompleteQuery\022=.google.cloud.discoveryengine.v1.Advance" + + "dCompleteQueryRequest\032>.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRes" + + "ponse\"\301\002\202\323\344\223\002\272\002\"Z/v1/{completion_config=" + + "projects/*/locations/*/dataStores/*/completionConfig}:completeQuery:\001*Zm\"h/v1/{c" + + "ompletion_config=projects/*/locations/*/collections/*/dataStores/*/completionCon" + + "fig}:completeQuery:\001*Zj\"e/v1/{completion_config=projects/*/locations/*/collectio" + + "ns/*/engines/*/completionConfig}:completeQuery:\001*\022\345\003\n" + + "\037ImportSuggestionDenyListEntries\022G.google.cloud.discoveryengine.v1." + + "ImportSuggestionDenyListEntriesRequest\032\035.google.longrunning.Operation\"\331\002\312A\222\001\n" + + "Ggoogle.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse\022Ggoogle.cl" + + "oud.discoveryengine.v1.ImportSuggestionD" + + "enyListEntriesMetadata\202\323\344\223\002\274\001\"_/v1/{pare" + + "nt=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:" + + "import:\001*ZV\"Q/v1/{parent=projects/*/loca" + + "tions/*/dataStores/*}/suggestionDenyListEntries:import:\001*\022\340\003\n" + + "\036PurgeSuggestionDenyListEntries\022F.google.cloud.discoveryeng" + + "ine.v1.PurgeSuggestionDenyListEntriesReq" + + "uest\032\035.google.longrunning.Operation\"\326\002\312A\220\001\n" + + "Fgoogle.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse\022Fgoog" + + "le.cloud.discoveryengine.v1.PurgeSuggest" + + "ionDenyListEntriesMetadata\202\323\344\223\002\273\001\"^/v1/{" + + "parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntr" + + "ies:purge:\001*ZV\"Q/v1/{parent=projects/*/l" + + "ocations/*/dataStores/**}/suggestionDenyListEntries:purge:\001*\022\315\003\n" + + "\033ImportCompletionSuggestions\022C.google.cloud.discoveryeng" + + "ine.v1.ImportCompletionSuggestionsRequest\032\035.google.longrunning.Operation\"\311\002\312A\212\001\n" + + "Cgoogle.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponse\022Cgoogle.clo" + + "ud.discoveryengine.v1.ImportCompletionSu" + + "ggestionsMetadata\202\323\344\223\002\264\001\"[/v1/{parent=pr" + + "ojects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import:\001*" + + "ZR\"M/v1/{parent=projects/*/locations/*/d" + + "ataStores/*}/completionSuggestions:import:\001*\022\307\003\n" + + "\032PurgeCompletionSuggestions\022B.google.cloud.discoveryengine.v1.PurgeCompl" + + "etionSuggestionsRequest\032\035.google.longrunning.Operation\"\305\002\312A\210\001\n" + + "Bgoogle.cloud.discoveryengine.v1.PurgeCompletionSuggestion" + + "sResponse\022Bgoogle.cloud.discoveryengine." + + "v1.PurgeCompletionSuggestionsMetadata\202\323\344" + + "\223\002\262\001\"Z/v1/{parent=projects/*/locations/*" + + "/collections/*/dataStores/*}/completionSuggestions:purge:\001*ZQ\"L/v1/{parent=proje" + + "cts/*/locations/*/dataStores/*}/completi" + + "onSuggestions:purge:\001*\032\303\002\312A\036discoveryeng" + + "ine.googleapis.com\322A\236\002https://www.google" + + "apis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_search.query," + + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite,https://www.goo" + + "gleapis.com/auth/discoveryengine.readwri" + + "te,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\211\002\n" + + "#com.google.cloud.discoveryengine.v1B\026Completion" + + "ServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;disc" + + "overyenginepb\242\002\017DISCOVERYENGINE\252\002\037Google" + + ".Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud" + + "\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -154,9 +269,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(), com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(), com.google.cloud.discoveryengine.v1.PurgeConfigProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_CompleteQueryRequest_descriptor = getDescriptor().getMessageType(0); @@ -183,14 +301,121 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Suggestion", "CompletableFieldPaths", }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor, + new java.lang.String[] { + "CompletionConfig", + "Query", + "QueryModel", + "UserPseudoId", + "UserInfo", + "IncludeTailSuggestions", + "BoostSpec", + "SuggestionTypes", + "SuggestionTypeSpecs", + "ExperimentIds", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor, + new java.lang.String[] { + "ConditionBoostSpecs", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor, + new java.lang.String[] { + "Condition", "Boost", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor, + new java.lang.String[] { + "SuggestionType", "MaxSuggestions", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor, + new java.lang.String[] { + "QuerySuggestions", + "TailMatchTriggered", + "PeopleSuggestions", + "ContentSuggestions", + "RecentSearchSuggestions", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor, + new java.lang.String[] { + "Suggestion", "CompletableFieldPaths", "DataStore", "Score", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor, + new java.lang.String[] { + "Suggestion", + "PersonType", + "Document", + "DataStore", + "Score", + "DisplayPhotoUri", + "DestinationUri", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor, + new java.lang.String[] { + "Suggestion", + "ContentType", + "Document", + "DataStore", + "Score", + "IconUri", + "DestinationUri", + }); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor = + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor, + new java.lang.String[] { + "Suggestion", "RecentSearchTime", "Score", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.DocumentProto.getDescriptor(); com.google.cloud.discoveryengine.v1.ImportConfigProto.getDescriptor(); com.google.cloud.discoveryengine.v1.PurgeConfigProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConnectorType.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConnectorType.java new file mode 100644 index 000000000000..dff33c087e61 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConnectorType.java @@ -0,0 +1,495 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * The type of connector.
+ * New values may be added to this enum in the future.
+ * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.ConnectorType} + */ +@com.google.protobuf.Generated +public enum ConnectorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONNECTOR_TYPE_UNSPECIFIED = 0; + */ + CONNECTOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Third party connector to connector to third party application.
+   * 
+ * + * THIRD_PARTY = 1; + */ + THIRD_PARTY(1), + /** + * + * + *
+   * Data connector connects between FHIR store and VAIS datastore.
+   * 
+ * + * GCP_FHIR = 2; + */ + GCP_FHIR(2), + /** + * + * + *
+   * Big query connector.
+   * 
+ * + * BIG_QUERY = 3; + */ + BIG_QUERY(3), + /** + * + * + *
+   * Google Cloud Storage connector.
+   * 
+ * + * GCS = 4; + */ + GCS(4), + /** + * + * + *
+   * Gmail connector.
+   * 
+ * + * GOOGLE_MAIL = 5; + */ + GOOGLE_MAIL(5), + /** + * + * + *
+   * Google Calendar connector.
+   * 
+ * + * GOOGLE_CALENDAR = 6; + */ + GOOGLE_CALENDAR(6), + /** + * + * + *
+   * Google Drive connector.
+   * 
+ * + * GOOGLE_DRIVE = 7; + */ + GOOGLE_DRIVE(7), + /** + * + * + *
+   * Native Cloud Identity connector for people search powered by People API.
+   * 
+ * + * NATIVE_CLOUD_IDENTITY = 8; + */ + NATIVE_CLOUD_IDENTITY(8), + /** + * + * + *
+   * Federated connector, it is a third party connector that doesn't ingestion
+   * data, and search is powered by third party application's API.
+   * 
+ * + * THIRD_PARTY_FEDERATED = 9; + */ + THIRD_PARTY_FEDERATED(9), + /** + * + * + *
+   * Connector utilized for End User Authentication features.
+   * 
+ * + * THIRD_PARTY_EUA = 10; + */ + THIRD_PARTY_EUA(10), + /** + * + * + *
+   * Google Cloud NetApp Volumes connector.
+   * 
+ * + * GCNV = 11; + */ + GCNV(11), + /** + * + * + *
+   * Google Chat connector.
+   * 
+ * + * GOOGLE_CHAT = 12; + */ + GOOGLE_CHAT(12), + /** + * + * + *
+   * Google Sites connector.
+   * 
+ * + * GOOGLE_SITES = 13; + */ + GOOGLE_SITES(13), + /** + * + * + *
+   * Remote MCP based connector.
+   * 
+ * + * REMOTE_MCP = 14; + */ + REMOTE_MCP(14), + /** + * + * + *
+   * Google Workspace connector.
+   * 
+ * + * GOOGLE_WORKSPACE = 15; + */ + GOOGLE_WORKSPACE(15), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectorType"); + } + + /** + * + * + *
+   * Default value.
+   * 
+ * + * CONNECTOR_TYPE_UNSPECIFIED = 0; + */ + public static final int CONNECTOR_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Third party connector to connector to third party application.
+   * 
+ * + * THIRD_PARTY = 1; + */ + public static final int THIRD_PARTY_VALUE = 1; + + /** + * + * + *
+   * Data connector connects between FHIR store and VAIS datastore.
+   * 
+ * + * GCP_FHIR = 2; + */ + public static final int GCP_FHIR_VALUE = 2; + + /** + * + * + *
+   * Big query connector.
+   * 
+ * + * BIG_QUERY = 3; + */ + public static final int BIG_QUERY_VALUE = 3; + + /** + * + * + *
+   * Google Cloud Storage connector.
+   * 
+ * + * GCS = 4; + */ + public static final int GCS_VALUE = 4; + + /** + * + * + *
+   * Gmail connector.
+   * 
+ * + * GOOGLE_MAIL = 5; + */ + public static final int GOOGLE_MAIL_VALUE = 5; + + /** + * + * + *
+   * Google Calendar connector.
+   * 
+ * + * GOOGLE_CALENDAR = 6; + */ + public static final int GOOGLE_CALENDAR_VALUE = 6; + + /** + * + * + *
+   * Google Drive connector.
+   * 
+ * + * GOOGLE_DRIVE = 7; + */ + public static final int GOOGLE_DRIVE_VALUE = 7; + + /** + * + * + *
+   * Native Cloud Identity connector for people search powered by People API.
+   * 
+ * + * NATIVE_CLOUD_IDENTITY = 8; + */ + public static final int NATIVE_CLOUD_IDENTITY_VALUE = 8; + + /** + * + * + *
+   * Federated connector, it is a third party connector that doesn't ingestion
+   * data, and search is powered by third party application's API.
+   * 
+ * + * THIRD_PARTY_FEDERATED = 9; + */ + public static final int THIRD_PARTY_FEDERATED_VALUE = 9; + + /** + * + * + *
+   * Connector utilized for End User Authentication features.
+   * 
+ * + * THIRD_PARTY_EUA = 10; + */ + public static final int THIRD_PARTY_EUA_VALUE = 10; + + /** + * + * + *
+   * Google Cloud NetApp Volumes connector.
+   * 
+ * + * GCNV = 11; + */ + public static final int GCNV_VALUE = 11; + + /** + * + * + *
+   * Google Chat connector.
+   * 
+ * + * GOOGLE_CHAT = 12; + */ + public static final int GOOGLE_CHAT_VALUE = 12; + + /** + * + * + *
+   * Google Sites connector.
+   * 
+ * + * GOOGLE_SITES = 13; + */ + public static final int GOOGLE_SITES_VALUE = 13; + + /** + * + * + *
+   * Remote MCP based connector.
+   * 
+ * + * REMOTE_MCP = 14; + */ + public static final int REMOTE_MCP_VALUE = 14; + + /** + * + * + *
+   * Google Workspace connector.
+   * 
+ * + * GOOGLE_WORKSPACE = 15; + */ + public static final int GOOGLE_WORKSPACE_VALUE = 15; + + 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 ConnectorType 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 ConnectorType forNumber(int value) { + switch (value) { + case 0: + return CONNECTOR_TYPE_UNSPECIFIED; + case 1: + return THIRD_PARTY; + case 2: + return GCP_FHIR; + case 3: + return BIG_QUERY; + case 4: + return GCS; + case 5: + return GOOGLE_MAIL; + case 6: + return GOOGLE_CALENDAR; + case 7: + return GOOGLE_DRIVE; + case 8: + return NATIVE_CLOUD_IDENTITY; + case 9: + return THIRD_PARTY_FEDERATED; + case 10: + return THIRD_PARTY_EUA; + case 11: + return GCNV; + case 12: + return GOOGLE_CHAT; + case 13: + return GOOGLE_SITES; + case 14: + return REMOTE_MCP; + case 15: + return GOOGLE_WORKSPACE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectorType findValueByNumber(int number) { + return ConnectorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConnectorType[] VALUES = values(); + + public static ConnectorType 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 ConnectorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.ConnectorType) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceProto.java index 46c1efaaac76..e7993d943f6d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceProto.java @@ -106,7 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\004\342A\001\001\"k\n" + "\024ListControlsResponse\022:\n" + "\010controls\030\001 \003(\0132(.google.cloud.discoveryengine.v1.Control\022\027\n" - + "\017next_page_token\030\002 \001(\t2\345\016\n" + + "\017next_page_token\030\002 \001(\t2\343\017\n" + "\016ControlService\022\377\002\n\r" + "CreateControl\0225.google.cloud.discoveryengine.v1.CreateC" + "ontrolRequest\032(.google.cloud.discoveryen" @@ -139,13 +139,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\202\323\344\223\002\316\001\0229/v1/{parent=projects/*/location" + "s/*/dataStores/*}/controlsZI\022G/v1/{parent=projects/*/locations/*/collections/*/d" + "ataStores/*}/controlsZF\022D/v1/{parent=projects/*/locations/*/collections/*/engine" - + "s/*}/controls\032R\312A\036discoveryengine.google" - + "apis.com\322A.https://www.googleapis.com/auth/cloud-platformB\206\002\n" - + "#com.google.cloud.discoveryengine.v1B\023ControlServiceProtoP\001" - + "ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\242" - + "\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discove" - + "ryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEngi" - + "ne\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "s/*}/controls\032\317\001\312A\036discoveryengine.googl" + + "eapis.com\322A\252\001https://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwrite,ht" + + "tps://www.googleapis.com/auth/discoveryengine.serving.readwriteB\206\002\n" + + "#com.google.cloud.discoveryengine.v1B\023ControlServiceP" + + "rotoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryeng" + + "inepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.D" + + "iscoveryEngine.V1\312\002\037Google\\Cloud\\Discove" + + "ryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java index 224532d00a36..a43358592483 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceProto.java @@ -468,15 +468,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022answer_query_token\030\003 \001(\t\"P\n" + "\020GetAnswerRequest\022<\n" + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n" - + "%discoveryengine.googleapis.com/Answer\"\232\001\n" + + "%discoveryengine.googleapis.com/Answer\"\264\001\n" + "\024CreateSessionRequest\022A\n" + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022?\n" + "\007session\030\002" - + " \001(\0132(.google.cloud.discoveryengine.v1.SessionB\004\342A\001\002\"\210\001\n" + + " \001(\0132(.google.cloud.discoveryengine.v1.SessionB\004\342A\001\002\022\030\n\n" + + "session_id\030\003 \001(\tB\004\342A\001\001\"\210\001\n" + "\024UpdateSessionRequest\022?\n" - + "\007session\030\001 \001(\0132(.goog" - + "le.cloud.discoveryengine.v1.SessionB\004\342A\001\002\022/\n" + + "\007session\030\001" + + " \001(\0132(.google.cloud.discoveryengine.v1.SessionB\004\342A\001\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"U\n" + "\024DeleteSessionRequest\022=\n" + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" @@ -494,106 +495,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\005 \001(\t\"k\n" + "\024ListSessionsResponse\022:\n" + "\010sessions\030\001 \003(\0132(.google.cloud.discoveryengine.v1.Session\022\027\n" - + "\017next_page_token\030\002 \001(\t2\226+\n" + + "\017next_page_token\030\002 \001(\t2\224,\n" + "\033ConversationalSearchService\022\253\003\n" - + "\024ConverseConversation\022<.google.cloud.discoveryengine.v1.ConverseConversa" - + "tionRequest\032=.google.cloud.discoveryengine.v1.ConverseConversationResponse\"\225\002\332A\n" - + "name,query\202\323\344\223\002\201\002\"G/v1/{name=projects/*/" - + "locations/*/dataStores/*/conversations/*}:converse:\001*ZZ\"U/v1/{name=projects/*/lo" - + "cations/*/collections/*/dataStores/*/conversations/*}:converse:\001*ZW\"R/v1/{name=p" - + "rojects/*/locations/*/collections/*/engines/*/conversations/*}:converse:\001*\022\246\003\n" - + "\022CreateConversation\022:.google.cloud.discove" - + "ryengine.v1.CreateConversationRequest\032-.google.cloud.discoveryengine.v1.Conversa" - + "tion\"\244\002\332A\023parent,conversation\202\323\344\223\002\207\002\">/v" - + "1/{parent=projects/*/locations/*/dataStores/*}/conversations:\014conversationZ\\\"L/v" - + "1/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations:\014conv" - + "ersationZY\"I/v1/{parent=projects/*/locat" - + "ions/*/collections/*/engines/*}/conversations:\014conversation\022\326\002\n" - + "\022DeleteConversation\022:.google.cloud.discoveryengine.v1.Del" - + "eteConversationRequest\032\026.google.protobuf" - + ".Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*>/v1/{name=proje" - + "cts/*/locations/*/dataStores/*/conversations/*}ZN*L/v1/{name=projects/*/location" - + "s/*/collections/*/dataStores/*/conversations/*}ZK*I/v1/{name=projects/*/location" - + "s/*/collections/*/engines/*/conversations/*}\022\322\003\n" - + "\022UpdateConversation\022:.google.cloud.discoveryengine.v1.UpdateConversation" - + "Request\032-.google.cloud.discoveryengine.v" - + "1.Conversation\"\320\002\332A\030conversation,update_" - + "mask\202\323\344\223\002\256\0022K/v1/{conversation.name=proj" - + "ects/*/locations/*/dataStores/*/conversations/*}:\014conversationZi2Y/v1/{conversat" - + "ion.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:\014con" - + "versationZf2V/v1/{conversation.name=proj" - + "ects/*/locations/*/collections/*/engines/*/conversations/*}:\014conversation\022\347\002\n" - + "\017GetConversation\0227.google.cloud.discoveryen" - + "gine.v1.GetConversationRequest\032-.google." - + "cloud.discoveryengine.v1.Conversation\"\353\001" - + "\332A\004name\202\323\344\223\002\335\001\022>/v1/{name=projects/*/loc" - + "ations/*/dataStores/*/conversations/*}ZN\022L/v1/{name=projects/*/locations/*/colle" - + "ctions/*/dataStores/*/conversations/*}ZK" - + "\022I/v1/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}\022\372\002\n" - + "\021ListConversations\0229.google.cloud.discove" - + "ryengine.v1.ListConversationsRequest\032:.google.cloud.discoveryengine.v1.ListConve" - + "rsationsResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022>/v1" - + "/{parent=projects/*/locations/*/dataStores/*}/conversationsZN\022L/v1/{parent=proje" - + "cts/*/locations/*/collections/*/dataStores/*}/conversationsZK\022I/v1/{parent=proje" - + "cts/*/locations/*/collections/*/engines/*}/conversations\022\236\003\n" - + "\013AnswerQuery\0223.google.cloud.discoveryengine.v1.AnswerQueryRe" - + "quest\0324.google.cloud.discoveryengine.v1." - + "AnswerQueryResponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{serv" - + "ing_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:answer:\001*Zc\"^/v" - + "1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfi" - + "gs/*}:answer:\001*Z`\"[/v1/{serving_config=p" - + "rojects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer:\001*\022\270\003\n" - + "\021StreamAnswerQuery\0223.google.cloud.discovery" - + "engine.v1.AnswerQueryRequest\0324.google.cloud.discoveryengine.v1.AnswerQueryRespon" - + "se\"\265\002\202\323\344\223\002\256\002\"V/v1/{serving_config=projec" - + "ts/*/locations/*/dataStores/*/servingConfigs/*}:streamAnswer:\001*Zi\"d/v1/{serving_" - + "config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:strea" - + "mAnswer:\001*Zf\"a/v1/{serving_config=projec" - + "ts/*/locations/*/collections/*/engines/*/servingConfigs/*}:streamAnswer:\001*0\001\022\344\002\n" - + "\tGetAnswer\0221.google.cloud.discoveryengin" - + "e.v1.GetAnswerRequest\032\'.google.cloud.dis" - + "coveryengine.v1.Answer\"\372\001\332A\004name\202\323\344\223\002\354\001\022" - + "C/v1/{name=projects/*/locations/*/dataStores/*/sessions/*/answers/*}ZS\022Q/v1/{nam" - + "e=projects/*/locations/*/collections/*/dataStores/*/sessions/*/answers/*}ZP\022N/v1" - + "/{name=projects/*/locations/*/collections/*/engines/*/sessions/*/answers/*}\022\364\002\n\r" - + "CreateSession\0225.google.cloud.discoveryengine.v1.CreateSessionRequest\032(.google.cl" - + "oud.discoveryengine.v1.Session\"\201\002\332A\016pare" - + "nt,session\202\323\344\223\002\351\001\"9/v1/{parent=projects/" - + "*/locations/*/dataStores/*}/sessions:\007sessionZR\"G/v1/{parent=projects/*/location" - + "s/*/collections/*/dataStores/*}/sessions:\007sessionZO\"D/v1/{parent=projects/*/loca" - + "tions/*/collections/*/engines/*}/sessions:\007session\022\275\002\n\r" - + "DeleteSession\0225.google.cloud.discoveryengine.v1.DeleteSessionRequ" - + "est\032\026.google.protobuf.Empty\"\334\001\332A\004name\202\323\344" - + "\223\002\316\001*9/v1/{name=projects/*/locations/*/d" - + "ataStores/*/sessions/*}ZI*G/v1/{name=projects/*/locations/*/collections/*/dataSt" - + "ores/*/sessions/*}ZF*D/v1/{name=projects" - + "/*/locations/*/collections/*/engines/*/sessions/*}\022\221\003\n\r" - + "UpdateSession\0225.google.cloud.discoveryengine.v1.UpdateSessionRequ" - + "est\032(.google.cloud.discoveryengine.v1.Se" - + "ssion\"\236\002\332A\023session,update_mask\202\323\344\223\002\201\0022A/" - + "v1/{session.name=projects/*/locations/*/dataStores/*/sessions/*}:\007sessionZZ2O/v1" - + "/{session.name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}:\007se" - + "ssionZW2L/v1/{session.name=projects/*/lo" - + "cations/*/collections/*/engines/*/sessions/*}:\007session\022\311\002\n\n" - + "GetSession\0222.google.cloud.discoveryengine.v1.GetSessionReques" - + "t\032(.google.cloud.discoveryengine.v1.Sess" - + "ion\"\334\001\332A\004name\202\323\344\223\002\316\001\0229/v1/{name=projects" - + "/*/locations/*/dataStores/*/sessions/*}ZI\022G/v1/{name=projects/*/locations/*/coll" - + "ections/*/dataStores/*/sessions/*}ZF\022D/v" - + "1/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\022\334\002\n" - + "\014ListSessions\0224.google.cloud.discoveryengine.v1.Li" - + "stSessionsRequest\0325.google.cloud.discove" - + "ryengine.v1.ListSessionsResponse\"\336\001\332A\006pa" - + "rent\202\323\344\223\002\316\001\0229/v1/{parent=projects/*/loca" - + "tions/*/dataStores/*}/sessionsZI\022G/v1/{parent=projects/*/locations/*/collections" - + "/*/dataStores/*}/sessionsZF\022D/v1/{parent=projects/*/locations/*/collections/*/en" - + "gines/*}/sessions\032R\312A\036discoveryengine.go" - + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\223\002\n" - + "#com.google.cloud.discoveryengine.v1B ConversationalSea" - + "rchServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;d" - + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goo" - + "gle.Cloud.DiscoveryEngine.V1\312\002\037Google\\Cl" - + "oud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "\024ConverseConversation\022<.google.cloud.discovery" + + "engine.v1.ConverseConversationRequest\032=." + + "google.cloud.discoveryengine.v1.ConverseConversationResponse\"\225\002\332A\n" + + "name,query\202\323\344\223\002\201\002\"G/v1/{name=projects/*/locations/*/da" + + "taStores/*/conversations/*}:converse:\001*ZZ\"U/v1/{name=projects/*/locations/*/coll" + + "ections/*/dataStores/*/conversations/*}:converse:\001*ZW\"R/v1/{name=projects/*/loca" + + "tions/*/collections/*/engines/*/conversations/*}:converse:\001*\022\246\003\n" + + "\022CreateConversation\022:.google.cloud.discoveryengine.v1.Cr" + + "eateConversationRequest\032-.google.cloud.d" + + "iscoveryengine.v1.Conversation\"\244\002\332A\023pare" + + "nt,conversation\202\323\344\223\002\207\002\">/v1/{parent=proj" + + "ects/*/locations/*/dataStores/*}/conversations:\014conversationZ\\\"L/v1/{parent=proj" + + "ects/*/locations/*/collections/*/dataStores/*}/conversations:\014conversationZY\"I/v" + + "1/{parent=projects/*/locations/*/collect" + + "ions/*/engines/*}/conversations:\014conversation\022\326\002\n" + + "\022DeleteConversation\022:.google.cloud.discoveryengine.v1.DeleteConversatio" + + "nRequest\032\026.google.protobuf.Empty\"\353\001\332A\004na" + + "me\202\323\344\223\002\335\001*>/v1/{name=projects/*/location" + + "s/*/dataStores/*/conversations/*}ZN*L/v1/{name=projects/*/locations/*/collection" + + "s/*/dataStores/*/conversations/*}ZK*I/v1" + + "/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}\022\322\003\n" + + "\022UpdateConversation\022:.google.cloud.discoveryen" + + "gine.v1.UpdateConversationRequest\032-.google.cloud.discoveryengine.v1.Conversation" + + "\"\320\002\332A\030conversation,update_mask\202\323\344\223\002\256\0022K/" + + "v1/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}:\014conv" + + "ersationZi2Y/v1/{conversation.name=projects/*/locations/*/collections/*/dataStor" + + "es/*/conversations/*}:\014conversationZf2V/v1/{conversation.name=projects/*/locatio" + + "ns/*/collections/*/engines/*/conversations/*}:\014conversation\022\347\002\n" + + "\017GetConversation\0227.google.cloud.discoveryengine.v1.GetCon" + + "versationRequest\032-.google.cloud.discover" + + "yengine.v1.Conversation\"\353\001\332A\004name\202\323\344\223\002\335\001" + + "\022>/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}ZN\022L/v1/{name=pr" + + "ojects/*/locations/*/collections/*/dataStores/*/conversations/*}ZK\022I/v1/{name=pr" + + "ojects/*/locations/*/collections/*/engines/*/conversations/*}\022\372\002\n" + + "\021ListConversations\0229.google.cloud.discoveryengine.v1.Li" + + "stConversationsRequest\032:.google.cloud.discoveryengine.v1.ListConversationsRespon" + + "se\"\355\001\332A\006parent\202\323\344\223\002\335\001\022>/v1/{parent=proje" + + "cts/*/locations/*/dataStores/*}/conversationsZN\022L/v1/{parent=projects/*/location" + + "s/*/collections/*/dataStores/*}/conversationsZK\022I/v1/{parent=projects/*/location" + + "s/*/collections/*/engines/*}/conversations\022\236\003\n" + + "\013AnswerQuery\0223.google.cloud.discoveryengine.v1.AnswerQueryRequest\0324.google" + + ".cloud.discoveryengine.v1.AnswerQueryRes" + + "ponse\"\243\002\202\323\344\223\002\234\002\"P/v1/{serving_config=pro" + + "jects/*/locations/*/dataStores/*/servingConfigs/*}:answer:\001*Zc\"^/v1/{serving_con" + + "fig=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:answer:\001" + + "*Z`\"[/v1/{serving_config=projects/*/loca" + + "tions/*/collections/*/engines/*/servingConfigs/*}:answer:\001*\022\270\003\n" + + "\021StreamAnswerQuery\0223.google.cloud.discoveryengine.v1.Answ" + + "erQueryRequest\0324.google.cloud.discoverye" + + "ngine.v1.AnswerQueryResponse\"\265\002\202\323\344\223\002\256\002\"V" + + "/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:stream" + + "Answer:\001*Zi\"d/v1/{serving_config=projects/*/locations/*/collections/*/dataStores" + + "/*/servingConfigs/*}:streamAnswer:\001*Zf\"a/v1/{serving_config=projects/*/locations" + + "/*/collections/*/engines/*/servingConfigs/*}:streamAnswer:\001*0\001\022\344\002\n" + + "\tGetAnswer\0221.google.cloud.discoveryengine.v1.GetAnswer" + + "Request\032\'.google.cloud.discoveryengine.v" + + "1.Answer\"\372\001\332A\004name\202\323\344\223\002\354\001\022C/v1/{name=pro" + + "jects/*/locations/*/dataStores/*/sessions/*/answers/*}ZS\022Q/v1/{name=projects/*/l" + + "ocations/*/collections/*/dataStores/*/sessions/*/answers/*}ZP\022N/v1/{name=project" + + "s/*/locations/*/collections/*/engines/*/sessions/*/answers/*}\022\364\002\n\r" + + "CreateSession\0225.google.cloud.discoveryengine.v1.Create" + + "SessionRequest\032(.google.cloud.discoverye" + + "ngine.v1.Session\"\201\002\332A\016parent,session\202\323\344\223" + + "\002\351\001\"9/v1/{parent=projects/*/locations/*/" + + "dataStores/*}/sessions:\007sessionZR\"G/v1/{parent=projects/*/locations/*/collection" + + "s/*/dataStores/*}/sessions:\007sessionZO\"D/" + + "v1/{parent=projects/*/locations/*/collections/*/engines/*}/sessions:\007session\022\275\002\n" + + "\r" + + "DeleteSession\0225.google.cloud.discoverye" + + "ngine.v1.DeleteSessionRequest\032\026.google.p" + + "rotobuf.Empty\"\334\001\332A\004name\202\323\344\223\002\316\001*9/v1/{nam" + + "e=projects/*/locations/*/dataStores/*/sessions/*}ZI*G/v1/{name=projects/*/locati" + + "ons/*/collections/*/dataStores/*/session" + + "s/*}ZF*D/v1/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\022\221\003\n" + + "\r" + + "UpdateSession\0225.google.cloud.discoveryengine.v1.UpdateSessionRequest\032(.google.c" + + "loud.discoveryengine.v1.Session\"\236\002\332A\023ses" + + "sion,update_mask\202\323\344\223\002\201\0022A/v1/{session.na" + + "me=projects/*/locations/*/dataStores/*/sessions/*}:\007sessionZZ2O/v1/{session.name" + + "=projects/*/locations/*/collections/*/dataStores/*/sessions/*}:\007sessionZW2L/v1/{" + + "session.name=projects/*/locations/*/coll" + + "ections/*/engines/*/sessions/*}:\007session\022\311\002\n\n" + + "GetSession\0222.google.cloud.discoveryengine.v1.GetSessionRequest\032(.google.clo" + + "ud.discoveryengine.v1.Session\"\334\001\332A\004name\202" + + "\323\344\223\002\316\001\0229/v1/{name=projects/*/locations/*" + + "/dataStores/*/sessions/*}ZI\022G/v1/{name=projects/*/locations/*/collections/*/data" + + "Stores/*/sessions/*}ZF\022D/v1/{name=projec" + + "ts/*/locations/*/collections/*/engines/*/sessions/*}\022\334\002\n" + + "\014ListSessions\0224.google.cloud.discoveryengine.v1.ListSessionsRequ" + + "est\0325.google.cloud.discoveryengine.v1.Li" + + "stSessionsResponse\"\336\001\332A\006parent\202\323\344\223\002\316\001\0229/" + + "v1/{parent=projects/*/locations/*/dataStores/*}/sessionsZI\022G/v1/{parent=projects" + + "/*/locations/*/collections/*/dataStores/*}/sessionsZF\022D/v1/{parent=projects/*/lo" + + "cations/*/collections/*/engines/*}/sessi" + + "ons\032\317\001\312A\036discoveryengine.googleapis.com\322" + + "A\252\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/aut" + + "h/discoveryengine.readwrite,https://www." + + "googleapis.com/auth/discoveryengine.serving.readwriteB\223\002\n" + + "#com.google.cloud.discoveryengine.v1B ConversationalSearchServi" + + "ceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" + + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" + + "overyEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -985,7 +991,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_CreateSessionRequest_descriptor, new java.lang.String[] { - "Parent", "Session", + "Parent", "Session", "SessionId", }); internal_static_google_cloud_discoveryengine_v1_UpdateSessionRequest_descriptor = getDescriptor().getMessageType(12); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequest.java new file mode 100644 index 000000000000..13cce6d2888b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequest.java @@ -0,0 +1,1189 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for the
+ * [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1.AssistantService.CreateAssistant]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CreateAssistantRequest} + */ +@com.google.protobuf.Generated +public final class CreateAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateAssistantRequest) + CreateAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAssistantRequest"); + } + + // Use CreateAssistantRequest.newBuilder() to construct. + private CreateAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAssistantRequest() { + parent_ = ""; + assistantId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest.class, + com.google.cloud.discoveryengine.v1.CreateAssistantRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSISTANT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.Assistant assistant_; + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + @java.lang.Override + public boolean hasAssistant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant getAssistant() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantOrBuilder() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } + + public static final int ASSISTANT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+   * the final component of the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * with a length limit of 63 characters.
+   * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assistantId. + */ + @java.lang.Override + public java.lang.String getAssistantId() { + java.lang.Object ref = assistantId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+   * the final component of the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * with a length limit of 63 characters.
+   * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assistantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantIdBytes() { + java.lang.Object ref = assistantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAssistant()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, assistantId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssistant()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, assistantId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.CreateAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.CreateAssistantRequest other = + (com.google.cloud.discoveryengine.v1.CreateAssistantRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAssistant() != other.hasAssistant()) return false; + if (hasAssistant()) { + if (!getAssistant().equals(other.getAssistant())) return false; + } + if (!getAssistantId().equals(other.getAssistantId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAssistant()) { + hash = (37 * hash) + ASSISTANT_FIELD_NUMBER; + hash = (53 * hash) + getAssistant().hashCode(); + } + hash = (37 * hash) + ASSISTANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssistantId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for the
+   * [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1.AssistantService.CreateAssistant]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CreateAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.CreateAssistantRequest) + com.google.cloud.discoveryengine.v1.CreateAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CreateAssistantRequest.class, + com.google.cloud.discoveryengine.v1.CreateAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.CreateAssistantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssistantFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + assistantId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.CreateAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateAssistantRequest build() { + com.google.cloud.discoveryengine.v1.CreateAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1.CreateAssistantRequest result = + new com.google.cloud.discoveryengine.v1.CreateAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistant_ = assistantBuilder_ == null ? assistant_ : assistantBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.assistantId_ = assistantId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.CreateAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.CreateAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateAssistantRequest other) { + if (other == com.google.cloud.discoveryengine.v1.CreateAssistantRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAssistant()) { + mergeAssistant(other.getAssistant()); + } + if (!other.getAssistantId().isEmpty()) { + assistantId_ = other.assistantId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAssistantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + assistantId_ = 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 parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Assistant assistant_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder> + assistantBuilder_; + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + public boolean hasAssistant() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + public com.google.cloud.discoveryengine.v1.Assistant getAssistant() { + if (assistantBuilder_ == null) { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } else { + return assistantBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant(com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistant_ = value; + } else { + assistantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant( + com.google.cloud.discoveryengine.v1.Assistant.Builder builderForValue) { + if (assistantBuilder_ == null) { + assistant_ = builderForValue.build(); + } else { + assistantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAssistant(com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && assistant_ != null + && assistant_ != com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance()) { + getAssistantBuilder().mergeFrom(value); + } else { + assistant_ = value; + } + } else { + assistantBuilder_.mergeFrom(value); + } + if (assistant_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAssistant() { + bitField0_ = (bitField0_ & ~0x00000002); + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.Builder getAssistantBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAssistantFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantOrBuilder() { + if (assistantBuilder_ != null) { + return assistantBuilder_.getMessageOrBuilder(); + } else { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder> + internalGetAssistantFieldBuilder() { + if (assistantBuilder_ == null) { + assistantBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder>( + getAssistant(), getParentForChildren(), isClean()); + assistant_ = null; + } + return assistantBuilder_; + } + + private java.lang.Object assistantId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+     * the final component of the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * with a length limit of 63 characters.
+     * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assistantId. + */ + public java.lang.String getAssistantId() { + java.lang.Object ref = assistantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+     * the final component of the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * with a length limit of 63 characters.
+     * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assistantId. + */ + public com.google.protobuf.ByteString getAssistantIdBytes() { + java.lang.Object ref = assistantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+     * the final component of the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * with a length limit of 63 characters.
+     * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The assistantId to set. + * @return This builder for chaining. + */ + public Builder setAssistantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+     * the final component of the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * with a length limit of 63 characters.
+     * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAssistantId() { + assistantId_ = getDefaultInstance().getAssistantId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+     * the final component of the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+     *
+     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+     * with a length limit of 63 characters.
+     * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for assistantId to set. + * @return This builder for chaining. + */ + public Builder setAssistantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateAssistantRequest) + private static final com.google.cloud.discoveryengine.v1.CreateAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1.CreateAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..8ebbd4df3ae5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateAssistantRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CreateAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + boolean hasAssistant(); + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + com.google.cloud.discoveryengine.v1.Assistant getAssistant(); + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+   * the final component of the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * with a length limit of 63 characters.
+   * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assistantId. + */ + java.lang.String getAssistantId(); + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become
+   * the final component of the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name.
+   *
+   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
+   * with a length limit of 63 characters.
+   * 
+ * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assistantId. + */ + com.google.protobuf.ByteString getAssistantIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequest.java new file mode 100644 index 000000000000..5c3c608cd1ef --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequest.java @@ -0,0 +1,1183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [LicenseConfigService.CreateLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.CreateLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CreateLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) + CreateLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateLicenseConfigRequest"); + } + + // Use CreateLicenseConfigRequest.newBuilder() to construct. + private CreateLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateLicenseConfigRequest() { + parent_ = ""; + licenseConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + public static final int LICENSE_CONFIG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
+   * Optional. The ID to use for the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+   * become the final component of the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+   * name. We are using the tier (product edition) name as the license config id
+   * such as `search` or `search_and_assistant`.
+   * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + @java.lang.Override + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The ID to use for the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+   * become the final component of the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+   * name. We are using the tier (product edition) name as the license config id
+   * such as `search` or `search_and_assistant`.
+   * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLicenseConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, licenseConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLicenseConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, licenseConfigId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + } + if (!getLicenseConfigId().equals(other.getLicenseConfigId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + hash = (37 * hash) + LICENSE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [LicenseConfigService.CreateLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.CreateLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CreateLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + licenseConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.licenseConfigId_ = licenseConfigId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + if (!other.getLicenseConfigId().isEmpty()) { + licenseConfigId_ = other.licenseConfigId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetLicenseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + licenseConfigId_ = 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 parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + private java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
+     * Optional. The ID to use for the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+     * become the final component of the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+     * name. We are using the tier (product edition) name as the license config id
+     * such as `search` or `search_and_assistant`.
+     * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+     * become the final component of the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+     * name. We are using the tier (product edition) name as the license config id
+     * such as `search` or `search_and_assistant`.
+     * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+     * become the final component of the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+     * name. We are using the tier (product edition) name as the license config id
+     * such as `search` or `search_and_assistant`.
+     * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+     * become the final component of the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+     * name. We are using the tier (product edition) name as the license config id
+     * such as `search` or `search_and_assistant`.
+     * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfigId() { + licenseConfigId_ = getDefaultInstance().getLicenseConfigId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+     * become the final component of the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+     * name. We are using the tier (product edition) name as the license config id
+     * such as `search` or `search_and_assistant`.
+     * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..246347407be0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateLicenseConfigRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CreateLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig(); + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The ID to use for the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+   * become the final component of the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+   * name. We are using the tier (product edition) name as the license config id
+   * such as `search` or `search_and_assistant`.
+   * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + java.lang.String getLicenseConfigId(); + + /** + * + * + *
+   * Optional. The ID to use for the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will
+   * become the final component of the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource
+   * name. We are using the tier (product edition) name as the license config id
+   * such as `search` or `search_and_assistant`.
+   * 
+ * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + com.google.protobuf.ByteString getLicenseConfigIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequest.java new file mode 100644 index 000000000000..ecbc34d0c6f2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequest.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for CreateServingConfig method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CreateServingConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateServingConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.CreateServingConfigRequest) + CreateServingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateServingConfigRequest"); + } + + // Use CreateServingConfigRequest.newBuilder() to construct. + private CreateServingConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateServingConfigRequest() { + parent_ = ""; + servingConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.class, + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVING_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.ServingConfig servingConfig_; + + /** + * + * + *
+   * Required. The ServingConfig to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + @java.lang.Override + public boolean hasServingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The ServingConfig to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ServingConfig getServingConfig() { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance() + : servingConfig_; + } + + /** + * + * + *
+   * Required. The ServingConfig to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder getServingConfigOrBuilder() { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance() + : servingConfig_; + } + + public static final int SERVING_CONFIG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfigId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the ServingConfig, which will become the final
+   * component of the ServingConfig's resource name.
+   *
+   * This value should be 4-63 characters, and valid characters
+   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+   * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The servingConfigId. + */ + @java.lang.Override + public java.lang.String getServingConfigId() { + java.lang.Object ref = servingConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfigId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the ServingConfig, which will become the final
+   * component of the ServingConfig's resource name.
+   *
+   * This value should be 4-63 characters, and valid characters
+   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+   * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for servingConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServingConfigIdBytes() { + java.lang.Object ref = servingConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getServingConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, servingConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServingConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, servingConfigId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.CreateServingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest other = + (com.google.cloud.discoveryengine.v1.CreateServingConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasServingConfig() != other.hasServingConfig()) return false; + if (hasServingConfig()) { + if (!getServingConfig().equals(other.getServingConfig())) return false; + } + if (!getServingConfigId().equals(other.getServingConfigId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasServingConfig()) { + hash = (37 * hash) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + } + hash = (37 * hash) + SERVING_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getServingConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for CreateServingConfig method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.CreateServingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.CreateServingConfigRequest) + com.google.cloud.discoveryengine.v1.CreateServingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.class, + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetServingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + servingConfig_ = null; + if (servingConfigBuilder_ != null) { + servingConfigBuilder_.dispose(); + servingConfigBuilder_ = null; + } + servingConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateServingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateServingConfigRequest build() { + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest result = + new com.google.cloud.discoveryengine.v1.CreateServingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.CreateServingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.servingConfig_ = + servingConfigBuilder_ == null ? servingConfig_ : servingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.servingConfigId_ = servingConfigId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.CreateServingConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.CreateServingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateServingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.CreateServingConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasServingConfig()) { + mergeServingConfig(other.getServingConfig()); + } + if (!other.getServingConfigId().isEmpty()) { + servingConfigId_ = other.servingConfigId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetServingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + servingConfigId_ = 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 parent_ = ""; + + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.ServingConfig servingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ServingConfig, + com.google.cloud.discoveryengine.v1.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder> + servingConfigBuilder_; + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + public boolean hasServingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + public com.google.cloud.discoveryengine.v1.ServingConfig getServingConfig() { + if (servingConfigBuilder_ == null) { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance() + : servingConfig_; + } else { + return servingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setServingConfig(com.google.cloud.discoveryengine.v1.ServingConfig value) { + if (servingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + servingConfig_ = value; + } else { + servingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setServingConfig( + com.google.cloud.discoveryengine.v1.ServingConfig.Builder builderForValue) { + if (servingConfigBuilder_ == null) { + servingConfig_ = builderForValue.build(); + } else { + servingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeServingConfig(com.google.cloud.discoveryengine.v1.ServingConfig value) { + if (servingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && servingConfig_ != null + && servingConfig_ + != com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance()) { + getServingConfigBuilder().mergeFrom(value); + } else { + servingConfig_ = value; + } + } else { + servingConfigBuilder_.mergeFrom(value); + } + if (servingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearServingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + servingConfig_ = null; + if (servingConfigBuilder_ != null) { + servingConfigBuilder_.dispose(); + servingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.ServingConfig.Builder getServingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetServingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder getServingConfigOrBuilder() { + if (servingConfigBuilder_ != null) { + return servingConfigBuilder_.getMessageOrBuilder(); + } else { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance() + : servingConfig_; + } + } + + /** + * + * + *
+     * Required. The ServingConfig to create.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ServingConfig, + com.google.cloud.discoveryengine.v1.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder> + internalGetServingConfigFieldBuilder() { + if (servingConfigBuilder_ == null) { + servingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ServingConfig, + com.google.cloud.discoveryengine.v1.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder>( + getServingConfig(), getParentForChildren(), isClean()); + servingConfig_ = null; + } + return servingConfigBuilder_; + } + + private java.lang.Object servingConfigId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the ServingConfig, which will become the final
+     * component of the ServingConfig's resource name.
+     *
+     * This value should be 4-63 characters, and valid characters
+     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+     * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The servingConfigId. + */ + public java.lang.String getServingConfigId() { + java.lang.Object ref = servingConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the ServingConfig, which will become the final
+     * component of the ServingConfig's resource name.
+     *
+     * This value should be 4-63 characters, and valid characters
+     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+     * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for servingConfigId. + */ + public com.google.protobuf.ByteString getServingConfigIdBytes() { + java.lang.Object ref = servingConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the ServingConfig, which will become the final
+     * component of the ServingConfig's resource name.
+     *
+     * This value should be 4-63 characters, and valid characters
+     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+     * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The servingConfigId to set. + * @return This builder for chaining. + */ + public Builder setServingConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servingConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the ServingConfig, which will become the final
+     * component of the ServingConfig's resource name.
+     *
+     * This value should be 4-63 characters, and valid characters
+     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+     * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServingConfigId() { + servingConfigId_ = getDefaultInstance().getServingConfigId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the ServingConfig, which will become the final
+     * component of the ServingConfig's resource name.
+     *
+     * This value should be 4-63 characters, and valid characters
+     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+     * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for servingConfigId to set. + * @return This builder for chaining. + */ + public Builder setServingConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servingConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateServingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.CreateServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1.CreateServingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.CreateServingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.CreateServingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServingConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CreateServingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..5141252c95c3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateServingConfigRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface CreateServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.CreateServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ServingConfig to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + boolean hasServingConfig(); + + /** + * + * + *
+   * Required. The ServingConfig to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + com.google.cloud.discoveryengine.v1.ServingConfig getServingConfig(); + + /** + * + * + *
+   * Required. The ServingConfig to create.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder getServingConfigOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the ServingConfig, which will become the final
+   * component of the ServingConfig's resource name.
+   *
+   * This value should be 4-63 characters, and valid characters
+   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+   * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The servingConfigId. + */ + java.lang.String getServingConfigId(); + + /** + * + * + *
+   * Required. The ID to use for the ServingConfig, which will become the final
+   * component of the ServingConfig's resource name.
+   *
+   * This value should be 4-63 characters, and valid characters
+   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
+   * 
+ * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for servingConfigId. + */ + com.google.protobuf.ByteString getServingConfigIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java index 75b8f9a0b4de..b8c18bd1cbea 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequest.java @@ -53,6 +53,7 @@ private CreateSessionRequest(com.google.protobuf.GeneratedMessage.Builder bui private CreateSessionRequest() { parent_ = ""; + sessionId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -189,6 +190,69 @@ public com.google.cloud.discoveryengine.v1.SessionOrBuilder getSessionOrBuilder( : session_; } + public static final int SESSION_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + + /** + * + * + *
+   * Optional. The ID to use for the session, which will become the final
+   * component of the session's resource name.
+   *
+   * This value should be 1-63 characters, and valid characters
+   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+   * be generated.
+   * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sessionId. + */ + @java.lang.Override + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The ID to use for the session, which will become the final
+   * component of the session's resource name.
+   *
+   * This value should be 1-63 characters, and valid characters
+   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+   * be generated.
+   * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -209,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSession()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, sessionId_); + } getUnknownFields().writeTo(output); } @@ -224,6 +291,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSession()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sessionId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -245,6 +315,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSession()) { if (!getSession().equals(other.getSession())) return false; } + if (!getSessionId().equals(other.getSessionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,6 +333,8 @@ public int hashCode() { hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); } + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -418,6 +491,7 @@ public Builder clear() { sessionBuilder_.dispose(); sessionBuilder_ = null; } + sessionId_ = ""; return this; } @@ -462,6 +536,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.CreateSessionRequ result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionId_ = sessionId_; + } result.bitField0_ |= to_bitField0_; } @@ -486,6 +563,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.CreateSessionReques if (other.hasSession()) { mergeSession(other.getSession()); } + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -524,6 +606,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -881,6 +969,142 @@ public com.google.cloud.discoveryengine.v1.SessionOrBuilder getSessionOrBuilder( return sessionBuilder_; } + private java.lang.Object sessionId_ = ""; + + /** + * + * + *
+     * Optional. The ID to use for the session, which will become the final
+     * component of the session's resource name.
+     *
+     * This value should be 1-63 characters, and valid characters
+     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+     * be generated.
+     * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sessionId. + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the session, which will become the final
+     * component of the session's resource name.
+     *
+     * This value should be 1-63 characters, and valid characters
+     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+     * be generated.
+     * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sessionId. + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the session, which will become the final
+     * component of the session's resource name.
+     *
+     * This value should be 1-63 characters, and valid characters
+     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+     * be generated.
+     * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sessionId to set. + * @return This builder for chaining. + */ + public Builder setSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sessionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the session, which will become the final
+     * component of the session's resource name.
+     *
+     * This value should be 1-63 characters, and valid characters
+     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+     * be generated.
+     * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the session, which will become the final
+     * component of the session's resource name.
+     *
+     * This value should be 1-63 characters, and valid characters
+     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+     * be generated.
+     * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sessionId to set. + * @return This builder for chaining. + */ + public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sessionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.CreateSessionRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java index cf7dba3b04c8..84345f167f28 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CreateSessionRequestOrBuilder.java @@ -100,4 +100,40 @@ public interface CreateSessionRequestOrBuilder *
*/ com.google.cloud.discoveryengine.v1.SessionOrBuilder getSessionOrBuilder(); + + /** + * + * + *
+   * Optional. The ID to use for the session, which will become the final
+   * component of the session's resource name.
+   *
+   * This value should be 1-63 characters, and valid characters
+   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+   * be generated.
+   * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sessionId. + */ + java.lang.String getSessionId(); + + /** + * + * + *
+   * Optional. The ID to use for the session, which will become the final
+   * component of the session's resource name.
+   *
+   * This value should be 1-63 characters, and valid characters
+   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
+   * be generated.
+   * 
+ * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sessionId. + */ + com.google.protobuf.ByteString getSessionIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnector.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnector.java new file mode 100644 index 000000000000..36ad9a6e4eda --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnector.java @@ -0,0 +1,25889 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Manages the connection to external data sources for all data stores grouped
+ * under a [Collection][google.cloud.discoveryengine.v1.Collection]. It's a
+ * singleton resource of
+ * [Collection][google.cloud.discoveryengine.v1.Collection]. The initialization
+ * is only supported through
+ * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+ * method, which will create a new
+ * [Collection][google.cloud.discoveryengine.v1.Collection] and initialize its
+ * [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector} + */ +@com.google.protobuf.Generated +public final class DataConnector extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector) + DataConnectorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataConnector"); + } + + // Use DataConnector.newBuilder() to construct. + private DataConnector(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataConnector() { + name_ = ""; + state_ = 0; + dataSource_ = ""; + removeParamKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + entities_ = java.util.Collections.emptyList(); + errors_ = java.util.Collections.emptyList(); + syncMode_ = 0; + kmsKeyName_ = ""; + destinationConfigs_ = java.util.Collections.emptyList(); + actionState_ = 0; + connectorModes_ = emptyIntList(); + staticIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + oauthStaticIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingReasons_ = emptyIntList(); + privateConnectivityProjectId_ = ""; + connectorType_ = 0; + realtimeState_ = 0; + alertPolicyConfigs_ = java.util.Collections.emptyList(); + egressFqdns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dynamicTools_ = java.util.Collections.emptyList(); + connectorSourceId_ = ""; + tag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.class, + com.google.cloud.discoveryengine.v1.DataConnector.Builder.class); + } + + /** + * + * + *
+   * The state of connector.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.DataConnector.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The connector is being set up.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The connector is successfully set up and awaiting next sync run.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The connector is in error. The error details can be found in
+     * [DataConnector.errors][google.cloud.discoveryengine.v1.DataConnector.errors].
+     * If the error is unfixable, the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] can be
+     * deleted by
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * API.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
+     * The connector is actively syncing records from the data source.
+     * 
+ * + * RUNNING = 4; + */ + RUNNING(4), + /** + * + * + *
+     * The connector has completed a sync run, but encountered non-fatal errors.
+     * 
+ * + * WARNING = 5; + */ + WARNING(5), + /** + * + * + *
+     * Connector initialization failed. Potential causes include runtime errors
+     * or issues in the asynchronous pipeline, preventing the request from
+     * reaching downstream services (except for some connector types).
+     * 
+ * + * INITIALIZATION_FAILED = 6; + */ + INITIALIZATION_FAILED(6), + /** + * + * + *
+     * Connector is in the process of an update.
+     * 
+ * + * UPDATING = 7; + */ + UPDATING(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The connector is being set up.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The connector is successfully set up and awaiting next sync run.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The connector is in error. The error details can be found in
+     * [DataConnector.errors][google.cloud.discoveryengine.v1.DataConnector.errors].
+     * If the error is unfixable, the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] can be
+     * deleted by
+     * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+     * API.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + /** + * + * + *
+     * The connector is actively syncing records from the data source.
+     * 
+ * + * RUNNING = 4; + */ + public static final int RUNNING_VALUE = 4; + + /** + * + * + *
+     * The connector has completed a sync run, but encountered non-fatal errors.
+     * 
+ * + * WARNING = 5; + */ + public static final int WARNING_VALUE = 5; + + /** + * + * + *
+     * Connector initialization failed. Potential causes include runtime errors
+     * or issues in the asynchronous pipeline, preventing the request from
+     * reaching downstream services (except for some connector types).
+     * 
+ * + * INITIALIZATION_FAILED = 6; + */ + public static final int INITIALIZATION_FAILED_VALUE = 6; + + /** + * + * + *
+     * Connector is in the process of an update.
+     * 
+ * + * UPDATING = 7; + */ + public static final int UPDATING_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return FAILED; + case 4: + return RUNNING; + case 5: + return WARNING; + case 6: + return INITIALIZATION_FAILED; + case 7: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnector.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataConnector.State) + } + + /** + * + * + *
+   * Defines the data synchronization mode supported by the data connector.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.DataConnector.SyncMode} + */ + public enum SyncMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The connector will sync data periodically based on the refresh_interval.
+     * Use it with auto_run_disabled to pause the periodic sync, or indicate a
+     * one-time sync.
+     * 
+ * + * PERIODIC = 0; + */ + PERIODIC(0), + /** + * + * + *
+     * The data will be synced in real time.
+     * 
+ * + * STREAMING = 1; + */ + STREAMING(1), + /** + * + * + *
+     * Connector that doesn't ingest data will have this value
+     * 
+ * + * UNSPECIFIED = 2; + */ + UNSPECIFIED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SyncMode"); + } + + /** + * + * + *
+     * The connector will sync data periodically based on the refresh_interval.
+     * Use it with auto_run_disabled to pause the periodic sync, or indicate a
+     * one-time sync.
+     * 
+ * + * PERIODIC = 0; + */ + public static final int PERIODIC_VALUE = 0; + + /** + * + * + *
+     * The data will be synced in real time.
+     * 
+ * + * STREAMING = 1; + */ + public static final int STREAMING_VALUE = 1; + + /** + * + * + *
+     * Connector that doesn't ingest data will have this value
+     * 
+ * + * UNSPECIFIED = 2; + */ + public static final int UNSPECIFIED_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 SyncMode 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 SyncMode forNumber(int value) { + switch (value) { + case 0: + return PERIODIC; + case 1: + return STREAMING; + case 2: + return UNSPECIFIED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncMode findValueByNumber(int number) { + return SyncMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnector.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final SyncMode[] VALUES = values(); + + public static SyncMode 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 SyncMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataConnector.SyncMode) + } + + /** + * + * + *
+   * The modes enabled for this connector. INGESTION, ACTIONS, FEDERATED, OR EUA
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.DataConnector.ConnectorMode} + */ + public enum ConnectorMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Connector mode unspecified.
+     * 
+ * + * CONNECTOR_MODE_UNSPECIFIED = 0; + */ + CONNECTOR_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Connector utilized for data ingestion.
+     * 
+ * + * DATA_INGESTION = 1; + */ + DATA_INGESTION(1), + /** + * + * + *
+     * Connector utilized for actions.
+     * 
+ * + * ACTIONS = 2; + */ + ACTIONS(2), + /** + * + * + *
+     * Connector utilized for federated search.
+     * 
+ * + * FEDERATED = 3; + */ + FEDERATED(3), + /** + * + * + *
+     * Connector utilized for End User Authentication.
+     * 
+ * + * EUA = 4; + */ + EUA(4), + /** + * + * + *
+     * Hybrid connector utilized for federated search and End User
+     * Authentication.
+     * 
+ * + * FEDERATED_AND_EUA = 5; + */ + FEDERATED_AND_EUA(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectorMode"); + } + + /** + * + * + *
+     * Connector mode unspecified.
+     * 
+ * + * CONNECTOR_MODE_UNSPECIFIED = 0; + */ + public static final int CONNECTOR_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Connector utilized for data ingestion.
+     * 
+ * + * DATA_INGESTION = 1; + */ + public static final int DATA_INGESTION_VALUE = 1; + + /** + * + * + *
+     * Connector utilized for actions.
+     * 
+ * + * ACTIONS = 2; + */ + public static final int ACTIONS_VALUE = 2; + + /** + * + * + *
+     * Connector utilized for federated search.
+     * 
+ * + * FEDERATED = 3; + */ + public static final int FEDERATED_VALUE = 3; + + /** + * + * + *
+     * Connector utilized for End User Authentication.
+     * 
+ * + * EUA = 4; + */ + public static final int EUA_VALUE = 4; + + /** + * + * + *
+     * Hybrid connector utilized for federated search and End User
+     * Authentication.
+     * 
+ * + * FEDERATED_AND_EUA = 5; + */ + public static final int FEDERATED_AND_EUA_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConnectorMode 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 ConnectorMode forNumber(int value) { + switch (value) { + case 0: + return CONNECTOR_MODE_UNSPECIFIED; + case 1: + return DATA_INGESTION; + case 2: + return ACTIONS; + case 3: + return FEDERATED; + case 4: + return EUA; + case 5: + return FEDERATED_AND_EUA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectorMode findValueByNumber(int number) { + return ConnectorMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnector.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ConnectorMode[] VALUES = values(); + + public static ConnectorMode 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 ConnectorMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataConnector.ConnectorMode) + } + + /** + * + * + *
+   * User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.DataConnector.BlockingReason} + */ + public enum BlockingReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * BLOCKING_REASON_UNSPECIFIED = 0; + */ + BLOCKING_REASON_UNSPECIFIED(0), + /** + * + * + *
+     * Connector requires customer to allowlist static IPs.
+     * 
+ * + * ALLOWLIST_STATIC_IP = 1; + */ + ALLOWLIST_STATIC_IP(1), + /** + * + * + *
+     * Connector requires customer to allowlist our project in their service
+     * attachment.
+     * 
+ * + * ALLOWLIST_IN_SERVICE_ATTACHMENT = 2; + */ + ALLOWLIST_IN_SERVICE_ATTACHMENT(2), + /** + * + * + *
+     * Connector requires customer to allowlist service account in their
+     * project.
+     * 
+ * + * ALLOWLIST_SERVICE_ACCOUNT = 3; + */ + ALLOWLIST_SERVICE_ACCOUNT(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BlockingReason"); + } + + /** + * + * + *
+     * Default value.
+     * 
+ * + * BLOCKING_REASON_UNSPECIFIED = 0; + */ + public static final int BLOCKING_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Connector requires customer to allowlist static IPs.
+     * 
+ * + * ALLOWLIST_STATIC_IP = 1; + */ + public static final int ALLOWLIST_STATIC_IP_VALUE = 1; + + /** + * + * + *
+     * Connector requires customer to allowlist our project in their service
+     * attachment.
+     * 
+ * + * ALLOWLIST_IN_SERVICE_ATTACHMENT = 2; + */ + public static final int ALLOWLIST_IN_SERVICE_ATTACHMENT_VALUE = 2; + + /** + * + * + *
+     * Connector requires customer to allowlist service account in their
+     * project.
+     * 
+ * + * ALLOWLIST_SERVICE_ACCOUNT = 3; + */ + public static final int ALLOWLIST_SERVICE_ACCOUNT_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 BlockingReason 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 BlockingReason forNumber(int value) { + switch (value) { + case 0: + return BLOCKING_REASON_UNSPECIFIED; + case 1: + return ALLOWLIST_STATIC_IP; + case 2: + return ALLOWLIST_IN_SERVICE_ATTACHMENT; + case 3: + return ALLOWLIST_SERVICE_ACCOUNT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlockingReason findValueByNumber(int number) { + return BlockingReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnector.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final BlockingReason[] VALUES = values(); + + public static BlockingReason 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 BlockingReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataConnector.BlockingReason) + } + + public interface SourceEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector.SourceEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in
+     * structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return Whether the params field is set. + */ + boolean hasParams(); + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in
+     * structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return The params. + */ + com.google.protobuf.Struct getParams(); + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in
+     * structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + com.google.protobuf.StructOrBuilder getParamsOrBuilder(); + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in json
+     * string format.
+     * 
+ * + * string json_params = 10; + * + * @return Whether the jsonParams field is set. + */ + boolean hasJsonParams(); + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in json
+     * string format.
+     * 
+ * + * string json_params = 10; + * + * @return The jsonParams. + */ + java.lang.String getJsonParams(); + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in json
+     * string format.
+     * 
+ * + * string json_params = 10; + * + * @return The bytes for jsonParams. + */ + com.google.protobuf.ByteString getJsonParamsBytes(); + + /** + * + * + *
+     * The name of the entity. Supported values by data source:
+     *
+     * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+     * `Contract`, `Campaign`
+     * * Jira: `Issue`
+     * * Confluence: `Content`, `Space`
+     * 
+ * + * string entity_name = 1; + * + * @return The entityName. + */ + java.lang.String getEntityName(); + + /** + * + * + *
+     * The name of the entity. Supported values by data source:
+     *
+     * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+     * `Contract`, `Campaign`
+     * * Jira: `Issue`
+     * * Confluence: `Content`, `Space`
+     * 
+ * + * string entity_name = 1; + * + * @return The bytes for entityName. + */ + com.google.protobuf.ByteString getEntityNameBytes(); + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + int getKeyPropertyMappingsCount(); + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + boolean containsKeyPropertyMappings(java.lang.String key); + + /** Use {@link #getKeyPropertyMappingsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getKeyPropertyMappings(); + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + java.util.Map getKeyPropertyMappingsMap(); + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + /* nullable */ + java.lang.String getKeyPropertyMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + java.lang.String getKeyPropertyMappingsOrThrow(java.lang.String key); + + /** + * + * + *
+     * Output only. The full resource name of the associated data store for the
+     * source entity. Format:
+     * `projects/*/locations/*/collections/*/dataStores/*`.
+     * When the connector is initialized by the
+     * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+     * automatically created for each source entity.
+     * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + java.lang.String getDataStore(); + + /** + * + * + *
+     * Output only. The full resource name of the associated data store for the
+     * source entity. Format:
+     * `projects/*/locations/*/collections/*/dataStores/*`.
+     * When the connector is initialized by the
+     * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+     * automatically created for each source entity.
+     * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
+     * Optional. The start schema to use for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+     * SourceEntity. If unset, a default vertical specialized schema will be
+     * used.
+     *
+     * This field is only used by
+     * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * API, and will be ignored if used in other APIs. This field will be
+     * omitted from all API responses including
+     * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startingSchema field is set. + */ + boolean hasStartingSchema(); + + /** + * + * + *
+     * Optional. The start schema to use for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+     * SourceEntity. If unset, a default vertical specialized schema will be
+     * used.
+     *
+     * This field is only used by
+     * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * API, and will be ignored if used in other APIs. This field will be
+     * omitted from all API responses including
+     * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startingSchema. + */ + com.google.cloud.discoveryengine.v1.Schema getStartingSchema(); + + /** + * + * + *
+     * Optional. The start schema to use for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+     * SourceEntity. If unset, a default vertical specialized schema will be
+     * used.
+     *
+     * This field is only used by
+     * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * API, and will be ignored if used in other APIs. This field will be
+     * omitted from all API responses including
+     * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder(); + + /** + * + * + *
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the healthcareFhirConfig field is set. + */ + boolean hasHealthcareFhirConfig(); + + /** + * + * + *
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The healthcareFhirConfig. + */ + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig(); + + /** + * + * + *
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.EntityParamsCase + getEntityParamsCase(); + } + + /** + * + * + *
+   * Represents an entity in the data source. For example, the `Account` object
+   * in Salesforce.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.SourceEntity} + */ + public static final class SourceEntity extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector.SourceEntity) + SourceEntityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SourceEntity"); + } + + // Use SourceEntity.newBuilder() to construct. + private SourceEntity(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SourceEntity() { + entityName_ = ""; + dataStore_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetKeyPropertyMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.class, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder.class); + } + + private int bitField0_; + private int entityParamsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object entityParams_; + + public enum EntityParamsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARAMS(4), + JSON_PARAMS(10), + ENTITYPARAMS_NOT_SET(0); + private final int value; + + private EntityParamsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntityParamsCase valueOf(int value) { + return forNumber(value); + } + + public static EntityParamsCase forNumber(int value) { + switch (value) { + case 4: + return PARAMS; + case 10: + return JSON_PARAMS; + case 0: + return ENTITYPARAMS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntityParamsCase getEntityParamsCase() { + return EntityParamsCase.forNumber(entityParamsCase_); + } + + public static final int PARAMS_FIELD_NUMBER = 4; + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in
+     * structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return entityParamsCase_ == 4; + } + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in
+     * structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return The params. + */ + @java.lang.Override + public com.google.protobuf.Struct getParams() { + if (entityParamsCase_ == 4) { + return (com.google.protobuf.Struct) entityParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in
+     * structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if (entityParamsCase_ == 4) { + return (com.google.protobuf.Struct) entityParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_PARAMS_FIELD_NUMBER = 10; + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in json
+     * string format.
+     * 
+ * + * string json_params = 10; + * + * @return Whether the jsonParams field is set. + */ + public boolean hasJsonParams() { + return entityParamsCase_ == 10; + } + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in json
+     * string format.
+     * 
+ * + * string json_params = 10; + * + * @return The jsonParams. + */ + public java.lang.String getJsonParams() { + java.lang.Object ref = ""; + if (entityParamsCase_ == 10) { + ref = entityParams_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entityParamsCase_ == 10) { + entityParams_ = s; + } + return s; + } + } + + /** + * + * + *
+     * The parameters for the entity to facilitate data ingestion in json
+     * string format.
+     * 
+ * + * string json_params = 10; + * + * @return The bytes for jsonParams. + */ + public com.google.protobuf.ByteString getJsonParamsBytes() { + java.lang.Object ref = ""; + if (entityParamsCase_ == 10) { + ref = entityParams_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entityParamsCase_ == 10) { + entityParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityName_ = ""; + + /** + * + * + *
+     * The name of the entity. Supported values by data source:
+     *
+     * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+     * `Contract`, `Campaign`
+     * * Jira: `Issue`
+     * * Confluence: `Content`, `Space`
+     * 
+ * + * string entity_name = 1; + * + * @return The entityName. + */ + @java.lang.Override + public java.lang.String getEntityName() { + java.lang.Object ref = entityName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityName_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the entity. Supported values by data source:
+     *
+     * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+     * `Contract`, `Campaign`
+     * * Jira: `Issue`
+     * * Confluence: `Content`, `Space`
+     * 
+ * + * string entity_name = 1; + * + * @return The bytes for entityName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityNameBytes() { + java.lang.Object ref = entityName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_PROPERTY_MAPPINGS_FIELD_NUMBER = 2; + + private static final class KeyPropertyMappingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_KeyPropertyMappingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField keyPropertyMappings_; + + private com.google.protobuf.MapField + internalGetKeyPropertyMappings() { + if (keyPropertyMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KeyPropertyMappingsDefaultEntryHolder.defaultEntry); + } + return keyPropertyMappings_; + } + + public int getKeyPropertyMappingsCount() { + return internalGetKeyPropertyMappings().getMap().size(); + } + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public boolean containsKeyPropertyMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetKeyPropertyMappings().getMap().containsKey(key); + } + + /** Use {@link #getKeyPropertyMappingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getKeyPropertyMappings() { + return getKeyPropertyMappingsMap(); + } + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public java.util.Map getKeyPropertyMappingsMap() { + return internalGetKeyPropertyMappings().getMap(); + } + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getKeyPropertyMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetKeyPropertyMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Attributes for indexing.
+     * Key: Field name.
+     * Value: The key property to map a field to, such as `title`, and
+     * `description`. Supported key properties:
+     *
+     * * `title`: The title for data record. This would be displayed on search
+     * results.
+     * * `description`: The description for data record. This would be displayed
+     * on search results.
+     * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public java.lang.String getKeyPropertyMappingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetKeyPropertyMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DATA_STORE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + + /** + * + * + *
+     * Output only. The full resource name of the associated data store for the
+     * source entity. Format:
+     * `projects/*/locations/*/collections/*/dataStores/*`.
+     * When the connector is initialized by the
+     * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+     * automatically created for each source entity.
+     * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The full resource name of the associated data store for the
+     * source entity. Format:
+     * `projects/*/locations/*/collections/*/dataStores/*`.
+     * When the connector is initialized by the
+     * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+     * automatically created for each source entity.
+     * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STARTING_SCHEMA_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.Schema startingSchema_; + + /** + * + * + *
+     * Optional. The start schema to use for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+     * SourceEntity. If unset, a default vertical specialized schema will be
+     * used.
+     *
+     * This field is only used by
+     * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * API, and will be ignored if used in other APIs. This field will be
+     * omitted from all API responses including
+     * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startingSchema field is set. + */ + @java.lang.Override + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The start schema to use for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+     * SourceEntity. If unset, a default vertical specialized schema will be
+     * used.
+     *
+     * This field is only used by
+     * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * API, and will be ignored if used in other APIs. This field will be
+     * omitted from all API responses including
+     * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startingSchema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; + } + + /** + * + * + *
+     * Optional. The start schema to use for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+     * SourceEntity. If unset, a default vertical specialized schema will be
+     * used.
+     *
+     * This field is only used by
+     * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+     * API, and will be ignored if used in other APIs. This field will be
+     * omitted from all API responses including
+     * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; + } + + public static final int HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcareFhirConfig_; + + /** + * + * + *
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the healthcareFhirConfig field is set. + */ + @java.lang.Override + public boolean hasHealthcareFhirConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The healthcareFhirConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig() { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + + /** + * + * + *
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder() { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entityName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, entityName_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetKeyPropertyMappings(), + KeyPropertyMappingsDefaultEntryHolder.defaultEntry, + 2); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataStore_); + } + if (entityParamsCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Struct) entityParams_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getStartingSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getHealthcareFhirConfig()); + } + if (entityParamsCase_ == 10) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, entityParams_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entityName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, entityName_); + } + for (java.util.Map.Entry entry : + internalGetKeyPropertyMappings().getMap().entrySet()) { + com.google.protobuf.MapEntry keyPropertyMappings__ = + KeyPropertyMappingsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, keyPropertyMappings__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataStore_); + } + if (entityParamsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Struct) entityParams_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartingSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHealthcareFhirConfig()); + } + if (entityParamsCase_ == 10) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, entityParams_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity other = + (com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity) obj; + + if (!getEntityName().equals(other.getEntityName())) return false; + if (!internalGetKeyPropertyMappings().equals(other.internalGetKeyPropertyMappings())) + return false; + if (!getDataStore().equals(other.getDataStore())) return false; + if (hasStartingSchema() != other.hasStartingSchema()) return false; + if (hasStartingSchema()) { + if (!getStartingSchema().equals(other.getStartingSchema())) return false; + } + if (hasHealthcareFhirConfig() != other.hasHealthcareFhirConfig()) return false; + if (hasHealthcareFhirConfig()) { + if (!getHealthcareFhirConfig().equals(other.getHealthcareFhirConfig())) return false; + } + if (!getEntityParamsCase().equals(other.getEntityParamsCase())) return false; + switch (entityParamsCase_) { + case 4: + if (!getParams().equals(other.getParams())) return false; + break; + case 10: + if (!getJsonParams().equals(other.getJsonParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEntityName().hashCode(); + if (!internalGetKeyPropertyMappings().getMap().isEmpty()) { + hash = (37 * hash) + KEY_PROPERTY_MAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetKeyPropertyMappings().hashCode(); + } + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + if (hasStartingSchema()) { + hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStartingSchema().hashCode(); + } + if (hasHealthcareFhirConfig()) { + hash = (37 * hash) + HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHealthcareFhirConfig().hashCode(); + } + switch (entityParamsCase_) { + case 4: + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParams().hashCode(); + break; + case 10: + hash = (37 * hash) + JSON_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getJsonParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents an entity in the data source. For example, the `Account` object
+     * in Salesforce.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.SourceEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector.SourceEntity) + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetKeyPropertyMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableKeyPropertyMappings(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.class, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartingSchemaFieldBuilder(); + internalGetHealthcareFhirConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (paramsBuilder_ != null) { + paramsBuilder_.clear(); + } + entityName_ = ""; + internalGetMutableKeyPropertyMappings().clear(); + dataStore_ = ""; + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } + healthcareFhirConfig_ = null; + if (healthcareFhirConfigBuilder_ != null) { + healthcareFhirConfigBuilder_.dispose(); + healthcareFhirConfigBuilder_ = null; + } + entityParamsCase_ = 0; + entityParams_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity build() { + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity result = + new com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityName_ = entityName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.keyPropertyMappings_ = internalGetKeyPropertyMappings(); + result.keyPropertyMappings_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataStore_ = dataStore_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startingSchema_ = + startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.healthcareFhirConfig_ = + healthcareFhirConfigBuilder_ == null + ? healthcareFhirConfig_ + : healthcareFhirConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity result) { + result.entityParamsCase_ = entityParamsCase_; + result.entityParams_ = this.entityParams_; + if (entityParamsCase_ == 4 && paramsBuilder_ != null) { + result.entityParams_ = paramsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity other) { + if (other + == com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.getDefaultInstance()) + return this; + if (!other.getEntityName().isEmpty()) { + entityName_ = other.entityName_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableKeyPropertyMappings().mergeFrom(other.internalGetKeyPropertyMappings()); + bitField0_ |= 0x00000008; + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasStartingSchema()) { + mergeStartingSchema(other.getStartingSchema()); + } + if (other.hasHealthcareFhirConfig()) { + mergeHealthcareFhirConfig(other.getHealthcareFhirConfig()); + } + switch (other.getEntityParamsCase()) { + case PARAMS: + { + mergeParams(other.getParams()); + break; + } + case JSON_PARAMS: + { + entityParamsCase_ = 10; + entityParams_ = other.entityParams_; + onChanged(); + break; + } + case ENTITYPARAMS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + entityName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry + keyPropertyMappings__ = + input.readMessage( + KeyPropertyMappingsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableKeyPropertyMappings() + .getMutableMap() + .put(keyPropertyMappings__.getKey(), keyPropertyMappings__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetParamsFieldBuilder().getBuilder(), extensionRegistry); + entityParamsCase_ = 4; + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetHealthcareFhirConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + entityParamsCase_ = 10; + entityParams_ = s; + 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 entityParamsCase_ = 0; + private java.lang.Object entityParams_; + + public EntityParamsCase getEntityParamsCase() { + return EntityParamsCase.forNumber(entityParamsCase_); + } + + public Builder clearEntityParams() { + entityParamsCase_ = 0; + entityParams_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + paramsBuilder_; + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return entityParamsCase_ == 4; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return The params. + */ + @java.lang.Override + public com.google.protobuf.Struct getParams() { + if (paramsBuilder_ == null) { + if (entityParamsCase_ == 4) { + return (com.google.protobuf.Struct) entityParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (entityParamsCase_ == 4) { + return paramsBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder setParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityParams_ = value; + onChanged(); + } else { + paramsBuilder_.setMessage(value); + } + entityParamsCase_ = 4; + return this; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) { + if (paramsBuilder_ == null) { + entityParams_ = builderForValue.build(); + onChanged(); + } else { + paramsBuilder_.setMessage(builderForValue.build()); + } + entityParamsCase_ = 4; + return this; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder mergeParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (entityParamsCase_ == 4 + && entityParams_ != com.google.protobuf.Struct.getDefaultInstance()) { + entityParams_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) entityParams_) + .mergeFrom(value) + .buildPartial(); + } else { + entityParams_ = value; + } + onChanged(); + } else { + if (entityParamsCase_ == 4) { + paramsBuilder_.mergeFrom(value); + } else { + paramsBuilder_.setMessage(value); + } + } + entityParamsCase_ = 4; + return this; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + if (entityParamsCase_ == 4) { + entityParamsCase_ = 0; + entityParams_ = null; + onChanged(); + } + } else { + if (entityParamsCase_ == 4) { + entityParamsCase_ = 0; + entityParams_ = null; + } + paramsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + public com.google.protobuf.Struct.Builder getParamsBuilder() { + return internalGetParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if ((entityParamsCase_ == 4) && (paramsBuilder_ != null)) { + return paramsBuilder_.getMessageOrBuilder(); + } else { + if (entityParamsCase_ == 4) { + return (com.google.protobuf.Struct) entityParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in
+       * structured json format.
+       * 
+ * + * .google.protobuf.Struct params = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetParamsFieldBuilder() { + if (paramsBuilder_ == null) { + if (!(entityParamsCase_ == 4)) { + entityParams_ = com.google.protobuf.Struct.getDefaultInstance(); + } + paramsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) entityParams_, getParentForChildren(), isClean()); + entityParams_ = null; + } + entityParamsCase_ = 4; + onChanged(); + return paramsBuilder_; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in json
+       * string format.
+       * 
+ * + * string json_params = 10; + * + * @return Whether the jsonParams field is set. + */ + @java.lang.Override + public boolean hasJsonParams() { + return entityParamsCase_ == 10; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in json
+       * string format.
+       * 
+ * + * string json_params = 10; + * + * @return The jsonParams. + */ + @java.lang.Override + public java.lang.String getJsonParams() { + java.lang.Object ref = ""; + if (entityParamsCase_ == 10) { + ref = entityParams_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (entityParamsCase_ == 10) { + entityParams_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in json
+       * string format.
+       * 
+ * + * string json_params = 10; + * + * @return The bytes for jsonParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonParamsBytes() { + java.lang.Object ref = ""; + if (entityParamsCase_ == 10) { + ref = entityParams_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (entityParamsCase_ == 10) { + entityParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in json
+       * string format.
+       * 
+ * + * string json_params = 10; + * + * @param value The jsonParams to set. + * @return This builder for chaining. + */ + public Builder setJsonParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityParamsCase_ = 10; + entityParams_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in json
+       * string format.
+       * 
+ * + * string json_params = 10; + * + * @return This builder for chaining. + */ + public Builder clearJsonParams() { + if (entityParamsCase_ == 10) { + entityParamsCase_ = 0; + entityParams_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The parameters for the entity to facilitate data ingestion in json
+       * string format.
+       * 
+ * + * string json_params = 10; + * + * @param value The bytes for jsonParams to set. + * @return This builder for chaining. + */ + public Builder setJsonParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityParamsCase_ = 10; + entityParams_ = value; + onChanged(); + return this; + } + + private java.lang.Object entityName_ = ""; + + /** + * + * + *
+       * The name of the entity. Supported values by data source:
+       *
+       * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+       * `Contract`, `Campaign`
+       * * Jira: `Issue`
+       * * Confluence: `Content`, `Space`
+       * 
+ * + * string entity_name = 1; + * + * @return The entityName. + */ + public java.lang.String getEntityName() { + java.lang.Object ref = entityName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the entity. Supported values by data source:
+       *
+       * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+       * `Contract`, `Campaign`
+       * * Jira: `Issue`
+       * * Confluence: `Content`, `Space`
+       * 
+ * + * string entity_name = 1; + * + * @return The bytes for entityName. + */ + public com.google.protobuf.ByteString getEntityNameBytes() { + java.lang.Object ref = entityName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the entity. Supported values by data source:
+       *
+       * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+       * `Contract`, `Campaign`
+       * * Jira: `Issue`
+       * * Confluence: `Content`, `Space`
+       * 
+ * + * string entity_name = 1; + * + * @param value The entityName to set. + * @return This builder for chaining. + */ + public Builder setEntityName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the entity. Supported values by data source:
+       *
+       * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+       * `Contract`, `Campaign`
+       * * Jira: `Issue`
+       * * Confluence: `Content`, `Space`
+       * 
+ * + * string entity_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearEntityName() { + entityName_ = getDefaultInstance().getEntityName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the entity. Supported values by data source:
+       *
+       * * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`,
+       * `Contract`, `Campaign`
+       * * Jira: `Issue`
+       * * Confluence: `Content`, `Space`
+       * 
+ * + * string entity_name = 1; + * + * @param value The bytes for entityName to set. + * @return This builder for chaining. + */ + public Builder setEntityNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField keyPropertyMappings_; + + private com.google.protobuf.MapField + internalGetKeyPropertyMappings() { + if (keyPropertyMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KeyPropertyMappingsDefaultEntryHolder.defaultEntry); + } + return keyPropertyMappings_; + } + + private com.google.protobuf.MapField + internalGetMutableKeyPropertyMappings() { + if (keyPropertyMappings_ == null) { + keyPropertyMappings_ = + com.google.protobuf.MapField.newMapField( + KeyPropertyMappingsDefaultEntryHolder.defaultEntry); + } + if (!keyPropertyMappings_.isMutable()) { + keyPropertyMappings_ = keyPropertyMappings_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return keyPropertyMappings_; + } + + public int getKeyPropertyMappingsCount() { + return internalGetKeyPropertyMappings().getMap().size(); + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public boolean containsKeyPropertyMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetKeyPropertyMappings().getMap().containsKey(key); + } + + /** Use {@link #getKeyPropertyMappingsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getKeyPropertyMappings() { + return getKeyPropertyMappingsMap(); + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public java.util.Map getKeyPropertyMappingsMap() { + return internalGetKeyPropertyMappings().getMap(); + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public /* nullable */ java.lang.String getKeyPropertyMappingsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetKeyPropertyMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + @java.lang.Override + public java.lang.String getKeyPropertyMappingsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetKeyPropertyMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearKeyPropertyMappings() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableKeyPropertyMappings().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + public Builder removeKeyPropertyMappings(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableKeyPropertyMappings().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableKeyPropertyMappings() { + bitField0_ |= 0x00000008; + return internalGetMutableKeyPropertyMappings().getMutableMap(); + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + public Builder putKeyPropertyMappings(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableKeyPropertyMappings().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+       * Attributes for indexing.
+       * Key: Field name.
+       * Value: The key property to map a field to, such as `title`, and
+       * `description`. Supported key properties:
+       *
+       * * `title`: The title for data record. This would be displayed on search
+       * results.
+       * * `description`: The description for data record. This would be displayed
+       * on search results.
+       * 
+ * + * map<string, string> key_property_mappings = 2; + */ + public Builder putAllKeyPropertyMappings( + java.util.Map values) { + internalGetMutableKeyPropertyMappings().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object dataStore_ = ""; + + /** + * + * + *
+       * Output only. The full resource name of the associated data store for the
+       * source entity. Format:
+       * `projects/*/locations/*/collections/*/dataStores/*`.
+       * When the connector is initialized by the
+       * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+       * automatically created for each source entity.
+       * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The full resource name of the associated data store for the
+       * source entity. Format:
+       * `projects/*/locations/*/collections/*/dataStores/*`.
+       * When the connector is initialized by the
+       * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+       * automatically created for each source entity.
+       * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The full resource name of the associated data store for the
+       * source entity. Format:
+       * `projects/*/locations/*/collections/*/dataStores/*`.
+       * When the connector is initialized by the
+       * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+       * automatically created for each source entity.
+       * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The full resource name of the associated data store for the
+       * source entity. Format:
+       * `projects/*/locations/*/collections/*/dataStores/*`.
+       * When the connector is initialized by the
+       * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+       * automatically created for each source entity.
+       * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The full resource name of the associated data store for the
+       * source entity. Format:
+       * `projects/*/locations/*/collections/*/dataStores/*`.
+       * When the connector is initialized by the
+       * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is
+       * automatically created for each source entity.
+       * 
+ * + * + * string data_store = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Schema startingSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Schema, + com.google.cloud.discoveryengine.v1.Schema.Builder, + com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + startingSchemaBuilder_; + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startingSchema field is set. + */ + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startingSchema. + */ + public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { + if (startingSchemaBuilder_ == null) { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; + } else { + return startingSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { + if (startingSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startingSchema_ = value; + } else { + startingSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartingSchema( + com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { + if (startingSchemaBuilder_ == null) { + startingSchema_ = builderForValue.build(); + } else { + startingSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { + if (startingSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && startingSchema_ != null + && startingSchema_ + != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { + getStartingSchemaBuilder().mergeFrom(value); + } else { + startingSchema_ = value; + } + } else { + startingSchemaBuilder_.mergeFrom(value); + } + if (startingSchema_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStartingSchema() { + bitField0_ = (bitField0_ & ~0x00000020); + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Schema.Builder getStartingSchemaBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStartingSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder() { + if (startingSchemaBuilder_ != null) { + return startingSchemaBuilder_.getMessageOrBuilder(); + } else { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; + } + } + + /** + * + * + *
+       * Optional. The start schema to use for the
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this
+       * SourceEntity. If unset, a default vertical specialized schema will be
+       * used.
+       *
+       * This field is only used by
+       * [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+       * API, and will be ignored if used in other APIs. This field will be
+       * omitted from all API responses including
+       * [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+       * API. To retrieve a schema of a
+       * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+       * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+       * API instead.
+       *
+       * The provided schema will be validated against certain rules on schema.
+       * Learn more from [this
+       * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Schema, + com.google.cloud.discoveryengine.v1.Schema.Builder, + com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + internalGetStartingSchemaFieldBuilder() { + if (startingSchemaBuilder_ == null) { + startingSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Schema, + com.google.cloud.discoveryengine.v1.Schema.Builder, + com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( + getStartingSchema(), getParentForChildren(), isClean()); + startingSchema_ = null; + } + return startingSchemaBuilder_; + } + + private com.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcareFhirConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder> + healthcareFhirConfigBuilder_; + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the healthcareFhirConfig field is set. + */ + public boolean hasHealthcareFhirConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The healthcareFhirConfig. + */ + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig() { + if (healthcareFhirConfigBuilder_ == null) { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } else { + return healthcareFhirConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { + if (healthcareFhirConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + healthcareFhirConfig_ = value; + } else { + healthcareFhirConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder builderForValue) { + if (healthcareFhirConfigBuilder_ == null) { + healthcareFhirConfig_ = builderForValue.build(); + } else { + healthcareFhirConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { + if (healthcareFhirConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && healthcareFhirConfig_ != null + && healthcareFhirConfig_ + != com.google.cloud.discoveryengine.v1.HealthcareFhirConfig + .getDefaultInstance()) { + getHealthcareFhirConfigBuilder().mergeFrom(value); + } else { + healthcareFhirConfig_ = value; + } + } else { + healthcareFhirConfigBuilder_.mergeFrom(value); + } + if (healthcareFhirConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHealthcareFhirConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + healthcareFhirConfig_ = null; + if (healthcareFhirConfigBuilder_ != null) { + healthcareFhirConfigBuilder_.dispose(); + healthcareFhirConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder + getHealthcareFhirConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetHealthcareFhirConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder() { + if (healthcareFhirConfigBuilder_ != null) { + return healthcareFhirConfigBuilder_.getMessageOrBuilder(); + } else { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + } + + /** + * + * + *
+       * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder> + internalGetHealthcareFhirConfigFieldBuilder() { + if (healthcareFhirConfigBuilder_ == null) { + healthcareFhirConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder>( + getHealthcareFhirConfig(), getParentForChildren(), isClean()); + healthcareFhirConfig_ = null; + } + return healthcareFhirConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector.SourceEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector.SourceEntity) + private static final com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndUserConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authParams field is set. + */ + boolean hasAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authParams. + */ + com.google.protobuf.Struct getAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getAuthParamsOrBuilder(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors in
+     * json string format.
+     * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonAuthParams field is set. + */ + boolean hasJsonAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors in
+     * json string format.
+     * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonAuthParams. + */ + java.lang.String getJsonAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors in
+     * json string format.
+     * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonAuthParams. + */ + com.google.protobuf.ByteString getJsonAuthParamsBytes(); + + /** + * + * + *
+     * Optional. Any additional parameters needed for EUA.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalParams field is set. + */ + boolean hasAdditionalParams(); + + /** + * + * + *
+     * Optional. Any additional parameters needed for EUA.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalParams. + */ + com.google.protobuf.Struct getAdditionalParams(); + + /** + * + * + *
+     * Optional. Any additional parameters needed for EUA.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getAdditionalParamsOrBuilder(); + + /** + * + * + *
+     * Optional. The tenant project the connector is connected to.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tenant field is set. + */ + boolean hasTenant(); + + /** + * + * + *
+     * Optional. The tenant project the connector is connected to.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tenant. + */ + com.google.cloud.discoveryengine.v1.Tenant getTenant(); + + /** + * + * + *
+     * Optional. The tenant project the connector is connected to.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.TenantOrBuilder getTenantOrBuilder(); + + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.AuthConfigCase + getAuthConfigCase(); + } + + /** + * + * + *
+   * Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.EndUserConfig} + */ + public static final class EndUserConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) + EndUserConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "EndUserConfig"); + } + + // Use EndUserConfig.newBuilder() to construct. + private EndUserConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndUserConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.class, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder.class); + } + + private int bitField0_; + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUTH_PARAMS(1), + JSON_AUTH_PARAMS(4), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 1: + return AUTH_PARAMS; + case 4: + return JSON_AUTH_PARAMS; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int AUTH_PARAMS_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authParams field is set. + */ + @java.lang.Override + public boolean hasAuthParams() { + return authConfigCase_ == 1; + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getAuthParams() { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAuthParamsOrBuilder() { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_AUTH_PARAMS_FIELD_NUMBER = 4; + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors in
+     * json string format.
+     * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonAuthParams field is set. + */ + public boolean hasJsonAuthParams() { + return authConfigCase_ == 4; + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors in
+     * json string format.
+     * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonAuthParams. + */ + public java.lang.String getJsonAuthParams() { + java.lang.Object ref = ""; + if (authConfigCase_ == 4) { + ref = authConfig_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authConfigCase_ == 4) { + authConfig_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to EUA connectors in
+     * json string format.
+     * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonAuthParams. + */ + public com.google.protobuf.ByteString getJsonAuthParamsBytes() { + java.lang.Object ref = ""; + if (authConfigCase_ == 4) { + ref = authConfig_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authConfigCase_ == 4) { + authConfig_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDITIONAL_PARAMS_FIELD_NUMBER = 2; + private com.google.protobuf.Struct additionalParams_; + + /** + * + * + *
+     * Optional. Any additional parameters needed for EUA.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalParams field is set. + */ + @java.lang.Override + public boolean hasAdditionalParams() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Any additional parameters needed for EUA.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getAdditionalParams() { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } + + /** + * + * + *
+     * Optional. Any additional parameters needed for EUA.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAdditionalParamsOrBuilder() { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } + + public static final int TENANT_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.Tenant tenant_; + + /** + * + * + *
+     * Optional. The tenant project the connector is connected to.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tenant field is set. + */ + @java.lang.Override + public boolean hasTenant() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The tenant project the connector is connected to.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tenant. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Tenant getTenant() { + return tenant_ == null + ? com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance() + : tenant_; + } + + /** + * + * + *
+     * Optional. The tenant project the connector is connected to.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.TenantOrBuilder getTenantOrBuilder() { + return tenant_ == null + ? com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance() + : tenant_; + } + + 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 (authConfigCase_ == 1) { + output.writeMessage(1, (com.google.protobuf.Struct) authConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAdditionalParams()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getTenant()); + } + if (authConfigCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, authConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.protobuf.Struct) authConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdditionalParams()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTenant()); + } + if (authConfigCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, authConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig other = + (com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) obj; + + if (hasAdditionalParams() != other.hasAdditionalParams()) return false; + if (hasAdditionalParams()) { + if (!getAdditionalParams().equals(other.getAdditionalParams())) return false; + } + if (hasTenant() != other.hasTenant()) return false; + if (hasTenant()) { + if (!getTenant().equals(other.getTenant())) return false; + } + if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false; + switch (authConfigCase_) { + case 1: + if (!getAuthParams().equals(other.getAuthParams())) return false; + break; + case 4: + if (!getJsonAuthParams().equals(other.getJsonAuthParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAdditionalParams()) { + hash = (37 * hash) + ADDITIONAL_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalParams().hashCode(); + } + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + switch (authConfigCase_) { + case 1: + hash = (37 * hash) + AUTH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAuthParams().hashCode(); + break; + case 4: + hash = (37 * hash) + JSON_AUTH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getJsonAuthParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.EndUserConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.class, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAdditionalParamsFieldBuilder(); + internalGetTenantFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authParamsBuilder_ != null) { + authParamsBuilder_.clear(); + } + additionalParams_ = null; + if (additionalParamsBuilder_ != null) { + additionalParamsBuilder_.dispose(); + additionalParamsBuilder_ = null; + } + tenant_ = null; + if (tenantBuilder_ != null) { + tenantBuilder_.dispose(); + tenantBuilder_ = null; + } + authConfigCase_ = 0; + authConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig build() { + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig result = + new com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.additionalParams_ = + additionalParamsBuilder_ == null + ? additionalParams_ + : additionalParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tenant_ = tenantBuilder_ == null ? tenant_ : tenantBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig result) { + result.authConfigCase_ = authConfigCase_; + result.authConfig_ = this.authConfig_; + if (authConfigCase_ == 1 && authParamsBuilder_ != null) { + result.authConfig_ = authParamsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.getDefaultInstance()) + return this; + if (other.hasAdditionalParams()) { + mergeAdditionalParams(other.getAdditionalParams()); + } + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + switch (other.getAuthConfigCase()) { + case AUTH_PARAMS: + { + mergeAuthParams(other.getAuthParams()); + break; + } + case JSON_AUTH_PARAMS: + { + authConfigCase_ = 4; + authConfig_ = other.authConfig_; + onChanged(); + break; + } + case AUTHCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetAuthParamsFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAdditionalParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetTenantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + authConfigCase_ = 4; + authConfig_ = s; + 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 authConfigCase_ = 0; + private java.lang.Object authConfig_; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public Builder clearAuthConfig() { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + authParamsBuilder_; + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authParams field is set. + */ + @java.lang.Override + public boolean hasAuthParams() { + return authConfigCase_ == 1; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getAuthParams() { + if (authParamsBuilder_ == null) { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (authConfigCase_ == 1) { + return authParamsBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthParams(com.google.protobuf.Struct value) { + if (authParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + authParamsBuilder_.setMessage(value); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthParams(com.google.protobuf.Struct.Builder builderForValue) { + if (authParamsBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + authParamsBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthParams(com.google.protobuf.Struct value) { + if (authParamsBuilder_ == null) { + if (authConfigCase_ == 1 + && authConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { + authConfig_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 1) { + authParamsBuilder_.mergeFrom(value); + } else { + authParamsBuilder_.setMessage(value); + } + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthParams() { + if (authParamsBuilder_ == null) { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + } + authParamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getAuthParamsBuilder() { + return internalGetAuthParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAuthParamsOrBuilder() { + if ((authConfigCase_ == 1) && (authParamsBuilder_ != null)) { + return authParamsBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetAuthParamsFieldBuilder() { + if (authParamsBuilder_ == null) { + if (!(authConfigCase_ == 1)) { + authConfig_ = com.google.protobuf.Struct.getDefaultInstance(); + } + authParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) authConfig_, getParentForChildren(), isClean()); + authConfig_ = null; + } + authConfigCase_ = 1; + onChanged(); + return authParamsBuilder_; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors in
+       * json string format.
+       * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonAuthParams field is set. + */ + @java.lang.Override + public boolean hasJsonAuthParams() { + return authConfigCase_ == 4; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors in
+       * json string format.
+       * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonAuthParams. + */ + @java.lang.Override + public java.lang.String getJsonAuthParams() { + java.lang.Object ref = ""; + if (authConfigCase_ == 4) { + ref = authConfig_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authConfigCase_ == 4) { + authConfig_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors in
+       * json string format.
+       * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonAuthParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonAuthParamsBytes() { + java.lang.Object ref = ""; + if (authConfigCase_ == 4) { + ref = authConfig_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authConfigCase_ == 4) { + authConfig_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors in
+       * json string format.
+       * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonAuthParams to set. + * @return This builder for chaining. + */ + public Builder setJsonAuthParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authConfigCase_ = 4; + authConfig_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors in
+       * json string format.
+       * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonAuthParams() { + if (authConfigCase_ == 4) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to EUA connectors in
+       * json string format.
+       * 
+ * + * string json_auth_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonAuthParams to set. + * @return This builder for chaining. + */ + public Builder setJsonAuthParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authConfigCase_ = 4; + authConfig_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct additionalParams_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + additionalParamsBuilder_; + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalParams field is set. + */ + public boolean hasAdditionalParams() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalParams. + */ + public com.google.protobuf.Struct getAdditionalParams() { + if (additionalParamsBuilder_ == null) { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } else { + return additionalParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalParams(com.google.protobuf.Struct value) { + if (additionalParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalParams_ = value; + } else { + additionalParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalParams(com.google.protobuf.Struct.Builder builderForValue) { + if (additionalParamsBuilder_ == null) { + additionalParams_ = builderForValue.build(); + } else { + additionalParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdditionalParams(com.google.protobuf.Struct value) { + if (additionalParamsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && additionalParams_ != null + && additionalParams_ != com.google.protobuf.Struct.getDefaultInstance()) { + getAdditionalParamsBuilder().mergeFrom(value); + } else { + additionalParams_ = value; + } + } else { + additionalParamsBuilder_.mergeFrom(value); + } + if (additionalParams_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalParams() { + bitField0_ = (bitField0_ & ~0x00000004); + additionalParams_ = null; + if (additionalParamsBuilder_ != null) { + additionalParamsBuilder_.dispose(); + additionalParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getAdditionalParamsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAdditionalParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getAdditionalParamsOrBuilder() { + if (additionalParamsBuilder_ != null) { + return additionalParamsBuilder_.getMessageOrBuilder(); + } else { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for EUA.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetAdditionalParamsFieldBuilder() { + if (additionalParamsBuilder_ == null) { + additionalParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getAdditionalParams(), getParentForChildren(), isClean()); + additionalParams_ = null; + } + return additionalParamsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.Tenant tenant_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Tenant, + com.google.cloud.discoveryengine.v1.Tenant.Builder, + com.google.cloud.discoveryengine.v1.TenantOrBuilder> + tenantBuilder_; + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tenant field is set. + */ + public boolean hasTenant() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tenant. + */ + public com.google.cloud.discoveryengine.v1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTenant(com.google.cloud.discoveryengine.v1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + } else { + tenantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTenant(com.google.cloud.discoveryengine.v1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTenant(com.google.cloud.discoveryengine.v1.Tenant value) { + if (tenantBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && tenant_ != null + && tenant_ != com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance()) { + getTenantBuilder().mergeFrom(value); + } else { + tenant_ = value; + } + } else { + tenantBuilder_.mergeFrom(value); + } + if (tenant_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTenant() { + bitField0_ = (bitField0_ & ~0x00000008); + tenant_ = null; + if (tenantBuilder_ != null) { + tenantBuilder_.dispose(); + tenantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Tenant.Builder getTenantBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTenantFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.TenantOrBuilder getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance() + : tenant_; + } + } + + /** + * + * + *
+       * Optional. The tenant project the connector is connected to.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Tenant tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Tenant, + com.google.cloud.discoveryengine.v1.Tenant.Builder, + com.google.cloud.discoveryengine.v1.TenantOrBuilder> + internalGetTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Tenant, + com.google.cloud.discoveryengine.v1.Tenant.Builder, + com.google.cloud.discoveryengine.v1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector.EndUserConfig) + private static final com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndUserConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FederatedConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authParams field is set. + */ + boolean hasAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authParams. + */ + com.google.protobuf.Struct getAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getAuthParamsOrBuilder(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors in json string format.
+     * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonAuthParams field is set. + */ + boolean hasJsonAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors in json string format.
+     * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonAuthParams. + */ + java.lang.String getJsonAuthParams(); + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors in json string format.
+     * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonAuthParams. + */ + com.google.protobuf.ByteString getJsonAuthParamsBytes(); + + /** + * + * + *
+     * Optional. Any additional parameters needed for FEDERATED.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalParams field is set. + */ + boolean hasAdditionalParams(); + + /** + * + * + *
+     * Optional. Any additional parameters needed for FEDERATED.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalParams. + */ + com.google.protobuf.Struct getAdditionalParams(); + + /** + * + * + *
+     * Optional. Any additional parameters needed for FEDERATED.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getAdditionalParamsOrBuilder(); + + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.AuthConfigCase + getAuthConfigCase(); + } + + /** + * + * + *
+   * Any params and credentials used specifically for hybrid connectors
+   * supporting FEDERATED mode.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.FederatedConfig} + */ + public static final class FederatedConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) + FederatedConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FederatedConfig"); + } + + // Use FederatedConfig.newBuilder() to construct. + private FederatedConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FederatedConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.class, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder.class); + } + + private int bitField0_; + private int authConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authConfig_; + + public enum AuthConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUTH_PARAMS(1), + JSON_AUTH_PARAMS(3), + AUTHCONFIG_NOT_SET(0); + private final int value; + + private AuthConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthConfigCase valueOf(int value) { + return forNumber(value); + } + + public static AuthConfigCase forNumber(int value) { + switch (value) { + case 1: + return AUTH_PARAMS; + case 3: + return JSON_AUTH_PARAMS; + case 0: + return AUTHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public static final int AUTH_PARAMS_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authParams field is set. + */ + @java.lang.Override + public boolean hasAuthParams() { + return authConfigCase_ == 1; + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getAuthParams() { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors.
+     * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAuthParamsOrBuilder() { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_AUTH_PARAMS_FIELD_NUMBER = 3; + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors in json string format.
+     * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonAuthParams field is set. + */ + public boolean hasJsonAuthParams() { + return authConfigCase_ == 3; + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors in json string format.
+     * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonAuthParams. + */ + public java.lang.String getJsonAuthParams() { + java.lang.Object ref = ""; + if (authConfigCase_ == 3) { + ref = authConfig_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authConfigCase_ == 3) { + authConfig_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Optional. Any authentication parameters specific to FEDERATED
+     * connectors in json string format.
+     * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonAuthParams. + */ + public com.google.protobuf.ByteString getJsonAuthParamsBytes() { + java.lang.Object ref = ""; + if (authConfigCase_ == 3) { + ref = authConfig_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authConfigCase_ == 3) { + authConfig_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDITIONAL_PARAMS_FIELD_NUMBER = 2; + private com.google.protobuf.Struct additionalParams_; + + /** + * + * + *
+     * Optional. Any additional parameters needed for FEDERATED.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalParams field is set. + */ + @java.lang.Override + public boolean hasAdditionalParams() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Any additional parameters needed for FEDERATED.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getAdditionalParams() { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } + + /** + * + * + *
+     * Optional. Any additional parameters needed for FEDERATED.
+     * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAdditionalParamsOrBuilder() { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } + + 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 (authConfigCase_ == 1) { + output.writeMessage(1, (com.google.protobuf.Struct) authConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAdditionalParams()); + } + if (authConfigCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.protobuf.Struct) authConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdditionalParams()); + } + if (authConfigCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig other = + (com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) obj; + + if (hasAdditionalParams() != other.hasAdditionalParams()) return false; + if (hasAdditionalParams()) { + if (!getAdditionalParams().equals(other.getAdditionalParams())) return false; + } + if (!getAuthConfigCase().equals(other.getAuthConfigCase())) return false; + switch (authConfigCase_) { + case 1: + if (!getAuthParams().equals(other.getAuthParams())) return false; + break; + case 3: + if (!getJsonAuthParams().equals(other.getJsonAuthParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAdditionalParams()) { + hash = (37 * hash) + ADDITIONAL_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalParams().hashCode(); + } + switch (authConfigCase_) { + case 1: + hash = (37 * hash) + AUTH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAuthParams().hashCode(); + break; + case 3: + hash = (37 * hash) + JSON_AUTH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getJsonAuthParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Any params and credentials used specifically for hybrid connectors
+     * supporting FEDERATED mode.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.FederatedConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.class, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAdditionalParamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authParamsBuilder_ != null) { + authParamsBuilder_.clear(); + } + additionalParams_ = null; + if (additionalParamsBuilder_ != null) { + additionalParamsBuilder_.dispose(); + additionalParamsBuilder_ = null; + } + authConfigCase_ = 0; + authConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig build() { + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig result = + new com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.additionalParams_ = + additionalParamsBuilder_ == null + ? additionalParams_ + : additionalParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig result) { + result.authConfigCase_ = authConfigCase_; + result.authConfig_ = this.authConfig_; + if (authConfigCase_ == 1 && authParamsBuilder_ != null) { + result.authConfig_ = authParamsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + .getDefaultInstance()) return this; + if (other.hasAdditionalParams()) { + mergeAdditionalParams(other.getAdditionalParams()); + } + switch (other.getAuthConfigCase()) { + case AUTH_PARAMS: + { + mergeAuthParams(other.getAuthParams()); + break; + } + case JSON_AUTH_PARAMS: + { + authConfigCase_ = 3; + authConfig_ = other.authConfig_; + onChanged(); + break; + } + case AUTHCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetAuthParamsFieldBuilder().getBuilder(), extensionRegistry); + authConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAdditionalParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + authConfigCase_ = 3; + authConfig_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int authConfigCase_ = 0; + private java.lang.Object authConfig_; + + public AuthConfigCase getAuthConfigCase() { + return AuthConfigCase.forNumber(authConfigCase_); + } + + public Builder clearAuthConfig() { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + authParamsBuilder_; + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the authParams field is set. + */ + @java.lang.Override + public boolean hasAuthParams() { + return authConfigCase_ == 1; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authParams. + */ + @java.lang.Override + public com.google.protobuf.Struct getAuthParams() { + if (authParamsBuilder_ == null) { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (authConfigCase_ == 1) { + return authParamsBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthParams(com.google.protobuf.Struct value) { + if (authParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authConfig_ = value; + onChanged(); + } else { + authParamsBuilder_.setMessage(value); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuthParams(com.google.protobuf.Struct.Builder builderForValue) { + if (authParamsBuilder_ == null) { + authConfig_ = builderForValue.build(); + onChanged(); + } else { + authParamsBuilder_.setMessage(builderForValue.build()); + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuthParams(com.google.protobuf.Struct value) { + if (authParamsBuilder_ == null) { + if (authConfigCase_ == 1 + && authConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { + authConfig_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) authConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authConfig_ = value; + } + onChanged(); + } else { + if (authConfigCase_ == 1) { + authParamsBuilder_.mergeFrom(value); + } else { + authParamsBuilder_.setMessage(value); + } + } + authConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuthParams() { + if (authParamsBuilder_ == null) { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + } else { + if (authConfigCase_ == 1) { + authConfigCase_ = 0; + authConfig_ = null; + } + authParamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getAuthParamsBuilder() { + return internalGetAuthParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getAuthParamsOrBuilder() { + if ((authConfigCase_ == 1) && (authParamsBuilder_ != null)) { + return authParamsBuilder_.getMessageOrBuilder(); + } else { + if (authConfigCase_ == 1) { + return (com.google.protobuf.Struct) authConfig_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors.
+       * 
+ * + * .google.protobuf.Struct auth_params = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetAuthParamsFieldBuilder() { + if (authParamsBuilder_ == null) { + if (!(authConfigCase_ == 1)) { + authConfig_ = com.google.protobuf.Struct.getDefaultInstance(); + } + authParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) authConfig_, getParentForChildren(), isClean()); + authConfig_ = null; + } + authConfigCase_ = 1; + onChanged(); + return authParamsBuilder_; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors in json string format.
+       * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonAuthParams field is set. + */ + @java.lang.Override + public boolean hasJsonAuthParams() { + return authConfigCase_ == 3; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors in json string format.
+       * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonAuthParams. + */ + @java.lang.Override + public java.lang.String getJsonAuthParams() { + java.lang.Object ref = ""; + if (authConfigCase_ == 3) { + ref = authConfig_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authConfigCase_ == 3) { + authConfig_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors in json string format.
+       * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonAuthParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonAuthParamsBytes() { + java.lang.Object ref = ""; + if (authConfigCase_ == 3) { + ref = authConfig_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (authConfigCase_ == 3) { + authConfig_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors in json string format.
+       * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonAuthParams to set. + * @return This builder for chaining. + */ + public Builder setJsonAuthParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authConfigCase_ = 3; + authConfig_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors in json string format.
+       * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonAuthParams() { + if (authConfigCase_ == 3) { + authConfigCase_ = 0; + authConfig_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Any authentication parameters specific to FEDERATED
+       * connectors in json string format.
+       * 
+ * + * string json_auth_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonAuthParams to set. + * @return This builder for chaining. + */ + public Builder setJsonAuthParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authConfigCase_ = 3; + authConfig_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct additionalParams_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + additionalParamsBuilder_; + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalParams field is set. + */ + public boolean hasAdditionalParams() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalParams. + */ + public com.google.protobuf.Struct getAdditionalParams() { + if (additionalParamsBuilder_ == null) { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } else { + return additionalParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalParams(com.google.protobuf.Struct value) { + if (additionalParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalParams_ = value; + } else { + additionalParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalParams(com.google.protobuf.Struct.Builder builderForValue) { + if (additionalParamsBuilder_ == null) { + additionalParams_ = builderForValue.build(); + } else { + additionalParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdditionalParams(com.google.protobuf.Struct value) { + if (additionalParamsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && additionalParams_ != null + && additionalParams_ != com.google.protobuf.Struct.getDefaultInstance()) { + getAdditionalParamsBuilder().mergeFrom(value); + } else { + additionalParams_ = value; + } + } else { + additionalParamsBuilder_.mergeFrom(value); + } + if (additionalParams_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalParams() { + bitField0_ = (bitField0_ & ~0x00000004); + additionalParams_ = null; + if (additionalParamsBuilder_ != null) { + additionalParamsBuilder_.dispose(); + additionalParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getAdditionalParamsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAdditionalParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getAdditionalParamsOrBuilder() { + if (additionalParamsBuilder_ != null) { + return additionalParamsBuilder_.getMessageOrBuilder(); + } else { + return additionalParams_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalParams_; + } + } + + /** + * + * + *
+       * Optional. Any additional parameters needed for FEDERATED.
+       * 
+ * + * + * .google.protobuf.Struct additional_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetAdditionalParamsFieldBuilder() { + if (additionalParamsBuilder_ == null) { + additionalParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getAdditionalParams(), getParentForChildren(), isClean()); + additionalParams_ = null; + } + return additionalParamsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector.FederatedConfig) + private static final com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FederatedConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RealtimeSyncConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Webhook url for the connector to specify additional params for
+     * realtime sync.
+     * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webhookUri. + */ + java.lang.String getWebhookUri(); + + /** + * + * + *
+     * Optional. Webhook url for the connector to specify additional params for
+     * realtime sync.
+     * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for webhookUri. + */ + com.google.protobuf.ByteString getWebhookUriBytes(); + + /** + * + * + *
+     * Optional. The ID of the Secret Manager secret used for webhook secret.
+     * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The realtimeSyncSecret. + */ + java.lang.String getRealtimeSyncSecret(); + + /** + * + * + *
+     * Optional. The ID of the Secret Manager secret used for webhook secret.
+     * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for realtimeSyncSecret. + */ + com.google.protobuf.ByteString getRealtimeSyncSecretBytes(); + + /** + * + * + *
+     * Optional. Streaming error details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingError field is set. + */ + boolean hasStreamingError(); + + /** + * + * + *
+     * Optional. Streaming error details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingError. + */ + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + getStreamingError(); + + /** + * + * + *
+     * Optional. Streaming error details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingErrorOrBuilder + getStreamingErrorOrBuilder(); + } + + /** + * + * + *
+   * The configuration for realtime sync to store additional params for
+   * realtime sync.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig} + */ + public static final class RealtimeSyncConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) + RealtimeSyncConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RealtimeSyncConfig"); + } + + // Use RealtimeSyncConfig.newBuilder() to construct. + private RealtimeSyncConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RealtimeSyncConfig() { + webhookUri_ = ""; + realtimeSyncSecret_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.class, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder.class); + } + + public interface StreamingErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. Streaming error.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingErrorReason. + */ + int getStreamingErrorReasonValue(); + + /** + * + * + *
+       * Optional. Streaming error.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingErrorReason. + */ + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason + getStreamingErrorReason(); + + /** + * + * + *
+       * Optional. Error details.
+       * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
+       * Optional. Error details.
+       * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
+       * Optional. Error details.
+       * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + } + + /** + * + * + *
+     * Streaming error details.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError} + */ + public static final class StreamingError extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) + StreamingErrorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "StreamingError"); + } + + // Use StreamingError.newBuilder() to construct. + private StreamingError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StreamingError() { + streamingErrorReason_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .class, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .Builder.class); + } + + /** + * + * + *
+       * Broad types of streaming errors.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason} + */ + public enum StreamingErrorReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Streaming error reason unspecified.
+         * 
+ * + * STREAMING_ERROR_REASON_UNSPECIFIED = 0; + */ + STREAMING_ERROR_REASON_UNSPECIFIED(0), + /** + * + * + *
+         * Some error occurred while setting up resources for realtime sync.
+         * 
+ * + * STREAMING_SETUP_ERROR = 1; + */ + STREAMING_SETUP_ERROR(1), + /** + * + * + *
+         * Some error was encountered while running realtime sync for the
+         * connector.
+         * 
+ * + * STREAMING_SYNC_ERROR = 2; + */ + STREAMING_SYNC_ERROR(2), + /** + * + * + *
+         * Ingress endpoint is required when setting up realtime sync in private
+         * connectivity.
+         * 
+ * + * INGRESS_ENDPOINT_REQUIRED = 3; + */ + INGRESS_ENDPOINT_REQUIRED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "StreamingErrorReason"); + } + + /** + * + * + *
+         * Streaming error reason unspecified.
+         * 
+ * + * STREAMING_ERROR_REASON_UNSPECIFIED = 0; + */ + public static final int STREAMING_ERROR_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+         * Some error occurred while setting up resources for realtime sync.
+         * 
+ * + * STREAMING_SETUP_ERROR = 1; + */ + public static final int STREAMING_SETUP_ERROR_VALUE = 1; + + /** + * + * + *
+         * Some error was encountered while running realtime sync for the
+         * connector.
+         * 
+ * + * STREAMING_SYNC_ERROR = 2; + */ + public static final int STREAMING_SYNC_ERROR_VALUE = 2; + + /** + * + * + *
+         * Ingress endpoint is required when setting up realtime sync in private
+         * connectivity.
+         * 
+ * + * INGRESS_ENDPOINT_REQUIRED = 3; + */ + public static final int INGRESS_ENDPOINT_REQUIRED_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 StreamingErrorReason 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 StreamingErrorReason forNumber(int value) { + switch (value) { + case 0: + return STREAMING_ERROR_REASON_UNSPECIFIED; + case 1: + return STREAMING_SETUP_ERROR; + case 2: + return STREAMING_SYNC_ERROR; + case 3: + return INGRESS_ENDPOINT_REQUIRED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StreamingErrorReason findValueByNumber(int number) { + return StreamingErrorReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StreamingErrorReason[] VALUES = values(); + + public static StreamingErrorReason 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 StreamingErrorReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason) + } + + private int bitField0_; + public static final int STREAMING_ERROR_REASON_FIELD_NUMBER = 1; + private int streamingErrorReason_ = 0; + + /** + * + * + *
+       * Optional. Streaming error.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingErrorReason. + */ + @java.lang.Override + public int getStreamingErrorReasonValue() { + return streamingErrorReason_; + } + + /** + * + * + *
+       * Optional. Streaming error.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingErrorReason. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason + getStreamingErrorReason() { + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason + result = + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason.forNumber(streamingErrorReason_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason.UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 2; + private com.google.rpc.Status error_; + + /** + * + * + *
+       * Optional. Error details.
+       * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Error details.
+       * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
+       * Optional. Error details.
+       * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + 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 (streamingErrorReason_ + != com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason.STREAMING_ERROR_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, streamingErrorReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (streamingErrorReason_ + != com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason.STREAMING_ERROR_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, streamingErrorReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError other = + (com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) + obj; + + if (streamingErrorReason_ != other.streamingErrorReason_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + 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) + STREAMING_ERROR_REASON_FIELD_NUMBER; + hash = (53 * hash) + streamingErrorReason_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Streaming error details.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError.class, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + streamingErrorReason_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + build() { + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + result = + new com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.streamingErrorReason_ = streamingErrorReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDefaultInstance()) return this; + if (other.streamingErrorReason_ != 0) { + setStreamingErrorReasonValue(other.getStreamingErrorReasonValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + 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: + { + streamingErrorReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetErrorFieldBuilder().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 int streamingErrorReason_ = 0; + + /** + * + * + *
+         * Optional. Streaming error.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingErrorReason. + */ + @java.lang.Override + public int getStreamingErrorReasonValue() { + return streamingErrorReason_; + } + + /** + * + * + *
+         * Optional. Streaming error.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for streamingErrorReason to set. + * @return This builder for chaining. + */ + public Builder setStreamingErrorReasonValue(int value) { + streamingErrorReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Streaming error.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingErrorReason. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason + getStreamingErrorReason() { + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason + result = + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError.StreamingErrorReason.forNumber(streamingErrorReason_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Optional. Streaming error.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The streamingErrorReason to set. + * @return This builder for chaining. + */ + public Builder setStreamingErrorReason( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .StreamingErrorReason + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + streamingErrorReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Streaming error.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError.StreamingErrorReason streaming_error_reason = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStreamingErrorReason() { + bitField0_ = (bitField0_ & ~0x00000001); + streamingErrorReason_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000002); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
+         * Optional. Error details.
+         * 
+ * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError) + private static final com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int WEBHOOK_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhookUri_ = ""; + + /** + * + * + *
+     * Optional. Webhook url for the connector to specify additional params for
+     * realtime sync.
+     * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webhookUri. + */ + @java.lang.Override + public java.lang.String getWebhookUri() { + java.lang.Object ref = webhookUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookUri_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Webhook url for the connector to specify additional params for
+     * realtime sync.
+     * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for webhookUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebhookUriBytes() { + java.lang.Object ref = webhookUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REALTIME_SYNC_SECRET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object realtimeSyncSecret_ = ""; + + /** + * + * + *
+     * Optional. The ID of the Secret Manager secret used for webhook secret.
+     * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The realtimeSyncSecret. + */ + @java.lang.Override + public java.lang.String getRealtimeSyncSecret() { + java.lang.Object ref = realtimeSyncSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + realtimeSyncSecret_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The ID of the Secret Manager secret used for webhook secret.
+     * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for realtimeSyncSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRealtimeSyncSecretBytes() { + java.lang.Object ref = realtimeSyncSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + realtimeSyncSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STREAMING_ERROR_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + streamingError_; + + /** + * + * + *
+     * Optional. Streaming error details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingError field is set. + */ + @java.lang.Override + public boolean hasStreamingError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Streaming error details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingError. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + getStreamingError() { + return streamingError_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDefaultInstance() + : streamingError_; + } + + /** + * + * + *
+     * Optional. Streaming error details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingErrorOrBuilder + getStreamingErrorOrBuilder() { + return streamingError_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDefaultInstance() + : streamingError_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webhookUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, webhookUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(realtimeSyncSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, realtimeSyncSecret_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStreamingError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webhookUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, webhookUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(realtimeSyncSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, realtimeSyncSecret_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStreamingError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig other = + (com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) obj; + + if (!getWebhookUri().equals(other.getWebhookUri())) return false; + if (!getRealtimeSyncSecret().equals(other.getRealtimeSyncSecret())) return false; + if (hasStreamingError() != other.hasStreamingError()) return false; + if (hasStreamingError()) { + if (!getStreamingError().equals(other.getStreamingError())) 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) + WEBHOOK_URI_FIELD_NUMBER; + hash = (53 * hash) + getWebhookUri().hashCode(); + hash = (37 * hash) + REALTIME_SYNC_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getRealtimeSyncSecret().hashCode(); + if (hasStreamingError()) { + hash = (37 * hash) + STREAMING_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getStreamingError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The configuration for realtime sync to store additional params for
+     * realtime sync.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.class, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStreamingErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + webhookUri_ = ""; + realtimeSyncSecret_ = ""; + streamingError_ = null; + if (streamingErrorBuilder_ != null) { + streamingErrorBuilder_.dispose(); + streamingErrorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig build() { + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig result = + new com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webhookUri_ = webhookUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.realtimeSyncSecret_ = realtimeSyncSecret_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.streamingError_ = + streamingErrorBuilder_ == null ? streamingError_ : streamingErrorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .getDefaultInstance()) return this; + if (!other.getWebhookUri().isEmpty()) { + webhookUri_ = other.webhookUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRealtimeSyncSecret().isEmpty()) { + realtimeSyncSecret_ = other.realtimeSyncSecret_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStreamingError()) { + mergeStreamingError(other.getStreamingError()); + } + 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: + { + webhookUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + realtimeSyncSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetStreamingErrorFieldBuilder().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 webhookUri_ = ""; + + /** + * + * + *
+       * Optional. Webhook url for the connector to specify additional params for
+       * realtime sync.
+       * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The webhookUri. + */ + public java.lang.String getWebhookUri() { + java.lang.Object ref = webhookUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + webhookUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Webhook url for the connector to specify additional params for
+       * realtime sync.
+       * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for webhookUri. + */ + public com.google.protobuf.ByteString getWebhookUriBytes() { + java.lang.Object ref = webhookUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + webhookUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Webhook url for the connector to specify additional params for
+       * realtime sync.
+       * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The webhookUri to set. + * @return This builder for chaining. + */ + public Builder setWebhookUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + webhookUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Webhook url for the connector to specify additional params for
+       * realtime sync.
+       * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWebhookUri() { + webhookUri_ = getDefaultInstance().getWebhookUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Webhook url for the connector to specify additional params for
+       * realtime sync.
+       * 
+ * + * string webhook_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for webhookUri to set. + * @return This builder for chaining. + */ + public Builder setWebhookUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object realtimeSyncSecret_ = ""; + + /** + * + * + *
+       * Optional. The ID of the Secret Manager secret used for webhook secret.
+       * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The realtimeSyncSecret. + */ + public java.lang.String getRealtimeSyncSecret() { + java.lang.Object ref = realtimeSyncSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + realtimeSyncSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The ID of the Secret Manager secret used for webhook secret.
+       * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for realtimeSyncSecret. + */ + public com.google.protobuf.ByteString getRealtimeSyncSecretBytes() { + java.lang.Object ref = realtimeSyncSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + realtimeSyncSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The ID of the Secret Manager secret used for webhook secret.
+       * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The realtimeSyncSecret to set. + * @return This builder for chaining. + */ + public Builder setRealtimeSyncSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + realtimeSyncSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The ID of the Secret Manager secret used for webhook secret.
+       * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRealtimeSyncSecret() { + realtimeSyncSecret_ = getDefaultInstance().getRealtimeSyncSecret(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The ID of the Secret Manager secret used for webhook secret.
+       * 
+ * + * string realtime_sync_secret = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for realtimeSyncSecret to set. + * @return This builder for chaining. + */ + public Builder setRealtimeSyncSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + realtimeSyncSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + streamingError_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .Builder, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingErrorOrBuilder> + streamingErrorBuilder_; + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingError field is set. + */ + public boolean hasStreamingError() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingError. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + getStreamingError() { + if (streamingErrorBuilder_ == null) { + return streamingError_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDefaultInstance() + : streamingError_; + } else { + return streamingErrorBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStreamingError( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + value) { + if (streamingErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamingError_ = value; + } else { + streamingErrorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStreamingError( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .Builder + builderForValue) { + if (streamingErrorBuilder_ == null) { + streamingError_ = builderForValue.build(); + } else { + streamingErrorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStreamingError( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + value) { + if (streamingErrorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && streamingError_ != null + && streamingError_ + != com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError.getDefaultInstance()) { + getStreamingErrorBuilder().mergeFrom(value); + } else { + streamingError_ = value; + } + } else { + streamingErrorBuilder_.mergeFrom(value); + } + if (streamingError_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStreamingError() { + bitField0_ = (bitField0_ & ~0x00000004); + streamingError_ = null; + if (streamingErrorBuilder_ != null) { + streamingErrorBuilder_.dispose(); + streamingErrorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .Builder + getStreamingErrorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStreamingErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingErrorOrBuilder + getStreamingErrorOrBuilder() { + if (streamingErrorBuilder_ != null) { + return streamingErrorBuilder_.getMessageOrBuilder(); + } else { + return streamingError_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .getDefaultInstance() + : streamingError_; + } + } + + /** + * + * + *
+       * Optional. Streaming error details.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError streaming_error = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.StreamingError + .Builder, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingErrorOrBuilder> + internalGetStreamingErrorFieldBuilder() { + if (streamingErrorBuilder_ == null) { + streamingErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingError.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .StreamingErrorOrBuilder>( + getStreamingError(), getParentForChildren(), isClean()); + streamingError_ = null; + } + return streamingErrorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig) + private static final com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RealtimeSyncConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConnectorMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Display title of the connector.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+     * Optional. Display title of the connector.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+     * Optional. Human-readable description of the connector, shown on the
+     * connector detail page. One connector has a single description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+     * Optional. Human-readable description of the connector, shown on the
+     * connector detail page. One connector has a single description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * Optional. Short, subtitle-length description of the connector (e.g. shown
+     * beneath the connector name in list and detail views).
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shortDescription. + */ + java.lang.String getShortDescription(); + + /** + * + * + *
+     * Optional. Short, subtitle-length description of the connector (e.g. shown
+     * beneath the connector name in list and detail views).
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for shortDescription. + */ + com.google.protobuf.ByteString getShortDescriptionBytes(); + + /** + * + * + *
+     * Optional. The party that authored the connector, e.g. "Google" or a
+     * third-party provider name. Lets end users see who authored a connector.
+     * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
+     * Optional. The party that authored the connector, e.g. "Google" or a
+     * third-party provider name. Lets end users see who authored a connector.
+     * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
+     * Optional. Free-form, multi-line note about the connector's capabilities
+     * or a custom note that can be set for the connector.
+     * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The note. + */ + java.lang.String getNote(); + + /** + * + * + *
+     * Optional. Free-form, multi-line note about the connector's capabilities
+     * or a custom note that can be set for the connector.
+     * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for note. + */ + com.google.protobuf.ByteString getNoteBytes(); + } + + /** + * + * + *
+   * User-facing metadata for the connector, shown on the connector detail
+   * page (title, description, short_description, author, note).
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata} + */ + public static final class ConnectorMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) + ConnectorMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectorMetadata"); + } + + // Use ConnectorMetadata.newBuilder() to construct. + private ConnectorMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectorMetadata() { + title_ = ""; + description_ = ""; + shortDescription_ = ""; + author_ = ""; + note_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.class, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+     * Optional. Display title of the connector.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Display title of the connector.
+     * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Human-readable description of the connector, shown on the
+     * connector detail page. One connector has a single description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Human-readable description of the connector, shown on the
+     * connector detail page. One connector has a single description.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object shortDescription_ = ""; + + /** + * + * + *
+     * Optional. Short, subtitle-length description of the connector (e.g. shown
+     * beneath the connector name in list and detail views).
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shortDescription. + */ + @java.lang.Override + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Short, subtitle-length description of the connector (e.g. shown
+     * beneath the connector name in list and detail views).
+     * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for shortDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
+     * Optional. The party that authored the connector, e.g. "Google" or a
+     * third-party provider name. Lets end users see who authored a connector.
+     * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The party that authored the connector, e.g. "Google" or a
+     * third-party provider name. Lets end users see who authored a connector.
+     * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTE_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object note_ = ""; + + /** + * + * + *
+     * Optional. Free-form, multi-line note about the connector's capabilities
+     * or a custom note that can be set for the connector.
+     * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The note. + */ + @java.lang.Override + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Free-form, multi-line note about the connector's capabilities
+     * or a custom note that can be set for the connector.
+     * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for note. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shortDescription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, shortDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, author_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(note_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, note_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(shortDescription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, shortDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, author_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(note_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, note_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata other = + (com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getShortDescription().equals(other.getShortDescription())) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (!getNote().equals(other.getNote())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getShortDescription().hashCode(); + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * User-facing metadata for the connector, shown on the connector detail
+     * page (title, description, short_description, author, note).
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.class, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + description_ = ""; + shortDescription_ = ""; + author_ = ""; + note_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata build() { + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata result = + new com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.shortDescription_ = shortDescription_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.author_ = author_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.note_ = note_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance()) return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getShortDescription().isEmpty()) { + shortDescription_ = other.shortDescription_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNote().isEmpty()) { + note_ = other.note_; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + shortDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + note_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 java.lang.Object title_ = ""; + + /** + * + * + *
+       * Optional. Display title of the connector.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Display title of the connector.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Display title of the connector.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Display title of the connector.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Display title of the connector.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+       * Optional. Human-readable description of the connector, shown on the
+       * connector detail page. One connector has a single description.
+       * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Human-readable description of the connector, shown on the
+       * connector detail page. One connector has a single description.
+       * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Human-readable description of the connector, shown on the
+       * connector detail page. One connector has a single description.
+       * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Human-readable description of the connector, shown on the
+       * connector detail page. One connector has a single description.
+       * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Human-readable description of the connector, shown on the
+       * connector detail page. One connector has a single description.
+       * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object shortDescription_ = ""; + + /** + * + * + *
+       * Optional. Short, subtitle-length description of the connector (e.g. shown
+       * beneath the connector name in list and detail views).
+       * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shortDescription. + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Short, subtitle-length description of the connector (e.g. shown
+       * beneath the connector name in list and detail views).
+       * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for shortDescription. + */ + public com.google.protobuf.ByteString getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Short, subtitle-length description of the connector (e.g. shown
+       * beneath the connector name in list and detail views).
+       * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The shortDescription to set. + * @return This builder for chaining. + */ + public Builder setShortDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + shortDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Short, subtitle-length description of the connector (e.g. shown
+       * beneath the connector name in list and detail views).
+       * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShortDescription() { + shortDescription_ = getDefaultInstance().getShortDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Short, subtitle-length description of the connector (e.g. shown
+       * beneath the connector name in list and detail views).
+       * 
+ * + * string short_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for shortDescription to set. + * @return This builder for chaining. + */ + public Builder setShortDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + shortDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + + /** + * + * + *
+       * Optional. The party that authored the connector, e.g. "Google" or a
+       * third-party provider name. Lets end users see who authored a connector.
+       * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The party that authored the connector, e.g. "Google" or a
+       * third-party provider name. Lets end users see who authored a connector.
+       * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The party that authored the connector, e.g. "Google" or a
+       * third-party provider name. Lets end users see who authored a connector.
+       * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The party that authored the connector, e.g. "Google" or a
+       * third-party provider name. Lets end users see who authored a connector.
+       * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The party that authored the connector, e.g. "Google" or a
+       * third-party provider name. Lets end users see who authored a connector.
+       * 
+ * + * string author = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object note_ = ""; + + /** + * + * + *
+       * Optional. Free-form, multi-line note about the connector's capabilities
+       * or a custom note that can be set for the connector.
+       * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The note. + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + note_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Free-form, multi-line note about the connector's capabilities
+       * or a custom note that can be set for the connector.
+       * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for note. + */ + public com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Free-form, multi-line note about the connector's capabilities
+       * or a custom note that can be set for the connector.
+       * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The note to set. + * @return This builder for chaining. + */ + public Builder setNote(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + note_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Free-form, multi-line note about the connector's capabilities
+       * or a custom note that can be set for the connector.
+       * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNote() { + note_ = getDefaultInstance().getNote(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Free-form, multi-line note about the connector's capabilities
+       * or a custom note that can be set for the connector.
+       * 
+ * + * string note = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for note to set. + * @return This builder for chaining. + */ + public Builder setNoteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + note_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata) + private static final com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int dataConnectorParamsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataConnectorParams_; + + public enum DataConnectorParamsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARAMS(4), + JSON_PARAMS(43), + DATACONNECTORPARAMS_NOT_SET(0); + private final int value; + + private DataConnectorParamsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataConnectorParamsCase valueOf(int value) { + return forNumber(value); + } + + public static DataConnectorParamsCase forNumber(int value) { + switch (value) { + case 4: + return PARAMS; + case 43: + return JSON_PARAMS; + case 0: + return DATACONNECTORPARAMS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataConnectorParamsCase getDataConnectorParamsCase() { + return DataConnectorParamsCase.forNumber(dataConnectorParamsCase_); + } + + public static final int PARAMS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Required data connector parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return dataConnectorParamsCase_ == 4; + } + + /** + * + * + *
+   * Required data connector parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return The params. + */ + @java.lang.Override + public com.google.protobuf.Struct getParams() { + if (dataConnectorParamsCase_ == 4) { + return (com.google.protobuf.Struct) dataConnectorParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+   * Required data connector parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct params = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if (dataConnectorParamsCase_ == 4) { + return (com.google.protobuf.Struct) dataConnectorParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_PARAMS_FIELD_NUMBER = 43; + + /** + * + * + *
+   * Required data connector parameters in json string format.
+   * 
+ * + * string json_params = 43; + * + * @return Whether the jsonParams field is set. + */ + public boolean hasJsonParams() { + return dataConnectorParamsCase_ == 43; + } + + /** + * + * + *
+   * Required data connector parameters in json string format.
+   * 
+ * + * string json_params = 43; + * + * @return The jsonParams. + */ + public java.lang.String getJsonParams() { + java.lang.Object ref = ""; + if (dataConnectorParamsCase_ == 43) { + ref = dataConnectorParams_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataConnectorParamsCase_ == 43) { + dataConnectorParams_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Required data connector parameters in json string format.
+   * 
+ * + * string json_params = 43; + * + * @return The bytes for jsonParams. + */ + public com.google.protobuf.ByteString getJsonParamsBytes() { + java.lang.Object ref = ""; + if (dataConnectorParamsCase_ == 43) { + ref = dataConnectorParams_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataConnectorParamsCase_ == 43) { + dataConnectorParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The full resource name of the Data Connector.
+   * Format:
+   * `projects/*/locations/*/collections/*/dataConnector`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. The full resource name of the Data Connector.
+   * Format:
+   * `projects/*/locations/*/collections/*/dataConnector`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
+   * Output only. State of the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. State of the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.State getState() { + com.google.cloud.discoveryengine.v1.DataConnector.State result = + com.google.cloud.discoveryengine.v1.DataConnector.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.State.UNRECOGNIZED + : result; + } + + public static final int DATA_SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSource_ = ""; + + /** + * + * + *
+   * Required. The identifier for the data source.
+   * For the full, up-to-date list of supported connectors and their values,
+   * see
+   * [Connect a third-party data
+   * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+   * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataSource. + */ + @java.lang.Override + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The identifier for the data source.
+   * For the full, up-to-date list of supported connectors and their values,
+   * see
+   * [Connect a third-party data
+   * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+   * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOVE_PARAM_KEYS_FIELD_NUMBER = 38; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList removeParamKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the removeParamKeys. + */ + public com.google.protobuf.ProtocolStringList getRemoveParamKeysList() { + return removeParamKeys_; + } + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of removeParamKeys. + */ + public int getRemoveParamKeysCount() { + return removeParamKeys_.size(); + } + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The removeParamKeys at the given index. + */ + public java.lang.String getRemoveParamKeys(int index) { + return removeParamKeys_.get(index); + } + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the removeParamKeys at the given index. + */ + public com.google.protobuf.ByteString getRemoveParamKeysBytes(int index) { + return removeParamKeys_.getByteString(index); + } + + public static final int REFRESH_INTERVAL_FIELD_NUMBER = 5; + private com.google.protobuf.Duration refreshInterval_; + + /** + * + * + *
+   * Required. The refresh interval for data sync. If duration is set to 0, the
+   * data will be synced in real time. The streaming feature is not supported
+   * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+   * interval is set to the same value as the incremental refresh interval,
+   * incremental sync will be disabled.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the refreshInterval field is set. + */ + @java.lang.Override + public boolean hasRefreshInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The refresh interval for data sync. If duration is set to 0, the
+   * data will be synced in real time. The streaming feature is not supported
+   * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+   * interval is set to the same value as the incremental refresh interval,
+   * incremental sync will be disabled.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The refreshInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getRefreshInterval() { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } + + /** + * + * + *
+   * Required. The refresh interval for data sync. If duration is set to 0, the
+   * data will be synced in real time. The streaming feature is not supported
+   * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+   * interval is set to the same value as the incremental refresh interval,
+   * incremental sync will be disabled.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } + + public static final int NEXT_SYNC_TIME_FIELD_NUMBER = 22; + private com.google.type.DateTime nextSyncTime_; + + /** + * + * + *
+   * Defines the scheduled time for the next data synchronization. This field
+   * requires hour , minute, and time_zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+   * utilized when the data connector has a refresh interval greater than 1 day.
+   * When the hours or minutes are not specified, we will assume a sync time of
+   * 0:00. The user must provide a time zone to avoid ambiguity.
+   * 
+ * + * .google.type.DateTime next_sync_time = 22; + * + * @return Whether the nextSyncTime field is set. + */ + @java.lang.Override + public boolean hasNextSyncTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Defines the scheduled time for the next data synchronization. This field
+   * requires hour , minute, and time_zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+   * utilized when the data connector has a refresh interval greater than 1 day.
+   * When the hours or minutes are not specified, we will assume a sync time of
+   * 0:00. The user must provide a time zone to avoid ambiguity.
+   * 
+ * + * .google.type.DateTime next_sync_time = 22; + * + * @return The nextSyncTime. + */ + @java.lang.Override + public com.google.type.DateTime getNextSyncTime() { + return nextSyncTime_ == null ? com.google.type.DateTime.getDefaultInstance() : nextSyncTime_; + } + + /** + * + * + *
+   * Defines the scheduled time for the next data synchronization. This field
+   * requires hour , minute, and time_zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+   * utilized when the data connector has a refresh interval greater than 1 day.
+   * When the hours or minutes are not specified, we will assume a sync time of
+   * 0:00. The user must provide a time zone to avoid ambiguity.
+   * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + @java.lang.Override + public com.google.type.DateTimeOrBuilder getNextSyncTimeOrBuilder() { + return nextSyncTime_ == null ? com.google.type.DateTime.getDefaultInstance() : nextSyncTime_; + } + + public static final int ENTITIES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List entities_; + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + @java.lang.Override + public java.util.List + getEntitiesList() { + return entities_; + } + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder> + getEntitiesOrBuilderList() { + return entities_; + } + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + @java.lang.Override + public int getEntitiesCount() { + return entities_.size(); + } + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity getEntities(int index) { + return entities_.get(index); + } + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder + getEntitiesOrBuilder(int index) { + return entities_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+   * at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+   * at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+   * at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int LATEST_PAUSE_TIME_FIELD_NUMBER = 18; + private com.google.protobuf.Timestamp latestPauseTime_; + + /** + * + * + *
+   * Output only. The most recent timestamp when this
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+   * affecting all functionalities such as data synchronization.
+   * Pausing a connector has the following effects:
+   *
+   * - All functionalities, including data synchronization, are halted.
+   * - Any ongoing data synchronization job will be canceled.
+   * - No future data synchronization runs will be scheduled nor can be
+   * triggered.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestPauseTime field is set. + */ + @java.lang.Override + public boolean hasLatestPauseTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The most recent timestamp when this
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+   * affecting all functionalities such as data synchronization.
+   * Pausing a connector has the following effects:
+   *
+   * - All functionalities, including data synchronization, are halted.
+   * - Any ongoing data synchronization job will be canceled.
+   * - No future data synchronization runs will be scheduled nor can be
+   * triggered.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestPauseTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestPauseTime() { + return latestPauseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestPauseTime_; + } + + /** + * + * + *
+   * Output only. The most recent timestamp when this
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+   * affecting all functionalities such as data synchronization.
+   * Pausing a connector has the following effects:
+   *
+   * - All functionalities, including data synchronization, are halted.
+   * - Any ongoing data synchronization job will be canceled.
+   * - No future data synchronization runs will be scheduled nor can be
+   * triggered.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestPauseTimeOrBuilder() { + return latestPauseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestPauseTime_; + } + + public static final int LAST_SYNC_TIME_FIELD_NUMBER = 19; + private com.google.protobuf.Timestamp lastSyncTime_; + + /** + * + * + *
+   * Output only. For periodic connectors only, the last time a data sync was
+   * completed.
+   * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastSyncTime field is set. + */ + @java.lang.Override + public boolean hasLastSyncTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. For periodic connectors only, the last time a data sync was
+   * completed.
+   * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastSyncTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastSyncTime() { + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; + } + + /** + * + * + *
+   * Output only. For periodic connectors only, the last time a data sync was
+   * completed.
+   * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 20; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ERRORS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int SYNC_MODE_FIELD_NUMBER = 9; + private int syncMode_ = 0; + + /** + * + * + *
+   * The data synchronization mode supported by the data connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return The enum numeric value on the wire for syncMode. + */ + @java.lang.Override + public int getSyncModeValue() { + return syncMode_; + } + + /** + * + * + *
+   * The data synchronization mode supported by the data connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return The syncMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SyncMode getSyncMode() { + com.google.cloud.discoveryengine.v1.DataConnector.SyncMode result = + com.google.cloud.discoveryengine.v1.DataConnector.SyncMode.forNumber(syncMode_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.SyncMode.UNRECOGNIZED + : result; + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Input only. The KMS key to be used to protect the DataStores managed by
+   * this connector.
+   *
+   * Must be set for requests that need to comply with CMEK Org Policy
+   * protections.
+   *
+   * If this field is set and processed successfully, the DataStores created by
+   * this connector will be protected by the KMS key.
+   * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Input only. The KMS key to be used to protect the DataStores managed by
+   * this connector.
+   *
+   * Must be set for requests that need to comply with CMEK Org Policy
+   * protections.
+   *
+   * If this field is set and processed successfully, the DataStores created by
+   * this connector will be protected by the KMS key.
+   * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_CONFIGS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List destinationConfigs_; + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationConfigsList() { + return destinationConfigs_; + } + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationConfigsOrBuilderList() { + return destinationConfigs_; + } + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDestinationConfigsCount() { + return destinationConfigs_.size(); + } + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig getDestinationConfigs(int index) { + return destinationConfigs_.get(index); + } + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder + getDestinationConfigsOrBuilder(int index) { + return destinationConfigs_.get(index); + } + + public static final int ACTION_STATE_FIELD_NUMBER = 37; + private int actionState_ = 0; + + /** + * + * + *
+   * Output only. State of the action connector. This reflects whether the
+   * action connector is initializing, active or has encountered errors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for actionState. + */ + @java.lang.Override + public int getActionStateValue() { + return actionState_; + } + + /** + * + * + *
+   * Output only. State of the action connector. This reflects whether the
+   * action connector is initializing, active or has encountered errors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.State getActionState() { + com.google.cloud.discoveryengine.v1.DataConnector.State result = + com.google.cloud.discoveryengine.v1.DataConnector.State.forNumber(actionState_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.State.UNRECOGNIZED + : result; + } + + public static final int ACTION_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.discoveryengine.v1.ActionConfig actionConfig_; + + /** + * + * + *
+   * Optional. Action configurations to make the connector support actions.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the actionConfig field is set. + */ + @java.lang.Override + public boolean hasActionConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Action configurations to make the connector support actions.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfig getActionConfig() { + return actionConfig_ == null + ? com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance() + : actionConfig_; + } + + /** + * + * + *
+   * Optional. Action configurations to make the connector support actions.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder getActionConfigOrBuilder() { + return actionConfig_ == null + ? com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance() + : actionConfig_; + } + + public static final int END_USER_CONFIG_FIELD_NUMBER = 30; + private com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig endUserConfig_; + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserConfig field is set. + */ + @java.lang.Override + public boolean hasEndUserConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig getEndUserConfig() { + return endUserConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.getDefaultInstance() + : endUserConfig_; + } + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder + getEndUserConfigOrBuilder() { + return endUserConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.getDefaultInstance() + : endUserConfig_; + } + + public static final int FEDERATED_CONFIG_FIELD_NUMBER = 41; + private com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federatedConfig_; + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for hybrid
+   * connectors supporting FEDERATED mode. This field should only be set if the
+   * connector is a hybrid connector and we want to enable FEDERATED mode.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedConfig field is set. + */ + @java.lang.Override + public boolean hasFederatedConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for hybrid
+   * connectors supporting FEDERATED mode. This field should only be set if the
+   * connector is a hybrid connector and we want to enable FEDERATED mode.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig getFederatedConfig() { + return federatedConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.getDefaultInstance() + : federatedConfig_; + } + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for hybrid
+   * connectors supporting FEDERATED mode. This field should only be set if the
+   * connector is a hybrid connector and we want to enable FEDERATED mode.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder + getFederatedConfigOrBuilder() { + return federatedConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.getDefaultInstance() + : federatedConfig_; + } + + public static final int CONNECTOR_MODES_FIELD_NUMBER = 31; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList connectorModes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode> + connectorModes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode>() { + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode convert( + int from) { + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode result = + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the connectorModes. + */ + @java.lang.Override + public java.util.List + getConnectorModesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode>( + connectorModes_, connectorModes_converter_); + } + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of connectorModes. + */ + @java.lang.Override + public int getConnectorModesCount() { + return connectorModes_.size(); + } + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The connectorModes at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode getConnectorModes( + int index) { + return connectorModes_converter_.convert(connectorModes_.getInt(index)); + } + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for connectorModes. + */ + @java.lang.Override + public java.util.List getConnectorModesValueList() { + return connectorModes_; + } + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of connectorModes at the given index. + */ + @java.lang.Override + public int getConnectorModesValue(int index) { + return connectorModes_.getInt(index); + } + + private int connectorModesMemoizedSerializedSize; + + public static final int STATIC_IP_ENABLED_FIELD_NUMBER = 15; + private boolean staticIpEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether customer has enabled static IP addresses for this
+   * connector.
+   * 
+ * + * bool static_ip_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The staticIpEnabled. + */ + @java.lang.Override + public boolean getStaticIpEnabled() { + return staticIpEnabled_; + } + + public static final int STATIC_IP_ADDRESSES_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList staticIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the staticIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getStaticIpAddressesList() { + return staticIpAddresses_; + } + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of staticIpAddresses. + */ + public int getStaticIpAddressesCount() { + return staticIpAddresses_.size(); + } + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The staticIpAddresses at the given index. + */ + public java.lang.String getStaticIpAddresses(int index) { + return staticIpAddresses_.get(index); + } + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the staticIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getStaticIpAddressesBytes(int index) { + return staticIpAddresses_.getByteString(index); + } + + public static final int OAUTH_STATIC_IP_ADDRESSES_FIELD_NUMBER = 50; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList oauthStaticIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the oauthStaticIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getOauthStaticIpAddressesList() { + return oauthStaticIpAddresses_; + } + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of oauthStaticIpAddresses. + */ + public int getOauthStaticIpAddressesCount() { + return oauthStaticIpAddresses_.size(); + } + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The oauthStaticIpAddresses at the given index. + */ + public java.lang.String getOauthStaticIpAddresses(int index) { + return oauthStaticIpAddresses_.get(index); + } + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the oauthStaticIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getOauthStaticIpAddressesBytes(int index) { + return oauthStaticIpAddresses_.getByteString(index); + } + + public static final int BLOCKING_REASONS_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList blockingReasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason> + blockingReasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason>() { + public com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason convert( + int from) { + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason result = + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blockingReasons. + */ + @java.lang.Override + public java.util.List + getBlockingReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason>( + blockingReasons_, blockingReasons_converter_); + } + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blockingReasons. + */ + @java.lang.Override + public int getBlockingReasonsCount() { + return blockingReasons_.size(); + } + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blockingReasons at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason getBlockingReasons( + int index) { + return blockingReasons_converter_.convert(blockingReasons_.getInt(index)); + } + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for blockingReasons. + */ + @java.lang.Override + public java.util.List getBlockingReasonsValueList() { + return blockingReasons_; + } + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of blockingReasons at the given index. + */ + @java.lang.Override + public int getBlockingReasonsValue(int index) { + return blockingReasons_.getInt(index); + } + + private int blockingReasonsMemoizedSerializedSize; + + public static final int IDENTITY_SCHEDULE_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1.IdentityScheduleConfig identityScheduleConfig_; + + /** + * + * + *
+   * The configuration for the identity data synchronization runs. This contains
+   * the refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + * + * @return Whether the identityScheduleConfig field is set. + */ + @java.lang.Override + public boolean hasIdentityScheduleConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * The configuration for the identity data synchronization runs. This contains
+   * the refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + * + * @return The identityScheduleConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig getIdentityScheduleConfig() { + return identityScheduleConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.getDefaultInstance() + : identityScheduleConfig_; + } + + /** + * + * + *
+   * The configuration for the identity data synchronization runs. This contains
+   * the refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder + getIdentityScheduleConfigOrBuilder() { + return identityScheduleConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.getDefaultInstance() + : identityScheduleConfig_; + } + + public static final int PRIVATE_CONNECTIVITY_PROJECT_ID_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object privateConnectivityProjectId_ = ""; + + /** + * + * + *
+   * Output only. The tenant project ID associated with private connectivity
+   * connectors. This project must be allowlisted by in order for the connector
+   * to function.
+   * 
+ * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateConnectivityProjectId. + */ + @java.lang.Override + public java.lang.String getPrivateConnectivityProjectId() { + java.lang.Object ref = privateConnectivityProjectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateConnectivityProjectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The tenant project ID associated with private connectivity
+   * connectors. This project must be allowlisted by in order for the connector
+   * to function.
+   * 
+ * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for privateConnectivityProjectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateConnectivityProjectIdBytes() { + java.lang.Object ref = privateConnectivityProjectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnectivityProjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BAP_CONFIG_FIELD_NUMBER = 24; + private com.google.cloud.discoveryengine.v1.BAPConfig bapConfig_; + + /** + * + * + *
+   * Optional. The configuration for establishing a BAP connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bapConfig field is set. + */ + @java.lang.Override + public boolean hasBapConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. The configuration for establishing a BAP connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bapConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfig getBapConfig() { + return bapConfig_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance() + : bapConfig_; + } + + /** + * + * + *
+   * Optional. The configuration for establishing a BAP connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder getBapConfigOrBuilder() { + return bapConfig_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance() + : bapConfig_; + } + + public static final int CONNECTOR_TYPE_FIELD_NUMBER = 25; + private int connectorType_ = 0; + + /** + * + * + *
+   * Output only. The type of connector. Each source can only map to one type.
+   * For example, salesforce, confluence and jira have THIRD_PARTY connector
+   * type. It is not mutable once set by system.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectorType. + */ + @java.lang.Override + public int getConnectorTypeValue() { + return connectorType_; + } + + /** + * + * + *
+   * Output only. The type of connector. Each source can only map to one type.
+   * For example, salesforce, confluence and jira have THIRD_PARTY connector
+   * type. It is not mutable once set by system.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ConnectorType getConnectorType() { + com.google.cloud.discoveryengine.v1.ConnectorType result = + com.google.cloud.discoveryengine.v1.ConnectorType.forNumber(connectorType_); + return result == null ? com.google.cloud.discoveryengine.v1.ConnectorType.UNRECOGNIZED : result; + } + + public static final int REALTIME_STATE_FIELD_NUMBER = 26; + private int realtimeState_ = 0; + + /** + * + * + *
+   * Output only. real-time sync state
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for realtimeState. + */ + @java.lang.Override + public int getRealtimeStateValue() { + return realtimeState_; + } + + /** + * + * + *
+   * Output only. real-time sync state
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The realtimeState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.State getRealtimeState() { + com.google.cloud.discoveryengine.v1.DataConnector.State result = + com.google.cloud.discoveryengine.v1.DataConnector.State.forNumber(realtimeState_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.State.UNRECOGNIZED + : result; + } + + public static final int ALERT_POLICY_CONFIGS_FIELD_NUMBER = 28; + + @SuppressWarnings("serial") + private java.util.List alertPolicyConfigs_; + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAlertPolicyConfigsList() { + return alertPolicyConfigs_; + } + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAlertPolicyConfigsOrBuilderList() { + return alertPolicyConfigs_; + } + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAlertPolicyConfigsCount() { + return alertPolicyConfigs_.size(); + } + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig getAlertPolicyConfigs(int index) { + return alertPolicyConfigs_.get(index); + } + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder + getAlertPolicyConfigsOrBuilder(int index) { + return alertPolicyConfigs_.get(index); + } + + public static final int REALTIME_SYNC_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtimeSyncConfig_; + + /** + * + * + *
+   * Optional. The configuration for realtime sync.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the realtimeSyncConfig field is set. + */ + @java.lang.Override + public boolean hasRealtimeSyncConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Optional. The configuration for realtime sync.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The realtimeSyncConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + getRealtimeSyncConfig() { + return realtimeSyncConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.getDefaultInstance() + : realtimeSyncConfig_; + } + + /** + * + * + *
+   * Optional. The configuration for realtime sync.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder + getRealtimeSyncConfigOrBuilder() { + return realtimeSyncConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.getDefaultInstance() + : realtimeSyncConfig_; + } + + public static final int ACL_ENABLED_FIELD_NUMBER = 33; + private boolean aclEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether the connector will be created with an ACL config.
+   * Currently this field only affects Cloud Storage and BigQuery connectors.
+   * 
+ * + * bool acl_enabled = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + + public static final int CREATE_EUA_SAAS_FIELD_NUMBER = 34; + private boolean createEuaSaas_ = false; + + /** + * + * + *
+   * Optional. Whether the END USER AUTHENTICATION connector is created in SaaS.
+   * 
+ * + * bool create_eua_saas = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createEuaSaas. + */ + @java.lang.Override + public boolean getCreateEuaSaas() { + return createEuaSaas_; + } + + public static final int AUTO_RUN_DISABLED_FIELD_NUMBER = 10; + private boolean autoRunDisabled_ = false; + + /** + * + * + *
+   * Optional. Indicates whether the connector is disabled for auto run. It can
+   * be used to pause periodical and real time sync. Update: with the
+   * introduction of incremental_sync_disabled, auto_run_disabled is used to
+   * pause/disable only full syncs
+   * 
+ * + * bool auto_run_disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRunDisabled. + */ + @java.lang.Override + public boolean getAutoRunDisabled() { + return autoRunDisabled_; + } + + public static final int INCREMENTAL_SYNC_DISABLED_FIELD_NUMBER = 35; + private boolean incrementalSyncDisabled_ = false; + + /** + * + * + *
+   * Optional. Indicates whether incremental syncs are paused for this
+   * connector. This is independent of auto_run_disabled. Applicable to only 3P
+   * connectors. When the refresh interval is set to the same value as the
+   * incremental refresh interval, incremental sync will be disabled, i.e. set
+   * to true.
+   * 
+ * + * bool incremental_sync_disabled = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The incrementalSyncDisabled. + */ + @java.lang.Override + public boolean getIncrementalSyncDisabled() { + return incrementalSyncDisabled_; + } + + public static final int INCREMENTAL_REFRESH_INTERVAL_FIELD_NUMBER = 36; + private com.google.protobuf.Duration incrementalRefreshInterval_; + + /** + * + * + *
+   * Optional. The refresh interval specifically for incremental data syncs. If
+   * unset, incremental syncs will use the default from env, set to 3hrs. The
+   * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+   * connectors. When the refresh interval is
+   * set to the same value as the incremental refresh interval, incremental
+   * sync will be disabled.
+   * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the incrementalRefreshInterval field is set. + */ + @java.lang.Override + public boolean hasIncrementalRefreshInterval() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Optional. The refresh interval specifically for incremental data syncs. If
+   * unset, incremental syncs will use the default from env, set to 3hrs. The
+   * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+   * connectors. When the refresh interval is
+   * set to the same value as the incremental refresh interval, incremental
+   * sync will be disabled.
+   * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The incrementalRefreshInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getIncrementalRefreshInterval() { + return incrementalRefreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : incrementalRefreshInterval_; + } + + /** + * + * + *
+   * Optional. The refresh interval specifically for incremental data syncs. If
+   * unset, incremental syncs will use the default from env, set to 3hrs. The
+   * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+   * connectors. When the refresh interval is
+   * set to the same value as the incremental refresh interval, incremental
+   * sync will be disabled.
+   * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getIncrementalRefreshIntervalOrBuilder() { + return incrementalRefreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : incrementalRefreshInterval_; + } + + public static final int HYBRID_INGESTION_DISABLED_FIELD_NUMBER = 40; + private boolean hybridIngestionDisabled_ = false; + + /** + * + * + *
+   * Optional. If the connector is a hybrid connector, determines whether
+   * ingestion is enabled and appropriate resources are provisioned during
+   * connector creation. If the connector is not a hybrid connector, this field
+   * is ignored.
+   * 
+ * + * bool hybrid_ingestion_disabled = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hybridIngestionDisabled. + */ + @java.lang.Override + public boolean getHybridIngestionDisabled() { + return hybridIngestionDisabled_; + } + + public static final int DATA_PROTECTION_POLICY_FIELD_NUMBER = 44; + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy dataProtectionPolicy_; + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + public static final int EGRESS_FQDNS_FIELD_NUMBER = 45; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList egressFqdns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the egressFqdns. + */ + public com.google.protobuf.ProtocolStringList getEgressFqdnsList() { + return egressFqdns_; + } + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of egressFqdns. + */ + public int getEgressFqdnsCount() { + return egressFqdns_.size(); + } + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The egressFqdns at the given index. + */ + public java.lang.String getEgressFqdns(int index) { + return egressFqdns_.get(index); + } + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the egressFqdns at the given index. + */ + public com.google.protobuf.ByteString getEgressFqdnsBytes(int index) { + return egressFqdns_.getByteString(index); + } + + public static final int VPCSC_ENABLED_FIELD_NUMBER = 46; + private boolean vpcscEnabled_ = false; + + /** + * + * + *
+   * Output only. Whether the connector is created with VPC-SC enabled.
+   * 
+ * + * bool vpcsc_enabled = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vpcscEnabled. + */ + @java.lang.Override + public boolean getVpcscEnabled() { + return vpcscEnabled_; + } + + public static final int DYNAMIC_TOOLS_FIELD_NUMBER = 47; + + @SuppressWarnings("serial") + private java.util.List dynamicTools_; + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getDynamicToolsList() { + return dynamicTools_; + } + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDynamicToolsOrBuilderList() { + return dynamicTools_; + } + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDynamicToolsCount() { + return dynamicTools_.size(); + } + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DynamicTool getDynamicTools(int index) { + return dynamicTools_.get(index); + } + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder getDynamicToolsOrBuilder( + int index) { + return dynamicTools_.get(index); + } + + public static final int CLI_CONFIG_FIELD_NUMBER = 48; + private com.google.cloud.discoveryengine.v1.CliConfig cliConfig_; + + /** + * + * + *
+   * Optional. The configuration for establishing a CLI connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cliConfig field is set. + */ + @java.lang.Override + public boolean hasCliConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Optional. The configuration for establishing a CLI connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cliConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CliConfig getCliConfig() { + return cliConfig_ == null + ? com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance() + : cliConfig_; + } + + /** + * + * + *
+   * Optional. The configuration for establishing a CLI connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CliConfigOrBuilder getCliConfigOrBuilder() { + return cliConfig_ == null + ? com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance() + : cliConfig_; + } + + public static final int CONNECTOR_SOURCE_ID_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private volatile java.lang.Object connectorSourceId_ = ""; + + /** + * + * + *
+   * Optional. If set, this value instead of `data_source` is used to fetch the
+   * corresponding connector source.
+   * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connectorSourceId. + */ + @java.lang.Override + public java.lang.String getConnectorSourceId() { + java.lang.Object ref = connectorSourceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectorSourceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. If set, this value instead of `data_source` is used to fetch the
+   * corresponding connector source.
+   * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connectorSourceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectorSourceIdBytes() { + java.lang.Object ref = connectorSourceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectorSourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_FIELD_NUMBER = 51; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; + + /** + * + * + *
+   * Optional. Immutable. User-facing, version-independent label for this
+   * connector. May be shared by multiple connectors under the same
+   * (project, location, collection, data_source); tag-based lookup returns
+   * the one with the greatest create_time.
+   *
+   * Optional at Create time. If the caller omits `tag`, the server
+   * auto-derives one from the collection_id (falling back to data_source,
+   * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+   * subject to the same immutability guarantee as a caller-supplied one,
+   * so callers who care about the exact tag value should provide it
+   * explicitly rather than relying on the server default.
+   *
+   * Agent Designer resolves connectors via (data_source, tag) when set,
+   * falling back to the legacy resource-name lookup when unset, so
+   * connectors created before the tag-write launch continue to work
+   * without a backfill.
+   * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The tag. + */ + @java.lang.Override + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. User-facing, version-independent label for this
+   * connector. May be shared by multiple connectors under the same
+   * (project, location, collection, data_source); tag-based lookup returns
+   * the one with the greatest create_time.
+   *
+   * Optional at Create time. If the caller omits `tag`, the server
+   * auto-derives one from the collection_id (falling back to data_source,
+   * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+   * subject to the same immutability guarantee as a caller-supplied one,
+   * so callers who care about the exact tag value should provide it
+   * explicitly rather than relying on the server default.
+   *
+   * Agent Designer resolves connectors via (data_source, tag) when set,
+   * falling back to the legacy resource-name lookup when unset, so
+   * connectors created before the tag-write launch continue to work
+   * without a backfill.
+   * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for tag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 52; + private com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata_; + + /** + * + * + *
+   * Optional. User-facing metadata for the connector. Populated from the
+   * connector's generated metadata / registry `ConnectorSource`.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+   * Optional. User-facing metadata for the connector. Populated from the
+   * connector's generated metadata / registry `ConnectorSource`.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
+   * Optional. User-facing metadata for the connector. Populated from the
+   * connector's generated metadata / registry `ConnectorSource`.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder + getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.getDefaultInstance() + : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (state_ + != com.google.cloud.discoveryengine.v1.DataConnector.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataSource_); + } + if (dataConnectorParamsCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Struct) dataConnectorParams_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getRefreshInterval()); + } + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(6, entities_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getCreateTime()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(8, errors_.get(i)); + } + if (syncMode_ + != com.google.cloud.discoveryengine.v1.DataConnector.SyncMode.PERIODIC.getNumber()) { + output.writeEnum(9, syncMode_); + } + if (autoRunDisabled_ != false) { + output.writeBool(10, autoRunDisabled_); + } + for (int i = 0; i < destinationConfigs_.size(); i++) { + output.writeMessage(12, destinationConfigs_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(13, getActionConfig()); + } + for (int i = 0; i < staticIpAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, staticIpAddresses_.getRaw(i)); + } + if (staticIpEnabled_ != false) { + output.writeBool(15, staticIpEnabled_); + } + if (getBlockingReasonsList().size() > 0) { + output.writeUInt32NoTag(130); + output.writeUInt32NoTag(blockingReasonsMemoizedSerializedSize); + } + for (int i = 0; i < blockingReasons_.size(); i++) { + output.writeEnumNoTag(blockingReasons_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(privateConnectivityProjectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, privateConnectivityProjectId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(18, getLatestPauseTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(19, getLastSyncTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(22, getNextSyncTime()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(23, getIdentityScheduleConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(24, getBapConfig()); + } + if (connectorType_ + != com.google.cloud.discoveryengine.v1.ConnectorType.CONNECTOR_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(25, connectorType_); + } + if (realtimeState_ + != com.google.cloud.discoveryengine.v1.DataConnector.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(26, realtimeState_); + } + for (int i = 0; i < alertPolicyConfigs_.size(); i++) { + output.writeMessage(28, alertPolicyConfigs_.get(i)); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(29, getRealtimeSyncConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(30, getEndUserConfig()); + } + if (getConnectorModesList().size() > 0) { + output.writeUInt32NoTag(250); + output.writeUInt32NoTag(connectorModesMemoizedSerializedSize); + } + for (int i = 0; i < connectorModes_.size(); i++) { + output.writeEnumNoTag(connectorModes_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 32, kmsKeyName_); + } + if (aclEnabled_ != false) { + output.writeBool(33, aclEnabled_); + } + if (createEuaSaas_ != false) { + output.writeBool(34, createEuaSaas_); + } + if (incrementalSyncDisabled_ != false) { + output.writeBool(35, incrementalSyncDisabled_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(36, getIncrementalRefreshInterval()); + } + if (actionState_ + != com.google.cloud.discoveryengine.v1.DataConnector.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(37, actionState_); + } + for (int i = 0; i < removeParamKeys_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 38, removeParamKeys_.getRaw(i)); + } + if (hybridIngestionDisabled_ != false) { + output.writeBool(40, hybridIngestionDisabled_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(41, getFederatedConfig()); + } + if (dataConnectorParamsCase_ == 43) { + com.google.protobuf.GeneratedMessage.writeString(output, 43, dataConnectorParams_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(44, getDataProtectionPolicy()); + } + for (int i = 0; i < egressFqdns_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 45, egressFqdns_.getRaw(i)); + } + if (vpcscEnabled_ != false) { + output.writeBool(46, vpcscEnabled_); + } + for (int i = 0; i < dynamicTools_.size(); i++) { + output.writeMessage(47, dynamicTools_.get(i)); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(48, getCliConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connectorSourceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 49, connectorSourceId_); + } + for (int i = 0; i < oauthStaticIpAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 50, oauthStaticIpAddresses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 51, tag_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(52, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ + != com.google.cloud.discoveryengine.v1.DataConnector.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataSource_); + } + if (dataConnectorParamsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Struct) dataConnectorParams_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRefreshInterval()); + } + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, entities_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, errors_.get(i)); + } + if (syncMode_ + != com.google.cloud.discoveryengine.v1.DataConnector.SyncMode.PERIODIC.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, syncMode_); + } + if (autoRunDisabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, autoRunDisabled_); + } + for (int i = 0; i < destinationConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, destinationConfigs_.get(i)); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getActionConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < staticIpAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(staticIpAddresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getStaticIpAddressesList().size(); + } + if (staticIpEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, staticIpEnabled_); + } + { + int dataSize = 0; + for (int i = 0; i < blockingReasons_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(blockingReasons_.getInt(i)); + } + size += dataSize; + if (!getBlockingReasonsList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + blockingReasonsMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(privateConnectivityProjectId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(17, privateConnectivityProjectId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLatestPauseTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLastSyncTime()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getNextSyncTime()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getIdentityScheduleConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBapConfig()); + } + if (connectorType_ + != com.google.cloud.discoveryengine.v1.ConnectorType.CONNECTOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, connectorType_); + } + if (realtimeState_ + != com.google.cloud.discoveryengine.v1.DataConnector.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, realtimeState_); + } + for (int i = 0; i < alertPolicyConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, alertPolicyConfigs_.get(i)); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getRealtimeSyncConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getEndUserConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < connectorModes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(connectorModes_.getInt(i)); + } + size += dataSize; + if (!getConnectorModesList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + connectorModesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(32, kmsKeyName_); + } + if (aclEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, aclEnabled_); + } + if (createEuaSaas_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, createEuaSaas_); + } + if (incrementalSyncDisabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(35, incrementalSyncDisabled_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 36, getIncrementalRefreshInterval()); + } + if (actionState_ + != com.google.cloud.discoveryengine.v1.DataConnector.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(37, actionState_); + } + { + int dataSize = 0; + for (int i = 0; i < removeParamKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(removeParamKeys_.getRaw(i)); + } + size += dataSize; + size += 2 * getRemoveParamKeysList().size(); + } + if (hybridIngestionDisabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, hybridIngestionDisabled_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getFederatedConfig()); + } + if (dataConnectorParamsCase_ == 43) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(43, dataConnectorParams_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(44, getDataProtectionPolicy()); + } + { + int dataSize = 0; + for (int i = 0; i < egressFqdns_.size(); i++) { + dataSize += computeStringSizeNoTag(egressFqdns_.getRaw(i)); + } + size += dataSize; + size += 2 * getEgressFqdnsList().size(); + } + if (vpcscEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(46, vpcscEnabled_); + } + for (int i = 0; i < dynamicTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, dynamicTools_.get(i)); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(48, getCliConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connectorSourceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(49, connectorSourceId_); + } + { + int dataSize = 0; + for (int i = 0; i < oauthStaticIpAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(oauthStaticIpAddresses_.getRaw(i)); + } + size += dataSize; + size += 2 * getOauthStaticIpAddressesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(51, tag_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataConnector)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataConnector other = + (com.google.cloud.discoveryengine.v1.DataConnector) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getDataSource().equals(other.getDataSource())) return false; + if (!getRemoveParamKeysList().equals(other.getRemoveParamKeysList())) return false; + if (hasRefreshInterval() != other.hasRefreshInterval()) return false; + if (hasRefreshInterval()) { + if (!getRefreshInterval().equals(other.getRefreshInterval())) return false; + } + if (hasNextSyncTime() != other.hasNextSyncTime()) return false; + if (hasNextSyncTime()) { + if (!getNextSyncTime().equals(other.getNextSyncTime())) return false; + } + if (!getEntitiesList().equals(other.getEntitiesList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasLatestPauseTime() != other.hasLatestPauseTime()) return false; + if (hasLatestPauseTime()) { + if (!getLatestPauseTime().equals(other.getLatestPauseTime())) return false; + } + if (hasLastSyncTime() != other.hasLastSyncTime()) return false; + if (hasLastSyncTime()) { + if (!getLastSyncTime().equals(other.getLastSyncTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (syncMode_ != other.syncMode_) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getDestinationConfigsList().equals(other.getDestinationConfigsList())) return false; + if (actionState_ != other.actionState_) return false; + if (hasActionConfig() != other.hasActionConfig()) return false; + if (hasActionConfig()) { + if (!getActionConfig().equals(other.getActionConfig())) return false; + } + if (hasEndUserConfig() != other.hasEndUserConfig()) return false; + if (hasEndUserConfig()) { + if (!getEndUserConfig().equals(other.getEndUserConfig())) return false; + } + if (hasFederatedConfig() != other.hasFederatedConfig()) return false; + if (hasFederatedConfig()) { + if (!getFederatedConfig().equals(other.getFederatedConfig())) return false; + } + if (!connectorModes_.equals(other.connectorModes_)) return false; + if (getStaticIpEnabled() != other.getStaticIpEnabled()) return false; + if (!getStaticIpAddressesList().equals(other.getStaticIpAddressesList())) return false; + if (!getOauthStaticIpAddressesList().equals(other.getOauthStaticIpAddressesList())) + return false; + if (!blockingReasons_.equals(other.blockingReasons_)) return false; + if (hasIdentityScheduleConfig() != other.hasIdentityScheduleConfig()) return false; + if (hasIdentityScheduleConfig()) { + if (!getIdentityScheduleConfig().equals(other.getIdentityScheduleConfig())) return false; + } + if (!getPrivateConnectivityProjectId().equals(other.getPrivateConnectivityProjectId())) + return false; + if (hasBapConfig() != other.hasBapConfig()) return false; + if (hasBapConfig()) { + if (!getBapConfig().equals(other.getBapConfig())) return false; + } + if (connectorType_ != other.connectorType_) return false; + if (realtimeState_ != other.realtimeState_) return false; + if (!getAlertPolicyConfigsList().equals(other.getAlertPolicyConfigsList())) return false; + if (hasRealtimeSyncConfig() != other.hasRealtimeSyncConfig()) return false; + if (hasRealtimeSyncConfig()) { + if (!getRealtimeSyncConfig().equals(other.getRealtimeSyncConfig())) return false; + } + if (getAclEnabled() != other.getAclEnabled()) return false; + if (getCreateEuaSaas() != other.getCreateEuaSaas()) return false; + if (getAutoRunDisabled() != other.getAutoRunDisabled()) return false; + if (getIncrementalSyncDisabled() != other.getIncrementalSyncDisabled()) return false; + if (hasIncrementalRefreshInterval() != other.hasIncrementalRefreshInterval()) return false; + if (hasIncrementalRefreshInterval()) { + if (!getIncrementalRefreshInterval().equals(other.getIncrementalRefreshInterval())) + return false; + } + if (getHybridIngestionDisabled() != other.getHybridIngestionDisabled()) return false; + if (hasDataProtectionPolicy() != other.hasDataProtectionPolicy()) return false; + if (hasDataProtectionPolicy()) { + if (!getDataProtectionPolicy().equals(other.getDataProtectionPolicy())) return false; + } + if (!getEgressFqdnsList().equals(other.getEgressFqdnsList())) return false; + if (getVpcscEnabled() != other.getVpcscEnabled()) return false; + if (!getDynamicToolsList().equals(other.getDynamicToolsList())) return false; + if (hasCliConfig() != other.hasCliConfig()) return false; + if (hasCliConfig()) { + if (!getCliConfig().equals(other.getCliConfig())) return false; + } + if (!getConnectorSourceId().equals(other.getConnectorSourceId())) return false; + if (!getTag().equals(other.getTag())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getDataConnectorParamsCase().equals(other.getDataConnectorParamsCase())) return false; + switch (dataConnectorParamsCase_) { + case 4: + if (!getParams().equals(other.getParams())) return false; + break; + case 43: + if (!getJsonParams().equals(other.getJsonParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataSource().hashCode(); + if (getRemoveParamKeysCount() > 0) { + hash = (37 * hash) + REMOVE_PARAM_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getRemoveParamKeysList().hashCode(); + } + if (hasRefreshInterval()) { + hash = (37 * hash) + REFRESH_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getRefreshInterval().hashCode(); + } + if (hasNextSyncTime()) { + hash = (37 * hash) + NEXT_SYNC_TIME_FIELD_NUMBER; + hash = (53 * hash) + getNextSyncTime().hashCode(); + } + if (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasLatestPauseTime()) { + hash = (37 * hash) + LATEST_PAUSE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestPauseTime().hashCode(); + } + if (hasLastSyncTime()) { + hash = (37 * hash) + LAST_SYNC_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastSyncTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (37 * hash) + SYNC_MODE_FIELD_NUMBER; + hash = (53 * hash) + syncMode_; + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + if (getDestinationConfigsCount() > 0) { + hash = (37 * hash) + DESTINATION_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationConfigsList().hashCode(); + } + hash = (37 * hash) + ACTION_STATE_FIELD_NUMBER; + hash = (53 * hash) + actionState_; + if (hasActionConfig()) { + hash = (37 * hash) + ACTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getActionConfig().hashCode(); + } + if (hasEndUserConfig()) { + hash = (37 * hash) + END_USER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEndUserConfig().hashCode(); + } + if (hasFederatedConfig()) { + hash = (37 * hash) + FEDERATED_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFederatedConfig().hashCode(); + } + if (getConnectorModesCount() > 0) { + hash = (37 * hash) + CONNECTOR_MODES_FIELD_NUMBER; + hash = (53 * hash) + connectorModes_.hashCode(); + } + hash = (37 * hash) + STATIC_IP_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStaticIpEnabled()); + if (getStaticIpAddressesCount() > 0) { + hash = (37 * hash) + STATIC_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getStaticIpAddressesList().hashCode(); + } + if (getOauthStaticIpAddressesCount() > 0) { + hash = (37 * hash) + OAUTH_STATIC_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getOauthStaticIpAddressesList().hashCode(); + } + if (getBlockingReasonsCount() > 0) { + hash = (37 * hash) + BLOCKING_REASONS_FIELD_NUMBER; + hash = (53 * hash) + blockingReasons_.hashCode(); + } + if (hasIdentityScheduleConfig()) { + hash = (37 * hash) + IDENTITY_SCHEDULE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdentityScheduleConfig().hashCode(); + } + hash = (37 * hash) + PRIVATE_CONNECTIVITY_PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectivityProjectId().hashCode(); + if (hasBapConfig()) { + hash = (37 * hash) + BAP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBapConfig().hashCode(); + } + hash = (37 * hash) + CONNECTOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectorType_; + hash = (37 * hash) + REALTIME_STATE_FIELD_NUMBER; + hash = (53 * hash) + realtimeState_; + if (getAlertPolicyConfigsCount() > 0) { + hash = (37 * hash) + ALERT_POLICY_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAlertPolicyConfigsList().hashCode(); + } + if (hasRealtimeSyncConfig()) { + hash = (37 * hash) + REALTIME_SYNC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRealtimeSyncConfig().hashCode(); + } + hash = (37 * hash) + ACL_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAclEnabled()); + hash = (37 * hash) + CREATE_EUA_SAAS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateEuaSaas()); + hash = (37 * hash) + AUTO_RUN_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRunDisabled()); + hash = (37 * hash) + INCREMENTAL_SYNC_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncrementalSyncDisabled()); + if (hasIncrementalRefreshInterval()) { + hash = (37 * hash) + INCREMENTAL_REFRESH_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getIncrementalRefreshInterval().hashCode(); + } + hash = (37 * hash) + HYBRID_INGESTION_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHybridIngestionDisabled()); + if (hasDataProtectionPolicy()) { + hash = (37 * hash) + DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataProtectionPolicy().hashCode(); + } + if (getEgressFqdnsCount() > 0) { + hash = (37 * hash) + EGRESS_FQDNS_FIELD_NUMBER; + hash = (53 * hash) + getEgressFqdnsList().hashCode(); + } + hash = (37 * hash) + VPCSC_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVpcscEnabled()); + if (getDynamicToolsCount() > 0) { + hash = (37 * hash) + DYNAMIC_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getDynamicToolsList().hashCode(); + } + if (hasCliConfig()) { + hash = (37 * hash) + CLI_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCliConfig().hashCode(); + } + hash = (37 * hash) + CONNECTOR_SOURCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectorSourceId().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + switch (dataConnectorParamsCase_) { + case 4: + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParams().hashCode(); + break; + case 43: + hash = (37 * hash) + JSON_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getJsonParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DataConnector prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Manages the connection to external data sources for all data stores grouped
+   * under a [Collection][google.cloud.discoveryengine.v1.Collection]. It's a
+   * singleton resource of
+   * [Collection][google.cloud.discoveryengine.v1.Collection]. The initialization
+   * is only supported through
+   * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+   * method, which will create a new
+   * [Collection][google.cloud.discoveryengine.v1.Collection] and initialize its
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector].
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataConnector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataConnector) + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataConnector.class, + com.google.cloud.discoveryengine.v1.DataConnector.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DataConnector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRefreshIntervalFieldBuilder(); + internalGetNextSyncTimeFieldBuilder(); + internalGetEntitiesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetLatestPauseTimeFieldBuilder(); + internalGetLastSyncTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetErrorsFieldBuilder(); + internalGetDestinationConfigsFieldBuilder(); + internalGetActionConfigFieldBuilder(); + internalGetEndUserConfigFieldBuilder(); + internalGetFederatedConfigFieldBuilder(); + internalGetIdentityScheduleConfigFieldBuilder(); + internalGetBapConfigFieldBuilder(); + internalGetAlertPolicyConfigsFieldBuilder(); + internalGetRealtimeSyncConfigFieldBuilder(); + internalGetIncrementalRefreshIntervalFieldBuilder(); + internalGetDataProtectionPolicyFieldBuilder(); + internalGetDynamicToolsFieldBuilder(); + internalGetCliConfigFieldBuilder(); + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + if (paramsBuilder_ != null) { + paramsBuilder_.clear(); + } + name_ = ""; + state_ = 0; + dataSource_ = ""; + removeParamKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + refreshInterval_ = null; + if (refreshIntervalBuilder_ != null) { + refreshIntervalBuilder_.dispose(); + refreshIntervalBuilder_ = null; + } + nextSyncTime_ = null; + if (nextSyncTimeBuilder_ != null) { + nextSyncTimeBuilder_.dispose(); + nextSyncTimeBuilder_ = null; + } + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + } else { + entities_ = null; + entitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + latestPauseTime_ = null; + if (latestPauseTimeBuilder_ != null) { + latestPauseTimeBuilder_.dispose(); + latestPauseTimeBuilder_ = null; + } + lastSyncTime_ = null; + if (lastSyncTimeBuilder_ != null) { + lastSyncTimeBuilder_.dispose(); + lastSyncTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + syncMode_ = 0; + kmsKeyName_ = ""; + if (destinationConfigsBuilder_ == null) { + destinationConfigs_ = java.util.Collections.emptyList(); + } else { + destinationConfigs_ = null; + destinationConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00010000); + actionState_ = 0; + actionConfig_ = null; + if (actionConfigBuilder_ != null) { + actionConfigBuilder_.dispose(); + actionConfigBuilder_ = null; + } + endUserConfig_ = null; + if (endUserConfigBuilder_ != null) { + endUserConfigBuilder_.dispose(); + endUserConfigBuilder_ = null; + } + federatedConfig_ = null; + if (federatedConfigBuilder_ != null) { + federatedConfigBuilder_.dispose(); + federatedConfigBuilder_ = null; + } + connectorModes_ = emptyIntList(); + staticIpEnabled_ = false; + staticIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + oauthStaticIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingReasons_ = emptyIntList(); + identityScheduleConfig_ = null; + if (identityScheduleConfigBuilder_ != null) { + identityScheduleConfigBuilder_.dispose(); + identityScheduleConfigBuilder_ = null; + } + privateConnectivityProjectId_ = ""; + bapConfig_ = null; + if (bapConfigBuilder_ != null) { + bapConfigBuilder_.dispose(); + bapConfigBuilder_ = null; + } + connectorType_ = 0; + realtimeState_ = 0; + if (alertPolicyConfigsBuilder_ == null) { + alertPolicyConfigs_ = java.util.Collections.emptyList(); + } else { + alertPolicyConfigs_ = null; + alertPolicyConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x80000000); + realtimeSyncConfig_ = null; + if (realtimeSyncConfigBuilder_ != null) { + realtimeSyncConfigBuilder_.dispose(); + realtimeSyncConfigBuilder_ = null; + } + aclEnabled_ = false; + createEuaSaas_ = false; + autoRunDisabled_ = false; + incrementalSyncDisabled_ = false; + incrementalRefreshInterval_ = null; + if (incrementalRefreshIntervalBuilder_ != null) { + incrementalRefreshIntervalBuilder_.dispose(); + incrementalRefreshIntervalBuilder_ = null; + } + hybridIngestionDisabled_ = false; + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + egressFqdns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + vpcscEnabled_ = false; + if (dynamicToolsBuilder_ == null) { + dynamicTools_ = java.util.Collections.emptyList(); + } else { + dynamicTools_ = null; + dynamicToolsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000400); + cliConfig_ = null; + if (cliConfigBuilder_ != null) { + cliConfigBuilder_.dispose(); + cliConfigBuilder_ = null; + } + connectorSourceId_ = ""; + tag_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + dataConnectorParamsCase_ = 0; + dataConnectorParams_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector build() { + com.google.cloud.discoveryengine.v1.DataConnector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector buildPartial() { + com.google.cloud.discoveryengine.v1.DataConnector result = + new com.google.cloud.discoveryengine.v1.DataConnector(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.DataConnector result) { + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (destinationConfigsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0)) { + destinationConfigs_ = java.util.Collections.unmodifiableList(destinationConfigs_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.destinationConfigs_ = destinationConfigs_; + } else { + result.destinationConfigs_ = destinationConfigsBuilder_.build(); + } + if (alertPolicyConfigsBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0)) { + alertPolicyConfigs_ = java.util.Collections.unmodifiableList(alertPolicyConfigs_); + bitField0_ = (bitField0_ & ~0x80000000); + } + result.alertPolicyConfigs_ = alertPolicyConfigs_; + } else { + result.alertPolicyConfigs_ = alertPolicyConfigsBuilder_.build(); + } + if (dynamicToolsBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0)) { + dynamicTools_ = java.util.Collections.unmodifiableList(dynamicTools_); + bitField1_ = (bitField1_ & ~0x00000400); + } + result.dynamicTools_ = dynamicTools_; + } else { + result.dynamicTools_ = dynamicToolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DataConnector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataSource_ = dataSource_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + removeParamKeys_.makeImmutable(); + result.removeParamKeys_ = removeParamKeys_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.refreshInterval_ = + refreshIntervalBuilder_ == null ? refreshInterval_ : refreshIntervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.nextSyncTime_ = + nextSyncTimeBuilder_ == null ? nextSyncTime_ : nextSyncTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.latestPauseTime_ = + latestPauseTimeBuilder_ == null ? latestPauseTime_ : latestPauseTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.lastSyncTime_ = + lastSyncTimeBuilder_ == null ? lastSyncTime_ : lastSyncTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.syncMode_ = syncMode_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.actionState_ = actionState_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.actionConfig_ = + actionConfigBuilder_ == null ? actionConfig_ : actionConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.endUserConfig_ = + endUserConfigBuilder_ == null ? endUserConfig_ : endUserConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.federatedConfig_ = + federatedConfigBuilder_ == null ? federatedConfig_ : federatedConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + connectorModes_.makeImmutable(); + result.connectorModes_ = connectorModes_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.staticIpEnabled_ = staticIpEnabled_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + staticIpAddresses_.makeImmutable(); + result.staticIpAddresses_ = staticIpAddresses_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + oauthStaticIpAddresses_.makeImmutable(); + result.oauthStaticIpAddresses_ = oauthStaticIpAddresses_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + blockingReasons_.makeImmutable(); + result.blockingReasons_ = blockingReasons_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.identityScheduleConfig_ = + identityScheduleConfigBuilder_ == null + ? identityScheduleConfig_ + : identityScheduleConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.privateConnectivityProjectId_ = privateConnectivityProjectId_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.bapConfig_ = bapConfigBuilder_ == null ? bapConfig_ : bapConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.connectorType_ = connectorType_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.realtimeState_ = realtimeState_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.cloud.discoveryengine.v1.DataConnector result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.realtimeSyncConfig_ = + realtimeSyncConfigBuilder_ == null + ? realtimeSyncConfig_ + : realtimeSyncConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.aclEnabled_ = aclEnabled_; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.createEuaSaas_ = createEuaSaas_; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.autoRunDisabled_ = autoRunDisabled_; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.incrementalSyncDisabled_ = incrementalSyncDisabled_; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.incrementalRefreshInterval_ = + incrementalRefreshIntervalBuilder_ == null + ? incrementalRefreshInterval_ + : incrementalRefreshIntervalBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.hybridIngestionDisabled_ = hybridIngestionDisabled_; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.dataProtectionPolicy_ = + dataProtectionPolicyBuilder_ == null + ? dataProtectionPolicy_ + : dataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + egressFqdns_.makeImmutable(); + result.egressFqdns_ = egressFqdns_; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.vpcscEnabled_ = vpcscEnabled_; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.cliConfig_ = cliConfigBuilder_ == null ? cliConfig_ : cliConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.connectorSourceId_ = connectorSourceId_; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.tag_ = tag_; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.DataConnector result) { + result.dataConnectorParamsCase_ = dataConnectorParamsCase_; + result.dataConnectorParams_ = this.dataConnectorParams_; + if (dataConnectorParamsCase_ == 4 && paramsBuilder_ != null) { + result.dataConnectorParams_ = paramsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataConnector) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataConnector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataConnector other) { + if (other == com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDataSource().isEmpty()) { + dataSource_ = other.dataSource_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.removeParamKeys_.isEmpty()) { + if (removeParamKeys_.isEmpty()) { + removeParamKeys_ = other.removeParamKeys_; + bitField0_ |= 0x00000020; + } else { + ensureRemoveParamKeysIsMutable(); + removeParamKeys_.addAll(other.removeParamKeys_); + } + onChanged(); + } + if (other.hasRefreshInterval()) { + mergeRefreshInterval(other.getRefreshInterval()); + } + if (other.hasNextSyncTime()) { + mergeNextSyncTime(other.getNextSyncTime()); + } + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000100); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntitiesFieldBuilder() + : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasLatestPauseTime()) { + mergeLatestPauseTime(other.getLatestPauseTime()); + } + if (other.hasLastSyncTime()) { + mergeLastSyncTime(other.getLastSyncTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00002000); + errorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.syncMode_ != 0) { + setSyncModeValue(other.getSyncModeValue()); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (destinationConfigsBuilder_ == null) { + if (!other.destinationConfigs_.isEmpty()) { + if (destinationConfigs_.isEmpty()) { + destinationConfigs_ = other.destinationConfigs_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureDestinationConfigsIsMutable(); + destinationConfigs_.addAll(other.destinationConfigs_); + } + onChanged(); + } + } else { + if (!other.destinationConfigs_.isEmpty()) { + if (destinationConfigsBuilder_.isEmpty()) { + destinationConfigsBuilder_.dispose(); + destinationConfigsBuilder_ = null; + destinationConfigs_ = other.destinationConfigs_; + bitField0_ = (bitField0_ & ~0x00010000); + destinationConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDestinationConfigsFieldBuilder() + : null; + } else { + destinationConfigsBuilder_.addAllMessages(other.destinationConfigs_); + } + } + } + if (other.actionState_ != 0) { + setActionStateValue(other.getActionStateValue()); + } + if (other.hasActionConfig()) { + mergeActionConfig(other.getActionConfig()); + } + if (other.hasEndUserConfig()) { + mergeEndUserConfig(other.getEndUserConfig()); + } + if (other.hasFederatedConfig()) { + mergeFederatedConfig(other.getFederatedConfig()); + } + if (!other.connectorModes_.isEmpty()) { + if (connectorModes_.isEmpty()) { + connectorModes_ = other.connectorModes_; + connectorModes_.makeImmutable(); + bitField0_ |= 0x00200000; + } else { + ensureConnectorModesIsMutable(); + connectorModes_.addAll(other.connectorModes_); + } + onChanged(); + } + if (other.getStaticIpEnabled() != false) { + setStaticIpEnabled(other.getStaticIpEnabled()); + } + if (!other.staticIpAddresses_.isEmpty()) { + if (staticIpAddresses_.isEmpty()) { + staticIpAddresses_ = other.staticIpAddresses_; + bitField0_ |= 0x00800000; + } else { + ensureStaticIpAddressesIsMutable(); + staticIpAddresses_.addAll(other.staticIpAddresses_); + } + onChanged(); + } + if (!other.oauthStaticIpAddresses_.isEmpty()) { + if (oauthStaticIpAddresses_.isEmpty()) { + oauthStaticIpAddresses_ = other.oauthStaticIpAddresses_; + bitField0_ |= 0x01000000; + } else { + ensureOauthStaticIpAddressesIsMutable(); + oauthStaticIpAddresses_.addAll(other.oauthStaticIpAddresses_); + } + onChanged(); + } + if (!other.blockingReasons_.isEmpty()) { + if (blockingReasons_.isEmpty()) { + blockingReasons_ = other.blockingReasons_; + blockingReasons_.makeImmutable(); + bitField0_ |= 0x02000000; + } else { + ensureBlockingReasonsIsMutable(); + blockingReasons_.addAll(other.blockingReasons_); + } + onChanged(); + } + if (other.hasIdentityScheduleConfig()) { + mergeIdentityScheduleConfig(other.getIdentityScheduleConfig()); + } + if (!other.getPrivateConnectivityProjectId().isEmpty()) { + privateConnectivityProjectId_ = other.privateConnectivityProjectId_; + bitField0_ |= 0x08000000; + onChanged(); + } + if (other.hasBapConfig()) { + mergeBapConfig(other.getBapConfig()); + } + if (other.connectorType_ != 0) { + setConnectorTypeValue(other.getConnectorTypeValue()); + } + if (other.realtimeState_ != 0) { + setRealtimeStateValue(other.getRealtimeStateValue()); + } + if (alertPolicyConfigsBuilder_ == null) { + if (!other.alertPolicyConfigs_.isEmpty()) { + if (alertPolicyConfigs_.isEmpty()) { + alertPolicyConfigs_ = other.alertPolicyConfigs_; + bitField0_ = (bitField0_ & ~0x80000000); + } else { + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.addAll(other.alertPolicyConfigs_); + } + onChanged(); + } + } else { + if (!other.alertPolicyConfigs_.isEmpty()) { + if (alertPolicyConfigsBuilder_.isEmpty()) { + alertPolicyConfigsBuilder_.dispose(); + alertPolicyConfigsBuilder_ = null; + alertPolicyConfigs_ = other.alertPolicyConfigs_; + bitField0_ = (bitField0_ & ~0x80000000); + alertPolicyConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAlertPolicyConfigsFieldBuilder() + : null; + } else { + alertPolicyConfigsBuilder_.addAllMessages(other.alertPolicyConfigs_); + } + } + } + if (other.hasRealtimeSyncConfig()) { + mergeRealtimeSyncConfig(other.getRealtimeSyncConfig()); + } + if (other.getAclEnabled() != false) { + setAclEnabled(other.getAclEnabled()); + } + if (other.getCreateEuaSaas() != false) { + setCreateEuaSaas(other.getCreateEuaSaas()); + } + if (other.getAutoRunDisabled() != false) { + setAutoRunDisabled(other.getAutoRunDisabled()); + } + if (other.getIncrementalSyncDisabled() != false) { + setIncrementalSyncDisabled(other.getIncrementalSyncDisabled()); + } + if (other.hasIncrementalRefreshInterval()) { + mergeIncrementalRefreshInterval(other.getIncrementalRefreshInterval()); + } + if (other.getHybridIngestionDisabled() != false) { + setHybridIngestionDisabled(other.getHybridIngestionDisabled()); + } + if (other.hasDataProtectionPolicy()) { + mergeDataProtectionPolicy(other.getDataProtectionPolicy()); + } + if (!other.egressFqdns_.isEmpty()) { + if (egressFqdns_.isEmpty()) { + egressFqdns_ = other.egressFqdns_; + bitField1_ |= 0x00000100; + } else { + ensureEgressFqdnsIsMutable(); + egressFqdns_.addAll(other.egressFqdns_); + } + onChanged(); + } + if (other.getVpcscEnabled() != false) { + setVpcscEnabled(other.getVpcscEnabled()); + } + if (dynamicToolsBuilder_ == null) { + if (!other.dynamicTools_.isEmpty()) { + if (dynamicTools_.isEmpty()) { + dynamicTools_ = other.dynamicTools_; + bitField1_ = (bitField1_ & ~0x00000400); + } else { + ensureDynamicToolsIsMutable(); + dynamicTools_.addAll(other.dynamicTools_); + } + onChanged(); + } + } else { + if (!other.dynamicTools_.isEmpty()) { + if (dynamicToolsBuilder_.isEmpty()) { + dynamicToolsBuilder_.dispose(); + dynamicToolsBuilder_ = null; + dynamicTools_ = other.dynamicTools_; + bitField1_ = (bitField1_ & ~0x00000400); + dynamicToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDynamicToolsFieldBuilder() + : null; + } else { + dynamicToolsBuilder_.addAllMessages(other.dynamicTools_); + } + } + } + if (other.hasCliConfig()) { + mergeCliConfig(other.getCliConfig()); + } + if (!other.getConnectorSourceId().isEmpty()) { + connectorSourceId_ = other.connectorSourceId_; + bitField1_ |= 0x00001000; + onChanged(); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + bitField1_ |= 0x00002000; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + switch (other.getDataConnectorParamsCase()) { + case PARAMS: + { + mergeParams(other.getParams()); + break; + } + case JSON_PARAMS: + { + dataConnectorParamsCase_ = 43; + dataConnectorParams_ = other.dataConnectorParams_; + onChanged(); + break; + } + case DATACONNECTORPARAMS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: + { + dataSource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetParamsFieldBuilder().getBuilder(), extensionRegistry); + dataConnectorParamsCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetRefreshIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity m = + input.readMessage( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.parser(), + extensionRegistry); + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(m); + } else { + entitiesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + syncMode_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 72 + case 80: + { + autoRunDisabled_ = input.readBool(); + bitField1_ |= 0x00000008; + break; + } // case 80 + case 98: + { + com.google.cloud.discoveryengine.v1.DestinationConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1.DestinationConfig.parser(), + extensionRegistry); + if (destinationConfigsBuilder_ == null) { + ensureDestinationConfigsIsMutable(); + destinationConfigs_.add(m); + } else { + destinationConfigsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetActionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStaticIpAddressesIsMutable(); + staticIpAddresses_.add(s); + break; + } // case 114 + case 120: + { + staticIpEnabled_ = input.readBool(); + bitField0_ |= 0x00400000; + break; + } // case 120 + case 128: + { + int tmpRaw = input.readEnum(); + ensureBlockingReasonsIsMutable(); + blockingReasons_.addInt(tmpRaw); + break; + } // case 128 + case 130: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBlockingReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + blockingReasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 130 + case 138: + { + privateConnectivityProjectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 138 + case 146: + { + input.readMessage( + internalGetLatestPauseTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 146 + case 154: + { + input.readMessage( + internalGetLastSyncTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 154 + case 162: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 162 + case 178: + { + input.readMessage( + internalGetNextSyncTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 178 + case 186: + { + input.readMessage( + internalGetIdentityScheduleConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 186 + case 194: + { + input.readMessage( + internalGetBapConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 194 + case 200: + { + connectorType_ = input.readEnum(); + bitField0_ |= 0x20000000; + break; + } // case 200 + case 208: + { + realtimeState_ = input.readEnum(); + bitField0_ |= 0x40000000; + break; + } // case 208 + case 226: + { + com.google.cloud.discoveryengine.v1.AlertPolicyConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.parser(), + extensionRegistry); + if (alertPolicyConfigsBuilder_ == null) { + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.add(m); + } else { + alertPolicyConfigsBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + input.readMessage( + internalGetRealtimeSyncConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 234 + case 242: + { + input.readMessage( + internalGetEndUserConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 242 + case 248: + { + int tmpRaw = input.readEnum(); + ensureConnectorModesIsMutable(); + connectorModes_.addInt(tmpRaw); + break; + } // case 248 + case 250: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureConnectorModesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + connectorModes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 250 + case 258: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 258 + case 264: + { + aclEnabled_ = input.readBool(); + bitField1_ |= 0x00000002; + break; + } // case 264 + case 272: + { + createEuaSaas_ = input.readBool(); + bitField1_ |= 0x00000004; + break; + } // case 272 + case 280: + { + incrementalSyncDisabled_ = input.readBool(); + bitField1_ |= 0x00000010; + break; + } // case 280 + case 290: + { + input.readMessage( + internalGetIncrementalRefreshIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 290 + case 296: + { + actionState_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 296 + case 306: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRemoveParamKeysIsMutable(); + removeParamKeys_.add(s); + break; + } // case 306 + case 320: + { + hybridIngestionDisabled_ = input.readBool(); + bitField1_ |= 0x00000040; + break; + } // case 320 + case 330: + { + input.readMessage( + internalGetFederatedConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 330 + case 346: + { + java.lang.String s = input.readStringRequireUtf8(); + dataConnectorParamsCase_ = 43; + dataConnectorParams_ = s; + break; + } // case 346 + case 354: + { + input.readMessage( + internalGetDataProtectionPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000080; + break; + } // case 354 + case 362: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEgressFqdnsIsMutable(); + egressFqdns_.add(s); + break; + } // case 362 + case 368: + { + vpcscEnabled_ = input.readBool(); + bitField1_ |= 0x00000200; + break; + } // case 368 + case 378: + { + com.google.cloud.discoveryengine.v1.DynamicTool m = + input.readMessage( + com.google.cloud.discoveryengine.v1.DynamicTool.parser(), + extensionRegistry); + if (dynamicToolsBuilder_ == null) { + ensureDynamicToolsIsMutable(); + dynamicTools_.add(m); + } else { + dynamicToolsBuilder_.addMessage(m); + } + break; + } // case 378 + case 386: + { + input.readMessage( + internalGetCliConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000800; + break; + } // case 386 + case 394: + { + connectorSourceId_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00001000; + break; + } // case 394 + case 402: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOauthStaticIpAddressesIsMutable(); + oauthStaticIpAddresses_.add(s); + break; + } // case 402 + case 410: + { + tag_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00002000; + break; + } // case 410 + case 418: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00004000; + break; + } // case 418 + 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 dataConnectorParamsCase_ = 0; + private java.lang.Object dataConnectorParams_; + + public DataConnectorParamsCase getDataConnectorParamsCase() { + return DataConnectorParamsCase.forNumber(dataConnectorParamsCase_); + } + + public Builder clearDataConnectorParams() { + dataConnectorParamsCase_ = 0; + dataConnectorParams_ = null; + onChanged(); + return this; + } + + private int bitField0_; + private int bitField1_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + paramsBuilder_; + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return dataConnectorParamsCase_ == 4; + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return The params. + */ + @java.lang.Override + public com.google.protobuf.Struct getParams() { + if (paramsBuilder_ == null) { + if (dataConnectorParamsCase_ == 4) { + return (com.google.protobuf.Struct) dataConnectorParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataConnectorParamsCase_ == 4) { + return paramsBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder setParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConnectorParams_ = value; + onChanged(); + } else { + paramsBuilder_.setMessage(value); + } + dataConnectorParamsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) { + if (paramsBuilder_ == null) { + dataConnectorParams_ = builderForValue.build(); + onChanged(); + } else { + paramsBuilder_.setMessage(builderForValue.build()); + } + dataConnectorParamsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder mergeParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (dataConnectorParamsCase_ == 4 + && dataConnectorParams_ != com.google.protobuf.Struct.getDefaultInstance()) { + dataConnectorParams_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) dataConnectorParams_) + .mergeFrom(value) + .buildPartial(); + } else { + dataConnectorParams_ = value; + } + onChanged(); + } else { + if (dataConnectorParamsCase_ == 4) { + paramsBuilder_.mergeFrom(value); + } else { + paramsBuilder_.setMessage(value); + } + } + dataConnectorParamsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + if (dataConnectorParamsCase_ == 4) { + dataConnectorParamsCase_ = 0; + dataConnectorParams_ = null; + onChanged(); + } + } else { + if (dataConnectorParamsCase_ == 4) { + dataConnectorParamsCase_ = 0; + dataConnectorParams_ = null; + } + paramsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + public com.google.protobuf.Struct.Builder getParamsBuilder() { + return internalGetParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if ((dataConnectorParamsCase_ == 4) && (paramsBuilder_ != null)) { + return paramsBuilder_.getMessageOrBuilder(); + } else { + if (dataConnectorParamsCase_ == 4) { + return (com.google.protobuf.Struct) dataConnectorParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required data connector parameters in structured json format.
+     * 
+ * + * .google.protobuf.Struct params = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetParamsFieldBuilder() { + if (paramsBuilder_ == null) { + if (!(dataConnectorParamsCase_ == 4)) { + dataConnectorParams_ = com.google.protobuf.Struct.getDefaultInstance(); + } + paramsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) dataConnectorParams_, + getParentForChildren(), + isClean()); + dataConnectorParams_ = null; + } + dataConnectorParamsCase_ = 4; + onChanged(); + return paramsBuilder_; + } + + /** + * + * + *
+     * Required data connector parameters in json string format.
+     * 
+ * + * string json_params = 43; + * + * @return Whether the jsonParams field is set. + */ + @java.lang.Override + public boolean hasJsonParams() { + return dataConnectorParamsCase_ == 43; + } + + /** + * + * + *
+     * Required data connector parameters in json string format.
+     * 
+ * + * string json_params = 43; + * + * @return The jsonParams. + */ + @java.lang.Override + public java.lang.String getJsonParams() { + java.lang.Object ref = ""; + if (dataConnectorParamsCase_ == 43) { + ref = dataConnectorParams_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataConnectorParamsCase_ == 43) { + dataConnectorParams_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required data connector parameters in json string format.
+     * 
+ * + * string json_params = 43; + * + * @return The bytes for jsonParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonParamsBytes() { + java.lang.Object ref = ""; + if (dataConnectorParamsCase_ == 43) { + ref = dataConnectorParams_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataConnectorParamsCase_ == 43) { + dataConnectorParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required data connector parameters in json string format.
+     * 
+ * + * string json_params = 43; + * + * @param value The jsonParams to set. + * @return This builder for chaining. + */ + public Builder setJsonParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataConnectorParamsCase_ = 43; + dataConnectorParams_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required data connector parameters in json string format.
+     * 
+ * + * string json_params = 43; + * + * @return This builder for chaining. + */ + public Builder clearJsonParams() { + if (dataConnectorParamsCase_ == 43) { + dataConnectorParamsCase_ = 0; + dataConnectorParams_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required data connector parameters in json string format.
+     * 
+ * + * string json_params = 43; + * + * @param value The bytes for jsonParams to set. + * @return This builder for chaining. + */ + public Builder setJsonParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataConnectorParamsCase_ = 43; + dataConnectorParams_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The full resource name of the Data Connector.
+     * Format:
+     * `projects/*/locations/*/collections/*/dataConnector`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. The full resource name of the Data Connector.
+     * Format:
+     * `projects/*/locations/*/collections/*/dataConnector`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. The full resource name of the Data Connector.
+     * Format:
+     * `projects/*/locations/*/collections/*/dataConnector`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The full resource name of the Data Connector.
+     * Format:
+     * `projects/*/locations/*/collections/*/dataConnector`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The full resource name of the Data Connector.
+     * Format:
+     * `projects/*/locations/*/collections/*/dataConnector`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. State of the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. State of the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.State getState() { + com.google.cloud.discoveryengine.v1.DataConnector.State result = + com.google.cloud.discoveryengine.v1.DataConnector.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. State of the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1.DataConnector.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object dataSource_ = ""; + + /** + * + * + *
+     * Required. The identifier for the data source.
+     * For the full, up-to-date list of supported connectors and their values,
+     * see
+     * [Connect a third-party data
+     * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+     * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataSource. + */ + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The identifier for the data source.
+     * For the full, up-to-date list of supported connectors and their values,
+     * see
+     * [Connect a third-party data
+     * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+     * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataSource. + */ + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The identifier for the data source.
+     * For the full, up-to-date list of supported connectors and their values,
+     * see
+     * [Connect a third-party data
+     * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+     * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identifier for the data source.
+     * For the full, up-to-date list of supported connectors and their values,
+     * see
+     * [Connect a third-party data
+     * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+     * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataSource() { + dataSource_ = getDefaultInstance().getDataSource(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identifier for the data source.
+     * For the full, up-to-date list of supported connectors and their values,
+     * see
+     * [Connect a third-party data
+     * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+     * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList removeParamKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRemoveParamKeysIsMutable() { + if (!removeParamKeys_.isModifiable()) { + removeParamKeys_ = new com.google.protobuf.LazyStringArrayList(removeParamKeys_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the removeParamKeys. + */ + public com.google.protobuf.ProtocolStringList getRemoveParamKeysList() { + removeParamKeys_.makeImmutable(); + return removeParamKeys_; + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of removeParamKeys. + */ + public int getRemoveParamKeysCount() { + return removeParamKeys_.size(); + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The removeParamKeys at the given index. + */ + public java.lang.String getRemoveParamKeys(int index) { + return removeParamKeys_.get(index); + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the removeParamKeys at the given index. + */ + public com.google.protobuf.ByteString getRemoveParamKeysBytes(int index) { + return removeParamKeys_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The removeParamKeys to set. + * @return This builder for chaining. + */ + public Builder setRemoveParamKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemoveParamKeysIsMutable(); + removeParamKeys_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The removeParamKeys to add. + * @return This builder for chaining. + */ + public Builder addRemoveParamKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemoveParamKeysIsMutable(); + removeParamKeys_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The removeParamKeys to add. + * @return This builder for chaining. + */ + public Builder addAllRemoveParamKeys(java.lang.Iterable values) { + ensureRemoveParamKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, removeParamKeys_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRemoveParamKeys() { + removeParamKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies keys to be removed from the 'params' field.
+     * This is only active when 'params' is included in the 'update_mask'
+     * in an UpdateDataConnectorRequest.
+     * Deletion takes precedence if a key is both in 'remove_param_keys'
+     * and present in the 'params' field of the request.
+     * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the removeParamKeys to add. + * @return This builder for chaining. + */ + public Builder addRemoveParamKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRemoveParamKeysIsMutable(); + removeParamKeys_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Duration refreshInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + refreshIntervalBuilder_; + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the refreshInterval field is set. + */ + public boolean hasRefreshInterval() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The refreshInterval. + */ + public com.google.protobuf.Duration getRefreshInterval() { + if (refreshIntervalBuilder_ == null) { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } else { + return refreshIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRefreshInterval(com.google.protobuf.Duration value) { + if (refreshIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + refreshInterval_ = value; + } else { + refreshIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRefreshInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (refreshIntervalBuilder_ == null) { + refreshInterval_ = builderForValue.build(); + } else { + refreshIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRefreshInterval(com.google.protobuf.Duration value) { + if (refreshIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && refreshInterval_ != null + && refreshInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRefreshIntervalBuilder().mergeFrom(value); + } else { + refreshInterval_ = value; + } + } else { + refreshIntervalBuilder_.mergeFrom(value); + } + if (refreshInterval_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRefreshInterval() { + bitField0_ = (bitField0_ & ~0x00000040); + refreshInterval_ = null; + if (refreshIntervalBuilder_ != null) { + refreshIntervalBuilder_.dispose(); + refreshIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getRefreshIntervalBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetRefreshIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() { + if (refreshIntervalBuilder_ != null) { + return refreshIntervalBuilder_.getMessageOrBuilder(); + } else { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } + } + + /** + * + * + *
+     * Required. The refresh interval for data sync. If duration is set to 0, the
+     * data will be synced in real time. The streaming feature is not supported
+     * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+     * interval is set to the same value as the incremental refresh interval,
+     * incremental sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetRefreshIntervalFieldBuilder() { + if (refreshIntervalBuilder_ == null) { + refreshIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRefreshInterval(), getParentForChildren(), isClean()); + refreshInterval_ = null; + } + return refreshIntervalBuilder_; + } + + private com.google.type.DateTime nextSyncTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> + nextSyncTimeBuilder_; + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + * + * @return Whether the nextSyncTime field is set. + */ + public boolean hasNextSyncTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + * + * @return The nextSyncTime. + */ + public com.google.type.DateTime getNextSyncTime() { + if (nextSyncTimeBuilder_ == null) { + return nextSyncTime_ == null + ? com.google.type.DateTime.getDefaultInstance() + : nextSyncTime_; + } else { + return nextSyncTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + public Builder setNextSyncTime(com.google.type.DateTime value) { + if (nextSyncTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextSyncTime_ = value; + } else { + nextSyncTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + public Builder setNextSyncTime(com.google.type.DateTime.Builder builderForValue) { + if (nextSyncTimeBuilder_ == null) { + nextSyncTime_ = builderForValue.build(); + } else { + nextSyncTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + public Builder mergeNextSyncTime(com.google.type.DateTime value) { + if (nextSyncTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && nextSyncTime_ != null + && nextSyncTime_ != com.google.type.DateTime.getDefaultInstance()) { + getNextSyncTimeBuilder().mergeFrom(value); + } else { + nextSyncTime_ = value; + } + } else { + nextSyncTimeBuilder_.mergeFrom(value); + } + if (nextSyncTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + public Builder clearNextSyncTime() { + bitField0_ = (bitField0_ & ~0x00000080); + nextSyncTime_ = null; + if (nextSyncTimeBuilder_ != null) { + nextSyncTimeBuilder_.dispose(); + nextSyncTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + public com.google.type.DateTime.Builder getNextSyncTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetNextSyncTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + public com.google.type.DateTimeOrBuilder getNextSyncTimeOrBuilder() { + if (nextSyncTimeBuilder_ != null) { + return nextSyncTimeBuilder_.getMessageOrBuilder(); + } else { + return nextSyncTime_ == null + ? com.google.type.DateTime.getDefaultInstance() + : nextSyncTime_; + } + } + + /** + * + * + *
+     * Defines the scheduled time for the next data synchronization. This field
+     * requires hour , minute, and time_zone from the
+     * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+     * utilized when the data connector has a refresh interval greater than 1 day.
+     * When the hours or minutes are not specified, we will assume a sync time of
+     * 0:00. The user must provide a time zone to avoid ambiguity.
+     * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> + internalGetNextSyncTimeFieldBuilder() { + if (nextSyncTimeBuilder_ == null) { + nextSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder>( + getNextSyncTime(), getParentForChildren(), isClean()); + nextSyncTime_ = null; + } + return nextSyncTimeBuilder_; + } + + private java.util.List + entities_ = java.util.Collections.emptyList(); + + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + entities_ = + new java.util.ArrayList( + entities_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder> + entitiesBuilder_; + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public java.util.List + getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder setEntities( + int index, com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder setEntities( + int index, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder addEntities( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder addEntities( + int index, com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder addEntities( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder addEntities( + int index, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder addAllEntities( + java.lang.Iterable + values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder + getEntitiesBuilder(int index) { + return internalGetEntitiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder + getEntitiesOrBuilder(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder> + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder + addEntitiesBuilder() { + return internalGetEntitiesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.getDefaultInstance()); + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder + addEntitiesBuilder(int index) { + return internalGetEntitiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.getDefaultInstance()); + } + + /** + * + * + *
+     * List of entities from the connected data source to ingest.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + * + */ + public java.util.List + getEntitiesBuilderList() { + return internalGetEntitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder> + internalGetEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder>( + entities_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+     * at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestPauseTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestPauseTimeBuilder_; + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestPauseTime field is set. + */ + public boolean hasLatestPauseTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestPauseTime. + */ + public com.google.protobuf.Timestamp getLatestPauseTime() { + if (latestPauseTimeBuilder_ == null) { + return latestPauseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestPauseTime_; + } else { + return latestPauseTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestPauseTime(com.google.protobuf.Timestamp value) { + if (latestPauseTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestPauseTime_ = value; + } else { + latestPauseTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLatestPauseTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestPauseTimeBuilder_ == null) { + latestPauseTime_ = builderForValue.build(); + } else { + latestPauseTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLatestPauseTime(com.google.protobuf.Timestamp value) { + if (latestPauseTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && latestPauseTime_ != null + && latestPauseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLatestPauseTimeBuilder().mergeFrom(value); + } else { + latestPauseTime_ = value; + } + } else { + latestPauseTimeBuilder_.mergeFrom(value); + } + if (latestPauseTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLatestPauseTime() { + bitField0_ = (bitField0_ & ~0x00000400); + latestPauseTime_ = null; + if (latestPauseTimeBuilder_ != null) { + latestPauseTimeBuilder_.dispose(); + latestPauseTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestPauseTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetLatestPauseTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestPauseTimeOrBuilder() { + if (latestPauseTimeBuilder_ != null) { + return latestPauseTimeBuilder_.getMessageOrBuilder(); + } else { + return latestPauseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestPauseTime_; + } + } + + /** + * + * + *
+     * Output only. The most recent timestamp when this
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+     * affecting all functionalities such as data synchronization.
+     * Pausing a connector has the following effects:
+     *
+     * - All functionalities, including data synchronization, are halted.
+     * - Any ongoing data synchronization job will be canceled.
+     * - No future data synchronization runs will be scheduled nor can be
+     * triggered.
+     * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLatestPauseTimeFieldBuilder() { + if (latestPauseTimeBuilder_ == null) { + latestPauseTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestPauseTime(), getParentForChildren(), isClean()); + latestPauseTime_ = null; + } + return latestPauseTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastSyncTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastSyncTimeBuilder_; + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastSyncTime field is set. + */ + public boolean hasLastSyncTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastSyncTime. + */ + public com.google.protobuf.Timestamp getLastSyncTime() { + if (lastSyncTimeBuilder_ == null) { + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; + } else { + return lastSyncTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { + if (lastSyncTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastSyncTime_ = value; + } else { + lastSyncTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastSyncTimeBuilder_ == null) { + lastSyncTime_ = builderForValue.build(); + } else { + lastSyncTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { + if (lastSyncTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && lastSyncTime_ != null + && lastSyncTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastSyncTimeBuilder().mergeFrom(value); + } else { + lastSyncTime_ = value; + } + } else { + lastSyncTimeBuilder_.mergeFrom(value); + } + if (lastSyncTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastSyncTime() { + bitField0_ = (bitField0_ & ~0x00000800); + lastSyncTime_ = null; + if (lastSyncTimeBuilder_ != null) { + lastSyncTimeBuilder_.dispose(); + lastSyncTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetLastSyncTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { + if (lastSyncTimeBuilder_ != null) { + return lastSyncTimeBuilder_.getMessageOrBuilder(); + } else { + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; + } + } + + /** + * + * + *
+     * Output only. For periodic connectors only, the last time a data sync was
+     * completed.
+     * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastSyncTimeFieldBuilder() { + if (lastSyncTimeBuilder_ == null) { + lastSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), getParentForChildren(), isClean()); + lastSyncTime_ = null; + } + return lastSyncTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.util.List errors_ = java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors(java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorsBuilder() { + return internalGetErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The errors from initialization or from the latest connector
+     * run.
+     * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsBuilderList() { + return internalGetErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errors_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private int syncMode_ = 0; + + /** + * + * + *
+     * The data synchronization mode supported by the data connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return The enum numeric value on the wire for syncMode. + */ + @java.lang.Override + public int getSyncModeValue() { + return syncMode_; + } + + /** + * + * + *
+     * The data synchronization mode supported by the data connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @param value The enum numeric value on the wire for syncMode to set. + * @return This builder for chaining. + */ + public Builder setSyncModeValue(int value) { + syncMode_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * The data synchronization mode supported by the data connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return The syncMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.SyncMode getSyncMode() { + com.google.cloud.discoveryengine.v1.DataConnector.SyncMode result = + com.google.cloud.discoveryengine.v1.DataConnector.SyncMode.forNumber(syncMode_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.SyncMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The data synchronization mode supported by the data connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @param value The syncMode to set. + * @return This builder for chaining. + */ + public Builder setSyncMode(com.google.cloud.discoveryengine.v1.DataConnector.SyncMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + syncMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The data synchronization mode supported by the data connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return This builder for chaining. + */ + public Builder clearSyncMode() { + bitField0_ = (bitField0_ & ~0x00004000); + syncMode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+     * Input only. The KMS key to be used to protect the DataStores managed by
+     * this connector.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStores created by
+     * this connector will be protected by the KMS key.
+     * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Input only. The KMS key to be used to protect the DataStores managed by
+     * this connector.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStores created by
+     * this connector will be protected by the KMS key.
+     * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Input only. The KMS key to be used to protect the DataStores managed by
+     * this connector.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStores created by
+     * this connector will be protected by the KMS key.
+     * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. The KMS key to be used to protect the DataStores managed by
+     * this connector.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStores created by
+     * this connector will be protected by the KMS key.
+     * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. The KMS key to be used to protect the DataStores managed by
+     * this connector.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStores created by
+     * this connector will be protected by the KMS key.
+     * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.util.List + destinationConfigs_ = java.util.Collections.emptyList(); + + private void ensureDestinationConfigsIsMutable() { + if (!((bitField0_ & 0x00010000) != 0)) { + destinationConfigs_ = + new java.util.ArrayList( + destinationConfigs_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DestinationConfig, + com.google.cloud.discoveryengine.v1.DestinationConfig.Builder, + com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder> + destinationConfigsBuilder_; + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationConfigsList() { + if (destinationConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinationConfigs_); + } else { + return destinationConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDestinationConfigsCount() { + if (destinationConfigsBuilder_ == null) { + return destinationConfigs_.size(); + } else { + return destinationConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig getDestinationConfigs(int index) { + if (destinationConfigsBuilder_ == null) { + return destinationConfigs_.get(index); + } else { + return destinationConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationConfigs( + int index, com.google.cloud.discoveryengine.v1.DestinationConfig value) { + if (destinationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationConfigsIsMutable(); + destinationConfigs_.set(index, value); + onChanged(); + } else { + destinationConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinationConfigs( + int index, com.google.cloud.discoveryengine.v1.DestinationConfig.Builder builderForValue) { + if (destinationConfigsBuilder_ == null) { + ensureDestinationConfigsIsMutable(); + destinationConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationConfigs( + com.google.cloud.discoveryengine.v1.DestinationConfig value) { + if (destinationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationConfigsIsMutable(); + destinationConfigs_.add(value); + onChanged(); + } else { + destinationConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationConfigs( + int index, com.google.cloud.discoveryengine.v1.DestinationConfig value) { + if (destinationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationConfigsIsMutable(); + destinationConfigs_.add(index, value); + onChanged(); + } else { + destinationConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationConfigs( + com.google.cloud.discoveryengine.v1.DestinationConfig.Builder builderForValue) { + if (destinationConfigsBuilder_ == null) { + ensureDestinationConfigsIsMutable(); + destinationConfigs_.add(builderForValue.build()); + onChanged(); + } else { + destinationConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinationConfigs( + int index, com.google.cloud.discoveryengine.v1.DestinationConfig.Builder builderForValue) { + if (destinationConfigsBuilder_ == null) { + ensureDestinationConfigsIsMutable(); + destinationConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDestinationConfigs( + java.lang.Iterable + values) { + if (destinationConfigsBuilder_ == null) { + ensureDestinationConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinationConfigs_); + onChanged(); + } else { + destinationConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDestinationConfigs() { + if (destinationConfigsBuilder_ == null) { + destinationConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + destinationConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDestinationConfigs(int index) { + if (destinationConfigsBuilder_ == null) { + ensureDestinationConfigsIsMutable(); + destinationConfigs_.remove(index); + onChanged(); + } else { + destinationConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Builder + getDestinationConfigsBuilder(int index) { + return internalGetDestinationConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder + getDestinationConfigsOrBuilder(int index) { + if (destinationConfigsBuilder_ == null) { + return destinationConfigs_.get(index); + } else { + return destinationConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationConfigsOrBuilderList() { + if (destinationConfigsBuilder_ != null) { + return destinationConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinationConfigs_); + } + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Builder + addDestinationConfigsBuilder() { + return internalGetDestinationConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.DestinationConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Builder + addDestinationConfigsBuilder(int index) { + return internalGetDestinationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.DestinationConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Any target destinations used to connect to third-party services.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationConfigsBuilderList() { + return internalGetDestinationConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DestinationConfig, + com.google.cloud.discoveryengine.v1.DestinationConfig.Builder, + com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder> + internalGetDestinationConfigsFieldBuilder() { + if (destinationConfigsBuilder_ == null) { + destinationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DestinationConfig, + com.google.cloud.discoveryengine.v1.DestinationConfig.Builder, + com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder>( + destinationConfigs_, + ((bitField0_ & 0x00010000) != 0), + getParentForChildren(), + isClean()); + destinationConfigs_ = null; + } + return destinationConfigsBuilder_; + } + + private int actionState_ = 0; + + /** + * + * + *
+     * Output only. State of the action connector. This reflects whether the
+     * action connector is initializing, active or has encountered errors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for actionState. + */ + @java.lang.Override + public int getActionStateValue() { + return actionState_; + } + + /** + * + * + *
+     * Output only. State of the action connector. This reflects whether the
+     * action connector is initializing, active or has encountered errors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for actionState to set. + * @return This builder for chaining. + */ + public Builder setActionStateValue(int value) { + actionState_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the action connector. This reflects whether the
+     * action connector is initializing, active or has encountered errors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.State getActionState() { + com.google.cloud.discoveryengine.v1.DataConnector.State result = + com.google.cloud.discoveryengine.v1.DataConnector.State.forNumber(actionState_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. State of the action connector. This reflects whether the
+     * action connector is initializing, active or has encountered errors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The actionState to set. + * @return This builder for chaining. + */ + public Builder setActionState(com.google.cloud.discoveryengine.v1.DataConnector.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + actionState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. State of the action connector. This reflects whether the
+     * action connector is initializing, active or has encountered errors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearActionState() { + bitField0_ = (bitField0_ & ~0x00020000); + actionState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.ActionConfig actionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ActionConfig, + com.google.cloud.discoveryengine.v1.ActionConfig.Builder, + com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder> + actionConfigBuilder_; + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the actionConfig field is set. + */ + public boolean hasActionConfig() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionConfig. + */ + public com.google.cloud.discoveryengine.v1.ActionConfig getActionConfig() { + if (actionConfigBuilder_ == null) { + return actionConfig_ == null + ? com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance() + : actionConfig_; + } else { + return actionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActionConfig(com.google.cloud.discoveryengine.v1.ActionConfig value) { + if (actionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionConfig_ = value; + } else { + actionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActionConfig( + com.google.cloud.discoveryengine.v1.ActionConfig.Builder builderForValue) { + if (actionConfigBuilder_ == null) { + actionConfig_ = builderForValue.build(); + } else { + actionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeActionConfig(com.google.cloud.discoveryengine.v1.ActionConfig value) { + if (actionConfigBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && actionConfig_ != null + && actionConfig_ + != com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance()) { + getActionConfigBuilder().mergeFrom(value); + } else { + actionConfig_ = value; + } + } else { + actionConfigBuilder_.mergeFrom(value); + } + if (actionConfig_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearActionConfig() { + bitField0_ = (bitField0_ & ~0x00040000); + actionConfig_ = null; + if (actionConfigBuilder_ != null) { + actionConfigBuilder_.dispose(); + actionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ActionConfig.Builder getActionConfigBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return internalGetActionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder getActionConfigOrBuilder() { + if (actionConfigBuilder_ != null) { + return actionConfigBuilder_.getMessageOrBuilder(); + } else { + return actionConfig_ == null + ? com.google.cloud.discoveryengine.v1.ActionConfig.getDefaultInstance() + : actionConfig_; + } + } + + /** + * + * + *
+     * Optional. Action configurations to make the connector support actions.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ActionConfig, + com.google.cloud.discoveryengine.v1.ActionConfig.Builder, + com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder> + internalGetActionConfigFieldBuilder() { + if (actionConfigBuilder_ == null) { + actionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ActionConfig, + com.google.cloud.discoveryengine.v1.ActionConfig.Builder, + com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder>( + getActionConfig(), getParentForChildren(), isClean()); + actionConfig_ = null; + } + return actionConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig endUserConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder> + endUserConfigBuilder_; + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserConfig field is set. + */ + public boolean hasEndUserConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserConfig. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig getEndUserConfig() { + if (endUserConfigBuilder_ == null) { + return endUserConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.getDefaultInstance() + : endUserConfig_; + } else { + return endUserConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndUserConfig( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig value) { + if (endUserConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endUserConfig_ = value; + } else { + endUserConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndUserConfig( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder builderForValue) { + if (endUserConfigBuilder_ == null) { + endUserConfig_ = builderForValue.build(); + } else { + endUserConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndUserConfig( + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig value) { + if (endUserConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && endUserConfig_ != null + && endUserConfig_ + != com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig + .getDefaultInstance()) { + getEndUserConfigBuilder().mergeFrom(value); + } else { + endUserConfig_ = value; + } + } else { + endUserConfigBuilder_.mergeFrom(value); + } + if (endUserConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndUserConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + endUserConfig_ = null; + if (endUserConfigBuilder_ != null) { + endUserConfigBuilder_.dispose(); + endUserConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder + getEndUserConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetEndUserConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder + getEndUserConfigOrBuilder() { + if (endUserConfigBuilder_ != null) { + return endUserConfigBuilder_.getMessageOrBuilder(); + } else { + return endUserConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.getDefaultInstance() + : endUserConfig_; + } + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for EUA connectors.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder> + internalGetEndUserConfigFieldBuilder() { + if (endUserConfigBuilder_ == null) { + endUserConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder>( + getEndUserConfig(), getParentForChildren(), isClean()); + endUserConfig_ = null; + } + return endUserConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federatedConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder> + federatedConfigBuilder_; + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedConfig field is set. + */ + public boolean hasFederatedConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedConfig. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig getFederatedConfig() { + if (federatedConfigBuilder_ == null) { + return federatedConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.getDefaultInstance() + : federatedConfig_; + } else { + return federatedConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFederatedConfig( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig value) { + if (federatedConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + federatedConfig_ = value; + } else { + federatedConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFederatedConfig( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder builderForValue) { + if (federatedConfigBuilder_ == null) { + federatedConfig_ = builderForValue.build(); + } else { + federatedConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFederatedConfig( + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig value) { + if (federatedConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && federatedConfig_ != null + && federatedConfig_ + != com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig + .getDefaultInstance()) { + getFederatedConfigBuilder().mergeFrom(value); + } else { + federatedConfig_ = value; + } + } else { + federatedConfigBuilder_.mergeFrom(value); + } + if (federatedConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFederatedConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + federatedConfig_ = null; + if (federatedConfigBuilder_ != null) { + federatedConfigBuilder_.dispose(); + federatedConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder + getFederatedConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return internalGetFederatedConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder + getFederatedConfigOrBuilder() { + if (federatedConfigBuilder_ != null) { + return federatedConfigBuilder_.getMessageOrBuilder(); + } else { + return federatedConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.getDefaultInstance() + : federatedConfig_; + } + } + + /** + * + * + *
+     * Optional. Any params and credentials used specifically for hybrid
+     * connectors supporting FEDERATED mode. This field should only be set if the
+     * connector is a hybrid connector and we want to enable FEDERATED mode.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder> + internalGetFederatedConfigFieldBuilder() { + if (federatedConfigBuilder_ == null) { + federatedConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder>( + getFederatedConfig(), getParentForChildren(), isClean()); + federatedConfig_ = null; + } + return federatedConfigBuilder_; + } + + private com.google.protobuf.Internal.IntList connectorModes_ = emptyIntList(); + + private void ensureConnectorModesIsMutable() { + if (!connectorModes_.isModifiable()) { + connectorModes_ = makeMutableCopy(connectorModes_); + } + bitField0_ |= 0x00200000; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the connectorModes. + */ + public java.util.List + getConnectorModesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode>( + connectorModes_, connectorModes_converter_); + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of connectorModes. + */ + public int getConnectorModesCount() { + return connectorModes_.size(); + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The connectorModes at the given index. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode getConnectorModes( + int index) { + return connectorModes_converter_.convert(connectorModes_.getInt(index)); + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The connectorModes to set. + * @return This builder for chaining. + */ + public Builder setConnectorModes( + int index, com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorModesIsMutable(); + connectorModes_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The connectorModes to add. + * @return This builder for chaining. + */ + public Builder addConnectorModes( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorModesIsMutable(); + connectorModes_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The connectorModes to add. + * @return This builder for chaining. + */ + public Builder addAllConnectorModes( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode> + values) { + ensureConnectorModesIsMutable(); + for (com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode value : values) { + connectorModes_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectorModes() { + connectorModes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for connectorModes. + */ + public java.util.List getConnectorModesValueList() { + connectorModes_.makeImmutable(); + return connectorModes_; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of connectorModes at the given index. + */ + public int getConnectorModesValue(int index) { + return connectorModes_.getInt(index); + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for connectorModes to set. + * @return This builder for chaining. + */ + public Builder setConnectorModesValue(int index, int value) { + ensureConnectorModesIsMutable(); + connectorModes_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for connectorModes to add. + * @return This builder for chaining. + */ + public Builder addConnectorModesValue(int value) { + ensureConnectorModesIsMutable(); + connectorModes_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modes enabled for this connector. Default state is
+     * CONNECTOR_MODE_UNSPECIFIED.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for connectorModes to add. + * @return This builder for chaining. + */ + public Builder addAllConnectorModesValue(java.lang.Iterable values) { + ensureConnectorModesIsMutable(); + for (int value : values) { + connectorModes_.addInt(value); + } + onChanged(); + return this; + } + + private boolean staticIpEnabled_; + + /** + * + * + *
+     * Optional. Whether customer has enabled static IP addresses for this
+     * connector.
+     * 
+ * + * bool static_ip_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The staticIpEnabled. + */ + @java.lang.Override + public boolean getStaticIpEnabled() { + return staticIpEnabled_; + } + + /** + * + * + *
+     * Optional. Whether customer has enabled static IP addresses for this
+     * connector.
+     * 
+ * + * bool static_ip_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The staticIpEnabled to set. + * @return This builder for chaining. + */ + public Builder setStaticIpEnabled(boolean value) { + + staticIpEnabled_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether customer has enabled static IP addresses for this
+     * connector.
+     * 
+ * + * bool static_ip_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStaticIpEnabled() { + bitField0_ = (bitField0_ & ~0x00400000); + staticIpEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList staticIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureStaticIpAddressesIsMutable() { + if (!staticIpAddresses_.isModifiable()) { + staticIpAddresses_ = new com.google.protobuf.LazyStringArrayList(staticIpAddresses_); + } + bitField0_ |= 0x00800000; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the staticIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getStaticIpAddressesList() { + staticIpAddresses_.makeImmutable(); + return staticIpAddresses_; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of staticIpAddresses. + */ + public int getStaticIpAddressesCount() { + return staticIpAddresses_.size(); + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The staticIpAddresses at the given index. + */ + public java.lang.String getStaticIpAddresses(int index) { + return staticIpAddresses_.get(index); + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the staticIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getStaticIpAddressesBytes(int index) { + return staticIpAddresses_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The staticIpAddresses to set. + * @return This builder for chaining. + */ + public Builder setStaticIpAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticIpAddressesIsMutable(); + staticIpAddresses_.set(index, value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The staticIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addStaticIpAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticIpAddressesIsMutable(); + staticIpAddresses_.add(value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The staticIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllStaticIpAddresses(java.lang.Iterable values) { + ensureStaticIpAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticIpAddresses_); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStaticIpAddresses() { + staticIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector.
+     * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the staticIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addStaticIpAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStaticIpAddressesIsMutable(); + staticIpAddresses_.add(value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList oauthStaticIpAddresses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOauthStaticIpAddressesIsMutable() { + if (!oauthStaticIpAddresses_.isModifiable()) { + oauthStaticIpAddresses_ = + new com.google.protobuf.LazyStringArrayList(oauthStaticIpAddresses_); + } + bitField0_ |= 0x01000000; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the oauthStaticIpAddresses. + */ + public com.google.protobuf.ProtocolStringList getOauthStaticIpAddressesList() { + oauthStaticIpAddresses_.makeImmutable(); + return oauthStaticIpAddresses_; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of oauthStaticIpAddresses. + */ + public int getOauthStaticIpAddressesCount() { + return oauthStaticIpAddresses_.size(); + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The oauthStaticIpAddresses at the given index. + */ + public java.lang.String getOauthStaticIpAddresses(int index) { + return oauthStaticIpAddresses_.get(index); + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the oauthStaticIpAddresses at the given index. + */ + public com.google.protobuf.ByteString getOauthStaticIpAddressesBytes(int index) { + return oauthStaticIpAddresses_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The oauthStaticIpAddresses to set. + * @return This builder for chaining. + */ + public Builder setOauthStaticIpAddresses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthStaticIpAddressesIsMutable(); + oauthStaticIpAddresses_.set(index, value); + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The oauthStaticIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addOauthStaticIpAddresses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthStaticIpAddressesIsMutable(); + oauthStaticIpAddresses_.add(value); + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The oauthStaticIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllOauthStaticIpAddresses(java.lang.Iterable values) { + ensureOauthStaticIpAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthStaticIpAddresses_); + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOauthStaticIpAddresses() { + oauthStaticIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The static IP addresses used by this connector for OAuth APIs
+     * (e.g. end user authentication). These are surfaced separately from
+     * `static_ip_addresses` so that customers can apply granular firewall
+     * settings for OAuth endpoints. Only populated for connectors that have
+     * static IP enabled and are used for actions and/or federated search.
+     * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the oauthStaticIpAddresses to add. + * @return This builder for chaining. + */ + public Builder addOauthStaticIpAddressesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthStaticIpAddressesIsMutable(); + oauthStaticIpAddresses_.add(value); + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList blockingReasons_ = emptyIntList(); + + private void ensureBlockingReasonsIsMutable() { + if (!blockingReasons_.isModifiable()) { + blockingReasons_ = makeMutableCopy(blockingReasons_); + } + bitField0_ |= 0x02000000; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blockingReasons. + */ + public java.util.List + getBlockingReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason>( + blockingReasons_, blockingReasons_converter_); + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blockingReasons. + */ + public int getBlockingReasonsCount() { + return blockingReasons_.size(); + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blockingReasons at the given index. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason getBlockingReasons( + int index) { + return blockingReasons_converter_.convert(blockingReasons_.getInt(index)); + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The blockingReasons to set. + * @return This builder for chaining. + */ + public Builder setBlockingReasons( + int index, com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockingReasonsIsMutable(); + blockingReasons_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The blockingReasons to add. + * @return This builder for chaining. + */ + public Builder addBlockingReasons( + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockingReasonsIsMutable(); + blockingReasons_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The blockingReasons to add. + * @return This builder for chaining. + */ + public Builder addAllBlockingReasons( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason> + values) { + ensureBlockingReasonsIsMutable(); + for (com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason value : values) { + blockingReasons_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockingReasons() { + blockingReasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for blockingReasons. + */ + public java.util.List getBlockingReasonsValueList() { + blockingReasons_.makeImmutable(); + return blockingReasons_; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of blockingReasons at the given index. + */ + public int getBlockingReasonsValue(int index) { + return blockingReasons_.getInt(index); + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for blockingReasons to set. + * @return This builder for chaining. + */ + public Builder setBlockingReasonsValue(int index, int value) { + ensureBlockingReasonsIsMutable(); + blockingReasons_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for blockingReasons to add. + * @return This builder for chaining. + */ + public Builder addBlockingReasonsValue(int value) { + ensureBlockingReasonsIsMutable(); + blockingReasons_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. User actions that must be completed before the connector can
+     * start syncing data.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for blockingReasons to add. + * @return This builder for chaining. + */ + public Builder addAllBlockingReasonsValue(java.lang.Iterable values) { + ensureBlockingReasonsIsMutable(); + for (int value : values) { + blockingReasons_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.IdentityScheduleConfig identityScheduleConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder> + identityScheduleConfigBuilder_; + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + * + * @return Whether the identityScheduleConfig field is set. + */ + public boolean hasIdentityScheduleConfig() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + * + * @return The identityScheduleConfig. + */ + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig getIdentityScheduleConfig() { + if (identityScheduleConfigBuilder_ == null) { + return identityScheduleConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.getDefaultInstance() + : identityScheduleConfig_; + } else { + return identityScheduleConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + public Builder setIdentityScheduleConfig( + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig value) { + if (identityScheduleConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityScheduleConfig_ = value; + } else { + identityScheduleConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + public Builder setIdentityScheduleConfig( + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder builderForValue) { + if (identityScheduleConfigBuilder_ == null) { + identityScheduleConfig_ = builderForValue.build(); + } else { + identityScheduleConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + public Builder mergeIdentityScheduleConfig( + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig value) { + if (identityScheduleConfigBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) + && identityScheduleConfig_ != null + && identityScheduleConfig_ + != com.google.cloud.discoveryengine.v1.IdentityScheduleConfig + .getDefaultInstance()) { + getIdentityScheduleConfigBuilder().mergeFrom(value); + } else { + identityScheduleConfig_ = value; + } + } else { + identityScheduleConfigBuilder_.mergeFrom(value); + } + if (identityScheduleConfig_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + public Builder clearIdentityScheduleConfig() { + bitField0_ = (bitField0_ & ~0x04000000); + identityScheduleConfig_ = null; + if (identityScheduleConfigBuilder_ != null) { + identityScheduleConfigBuilder_.dispose(); + identityScheduleConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder + getIdentityScheduleConfigBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return internalGetIdentityScheduleConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder + getIdentityScheduleConfigOrBuilder() { + if (identityScheduleConfigBuilder_ != null) { + return identityScheduleConfigBuilder_.getMessageOrBuilder(); + } else { + return identityScheduleConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.getDefaultInstance() + : identityScheduleConfig_; + } + } + + /** + * + * + *
+     * The configuration for the identity data synchronization runs. This contains
+     * the refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder> + internalGetIdentityScheduleConfigFieldBuilder() { + if (identityScheduleConfigBuilder_ == null) { + identityScheduleConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder>( + getIdentityScheduleConfig(), getParentForChildren(), isClean()); + identityScheduleConfig_ = null; + } + return identityScheduleConfigBuilder_; + } + + private java.lang.Object privateConnectivityProjectId_ = ""; + + /** + * + * + *
+     * Output only. The tenant project ID associated with private connectivity
+     * connectors. This project must be allowlisted by in order for the connector
+     * to function.
+     * 
+ * + * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateConnectivityProjectId. + */ + public java.lang.String getPrivateConnectivityProjectId() { + java.lang.Object ref = privateConnectivityProjectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateConnectivityProjectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The tenant project ID associated with private connectivity
+     * connectors. This project must be allowlisted by in order for the connector
+     * to function.
+     * 
+ * + * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for privateConnectivityProjectId. + */ + public com.google.protobuf.ByteString getPrivateConnectivityProjectIdBytes() { + java.lang.Object ref = privateConnectivityProjectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateConnectivityProjectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The tenant project ID associated with private connectivity
+     * connectors. This project must be allowlisted by in order for the connector
+     * to function.
+     * 
+ * + * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The privateConnectivityProjectId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectivityProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + privateConnectivityProjectId_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The tenant project ID associated with private connectivity
+     * connectors. This project must be allowlisted by in order for the connector
+     * to function.
+     * 
+ * + * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateConnectivityProjectId() { + privateConnectivityProjectId_ = getDefaultInstance().getPrivateConnectivityProjectId(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The tenant project ID associated with private connectivity
+     * connectors. This project must be allowlisted by in order for the connector
+     * to function.
+     * 
+ * + * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for privateConnectivityProjectId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectivityProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnectivityProjectId_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.BAPConfig bapConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.BAPConfig, + com.google.cloud.discoveryengine.v1.BAPConfig.Builder, + com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder> + bapConfigBuilder_; + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bapConfig field is set. + */ + public boolean hasBapConfig() { + return ((bitField0_ & 0x10000000) != 0); + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bapConfig. + */ + public com.google.cloud.discoveryengine.v1.BAPConfig getBapConfig() { + if (bapConfigBuilder_ == null) { + return bapConfig_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance() + : bapConfig_; + } else { + return bapConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBapConfig(com.google.cloud.discoveryengine.v1.BAPConfig value) { + if (bapConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bapConfig_ = value; + } else { + bapConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBapConfig( + com.google.cloud.discoveryengine.v1.BAPConfig.Builder builderForValue) { + if (bapConfigBuilder_ == null) { + bapConfig_ = builderForValue.build(); + } else { + bapConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBapConfig(com.google.cloud.discoveryengine.v1.BAPConfig value) { + if (bapConfigBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && bapConfig_ != null + && bapConfig_ != com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance()) { + getBapConfigBuilder().mergeFrom(value); + } else { + bapConfig_ = value; + } + } else { + bapConfigBuilder_.mergeFrom(value); + } + if (bapConfig_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBapConfig() { + bitField0_ = (bitField0_ & ~0x10000000); + bapConfig_ = null; + if (bapConfigBuilder_ != null) { + bapConfigBuilder_.dispose(); + bapConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.BAPConfig.Builder getBapConfigBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return internalGetBapConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder getBapConfigOrBuilder() { + if (bapConfigBuilder_ != null) { + return bapConfigBuilder_.getMessageOrBuilder(); + } else { + return bapConfig_ == null + ? com.google.cloud.discoveryengine.v1.BAPConfig.getDefaultInstance() + : bapConfig_; + } + } + + /** + * + * + *
+     * Optional. The configuration for establishing a BAP connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.BAPConfig, + com.google.cloud.discoveryengine.v1.BAPConfig.Builder, + com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder> + internalGetBapConfigFieldBuilder() { + if (bapConfigBuilder_ == null) { + bapConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.BAPConfig, + com.google.cloud.discoveryengine.v1.BAPConfig.Builder, + com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder>( + getBapConfig(), getParentForChildren(), isClean()); + bapConfig_ = null; + } + return bapConfigBuilder_; + } + + private int connectorType_ = 0; + + /** + * + * + *
+     * Output only. The type of connector. Each source can only map to one type.
+     * For example, salesforce, confluence and jira have THIRD_PARTY connector
+     * type. It is not mutable once set by system.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectorType. + */ + @java.lang.Override + public int getConnectorTypeValue() { + return connectorType_; + } + + /** + * + * + *
+     * Output only. The type of connector. Each source can only map to one type.
+     * For example, salesforce, confluence and jira have THIRD_PARTY connector
+     * type. It is not mutable once set by system.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectorType to set. + * @return This builder for chaining. + */ + public Builder setConnectorTypeValue(int value) { + connectorType_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of connector. Each source can only map to one type.
+     * For example, salesforce, confluence and jira have THIRD_PARTY connector
+     * type. It is not mutable once set by system.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ConnectorType getConnectorType() { + com.google.cloud.discoveryengine.v1.ConnectorType result = + com.google.cloud.discoveryengine.v1.ConnectorType.forNumber(connectorType_); + return result == null + ? com.google.cloud.discoveryengine.v1.ConnectorType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of connector. Each source can only map to one type.
+     * For example, salesforce, confluence and jira have THIRD_PARTY connector
+     * type. It is not mutable once set by system.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectorType to set. + * @return This builder for chaining. + */ + public Builder setConnectorType(com.google.cloud.discoveryengine.v1.ConnectorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x20000000; + connectorType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of connector. Each source can only map to one type.
+     * For example, salesforce, confluence and jira have THIRD_PARTY connector
+     * type. It is not mutable once set by system.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectorType() { + bitField0_ = (bitField0_ & ~0x20000000); + connectorType_ = 0; + onChanged(); + return this; + } + + private int realtimeState_ = 0; + + /** + * + * + *
+     * Output only. real-time sync state
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for realtimeState. + */ + @java.lang.Override + public int getRealtimeStateValue() { + return realtimeState_; + } + + /** + * + * + *
+     * Output only. real-time sync state
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for realtimeState to set. + * @return This builder for chaining. + */ + public Builder setRealtimeStateValue(int value) { + realtimeState_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. real-time sync state
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The realtimeState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.State getRealtimeState() { + com.google.cloud.discoveryengine.v1.DataConnector.State result = + com.google.cloud.discoveryengine.v1.DataConnector.State.forNumber(realtimeState_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataConnector.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. real-time sync state
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The realtimeState to set. + * @return This builder for chaining. + */ + public Builder setRealtimeState(com.google.cloud.discoveryengine.v1.DataConnector.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x40000000; + realtimeState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. real-time sync state
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRealtimeState() { + bitField0_ = (bitField0_ & ~0x40000000); + realtimeState_ = 0; + onChanged(); + return this; + } + + private java.util.List + alertPolicyConfigs_ = java.util.Collections.emptyList(); + + private void ensureAlertPolicyConfigsIsMutable() { + if (!((bitField0_ & 0x80000000) != 0)) { + alertPolicyConfigs_ = + new java.util.ArrayList( + alertPolicyConfigs_); + bitField0_ |= 0x80000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder, + com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder> + alertPolicyConfigsBuilder_; + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlertPolicyConfigsList() { + if (alertPolicyConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(alertPolicyConfigs_); + } else { + return alertPolicyConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAlertPolicyConfigsCount() { + if (alertPolicyConfigsBuilder_ == null) { + return alertPolicyConfigs_.size(); + } else { + return alertPolicyConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig getAlertPolicyConfigs(int index) { + if (alertPolicyConfigsBuilder_ == null) { + return alertPolicyConfigs_.get(index); + } else { + return alertPolicyConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlertPolicyConfigs( + int index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig value) { + if (alertPolicyConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.set(index, value); + onChanged(); + } else { + alertPolicyConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlertPolicyConfigs( + int index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder builderForValue) { + if (alertPolicyConfigsBuilder_ == null) { + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + alertPolicyConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertPolicyConfigs( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig value) { + if (alertPolicyConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.add(value); + onChanged(); + } else { + alertPolicyConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertPolicyConfigs( + int index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig value) { + if (alertPolicyConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.add(index, value); + onChanged(); + } else { + alertPolicyConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertPolicyConfigs( + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder builderForValue) { + if (alertPolicyConfigsBuilder_ == null) { + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.add(builderForValue.build()); + onChanged(); + } else { + alertPolicyConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAlertPolicyConfigs( + int index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder builderForValue) { + if (alertPolicyConfigsBuilder_ == null) { + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + alertPolicyConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAlertPolicyConfigs( + java.lang.Iterable + values) { + if (alertPolicyConfigsBuilder_ == null) { + ensureAlertPolicyConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alertPolicyConfigs_); + onChanged(); + } else { + alertPolicyConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAlertPolicyConfigs() { + if (alertPolicyConfigsBuilder_ == null) { + alertPolicyConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x80000000); + onChanged(); + } else { + alertPolicyConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAlertPolicyConfigs(int index) { + if (alertPolicyConfigsBuilder_ == null) { + ensureAlertPolicyConfigsIsMutable(); + alertPolicyConfigs_.remove(index); + onChanged(); + } else { + alertPolicyConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder + getAlertPolicyConfigsBuilder(int index) { + return internalGetAlertPolicyConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder + getAlertPolicyConfigsOrBuilder(int index) { + if (alertPolicyConfigsBuilder_ == null) { + return alertPolicyConfigs_.get(index); + } else { + return alertPolicyConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlertPolicyConfigsOrBuilderList() { + if (alertPolicyConfigsBuilder_ != null) { + return alertPolicyConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alertPolicyConfigs_); + } + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder + addAlertPolicyConfigsBuilder() { + return internalGetAlertPolicyConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.AlertPolicyConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder + addAlertPolicyConfigsBuilder(int index) { + return internalGetAlertPolicyConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.AlertPolicyConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The connector level alert config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAlertPolicyConfigsBuilderList() { + return internalGetAlertPolicyConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder, + com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder> + internalGetAlertPolicyConfigsFieldBuilder() { + if (alertPolicyConfigsBuilder_ == null) { + alertPolicyConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.AlertPolicyConfig, + com.google.cloud.discoveryengine.v1.AlertPolicyConfig.Builder, + com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder>( + alertPolicyConfigs_, + ((bitField0_ & 0x80000000) != 0), + getParentForChildren(), + isClean()); + alertPolicyConfigs_ = null; + } + return alertPolicyConfigsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + realtimeSyncConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder> + realtimeSyncConfigBuilder_; + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the realtimeSyncConfig field is set. + */ + public boolean hasRealtimeSyncConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The realtimeSyncConfig. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + getRealtimeSyncConfig() { + if (realtimeSyncConfigBuilder_ == null) { + return realtimeSyncConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .getDefaultInstance() + : realtimeSyncConfig_; + } else { + return realtimeSyncConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRealtimeSyncConfig( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig value) { + if (realtimeSyncConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + realtimeSyncConfig_ = value; + } else { + realtimeSyncConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRealtimeSyncConfig( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder + builderForValue) { + if (realtimeSyncConfigBuilder_ == null) { + realtimeSyncConfig_ = builderForValue.build(); + } else { + realtimeSyncConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRealtimeSyncConfig( + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig value) { + if (realtimeSyncConfigBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) + && realtimeSyncConfig_ != null + && realtimeSyncConfig_ + != com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .getDefaultInstance()) { + getRealtimeSyncConfigBuilder().mergeFrom(value); + } else { + realtimeSyncConfig_ = value; + } + } else { + realtimeSyncConfigBuilder_.mergeFrom(value); + } + if (realtimeSyncConfig_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRealtimeSyncConfig() { + bitField1_ = (bitField1_ & ~0x00000001); + realtimeSyncConfig_ = null; + if (realtimeSyncConfigBuilder_ != null) { + realtimeSyncConfigBuilder_.dispose(); + realtimeSyncConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder + getRealtimeSyncConfigBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return internalGetRealtimeSyncConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder + getRealtimeSyncConfigOrBuilder() { + if (realtimeSyncConfigBuilder_ != null) { + return realtimeSyncConfigBuilder_.getMessageOrBuilder(); + } else { + return realtimeSyncConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig + .getDefaultInstance() + : realtimeSyncConfig_; + } + } + + /** + * + * + *
+     * Optional. The configuration for realtime sync.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder> + internalGetRealtimeSyncConfigFieldBuilder() { + if (realtimeSyncConfigBuilder_ == null) { + realtimeSyncConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder>( + getRealtimeSyncConfig(), getParentForChildren(), isClean()); + realtimeSyncConfig_ = null; + } + return realtimeSyncConfigBuilder_; + } + + private boolean aclEnabled_; + + /** + * + * + *
+     * Optional. Whether the connector will be created with an ACL config.
+     * Currently this field only affects Cloud Storage and BigQuery connectors.
+     * 
+ * + * bool acl_enabled = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + + /** + * + * + *
+     * Optional. Whether the connector will be created with an ACL config.
+     * Currently this field only affects Cloud Storage and BigQuery connectors.
+     * 
+ * + * bool acl_enabled = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The aclEnabled to set. + * @return This builder for chaining. + */ + public Builder setAclEnabled(boolean value) { + + aclEnabled_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the connector will be created with an ACL config.
+     * Currently this field only affects Cloud Storage and BigQuery connectors.
+     * 
+ * + * bool acl_enabled = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAclEnabled() { + bitField1_ = (bitField1_ & ~0x00000002); + aclEnabled_ = false; + onChanged(); + return this; + } + + private boolean createEuaSaas_; + + /** + * + * + *
+     * Optional. Whether the END USER AUTHENTICATION connector is created in SaaS.
+     * 
+ * + * bool create_eua_saas = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createEuaSaas. + */ + @java.lang.Override + public boolean getCreateEuaSaas() { + return createEuaSaas_; + } + + /** + * + * + *
+     * Optional. Whether the END USER AUTHENTICATION connector is created in SaaS.
+     * 
+ * + * bool create_eua_saas = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The createEuaSaas to set. + * @return This builder for chaining. + */ + public Builder setCreateEuaSaas(boolean value) { + + createEuaSaas_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the END USER AUTHENTICATION connector is created in SaaS.
+     * 
+ * + * bool create_eua_saas = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCreateEuaSaas() { + bitField1_ = (bitField1_ & ~0x00000004); + createEuaSaas_ = false; + onChanged(); + return this; + } + + private boolean autoRunDisabled_; + + /** + * + * + *
+     * Optional. Indicates whether the connector is disabled for auto run. It can
+     * be used to pause periodical and real time sync. Update: with the
+     * introduction of incremental_sync_disabled, auto_run_disabled is used to
+     * pause/disable only full syncs
+     * 
+ * + * bool auto_run_disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRunDisabled. + */ + @java.lang.Override + public boolean getAutoRunDisabled() { + return autoRunDisabled_; + } + + /** + * + * + *
+     * Optional. Indicates whether the connector is disabled for auto run. It can
+     * be used to pause periodical and real time sync. Update: with the
+     * introduction of incremental_sync_disabled, auto_run_disabled is used to
+     * pause/disable only full syncs
+     * 
+ * + * bool auto_run_disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoRunDisabled to set. + * @return This builder for chaining. + */ + public Builder setAutoRunDisabled(boolean value) { + + autoRunDisabled_ = value; + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates whether the connector is disabled for auto run. It can
+     * be used to pause periodical and real time sync. Update: with the
+     * introduction of incremental_sync_disabled, auto_run_disabled is used to
+     * pause/disable only full syncs
+     * 
+ * + * bool auto_run_disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoRunDisabled() { + bitField1_ = (bitField1_ & ~0x00000008); + autoRunDisabled_ = false; + onChanged(); + return this; + } + + private boolean incrementalSyncDisabled_; + + /** + * + * + *
+     * Optional. Indicates whether incremental syncs are paused for this
+     * connector. This is independent of auto_run_disabled. Applicable to only 3P
+     * connectors. When the refresh interval is set to the same value as the
+     * incremental refresh interval, incremental sync will be disabled, i.e. set
+     * to true.
+     * 
+ * + * bool incremental_sync_disabled = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The incrementalSyncDisabled. + */ + @java.lang.Override + public boolean getIncrementalSyncDisabled() { + return incrementalSyncDisabled_; + } + + /** + * + * + *
+     * Optional. Indicates whether incremental syncs are paused for this
+     * connector. This is independent of auto_run_disabled. Applicable to only 3P
+     * connectors. When the refresh interval is set to the same value as the
+     * incremental refresh interval, incremental sync will be disabled, i.e. set
+     * to true.
+     * 
+ * + * bool incremental_sync_disabled = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The incrementalSyncDisabled to set. + * @return This builder for chaining. + */ + public Builder setIncrementalSyncDisabled(boolean value) { + + incrementalSyncDisabled_ = value; + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates whether incremental syncs are paused for this
+     * connector. This is independent of auto_run_disabled. Applicable to only 3P
+     * connectors. When the refresh interval is set to the same value as the
+     * incremental refresh interval, incremental sync will be disabled, i.e. set
+     * to true.
+     * 
+ * + * bool incremental_sync_disabled = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncrementalSyncDisabled() { + bitField1_ = (bitField1_ & ~0x00000010); + incrementalSyncDisabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration incrementalRefreshInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + incrementalRefreshIntervalBuilder_; + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the incrementalRefreshInterval field is set. + */ + public boolean hasIncrementalRefreshInterval() { + return ((bitField1_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The incrementalRefreshInterval. + */ + public com.google.protobuf.Duration getIncrementalRefreshInterval() { + if (incrementalRefreshIntervalBuilder_ == null) { + return incrementalRefreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : incrementalRefreshInterval_; + } else { + return incrementalRefreshIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncrementalRefreshInterval(com.google.protobuf.Duration value) { + if (incrementalRefreshIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + incrementalRefreshInterval_ = value; + } else { + incrementalRefreshIntervalBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncrementalRefreshInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (incrementalRefreshIntervalBuilder_ == null) { + incrementalRefreshInterval_ = builderForValue.build(); + } else { + incrementalRefreshIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIncrementalRefreshInterval(com.google.protobuf.Duration value) { + if (incrementalRefreshIntervalBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) + && incrementalRefreshInterval_ != null + && incrementalRefreshInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getIncrementalRefreshIntervalBuilder().mergeFrom(value); + } else { + incrementalRefreshInterval_ = value; + } + } else { + incrementalRefreshIntervalBuilder_.mergeFrom(value); + } + if (incrementalRefreshInterval_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncrementalRefreshInterval() { + bitField1_ = (bitField1_ & ~0x00000020); + incrementalRefreshInterval_ = null; + if (incrementalRefreshIntervalBuilder_ != null) { + incrementalRefreshIntervalBuilder_.dispose(); + incrementalRefreshIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getIncrementalRefreshIntervalBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return internalGetIncrementalRefreshIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getIncrementalRefreshIntervalOrBuilder() { + if (incrementalRefreshIntervalBuilder_ != null) { + return incrementalRefreshIntervalBuilder_.getMessageOrBuilder(); + } else { + return incrementalRefreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : incrementalRefreshInterval_; + } + } + + /** + * + * + *
+     * Optional. The refresh interval specifically for incremental data syncs. If
+     * unset, incremental syncs will use the default from env, set to 3hrs. The
+     * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+     * connectors. When the refresh interval is
+     * set to the same value as the incremental refresh interval, incremental
+     * sync will be disabled.
+     * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetIncrementalRefreshIntervalFieldBuilder() { + if (incrementalRefreshIntervalBuilder_ == null) { + incrementalRefreshIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getIncrementalRefreshInterval(), getParentForChildren(), isClean()); + incrementalRefreshInterval_ = null; + } + return incrementalRefreshIntervalBuilder_; + } + + private boolean hybridIngestionDisabled_; + + /** + * + * + *
+     * Optional. If the connector is a hybrid connector, determines whether
+     * ingestion is enabled and appropriate resources are provisioned during
+     * connector creation. If the connector is not a hybrid connector, this field
+     * is ignored.
+     * 
+ * + * bool hybrid_ingestion_disabled = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hybridIngestionDisabled. + */ + @java.lang.Override + public boolean getHybridIngestionDisabled() { + return hybridIngestionDisabled_; + } + + /** + * + * + *
+     * Optional. If the connector is a hybrid connector, determines whether
+     * ingestion is enabled and appropriate resources are provisioned during
+     * connector creation. If the connector is not a hybrid connector, this field
+     * is ignored.
+     * 
+ * + * bool hybrid_ingestion_disabled = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hybridIngestionDisabled to set. + * @return This builder for chaining. + */ + public Builder setHybridIngestionDisabled(boolean value) { + + hybridIngestionDisabled_ = value; + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If the connector is a hybrid connector, determines whether
+     * ingestion is enabled and appropriate resources are provisioned during
+     * connector creation. If the connector is not a hybrid connector, this field
+     * is ignored.
+     * 
+ * + * bool hybrid_ingestion_disabled = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHybridIngestionDisabled() { + bitField1_ = (bitField1_ & ~0x00000040); + hybridIngestionDisabled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy dataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder> + dataProtectionPolicyBuilder_; + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + public boolean hasDataProtectionPolicy() { + return ((bitField1_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy() { + if (dataProtectionPolicyBuilder_ == null) { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } else { + return dataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy value) { + if (dataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataProtectionPolicy_ = value; + } else { + dataProtectionPolicyBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder builderForValue) { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicy_ = builderForValue.build(); + } else { + dataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy value) { + if (dataProtectionPolicyBuilder_ == null) { + if (((bitField1_ & 0x00000080) != 0) + && dataProtectionPolicy_ != null + && dataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance()) { + getDataProtectionPolicyBuilder().mergeFrom(value); + } else { + dataProtectionPolicy_ = value; + } + } else { + dataProtectionPolicyBuilder_.mergeFrom(value); + } + if (dataProtectionPolicy_ != null) { + bitField1_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataProtectionPolicy() { + bitField1_ = (bitField1_ & ~0x00000080); + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder + getDataProtectionPolicyBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return internalGetDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + if (dataProtectionPolicyBuilder_ != null) { + return dataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder> + internalGetDataProtectionPolicyFieldBuilder() { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder>( + getDataProtectionPolicy(), getParentForChildren(), isClean()); + dataProtectionPolicy_ = null; + } + return dataProtectionPolicyBuilder_; + } + + private com.google.protobuf.LazyStringArrayList egressFqdns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEgressFqdnsIsMutable() { + if (!egressFqdns_.isModifiable()) { + egressFqdns_ = new com.google.protobuf.LazyStringArrayList(egressFqdns_); + } + bitField1_ |= 0x00000100; + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the egressFqdns. + */ + public com.google.protobuf.ProtocolStringList getEgressFqdnsList() { + egressFqdns_.makeImmutable(); + return egressFqdns_; + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of egressFqdns. + */ + public int getEgressFqdnsCount() { + return egressFqdns_.size(); + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The egressFqdns at the given index. + */ + public java.lang.String getEgressFqdns(int index) { + return egressFqdns_.get(index); + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the egressFqdns at the given index. + */ + public com.google.protobuf.ByteString getEgressFqdnsBytes(int index) { + return egressFqdns_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The egressFqdns to set. + * @return This builder for chaining. + */ + public Builder setEgressFqdns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEgressFqdnsIsMutable(); + egressFqdns_.set(index, value); + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The egressFqdns to add. + * @return This builder for chaining. + */ + public Builder addEgressFqdns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEgressFqdnsIsMutable(); + egressFqdns_.add(value); + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The egressFqdns to add. + * @return This builder for chaining. + */ + public Builder addAllEgressFqdns(java.lang.Iterable values) { + ensureEgressFqdnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, egressFqdns_); + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEgressFqdns() { + egressFqdns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The list of FQDNs of the data connector can egress to. This
+     * includes both FQDN derived from the customer provided instance URL and
+     * default per connector type FQDNs.
+     * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the egressFqdns to add. + * @return This builder for chaining. + */ + public Builder addEgressFqdnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEgressFqdnsIsMutable(); + egressFqdns_.add(value); + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + + private boolean vpcscEnabled_; + + /** + * + * + *
+     * Output only. Whether the connector is created with VPC-SC enabled.
+     * 
+ * + * bool vpcsc_enabled = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vpcscEnabled. + */ + @java.lang.Override + public boolean getVpcscEnabled() { + return vpcscEnabled_; + } + + /** + * + * + *
+     * Output only. Whether the connector is created with VPC-SC enabled.
+     * 
+ * + * bool vpcsc_enabled = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vpcscEnabled to set. + * @return This builder for chaining. + */ + public Builder setVpcscEnabled(boolean value) { + + vpcscEnabled_ = value; + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the connector is created with VPC-SC enabled.
+     * 
+ * + * bool vpcsc_enabled = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVpcscEnabled() { + bitField1_ = (bitField1_ & ~0x00000200); + vpcscEnabled_ = false; + onChanged(); + return this; + } + + private java.util.List dynamicTools_ = + java.util.Collections.emptyList(); + + private void ensureDynamicToolsIsMutable() { + if (!((bitField1_ & 0x00000400) != 0)) { + dynamicTools_ = + new java.util.ArrayList(dynamicTools_); + bitField1_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DynamicTool, + com.google.cloud.discoveryengine.v1.DynamicTool.Builder, + com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder> + dynamicToolsBuilder_; + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getDynamicToolsList() { + if (dynamicToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dynamicTools_); + } else { + return dynamicToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDynamicToolsCount() { + if (dynamicToolsBuilder_ == null) { + return dynamicTools_.size(); + } else { + return dynamicToolsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DynamicTool getDynamicTools(int index) { + if (dynamicToolsBuilder_ == null) { + return dynamicTools_.get(index); + } else { + return dynamicToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDynamicTools( + int index, com.google.cloud.discoveryengine.v1.DynamicTool value) { + if (dynamicToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDynamicToolsIsMutable(); + dynamicTools_.set(index, value); + onChanged(); + } else { + dynamicToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDynamicTools( + int index, com.google.cloud.discoveryengine.v1.DynamicTool.Builder builderForValue) { + if (dynamicToolsBuilder_ == null) { + ensureDynamicToolsIsMutable(); + dynamicTools_.set(index, builderForValue.build()); + onChanged(); + } else { + dynamicToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDynamicTools(com.google.cloud.discoveryengine.v1.DynamicTool value) { + if (dynamicToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDynamicToolsIsMutable(); + dynamicTools_.add(value); + onChanged(); + } else { + dynamicToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDynamicTools( + int index, com.google.cloud.discoveryengine.v1.DynamicTool value) { + if (dynamicToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDynamicToolsIsMutable(); + dynamicTools_.add(index, value); + onChanged(); + } else { + dynamicToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDynamicTools( + com.google.cloud.discoveryengine.v1.DynamicTool.Builder builderForValue) { + if (dynamicToolsBuilder_ == null) { + ensureDynamicToolsIsMutable(); + dynamicTools_.add(builderForValue.build()); + onChanged(); + } else { + dynamicToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDynamicTools( + int index, com.google.cloud.discoveryengine.v1.DynamicTool.Builder builderForValue) { + if (dynamicToolsBuilder_ == null) { + ensureDynamicToolsIsMutable(); + dynamicTools_.add(index, builderForValue.build()); + onChanged(); + } else { + dynamicToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDynamicTools( + java.lang.Iterable values) { + if (dynamicToolsBuilder_ == null) { + ensureDynamicToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dynamicTools_); + onChanged(); + } else { + dynamicToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDynamicTools() { + if (dynamicToolsBuilder_ == null) { + dynamicTools_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000400); + onChanged(); + } else { + dynamicToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDynamicTools(int index) { + if (dynamicToolsBuilder_ == null) { + ensureDynamicToolsIsMutable(); + dynamicTools_.remove(index); + onChanged(); + } else { + dynamicToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DynamicTool.Builder getDynamicToolsBuilder( + int index) { + return internalGetDynamicToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder getDynamicToolsOrBuilder( + int index) { + if (dynamicToolsBuilder_ == null) { + return dynamicTools_.get(index); + } else { + return dynamicToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDynamicToolsOrBuilderList() { + if (dynamicToolsBuilder_ != null) { + return dynamicToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dynamicTools_); + } + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DynamicTool.Builder addDynamicToolsBuilder() { + return internalGetDynamicToolsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.DynamicTool.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DynamicTool.Builder addDynamicToolsBuilder( + int index) { + return internalGetDynamicToolsFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1.DynamicTool.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The dynamic tools fetched for this connector.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDynamicToolsBuilderList() { + return internalGetDynamicToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DynamicTool, + com.google.cloud.discoveryengine.v1.DynamicTool.Builder, + com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder> + internalGetDynamicToolsFieldBuilder() { + if (dynamicToolsBuilder_ == null) { + dynamicToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DynamicTool, + com.google.cloud.discoveryengine.v1.DynamicTool.Builder, + com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder>( + dynamicTools_, ((bitField1_ & 0x00000400) != 0), getParentForChildren(), isClean()); + dynamicTools_ = null; + } + return dynamicToolsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.CliConfig cliConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CliConfig, + com.google.cloud.discoveryengine.v1.CliConfig.Builder, + com.google.cloud.discoveryengine.v1.CliConfigOrBuilder> + cliConfigBuilder_; + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cliConfig field is set. + */ + public boolean hasCliConfig() { + return ((bitField1_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cliConfig. + */ + public com.google.cloud.discoveryengine.v1.CliConfig getCliConfig() { + if (cliConfigBuilder_ == null) { + return cliConfig_ == null + ? com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance() + : cliConfig_; + } else { + return cliConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCliConfig(com.google.cloud.discoveryengine.v1.CliConfig value) { + if (cliConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cliConfig_ = value; + } else { + cliConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCliConfig( + com.google.cloud.discoveryengine.v1.CliConfig.Builder builderForValue) { + if (cliConfigBuilder_ == null) { + cliConfig_ = builderForValue.build(); + } else { + cliConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCliConfig(com.google.cloud.discoveryengine.v1.CliConfig value) { + if (cliConfigBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0) + && cliConfig_ != null + && cliConfig_ != com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance()) { + getCliConfigBuilder().mergeFrom(value); + } else { + cliConfig_ = value; + } + } else { + cliConfigBuilder_.mergeFrom(value); + } + if (cliConfig_ != null) { + bitField1_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCliConfig() { + bitField1_ = (bitField1_ & ~0x00000800); + cliConfig_ = null; + if (cliConfigBuilder_ != null) { + cliConfigBuilder_.dispose(); + cliConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.CliConfig.Builder getCliConfigBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return internalGetCliConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.CliConfigOrBuilder getCliConfigOrBuilder() { + if (cliConfigBuilder_ != null) { + return cliConfigBuilder_.getMessageOrBuilder(); + } else { + return cliConfig_ == null + ? com.google.cloud.discoveryengine.v1.CliConfig.getDefaultInstance() + : cliConfig_; + } + } + + /** + * + * + *
+     * Optional. The configuration for establishing a CLI connection.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CliConfig, + com.google.cloud.discoveryengine.v1.CliConfig.Builder, + com.google.cloud.discoveryengine.v1.CliConfigOrBuilder> + internalGetCliConfigFieldBuilder() { + if (cliConfigBuilder_ == null) { + cliConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CliConfig, + com.google.cloud.discoveryengine.v1.CliConfig.Builder, + com.google.cloud.discoveryengine.v1.CliConfigOrBuilder>( + getCliConfig(), getParentForChildren(), isClean()); + cliConfig_ = null; + } + return cliConfigBuilder_; + } + + private java.lang.Object connectorSourceId_ = ""; + + /** + * + * + *
+     * Optional. If set, this value instead of `data_source` is used to fetch the
+     * corresponding connector source.
+     * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connectorSourceId. + */ + public java.lang.String getConnectorSourceId() { + java.lang.Object ref = connectorSourceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectorSourceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. If set, this value instead of `data_source` is used to fetch the
+     * corresponding connector source.
+     * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connectorSourceId. + */ + public com.google.protobuf.ByteString getConnectorSourceIdBytes() { + java.lang.Object ref = connectorSourceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectorSourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. If set, this value instead of `data_source` is used to fetch the
+     * corresponding connector source.
+     * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The connectorSourceId to set. + * @return This builder for chaining. + */ + public Builder setConnectorSourceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connectorSourceId_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, this value instead of `data_source` is used to fetch the
+     * corresponding connector source.
+     * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConnectorSourceId() { + connectorSourceId_ = getDefaultInstance().getConnectorSourceId(); + bitField1_ = (bitField1_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, this value instead of `data_source` is used to fetch the
+     * corresponding connector source.
+     * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for connectorSourceId to set. + * @return This builder for chaining. + */ + public Builder setConnectorSourceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectorSourceId_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + + /** + * + * + *
+     * Optional. Immutable. User-facing, version-independent label for this
+     * connector. May be shared by multiple connectors under the same
+     * (project, location, collection, data_source); tag-based lookup returns
+     * the one with the greatest create_time.
+     *
+     * Optional at Create time. If the caller omits `tag`, the server
+     * auto-derives one from the collection_id (falling back to data_source,
+     * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+     * subject to the same immutability guarantee as a caller-supplied one,
+     * so callers who care about the exact tag value should provide it
+     * explicitly rather than relying on the server default.
+     *
+     * Agent Designer resolves connectors via (data_source, tag) when set,
+     * falling back to the legacy resource-name lookup when unset, so
+     * connectors created before the tag-write launch continue to work
+     * without a backfill.
+     * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The tag. + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. User-facing, version-independent label for this
+     * connector. May be shared by multiple connectors under the same
+     * (project, location, collection, data_source); tag-based lookup returns
+     * the one with the greatest create_time.
+     *
+     * Optional at Create time. If the caller omits `tag`, the server
+     * auto-derives one from the collection_id (falling back to data_source,
+     * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+     * subject to the same immutability guarantee as a caller-supplied one,
+     * so callers who care about the exact tag value should provide it
+     * explicitly rather than relying on the server default.
+     *
+     * Agent Designer resolves connectors via (data_source, tag) when set,
+     * falling back to the legacy resource-name lookup when unset, so
+     * connectors created before the tag-write launch continue to work
+     * without a backfill.
+     * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for tag. + */ + public com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. User-facing, version-independent label for this
+     * connector. May be shared by multiple connectors under the same
+     * (project, location, collection, data_source); tag-based lookup returns
+     * the one with the greatest create_time.
+     *
+     * Optional at Create time. If the caller omits `tag`, the server
+     * auto-derives one from the collection_id (falling back to data_source,
+     * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+     * subject to the same immutability guarantee as a caller-supplied one,
+     * so callers who care about the exact tag value should provide it
+     * explicitly rather than relying on the server default.
+     *
+     * Agent Designer resolves connectors via (data_source, tag) when set,
+     * falling back to the legacy resource-name lookup when unset, so
+     * connectors created before the tag-write launch continue to work
+     * without a backfill.
+     * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The tag to set. + * @return This builder for chaining. + */ + public Builder setTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tag_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. User-facing, version-independent label for this
+     * connector. May be shared by multiple connectors under the same
+     * (project, location, collection, data_source); tag-based lookup returns
+     * the one with the greatest create_time.
+     *
+     * Optional at Create time. If the caller omits `tag`, the server
+     * auto-derives one from the collection_id (falling back to data_source,
+     * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+     * subject to the same immutability guarantee as a caller-supplied one,
+     * so callers who care about the exact tag value should provide it
+     * explicitly rather than relying on the server default.
+     *
+     * Agent Designer resolves connectors via (data_source, tag) when set,
+     * falling back to the legacy resource-name lookup when unset, so
+     * connectors created before the tag-write launch continue to work
+     * without a backfill.
+     * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearTag() { + tag_ = getDefaultInstance().getTag(); + bitField1_ = (bitField1_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. User-facing, version-independent label for this
+     * connector. May be shared by multiple connectors under the same
+     * (project, location, collection, data_source); tag-based lookup returns
+     * the one with the greatest create_time.
+     *
+     * Optional at Create time. If the caller omits `tag`, the server
+     * auto-derives one from the collection_id (falling back to data_source,
+     * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+     * subject to the same immutability guarantee as a caller-supplied one,
+     * so callers who care about the exact tag value should provide it
+     * explicitly rather than relying on the server default.
+     *
+     * Agent Designer resolves connectors via (data_source, tag) when set,
+     * falling back to the legacy resource-name lookup when unset, so
+     * connectors created before the tag-write launch continue to work
+     * without a backfill.
+     * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for tag to set. + * @return This builder for chaining. + */ + public Builder setTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField1_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadata( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadata( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder + builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetadata( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField1_ & 0x00004000) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField1_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetadata() { + bitField1_ = (bitField1_ & ~0x00004000); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder + getMetadataBuilder() { + bitField1_ |= 0x00004000; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder + getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
+     * Optional. User-facing metadata for the connector. Populated from the
+     * connector's generated metadata / registry `ConnectorSource`.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataConnector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataConnector) + private static final com.google.cloud.discoveryengine.v1.DataConnector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataConnector(); + } + + public static com.google.cloud.discoveryengine.v1.DataConnector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataConnector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorName.java new file mode 100644 index 000000000000..7d33a5a924a3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class DataConnectorName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_COLLECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataConnector"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String collection; + + @Deprecated + protected DataConnectorName() { + project = null; + location = null; + collection = null; + } + + private DataConnectorName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataConnectorName of(String project, String location, String collection) { + return newBuilder().setProject(project).setLocation(location).setCollection(collection).build(); + } + + public static String format(String project, String location, String collection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .build() + .toString(); + } + + public static @Nullable DataConnectorName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_COLLECTION.validatedMatch( + formattedString, "DataConnectorName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("collection")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable DataConnectorName> values) { + List list = new ArrayList<>(values.size()); + for (DataConnectorName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_COLLECTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_COLLECTION.instantiate( + "project", project, "location", location, "collection", collection); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataConnectorName that = ((DataConnectorName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** Builder for projects/{project}/locations/{location}/collections/{collection}/dataConnector. */ + public static class Builder { + private String project; + private String location; + private String collection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCollection(String collection) { + this.collection = collection; + return this; + } + + private Builder(DataConnectorName dataConnectorName) { + this.project = dataConnectorName.project; + this.location = dataConnectorName.location; + this.collection = dataConnectorName.collection; + } + + public DataConnectorName build() { + return new DataConnectorName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorOrBuilder.java new file mode 100644 index 000000000000..8c9824570535 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorOrBuilder.java @@ -0,0 +1,2114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DataConnectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataConnector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required data connector parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return Whether the params field is set. + */ + boolean hasParams(); + + /** + * + * + *
+   * Required data connector parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct params = 4; + * + * @return The params. + */ + com.google.protobuf.Struct getParams(); + + /** + * + * + *
+   * Required data connector parameters in structured json format.
+   * 
+ * + * .google.protobuf.Struct params = 4; + */ + com.google.protobuf.StructOrBuilder getParamsOrBuilder(); + + /** + * + * + *
+   * Required data connector parameters in json string format.
+   * 
+ * + * string json_params = 43; + * + * @return Whether the jsonParams field is set. + */ + boolean hasJsonParams(); + + /** + * + * + *
+   * Required data connector parameters in json string format.
+   * 
+ * + * string json_params = 43; + * + * @return The jsonParams. + */ + java.lang.String getJsonParams(); + + /** + * + * + *
+   * Required data connector parameters in json string format.
+   * 
+ * + * string json_params = 43; + * + * @return The bytes for jsonParams. + */ + com.google.protobuf.ByteString getJsonParamsBytes(); + + /** + * + * + *
+   * Identifier. The full resource name of the Data Connector.
+   * Format:
+   * `projects/*/locations/*/collections/*/dataConnector`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The full resource name of the Data Connector.
+   * Format:
+   * `projects/*/locations/*/collections/*/dataConnector`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. State of the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. State of the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1.DataConnector.State getState(); + + /** + * + * + *
+   * Required. The identifier for the data source.
+   * For the full, up-to-date list of supported connectors and their values,
+   * see
+   * [Connect a third-party data
+   * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+   * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataSource. + */ + java.lang.String getDataSource(); + + /** + * + * + *
+   * Required. The identifier for the data source.
+   * For the full, up-to-date list of supported connectors and their values,
+   * see
+   * [Connect a third-party data
+   * source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
+   * 
+ * + * string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataSource. + */ + com.google.protobuf.ByteString getDataSourceBytes(); + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the removeParamKeys. + */ + java.util.List getRemoveParamKeysList(); + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of removeParamKeys. + */ + int getRemoveParamKeysCount(); + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The removeParamKeys at the given index. + */ + java.lang.String getRemoveParamKeys(int index); + + /** + * + * + *
+   * Optional. Specifies keys to be removed from the 'params' field.
+   * This is only active when 'params' is included in the 'update_mask'
+   * in an UpdateDataConnectorRequest.
+   * Deletion takes precedence if a key is both in 'remove_param_keys'
+   * and present in the 'params' field of the request.
+   * 
+ * + * repeated string remove_param_keys = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the removeParamKeys at the given index. + */ + com.google.protobuf.ByteString getRemoveParamKeysBytes(int index); + + /** + * + * + *
+   * Required. The refresh interval for data sync. If duration is set to 0, the
+   * data will be synced in real time. The streaming feature is not supported
+   * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+   * interval is set to the same value as the incremental refresh interval,
+   * incremental sync will be disabled.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the refreshInterval field is set. + */ + boolean hasRefreshInterval(); + + /** + * + * + *
+   * Required. The refresh interval for data sync. If duration is set to 0, the
+   * data will be synced in real time. The streaming feature is not supported
+   * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+   * interval is set to the same value as the incremental refresh interval,
+   * incremental sync will be disabled.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The refreshInterval. + */ + com.google.protobuf.Duration getRefreshInterval(); + + /** + * + * + *
+   * Required. The refresh interval for data sync. If duration is set to 0, the
+   * data will be synced in real time. The streaming feature is not supported
+   * yet. The minimum is 30 minutes and maximum is 7 days. When the refresh
+   * interval is set to the same value as the incremental refresh interval,
+   * incremental sync will be disabled.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder(); + + /** + * + * + *
+   * Defines the scheduled time for the next data synchronization. This field
+   * requires hour , minute, and time_zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+   * utilized when the data connector has a refresh interval greater than 1 day.
+   * When the hours or minutes are not specified, we will assume a sync time of
+   * 0:00. The user must provide a time zone to avoid ambiguity.
+   * 
+ * + * .google.type.DateTime next_sync_time = 22; + * + * @return Whether the nextSyncTime field is set. + */ + boolean hasNextSyncTime(); + + /** + * + * + *
+   * Defines the scheduled time for the next data synchronization. This field
+   * requires hour , minute, and time_zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+   * utilized when the data connector has a refresh interval greater than 1 day.
+   * When the hours or minutes are not specified, we will assume a sync time of
+   * 0:00. The user must provide a time zone to avoid ambiguity.
+   * 
+ * + * .google.type.DateTime next_sync_time = 22; + * + * @return The nextSyncTime. + */ + com.google.type.DateTime getNextSyncTime(); + + /** + * + * + *
+   * Defines the scheduled time for the next data synchronization. This field
+   * requires hour , minute, and time_zone from the
+   * [IANA Time Zone Database](https://www.iana.org/time-zones). This is
+   * utilized when the data connector has a refresh interval greater than 1 day.
+   * When the hours or minutes are not specified, we will assume a sync time of
+   * 0:00. The user must provide a time zone to avoid ambiguity.
+   * 
+ * + * .google.type.DateTime next_sync_time = 22; + */ + com.google.type.DateTimeOrBuilder getNextSyncTimeOrBuilder(); + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + java.util.List getEntitiesList(); + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntity getEntities(int index); + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + int getEntitiesCount(); + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + java.util.List + getEntitiesOrBuilderList(); + + /** + * + * + *
+   * List of entities from the connected data source to ingest.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.DataConnector.SourceEntity entities = 6; + */ + com.google.cloud.discoveryengine.v1.DataConnector.SourceEntityOrBuilder getEntitiesOrBuilder( + int index); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+   * at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+   * at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created
+   * at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The most recent timestamp when this
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+   * affecting all functionalities such as data synchronization.
+   * Pausing a connector has the following effects:
+   *
+   * - All functionalities, including data synchronization, are halted.
+   * - Any ongoing data synchronization job will be canceled.
+   * - No future data synchronization runs will be scheduled nor can be
+   * triggered.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the latestPauseTime field is set. + */ + boolean hasLatestPauseTime(); + + /** + * + * + *
+   * Output only. The most recent timestamp when this
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+   * affecting all functionalities such as data synchronization.
+   * Pausing a connector has the following effects:
+   *
+   * - All functionalities, including data synchronization, are halted.
+   * - Any ongoing data synchronization job will be canceled.
+   * - No future data synchronization runs will be scheduled nor can be
+   * triggered.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The latestPauseTime. + */ + com.google.protobuf.Timestamp getLatestPauseTime(); + + /** + * + * + *
+   * Output only. The most recent timestamp when this
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused,
+   * affecting all functionalities such as data synchronization.
+   * Pausing a connector has the following effects:
+   *
+   * - All functionalities, including data synchronization, are halted.
+   * - Any ongoing data synchronization job will be canceled.
+   * - No future data synchronization runs will be scheduled nor can be
+   * triggered.
+   * 
+ * + * + * .google.protobuf.Timestamp latest_pause_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestPauseTimeOrBuilder(); + + /** + * + * + *
+   * Output only. For periodic connectors only, the last time a data sync was
+   * completed.
+   * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastSyncTime field is set. + */ + boolean hasLastSyncTime(); + + /** + * + * + *
+   * Output only. For periodic connectors only, the last time a data sync was
+   * completed.
+   * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastSyncTime. + */ + com.google.protobuf.Timestamp getLastSyncTime(); + + /** + * + * + *
+   * Output only. For periodic connectors only, the last time a data sync was
+   * completed.
+   * 
+ * + * + * .google.protobuf.Timestamp last_sync_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getErrors(int index); + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsOrBuilderList(); + + /** + * + * + *
+   * Output only. The errors from initialization or from the latest connector
+   * run.
+   * 
+ * + * repeated .google.rpc.Status errors = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
+   * The data synchronization mode supported by the data connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return The enum numeric value on the wire for syncMode. + */ + int getSyncModeValue(); + + /** + * + * + *
+   * The data synchronization mode supported by the data connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.DataConnector.SyncMode sync_mode = 9; + * + * @return The syncMode. + */ + com.google.cloud.discoveryengine.v1.DataConnector.SyncMode getSyncMode(); + + /** + * + * + *
+   * Input only. The KMS key to be used to protect the DataStores managed by
+   * this connector.
+   *
+   * Must be set for requests that need to comply with CMEK Org Policy
+   * protections.
+   *
+   * If this field is set and processed successfully, the DataStores created by
+   * this connector will be protected by the KMS key.
+   * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Input only. The KMS key to be used to protect the DataStores managed by
+   * this connector.
+   *
+   * Must be set for requests that need to comply with CMEK Org Policy
+   * protections.
+   *
+   * If this field is set and processed successfully, the DataStores created by
+   * this connector will be protected by the KMS key.
+   * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getDestinationConfigsList(); + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DestinationConfig getDestinationConfigs(int index); + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDestinationConfigsCount(); + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationConfigsOrBuilderList(); + + /** + * + * + *
+   * Optional. Any target destinations used to connect to third-party services.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig destination_configs = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder getDestinationConfigsOrBuilder( + int index); + + /** + * + * + *
+   * Output only. State of the action connector. This reflects whether the
+   * action connector is initializing, active or has encountered errors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for actionState. + */ + int getActionStateValue(); + + /** + * + * + *
+   * Output only. State of the action connector. This reflects whether the
+   * action connector is initializing, active or has encountered errors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State action_state = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionState. + */ + com.google.cloud.discoveryengine.v1.DataConnector.State getActionState(); + + /** + * + * + *
+   * Optional. Action configurations to make the connector support actions.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the actionConfig field is set. + */ + boolean hasActionConfig(); + + /** + * + * + *
+   * Optional. Action configurations to make the connector support actions.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionConfig. + */ + com.google.cloud.discoveryengine.v1.ActionConfig getActionConfig(); + + /** + * + * + *
+   * Optional. Action configurations to make the connector support actions.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ActionConfig action_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.ActionConfigOrBuilder getActionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserConfig field is set. + */ + boolean hasEndUserConfig(); + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserConfig. + */ + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfig getEndUserConfig(); + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for EUA connectors.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.EndUserConfig end_user_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnector.EndUserConfigOrBuilder + getEndUserConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for hybrid
+   * connectors supporting FEDERATED mode. This field should only be set if the
+   * connector is a hybrid connector and we want to enable FEDERATED mode.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedConfig field is set. + */ + boolean hasFederatedConfig(); + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for hybrid
+   * connectors supporting FEDERATED mode. This field should only be set if the
+   * connector is a hybrid connector and we want to enable FEDERATED mode.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedConfig. + */ + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfig getFederatedConfig(); + + /** + * + * + *
+   * Optional. Any params and credentials used specifically for hybrid
+   * connectors supporting FEDERATED mode. This field should only be set if the
+   * connector is a hybrid connector and we want to enable FEDERATED mode.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.FederatedConfig federated_config = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnector.FederatedConfigOrBuilder + getFederatedConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the connectorModes. + */ + java.util.List + getConnectorModesList(); + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of connectorModes. + */ + int getConnectorModesCount(); + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The connectorModes at the given index. + */ + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMode getConnectorModes(int index); + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for connectorModes. + */ + java.util.List getConnectorModesValueList(); + + /** + * + * + *
+   * Optional. The modes enabled for this connector. Default state is
+   * CONNECTOR_MODE_UNSPECIFIED.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.ConnectorMode connector_modes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of connectorModes at the given index. + */ + int getConnectorModesValue(int index); + + /** + * + * + *
+   * Optional. Whether customer has enabled static IP addresses for this
+   * connector.
+   * 
+ * + * bool static_ip_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The staticIpEnabled. + */ + boolean getStaticIpEnabled(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the staticIpAddresses. + */ + java.util.List getStaticIpAddressesList(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of staticIpAddresses. + */ + int getStaticIpAddressesCount(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The staticIpAddresses at the given index. + */ + java.lang.String getStaticIpAddresses(int index); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector.
+   * 
+ * + * repeated string static_ip_addresses = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the staticIpAddresses at the given index. + */ + com.google.protobuf.ByteString getStaticIpAddressesBytes(int index); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the oauthStaticIpAddresses. + */ + java.util.List getOauthStaticIpAddressesList(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of oauthStaticIpAddresses. + */ + int getOauthStaticIpAddressesCount(); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The oauthStaticIpAddresses at the given index. + */ + java.lang.String getOauthStaticIpAddresses(int index); + + /** + * + * + *
+   * Output only. The static IP addresses used by this connector for OAuth APIs
+   * (e.g. end user authentication). These are surfaced separately from
+   * `static_ip_addresses` so that customers can apply granular firewall
+   * settings for OAuth endpoints. Only populated for connectors that have
+   * static IP enabled and are used for actions and/or federated search.
+   * 
+ * + * + * repeated string oauth_static_ip_addresses = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the oauthStaticIpAddresses at the given index. + */ + com.google.protobuf.ByteString getOauthStaticIpAddressesBytes(int index); + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blockingReasons. + */ + java.util.List + getBlockingReasonsList(); + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blockingReasons. + */ + int getBlockingReasonsCount(); + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blockingReasons at the given index. + */ + com.google.cloud.discoveryengine.v1.DataConnector.BlockingReason getBlockingReasons(int index); + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for blockingReasons. + */ + java.util.List getBlockingReasonsValueList(); + + /** + * + * + *
+   * Output only. User actions that must be completed before the connector can
+   * start syncing data.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DataConnector.BlockingReason blocking_reasons = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of blockingReasons at the given index. + */ + int getBlockingReasonsValue(int index); + + /** + * + * + *
+   * The configuration for the identity data synchronization runs. This contains
+   * the refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + * + * @return Whether the identityScheduleConfig field is set. + */ + boolean hasIdentityScheduleConfig(); + + /** + * + * + *
+   * The configuration for the identity data synchronization runs. This contains
+   * the refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + * + * @return The identityScheduleConfig. + */ + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig getIdentityScheduleConfig(); + + /** + * + * + *
+   * The configuration for the identity data synchronization runs. This contains
+   * the refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdentityScheduleConfig identity_schedule_config = 23; + * + */ + com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder + getIdentityScheduleConfigOrBuilder(); + + /** + * + * + *
+   * Output only. The tenant project ID associated with private connectivity
+   * connectors. This project must be allowlisted by in order for the connector
+   * to function.
+   * 
+ * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateConnectivityProjectId. + */ + java.lang.String getPrivateConnectivityProjectId(); + + /** + * + * + *
+   * Output only. The tenant project ID associated with private connectivity
+   * connectors. This project must be allowlisted by in order for the connector
+   * to function.
+   * 
+ * + * string private_connectivity_project_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for privateConnectivityProjectId. + */ + com.google.protobuf.ByteString getPrivateConnectivityProjectIdBytes(); + + /** + * + * + *
+   * Optional. The configuration for establishing a BAP connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bapConfig field is set. + */ + boolean hasBapConfig(); + + /** + * + * + *
+   * Optional. The configuration for establishing a BAP connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bapConfig. + */ + com.google.cloud.discoveryengine.v1.BAPConfig getBapConfig(); + + /** + * + * + *
+   * Optional. The configuration for establishing a BAP connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.BAPConfig bap_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.BAPConfigOrBuilder getBapConfigOrBuilder(); + + /** + * + * + *
+   * Output only. The type of connector. Each source can only map to one type.
+   * For example, salesforce, confluence and jira have THIRD_PARTY connector
+   * type. It is not mutable once set by system.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectorType. + */ + int getConnectorTypeValue(); + + /** + * + * + *
+   * Output only. The type of connector. Each source can only map to one type.
+   * For example, salesforce, confluence and jira have THIRD_PARTY connector
+   * type. It is not mutable once set by system.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ConnectorType connector_type = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorType. + */ + com.google.cloud.discoveryengine.v1.ConnectorType getConnectorType(); + + /** + * + * + *
+   * Output only. real-time sync state
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for realtimeState. + */ + int getRealtimeStateValue(); + + /** + * + * + *
+   * Output only. real-time sync state
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.State realtime_state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The realtimeState. + */ + com.google.cloud.discoveryengine.v1.DataConnector.State getRealtimeState(); + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAlertPolicyConfigsList(); + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AlertPolicyConfig getAlertPolicyConfigs(int index); + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAlertPolicyConfigsCount(); + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAlertPolicyConfigsOrBuilderList(); + + /** + * + * + *
+   * Optional. The connector level alert config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.AlertPolicyConfig alert_policy_configs = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AlertPolicyConfigOrBuilder getAlertPolicyConfigsOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The configuration for realtime sync.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the realtimeSyncConfig field is set. + */ + boolean hasRealtimeSyncConfig(); + + /** + * + * + *
+   * Optional. The configuration for realtime sync.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The realtimeSyncConfig. + */ + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig getRealtimeSyncConfig(); + + /** + * + * + *
+   * Optional. The configuration for realtime sync.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfig realtime_sync_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnector.RealtimeSyncConfigOrBuilder + getRealtimeSyncConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the connector will be created with an ACL config.
+   * Currently this field only affects Cloud Storage and BigQuery connectors.
+   * 
+ * + * bool acl_enabled = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The aclEnabled. + */ + boolean getAclEnabled(); + + /** + * + * + *
+   * Optional. Whether the END USER AUTHENTICATION connector is created in SaaS.
+   * 
+ * + * bool create_eua_saas = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The createEuaSaas. + */ + boolean getCreateEuaSaas(); + + /** + * + * + *
+   * Optional. Indicates whether the connector is disabled for auto run. It can
+   * be used to pause periodical and real time sync. Update: with the
+   * introduction of incremental_sync_disabled, auto_run_disabled is used to
+   * pause/disable only full syncs
+   * 
+ * + * bool auto_run_disabled = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRunDisabled. + */ + boolean getAutoRunDisabled(); + + /** + * + * + *
+   * Optional. Indicates whether incremental syncs are paused for this
+   * connector. This is independent of auto_run_disabled. Applicable to only 3P
+   * connectors. When the refresh interval is set to the same value as the
+   * incremental refresh interval, incremental sync will be disabled, i.e. set
+   * to true.
+   * 
+ * + * bool incremental_sync_disabled = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The incrementalSyncDisabled. + */ + boolean getIncrementalSyncDisabled(); + + /** + * + * + *
+   * Optional. The refresh interval specifically for incremental data syncs. If
+   * unset, incremental syncs will use the default from env, set to 3hrs. The
+   * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+   * connectors. When the refresh interval is
+   * set to the same value as the incremental refresh interval, incremental
+   * sync will be disabled.
+   * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the incrementalRefreshInterval field is set. + */ + boolean hasIncrementalRefreshInterval(); + + /** + * + * + *
+   * Optional. The refresh interval specifically for incremental data syncs. If
+   * unset, incremental syncs will use the default from env, set to 3hrs. The
+   * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+   * connectors. When the refresh interval is
+   * set to the same value as the incremental refresh interval, incremental
+   * sync will be disabled.
+   * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The incrementalRefreshInterval. + */ + com.google.protobuf.Duration getIncrementalRefreshInterval(); + + /** + * + * + *
+   * Optional. The refresh interval specifically for incremental data syncs. If
+   * unset, incremental syncs will use the default from env, set to 3hrs. The
+   * minimum is 30 minutes and maximum is 7 days. Applicable to only 3P
+   * connectors. When the refresh interval is
+   * set to the same value as the incremental refresh interval, incremental
+   * sync will be disabled.
+   * 
+ * + * + * .google.protobuf.Duration incremental_refresh_interval = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getIncrementalRefreshIntervalOrBuilder(); + + /** + * + * + *
+   * Optional. If the connector is a hybrid connector, determines whether
+   * ingestion is enabled and appropriate resources are provisioned during
+   * connector creation. If the connector is not a hybrid connector, this field
+   * is ignored.
+   * 
+ * + * bool hybrid_ingestion_disabled = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hybridIngestionDisabled. + */ + boolean getHybridIngestionDisabled(); + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + boolean hasDataProtectionPolicy(); + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy(); + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the connector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder(); + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the egressFqdns. + */ + java.util.List getEgressFqdnsList(); + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of egressFqdns. + */ + int getEgressFqdnsCount(); + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The egressFqdns at the given index. + */ + java.lang.String getEgressFqdns(int index); + + /** + * + * + *
+   * Output only. The list of FQDNs of the data connector can egress to. This
+   * includes both FQDN derived from the customer provided instance URL and
+   * default per connector type FQDNs.
+   * 
+ * + * repeated string egress_fqdns = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the egressFqdns at the given index. + */ + com.google.protobuf.ByteString getEgressFqdnsBytes(int index); + + /** + * + * + *
+   * Output only. Whether the connector is created with VPC-SC enabled.
+   * 
+ * + * bool vpcsc_enabled = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vpcscEnabled. + */ + boolean getVpcscEnabled(); + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDynamicToolsList(); + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.DynamicTool getDynamicTools(int index); + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDynamicToolsCount(); + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDynamicToolsOrBuilderList(); + + /** + * + * + *
+   * Output only. The dynamic tools fetched for this connector.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DynamicTool dynamic_tools = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder getDynamicToolsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The configuration for establishing a CLI connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cliConfig field is set. + */ + boolean hasCliConfig(); + + /** + * + * + *
+   * Optional. The configuration for establishing a CLI connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cliConfig. + */ + com.google.cloud.discoveryengine.v1.CliConfig getCliConfig(); + + /** + * + * + *
+   * Optional. The configuration for establishing a CLI connection.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CliConfig cli_config = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.CliConfigOrBuilder getCliConfigOrBuilder(); + + /** + * + * + *
+   * Optional. If set, this value instead of `data_source` is used to fetch the
+   * corresponding connector source.
+   * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The connectorSourceId. + */ + java.lang.String getConnectorSourceId(); + + /** + * + * + *
+   * Optional. If set, this value instead of `data_source` is used to fetch the
+   * corresponding connector source.
+   * 
+ * + * string connector_source_id = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for connectorSourceId. + */ + com.google.protobuf.ByteString getConnectorSourceIdBytes(); + + /** + * + * + *
+   * Optional. Immutable. User-facing, version-independent label for this
+   * connector. May be shared by multiple connectors under the same
+   * (project, location, collection, data_source); tag-based lookup returns
+   * the one with the greatest create_time.
+   *
+   * Optional at Create time. If the caller omits `tag`, the server
+   * auto-derives one from the collection_id (falling back to data_source,
+   * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+   * subject to the same immutability guarantee as a caller-supplied one,
+   * so callers who care about the exact tag value should provide it
+   * explicitly rather than relying on the server default.
+   *
+   * Agent Designer resolves connectors via (data_source, tag) when set,
+   * falling back to the legacy resource-name lookup when unset, so
+   * connectors created before the tag-write launch continue to work
+   * without a backfill.
+   * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The tag. + */ + java.lang.String getTag(); + + /** + * + * + *
+   * Optional. Immutable. User-facing, version-independent label for this
+   * connector. May be shared by multiple connectors under the same
+   * (project, location, collection, data_source); tag-based lookup returns
+   * the one with the greatest create_time.
+   *
+   * Optional at Create time. If the caller omits `tag`, the server
+   * auto-derives one from the collection_id (falling back to data_source,
+   * else a time-based `t-<micros>` sentinel). The auto-derived tag is
+   * subject to the same immutability guarantee as a caller-supplied one,
+   * so callers who care about the exact tag value should provide it
+   * explicitly rather than relying on the server default.
+   *
+   * Agent Designer resolves connectors via (data_source, tag) when set,
+   * falling back to the legacy resource-name lookup when unset, so
+   * connectors created before the tag-write launch continue to work
+   * without a backfill.
+   * 
+ * + * + * string tag = 51 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for tag. + */ + com.google.protobuf.ByteString getTagBytes(); + + /** + * + * + *
+   * Optional. User-facing metadata for the connector. Populated from the
+   * connector's generated metadata / registry `ConnectorSource`.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+   * Optional. User-facing metadata for the connector. Populated from the
+   * connector's generated metadata / registry `ConnectorSource`.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata getMetadata(); + + /** + * + * + *
+   * Optional. User-facing metadata for the connector. Populated from the
+   * connector's generated metadata / registry `ConnectorSource`.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder + getMetadataOrBuilder(); + + com.google.cloud.discoveryengine.v1.DataConnector.DataConnectorParamsCase + getDataConnectorParamsCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorProto.java new file mode 100644 index 000000000000..c272c4405b62 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorProto.java @@ -0,0 +1,667 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class DataConnectorProto extends com.google.protobuf.GeneratedFile { + private DataConnectorProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataConnectorProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_KeyPropertyMappingsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_KeyPropertyMappingsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ActionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ActionConfig_UserDefinedScopesMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ActionConfig_UserDefinedScopesMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_BAPConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CliConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CliConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Tenant_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Tenant_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DynamicTool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DynamicTool_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" + + "4google/cloud/discoveryengine/v1/data_connector.proto\022\037google.cloud.discoveryen" + + "gine.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032,google/clou" + + "d/discoveryengine/v1/common.proto\032,google/cloud/discoveryengine/v1/schema.proto\032" + + "\036google/protobuf/duration.proto\032\034google/" + + "protobuf/struct.proto\032\037google/protobuf/t" + + "imestamp.proto\032\027google/rpc/status.proto\032\032google/type/datetime.proto\"\273\'\n\r" + + "DataConnector\022)\n" + + "\006params\030\004 \001(\0132\027.google.protobuf.StructH\000\022\025\n" + + "\013json_params\030+ \001(\tH\000\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022I\n" + + "\005state\030\002 \001(\01624.google.clou" + + "d.discoveryengine.v1.DataConnector.StateB\004\342A\001\003\022\031\n" + + "\013data_source\030\003 \001(\tB\004\342A\001\002\022\037\n" + + "\021remove_param_keys\030& \003(\tB\004\342A\001\001\0229\n" + + "\020refresh_interval\030\005" + + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\002\022-\n" + + "\016next_sync_time\030\026 \001(\0132\025.google.type.DateTime\022M\n" + + "\010entities\030\006 \003(\0132;.google." + + "cloud.discoveryengine.v1.DataConnector.SourceEntity\0225\n" + + "\013create_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022;\n" + + "\021latest_pause_time\030\022" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0228\n" + + "\016last_sync_time\030\023" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\024" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022(\n" + + "\006errors\030\010 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022J\n" + + "\tsync_mode\030\t \001(\01627.google.cloud.dis" + + "coveryengine.v1.DataConnector.SyncMode\022\032\n" + + "\014kms_key_name\030 \001(\tB\004\342A\001\004\022U\n" + + "\023destination_configs\030\014" + + " \003(\01322.google.cloud.discoveryengine.v1.DestinationConfigB\004\342A\001\001\022P\n" + + "\014action_state\030%" + + " \001(\01624.google.cloud.discoveryengine.v1.DataConnector.StateB\004\342A\001\003\022J\n\r" + + "action_config\030\r" + + " \001(\0132-.google.cloud.discoveryengine.v1.ActionConfigB\004\342A\001\001\022[\n" + + "\017end_user_config\030\036 \001(\0132<.google.cloud.discover" + + "yengine.v1.DataConnector.EndUserConfigB\004\342A\001\001\022^\n" + + "\020federated_config\030) \001(\0132>.google." + + "cloud.discoveryengine.v1.DataConnector.FederatedConfigB\004\342A\001\001\022[\n" + + "\017connector_modes\030\037" + + " \003(\0162<.google.cloud.discoveryengine.v1.DataConnector.ConnectorModeB\004\342A\001\001\022\037\n" + + "\021static_ip_enabled\030\017 \001(\010B\004\342A\001\001\022!\n" + + "\023static_ip_addresses\030\016 \003(\tB\004\342A\001\003\022\'\n" + + "\031oauth_static_ip_addresses\0302 \003(\tB\004\342A\001\003\022]\n" + + "\020blocking_reasons\030\020" + + " \003(\0162=.google.cloud.discoveryengine.v1.DataConnector.BlockingReasonB\004\342A\001\003\022Y\n" + + "\030identity_schedule_config\030\027 \001(\01327.google" + + ".cloud.discoveryengine.v1.IdentityScheduleConfig\022-\n" + + "\037private_connectivity_project_id\030\021 \001(\tB\004\342A\001\003\022D\n\n" + + "bap_config\030\030 \001(\0132*.go" + + "ogle.cloud.discoveryengine.v1.BAPConfigB\004\342A\001\001\022L\n" + + "\016connector_type\030\031 \001(\0162..google.c" + + "loud.discoveryengine.v1.ConnectorTypeB\004\342A\001\003\022R\n" + + "\016realtime_state\030\032 \001(\01624.google.clo" + + "ud.discoveryengine.v1.DataConnector.StateB\004\342A\001\003\022V\n" + + "\024alert_policy_configs\030\034 \003(\01322." + + "google.cloud.discoveryengine.v1.AlertPolicyConfigB\004\342A\001\001\022e\n" + + "\024realtime_sync_config\030\035 \001(\0132A.google.cloud.discoveryengine.v1." + + "DataConnector.RealtimeSyncConfigB\004\342A\001\001\022\031\n" + + "\013acl_enabled\030! \001(\010B\004\342A\001\001\022\035\n" + + "\017create_eua_saas\030\" \001(\010B\004\342A\001\001\022\037\n" + + "\021auto_run_disabled\030\n" + + " \001(\010B\004\342A\001\001\022\'\n" + + "\031incremental_sync_disabled\030# \001(\010B\004\342A\001\001\022E\n" + + "\034incremental_refresh_interval\030$" + + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022\'\n" + + "\031hybrid_ingestion_disabled\030( \001(\010B\004\342A\001\001\022[\n" + + "\026data_protection_policy\030, \001(\01325.goo" + + "gle.cloud.discoveryengine.v1.DataProtectionPolicyB\004\342A\001\001\022\032\n" + + "\014egress_fqdns\030- \003(\tB\004\342A\001\003\022\033\n\r" + + "vpcsc_enabled\030. \001(\010B\004\342A\001\003\022I\n\r" + + "dynamic_tools\030/" + + " \003(\0132,.google.cloud.discoveryengine.v1.DynamicToolB\004\342A\001\003\022D\n\n" + + "cli_config\0300" + + " \001(\0132*.google.cloud.discoveryengine.v1.CliConfigB\004\342A\001\001\022!\n" + + "\023connector_source_id\0301 \001(\tB\004\342A\001\001\022\022\n" + + "\003tag\0303 \001(\tB\005\342A\002\001\005\022X\n" + + "\010metadata\0304 \001(\0132@.google.cloud.discoveryengin" + + "e.v1.DataConnector.ConnectorMetadataB\004\342A\001\001\032\223\004\n" + + "\014SourceEntity\022)\n" + + "\006params\030\004 \001(\0132\027.google.protobuf.StructH\000\022\025\n" + + "\013json_params\030\n" + + " \001(\tH\000\022\023\n" + + "\013entity_name\030\001 \001(\t\022s\n" + + "\025key_property_mappings\030\002 \003(\0132T.google.cloud.discove" + + "ryengine.v1.DataConnector.SourceEntity.KeyPropertyMappingsEntry\022E\n\n" + + "data_store\030\003 \001(\tB1\342A\001\003\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022F\n" + + "\017starting_schema\030\006 \001(\0132" + + "\'.google.cloud.discoveryengine.v1.SchemaB\004\342A\001\001\022[\n" + + "\026healthcare_fhir_config\030\007 \001(\01325" + + ".google.cloud.discoveryengine.v1.HealthcareFhirConfigB\004\342A\001\001\032:\n" + + "\030KeyPropertyMappingsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\017\n\r" + + "entity_params\032\357\001\n\r" + + "EndUserConfig\0224\n" + + "\013auth_params\030\001" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001H\000\022 \n" + + "\020json_auth_params\030\004 \001(\tB\004\342A\001\001H\000\0228\n" + + "\021additional_params\030\002" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022=\n" + + "\006tenant\030\003 \001(\0132\'.g" + + "oogle.cloud.discoveryengine.v1.TenantB\004\342A\001\001B\r\n" + + "\013auth_config\032\262\001\n" + + "\017FederatedConfig\0224\n" + + "\013auth_params\030\001" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001H\000\022 \n" + + "\020json_auth_params\030\003 \001(\tB\004\342A\001\001H\000\0228\n" + + "\021additional_params\030\002" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\r\n" + + "\013auth_config\032\243\004\n" + + "\022RealtimeSyncConfig\022\031\n" + + "\013webhook_uri\030\001 \001(\tB\004\342A\001\001\022\"\n" + + "\024realtime_sync_secret\030\002 \001(\tB\004\342A\001\001\022o\n" + + "\017streaming_error\030\003 \001(\0132P.google." + + "cloud.discoveryengine.v1.DataConnector.R" + + "ealtimeSyncConfig.StreamingErrorB\004\342A\001\001\032\334\002\n" + + "\016StreamingError\022\213\001\n" + + "\026streaming_error_reason\030\001 \001(\0162e.google.cloud.discoveryengin" + + "e.v1.DataConnector.RealtimeSyncConfig.St" + + "reamingError.StreamingErrorReasonB\004\342A\001\001\022\'\n" + + "\005error\030\002 \001(\0132\022.google.rpc.StatusB\004\342A\001\001\"\222\001\n" + + "\024StreamingErrorReason\022&\n" + + "\"STREAMING_ERROR_REASON_UNSPECIFIED\020\000\022\031\n" + + "\025STREAMING_SETUP_ERROR\020\001\022\030\n" + + "\024STREAMING_SYNC_ERROR\020\002\022\035\n" + + "\031INGRESS_ENDPOINT_REQUIRED\020\003\032\216\001\n" + + "\021ConnectorMetadata\022\023\n" + + "\005title\030\001 \001(\tB\004\342A\001\001\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022\037\n" + + "\021short_description\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006author\030\004 \001(\tB\004\342A\001\001\022\022\n" + + "\004note\030\006 \001(\tB\004\342A\001\001\"\207\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\n\n" + + "\006FAILED\020\003\022\013\n" + + "\007RUNNING\020\004\022\013\n" + + "\007WARNING\020\005\022\031\n" + + "\025INITIALIZATION_FAILED\020\006\022\014\n" + + "\010UPDATING\020\007\"8\n" + + "\010SyncMode\022\014\n" + + "\010PERIODIC\020\000\022\r\n" + + "\tSTREAMING\020\001\022\017\n" + + "\013UNSPECIFIED\020\002\"\177\n\r" + + "ConnectorMode\022\036\n" + + "\032CONNECTOR_MODE_UNSPECIFIED\020\000\022\022\n" + + "\016DATA_INGESTION\020\001\022\013\n" + + "\007ACTIONS\020\002\022\r\n" + + "\tFEDERATED\020\003\022\007\n" + + "\003EUA\020\004\022\025\n" + + "\021FEDERATED_AND_EUA\020\005\"\216\001\n" + + "\016BlockingReason\022\037\n" + + "\033BLOCKING_REASON_UNSPECIFIED\020\000\022\027\n" + + "\023ALLOWLIST_STATIC_IP\020\001\022#\n" + + "\037ALLOWLIST_IN_SERVICE_ATTACHMENT\020\002\022\035\n" + + "\031ALLOWLIST_SERVICE_ACCOUNT\020\003:\201\001\352A~\n" + + ",discoveryengine.googleapis.com/DataConnector\022Nprojects/{project}/loc" + + "ations/{location}/collections/{collection}/dataConnectorB\027\n" + + "\025data_connector_params\"\251\002\n" + + "\021DestinationConfig\022/\n" + + "\006params\030\003" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001H\000\022\025\n" + + "\013json_params\030\004 \001(\tH\000\022\021\n" + + "\003key\030\001 \001(\tB\004\342A\001\001\022Z\n" + + "\014destinations\030\002 \003(\0132>.google.cloud.discover" + + "yengine.v1.DestinationConfig.DestinationB\004\342A\001\001\032@\n" + + "\013Destination\022\016\n" + + "\004host\030\001 \001(\tH\000\022\022\n" + + "\004port\030\002 \001(\005B\004\342A\001\001B\r\n" + + "\013destinationB\033\n" + + "\031destination_config_params\"\312\004\n" + + "\014ActionConfig\0226\n\r" + + "action_params\030\002" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001H\000\022\"\n" + + "\022json_action_params\030\006 \001(\tB\004\342A\001\001H\000\022\"\n" + + "\024is_action_configured\030\001 \001(\010B\004\342A\001\003\022F\n" + + "\014service_name\030\003 \001(\tB0\342A\001\001\372A)\n" + + "\'servicedirectory.googleapis.com/Service\022 \n" + + "\022use_static_secrets\030\004 \001(\010B\004\342A\001\001\022#\n" + + "\025create_bap_connection\030\005 \001(\010B\004\342A\001\001\022v\n" + + "\033user_defined_scopes_mapping\030\n" + + " \003(\0132K.google.clou" + + "d.discoveryengine.v1.ActionConfig.UserDefinedScopesMappingEntryB\004\342A\001\001\032!\n" + + "\tScopeList\022\024\n" + + "\006scopes\030\001 \003(\tB\004\342A\001\001\032x\n" + + "\035UserDefinedScopesMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022F\n" + + "\005value\030\002" + + " \001(\01327.google.cloud.discoveryengine.v1.ActionConfig.ScopeList:\0028\001B\026\n" + + "\024action_config_params\"\210\001\n" + + "\026IdentityScheduleConfig\0229\n" + + "\020refresh_interval\030\001" + + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\0223\n" + + "\016next_sync_time\030\002" + + " \001(\0132\025.google.type.DateTimeB\004\342A\001\001\"\270\003\n" + + "\tBAPConfig\022a\n" + + "\031supported_connector_modes\030\001 \003(\01628" + + ".google.cloud.discoveryengine.v1.BAPConfig.ConnectorModeB\004\342A\001\002\022\035\n" + + "\017enabled_actions\030\002 \003(\tB\004\342A\001\001\022\\\n" + + "\021toolspec_override\030\003 \001(\013" + + "2;.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverrideB\004\342A\001\001\032\\\n" + + "\020ToolspecOverride\022,\n" + + "\005tools\030\001 \003(\0132\027.google.protobuf.StructB\004\342A\001\002\022\032\n" + + "\014base_version\030\002 \001(\tB\004\342A\001\002\"m\n\r" + + "ConnectorMode\022\036\n" + + "\032CONNECTOR_MODE_UNSPECIFIED\020\000\022\022\n" + + "\016DATA_INGESTION\020\001\022\013\n" + + "\007ACTIONS\020\002\022\033\n" + + "\027END_USER_AUTHENTICATION\020\003\"*\n" + + "\tCliConfig\022\035\n" + + "\017enabled_actions\030\001 \003(\tB\004\342A\001\001\"\375\002\n" + + "\021AlertPolicyConfig\022\037\n" + + "\021alert_policy_name\030\001 \001(\tB\004\342A\001\005\022c\n" + + "\021alert_enrollments\030\002 \003(\0132B" + + ".google.cloud.discoveryengine.v1.AlertPolicyConfig.AlertEnrollmentB\004\342A\001\001\032\341\001\n" + + "\017AlertEnrollment\022\026\n" + + "\010alert_id\030\001 \001(\tB\004\342A\001\005\022k\n" + + "\014enroll_state\030\005 \001(\0162O.google.cloud.discov" + + "eryengine.v1.AlertPolicyConfig.AlertEnrollment.EnrollStatesB\004\342A\001\002\"I\n" + + "\014EnrollStates\022\035\n" + + "\031ENROLL_STATES_UNSPECIFIED\020\000\022\014\n" + + "\010ENROLLED\020\001\022\014\n" + + "\010DECLINED\020\002\"7\n" + + "\006Tenant\022\n\n" + + "\002id\030\001 \001(\t\022\013\n" + + "\003uri\030\002 \001(\t\022\024\n" + + "\014display_name\030\003 \001(\t\"o\n" + + "\013DynamicTool\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + + "\013description\030\002 \001(\tB\004\342A\001\001\022\025\n" + + "\007enabled\030\003 \001(\010B\004\342A\001\001\022\032\n" + + "\014display_name\030\004 \001(\tB\004\342A\001\001*\274\002\n\r" + + "ConnectorType\022\036\n" + + "\032CONNECTOR_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013THIRD_PARTY\020\001\022\014\n" + + "\010GCP_FHIR\020\002\022\r\n" + + "\tBIG_QUERY\020\003\022\007\n" + + "\003GCS\020\004\022\017\n" + + "\013GOOGLE_MAIL\020\005\022\023\n" + + "\017GOOGLE_CALENDAR\020\006\022\020\n" + + "\014GOOGLE_DRIVE\020\007\022\031\n" + + "\025NATIVE_CLOUD_IDENTITY\020\010\022\031\n" + + "\025THIRD_PARTY_FEDERATED\020\t\022\023\n" + + "\017THIRD_PARTY_EUA\020\n" + + "\022\010\n" + + "\004GCNV\020\013\022\017\n" + + "\013GOOGLE_CHAT\020\014\022\020\n" + + "\014GOOGLE_SITES\020\r" + + "\022\016\n\n" + + "REMOTE_MCP\020\016\022\024\n" + + "\020GOOGLE_WORKSPACE\020\017B\205\002\n" + + "#com.google.cloud.discoveryengine.v1B\022DataConne" + + "ctorProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discove" + + "ryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cl" + + "oud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Di" + + "scoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.SchemaProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_DataConnector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor, + new java.lang.String[] { + "Params", + "JsonParams", + "Name", + "State", + "DataSource", + "RemoveParamKeys", + "RefreshInterval", + "NextSyncTime", + "Entities", + "CreateTime", + "LatestPauseTime", + "LastSyncTime", + "UpdateTime", + "Errors", + "SyncMode", + "KmsKeyName", + "DestinationConfigs", + "ActionState", + "ActionConfig", + "EndUserConfig", + "FederatedConfig", + "ConnectorModes", + "StaticIpEnabled", + "StaticIpAddresses", + "OauthStaticIpAddresses", + "BlockingReasons", + "IdentityScheduleConfig", + "PrivateConnectivityProjectId", + "BapConfig", + "ConnectorType", + "RealtimeState", + "AlertPolicyConfigs", + "RealtimeSyncConfig", + "AclEnabled", + "CreateEuaSaas", + "AutoRunDisabled", + "IncrementalSyncDisabled", + "IncrementalRefreshInterval", + "HybridIngestionDisabled", + "DataProtectionPolicy", + "EgressFqdns", + "VpcscEnabled", + "DynamicTools", + "CliConfig", + "ConnectorSourceId", + "Tag", + "Metadata", + "DataConnectorParams", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor, + new java.lang.String[] { + "Params", + "JsonParams", + "EntityName", + "KeyPropertyMappings", + "DataStore", + "StartingSchema", + "HealthcareFhirConfig", + "EntityParams", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_KeyPropertyMappingsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_KeyPropertyMappingsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_SourceEntity_KeyPropertyMappingsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_EndUserConfig_descriptor, + new java.lang.String[] { + "AuthParams", "JsonAuthParams", "AdditionalParams", "Tenant", "AuthConfig", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_FederatedConfig_descriptor, + new java.lang.String[] { + "AuthParams", "JsonAuthParams", "AdditionalParams", "AuthConfig", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor, + new java.lang.String[] { + "WebhookUri", "RealtimeSyncSecret", "StreamingError", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_RealtimeSyncConfig_StreamingError_descriptor, + new java.lang.String[] { + "StreamingErrorReason", "Error", + }); + internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataConnector_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataConnector_ConnectorMetadata_descriptor, + new java.lang.String[] { + "Title", "Description", "ShortDescription", "Author", "Note", + }); + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor, + new java.lang.String[] { + "Params", "JsonParams", "Key", "Destinations", "DestinationConfigParams", + }); + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_descriptor = + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor.getNestedType( + 0); + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_descriptor, + new java.lang.String[] { + "Host", "Port", "Destination", + }); + internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1_ActionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor, + new java.lang.String[] { + "ActionParams", + "JsonActionParams", + "IsActionConfigured", + "ServiceName", + "UseStaticSecrets", + "CreateBapConnection", + "UserDefinedScopesMapping", + "ActionConfigParams", + }); + internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_descriptor = + internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ActionConfig_ScopeList_descriptor, + new java.lang.String[] { + "Scopes", + }); + internal_static_google_cloud_discoveryengine_v1_ActionConfig_UserDefinedScopesMappingEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_ActionConfig_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_ActionConfig_UserDefinedScopesMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ActionConfig_UserDefinedScopesMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_descriptor, + new java.lang.String[] { + "RefreshInterval", "NextSyncTime", + }); + internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1_BAPConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor, + new java.lang.String[] { + "SupportedConnectorModes", "EnabledActions", "ToolspecOverride", + }); + internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_descriptor = + internal_static_google_cloud_discoveryengine_v1_BAPConfig_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_BAPConfig_ToolspecOverride_descriptor, + new java.lang.String[] { + "Tools", "BaseVersion", + }); + internal_static_google_cloud_discoveryengine_v1_CliConfig_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1_CliConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CliConfig_descriptor, + new java.lang.String[] { + "EnabledActions", + }); + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor, + new java.lang.String[] { + "AlertPolicyName", "AlertEnrollments", + }); + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_descriptor = + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_descriptor.getNestedType( + 0); + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AlertPolicyConfig_AlertEnrollment_descriptor, + new java.lang.String[] { + "AlertId", "EnrollState", + }); + internal_static_google_cloud_discoveryengine_v1_Tenant_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1_Tenant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Tenant_descriptor, + new java.lang.String[] { + "Id", "Uri", "DisplayName", + }); + internal_static_google_cloud_discoveryengine_v1_DynamicTool_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_discoveryengine_v1_DynamicTool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DynamicTool_descriptor, + new java.lang.String[] { + "Name", "Description", "Enabled", "DisplayName", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.SchemaProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceProto.java new file mode 100644 index 000000000000..61a864982fb6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataConnectorServiceProto.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class DataConnectorServiceProto extends com.google.protobuf.GeneratedFile { + private DataConnectorServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataConnectorServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_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 + * Contains the data protection policy config for a DataStore or a connector. + * + * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataProtectionPolicy} + */ +@com.google.protobuf.Generated +public final class DataProtectionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataProtectionPolicy) + DataProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataProtectionPolicy"); + } + + // Use DataProtectionPolicy.newBuilder() to construct. + private DataProtectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataProtectionPolicy() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder.class); + } + + public interface SensitiveDataProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Specifies the resource name of the Sensitive Data Protection
+     * content policy.
+     * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + java.lang.String getPolicy(); + + /** + * + * + *
+     * Optional. Specifies the resource name of the Sensitive Data Protection
+     * content policy.
+     * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + com.google.protobuf.ByteString getPolicyBytes(); + } + + /** + * + * + *
+   * Specifies a Sensitive Data Protection
+   * (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview)
+   * policy.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy} + */ + public static final class SensitiveDataProtectionPolicy + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy) + SensitiveDataProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SensitiveDataProtectionPolicy"); + } + + // Use SensitiveDataProtectionPolicy.newBuilder() to construct. + private SensitiveDataProtectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SensitiveDataProtectionPolicy() { + policy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .class, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder.class); + } + + public static final int POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object policy_ = ""; + + /** + * + * + *
+     * Optional. Specifies the resource name of the Sensitive Data Protection
+     * content policy.
+     * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + @java.lang.Override + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the resource name of the Sensitive Data Protection
+     * content policy.
+     * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, policy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, policy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy other = + (com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy) + obj; + + 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(); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Specifies a Sensitive Data Protection
+     * (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview)
+     * policy.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy) + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + build() { + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + buildPartial() { + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + result = + new com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy.getDefaultInstance()) return this; + if (!other.getPolicy().isEmpty()) { + policy_ = other.policy_; + 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: + { + policy_ = 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 policy_ = ""; + + /** + * + * + *
+       * Optional. Specifies the resource name of the Sensitive Data Protection
+       * content policy.
+       * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the resource name of the Sensitive Data Protection
+       * content policy.
+       * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the resource name of the Sensitive Data Protection
+       * content policy.
+       * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the resource name of the Sensitive Data Protection
+       * content policy.
+       * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + policy_ = getDefaultInstance().getPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the resource name of the Sensitive Data Protection
+       * content policy.
+       * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy) + private static final com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy(); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SensitiveDataProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SENSITIVE_DATA_PROTECTION_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + sensitiveDataProtectionPolicy_; + + /** + * + * + *
+   * Optional. Specifies the sensitive data protection policy for the connector
+   * source.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasSensitiveDataProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the sensitive data protection policy for the connector
+   * source.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + + /** + * + * + *
+   * Optional. Specifies the sensitive data protection policy for the connector
+   * source.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder() { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + + 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, getSensitiveDataProtectionPolicy()); + } + 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, getSensitiveDataProtectionPolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataProtectionPolicy other = + (com.google.cloud.discoveryengine.v1.DataProtectionPolicy) obj; + + if (hasSensitiveDataProtectionPolicy() != other.hasSensitiveDataProtectionPolicy()) + return false; + if (hasSensitiveDataProtectionPolicy()) { + if (!getSensitiveDataProtectionPolicy().equals(other.getSensitiveDataProtectionPolicy())) + 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 (hasSensitiveDataProtectionPolicy()) { + hash = (37 * hash) + SENSITIVE_DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getSensitiveDataProtectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Contains the data protection policy config for a DataStore or a connector.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataProtectionPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataProtectionPolicy) + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DataProtectionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSensitiveDataProtectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sensitiveDataProtectionPolicy_ = null; + if (sensitiveDataProtectionPolicyBuilder_ != null) { + sensitiveDataProtectionPolicyBuilder_.dispose(); + sensitiveDataProtectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy build() { + com.google.cloud.discoveryengine.v1.DataProtectionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy buildPartial() { + com.google.cloud.discoveryengine.v1.DataProtectionPolicy result = + new com.google.cloud.discoveryengine.v1.DataProtectionPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DataProtectionPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sensitiveDataProtectionPolicy_ = + sensitiveDataProtectionPolicyBuilder_ == null + ? sensitiveDataProtectionPolicy_ + : sensitiveDataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataProtectionPolicy) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataProtectionPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataProtectionPolicy other) { + if (other == com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance()) + return this; + if (other.hasSensitiveDataProtectionPolicy()) { + mergeSensitiveDataProtectionPolicy(other.getSensitiveDataProtectionPolicy()); + } + 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( + internalGetSensitiveDataProtectionPolicyFieldBuilder().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.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + sensitiveDataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder> + sensitiveDataProtectionPolicyBuilder_; + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + public boolean hasSensitiveDataProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy() { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } else { + return sensitiveDataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + value) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sensitiveDataProtectionPolicy_ = value; + } else { + sensitiveDataProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder + builderForValue) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + sensitiveDataProtectionPolicy_ = builderForValue.build(); + } else { + sensitiveDataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + value) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sensitiveDataProtectionPolicy_ != null + && sensitiveDataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy.getDefaultInstance()) { + getSensitiveDataProtectionPolicyBuilder().mergeFrom(value); + } else { + sensitiveDataProtectionPolicy_ = value; + } + } else { + sensitiveDataProtectionPolicyBuilder_.mergeFrom(value); + } + if (sensitiveDataProtectionPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSensitiveDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + sensitiveDataProtectionPolicy_ = null; + if (sensitiveDataProtectionPolicyBuilder_ != null) { + sensitiveDataProtectionPolicyBuilder_.dispose(); + sensitiveDataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder + getSensitiveDataProtectionPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSensitiveDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder() { + if (sensitiveDataProtectionPolicyBuilder_ != null) { + return sensitiveDataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + } + + /** + * + * + *
+     * Optional. Specifies the sensitive data protection policy for the connector
+     * source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder> + internalGetSensitiveDataProtectionPolicyFieldBuilder() { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + sensitiveDataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder>( + getSensitiveDataProtectionPolicy(), getParentForChildren(), isClean()); + sensitiveDataProtectionPolicy_ = null; + } + return sensitiveDataProtectionPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataProtectionPolicy) + private static final com.google.cloud.discoveryengine.v1.DataProtectionPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataProtectionPolicy(); + } + + public static com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataProtectionPolicyOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataProtectionPolicyOrBuilder.java new file mode 100644 index 000000000000..1a4642e587a6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataProtectionPolicyOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DataProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Specifies the sensitive data protection policy for the connector
+   * source.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + boolean hasSensitiveDataProtectionPolicy(); + + /** + * + * + *
+   * Optional. Specifies the sensitive data protection policy for the connector
+   * source.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy(); + + /** + * + * + *
+   * Optional. Specifies the sensitive data protection policy for the connector
+   * source.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java index 572efe578805..87cf05eeb0cc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStore.java @@ -60,6 +60,7 @@ private DataStore() { contentConfig_ = 0; kmsKeyName_ = ""; identityMappingStore_ = ""; + configurableBillingApproach_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -300,6 +301,180 @@ private ContentConfig(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataStore.ContentConfig) } + /** + * + * + *
+   * Configuration for configurable billing approach.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach} + */ + public enum ConfigurableBillingApproach implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. For Spark and non-Spark non-configurable billing approach.
+     * 
+ * + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED(0), + /** + * + * + *
+     * Use the subscription base + overage billing for indexing core for non
+     * embedding storage.
+     * 
+ * + * CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE = 1; + */ + CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE(1), + /** + * + * + *
+     * Use the consumption pay-as-you-go billing for embedding storage add-on.
+     * 
+ * + * CONFIGURABLE_CONSUMPTION_EMBEDDING = 2; + */ + CONFIGURABLE_CONSUMPTION_EMBEDDING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConfigurableBillingApproach"); + } + + /** + * + * + *
+     * Default value. For Spark and non-Spark non-configurable billing approach.
+     * 
+ * + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + public static final int CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Use the subscription base + overage billing for indexing core for non
+     * embedding storage.
+     * 
+ * + * CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE = 1; + */ + public static final int CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE_VALUE = 1; + + /** + * + * + *
+     * Use the consumption pay-as-you-go billing for embedding storage add-on.
+     * 
+ * + * CONFIGURABLE_CONSUMPTION_EMBEDDING = 2; + */ + public static final int CONFIGURABLE_CONSUMPTION_EMBEDDING_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 ConfigurableBillingApproach 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 ConfigurableBillingApproach forNumber(int value) { + switch (value) { + case 0: + return CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED; + case 1: + return CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE; + case 2: + return CONFIGURABLE_CONSUMPTION_EMBEDDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConfigurableBillingApproach findValueByNumber(int number) { + return ConfigurableBillingApproach.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStore.getDescriptor().getEnumTypes().get(1); + } + + private static final ConfigurableBillingApproach[] VALUES = values(); + + public static ConfigurableBillingApproach 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 ConfigurableBillingApproach(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach) + } + public interface BillingEstimationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.BillingEstimation) @@ -2019,1732 +2194,10810 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface ServingConfigDataStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional. If set true, the DataStore will not be available for serving
+     * search requests.
+     * 
+ * + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabledForServing. + */ + boolean getDisabledForServing(); + } /** * * *
-   * Immutable. Identifier. The full resource name of the data store.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
+   * Stores information regarding the serving configurations at DataStore level.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * - * - * @return The name. + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore} */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public static final class ServingConfigDataStore extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) + ServingConfigDataStoreOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ServingConfigDataStore"); } - } - /** - * - * - *
-   * Immutable. Identifier. The full resource name of the data store.
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + // Use ServingConfigDataStore.newBuilder() to construct. + private ServingConfigDataStore(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private ServingConfigDataStore() {} - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_descriptor; + } - /** - * - * - *
-   * Required. The data store display name.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 128
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.class, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder.class); } - } - /** - * - * - *
-   * Required. The data store display name.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 128
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 DISABLED_FOR_SERVING_FIELD_NUMBER = 1; + private boolean disabledForServing_ = false; + + /** + * + * + *
+     * Optional. If set true, the DataStore will not be available for serving
+     * search requests.
+     * 
+ * + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabledForServing. + */ + @java.lang.Override + public boolean getDisabledForServing() { + return disabledForServing_; } - } - public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 3; - private int industryVertical_ = 0; + private byte memoizedIsInitialized = -1; - /** - * - * - *
-   * Immutable. The industry vertical that the data store registers.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The enum numeric value on the wire for industryVertical. - */ - @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
-   * Immutable. The industry vertical that the data store registers.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The industryVertical. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1.IndustryVertical result = - com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); - return result == null - ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED - : result; - } + memoizedIsInitialized = 1; + return true; + } - public static final int SOLUTION_TYPES_FIELD_NUMBER = 5; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabledForServing_ != false) { + output.writeBool(1, disabledForServing_); + } + getUnknownFields().writeTo(output); + } - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1.SolutionType> - solutionTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1.SolutionType>() { - public com.google.cloud.discoveryengine.v1.SolutionType convert(int from) { - com.google.cloud.discoveryengine.v1.SolutionType result = - com.google.cloud.discoveryengine.v1.SolutionType.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED - : result; - } - }; + size = 0; + if (disabledForServing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabledForServing_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
-   * The solutions that the data store enrolls. Available solutions for each
-   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-   *
-   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-   * solutions cannot be enrolled.
-   * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return A list containing the solutionTypes. - */ - @java.lang.Override - public java.util.List getSolutionTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1.SolutionType>(solutionTypes_, solutionTypes_converter_); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore other = + (com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) obj; - /** - * - * - *
-   * The solutions that the data store enrolls. Available solutions for each
-   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-   *
-   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-   * solutions cannot be enrolled.
-   * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return The count of solutionTypes. - */ - @java.lang.Override - public int getSolutionTypesCount() { - return solutionTypes_.size(); - } + if (getDisabledForServing() != other.getDisabledForServing()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
-   * The solutions that the data store enrolls. Available solutions for each
-   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-   *
-   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-   * solutions cannot be enrolled.
-   * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index of the element to return. - * @return The solutionTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SolutionType getSolutionTypes(int index) { - return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FOR_SERVING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabledForServing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
-   * The solutions that the data store enrolls. Available solutions for each
-   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-   *
-   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-   * solutions cannot be enrolled.
-   * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return A list containing the enum numeric values on the wire for solutionTypes. - */ - @java.lang.Override - public java.util.List getSolutionTypesValueList() { - return solutionTypes_; - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * The solutions that the data store enrolls. Available solutions for each
-   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-   *
-   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-   * solutions cannot be enrolled.
-   * 
- * - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of solutionTypes at the given index. - */ - @java.lang.Override - public int getSolutionTypesValue(int index) { - return solutionTypes_.getInt(index); - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private int solutionTypesMemoizedSerializedSize; + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int DEFAULT_SCHEMA_ID_FIELD_NUMBER = 7; + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private volatile java.lang.Object defaultSchemaId_ = ""; + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * Output only. The id of the default
-   * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-   * store.
-   * 
- * - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The defaultSchemaId. - */ - @java.lang.Override - public java.lang.String getDefaultSchemaId() { - java.lang.Object ref = defaultSchemaId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSchemaId_ = s; - return s; + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - /** - * - * - *
-   * Output only. The id of the default
-   * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-   * store.
-   * 
- * - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for defaultSchemaId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { - java.lang.Object ref = defaultSchemaId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultSchemaId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - - public static final int CONTENT_CONFIG_FIELD_NUMBER = 6; - private int contentConfig_ = 0; - /** - * - * - *
-   * Immutable. The content config of the data store. If this field is unset,
-   * the server behavior defaults to
-   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The enum numeric value on the wire for contentConfig. - */ - @java.lang.Override - public int getContentConfigValue() { - return contentConfig_; - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Immutable. The content config of the data store. If this field is unset,
-   * the server behavior defaults to
-   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The contentConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); - return result == null - ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED - : result; - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Output only. Timestamp the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Output only. Timestamp the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Output only. Timestamp the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advancedSiteSearchConfig_; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
-   * Optional. Configuration for advanced site search.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the advancedSiteSearchConfig field is set. - */ - @java.lang.Override - public boolean hasAdvancedSiteSearchConfig() { - return ((bitField0_ & 0x00000002) != 0); - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
-   * Optional. Configuration for advanced site search.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The advancedSiteSearchConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig - getAdvancedSiteSearchConfig() { - return advancedSiteSearchConfig_ == null - ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() - : advancedSiteSearchConfig_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
-   * Optional. Configuration for advanced site search.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder - getAdvancedSiteSearchConfigOrBuilder() { - return advancedSiteSearchConfig_ == null - ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() - : advancedSiteSearchConfig_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER = 34; - private com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - naturalLanguageQueryUnderstandingConfig_; + /** + * + * + *
+     * Stores information regarding the serving configurations at DataStore level.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_descriptor; + } - /** - * - * - *
-   * Optional. Configuration for Natural Language Query Understanding.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. - */ - @java.lang.Override - public boolean hasNaturalLanguageQueryUnderstandingConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-   * Optional. Configuration for Natural Language Query Understanding.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The naturalLanguageQueryUnderstandingConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - getNaturalLanguageQueryUnderstandingConfig() { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.class, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder.class); + } - /** - * - * - *
-   * Optional. Configuration for Natural Language Query Understanding.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder - getNaturalLanguageQueryUnderstandingConfigOrBuilder() { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; - } + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.newBuilder() + private Builder() {} - public static final int KMS_KEY_NAME_FIELD_NUMBER = 32; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - @SuppressWarnings("serial") - private volatile java.lang.Object kmsKeyName_ = ""; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabledForServing_ = false; + return this; + } - /** - * - * - *
-   * Input only. The KMS key to be used to protect this DataStore at creation
-   * time.
-   *
-   * Must be set for requests that need to comply with CMEK Org Policy
-   * protections.
-   *
-   * If this field is set and processed successfully, the DataStore will be
-   * protected by the KMS key, as indicated in the cmek_config field.
-   * 
- * - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The kmsKeyName. - */ - @java.lang.Override - public java.lang.String getKmsKeyName() { - java.lang.Object ref = kmsKeyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKeyName_ = s; - return s; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_descriptor; + } - /** - * - * - *
-   * Input only. The KMS key to be used to protect this DataStore at creation
-   * time.
-   *
-   * Must be set for requests that need to comply with CMEK Org Policy
-   * protections.
-   *
-   * If this field is set and processed successfully, the DataStore will be
-   * protected by the KMS key, as indicated in the cmek_config field.
-   * 
- * - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The bytes for kmsKeyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { - java.lang.Object ref = kmsKeyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + .getDefaultInstance(); + } - public static final int CMEK_CONFIG_FIELD_NUMBER = 18; - private com.google.cloud.discoveryengine.v1.CmekConfig cmekConfig_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore build() { + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
-   * Output only. CMEK-related information for the DataStore.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the cmekConfig field is set. - */ - @java.lang.Override - public boolean hasCmekConfig() { - return ((bitField0_ & 0x00000008) != 0); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore result = + new com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
-   * Output only. CMEK-related information for the DataStore.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The cmekConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig() { - return cmekConfig_ == null - ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() - : cmekConfig_; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabledForServing_ = disabledForServing_; + } + } - /** - * - * - *
-   * Output only. CMEK-related information for the DataStore.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder() { - return cmekConfig_ == null - ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() - : cmekConfig_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int BILLING_ESTIMATION_FIELD_NUMBER = 23; - private com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation billingEstimation_; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + .getDefaultInstance()) return this; + if (other.getDisabledForServing() != false) { + setDisabledForServing(other.getDisabledForServing()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-   * Output only. Data size estimation for billing.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the billingEstimation field is set. - */ - @java.lang.Override - public boolean hasBillingEstimation() { - return ((bitField0_ & 0x00000010) != 0); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
-   * Output only. Data size estimation for billing.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The billingEstimation. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation() { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() - : billingEstimation_; - } + @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: + { + disabledForServing_ = 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; + } - /** - * - * - *
-   * Output only. Data size estimation for billing.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder - getBillingEstimationOrBuilder() { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() - : billingEstimation_; - } + private int bitField0_; - public static final int ACL_ENABLED_FIELD_NUMBER = 24; - private boolean aclEnabled_ = false; + private boolean disabledForServing_; - /** - * - * - *
-   * Immutable. Whether data in the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
-   * If set to `true`, the source data must have ACL. ACL will be ingested when
-   * data is ingested by
-   * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
-   * methods.
-   *
-   * When ACL is enabled for the
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore],
-   * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
-   * calling
-   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-   * or
-   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-   *
-   * Currently ACL is only supported in `GENERIC` industry vertical with
-   * non-`PUBLIC_WEBSITE` content config.
-   * 
- * - * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The aclEnabled. - */ - @java.lang.Override - public boolean getAclEnabled() { - return aclEnabled_; - } + /** + * + * + *
+       * Optional. If set true, the DataStore will not be available for serving
+       * search requests.
+       * 
+ * + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabledForServing. + */ + @java.lang.Override + public boolean getDisabledForServing() { + return disabledForServing_; + } - public static final int WORKSPACE_CONFIG_FIELD_NUMBER = 25; - private com.google.cloud.discoveryengine.v1.WorkspaceConfig workspaceConfig_; + /** + * + * + *
+       * Optional. If set true, the DataStore will not be available for serving
+       * search requests.
+       * 
+ * + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabledForServing to set. + * @return This builder for chaining. + */ + public Builder setDisabledForServing(boolean value) { - /** - * - * - *
-   * Config to store data store type configuration for workspace data. This
-   * must be set when
-   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-   * is set as
-   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
-   * 
- * - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - * - * @return Whether the workspaceConfig field is set. - */ - @java.lang.Override - public boolean hasWorkspaceConfig() { - return ((bitField0_ & 0x00000020) != 0); - } + disabledForServing_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-   * Config to store data store type configuration for workspace data. This
-   * must be set when
-   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-   * is set as
-   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
-   * 
- * - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - * - * @return The workspaceConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; - } + /** + * + * + *
+       * Optional. If set true, the DataStore will not be available for serving
+       * search requests.
+       * 
+ * + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabledForServing() { + bitField0_ = (bitField0_ & ~0x00000001); + disabledForServing_ = false; + onChanged(); + return this; + } - /** - * - * - *
-   * Config to store data store type configuration for workspace data. This
-   * must be set when
-   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-   * is set as
-   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
-   * 
- * - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder - getWorkspaceConfigOrBuilder() { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) + } - public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; - private com.google.cloud.discoveryengine.v1.DocumentProcessingConfig documentProcessingConfig_; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore) + private static final com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + DEFAULT_INSTANCE; - /** - * - * - *
-   * Configuration for Document understanding and enrichment.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - * - * - * @return Whether the documentProcessingConfig field is set. - */ - @java.lang.Override - public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000040) != 0); - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore(); + } - /** - * - * - *
-   * Configuration for Document understanding and enrichment.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - * - * - * @return The documentProcessingConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig - getDocumentProcessingConfig() { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; - } + public static com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
-   * Configuration for Document understanding and enrichment.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder - getDocumentProcessingConfigOrBuilder() { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServingConfigDataStore 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 final int STARTING_SCHEMA_FIELD_NUMBER = 28; - private com.google.cloud.discoveryengine.v1.Schema startingSchema_; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
-   * The start schema to use for this
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-   * it. If unset, a default vertical specialized schema will be used.
-   *
-   * This field is only used by
-   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-   * API, and will be ignored if used in other APIs. This field will be omitted
-   * from all API responses including
-   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-   * API. To retrieve a schema of a
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-   * API instead.
-   *
-   * The provided schema will be validated against certain rules on schema.
-   * Learn more from [this
-   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
-   * 
- * - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; - * - * @return Whether the startingSchema field is set. - */ - @java.lang.Override - public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000080) != 0); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
-   * The start schema to use for this
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-   * it. If unset, a default vertical specialized schema will be used.
-   *
-   * This field is only used by
-   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-   * API, and will be ignored if used in other APIs. This field will be omitted
-   * from all API responses including
-   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-   * API. To retrieve a schema of a
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-   * API instead.
-   *
-   * The provided schema will be validated against certain rules on schema.
-   * Learn more from [this
-   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
-   * 
- * - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; - * - * @return The startingSchema. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : startingSchema_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - /** - * - * - *
-   * The start schema to use for this
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-   * it. If unset, a default vertical specialized schema will be used.
-   *
-   * This field is only used by
-   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-   * API, and will be ignored if used in other APIs. This field will be omitted
-   * from all API responses including
-   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-   * API. To retrieve a schema of a
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-   * API instead.
-   *
-   * The provided schema will be validated against certain rules on schema.
-   * Learn more from [this
-   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
-   * 
- * - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder() { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : startingSchema_; - } + public interface FederatedSearchConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) + com.google.protobuf.MessageOrBuilder { - public static final int HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER = 29; - private com.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcareFhirConfig_; + /** + * + * + *
+     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return Whether the alloyDbConfig field is set. + */ + boolean hasAlloyDbConfig(); - /** - * - * - *
-   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the healthcareFhirConfig field is set. - */ - @java.lang.Override - public boolean hasHealthcareFhirConfig() { - return ((bitField0_ & 0x00000100) != 0); + /** + * + * + *
+     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return The alloyDbConfig. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + getAlloyDbConfig(); + + /** + * + * + *
+     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfigOrBuilder + getAlloyDbConfigOrBuilder(); + + /** + * + * + *
+     * Third Party OAuth config. If set, this DataStore is connected to a
+     * third party application.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return Whether the thirdPartyOauthConfig field is set. + */ + boolean hasThirdPartyOauthConfig(); + + /** + * + * + *
+     * Third Party OAuth config. If set, this DataStore is connected to a
+     * third party application.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return The thirdPartyOauthConfig. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + getThirdPartyOauthConfig(); + + /** + * + * + *
+     * Third Party OAuth config. If set, this DataStore is connected to a
+     * third party application.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder + getThirdPartyOauthConfigOrBuilder(); + + /** + * + * + *
+     * NotebookLM config. If set, this DataStore is connected to
+     * NotebookLM Enterprise.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return Whether the notebooklmConfig field is set. + */ + boolean hasNotebooklmConfig(); + + /** + * + * + *
+     * NotebookLM config. If set, this DataStore is connected to
+     * NotebookLM Enterprise.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return The notebooklmConfig. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + getNotebooklmConfig(); + + /** + * + * + *
+     * NotebookLM config. If set, this DataStore is connected to
+     * NotebookLM Enterprise.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.DataSourceConfigCase + getDataSourceConfigCase(); } /** * * *
-   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+   * Stores information for federated search.
    * 
* - * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The healthcareFhirConfig. + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig() { - return healthcareFhirConfig_ == null - ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() - : healthcareFhirConfig_; - } + public static final class FederatedSearchConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) + FederatedSearchConfigOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder - getHealthcareFhirConfigOrBuilder() { - return healthcareFhirConfig_ == null - ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() - : healthcareFhirConfig_; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FederatedSearchConfig"); + } - public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 31; + // Use FederatedSearchConfig.newBuilder() to construct. + private FederatedSearchConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object identityMappingStore_ = ""; + private FederatedSearchConfig() {} - /** - * - * - *
-   * Immutable. The fully qualified resource name of the associated
-   * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-   * `GSUITE` IdP. Format:
-   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
-   * 
- * - * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The identityMappingStore. - */ - @java.lang.Override - public java.lang.String getIdentityMappingStore() { - java.lang.Object ref = identityMappingStore_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identityMappingStore_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor; } - } - /** - * - * - *
-   * Immutable. The fully qualified resource name of the associated
-   * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-   * `GSUITE` IdP. Format:
-   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
-   * 
- * - * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for identityMappingStore. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { - java.lang.Object ref = identityMappingStore_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - identityMappingStore_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder.class); } - } - private byte memoizedIsInitialized = -1; + public interface AlloyDbConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+       * Required. Configuration for connecting to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alloydbConnectionConfig field is set. + */ + boolean hasAlloydbConnectionConfig(); - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
+       * Required. Configuration for connecting to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alloydbConnectionConfig. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getAlloydbConnectionConfig(); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); - } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, industryVertical_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCreateTime()); - } - if (getSolutionTypesList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(solutionTypesMemoizedSerializedSize); - } - for (int i = 0; i < solutionTypes_.size(); i++) { - output.writeEnumNoTag(solutionTypes_.getInt(i)); - } - if (contentConfig_ - != com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_CONFIG_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, contentConfig_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultSchemaId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(12, getAdvancedSiteSearchConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(18, getCmekConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(23, getBillingEstimation()); - } - if (aclEnabled_ != false) { - output.writeBool(24, aclEnabled_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(25, getWorkspaceConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(27, getDocumentProcessingConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(28, getStartingSchema()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(29, getHealthcareFhirConfig()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 31, identityMappingStore_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 32, kmsKeyName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(34, getNaturalLanguageQueryUnderstandingConfig()); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
+       * Required. Configuration for connecting to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder + getAlloydbConnectionConfigOrBuilder(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+       * Optional. Configuration for Magic.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the alloydbAiNlConfig field is set. + */ + boolean hasAlloydbAiNlConfig(); - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); - } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, industryVertical_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - { - int dataSize = 0; - for (int i = 0; i < solutionTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(solutionTypes_.getInt(i)); - } - size += dataSize; - if (!getSolutionTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - solutionTypesMemoizedSerializedSize = dataSize; - } - if (contentConfig_ - != com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_CONFIG_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, contentConfig_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultSchemaId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, getAdvancedSiteSearchConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getCmekConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getBillingEstimation()); - } - if (aclEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, aclEnabled_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getWorkspaceConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 27, getDocumentProcessingConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(29, getHealthcareFhirConfig()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(31, identityMappingStore_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(32, kmsKeyName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 34, getNaturalLanguageQueryUnderstandingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
+       * Optional. Configuration for Magic.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The alloydbAiNlConfig. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getAlloydbAiNlConfig(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataStore)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.DataStore other = - (com.google.cloud.discoveryengine.v1.DataStore) obj; + /** + * + * + *
+       * Optional. Configuration for Magic.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder + getAlloydbAiNlConfigOrBuilder(); - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (industryVertical_ != other.industryVertical_) return false; - if (!solutionTypes_.equals(other.solutionTypes_)) return false; - if (!getDefaultSchemaId().equals(other.getDefaultSchemaId())) return false; - if (contentConfig_ != other.contentConfig_) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasAdvancedSiteSearchConfig() != other.hasAdvancedSiteSearchConfig()) return false; - if (hasAdvancedSiteSearchConfig()) { - if (!getAdvancedSiteSearchConfig().equals(other.getAdvancedSiteSearchConfig())) return false; - } - if (hasNaturalLanguageQueryUnderstandingConfig() - != other.hasNaturalLanguageQueryUnderstandingConfig()) return false; - if (hasNaturalLanguageQueryUnderstandingConfig()) { - if (!getNaturalLanguageQueryUnderstandingConfig() - .equals(other.getNaturalLanguageQueryUnderstandingConfig())) return false; - } - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (hasCmekConfig() != other.hasCmekConfig()) return false; - if (hasCmekConfig()) { - if (!getCmekConfig().equals(other.getCmekConfig())) return false; - } - if (hasBillingEstimation() != other.hasBillingEstimation()) return false; - if (hasBillingEstimation()) { - if (!getBillingEstimation().equals(other.getBillingEstimation())) return false; - } - if (getAclEnabled() != other.getAclEnabled()) return false; - if (hasWorkspaceConfig() != other.hasWorkspaceConfig()) return false; - if (hasWorkspaceConfig()) { - if (!getWorkspaceConfig().equals(other.getWorkspaceConfig())) return false; - } - if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; - if (hasDocumentProcessingConfig()) { - if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; - } - if (hasStartingSchema() != other.hasStartingSchema()) return false; - if (hasStartingSchema()) { - if (!getStartingSchema().equals(other.getStartingSchema())) return false; - } - if (hasHealthcareFhirConfig() != other.hasHealthcareFhirConfig()) return false; - if (hasHealthcareFhirConfig()) { - if (!getHealthcareFhirConfig().equals(other.getHealthcareFhirConfig())) return false; - } - if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the returnedFields. + */ + java.util.List getReturnedFieldsList(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; - hash = (53 * hash) + industryVertical_; - if (getSolutionTypesCount() > 0) { - hash = (37 * hash) + SOLUTION_TYPES_FIELD_NUMBER; - hash = (53 * hash) + solutionTypes_.hashCode(); - } - hash = (37 * hash) + DEFAULT_SCHEMA_ID_FIELD_NUMBER; - hash = (53 * hash) + getDefaultSchemaId().hashCode(); - hash = (37 * hash) + CONTENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + contentConfig_; - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasAdvancedSiteSearchConfig()) { - hash = (37 * hash) + ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdvancedSiteSearchConfig().hashCode(); - } - if (hasNaturalLanguageQueryUnderstandingConfig()) { - hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNaturalLanguageQueryUnderstandingConfig().hashCode(); - } - hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKmsKeyName().hashCode(); - if (hasCmekConfig()) { - hash = (37 * hash) + CMEK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCmekConfig().hashCode(); - } - if (hasBillingEstimation()) { - hash = (37 * hash) + BILLING_ESTIMATION_FIELD_NUMBER; - hash = (53 * hash) + getBillingEstimation().hashCode(); - } - hash = (37 * hash) + ACL_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAclEnabled()); - if (hasWorkspaceConfig()) { - hash = (37 * hash) + WORKSPACE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkspaceConfig().hashCode(); - } - if (hasDocumentProcessingConfig()) { - hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); - } - if (hasStartingSchema()) { - hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getStartingSchema().hashCode(); - } - if (hasHealthcareFhirConfig()) { - hash = (37 * hash) + HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getHealthcareFhirConfig().hashCode(); - } - hash = (37 * hash) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; - hash = (53 * hash) + getIdentityMappingStore().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of returnedFields. + */ + int getReturnedFieldsCount(); - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The returnedFields at the given index. + */ + java.lang.String getReturnedFields(int index); - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the returnedFields at the given index. + */ + com.google.protobuf.ByteString getReturnedFieldsBytes(int index); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Stores information for connecting to AlloyDB.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig} + */ + public static final class AlloyDbConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + AlloyDbConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlloyDbConfig"); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // Use AlloyDbConfig.newBuilder() to construct. + private AlloyDbConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private AlloyDbConfig() { + returnedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder.class); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public interface AlloyDbConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Required. The AlloyDB instance to connect to.
+         * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
+         * Required. The AlloyDB instance to connect to.
+         * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
+         * Required. The AlloyDB database to connect to.
+         * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
+         * Required. The AlloyDB database to connect to.
+         * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+         * Required. Database user.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the user will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
+         * Required. Database user.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the user will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
+         * Required. Database password.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the password will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + java.lang.String getPassword(); + + /** + * + * + *
+         * Required. Database password.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the password will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+         * Optional. Auth mode.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authMode. + */ + int getAuthModeValue(); + + /** + * + * + *
+         * Optional. Auth mode.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authMode. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + getAuthMode(); + + /** + * + * + *
+         * Optional. If true, enable PSVS for AlloyDB.
+         * 
+ * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePsvs. + */ + boolean getEnablePsvs(); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
+       * Configuration for connecting to AlloyDB.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig} + */ + public static final class AlloyDbConnectionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + AlloyDbConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlloyDbConnectionConfig"); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + // Use AlloyDbConnectionConfig.newBuilder() to construct. + private AlloyDbConnectionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private AlloyDbConnectionConfig() { + instance_ = ""; + database_ = ""; + user_ = ""; + password_ = ""; + authMode_ = 0; + } - public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder.class); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+         * Auth mode.
+         * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode} + */ + public enum AuthMode implements com.google.protobuf.ProtocolMessageEnum { + /** AUTH_MODE_UNSPECIFIED = 0; */ + AUTH_MODE_UNSPECIFIED(0), + /** + * + * + *
+           * Uses P4SA when VAIS talks to AlloyDB.
+           * 
+ * + * AUTH_MODE_SERVICE_ACCOUNT = 1; + */ + AUTH_MODE_SERVICE_ACCOUNT(1), + /** + * + * + *
+           * Uses EUC when VAIS talks to AlloyDB.
+           * 
+ * + * AUTH_MODE_END_USER_ACCOUNT = 2; + */ + AUTH_MODE_END_USER_ACCOUNT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AuthMode"); + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DataStore prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** AUTH_MODE_UNSPECIFIED = 0; */ + public static final int AUTH_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+           * Uses P4SA when VAIS talks to AlloyDB.
+           * 
+ * + * AUTH_MODE_SERVICE_ACCOUNT = 1; + */ + public static final int AUTH_MODE_SERVICE_ACCOUNT_VALUE = 1; + + /** + * + * + *
+           * Uses EUC when VAIS talks to AlloyDB.
+           * 
+ * + * AUTH_MODE_END_USER_ACCOUNT = 2; + */ + public static final int AUTH_MODE_END_USER_ACCOUNT_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; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * @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 AuthMode valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AuthMode forNumber(int value) { + switch (value) { + case 0: + return AUTH_MODE_UNSPECIFIED; + case 1: + return AUTH_MODE_SERVICE_ACCOUNT; + case 2: + return AUTH_MODE_END_USER_ACCOUNT; + default: + return null; + } + } - /** - * - * - *
-   * DataStore captures global settings and configs at the DataStore level.
-   * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore) - com.google.cloud.discoveryengine.v1.DataStoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1_DataStore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.DataStore.class, - com.google.cloud.discoveryengine.v1.DataStore.Builder.class); - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthMode findValueByNumber(int number) { + return AuthMode.forNumber(number); + } + }; - // Construct using com.google.cloud.discoveryengine.v1.DataStore.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + 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()); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCreateTimeFieldBuilder(); - internalGetAdvancedSiteSearchConfigFieldBuilder(); - internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder(); - internalGetCmekConfigFieldBuilder(); - internalGetBillingEstimationFieldBuilder(); - internalGetWorkspaceConfigFieldBuilder(); - internalGetDocumentProcessingConfigFieldBuilder(); - internalGetStartingSchemaFieldBuilder(); - internalGetHealthcareFhirConfigFieldBuilder(); - } - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDescriptor() + .getEnumTypes() + .get(0); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - industryVertical_ = 0; - solutionTypes_ = emptyIntList(); - defaultSchemaId_ = ""; - contentConfig_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - advancedSiteSearchConfig_ = null; - if (advancedSiteSearchConfigBuilder_ != null) { - advancedSiteSearchConfigBuilder_.dispose(); - advancedSiteSearchConfigBuilder_ = null; - } - naturalLanguageQueryUnderstandingConfig_ = null; - if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { - naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); - naturalLanguageQueryUnderstandingConfigBuilder_ = null; - } - kmsKeyName_ = ""; - cmekConfig_ = null; - if (cmekConfigBuilder_ != null) { - cmekConfigBuilder_.dispose(); - cmekConfigBuilder_ = null; - } - billingEstimation_ = null; - if (billingEstimationBuilder_ != null) { - billingEstimationBuilder_.dispose(); - billingEstimationBuilder_ = null; - } - aclEnabled_ = false; - workspaceConfig_ = null; - if (workspaceConfigBuilder_ != null) { - workspaceConfigBuilder_.dispose(); - workspaceConfigBuilder_ = null; - } - documentProcessingConfig_ = null; - if (documentProcessingConfigBuilder_ != null) { - documentProcessingConfigBuilder_.dispose(); - documentProcessingConfigBuilder_ = null; - } - startingSchema_ = null; - if (startingSchemaBuilder_ != null) { - startingSchemaBuilder_.dispose(); - startingSchemaBuilder_ = null; - } - healthcareFhirConfig_ = null; - if (healthcareFhirConfigBuilder_ != null) { - healthcareFhirConfigBuilder_.dispose(); - healthcareFhirConfigBuilder_ = null; - } - identityMappingStore_ = ""; - return this; - } + private static final AuthMode[] VALUES = values(); - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; - } + public static AuthMode 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()]; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance(); - } + private final int value; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore build() { - com.google.cloud.discoveryengine.v1.DataStore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private AuthMode(int value) { + this.value = value; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore buildPartial() { - com.google.cloud.discoveryengine.v1.DataStore result = - new com.google.cloud.discoveryengine.v1.DataStore(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode) + } - private void buildPartial0(com.google.cloud.discoveryengine.v1.DataStore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.industryVertical_ = industryVertical_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - solutionTypes_.makeImmutable(); - result.solutionTypes_ = solutionTypes_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.defaultSchemaId_ = defaultSchemaId_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.contentConfig_ = contentConfig_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.advancedSiteSearchConfig_ = - advancedSiteSearchConfigBuilder_ == null - ? advancedSiteSearchConfig_ - : advancedSiteSearchConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
+         * Required. The AlloyDB instance to connect to.
+         * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } + } + + /** + * + * + *
+         * Required. The AlloyDB instance to connect to.
+         * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
+         * Required. The AlloyDB database to connect to.
+         * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + + /** + * + * + *
+         * Required. The AlloyDB database to connect to.
+         * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + + /** + * + * + *
+         * Required. Database user.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the user will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + + /** + * + * + *
+         * Required. Database user.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the user will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + + /** + * + * + *
+         * Required. Database password.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the password will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + + /** + * + * + *
+         * Required. Database password.
+         *
+         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+         * the password will be inferred on the AlloyDB side, based on the
+         * authenticated user.
+         * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_MODE_FIELD_NUMBER = 5; + private int authMode_ = 0; + + /** + * + * + *
+         * Optional. Auth mode.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authMode. + */ + @java.lang.Override + public int getAuthModeValue() { + return authMode_; + } + + /** + * + * + *
+         * Optional. Auth mode.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + getAuthMode() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + result = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode.forNumber(authMode_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode.UNRECOGNIZED + : result; + } + + public static final int ENABLE_PSVS_FIELD_NUMBER = 6; + private boolean enablePsvs_ = false; + + /** + * + * + *
+         * Optional. If true, enable PSVS for AlloyDB.
+         * 
+ * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePsvs. + */ + @java.lang.Override + public boolean getEnablePsvs() { + return enablePsvs_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, database_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, user_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, password_); + } + if (authMode_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode.AUTH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, authMode_); + } + if (enablePsvs_ != false) { + output.writeBool(6, enablePsvs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, database_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, user_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, password_); + } + if (authMode_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode.AUTH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, authMode_); + } + if (enablePsvs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enablePsvs_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + other = + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig) + obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (authMode_ != other.authMode_) return false; + if (getEnablePsvs() != other.getEnablePsvs()) 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) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + AUTH_MODE_FIELD_NUMBER; + hash = (53 * hash) + authMode_; + hash = (37 * hash) + ENABLE_PSVS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePsvs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Configuration for connecting to AlloyDB.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + database_ = ""; + user_ = ""; + password_ = ""; + authMode_ = 0; + enablePsvs_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + build() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + result = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.authMode_ = authMode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enablePsvs_ = enablePsvs_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance()) return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.authMode_ != 0) { + setAuthModeValue(other.getAuthModeValue()); + } + if (other.getEnablePsvs() != false) { + setEnablePsvs(other.getEnablePsvs()); + } + 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: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + authMode_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + enablePsvs_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object instance_ = ""; + + /** + * + * + *
+           * Required. The AlloyDB instance to connect to.
+           * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Required. The AlloyDB instance to connect to.
+           * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Required. The AlloyDB instance to connect to.
+           * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. The AlloyDB instance to connect to.
+           * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. The AlloyDB instance to connect to.
+           * 
+ * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
+           * Required. The AlloyDB database to connect to.
+           * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Required. The AlloyDB database to connect to.
+           * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Required. The AlloyDB database to connect to.
+           * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. The AlloyDB database to connect to.
+           * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. The AlloyDB database to connect to.
+           * 
+ * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + + /** + * + * + *
+           * Required. Database user.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the user will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Required. Database user.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the user will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Required. Database user.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the user will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. Database user.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the user will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. Database user.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the user will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + + /** + * + * + *
+           * Required. Database password.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the password will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Required. Database password.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the password will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Required. Database password.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the password will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. Database password.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the password will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+           * Required. Database password.
+           *
+           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
+           * the password will be inferred on the AlloyDB side, based on the
+           * authenticated user.
+           * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int authMode_ = 0; + + /** + * + * + *
+           * Optional. Auth mode.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authMode. + */ + @java.lang.Override + public int getAuthModeValue() { + return authMode_; + } + + /** + * + * + *
+           * Optional. Auth mode.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for authMode to set. + * @return This builder for chaining. + */ + public Builder setAuthModeValue(int value) { + authMode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. Auth mode.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + getAuthMode() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + result = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.forNumber(authMode_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+           * Optional. Auth mode.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The authMode to set. + * @return This builder for chaining. + */ + public Builder setAuthMode( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + authMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. Auth mode.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthMode() { + bitField0_ = (bitField0_ & ~0x00000010); + authMode_ = 0; + onChanged(); + return this; + } + + private boolean enablePsvs_; + + /** + * + * + *
+           * Optional. If true, enable PSVS for AlloyDB.
+           * 
+ * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePsvs. + */ + @java.lang.Override + public boolean getEnablePsvs() { + return enablePsvs_; + } + + /** + * + * + *
+           * Optional. If true, enable PSVS for AlloyDB.
+           * 
+ * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePsvs to set. + * @return This builder for chaining. + */ + public Builder setEnablePsvs(boolean value) { + + enablePsvs_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. If true, enable PSVS for AlloyDB.
+           * 
+ * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePsvs() { + bitField0_ = (bitField0_ & ~0x00000020); + enablePsvs_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + private static final com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbConnectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AlloyDbAiNaturalLanguageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+         * empty.
+         * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nlConfigId. + */ + java.lang.String getNlConfigId(); + + /** + * + * + *
+         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+         * empty.
+         * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nlConfigId. + */ + com.google.protobuf.ByteString getNlConfigIdBytes(); + } + + /** + * + * + *
+       * Configuration for AlloyDB AI Natural Language.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig} + */ + public static final class AlloyDbAiNaturalLanguageConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + AlloyDbAiNaturalLanguageConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AlloyDbAiNaturalLanguageConfig"); + } + + // Use AlloyDbAiNaturalLanguageConfig.newBuilder() to construct. + private AlloyDbAiNaturalLanguageConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlloyDbAiNaturalLanguageConfig() { + nlConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder.class); + } + + public static final int NL_CONFIG_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object nlConfigId_ = ""; + + /** + * + * + *
+         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+         * empty.
+         * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nlConfigId. + */ + @java.lang.Override + public java.lang.String getNlConfigId() { + java.lang.Object ref = nlConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nlConfigId_ = s; + return s; + } + } + + /** + * + * + *
+         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+         * empty.
+         * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nlConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNlConfigIdBytes() { + java.lang.Object ref = nlConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nlConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nlConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, nlConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nlConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, nlConfigId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + other = + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig) + obj; + + if (!getNlConfigId().equals(other.getNlConfigId())) 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) + NL_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getNlConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Configuration for AlloyDB AI Natural Language.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nlConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + build() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + result = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nlConfigId_ = nlConfigId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance()) return this; + if (!other.getNlConfigId().isEmpty()) { + nlConfigId_ = other.nlConfigId_; + 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: + { + nlConfigId_ = 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 nlConfigId_ = ""; + + /** + * + * + *
+           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+           * empty.
+           * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nlConfigId. + */ + public java.lang.String getNlConfigId() { + java.lang.Object ref = nlConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nlConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+           * empty.
+           * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nlConfigId. + */ + public com.google.protobuf.ByteString getNlConfigIdBytes() { + java.lang.Object ref = nlConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nlConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+           * empty.
+           * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nlConfigId to set. + * @return This builder for chaining. + */ + public Builder setNlConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nlConfigId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+           * empty.
+           * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNlConfigId() { + nlConfigId_ = getDefaultInstance().getNlConfigId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
+           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
+           * empty.
+           * 
+ * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nlConfigId to set. + * @return This builder for chaining. + */ + public Builder setNlConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nlConfigId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + private static final com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbAiNaturalLanguageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ALLOYDB_CONNECTION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + alloydbConnectionConfig_; + + /** + * + * + *
+       * Required. Configuration for connecting to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alloydbConnectionConfig field is set. + */ + @java.lang.Override + public boolean hasAlloydbConnectionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. Configuration for connecting to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alloydbConnectionConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getAlloydbConnectionConfig() { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } + + /** + * + * + *
+       * Required. Configuration for connecting to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder + getAlloydbConnectionConfigOrBuilder() { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } + + public static final int ALLOYDB_AI_NL_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + alloydbAiNlConfig_; + + /** + * + * + *
+       * Optional. Configuration for Magic.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the alloydbAiNlConfig field is set. + */ + @java.lang.Override + public boolean hasAlloydbAiNlConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Configuration for Magic.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The alloydbAiNlConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getAlloydbAiNlConfig() { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } + + /** + * + * + *
+       * Optional. Configuration for Magic.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder + getAlloydbAiNlConfigOrBuilder() { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } + + public static final int RETURNED_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList returnedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the returnedFields. + */ + public com.google.protobuf.ProtocolStringList getReturnedFieldsList() { + return returnedFields_; + } + + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of returnedFields. + */ + public int getReturnedFieldsCount() { + return returnedFields_.size(); + } + + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The returnedFields at the given index. + */ + public java.lang.String getReturnedFields(int index) { + return returnedFields_.get(index); + } + + /** + * + * + *
+       * Optional. Fields to be returned in the search results. If empty, all
+       * fields will be returned.
+       * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the returnedFields at the given index. + */ + public com.google.protobuf.ByteString getReturnedFieldsBytes(int index) { + return returnedFields_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAlloydbConnectionConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAlloydbAiNlConfig()); + } + for (int i = 0; i < returnedFields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, returnedFields_.getRaw(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, getAlloydbConnectionConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAlloydbAiNlConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < returnedFields_.size(); i++) { + dataSize += computeStringSizeNoTag(returnedFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getReturnedFieldsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig other = + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) obj; + + if (hasAlloydbConnectionConfig() != other.hasAlloydbConnectionConfig()) return false; + if (hasAlloydbConnectionConfig()) { + if (!getAlloydbConnectionConfig().equals(other.getAlloydbConnectionConfig())) + return false; + } + if (hasAlloydbAiNlConfig() != other.hasAlloydbAiNlConfig()) return false; + if (hasAlloydbAiNlConfig()) { + if (!getAlloydbAiNlConfig().equals(other.getAlloydbAiNlConfig())) return false; + } + if (!getReturnedFieldsList().equals(other.getReturnedFieldsList())) 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 (hasAlloydbConnectionConfig()) { + hash = (37 * hash) + ALLOYDB_CONNECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlloydbConnectionConfig().hashCode(); + } + if (hasAlloydbAiNlConfig()) { + hash = (37 * hash) + ALLOYDB_AI_NL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlloydbAiNlConfig().hashCode(); + } + if (getReturnedFieldsCount() > 0) { + hash = (37 * hash) + RETURNED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getReturnedFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Stores information for connecting to AlloyDB.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAlloydbConnectionConfigFieldBuilder(); + internalGetAlloydbAiNlConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alloydbConnectionConfig_ = null; + if (alloydbConnectionConfigBuilder_ != null) { + alloydbConnectionConfigBuilder_.dispose(); + alloydbConnectionConfigBuilder_ = null; + } + alloydbAiNlConfig_ = null; + if (alloydbAiNlConfigBuilder_ != null) { + alloydbAiNlConfigBuilder_.dispose(); + alloydbAiNlConfigBuilder_ = null; + } + returnedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + build() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig result = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alloydbConnectionConfig_ = + alloydbConnectionConfigBuilder_ == null + ? alloydbConnectionConfig_ + : alloydbConnectionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alloydbAiNlConfig_ = + alloydbAiNlConfigBuilder_ == null + ? alloydbAiNlConfig_ + : alloydbAiNlConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + returnedFields_.makeImmutable(); + result.returnedFields_ = returnedFields_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance()) return this; + if (other.hasAlloydbConnectionConfig()) { + mergeAlloydbConnectionConfig(other.getAlloydbConnectionConfig()); + } + if (other.hasAlloydbAiNlConfig()) { + mergeAlloydbAiNlConfig(other.getAlloydbAiNlConfig()); + } + if (!other.returnedFields_.isEmpty()) { + if (returnedFields_.isEmpty()) { + returnedFields_ = other.returnedFields_; + bitField0_ |= 0x00000004; + } else { + ensureReturnedFieldsIsMutable(); + returnedFields_.addAll(other.returnedFields_); + } + 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( + internalGetAlloydbConnectionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAlloydbAiNlConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReturnedFieldsIsMutable(); + returnedFields_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + alloydbConnectionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder> + alloydbConnectionConfigBuilder_; + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alloydbConnectionConfig field is set. + */ + public boolean hasAlloydbConnectionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alloydbConnectionConfig. + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getAlloydbConnectionConfig() { + if (alloydbConnectionConfigBuilder_ == null) { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } else { + return alloydbConnectionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAlloydbConnectionConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + value) { + if (alloydbConnectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alloydbConnectionConfig_ = value; + } else { + alloydbConnectionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAlloydbConnectionConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder + builderForValue) { + if (alloydbConnectionConfigBuilder_ == null) { + alloydbConnectionConfig_ = builderForValue.build(); + } else { + alloydbConnectionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAlloydbConnectionConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + value) { + if (alloydbConnectionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && alloydbConnectionConfig_ != null + && alloydbConnectionConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDefaultInstance()) { + getAlloydbConnectionConfigBuilder().mergeFrom(value); + } else { + alloydbConnectionConfig_ = value; + } + } else { + alloydbConnectionConfigBuilder_.mergeFrom(value); + } + if (alloydbConnectionConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAlloydbConnectionConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + alloydbConnectionConfig_ = null; + if (alloydbConnectionConfigBuilder_ != null) { + alloydbConnectionConfigBuilder_.dispose(); + alloydbConnectionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder + getAlloydbConnectionConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAlloydbConnectionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder + getAlloydbConnectionConfigOrBuilder() { + if (alloydbConnectionConfigBuilder_ != null) { + return alloydbConnectionConfigBuilder_.getMessageOrBuilder(); + } else { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } + } + + /** + * + * + *
+         * Required. Configuration for connecting to AlloyDB.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder> + internalGetAlloydbConnectionConfigFieldBuilder() { + if (alloydbConnectionConfigBuilder_ == null) { + alloydbConnectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfigOrBuilder>( + getAlloydbConnectionConfig(), getParentForChildren(), isClean()); + alloydbConnectionConfig_ = null; + } + return alloydbConnectionConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + alloydbAiNlConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder> + alloydbAiNlConfigBuilder_; + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the alloydbAiNlConfig field is set. + */ + public boolean hasAlloydbAiNlConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The alloydbAiNlConfig. + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getAlloydbAiNlConfig() { + if (alloydbAiNlConfigBuilder_ == null) { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } else { + return alloydbAiNlConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlloydbAiNlConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + value) { + if (alloydbAiNlConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alloydbAiNlConfig_ = value; + } else { + alloydbAiNlConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlloydbAiNlConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder + builderForValue) { + if (alloydbAiNlConfigBuilder_ == null) { + alloydbAiNlConfig_ = builderForValue.build(); + } else { + alloydbAiNlConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAlloydbAiNlConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + value) { + if (alloydbAiNlConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && alloydbAiNlConfig_ != null + && alloydbAiNlConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.getDefaultInstance()) { + getAlloydbAiNlConfigBuilder().mergeFrom(value); + } else { + alloydbAiNlConfig_ = value; + } + } else { + alloydbAiNlConfigBuilder_.mergeFrom(value); + } + if (alloydbAiNlConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAlloydbAiNlConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + alloydbAiNlConfig_ = null; + if (alloydbAiNlConfigBuilder_ != null) { + alloydbAiNlConfigBuilder_.dispose(); + alloydbAiNlConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder + getAlloydbAiNlConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAlloydbAiNlConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder + getAlloydbAiNlConfigOrBuilder() { + if (alloydbAiNlConfigBuilder_ != null) { + return alloydbAiNlConfigBuilder_.getMessageOrBuilder(); + } else { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } + } + + /** + * + * + *
+         * Optional. Configuration for Magic.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder> + internalGetAlloydbAiNlConfigFieldBuilder() { + if (alloydbAiNlConfigBuilder_ == null) { + alloydbAiNlConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfigOrBuilder>( + getAlloydbAiNlConfig(), getParentForChildren(), isClean()); + alloydbAiNlConfig_ = null; + } + return alloydbAiNlConfigBuilder_; + } + + private com.google.protobuf.LazyStringArrayList returnedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReturnedFieldsIsMutable() { + if (!returnedFields_.isModifiable()) { + returnedFields_ = new com.google.protobuf.LazyStringArrayList(returnedFields_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the returnedFields. + */ + public com.google.protobuf.ProtocolStringList getReturnedFieldsList() { + returnedFields_.makeImmutable(); + return returnedFields_; + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of returnedFields. + */ + public int getReturnedFieldsCount() { + return returnedFields_.size(); + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The returnedFields at the given index. + */ + public java.lang.String getReturnedFields(int index) { + return returnedFields_.get(index); + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the returnedFields at the given index. + */ + public com.google.protobuf.ByteString getReturnedFieldsBytes(int index) { + return returnedFields_.getByteString(index); + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The returnedFields to set. + * @return This builder for chaining. + */ + public Builder setReturnedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReturnedFieldsIsMutable(); + returnedFields_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The returnedFields to add. + * @return This builder for chaining. + */ + public Builder addReturnedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReturnedFieldsIsMutable(); + returnedFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The returnedFields to add. + * @return This builder for chaining. + */ + public Builder addAllReturnedFields(java.lang.Iterable values) { + ensureReturnedFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, returnedFields_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReturnedFields() { + returnedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Fields to be returned in the search results. If empty, all
+         * fields will be returned.
+         * 
+ * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the returnedFields to add. + * @return This builder for chaining. + */ + public Builder addReturnedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReturnedFieldsIsMutable(); + returnedFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + private static final com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ThirdPartyOauthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The type of the application. E.g., "jira", "box", etc.
+       * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appName. + */ + java.lang.String getAppName(); + + /** + * + * + *
+       * Optional. The type of the application. E.g., "jira", "box", etc.
+       * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appName. + */ + com.google.protobuf.ByteString getAppNameBytes(); + + /** + * + * + *
+       * Optional. The instance name identifying the 3P app, e.g.,
+       * "<tenant>-my". This is different from the instance_uri which is the
+       * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+       * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instanceName. + */ + java.lang.String getInstanceName(); + + /** + * + * + *
+       * Optional. The instance name identifying the 3P app, e.g.,
+       * "<tenant>-my". This is different from the instance_uri which is the
+       * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+       * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instanceName. + */ + com.google.protobuf.ByteString getInstanceNameBytes(); + } + + /** + * + * + *
+     * Stores information for third party applicationOAuth.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig} + */ + public static final class ThirdPartyOauthConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + ThirdPartyOauthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ThirdPartyOauthConfig"); + } + + // Use ThirdPartyOauthConfig.newBuilder() to construct. + private ThirdPartyOauthConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ThirdPartyOauthConfig() { + appName_ = ""; + instanceName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder.class); + } + + public static final int APP_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appName_ = ""; + + /** + * + * + *
+       * Optional. The type of the application. E.g., "jira", "box", etc.
+       * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appName. + */ + @java.lang.Override + public java.lang.String getAppName() { + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The type of the application. E.g., "jira", "box", etc.
+       * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppNameBytes() { + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceName_ = ""; + + /** + * + * + *
+       * Optional. The instance name identifying the 3P app, e.g.,
+       * "<tenant>-my". This is different from the instance_uri which is the
+       * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+       * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instanceName. + */ + @java.lang.Override + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The instance name identifying the 3P app, e.g.,
+       * "<tenant>-my". This is different from the instance_uri which is the
+       * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+       * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instanceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, instanceName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, instanceName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + other = + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + obj; + + if (!getAppName().equals(other.getAppName())) return false; + if (!getInstanceName().equals(other.getInstanceName())) 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) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInstanceName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Stores information for third party applicationOAuth.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appName_ = ""; + instanceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + build() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + result = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appName_ = appName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceName_ = instanceName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance()) return this; + if (!other.getAppName().isEmpty()) { + appName_ = other.appName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInstanceName().isEmpty()) { + instanceName_ = other.instanceName_; + 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: + { + appName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + instanceName_ = 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 appName_ = ""; + + /** + * + * + *
+         * Optional. The type of the application. E.g., "jira", "box", etc.
+         * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appName. + */ + public java.lang.String getAppName() { + java.lang.Object ref = appName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. The type of the application. E.g., "jira", "box", etc.
+         * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appName. + */ + public com.google.protobuf.ByteString getAppNameBytes() { + java.lang.Object ref = appName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. The type of the application. E.g., "jira", "box", etc.
+         * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appName to set. + * @return This builder for chaining. + */ + public Builder setAppName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The type of the application. E.g., "jira", "box", etc.
+         * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppName() { + appName_ = getDefaultInstance().getAppName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The type of the application. E.g., "jira", "box", etc.
+         * 
+ * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appName to set. + * @return This builder for chaining. + */ + public Builder setAppNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object instanceName_ = ""; + + /** + * + * + *
+         * Optional. The instance name identifying the 3P app, e.g.,
+         * "<tenant>-my". This is different from the instance_uri which is the
+         * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+         * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instanceName. + */ + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. The instance name identifying the 3P app, e.g.,
+         * "<tenant>-my". This is different from the instance_uri which is the
+         * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+         * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instanceName. + */ + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. The instance name identifying the 3P app, e.g.,
+         * "<tenant>-my". This is different from the instance_uri which is the
+         * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+         * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The instance name identifying the 3P app, e.g.,
+         * "<tenant>-my". This is different from the instance_uri which is the
+         * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+         * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceName() { + instanceName_ = getDefaultInstance().getInstanceName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The instance name identifying the 3P app, e.g.,
+         * "<tenant>-my". This is different from the instance_uri which is the
+         * full URL of the 3P app e.g., "https://<tenant>-my.sharepoint.com".
+         * 
+ * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + private static final com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThirdPartyOauthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NotebooklmConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. Search config name.
+       *
+       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+       * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchConfig. + */ + java.lang.String getSearchConfig(); + + /** + * + * + *
+       * Required. Search config name.
+       *
+       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+       * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchConfig. + */ + com.google.protobuf.ByteString getSearchConfigBytes(); + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the notebooks. + */ + java.util.List getNotebooksList(); + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of notebooks. + */ + int getNotebooksCount(); + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The notebooks at the given index. + */ + java.lang.String getNotebooks(int index); + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the notebooks at the given index. + */ + com.google.protobuf.ByteString getNotebooksBytes(int index); + } + + /** + * + * + *
+     * Config for connecting to NotebookLM Enterprise.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig} + */ + public static final class NotebooklmConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + NotebooklmConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "NotebooklmConfig"); + } + + // Use NotebooklmConfig.newBuilder() to construct. + private NotebooklmConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NotebooklmConfig() { + searchConfig_ = ""; + notebooks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .Builder.class); + } + + public static final int SEARCH_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object searchConfig_ = ""; + + /** + * + * + *
+       * Required. Search config name.
+       *
+       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+       * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchConfig. + */ + @java.lang.Override + public java.lang.String getSearchConfig() { + java.lang.Object ref = searchConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchConfig_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. Search config name.
+       *
+       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+       * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchConfigBytes() { + java.lang.Object ref = searchConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NOTEBOOKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList notebooks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the notebooks. + */ + public com.google.protobuf.ProtocolStringList getNotebooksList() { + return notebooks_; + } + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of notebooks. + */ + public int getNotebooksCount() { + return notebooks_.size(); + } + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The notebooks at the given index. + */ + public java.lang.String getNotebooks(int index) { + return notebooks_.get(index); + } + + /** + * + * + *
+       * Optional. Restricts this data store to the given notebooks. When empty,
+       * the data store covers every notebook the querying user can access,
+       * which is the existing behaviour.
+       *
+       * Each entry is a full notebook resource name, such as
+       * `projects/*/locations/*/notebooks/*`.
+       *
+       * Scoping is enforced on results as well as requested upstream, so a
+       * notebook outside this list cannot appear in a search response through
+       * this data store even if the backend returns one.
+       * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the notebooks at the given index. + */ + public com.google.protobuf.ByteString getNotebooksBytes(int index) { + return notebooks_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, searchConfig_); + } + for (int i = 0; i < notebooks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, notebooks_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, searchConfig_); + } + { + int dataSize = 0; + for (int i = 0; i < notebooks_.size(); i++) { + dataSize += computeStringSizeNoTag(notebooks_.getRaw(i)); + } + size += dataSize; + size += 1 * getNotebooksList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig other = + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + obj; + + if (!getSearchConfig().equals(other.getSearchConfig())) return false; + if (!getNotebooksList().equals(other.getNotebooksList())) 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) + SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSearchConfig().hashCode(); + if (getNotebooksCount() > 0) { + hash = (37 * hash) + NOTEBOOKS_FIELD_NUMBER; + hash = (53 * hash) + getNotebooksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Config for connecting to NotebookLM Enterprise.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchConfig_ = ""; + notebooks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + build() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + result = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchConfig_ = searchConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + notebooks_.makeImmutable(); + result.notebooks_ = notebooks_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance()) return this; + if (!other.getSearchConfig().isEmpty()) { + searchConfig_ = other.searchConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.notebooks_.isEmpty()) { + if (notebooks_.isEmpty()) { + notebooks_ = other.notebooks_; + bitField0_ |= 0x00000002; + } else { + ensureNotebooksIsMutable(); + notebooks_.addAll(other.notebooks_); + } + 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: + { + searchConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNotebooksIsMutable(); + notebooks_.add(s); + 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 searchConfig_ = ""; + + /** + * + * + *
+         * Required. Search config name.
+         *
+         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+         * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchConfig. + */ + public java.lang.String getSearchConfig() { + java.lang.Object ref = searchConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. Search config name.
+         *
+         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+         * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchConfig. + */ + public com.google.protobuf.ByteString getSearchConfigBytes() { + java.lang.Object ref = searchConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. Search config name.
+         *
+         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+         * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The searchConfig to set. + * @return This builder for chaining. + */ + public Builder setSearchConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + searchConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Search config name.
+         *
+         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+         * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSearchConfig() { + searchConfig_ = getDefaultInstance().getSearchConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Search config name.
+         *
+         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
+         * 
+ * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for searchConfig to set. + * @return This builder for chaining. + */ + public Builder setSearchConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList notebooks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNotebooksIsMutable() { + if (!notebooks_.isModifiable()) { + notebooks_ = new com.google.protobuf.LazyStringArrayList(notebooks_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the notebooks. + */ + public com.google.protobuf.ProtocolStringList getNotebooksList() { + notebooks_.makeImmutable(); + return notebooks_; + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of notebooks. + */ + public int getNotebooksCount() { + return notebooks_.size(); + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The notebooks at the given index. + */ + public java.lang.String getNotebooks(int index) { + return notebooks_.get(index); + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the notebooks at the given index. + */ + public com.google.protobuf.ByteString getNotebooksBytes(int index) { + return notebooks_.getByteString(index); + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The notebooks to set. + * @return This builder for chaining. + */ + public Builder setNotebooks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotebooksIsMutable(); + notebooks_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The notebooks to add. + * @return This builder for chaining. + */ + public Builder addNotebooks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotebooksIsMutable(); + notebooks_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The notebooks to add. + * @return This builder for chaining. + */ + public Builder addAllNotebooks(java.lang.Iterable values) { + ensureNotebooksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notebooks_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNotebooks() { + notebooks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Restricts this data store to the given notebooks. When empty,
+         * the data store covers every notebook the querying user can access,
+         * which is the existing behaviour.
+         *
+         * Each entry is a full notebook resource name, such as
+         * `projects/*/locations/*/notebooks/*`.
+         *
+         * Scoping is enforced on results as well as requested upstream, so a
+         * notebook outside this list cannot appear in a search response through
+         * this data store even if the backend returns one.
+         * 
+ * + * + * repeated string notebooks = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the notebooks to add. + * @return This builder for chaining. + */ + public Builder addNotebooksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNotebooksIsMutable(); + notebooks_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + private static final com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotebooklmConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dataSourceConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataSourceConfig_; + + public enum DataSourceConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALLOY_DB_CONFIG(1), + THIRD_PARTY_OAUTH_CONFIG(2), + NOTEBOOKLM_CONFIG(3), + DATASOURCECONFIG_NOT_SET(0); + private final int value; + + private DataSourceConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataSourceConfigCase valueOf(int value) { + return forNumber(value); + } + + public static DataSourceConfigCase forNumber(int value) { + switch (value) { + case 1: + return ALLOY_DB_CONFIG; + case 2: + return THIRD_PARTY_OAUTH_CONFIG; + case 3: + return NOTEBOOKLM_CONFIG; + case 0: + return DATASOURCECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataSourceConfigCase getDataSourceConfigCase() { + return DataSourceConfigCase.forNumber(dataSourceConfigCase_); + } + + public static final int ALLOY_DB_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
+     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return Whether the alloyDbConfig field is set. + */ + @java.lang.Override + public boolean hasAlloyDbConfig() { + return dataSourceConfigCase_ == 1; + } + + /** + * + * + *
+     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return The alloyDbConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + getAlloyDbConfig() { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + + /** + * + * + *
+     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder + getAlloyDbConfigOrBuilder() { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + + public static final int THIRD_PARTY_OAUTH_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Third Party OAuth config. If set, this DataStore is connected to a
+     * third party application.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return Whether the thirdPartyOauthConfig field is set. + */ + @java.lang.Override + public boolean hasThirdPartyOauthConfig() { + return dataSourceConfigCase_ == 2; + } + + /** + * + * + *
+     * Third Party OAuth config. If set, this DataStore is connected to a
+     * third party application.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return The thirdPartyOauthConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + getThirdPartyOauthConfig() { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + + /** + * + * + *
+     * Third Party OAuth config. If set, this DataStore is connected to a
+     * third party application.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder + getThirdPartyOauthConfigOrBuilder() { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + + public static final int NOTEBOOKLM_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
+     * NotebookLM config. If set, this DataStore is connected to
+     * NotebookLM Enterprise.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return Whether the notebooklmConfig field is set. + */ + @java.lang.Override + public boolean hasNotebooklmConfig() { + return dataSourceConfigCase_ == 3; + } + + /** + * + * + *
+     * NotebookLM config. If set, this DataStore is connected to
+     * NotebookLM Enterprise.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return The notebooklmConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + getNotebooklmConfig() { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .getDefaultInstance(); + } + + /** + * + * + *
+     * NotebookLM config. If set, this DataStore is connected to
+     * NotebookLM Enterprise.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataSourceConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig) + dataSourceConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataSourceConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig other = + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) obj; + + if (!getDataSourceConfigCase().equals(other.getDataSourceConfigCase())) return false; + switch (dataSourceConfigCase_) { + case 1: + if (!getAlloyDbConfig().equals(other.getAlloyDbConfig())) return false; + break; + case 2: + if (!getThirdPartyOauthConfig().equals(other.getThirdPartyOauthConfig())) return false; + break; + case 3: + if (!getNotebooklmConfig().equals(other.getNotebooklmConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataSourceConfigCase_) { + case 1: + hash = (37 * hash) + ALLOY_DB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlloyDbConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + THIRD_PARTY_OAUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getThirdPartyOauthConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + NOTEBOOKLM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNotebooklmConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Stores information for federated search.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.class, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (alloyDbConfigBuilder_ != null) { + alloyDbConfigBuilder_.clear(); + } + if (thirdPartyOauthConfigBuilder_ != null) { + thirdPartyOauthConfigBuilder_.clear(); + } + if (notebooklmConfigBuilder_ != null) { + notebooklmConfigBuilder_.clear(); + } + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig build() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig result = + new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig result) { + result.dataSourceConfigCase_ = dataSourceConfigCase_; + result.dataSourceConfig_ = this.dataSourceConfig_; + if (dataSourceConfigCase_ == 1 && alloyDbConfigBuilder_ != null) { + result.dataSourceConfig_ = alloyDbConfigBuilder_.build(); + } + if (dataSourceConfigCase_ == 2 && thirdPartyOauthConfigBuilder_ != null) { + result.dataSourceConfig_ = thirdPartyOauthConfigBuilder_.build(); + } + if (dataSourceConfigCase_ == 3 && notebooklmConfigBuilder_ != null) { + result.dataSourceConfig_ = notebooklmConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .getDefaultInstance()) return this; + switch (other.getDataSourceConfigCase()) { + case ALLOY_DB_CONFIG: + { + mergeAlloyDbConfig(other.getAlloyDbConfig()); + break; + } + case THIRD_PARTY_OAUTH_CONFIG: + { + mergeThirdPartyOauthConfig(other.getThirdPartyOauthConfig()); + break; + } + case NOTEBOOKLM_CONFIG: + { + mergeNotebooklmConfig(other.getNotebooklmConfig()); + break; + } + case DATASOURCECONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetAlloyDbConfigFieldBuilder().getBuilder(), extensionRegistry); + dataSourceConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetThirdPartyOauthConfigFieldBuilder().getBuilder(), + extensionRegistry); + dataSourceConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetNotebooklmConfigFieldBuilder().getBuilder(), extensionRegistry); + dataSourceConfigCase_ = 3; + 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 dataSourceConfigCase_ = 0; + private java.lang.Object dataSourceConfig_; + + public DataSourceConfigCase getDataSourceConfigCase() { + return DataSourceConfigCase.forNumber(dataSourceConfigCase_); + } + + public Builder clearDataSourceConfig() { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder> + alloyDbConfigBuilder_; + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return Whether the alloyDbConfig field is set. + */ + @java.lang.Override + public boolean hasAlloyDbConfig() { + return dataSourceConfigCase_ == 1; + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return The alloyDbConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + getAlloyDbConfig() { + if (alloyDbConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } else { + if (dataSourceConfigCase_ == 1) { + return alloyDbConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder setAlloyDbConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig value) { + if (alloyDbConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceConfig_ = value; + onChanged(); + } else { + alloyDbConfigBuilder_.setMessage(value); + } + dataSourceConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder setAlloyDbConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig.Builder + builderForValue) { + if (alloyDbConfigBuilder_ == null) { + dataSourceConfig_ = builderForValue.build(); + onChanged(); + } else { + alloyDbConfigBuilder_.setMessage(builderForValue.build()); + } + dataSourceConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder mergeAlloyDbConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig value) { + if (alloyDbConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 1 + && dataSourceConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance()) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .newBuilder( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSourceConfig_ = value; + } + onChanged(); + } else { + if (dataSourceConfigCase_ == 1) { + alloyDbConfigBuilder_.mergeFrom(value); + } else { + alloyDbConfigBuilder_.setMessage(value); + } + } + dataSourceConfigCase_ = 1; + return this; + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder clearAlloyDbConfig() { + if (alloyDbConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 1) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + } + } else { + if (dataSourceConfigCase_ == 1) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + } + alloyDbConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder + getAlloyDbConfigBuilder() { + return internalGetAlloyDbConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder + getAlloyDbConfigOrBuilder() { + if ((dataSourceConfigCase_ == 1) && (alloyDbConfigBuilder_ != null)) { + return alloyDbConfigBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder> + internalGetAlloyDbConfigFieldBuilder() { + if (alloyDbConfigBuilder_ == null) { + if (!(dataSourceConfigCase_ == 1)) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + alloyDbConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_, + getParentForChildren(), + isClean()); + dataSourceConfig_ = null; + } + dataSourceConfigCase_ = 1; + onChanged(); + return alloyDbConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder> + thirdPartyOauthConfigBuilder_; + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return Whether the thirdPartyOauthConfig field is set. + */ + @java.lang.Override + public boolean hasThirdPartyOauthConfig() { + return dataSourceConfigCase_ == 2; + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return The thirdPartyOauthConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getThirdPartyOauthConfig() { + if (thirdPartyOauthConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } else { + if (dataSourceConfigCase_ == 2) { + return thirdPartyOauthConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder setThirdPartyOauthConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + value) { + if (thirdPartyOauthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceConfig_ = value; + onChanged(); + } else { + thirdPartyOauthConfigBuilder_.setMessage(value); + } + dataSourceConfigCase_ = 2; + return this; + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder setThirdPartyOauthConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + .Builder + builderForValue) { + if (thirdPartyOauthConfigBuilder_ == null) { + dataSourceConfig_ = builderForValue.build(); + onChanged(); + } else { + thirdPartyOauthConfigBuilder_.setMessage(builderForValue.build()); + } + dataSourceConfigCase_ = 2; + return this; + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder mergeThirdPartyOauthConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + value) { + if (thirdPartyOauthConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 2 + && dataSourceConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance()) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.newBuilder( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSourceConfig_ = value; + } + onChanged(); + } else { + if (dataSourceConfigCase_ == 2) { + thirdPartyOauthConfigBuilder_.mergeFrom(value); + } else { + thirdPartyOauthConfigBuilder_.setMessage(value); + } + } + dataSourceConfigCase_ = 2; + return this; + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder clearThirdPartyOauthConfig() { + if (thirdPartyOauthConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 2) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + } + } else { + if (dataSourceConfigCase_ == 2) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + } + thirdPartyOauthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder + getThirdPartyOauthConfigBuilder() { + return internalGetThirdPartyOauthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder + getThirdPartyOauthConfigOrBuilder() { + if ((dataSourceConfigCase_ == 2) && (thirdPartyOauthConfigBuilder_ != null)) { + return thirdPartyOauthConfigBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Third Party OAuth config. If set, this DataStore is connected to a
+       * third party application.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder> + internalGetThirdPartyOauthConfigFieldBuilder() { + if (thirdPartyOauthConfigBuilder_ == null) { + if (!(dataSourceConfigCase_ == 2)) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + thirdPartyOauthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_, + getParentForChildren(), + isClean()); + dataSourceConfig_ = null; + } + dataSourceConfigCase_ = 2; + onChanged(); + return thirdPartyOauthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder> + notebooklmConfigBuilder_; + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return Whether the notebooklmConfig field is set. + */ + @java.lang.Override + public boolean hasNotebooklmConfig() { + return dataSourceConfigCase_ == 3; + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return The notebooklmConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + getNotebooklmConfig() { + if (notebooklmConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } else { + if (dataSourceConfigCase_ == 3) { + return notebooklmConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceConfig_ = value; + onChanged(); + } else { + notebooklmConfigBuilder_.setMessage(value); + } + dataSourceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .Builder + builderForValue) { + if (notebooklmConfigBuilder_ == null) { + dataSourceConfig_ = builderForValue.build(); + onChanged(); + } else { + notebooklmConfigBuilder_.setMessage(builderForValue.build()); + } + dataSourceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder mergeNotebooklmConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 3 + && dataSourceConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance()) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .newBuilder( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSourceConfig_ = value; + } + onChanged(); + } else { + if (dataSourceConfigCase_ == 3) { + notebooklmConfigBuilder_.mergeFrom(value); + } else { + notebooklmConfigBuilder_.setMessage(value); + } + } + dataSourceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder clearNotebooklmConfig() { + if (notebooklmConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 3) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + } + } else { + if (dataSourceConfigCase_ == 3) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + } + notebooklmConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .Builder + getNotebooklmConfigBuilder() { + return internalGetNotebooklmConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + if ((dataSourceConfigCase_ == 3) && (notebooklmConfigBuilder_ != null)) { + return notebooklmConfigBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+       * NotebookLM config. If set, this DataStore is connected to
+       * NotebookLM Enterprise.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder> + internalGetNotebooklmConfigFieldBuilder() { + if (notebooklmConfigBuilder_ == null) { + if (!(dataSourceConfigCase_ == 3)) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfig + .getDefaultInstance(); + } + notebooklmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_, + getParentForChildren(), + isClean()); + dataSourceConfig_ = null; + } + dataSourceConfigCase_ = 3; + onChanged(); + return notebooklmConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig) + private static final com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FederatedSearchConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. Identifier. The full resource name of the data store.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. Identifier. The full resource name of the data store.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The data store display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The data store display name.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 INDUSTRY_VERTICAL_FIELD_NUMBER = 3; + private int industryVertical_ = 0; + + /** + * + * + *
+   * Immutable. The industry vertical that the data store registers.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } + + /** + * + * + *
+   * Immutable. The industry vertical that the data store registers.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; + } + + public static final int SOLUTION_TYPES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.SolutionType> + solutionTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.SolutionType>() { + public com.google.cloud.discoveryengine.v1.SolutionType convert(int from) { + com.google.cloud.discoveryengine.v1.SolutionType result = + com.google.cloud.discoveryengine.v1.SolutionType.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * The solutions that the data store enrolls. Available solutions for each
+   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+   *
+   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+   * solutions cannot be enrolled.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return A list containing the solutionTypes. + */ + @java.lang.Override + public java.util.List getSolutionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.SolutionType>(solutionTypes_, solutionTypes_converter_); + } + + /** + * + * + *
+   * The solutions that the data store enrolls. Available solutions for each
+   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+   *
+   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+   * solutions cannot be enrolled.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return The count of solutionTypes. + */ + @java.lang.Override + public int getSolutionTypesCount() { + return solutionTypes_.size(); + } + + /** + * + * + *
+   * The solutions that the data store enrolls. Available solutions for each
+   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+   *
+   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+   * solutions cannot be enrolled.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index of the element to return. + * @return The solutionTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionTypes(int index) { + return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); + } + + /** + * + * + *
+   * The solutions that the data store enrolls. Available solutions for each
+   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+   *
+   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+   * solutions cannot be enrolled.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return A list containing the enum numeric values on the wire for solutionTypes. + */ + @java.lang.Override + public java.util.List getSolutionTypesValueList() { + return solutionTypes_; + } + + /** + * + * + *
+   * The solutions that the data store enrolls. Available solutions for each
+   * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+   *
+   * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+   * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+   * solutions cannot be enrolled.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of solutionTypes at the given index. + */ + @java.lang.Override + public int getSolutionTypesValue(int index) { + return solutionTypes_.getInt(index); + } + + private int solutionTypesMemoizedSerializedSize; + + public static final int DEFAULT_SCHEMA_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultSchemaId_ = ""; + + /** + * + * + *
+   * Output only. The id of the default
+   * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+   * store.
+   * 
+ * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultSchemaId. + */ + @java.lang.Override + public java.lang.String getDefaultSchemaId() { + java.lang.Object ref = defaultSchemaId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSchemaId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The id of the default
+   * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+   * store.
+   * 
+ * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultSchemaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { + java.lang.Object ref = defaultSchemaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultSchemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_CONFIG_FIELD_NUMBER = 6; + private int contentConfig_ = 0; + + /** + * + * + *
+   * Immutable. The content config of the data store. If this field is unset,
+   * the server behavior defaults to
+   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for contentConfig. + */ + @java.lang.Override + public int getContentConfigValue() { + return contentConfig_; + } + + /** + * + * + *
+   * Immutable. The content config of the data store. If this field is unset,
+   * the server behavior defaults to
+   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The contentConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER = 12; + private com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advancedSiteSearchConfig_; + + /** + * + * + *
+   * Optional. Configuration for advanced site search.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the advancedSiteSearchConfig field is set. + */ + @java.lang.Override + public boolean hasAdvancedSiteSearchConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for advanced site search.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The advancedSiteSearchConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig + getAdvancedSiteSearchConfig() { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for advanced site search.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder + getAdvancedSiteSearchConfigOrBuilder() { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } + + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER = 34; + private com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + naturalLanguageQueryUnderstandingConfig_; + + /** + * + * + *
+   * Optional. Configuration for Natural Language Query Understanding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for Natural Language Query Understanding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig() { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for Natural Language Query Understanding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder() { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Input only. The KMS key to be used to protect this DataStore at creation
+   * time.
+   *
+   * Must be set for requests that need to comply with CMEK Org Policy
+   * protections.
+   *
+   * If this field is set and processed successfully, the DataStore will be
+   * protected by the KMS key, as indicated in the cmek_config field.
+   * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Input only. The KMS key to be used to protect this DataStore at creation
+   * time.
+   *
+   * Must be set for requests that need to comply with CMEK Org Policy
+   * protections.
+   *
+   * If this field is set and processed successfully, the DataStore will be
+   * protected by the KMS key, as indicated in the cmek_config field.
+   * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CMEK_CONFIG_FIELD_NUMBER = 18; + private com.google.cloud.discoveryengine.v1.CmekConfig cmekConfig_; + + /** + * + * + *
+   * Output only. CMEK-related information for the DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + @java.lang.Override + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. CMEK-related information for the DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + /** + * + * + *
+   * Output only. CMEK-related information for the DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + public static final int BILLING_ESTIMATION_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation billingEstimation_; + + /** + * + * + *
+   * Output only. Data size estimation for billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the billingEstimation field is set. + */ + @java.lang.Override + public boolean hasBillingEstimation() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Data size estimation for billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The billingEstimation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation() { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; + } + + /** + * + * + *
+   * Output only. Data size estimation for billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder() { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; + } + + public static final int ACL_ENABLED_FIELD_NUMBER = 24; + private boolean aclEnabled_ = false; + + /** + * + * + *
+   * Immutable. Whether data in the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
+   * If set to `true`, the source data must have ACL. ACL will be ingested when
+   * data is ingested by
+   * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
+   * methods.
+   *
+   * When ACL is enabled for the
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore],
+   * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
+   * calling
+   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+   * or
+   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+   *
+   * Currently ACL is only supported in `GENERIC` industry vertical with
+   * non-`PUBLIC_WEBSITE` content config.
+   * 
+ * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + + public static final int WORKSPACE_CONFIG_FIELD_NUMBER = 25; + private com.google.cloud.discoveryengine.v1.WorkspaceConfig workspaceConfig_; + + /** + * + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * @return Whether the workspaceConfig field is set. + */ + @java.lang.Override + public boolean hasWorkspaceConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * @return The workspaceConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; + } + + /** + * + * + *
+   * Config to store data store type configuration for workspace data. This
+   * must be set when
+   * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+   * is set as
+   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+   * 
+ * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder + getWorkspaceConfigOrBuilder() { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; + } + + public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; + private com.google.cloud.discoveryengine.v1.DocumentProcessingConfig documentProcessingConfig_; + + /** + * + * + *
+   * Configuration for Document understanding and enrichment.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Configuration for Document understanding and enrichment.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig + getDocumentProcessingConfig() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + /** + * + * + *
+   * Configuration for Document understanding and enrichment.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + public static final int STARTING_SCHEMA_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1.Schema startingSchema_; + + /** + * + * + *
+   * The start schema to use for this
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+   * it. If unset, a default vertical specialized schema will be used.
+   *
+   * This field is only used by
+   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+   * API, and will be ignored if used in other APIs. This field will be omitted
+   * from all API responses including
+   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+   * API. To retrieve a schema of a
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+   * API instead.
+   *
+   * The provided schema will be validated against certain rules on schema.
+   * Learn more from [this
+   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+   * 
+ * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + @java.lang.Override + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * The start schema to use for this
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+   * it. If unset, a default vertical specialized schema will be used.
+   *
+   * This field is only used by
+   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+   * API, and will be ignored if used in other APIs. This field will be omitted
+   * from all API responses including
+   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+   * API. To retrieve a schema of a
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+   * API instead.
+   *
+   * The provided schema will be validated against certain rules on schema.
+   * Learn more from [this
+   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+   * 
+ * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; + } + + /** + * + * + *
+   * The start schema to use for this
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+   * it. If unset, a default vertical specialized schema will be used.
+   *
+   * This field is only used by
+   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+   * API, and will be ignored if used in other APIs. This field will be omitted
+   * from all API responses including
+   * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+   * API. To retrieve a schema of a
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+   * API instead.
+   *
+   * The provided schema will be validated against certain rules on schema.
+   * Learn more from [this
+   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+   * 
+ * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; + } + + public static final int HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcareFhirConfig_; + + /** + * + * + *
+   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the healthcareFhirConfig field is set. + */ + @java.lang.Override + public boolean hasHealthcareFhirConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The healthcareFhirConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig() { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder() { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + + public static final int SERVING_CONFIG_DATA_STORE_FIELD_NUMBER = 30; + private com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + servingConfigDataStore_; + + /** + * + * + *
+   * Optional. Stores serving config at DataStore level.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the servingConfigDataStore field is set. + */ + @java.lang.Override + public boolean hasServingConfigDataStore() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Optional. Stores serving config at DataStore level.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The servingConfigDataStore. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + getServingConfigDataStore() { + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.getDefaultInstance() + : servingConfigDataStore_; + } + + /** + * + * + *
+   * Optional. Stores serving config at DataStore level.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder + getServingConfigDataStoreOrBuilder() { + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.getDefaultInstance() + : servingConfigDataStore_; + } + + public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 31; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
+   * Immutable. The fully qualified resource name of the associated
+   * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+   * `GSUITE` IdP. Format:
+   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+   * 
+ * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + @java.lang.Override + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. The fully qualified resource name of the associated
+   * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+   * `GSUITE` IdP. Format:
+   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+   * 
+ * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_INFOBOT_FAQ_DATA_STORE_FIELD_NUMBER = 37; + private boolean isInfobotFaqDataStore_ = false; + + /** + * + * + *
+   * Optional. If set, this DataStore is an Infobot FAQ DataStore.
+   * 
+ * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isInfobotFaqDataStore. + */ + @java.lang.Override + public boolean getIsInfobotFaqDataStore() { + return isInfobotFaqDataStore_; + } + + public static final int FEDERATED_SEARCH_CONFIG_FIELD_NUMBER = 38; + private com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + federatedSearchConfig_; + + /** + * + * + *
+   * Optional. If set, this DataStore is a federated search DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedSearchConfig field is set. + */ + @java.lang.Override + public boolean hasFederatedSearchConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. If set, this DataStore is a federated search DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedSearchConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + getFederatedSearchConfig() { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.getDefaultInstance() + : federatedSearchConfig_; + } + + /** + * + * + *
+   * Optional. If set, this DataStore is a federated search DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder + getFederatedSearchConfigOrBuilder() { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.getDefaultInstance() + : federatedSearchConfig_; + } + + public static final int CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER = 45; + private int configurableBillingApproach_ = 0; + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach. See
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; + } + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach. See
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach.UNRECOGNIZED + : result; + } + + public static final int CONFIGURABLE_BILLING_APPROACH_UPDATE_TIME_FIELD_NUMBER = 46; + private com.google.protobuf.Timestamp configurableBillingApproachUpdateTime_; + + /** + * + * + *
+   * Output only. The timestamp when configurable_billing_approach was last
+   * updated.
+   * 
+ * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingApproachUpdateTime field is set. + */ + @java.lang.Override + public boolean hasConfigurableBillingApproachUpdateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when configurable_billing_approach was last
+   * updated.
+   * 
+ * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingApproachUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getConfigurableBillingApproachUpdateTime() { + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when configurable_billing_approach was last
+   * updated.
+   * 
+ * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder + getConfigurableBillingApproachUpdateTimeOrBuilder() { + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; + } + + public static final int DATA_PROTECTION_POLICY_FIELD_NUMBER = 48; + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy dataProtectionPolicy_; + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, industryVertical_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (getSolutionTypesList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(solutionTypesMemoizedSerializedSize); + } + for (int i = 0; i < solutionTypes_.size(); i++) { + output.writeEnumNoTag(solutionTypes_.getInt(i)); + } + if (contentConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_CONFIG_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, contentConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultSchemaId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getAdvancedSiteSearchConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(18, getCmekConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(23, getBillingEstimation()); + } + if (aclEnabled_ != false) { + output.writeBool(24, aclEnabled_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(25, getWorkspaceConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(28, getStartingSchema()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(29, getHealthcareFhirConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(30, getServingConfigDataStore()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 31, identityMappingStore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 32, kmsKeyName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(34, getNaturalLanguageQueryUnderstandingConfig()); + } + if (isInfobotFaqDataStore_ != false) { + output.writeBool(37, isInfobotFaqDataStore_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(38, getFederatedSearchConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + output.writeEnum(45, configurableBillingApproach_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(46, getConfigurableBillingApproachUpdateTime()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(48, getDataProtectionPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, industryVertical_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < solutionTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(solutionTypes_.getInt(i)); + } + size += dataSize; + if (!getSolutionTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + solutionTypesMemoizedSerializedSize = dataSize; + } + if (contentConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_CONFIG_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, contentConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultSchemaId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getAdvancedSiteSearchConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getCmekConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getBillingEstimation()); + } + if (aclEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, aclEnabled_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getWorkspaceConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(29, getHealthcareFhirConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(30, getServingConfigDataStore()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(31, identityMappingStore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(32, kmsKeyName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getNaturalLanguageQueryUnderstandingConfig()); + } + if (isInfobotFaqDataStore_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(37, isInfobotFaqDataStore_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(38, getFederatedSearchConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(45, configurableBillingApproach_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46, getConfigurableBillingApproachUpdateTime()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDataProtectionPolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DataStore)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DataStore other = + (com.google.cloud.discoveryengine.v1.DataStore) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (industryVertical_ != other.industryVertical_) return false; + if (!solutionTypes_.equals(other.solutionTypes_)) return false; + if (!getDefaultSchemaId().equals(other.getDefaultSchemaId())) return false; + if (contentConfig_ != other.contentConfig_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasAdvancedSiteSearchConfig() != other.hasAdvancedSiteSearchConfig()) return false; + if (hasAdvancedSiteSearchConfig()) { + if (!getAdvancedSiteSearchConfig().equals(other.getAdvancedSiteSearchConfig())) return false; + } + if (hasNaturalLanguageQueryUnderstandingConfig() + != other.hasNaturalLanguageQueryUnderstandingConfig()) return false; + if (hasNaturalLanguageQueryUnderstandingConfig()) { + if (!getNaturalLanguageQueryUnderstandingConfig() + .equals(other.getNaturalLanguageQueryUnderstandingConfig())) return false; + } + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (hasCmekConfig() != other.hasCmekConfig()) return false; + if (hasCmekConfig()) { + if (!getCmekConfig().equals(other.getCmekConfig())) return false; + } + if (hasBillingEstimation() != other.hasBillingEstimation()) return false; + if (hasBillingEstimation()) { + if (!getBillingEstimation().equals(other.getBillingEstimation())) return false; + } + if (getAclEnabled() != other.getAclEnabled()) return false; + if (hasWorkspaceConfig() != other.hasWorkspaceConfig()) return false; + if (hasWorkspaceConfig()) { + if (!getWorkspaceConfig().equals(other.getWorkspaceConfig())) return false; + } + if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; + if (hasDocumentProcessingConfig()) { + if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; + } + if (hasStartingSchema() != other.hasStartingSchema()) return false; + if (hasStartingSchema()) { + if (!getStartingSchema().equals(other.getStartingSchema())) return false; + } + if (hasHealthcareFhirConfig() != other.hasHealthcareFhirConfig()) return false; + if (hasHealthcareFhirConfig()) { + if (!getHealthcareFhirConfig().equals(other.getHealthcareFhirConfig())) return false; + } + if (hasServingConfigDataStore() != other.hasServingConfigDataStore()) return false; + if (hasServingConfigDataStore()) { + if (!getServingConfigDataStore().equals(other.getServingConfigDataStore())) return false; + } + if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) return false; + if (getIsInfobotFaqDataStore() != other.getIsInfobotFaqDataStore()) return false; + if (hasFederatedSearchConfig() != other.hasFederatedSearchConfig()) return false; + if (hasFederatedSearchConfig()) { + if (!getFederatedSearchConfig().equals(other.getFederatedSearchConfig())) return false; + } + if (configurableBillingApproach_ != other.configurableBillingApproach_) return false; + if (hasConfigurableBillingApproachUpdateTime() + != other.hasConfigurableBillingApproachUpdateTime()) return false; + if (hasConfigurableBillingApproachUpdateTime()) { + if (!getConfigurableBillingApproachUpdateTime() + .equals(other.getConfigurableBillingApproachUpdateTime())) return false; + } + if (hasDataProtectionPolicy() != other.hasDataProtectionPolicy()) return false; + if (hasDataProtectionPolicy()) { + if (!getDataProtectionPolicy().equals(other.getDataProtectionPolicy())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; + hash = (53 * hash) + industryVertical_; + if (getSolutionTypesCount() > 0) { + hash = (37 * hash) + SOLUTION_TYPES_FIELD_NUMBER; + hash = (53 * hash) + solutionTypes_.hashCode(); + } + hash = (37 * hash) + DEFAULT_SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSchemaId().hashCode(); + hash = (37 * hash) + CONTENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + contentConfig_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasAdvancedSiteSearchConfig()) { + hash = (37 * hash) + ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedSiteSearchConfig().hashCode(); + } + if (hasNaturalLanguageQueryUnderstandingConfig()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingConfig().hashCode(); + } + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + if (hasCmekConfig()) { + hash = (37 * hash) + CMEK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfig().hashCode(); + } + if (hasBillingEstimation()) { + hash = (37 * hash) + BILLING_ESTIMATION_FIELD_NUMBER; + hash = (53 * hash) + getBillingEstimation().hashCode(); + } + hash = (37 * hash) + ACL_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAclEnabled()); + if (hasWorkspaceConfig()) { + hash = (37 * hash) + WORKSPACE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceConfig().hashCode(); + } + if (hasDocumentProcessingConfig()) { + hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); + } + if (hasStartingSchema()) { + hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStartingSchema().hashCode(); + } + if (hasHealthcareFhirConfig()) { + hash = (37 * hash) + HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHealthcareFhirConfig().hashCode(); + } + if (hasServingConfigDataStore()) { + hash = (37 * hash) + SERVING_CONFIG_DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getServingConfigDataStore().hashCode(); + } + hash = (37 * hash) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStore().hashCode(); + hash = (37 * hash) + IS_INFOBOT_FAQ_DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsInfobotFaqDataStore()); + if (hasFederatedSearchConfig()) { + hash = (37 * hash) + FEDERATED_SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFederatedSearchConfig().hashCode(); + } + hash = (37 * hash) + CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER; + hash = (53 * hash) + configurableBillingApproach_; + if (hasConfigurableBillingApproachUpdateTime()) { + hash = (37 * hash) + CONFIGURABLE_BILLING_APPROACH_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getConfigurableBillingApproachUpdateTime().hashCode(); + } + if (hasDataProtectionPolicy()) { + hash = (37 * hash) + DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataProtectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DataStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DataStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * DataStore captures global settings and configs at the DataStore level.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DataStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DataStore) + com.google.cloud.discoveryengine.v1.DataStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DataStore.class, + com.google.cloud.discoveryengine.v1.DataStore.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DataStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetAdvancedSiteSearchConfigFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder(); + internalGetCmekConfigFieldBuilder(); + internalGetBillingEstimationFieldBuilder(); + internalGetWorkspaceConfigFieldBuilder(); + internalGetDocumentProcessingConfigFieldBuilder(); + internalGetStartingSchemaFieldBuilder(); + internalGetHealthcareFhirConfigFieldBuilder(); + internalGetServingConfigDataStoreFieldBuilder(); + internalGetFederatedSearchConfigFieldBuilder(); + internalGetConfigurableBillingApproachUpdateTimeFieldBuilder(); + internalGetDataProtectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + industryVertical_ = 0; + solutionTypes_ = emptyIntList(); + defaultSchemaId_ = ""; + contentConfig_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + advancedSiteSearchConfig_ = null; + if (advancedSiteSearchConfigBuilder_ != null) { + advancedSiteSearchConfigBuilder_.dispose(); + advancedSiteSearchConfigBuilder_ = null; + } + naturalLanguageQueryUnderstandingConfig_ = null; + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); + naturalLanguageQueryUnderstandingConfigBuilder_ = null; + } + kmsKeyName_ = ""; + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } + billingEstimation_ = null; + if (billingEstimationBuilder_ != null) { + billingEstimationBuilder_.dispose(); + billingEstimationBuilder_ = null; + } + aclEnabled_ = false; + workspaceConfig_ = null; + if (workspaceConfigBuilder_ != null) { + workspaceConfigBuilder_.dispose(); + workspaceConfigBuilder_ = null; + } + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } + healthcareFhirConfig_ = null; + if (healthcareFhirConfigBuilder_ != null) { + healthcareFhirConfigBuilder_.dispose(); + healthcareFhirConfigBuilder_ = null; + } + servingConfigDataStore_ = null; + if (servingConfigDataStoreBuilder_ != null) { + servingConfigDataStoreBuilder_.dispose(); + servingConfigDataStoreBuilder_ = null; + } + identityMappingStore_ = ""; + isInfobotFaqDataStore_ = false; + federatedSearchConfig_ = null; + if (federatedSearchConfigBuilder_ != null) { + federatedSearchConfigBuilder_.dispose(); + federatedSearchConfigBuilder_ = null; + } + configurableBillingApproach_ = 0; + configurableBillingApproachUpdateTime_ = null; + if (configurableBillingApproachUpdateTimeBuilder_ != null) { + configurableBillingApproachUpdateTimeBuilder_.dispose(); + configurableBillingApproachUpdateTimeBuilder_ = null; + } + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore build() { + com.google.cloud.discoveryengine.v1.DataStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore buildPartial() { + com.google.cloud.discoveryengine.v1.DataStore result = + new com.google.cloud.discoveryengine.v1.DataStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DataStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.industryVertical_ = industryVertical_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + solutionTypes_.makeImmutable(); + result.solutionTypes_ = solutionTypes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.defaultSchemaId_ = defaultSchemaId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.contentConfig_ = contentConfig_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.advancedSiteSearchConfig_ = + advancedSiteSearchConfigBuilder_ == null + ? advancedSiteSearchConfig_ + : advancedSiteSearchConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } if (((from_bitField0_ & 0x00000100) != 0)) { result.naturalLanguageQueryUnderstandingConfig_ = naturalLanguageQueryUnderstandingConfigBuilder_ == null @@ -3752,402 +13005,1246 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.DataStore result) : naturalLanguageQueryUnderstandingConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.kmsKeyName_ = kmsKeyName_; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.billingEstimation_ = + billingEstimationBuilder_ == null + ? billingEstimation_ + : billingEstimationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.aclEnabled_ = aclEnabled_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.workspaceConfig_ = + workspaceConfigBuilder_ == null ? workspaceConfig_ : workspaceConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.documentProcessingConfig_ = + documentProcessingConfigBuilder_ == null + ? documentProcessingConfig_ + : documentProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.startingSchema_ = + startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.healthcareFhirConfig_ = + healthcareFhirConfigBuilder_ == null + ? healthcareFhirConfig_ + : healthcareFhirConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.servingConfigDataStore_ = + servingConfigDataStoreBuilder_ == null + ? servingConfigDataStore_ + : servingConfigDataStoreBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.identityMappingStore_ = identityMappingStore_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.isInfobotFaqDataStore_ = isInfobotFaqDataStore_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.federatedSearchConfig_ = + federatedSearchConfigBuilder_ == null + ? federatedSearchConfig_ + : federatedSearchConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.configurableBillingApproach_ = configurableBillingApproach_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.configurableBillingApproachUpdateTime_ = + configurableBillingApproachUpdateTimeBuilder_ == null + ? configurableBillingApproachUpdateTime_ + : configurableBillingApproachUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.dataProtectionPolicy_ = + dataProtectionPolicyBuilder_ == null + ? dataProtectionPolicy_ + : dataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DataStore) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DataStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataStore other) { + if (other == com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.industryVertical_ != 0) { + setIndustryVerticalValue(other.getIndustryVerticalValue()); + } + if (!other.solutionTypes_.isEmpty()) { + if (solutionTypes_.isEmpty()) { + solutionTypes_ = other.solutionTypes_; + solutionTypes_.makeImmutable(); + bitField0_ |= 0x00000008; + } else { + ensureSolutionTypesIsMutable(); + solutionTypes_.addAll(other.solutionTypes_); + } + onChanged(); + } + if (!other.getDefaultSchemaId().isEmpty()) { + defaultSchemaId_ = other.defaultSchemaId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.contentConfig_ != 0) { + setContentConfigValue(other.getContentConfigValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasAdvancedSiteSearchConfig()) { + mergeAdvancedSiteSearchConfig(other.getAdvancedSiteSearchConfig()); + } + if (other.hasNaturalLanguageQueryUnderstandingConfig()) { + mergeNaturalLanguageQueryUnderstandingConfig( + other.getNaturalLanguageQueryUnderstandingConfig()); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCmekConfig()) { + mergeCmekConfig(other.getCmekConfig()); + } + if (other.hasBillingEstimation()) { + mergeBillingEstimation(other.getBillingEstimation()); + } + if (other.getAclEnabled() != false) { + setAclEnabled(other.getAclEnabled()); + } + if (other.hasWorkspaceConfig()) { + mergeWorkspaceConfig(other.getWorkspaceConfig()); + } + if (other.hasDocumentProcessingConfig()) { + mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); + } + if (other.hasStartingSchema()) { + mergeStartingSchema(other.getStartingSchema()); + } + if (other.hasHealthcareFhirConfig()) { + mergeHealthcareFhirConfig(other.getHealthcareFhirConfig()); + } + if (other.hasServingConfigDataStore()) { + mergeServingConfigDataStore(other.getServingConfigDataStore()); + } + if (!other.getIdentityMappingStore().isEmpty()) { + identityMappingStore_ = other.identityMappingStore_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.getIsInfobotFaqDataStore() != false) { + setIsInfobotFaqDataStore(other.getIsInfobotFaqDataStore()); + } + if (other.hasFederatedSearchConfig()) { + mergeFederatedSearchConfig(other.getFederatedSearchConfig()); + } + if (other.configurableBillingApproach_ != 0) { + setConfigurableBillingApproachValue(other.getConfigurableBillingApproachValue()); + } + if (other.hasConfigurableBillingApproachUpdateTime()) { + mergeConfigurableBillingApproachUpdateTime( + other.getConfigurableBillingApproachUpdateTime()); + } + if (other.hasDataProtectionPolicy()) { + mergeDataProtectionPolicy(other.getDataProtectionPolicy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + industryVertical_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 40: + { + int tmpRaw = input.readEnum(); + ensureSolutionTypesIsMutable(); + solutionTypes_.addInt(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSolutionTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + solutionTypes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: + { + contentConfig_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + defaultSchemaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 98: + { + input.readMessage( + internalGetAdvancedSiteSearchConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 98 + case 146: + { + input.readMessage( + internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 146 + case 186: + { + input.readMessage( + internalGetBillingEstimationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 186 + case 192: + { + aclEnabled_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 192 + case 202: + { + input.readMessage( + internalGetWorkspaceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 202 + case 218: + { + input.readMessage( + internalGetDocumentProcessingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 218 + case 226: + { + input.readMessage( + internalGetStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 226 + case 234: + { + input.readMessage( + internalGetHealthcareFhirConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 234 + case 242: + { + input.readMessage( + internalGetServingConfigDataStoreFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 242 + case 250: + { + identityMappingStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 250 + case 258: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 258 + case 274: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 274 + case 296: + { + isInfobotFaqDataStore_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 296 + case 306: + { + input.readMessage( + internalGetFederatedSearchConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 306 + case 360: + { + configurableBillingApproach_ = input.readEnum(); + bitField0_ |= 0x00200000; + break; + } // case 360 + case 370: + { + input.readMessage( + internalGetConfigurableBillingApproachUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 370 + case 386: + { + input.readMessage( + internalGetDataProtectionPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 386 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Immutable. Identifier. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. Identifier. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Immutable. Identifier. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.billingEstimation_ = - billingEstimationBuilder_ == null - ? billingEstimation_ - : billingEstimationBuilder_.build(); - to_bitField0_ |= 0x00000010; + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Identifier. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Identifier. The full resource name of the data store.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.aclEnabled_ = aclEnabled_; + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.workspaceConfig_ = - workspaceConfigBuilder_ == null ? workspaceConfig_ : workspaceConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.documentProcessingConfig_ = - documentProcessingConfigBuilder_ == null - ? documentProcessingConfig_ - : documentProcessingConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.startingSchema_ = - startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); - to_bitField0_ |= 0x00000080; + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The data store display name.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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(); } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.healthcareFhirConfig_ = - healthcareFhirConfigBuilder_ == null - ? healthcareFhirConfig_ - : healthcareFhirConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int industryVertical_ = 0; + + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } + + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVerticalValue(int value) { + industryVertical_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.identityMappingStore_ = identityMappingStore_; + bitField0_ |= 0x00000004; + industryVertical_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The industry vertical that the data store registers.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearIndustryVertical() { + bitField0_ = (bitField0_ & ~0x00000004); + industryVertical_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); + + private void ensureSolutionTypesIsMutable() { + if (!solutionTypes_.isModifiable()) { + solutionTypes_ = makeMutableCopy(solutionTypes_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return A list containing the solutionTypes. + */ + public java.util.List getSolutionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.SolutionType>( + solutionTypes_, solutionTypes_converter_); + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return The count of solutionTypes. + */ + public int getSolutionTypesCount() { + return solutionTypes_.size(); + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index of the element to return. + * @return The solutionTypes at the given index. + */ + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionTypes(int index) { + return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index to set the value at. + * @param value The solutionTypes to set. + * @return This builder for chaining. + */ + public Builder setSolutionTypes( + int index, com.google.cloud.discoveryengine.v1.SolutionType value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + ensureSolutionTypesIsMutable(); + solutionTypes_.setInt(index, value.getNumber()); + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.DataStore) { - return mergeFrom((com.google.cloud.discoveryengine.v1.DataStore) other); - } else { - super.mergeFrom(other); - return this; + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param value The solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1.SolutionType value) { + if (value == null) { + throw new NullPointerException(); } + ensureSolutionTypesIsMutable(); + solutionTypes_.addInt(value.getNumber()); + onChanged(); + return this; } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DataStore other) { - if (other == com.google.cloud.discoveryengine.v1.DataStore.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.industryVertical_ != 0) { - setIndustryVerticalValue(other.getIndustryVerticalValue()); - } - if (!other.solutionTypes_.isEmpty()) { - if (solutionTypes_.isEmpty()) { - solutionTypes_ = other.solutionTypes_; - solutionTypes_.makeImmutable(); - bitField0_ |= 0x00000008; - } else { - ensureSolutionTypesIsMutable(); - solutionTypes_.addAll(other.solutionTypes_); - } - onChanged(); - } - if (!other.getDefaultSchemaId().isEmpty()) { - defaultSchemaId_ = other.defaultSchemaId_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.contentConfig_ != 0) { - setContentConfigValue(other.getContentConfigValue()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasAdvancedSiteSearchConfig()) { - mergeAdvancedSiteSearchConfig(other.getAdvancedSiteSearchConfig()); - } - if (other.hasNaturalLanguageQueryUnderstandingConfig()) { - mergeNaturalLanguageQueryUnderstandingConfig( - other.getNaturalLanguageQueryUnderstandingConfig()); - } - if (!other.getKmsKeyName().isEmpty()) { - kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasCmekConfig()) { - mergeCmekConfig(other.getCmekConfig()); - } - if (other.hasBillingEstimation()) { - mergeBillingEstimation(other.getBillingEstimation()); - } - if (other.getAclEnabled() != false) { - setAclEnabled(other.getAclEnabled()); - } - if (other.hasWorkspaceConfig()) { - mergeWorkspaceConfig(other.getWorkspaceConfig()); - } - if (other.hasDocumentProcessingConfig()) { - mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); - } - if (other.hasStartingSchema()) { - mergeStartingSchema(other.getStartingSchema()); - } - if (other.hasHealthcareFhirConfig()) { - mergeHealthcareFhirConfig(other.getHealthcareFhirConfig()); + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param values The solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSolutionTypes( + java.lang.Iterable values) { + ensureSolutionTypesIsMutable(); + for (com.google.cloud.discoveryengine.v1.SolutionType value : values) { + solutionTypes_.addInt(value.getNumber()); } - if (!other.getIdentityMappingStore().isEmpty()) { - identityMappingStore_ = other.identityMappingStore_; - bitField0_ |= 0x00020000; - onChanged(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return This builder for chaining. + */ + public Builder clearSolutionTypes() { + solutionTypes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @return A list containing the enum numeric values on the wire for solutionTypes. + */ + public java.util.List getSolutionTypesValueList() { + solutionTypes_.makeImmutable(); + return solutionTypes_; + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of solutionTypes at the given index. + */ + public int getSolutionTypesValue(int index) { + return solutionTypes_.getInt(index); + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for solutionTypes to set. + * @return This builder for chaining. + */ + public Builder setSolutionTypesValue(int index, int value) { + ensureSolutionTypesIsMutable(); + solutionTypes_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param value The enum numeric value on the wire for solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addSolutionTypesValue(int value) { + ensureSolutionTypesIsMutable(); + solutionTypes_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * The solutions that the data store enrolls. Available solutions for each
+     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
+     *
+     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
+     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
+     * solutions cannot be enrolled.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * @param values The enum numeric values on the wire for solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSolutionTypesValue(java.lang.Iterable values) { + ensureSolutionTypesIsMutable(); + for (int value : values) { + solutionTypes_.addInt(value); } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + private java.lang.Object defaultSchemaId_ = ""; + + /** + * + * + *
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+     * store.
+     * 
+ * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultSchemaId. + */ + public java.lang.String getDefaultSchemaId() { + java.lang.Object ref = defaultSchemaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSchemaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @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(); + /** + * + * + *
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+     * store.
+     * 
+ * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultSchemaId. + */ + public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { + java.lang.Object ref = defaultSchemaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultSchemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - industryVertical_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 40: - { - int tmpRaw = input.readEnum(); - ensureSolutionTypesIsMutable(); - solutionTypes_.addInt(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureSolutionTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - solutionTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 42 - case 48: - { - contentConfig_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - defaultSchemaId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 98: - { - input.readMessage( - internalGetAdvancedSiteSearchConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 98 - case 146: - { - input.readMessage( - internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 146 - case 186: - { - input.readMessage( - internalGetBillingEstimationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 186 - case 192: - { - aclEnabled_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 192 - case 202: - { - input.readMessage( - internalGetWorkspaceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 202 - case 218: - { - input.readMessage( - internalGetDocumentProcessingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 218 - case 226: - { - input.readMessage( - internalGetStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 226 - case 234: - { - input.readMessage( - internalGetHealthcareFhirConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 234 - case 250: - { - identityMappingStore_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; - break; - } // case 250 - case 258: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 258 - case 274: - { - input.readMessage( - internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 274 - 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 + } + + /** + * + * + *
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+     * store.
+     * 
+ * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The defaultSchemaId to set. + * @return This builder for chaining. + */ + public Builder setDefaultSchemaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultSchemaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** * * *
-     * Immutable. Identifier. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+     * store.
+     * 
* - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultSchemaId() { + defaultSchemaId_ = getDefaultInstance().getDefaultSchemaId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The id of the default
+     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
+     * store.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The name. + * @param value The bytes for defaultSchemaId to set. + * @return This builder for chaining. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder setDefaultSchemaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + defaultSchemaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } + private int contentConfig_ = 0; + /** * * *
-     * Immutable. Identifier. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @return The bytes for name. + * @return The enum numeric value on the wire for contentConfig. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getContentConfigValue() { + return contentConfig_; } /** * * *
-     * Immutable. Identifier. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @param value The name to set. + * @param value The enum numeric value on the wire for contentConfig to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; + public Builder setContentConfigValue(int value) { + contentConfig_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4156,153 +14253,146 @@ public Builder setName(java.lang.String value) { * * *
-     * Immutable. Identifier. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @return This builder for chaining. + * @return The contentConfig. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED + : result; } /** * * *
-     * Immutable. Identifier. The full resource name of the data store.
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * - * @param value The bytes for name to set. + * @param value The contentConfig to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setContentConfig( + com.google.cloud.discoveryengine.v1.DataStore.ContentConfig value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; + contentConfig_ = value.getNumber(); onChanged(); return this; } - private java.lang.Object displayName_ = ""; - /** * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Immutable. The content config of the data store. If this field is unset,
+     * the server behavior defaults to
+     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * * - * @return The displayName. + * @return This builder for chaining. */ - 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; - } + public Builder clearContentConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + contentConfig_ = 0; + onChanged(); + return this; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for displayName. + * @return Whether the createTime field is set. */ - 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; - } + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The displayName to set. - * @return This builder for chaining. + * @return The createTime. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4311,65 +14401,75 @@ public Builder clearDisplayName() { * * *
-     * Required. The data store display name.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 128
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; onChanged(); return this; } - private int industryVertical_ = 0; - /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for industryVertical. */ - @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; } /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for industryVertical to set. - * @return This builder for chaining. */ - public Builder setIndustryVerticalValue(int value) { - industryVertical_ = value; - bitField0_ |= 0x00000004; + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } onChanged(); return this; } @@ -4378,165 +14478,164 @@ public Builder setIndustryVerticalValue(int value) { * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The industryVertical. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1.IndustryVertical result = - com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); - return result == null - ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED - : result; + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The industryVertical to set. - * @return This builder for chaining. */ - public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - bitField0_ |= 0x00000004; - industryVertical_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Immutable. The industry vertical that the data store registers.
+     * Output only. Timestamp the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearIndustryVertical() { - bitField0_ = (bitField0_ & ~0x00000004); - industryVertical_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); - - private void ensureSolutionTypesIsMutable() { - if (!solutionTypes_.isModifiable()) { - solutionTypes_ = makeMutableCopy(solutionTypes_); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } - bitField0_ |= 0x00000008; + return createTimeBuilder_; } + private com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advancedSiteSearchConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig, + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder, + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder> + advancedSiteSearchConfigBuilder_; + /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return A list containing the solutionTypes. + * @return Whether the advancedSiteSearchConfig field is set. */ - public java.util.List getSolutionTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1.SolutionType>( - solutionTypes_, solutionTypes_converter_); + public boolean hasAdvancedSiteSearchConfig() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The count of solutionTypes. + * @return The advancedSiteSearchConfig. */ - public int getSolutionTypesCount() { - return solutionTypes_.size(); + public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig + getAdvancedSiteSearchConfig() { + if (advancedSiteSearchConfigBuilder_ == null) { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } else { + return advancedSiteSearchConfigBuilder_.getMessage(); + } } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index of the element to return. - * @return The solutionTypes at the given index. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.SolutionType getSolutionTypes(int index) { - return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); + public Builder setAdvancedSiteSearchConfig( + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig value) { + if (advancedSiteSearchConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedSiteSearchConfig_ = value; + } else { + advancedSiteSearchConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index to set the value at. - * @param value The solutionTypes to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSolutionTypes( - int index, com.google.cloud.discoveryengine.v1.SolutionType value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAdvancedSiteSearchConfig( + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder builderForValue) { + if (advancedSiteSearchConfigBuilder_ == null) { + advancedSiteSearchConfig_ = builderForValue.build(); + } else { + advancedSiteSearchConfigBuilder_.setMessage(builderForValue.build()); } - ensureSolutionTypesIsMutable(); - solutionTypes_.setInt(index, value.getNumber()); + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4545,26 +14644,32 @@ public Builder setSolutionTypes( * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param value The solutionTypes to add. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1.SolutionType value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeAdvancedSiteSearchConfig( + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig value) { + if (advancedSiteSearchConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && advancedSiteSearchConfig_ != null + && advancedSiteSearchConfig_ + != com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig + .getDefaultInstance()) { + getAdvancedSiteSearchConfigBuilder().mergeFrom(value); + } else { + advancedSiteSearchConfig_ = value; + } + } else { + advancedSiteSearchConfigBuilder_.mergeFrom(value); + } + if (advancedSiteSearchConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); } - ensureSolutionTypesIsMutable(); - solutionTypes_.addInt(value.getNumber()); - onChanged(); return this; } @@ -4572,24 +14677,19 @@ public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1.SolutionType * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param values The solutionTypes to add. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAllSolutionTypes( - java.lang.Iterable values) { - ensureSolutionTypesIsMutable(); - for (com.google.cloud.discoveryengine.v1.SolutionType value : values) { - solutionTypes_.addInt(value.getNumber()); + public Builder clearAdvancedSiteSearchConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + advancedSiteSearchConfig_ = null; + if (advancedSiteSearchConfigBuilder_ != null) { + advancedSiteSearchConfigBuilder_.dispose(); + advancedSiteSearchConfigBuilder_ = null; } onChanged(); return this; @@ -4599,214 +14699,221 @@ public Builder addAllSolutionTypes( * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSolutionTypes() { - solutionTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); + public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder + getAdvancedSiteSearchConfigBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return this; + return internalGetAdvancedSiteSearchConfigFieldBuilder().getBuilder(); } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @return A list containing the enum numeric values on the wire for solutionTypes. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getSolutionTypesValueList() { - solutionTypes_.makeImmutable(); - return solutionTypes_; + public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder + getAdvancedSiteSearchConfigOrBuilder() { + if (advancedSiteSearchConfigBuilder_ != null) { + return advancedSiteSearchConfigBuilder_.getMessageOrBuilder(); + } else { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for advanced site search.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of solutionTypes at the given index. + * + * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public int getSolutionTypesValue(int index) { - return solutionTypes_.getInt(index); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig, + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder, + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder> + internalGetAdvancedSiteSearchConfigFieldBuilder() { + if (advancedSiteSearchConfigBuilder_ == null) { + advancedSiteSearchConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig, + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder, + com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder>( + getAdvancedSiteSearchConfig(), getParentForChildren(), isClean()); + advancedSiteSearchConfig_ = null; + } + return advancedSiteSearchConfigBuilder_; } + private com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + naturalLanguageQueryUnderstandingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder> + naturalLanguageQueryUnderstandingConfigBuilder_; + /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for solutionTypes to set. - * @return This builder for chaining. + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. */ - public Builder setSolutionTypesValue(int index, int value) { - ensureSolutionTypesIsMutable(); - solutionTypes_.setInt(index, value); - onChanged(); - return this; + public boolean hasNaturalLanguageQueryUnderstandingConfig() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The enum numeric value on the wire for solutionTypes to add. - * @return This builder for chaining. + * @return The naturalLanguageQueryUnderstandingConfig. */ - public Builder addSolutionTypesValue(int value) { - ensureSolutionTypesIsMutable(); - solutionTypes_.addInt(value); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } else { + return naturalLanguageQueryUnderstandingConfigBuilder_.getMessage(); + } } /** * * *
-     * The solutions that the data store enrolls. Available solutions for each
-     * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
-     *
-     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
-     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
-     * solutions cannot be enrolled.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * - * @param values The enum numeric values on the wire for solutionTypes to add. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAllSolutionTypesValue(java.lang.Iterable values) { - ensureSolutionTypesIsMutable(); - for (int value : values) { - solutionTypes_.addInt(value); + public Builder setNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig value) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingConfig_ = value; + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00000100; onChanged(); return this; } - private java.lang.Object defaultSchemaId_ = ""; - /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-     * store.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The defaultSchemaId. + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getDefaultSchemaId() { - java.lang.Object ref = defaultSchemaId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSchemaId_ = s; - return s; + public Builder setNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + naturalLanguageQueryUnderstandingConfig_ = builderForValue.build(); } else { - return (java.lang.String) ref; + naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-     * store.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for defaultSchemaId. + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { - java.lang.Object ref = defaultSchemaId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultSchemaId_ = b; - return b; + public Builder mergeNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig value) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && naturalLanguageQueryUnderstandingConfig_ != null + && naturalLanguageQueryUnderstandingConfig_ + != com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingConfigBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingConfig_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + naturalLanguageQueryUnderstandingConfigBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); } + return this; } /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-     * store.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The defaultSchemaId to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDefaultSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearNaturalLanguageQueryUnderstandingConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + naturalLanguageQueryUnderstandingConfig_ = null; + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); + naturalLanguageQueryUnderstandingConfigBuilder_ = null; } - defaultSchemaId_ = value; - bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4815,139 +14922,184 @@ public Builder setDefaultSchemaId(java.lang.String value) { * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-     * store.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearDefaultSchemaId() { - defaultSchemaId_ = getDefaultInstance().getDefaultSchemaId(); - bitField0_ = (bitField0_ & ~0x00000010); + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder + getNaturalLanguageQueryUnderstandingConfigBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return this; + return internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The id of the default
-     * [Schema][google.cloud.discoveryengine.v1.Schema] associated to this data
-     * store.
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for defaultSchemaId to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDefaultSchemaIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + return naturalLanguageQueryUnderstandingConfigBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; } - checkByteStringIsUtf8(value); - defaultSchemaId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; } - private int contentConfig_ = 0; - /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Optional. Configuration for Natural Language Query Understanding.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for contentConfig. */ - @java.lang.Override - public int getContentConfigValue() { - return contentConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder> + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + naturalLanguageQueryUnderstandingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1 + .NaturalLanguageQueryUnderstandingConfigOrBuilder>( + getNaturalLanguageQueryUnderstandingConfig(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingConfig_ = null; + } + return naturalLanguageQueryUnderstandingConfigBuilder_; } + private java.lang.Object kmsKeyName_ = ""; + /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Input only. The KMS key to be used to protect this DataStore at creation
+     * time.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStore will be
+     * protected by the KMS key, as indicated in the cmek_config field.
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @param value The enum numeric value on the wire for contentConfig to set. - * @return This builder for chaining. + * @return The kmsKeyName. */ - public Builder setContentConfigValue(int value) { - contentConfig_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Input only. The KMS key to be used to protect this DataStore at creation
+     * time.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStore will be
+     * protected by the KMS key, as indicated in the cmek_config field.
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @return The contentConfig. + * @return The bytes for kmsKeyName. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.DataStore.ContentConfig getContentConfig() { - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig result = - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.forNumber(contentConfig_); - return result == null - ? com.google.cloud.discoveryengine.v1.DataStore.ContentConfig.UNRECOGNIZED - : result; + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Input only. The KMS key to be used to protect this DataStore at creation
+     * time.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStore will be
+     * protected by the KMS key, as indicated in the cmek_config field.
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @param value The contentConfig to set. + * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setContentConfig( - com.google.cloud.discoveryengine.v1.DataStore.ContentConfig value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; - contentConfig_ = value.getNumber(); + kmsKeyName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Input only. The KMS key to be used to protect this DataStore at creation
+     * time.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStore will be
+     * protected by the KMS key, as indicated in the cmek_config field.
+     * 
+ * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4956,70 +15108,76 @@ public Builder setContentConfig( * * *
-     * Immutable. The content config of the data store. If this field is unset,
-     * the server behavior defaults to
-     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
+     * Input only. The KMS key to be used to protect this DataStore at creation
+     * time.
+     *
+     * Must be set for requests that need to comply with CMEK Org Policy
+     * protections.
+     *
+     * If this field is set and processed successfully, the DataStore will be
+     * protected by the KMS key, as indicated in the cmek_config field.
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * + * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder clearContentConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - contentConfig_ = 0; + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private com.google.protobuf.Timestamp createTime_; + private com.google.cloud.discoveryengine.v1.CmekConfig cmekConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.cloud.discoveryengine.v1.CmekConfig, + com.google.cloud.discoveryengine.v1.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder> + cmekConfigBuilder_; /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the createTime field is set. + * @return Whether the cmekConfig field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The createTime. + * @return The cmekConfig. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig() { + if (cmekConfigBuilder_ == null) { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; } else { - return createTimeBuilder_.getMessage(); + return cmekConfigBuilder_.getMessage(); } } @@ -5027,24 +15185,23 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { + if (cmekConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + cmekConfig_ = value; } else { - createTimeBuilder_.setMessage(value); + cmekConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5053,21 +15210,21 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public Builder setCmekConfig( + com.google.cloud.discoveryengine.v1.CmekConfig.Builder builderForValue) { + if (cmekConfigBuilder_ == null) { + cmekConfig_ = builderForValue.build(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + cmekConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5076,28 +15233,27 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); + public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && cmekConfig_ != null + && cmekConfig_ != com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance()) { + getCmekConfigBuilder().mergeFrom(value); } else { - createTime_ = value; + cmekConfig_ = value; } } else { - createTimeBuilder_.mergeFrom(value); + cmekConfigBuilder_.mergeFrom(value); } - if (createTime_ != null) { - bitField0_ |= 0x00000040; + if (cmekConfig_ != null) { + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -5107,20 +15263,19 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearCmekConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; } onChanged(); return this; @@ -5130,39 +15285,37 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + public com.google.cloud.discoveryengine.v1.CmekConfig.Builder getCmekConfigBuilder() { + bitField0_ |= 0x00000400; onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + return internalGetCmekConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder() { + if (cmekConfigBuilder_ != null) { + return cmekConfigBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; } } @@ -5170,76 +15323,74 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. Timestamp the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
+     * Output only. CMEK-related information for the DataStore.
      * 
* * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + com.google.cloud.discoveryengine.v1.CmekConfig, + com.google.cloud.discoveryengine.v1.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder> + internalGetCmekConfigFieldBuilder() { + if (cmekConfigBuilder_ == null) { + cmekConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + com.google.cloud.discoveryengine.v1.CmekConfig, + com.google.cloud.discoveryengine.v1.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder>( + getCmekConfig(), getParentForChildren(), isClean()); + cmekConfig_ = null; } - return createTimeBuilder_; + return cmekConfigBuilder_; } - private com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advancedSiteSearchConfig_; + private com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation billingEstimation_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig, - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder, - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder> - advancedSiteSearchConfigBuilder_; + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder> + billingEstimationBuilder_; /** * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the advancedSiteSearchConfig field is set. + * @return Whether the billingEstimation field is set. */ - public boolean hasAdvancedSiteSearchConfig() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasBillingEstimation() { + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The advancedSiteSearchConfig. + * @return The billingEstimation. */ - public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig - getAdvancedSiteSearchConfig() { - if (advancedSiteSearchConfigBuilder_ == null) { - return advancedSiteSearchConfig_ == null - ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() - : advancedSiteSearchConfig_; + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation() { + if (billingEstimationBuilder_ == null) { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; } else { - return advancedSiteSearchConfigBuilder_.getMessage(); + return billingEstimationBuilder_.getMessage(); } } @@ -5247,24 +15398,24 @@ public boolean hasAdvancedSiteSearchConfig() { * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setAdvancedSiteSearchConfig( - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig value) { - if (advancedSiteSearchConfigBuilder_ == null) { + public Builder setBillingEstimation( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { + if (billingEstimationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - advancedSiteSearchConfig_ = value; + billingEstimation_ = value; } else { - advancedSiteSearchConfigBuilder_.setMessage(value); + billingEstimationBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5273,21 +15424,21 @@ public Builder setAdvancedSiteSearchConfig( * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setAdvancedSiteSearchConfig( - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder builderForValue) { - if (advancedSiteSearchConfigBuilder_ == null) { - advancedSiteSearchConfig_ = builderForValue.build(); + public Builder setBillingEstimation( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder builderForValue) { + if (billingEstimationBuilder_ == null) { + billingEstimation_ = builderForValue.build(); } else { - advancedSiteSearchConfigBuilder_.setMessage(builderForValue.build()); + billingEstimationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5296,30 +15447,30 @@ public Builder setAdvancedSiteSearchConfig( * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeAdvancedSiteSearchConfig( - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig value) { - if (advancedSiteSearchConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && advancedSiteSearchConfig_ != null - && advancedSiteSearchConfig_ - != com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig + public Builder mergeBillingEstimation( + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { + if (billingEstimationBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && billingEstimation_ != null + && billingEstimation_ + != com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation .getDefaultInstance()) { - getAdvancedSiteSearchConfigBuilder().mergeFrom(value); + getBillingEstimationBuilder().mergeFrom(value); } else { - advancedSiteSearchConfig_ = value; + billingEstimation_ = value; } } else { - advancedSiteSearchConfigBuilder_.mergeFrom(value); + billingEstimationBuilder_.mergeFrom(value); } - if (advancedSiteSearchConfig_ != null) { - bitField0_ |= 0x00000080; + if (billingEstimation_ != null) { + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -5329,19 +15480,19 @@ public Builder mergeAdvancedSiteSearchConfig( * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearAdvancedSiteSearchConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - advancedSiteSearchConfig_ = null; - if (advancedSiteSearchConfigBuilder_ != null) { - advancedSiteSearchConfigBuilder_.dispose(); - advancedSiteSearchConfigBuilder_ = null; + public Builder clearBillingEstimation() { + bitField0_ = (bitField0_ & ~0x00000800); + billingEstimation_ = null; + if (billingEstimationBuilder_ != null) { + billingEstimationBuilder_.dispose(); + billingEstimationBuilder_ = null; } onChanged(); return this; @@ -5351,39 +15502,39 @@ public Builder clearAdvancedSiteSearchConfig() { * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder - getAdvancedSiteSearchConfigBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder + getBillingEstimationBuilder() { + bitField0_ |= 0x00000800; onChanged(); - return internalGetAdvancedSiteSearchConfigFieldBuilder().getBuilder(); + return internalGetBillingEstimationFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder - getAdvancedSiteSearchConfigOrBuilder() { - if (advancedSiteSearchConfigBuilder_ != null) { - return advancedSiteSearchConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder() { + if (billingEstimationBuilder_ != null) { + return billingEstimationBuilder_.getMessageOrBuilder(); } else { - return advancedSiteSearchConfig_ == null - ? com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.getDefaultInstance() - : advancedSiteSearchConfig_; + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; } } @@ -5391,77 +15542,182 @@ public Builder clearAdvancedSiteSearchConfig() { * * *
-     * Optional. Configuration for advanced site search.
+     * Output only. Data size estimation for billing.
      * 
* * - * .google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig, - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder, - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder> - internalGetAdvancedSiteSearchConfigFieldBuilder() { - if (advancedSiteSearchConfigBuilder_ == null) { - advancedSiteSearchConfigBuilder_ = + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder> + internalGetBillingEstimationFieldBuilder() { + if (billingEstimationBuilder_ == null) { + billingEstimationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig, - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfig.Builder, - com.google.cloud.discoveryengine.v1.AdvancedSiteSearchConfigOrBuilder>( - getAdvancedSiteSearchConfig(), getParentForChildren(), isClean()); - advancedSiteSearchConfig_ = null; + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder>( + getBillingEstimation(), getParentForChildren(), isClean()); + billingEstimation_ = null; } - return advancedSiteSearchConfigBuilder_; + return billingEstimationBuilder_; } - private com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - naturalLanguageQueryUnderstandingConfig_; + private boolean aclEnabled_; + + /** + * + * + *
+     * Immutable. Whether data in the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
+     * If set to `true`, the source data must have ACL. ACL will be ingested when
+     * data is ingested by
+     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
+     * methods.
+     *
+     * When ACL is enabled for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore],
+     * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
+     * calling
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     *
+     * Currently ACL is only supported in `GENERIC` industry vertical with
+     * non-`PUBLIC_WEBSITE` content config.
+     * 
+ * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + + /** + * + * + *
+     * Immutable. Whether data in the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
+     * If set to `true`, the source data must have ACL. ACL will be ingested when
+     * data is ingested by
+     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
+     * methods.
+     *
+     * When ACL is enabled for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore],
+     * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
+     * calling
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     *
+     * Currently ACL is only supported in `GENERIC` industry vertical with
+     * non-`PUBLIC_WEBSITE` content config.
+     * 
+ * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The aclEnabled to set. + * @return This builder for chaining. + */ + public Builder setAclEnabled(boolean value) { + + aclEnabled_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Whether data in the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
+     * If set to `true`, the source data must have ACL. ACL will be ingested when
+     * data is ingested by
+     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
+     * methods.
+     *
+     * When ACL is enabled for the
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore],
+     * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
+     * calling
+     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
+     * or
+     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
+     *
+     * Currently ACL is only supported in `GENERIC` industry vertical with
+     * non-`PUBLIC_WEBSITE` content config.
+     * 
+ * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAclEnabled() { + bitField0_ = (bitField0_ & ~0x00001000); + aclEnabled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WorkspaceConfig workspaceConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder> - naturalLanguageQueryUnderstandingConfigBuilder_; + com.google.cloud.discoveryengine.v1.WorkspaceConfig, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder> + workspaceConfigBuilder_; /** * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; * - * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + * @return Whether the workspaceConfig field is set. */ - public boolean hasNaturalLanguageQueryUnderstandingConfig() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasWorkspaceConfig() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; * - * @return The naturalLanguageQueryUnderstandingConfig. + * @return The workspaceConfig. */ - public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - getNaturalLanguageQueryUnderstandingConfig() { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; + public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() { + if (workspaceConfigBuilder_ == null) { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } else { - return naturalLanguageQueryUnderstandingConfigBuilder_.getMessage(); + return workspaceConfigBuilder_.getMessage(); } } @@ -5469,24 +15725,25 @@ public boolean hasNaturalLanguageQueryUnderstandingConfig() { * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder setNaturalLanguageQueryUnderstandingConfig( - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig value) { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + public Builder setWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { + if (workspaceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - naturalLanguageQueryUnderstandingConfig_ = value; + workspaceConfig_ = value; } else { - naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(value); + workspaceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5495,22 +15752,23 @@ public Builder setNaturalLanguageQueryUnderstandingConfig( * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder setNaturalLanguageQueryUnderstandingConfig( - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder - builderForValue) { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - naturalLanguageQueryUnderstandingConfig_ = builderForValue.build(); + public Builder setWorkspaceConfig( + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder builderForValue) { + if (workspaceConfigBuilder_ == null) { + workspaceConfig_ = builderForValue.build(); } else { - naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(builderForValue.build()); + workspaceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5519,30 +15777,30 @@ public Builder setNaturalLanguageQueryUnderstandingConfig( * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder mergeNaturalLanguageQueryUnderstandingConfig( - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig value) { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && naturalLanguageQueryUnderstandingConfig_ != null - && naturalLanguageQueryUnderstandingConfig_ - != com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance()) { - getNaturalLanguageQueryUnderstandingConfigBuilder().mergeFrom(value); + public Builder mergeWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { + if (workspaceConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && workspaceConfig_ != null + && workspaceConfig_ + != com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance()) { + getWorkspaceConfigBuilder().mergeFrom(value); } else { - naturalLanguageQueryUnderstandingConfig_ = value; + workspaceConfig_ = value; } } else { - naturalLanguageQueryUnderstandingConfigBuilder_.mergeFrom(value); + workspaceConfigBuilder_.mergeFrom(value); } - if (naturalLanguageQueryUnderstandingConfig_ != null) { - bitField0_ |= 0x00000100; + if (workspaceConfig_ != null) { + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5552,19 +15810,21 @@ public Builder mergeNaturalLanguageQueryUnderstandingConfig( * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public Builder clearNaturalLanguageQueryUnderstandingConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - naturalLanguageQueryUnderstandingConfig_ = null; - if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { - naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); - naturalLanguageQueryUnderstandingConfigBuilder_ = null; + public Builder clearWorkspaceConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + workspaceConfig_ = null; + if (workspaceConfigBuilder_ != null) { + workspaceConfigBuilder_.dispose(); + workspaceConfigBuilder_ = null; } onChanged(); return this; @@ -5574,40 +15834,42 @@ public Builder clearNaturalLanguageQueryUnderstandingConfig() { * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder - getNaturalLanguageQueryUnderstandingConfigBuilder() { - bitField0_ |= 0x00000100; + public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder getWorkspaceConfigBuilder() { + bitField0_ |= 0x00002000; onChanged(); - return internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(); + return internalGetWorkspaceConfigFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ - public com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder - getNaturalLanguageQueryUnderstandingConfigOrBuilder() { - if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { - return naturalLanguageQueryUnderstandingConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder + getWorkspaceConfigOrBuilder() { + if (workspaceConfigBuilder_ != null) { + return workspaceConfigBuilder_.getMessageOrBuilder(); } else { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } } @@ -5615,245 +15877,180 @@ public Builder clearNaturalLanguageQueryUnderstandingConfig() { * * *
-     * Optional. Configuration for Natural Language Query Understanding.
+     * Config to store data store type configuration for workspace data. This
+     * must be set when
+     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
+     * is set as
+     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
      * 
* - * - * .google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfigOrBuilder> - internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder() { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - naturalLanguageQueryUnderstandingConfigBuilder_ = + com.google.cloud.discoveryengine.v1.WorkspaceConfig, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder> + internalGetWorkspaceConfigFieldBuilder() { + if (workspaceConfigBuilder_ == null) { + workspaceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig, - com.google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Builder, - com.google.cloud.discoveryengine.v1 - .NaturalLanguageQueryUnderstandingConfigOrBuilder>( - getNaturalLanguageQueryUnderstandingConfig(), getParentForChildren(), isClean()); - naturalLanguageQueryUnderstandingConfig_ = null; - } - return naturalLanguageQueryUnderstandingConfigBuilder_; - } - - private java.lang.Object kmsKeyName_ = ""; - - /** - * - * - *
-     * Input only. The KMS key to be used to protect this DataStore at creation
-     * time.
-     *
-     * Must be set for requests that need to comply with CMEK Org Policy
-     * protections.
-     *
-     * If this field is set and processed successfully, the DataStore will be
-     * protected by the KMS key, as indicated in the cmek_config field.
-     * 
- * - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The kmsKeyName. - */ - public java.lang.String getKmsKeyName() { - java.lang.Object ref = kmsKeyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKeyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Input only. The KMS key to be used to protect this DataStore at creation
-     * time.
-     *
-     * Must be set for requests that need to comply with CMEK Org Policy
-     * protections.
-     *
-     * If this field is set and processed successfully, the DataStore will be
-     * protected by the KMS key, as indicated in the cmek_config field.
-     * 
- * - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The bytes for kmsKeyName. - */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { - java.lang.Object ref = kmsKeyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + com.google.cloud.discoveryengine.v1.WorkspaceConfig, + com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder>( + getWorkspaceConfig(), getParentForChildren(), isClean()); + workspaceConfig_ = null; } + return workspaceConfigBuilder_; } + private com.google.cloud.discoveryengine.v1.DocumentProcessingConfig documentProcessingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder> + documentProcessingConfigBuilder_; + /** * * *
-     * Input only. The KMS key to be used to protect this DataStore at creation
-     * time.
-     *
-     * Must be set for requests that need to comply with CMEK Org Policy
-     * protections.
-     *
-     * If this field is set and processed successfully, the DataStore will be
-     * protected by the KMS key, as indicated in the cmek_config field.
+     * Configuration for Document understanding and enrichment.
      * 
* - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * * - * @param value The kmsKeyName to set. - * @return This builder for chaining. + * @return Whether the documentProcessingConfig field is set. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kmsKeyName_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
-     * Input only. The KMS key to be used to protect this DataStore at creation
-     * time.
-     *
-     * Must be set for requests that need to comply with CMEK Org Policy
-     * protections.
-     *
-     * If this field is set and processed successfully, the DataStore will be
-     * protected by the KMS key, as indicated in the cmek_config field.
+     * Configuration for Document understanding and enrichment.
      * 
* - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * * - * @return This builder for chaining. + * @return The documentProcessingConfig. */ - public Builder clearKmsKeyName() { - kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig + getDocumentProcessingConfig() { + if (documentProcessingConfigBuilder_ == null) { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } else { + return documentProcessingConfigBuilder_.getMessage(); + } } /** * * *
-     * Input only. The KMS key to be used to protect this DataStore at creation
-     * time.
-     *
-     * Must be set for requests that need to comply with CMEK Org Policy
-     * protections.
-     *
-     * If this field is set and processed successfully, the DataStore will be
-     * protected by the KMS key, as indicated in the cmek_config field.
+     * Configuration for Document understanding and enrichment.
      * 
* - * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @param value The bytes for kmsKeyName to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentProcessingConfig_ = value; + } else { + documentProcessingConfigBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - kmsKeyName_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00004000; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.CmekConfig cmekConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.CmekConfig, - com.google.cloud.discoveryengine.v1.CmekConfig.Builder, - com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder> - cmekConfigBuilder_; - /** * * *
-     * Output only. CMEK-related information for the DataStore.
+     * Configuration for Document understanding and enrichment.
      * 
* * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; * - * - * @return Whether the cmekConfig field is set. */ - public boolean hasCmekConfig() { - return ((bitField0_ & 0x00000400) != 0); + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder builderForValue) { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfig_ = builderForValue.build(); + } else { + documentProcessingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
-     * Output only. CMEK-related information for the DataStore.
+     * Configuration for Document understanding and enrichment.
      * 
* * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; * - * - * @return The cmekConfig. */ - public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig() { - if (cmekConfigBuilder_ == null) { - return cmekConfig_ == null - ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() - : cmekConfig_; + public Builder mergeDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && documentProcessingConfig_ != null + && documentProcessingConfig_ + != com.google.cloud.discoveryengine.v1.DocumentProcessingConfig + .getDefaultInstance()) { + getDocumentProcessingConfigBuilder().mergeFrom(value); + } else { + documentProcessingConfig_ = value; + } } else { - return cmekConfigBuilder_.getMessage(); + documentProcessingConfigBuilder_.mergeFrom(value); } + if (documentProcessingConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; } /** * * *
-     * Output only. CMEK-related information for the DataStore.
+     * Configuration for Document understanding and enrichment.
      * 
* * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; * */ - public Builder setCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { - if (cmekConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cmekConfig_ = value; - } else { - cmekConfigBuilder_.setMessage(value); + public Builder clearDocumentProcessingConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; } - bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5862,112 +16059,142 @@ public Builder setCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig valu * * *
-     * Output only. CMEK-related information for the DataStore.
+     * Configuration for Document understanding and enrichment.
      * 
* * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; * */ - public Builder setCmekConfig( - com.google.cloud.discoveryengine.v1.CmekConfig.Builder builderForValue) { - if (cmekConfigBuilder_ == null) { - cmekConfig_ = builderForValue.build(); - } else { - cmekConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; + public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder + getDocumentProcessingConfigBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return this; + return internalGetDocumentProcessingConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. CMEK-related information for the DataStore.
+     * Configuration for Document understanding and enrichment.
      * 
* * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; * */ - public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { - if (cmekConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && cmekConfig_ != null - && cmekConfig_ != com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance()) { - getCmekConfigBuilder().mergeFrom(value); - } else { - cmekConfig_ = value; - } + public com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + if (documentProcessingConfigBuilder_ != null) { + return documentProcessingConfigBuilder_.getMessageOrBuilder(); } else { - cmekConfigBuilder_.mergeFrom(value); - } - if (cmekConfig_ != null) { - bitField0_ |= 0x00000400; - onChanged(); + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; } - return this; } /** * * *
-     * Output only. CMEK-related information for the DataStore.
+     * Configuration for Document understanding and enrichment.
      * 
* * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; * */ - public Builder clearCmekConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - cmekConfig_ = null; - if (cmekConfigBuilder_ != null) { - cmekConfigBuilder_.dispose(); - cmekConfigBuilder_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder> + internalGetDocumentProcessingConfigFieldBuilder() { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder>( + getDocumentProcessingConfig(), getParentForChildren(), isClean()); + documentProcessingConfig_ = null; } - onChanged(); - return this; + return documentProcessingConfigBuilder_; } + private com.google.cloud.discoveryengine.v1.Schema startingSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Schema, + com.google.cloud.discoveryengine.v1.Schema.Builder, + com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + startingSchemaBuilder_; + /** * * - *
-     * Output only. CMEK-related information for the DataStore.
+     * 
+     * The start schema to use for this
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+     * it. If unset, a default vertical specialized schema will be used.
+     *
+     * This field is only used by
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API, and will be ignored if used in other APIs. This field will be omitted
+     * from all API responses including
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
      * 
* - * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. */ - public com.google.cloud.discoveryengine.v1.CmekConfig.Builder getCmekConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return internalGetCmekConfigFieldBuilder().getBuilder(); + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
-     * Output only. CMEK-related information for the DataStore.
+     * The start schema to use for this
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+     * it. If unset, a default vertical specialized schema will be used.
+     *
+     * This field is only used by
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API, and will be ignored if used in other APIs. This field will be omitted
+     * from all API responses including
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
      * 
* - * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * @return The startingSchema. */ - public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder() { - if (cmekConfigBuilder_ != null) { - return cmekConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { + if (startingSchemaBuilder_ == null) { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; } else { - return cmekConfig_ == null - ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() - : cmekConfig_; + return startingSchemaBuilder_.getMessage(); } } @@ -5975,99 +16202,154 @@ public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBu * * *
-     * Output only. CMEK-related information for the DataStore.
+     * The start schema to use for this
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+     * it. If unset, a default vertical specialized schema will be used.
+     *
+     * This field is only used by
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API, and will be ignored if used in other APIs. This field will be omitted
+     * from all API responses including
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
      * 
* - * - * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.CmekConfig, - com.google.cloud.discoveryengine.v1.CmekConfig.Builder, - com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder> - internalGetCmekConfigFieldBuilder() { - if (cmekConfigBuilder_ == null) { - cmekConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.CmekConfig, - com.google.cloud.discoveryengine.v1.CmekConfig.Builder, - com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder>( - getCmekConfig(), getParentForChildren(), isClean()); - cmekConfig_ = null; + public Builder setStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { + if (startingSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startingSchema_ = value; + } else { + startingSchemaBuilder_.setMessage(value); } - return cmekConfigBuilder_; + bitField0_ |= 0x00008000; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation billingEstimation_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder> - billingEstimationBuilder_; - /** * * *
-     * Output only. Data size estimation for billing.
-     * 
+ * The start schema to use for this + * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning + * it. If unset, a default vertical specialized schema will be used. * - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a + * [DataStore][google.cloud.discoveryengine.v1.DataStore], use + * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] + * API instead. * - * @return Whether the billingEstimation field is set. + * The provided schema will be validated against certain rules on schema. + * Learn more from [this + * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + *
+ * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ - public boolean hasBillingEstimation() { - return ((bitField0_ & 0x00000800) != 0); + public Builder setStartingSchema( + com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { + if (startingSchemaBuilder_ == null) { + startingSchema_ = builderForValue.build(); + } else { + startingSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; } /** * * *
-     * Output only. Data size estimation for billing.
-     * 
+ * The start schema to use for this + * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning + * it. If unset, a default vertical specialized schema will be used. * - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a + * [DataStore][google.cloud.discoveryengine.v1.DataStore], use + * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] + * API instead. * - * @return The billingEstimation. + * The provided schema will be validated against certain rules on schema. + * Learn more from [this + * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ - public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation getBillingEstimation() { - if (billingEstimationBuilder_ == null) { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() - : billingEstimation_; + public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { + if (startingSchemaBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && startingSchema_ != null + && startingSchema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { + getStartingSchemaBuilder().mergeFrom(value); + } else { + startingSchema_ = value; + } } else { - return billingEstimationBuilder_.getMessage(); + startingSchemaBuilder_.mergeFrom(value); + } + if (startingSchema_ != null) { + bitField0_ |= 0x00008000; + onChanged(); } + return this; } /** * * *
-     * Output only. Data size estimation for billing.
+     * The start schema to use for this
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+     * it. If unset, a default vertical specialized schema will be used.
+     *
+     * This field is only used by
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API, and will be ignored if used in other APIs. This field will be omitted
+     * from all API responses including
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ - public Builder setBillingEstimation( - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { - if (billingEstimationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - billingEstimation_ = value; - } else { - billingEstimationBuilder_.setMessage(value); + public Builder clearStartingSchema() { + bitField0_ = (bitField0_ & ~0x00008000); + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; } - bitField0_ |= 0x00000800; onChanged(); return this; } @@ -6076,117 +16358,154 @@ public Builder setBillingEstimation( * * *
-     * Output only. Data size estimation for billing.
-     * 
+ * The start schema to use for this + * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning + * it. If unset, a default vertical specialized schema will be used. * - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBillingEstimation( - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder builderForValue) { - if (billingEstimationBuilder_ == null) { - billingEstimation_ = builderForValue.build(); - } else { - billingEstimationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a + * [DataStore][google.cloud.discoveryengine.v1.DataStore], use + * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] + * API instead. + * + * The provided schema will be validated against certain rules on schema. + * Learn more from [this + * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * + * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + */ + public com.google.cloud.discoveryengine.v1.Schema.Builder getStartingSchemaBuilder() { + bitField0_ |= 0x00008000; onChanged(); - return this; + return internalGetStartingSchemaFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Data size estimation for billing.
+     * The start schema to use for this
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+     * it. If unset, a default vertical specialized schema will be used.
+     *
+     * This field is only used by
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API, and will be ignored if used in other APIs. This field will be omitted
+     * from all API responses including
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ - public Builder mergeBillingEstimation( - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation value) { - if (billingEstimationBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && billingEstimation_ != null - && billingEstimation_ - != com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation - .getDefaultInstance()) { - getBillingEstimationBuilder().mergeFrom(value); - } else { - billingEstimation_ = value; - } + public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder() { + if (startingSchemaBuilder_ != null) { + return startingSchemaBuilder_.getMessageOrBuilder(); } else { - billingEstimationBuilder_.mergeFrom(value); - } - if (billingEstimation_ != null) { - bitField0_ |= 0x00000800; - onChanged(); + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() + : startingSchema_; } - return this; } /** * * *
-     * Output only. Data size estimation for billing.
+     * The start schema to use for this
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
+     * it. If unset, a default vertical specialized schema will be used.
+     *
+     * This field is only used by
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API, and will be ignored if used in other APIs. This field will be omitted
+     * from all API responses including
+     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
+     * API. To retrieve a schema of a
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
+     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
+     * API instead.
+     *
+     * The provided schema will be validated against certain rules on schema.
+     * Learn more from [this
+     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
      * 
* - * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; */ - public Builder clearBillingEstimation() { - bitField0_ = (bitField0_ & ~0x00000800); - billingEstimation_ = null; - if (billingEstimationBuilder_ != null) { - billingEstimationBuilder_.dispose(); - billingEstimationBuilder_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Schema, + com.google.cloud.discoveryengine.v1.Schema.Builder, + com.google.cloud.discoveryengine.v1.SchemaOrBuilder> + internalGetStartingSchemaFieldBuilder() { + if (startingSchemaBuilder_ == null) { + startingSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Schema, + com.google.cloud.discoveryengine.v1.Schema.Builder, + com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( + getStartingSchema(), getParentForChildren(), isClean()); + startingSchema_ = null; } - onChanged(); - return this; + return startingSchemaBuilder_; } + private com.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcareFhirConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder> + healthcareFhirConfigBuilder_; + /** * * *
-     * Output only. Data size estimation for billing.
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the healthcareFhirConfig field is set. */ - public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder - getBillingEstimationBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return internalGetBillingEstimationFieldBuilder().getBuilder(); + public boolean hasHealthcareFhirConfig() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * Output only. Data size estimation for billing.
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The healthcareFhirConfig. */ - public com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder - getBillingEstimationOrBuilder() { - if (billingEstimationBuilder_ != null) { - return billingEstimationBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig() { + if (healthcareFhirConfigBuilder_ == null) { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; } else { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.getDefaultInstance() - : billingEstimation_; + return healthcareFhirConfigBuilder_.getMessage(); } } @@ -6194,97 +16513,80 @@ public Builder clearBillingEstimation() { * * *
-     * Output only. Data size estimation for billing.
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* * - * .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder> - internalGetBillingEstimationFieldBuilder() { - if (billingEstimationBuilder_ == null) { - billingEstimationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation, - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimation.Builder, - com.google.cloud.discoveryengine.v1.DataStore.BillingEstimationOrBuilder>( - getBillingEstimation(), getParentForChildren(), isClean()); - billingEstimation_ = null; + public Builder setHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { + if (healthcareFhirConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + healthcareFhirConfig_ = value; + } else { + healthcareFhirConfigBuilder_.setMessage(value); } - return billingEstimationBuilder_; + bitField0_ |= 0x00010000; + onChanged(); + return this; } - private boolean aclEnabled_; - /** * * *
-     * Immutable. Whether data in the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
-     * If set to `true`, the source data must have ACL. ACL will be ingested when
-     * data is ingested by
-     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
-     * methods.
-     *
-     * When ACL is enabled for the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore],
-     * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
-     * calling
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     *
-     * Currently ACL is only supported in `GENERIC` industry vertical with
-     * non-`PUBLIC_WEBSITE` content config.
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* - * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The aclEnabled. + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean getAclEnabled() { - return aclEnabled_; + public Builder setHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder builderForValue) { + if (healthcareFhirConfigBuilder_ == null) { + healthcareFhirConfig_ = builderForValue.build(); + } else { + healthcareFhirConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; } /** * * *
-     * Immutable. Whether data in the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
-     * If set to `true`, the source data must have ACL. ACL will be ingested when
-     * data is ingested by
-     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
-     * methods.
-     *
-     * When ACL is enabled for the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore],
-     * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
-     * calling
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     *
-     * Currently ACL is only supported in `GENERIC` industry vertical with
-     * non-`PUBLIC_WEBSITE` content config.
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* - * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The aclEnabled to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAclEnabled(boolean value) { - - aclEnabled_ = value; - bitField0_ |= 0x00001000; - onChanged(); + public Builder mergeHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { + if (healthcareFhirConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && healthcareFhirConfig_ != null + && healthcareFhirConfig_ + != com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance()) { + getHealthcareFhirConfigBuilder().mergeFrom(value); + } else { + healthcareFhirConfig_ = value; + } + } else { + healthcareFhirConfigBuilder_.mergeFrom(value); + } + if (healthcareFhirConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } return this; } @@ -6292,84 +16594,61 @@ public Builder setAclEnabled(boolean value) { * * *
-     * Immutable. Whether data in the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] has ACL information.
-     * If set to `true`, the source data must have ACL. ACL will be ingested when
-     * data is ingested by
-     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1.DocumentService.ImportDocuments]
-     * methods.
-     *
-     * When ACL is enabled for the
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore],
-     * [Document][google.cloud.discoveryengine.v1.Document] can't be accessed by
-     * calling
-     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument]
-     * or
-     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments].
-     *
-     * Currently ACL is only supported in `GENERIC` industry vertical with
-     * non-`PUBLIC_WEBSITE` content config.
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* - * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearAclEnabled() { - bitField0_ = (bitField0_ & ~0x00001000); - aclEnabled_ = false; + public Builder clearHealthcareFhirConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + healthcareFhirConfig_ = null; + if (healthcareFhirConfigBuilder_ != null) { + healthcareFhirConfigBuilder_.dispose(); + healthcareFhirConfigBuilder_ = null; + } onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.WorkspaceConfig workspaceConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.WorkspaceConfig, - com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, - com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder> - workspaceConfigBuilder_; - /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - * - * @return Whether the workspaceConfig field is set. + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public boolean hasWorkspaceConfig() { - return ((bitField0_ & 0x00002000) != 0); + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder + getHealthcareFhirConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetHealthcareFhirConfigFieldBuilder().getBuilder(); } /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - * - * @return The workspaceConfig. + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() { - if (workspaceConfigBuilder_ == null) { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; + public com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder() { + if (healthcareFhirConfigBuilder_ != null) { + return healthcareFhirConfigBuilder_.getMessageOrBuilder(); } else { - return workspaceConfigBuilder_.getMessage(); + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; } } @@ -6377,107 +16656,102 @@ public com.google.cloud.discoveryengine.v1.WorkspaceConfig getWorkspaceConfig() * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { - if (workspaceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workspaceConfig_ = value; - } else { - workspaceConfigBuilder_.setMessage(value); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder> + internalGetHealthcareFhirConfigFieldBuilder() { + if (healthcareFhirConfigBuilder_ == null) { + healthcareFhirConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder>( + getHealthcareFhirConfig(), getParentForChildren(), isClean()); + healthcareFhirConfig_ = null; } - bitField0_ |= 0x00002000; - onChanged(); - return this; + return healthcareFhirConfigBuilder_; } + private com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + servingConfigDataStore_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder> + servingConfigDataStoreBuilder_; + /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Stores serving config at DataStore level.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the servingConfigDataStore field is set. */ - public Builder setWorkspaceConfig( - com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder builderForValue) { - if (workspaceConfigBuilder_ == null) { - workspaceConfig_ = builderForValue.build(); - } else { - workspaceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; + public boolean hasServingConfigDataStore() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Stores serving config at DataStore level.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The servingConfigDataStore. */ - public Builder mergeWorkspaceConfig(com.google.cloud.discoveryengine.v1.WorkspaceConfig value) { - if (workspaceConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && workspaceConfig_ != null - && workspaceConfig_ - != com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance()) { - getWorkspaceConfigBuilder().mergeFrom(value); - } else { - workspaceConfig_ = value; - } + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + getServingConfigDataStore() { + if (servingConfigDataStoreBuilder_ == null) { + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + .getDefaultInstance() + : servingConfigDataStore_; } else { - workspaceConfigBuilder_.mergeFrom(value); - } - if (workspaceConfig_ != null) { - bitField0_ |= 0x00002000; - onChanged(); + return servingConfigDataStoreBuilder_.getMessage(); } - return this; } /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Stores serving config at DataStore level.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearWorkspaceConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - workspaceConfig_ = null; - if (workspaceConfigBuilder_ != null) { - workspaceConfigBuilder_.dispose(); - workspaceConfigBuilder_ = null; + public Builder setServingConfigDataStore( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore value) { + if (servingConfigDataStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + servingConfigDataStore_ = value; + } else { + servingConfigDataStoreBuilder_.setMessage(value); } + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6486,120 +16760,119 @@ public Builder clearWorkspaceConfig() { * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Stores serving config at DataStore level.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder getWorkspaceConfigBuilder() { - bitField0_ |= 0x00002000; + public Builder setServingConfigDataStore( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder + builderForValue) { + if (servingConfigDataStoreBuilder_ == null) { + servingConfigDataStore_ = builderForValue.build(); + } else { + servingConfigDataStoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; onChanged(); - return internalGetWorkspaceConfigFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Stores serving config at DataStore level.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder - getWorkspaceConfigOrBuilder() { - if (workspaceConfigBuilder_ != null) { - return workspaceConfigBuilder_.getMessageOrBuilder(); + public Builder mergeServingConfigDataStore( + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore value) { + if (servingConfigDataStoreBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && servingConfigDataStore_ != null + && servingConfigDataStore_ + != com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + .getDefaultInstance()) { + getServingConfigDataStoreBuilder().mergeFrom(value); + } else { + servingConfigDataStore_ = value; + } } else { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; + servingConfigDataStoreBuilder_.mergeFrom(value); + } + if (servingConfigDataStore_ != null) { + bitField0_ |= 0x00020000; + onChanged(); } + return this; } /** * * *
-     * Config to store data store type configuration for workspace data. This
-     * must be set when
-     * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config]
-     * is set as
-     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE].
+     * Optional. Stores serving config at DataStore level.
      * 
* - * .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.WorkspaceConfig, - com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, - com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder> - internalGetWorkspaceConfigFieldBuilder() { - if (workspaceConfigBuilder_ == null) { - workspaceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.WorkspaceConfig, - com.google.cloud.discoveryengine.v1.WorkspaceConfig.Builder, - com.google.cloud.discoveryengine.v1.WorkspaceConfigOrBuilder>( - getWorkspaceConfig(), getParentForChildren(), isClean()); - workspaceConfig_ = null; + public Builder clearServingConfigDataStore() { + bitField0_ = (bitField0_ & ~0x00020000); + servingConfigDataStore_ = null; + if (servingConfigDataStoreBuilder_ != null) { + servingConfigDataStoreBuilder_.dispose(); + servingConfigDataStoreBuilder_ = null; } - return workspaceConfigBuilder_; - } - - private com.google.cloud.discoveryengine.v1.DocumentProcessingConfig documentProcessingConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig, - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder, - com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder> - documentProcessingConfigBuilder_; + onChanged(); + return this; + } /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Optional. Stores serving config at DataStore level.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the documentProcessingConfig field is set. */ - public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00004000) != 0); + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder + getServingConfigDataStoreBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetServingConfigDataStoreFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Optional. Stores serving config at DataStore level.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The documentProcessingConfig. */ - public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig - getDocumentProcessingConfig() { - if (documentProcessingConfigBuilder_ == null) { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; + public com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder + getServingConfigDataStoreOrBuilder() { + if (servingConfigDataStoreBuilder_ != null) { + return servingConfigDataStoreBuilder_.getMessageOrBuilder(); } else { - return documentProcessingConfigBuilder_.getMessage(); + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore + .getDefaultInstance() + : servingConfigDataStore_; } } @@ -6607,102 +16880,114 @@ public boolean hasDocumentProcessingConfig() { * * *
-     * Configuration for Document understanding and enrichment.
+     * Optional. Stores serving config at DataStore level.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig value) { - if (documentProcessingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - documentProcessingConfig_ = value; - } else { - documentProcessingConfigBuilder_.setMessage(value); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder> + internalGetServingConfigDataStoreFieldBuilder() { + if (servingConfigDataStoreBuilder_ == null) { + servingConfigDataStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore.Builder, + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder>( + getServingConfigDataStore(), getParentForChildren(), isClean()); + servingConfigDataStore_ = null; } - bitField0_ |= 0x00004000; - onChanged(); - return this; + return servingConfigDataStoreBuilder_; } + private java.lang.Object identityMappingStore_ = ""; + /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Immutable. The fully qualified resource name of the associated
+     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+     * `GSUITE` IdP. Format:
+     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * + * + * @return The identityMappingStore. */ - public Builder setDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder builderForValue) { - if (documentProcessingConfigBuilder_ == null) { - documentProcessingConfig_ = builderForValue.build(); + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; } else { - documentProcessingConfigBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - bitField0_ |= 0x00004000; - onChanged(); - return this; } /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Immutable. The fully qualified resource name of the associated
+     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+     * `GSUITE` IdP. Format:
+     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for identityMappingStore. */ - public Builder mergeDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig value) { - if (documentProcessingConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && documentProcessingConfig_ != null - && documentProcessingConfig_ - != com.google.cloud.discoveryengine.v1.DocumentProcessingConfig - .getDefaultInstance()) { - getDocumentProcessingConfigBuilder().mergeFrom(value); - } else { - documentProcessingConfig_ = value; - } + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; } else { - documentProcessingConfigBuilder_.mergeFrom(value); - } - if (documentProcessingConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Immutable. The fully qualified resource name of the associated
+     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+     * `GSUITE` IdP. Format:
+     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * + * + * @param value The identityMappingStore to set. + * @return This builder for chaining. */ - public Builder clearDocumentProcessingConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - documentProcessingConfig_ = null; - if (documentProcessingConfigBuilder_ != null) { - documentProcessingConfigBuilder_.dispose(); - documentProcessingConfigBuilder_ = null; + public Builder setIdentityMappingStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + identityMappingStore_ = value; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6711,142 +16996,158 @@ public Builder clearDocumentProcessingConfig() { * * *
-     * Configuration for Document understanding and enrichment.
+     * Immutable. The fully qualified resource name of the associated
+     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+     * `GSUITE` IdP. Format:
+     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder - getDocumentProcessingConfigBuilder() { - bitField0_ |= 0x00004000; + public Builder clearIdentityMappingStore() { + identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); - return internalGetDocumentProcessingConfigFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Immutable. The fully qualified resource name of the associated
+     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
+     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
+     * `GSUITE` IdP. Format:
+     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
      * 
* * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for identityMappingStore to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder - getDocumentProcessingConfigOrBuilder() { - if (documentProcessingConfigBuilder_ != null) { - return documentProcessingConfigBuilder_.getMessageOrBuilder(); - } else { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; + public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + identityMappingStore_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; } + private boolean isInfobotFaqDataStore_; + /** * * *
-     * Configuration for Document understanding and enrichment.
+     * Optional. If set, this DataStore is an Infobot FAQ DataStore.
      * 
* - * - * .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isInfobotFaqDataStore. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig, - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder, - com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder> - internalGetDocumentProcessingConfigFieldBuilder() { - if (documentProcessingConfigBuilder_ == null) { - documentProcessingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig, - com.google.cloud.discoveryengine.v1.DocumentProcessingConfig.Builder, - com.google.cloud.discoveryengine.v1.DocumentProcessingConfigOrBuilder>( - getDocumentProcessingConfig(), getParentForChildren(), isClean()); - documentProcessingConfig_ = null; - } - return documentProcessingConfigBuilder_; + @java.lang.Override + public boolean getIsInfobotFaqDataStore() { + return isInfobotFaqDataStore_; } - private com.google.cloud.discoveryengine.v1.Schema startingSchema_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder> - startingSchemaBuilder_; - /** * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
+     * Optional. If set, this DataStore is an Infobot FAQ DataStore.
+     * 
* - * This field is only used by - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API, and will be ignored if used in other APIs. This field will be omitted - * from all API responses including - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; * - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * @param value The isInfobotFaqDataStore to set. + * @return This builder for chaining. + */ + public Builder setIsInfobotFaqDataStore(boolean value) { + + isInfobotFaqDataStore_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, this DataStore is an Infobot FAQ DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the startingSchema field is set. + * @return This builder for chaining. */ - public boolean hasStartingSchema() { - return ((bitField0_ & 0x00008000) != 0); + public Builder clearIsInfobotFaqDataStore() { + bitField0_ = (bitField0_ & ~0x00080000); + isInfobotFaqDataStore_ = false; + onChanged(); + return this; } + private com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + federatedSearchConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder> + federatedSearchConfigBuilder_; + /** * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
+     * Optional. If set, this DataStore is a federated search DataStore.
+     * 
* - * This field is only used by - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API, and will be ignored if used in other APIs. This field will be omitted - * from all API responses including - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * * - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * @return Whether the federatedSearchConfig field is set. + */ + public boolean hasFederatedSearchConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The startingSchema. + * @return The federatedSearchConfig. */ - public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { - if (startingSchemaBuilder_ == null) { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : startingSchema_; + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + getFederatedSearchConfig() { + if (federatedSearchConfigBuilder_ == null) { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .getDefaultInstance() + : federatedSearchConfig_; } else { - return startingSchemaBuilder_.getMessage(); + return federatedSearchConfigBuilder_.getMessage(); } } @@ -6854,37 +17155,24 @@ public com.google.cloud.discoveryengine.v1.Schema getStartingSchema() { * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
-     *
-     * This field is only used by
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API, and will be ignored if used in other APIs. This field will be omitted
-     * from all API responses including
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API. To retrieve a schema of a
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-     * API instead.
-     *
-     * The provided schema will be validated against certain rules on schema.
-     * Learn more from [this
-     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { - if (startingSchemaBuilder_ == null) { + public Builder setFederatedSearchConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig value) { + if (federatedSearchConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - startingSchema_ = value; + federatedSearchConfig_ = value; } else { - startingSchemaBuilder_.setMessage(value); + federatedSearchConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6893,35 +17181,22 @@ public Builder setStartingSchema(com.google.cloud.discoveryengine.v1.Schema valu * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
-     *
-     * This field is only used by
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API, and will be ignored if used in other APIs. This field will be omitted
-     * from all API responses including
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API. To retrieve a schema of a
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-     * API instead.
-     *
-     * The provided schema will be validated against certain rules on schema.
-     * Learn more from [this
-     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setStartingSchema( - com.google.cloud.discoveryengine.v1.Schema.Builder builderForValue) { - if (startingSchemaBuilder_ == null) { - startingSchema_ = builderForValue.build(); + public Builder setFederatedSearchConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder + builderForValue) { + if (federatedSearchConfigBuilder_ == null) { + federatedSearchConfig_ = builderForValue.build(); } else { - startingSchemaBuilder_.setMessage(builderForValue.build()); + federatedSearchConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6930,41 +17205,30 @@ public Builder setStartingSchema( * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
-     *
-     * This field is only used by
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API, and will be ignored if used in other APIs. This field will be omitted
-     * from all API responses including
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API. To retrieve a schema of a
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-     * API instead.
-     *
-     * The provided schema will be validated against certain rules on schema.
-     * Learn more from [this
-     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema value) { - if (startingSchemaBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && startingSchema_ != null - && startingSchema_ != com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance()) { - getStartingSchemaBuilder().mergeFrom(value); + public Builder mergeFederatedSearchConfig( + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig value) { + if (federatedSearchConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && federatedSearchConfig_ != null + && federatedSearchConfig_ + != com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .getDefaultInstance()) { + getFederatedSearchConfigBuilder().mergeFrom(value); } else { - startingSchema_ = value; + federatedSearchConfig_ = value; } } else { - startingSchemaBuilder_.mergeFrom(value); + federatedSearchConfigBuilder_.mergeFrom(value); } - if (startingSchema_ != null) { - bitField0_ |= 0x00008000; + if (federatedSearchConfig_ != null) { + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -6974,33 +17238,19 @@ public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1.Schema va * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
-     *
-     * This field is only used by
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API, and will be ignored if used in other APIs. This field will be omitted
-     * from all API responses including
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API. To retrieve a schema of a
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-     * API instead.
-     *
-     * The provided schema will be validated against certain rules on schema.
-     * Learn more from [this
-     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearStartingSchema() { - bitField0_ = (bitField0_ & ~0x00008000); - startingSchema_ = null; - if (startingSchemaBuilder_ != null) { - startingSchemaBuilder_.dispose(); - startingSchemaBuilder_ = null; + public Builder clearFederatedSearchConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + federatedSearchConfig_ = null; + if (federatedSearchConfigBuilder_ != null) { + federatedSearchConfigBuilder_.dispose(); + federatedSearchConfigBuilder_ = null; } onChanged(); return this; @@ -7010,154 +17260,227 @@ public Builder clearStartingSchema() { * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
-     *
-     * This field is only used by
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API, and will be ignored if used in other APIs. This field will be omitted
-     * from all API responses including
-     * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore]
-     * API. To retrieve a schema of a
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore], use
-     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
-     * API instead.
-     *
-     * The provided schema will be validated against certain rules on schema.
-     * Learn more from [this
-     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.Schema.Builder getStartingSchemaBuilder() { - bitField0_ |= 0x00008000; + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder + getFederatedSearchConfigBuilder() { + bitField0_ |= 0x00100000; onChanged(); - return internalGetStartingSchemaFieldBuilder().getBuilder(); + return internalGetFederatedSearchConfigFieldBuilder().getBuilder(); } /** * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
+     * Optional. If set, this DataStore is a federated search DataStore.
+     * 
* - * This field is only used by - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API, and will be ignored if used in other APIs. This field will be omitted - * from all API responses including - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder + getFederatedSearchConfigOrBuilder() { + if (federatedSearchConfigBuilder_ != null) { + return federatedSearchConfigBuilder_.getMessageOrBuilder(); + } else { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig + .getDefaultInstance() + : federatedSearchConfig_; + } + } + + /** * - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * + *
+     * Optional. If set, this DataStore is a federated search DataStore.
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1.SchemaOrBuilder getStartingSchemaOrBuilder() { - if (startingSchemaBuilder_ != null) { - return startingSchemaBuilder_.getMessageOrBuilder(); - } else { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1.Schema.getDefaultInstance() - : startingSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder> + internalGetFederatedSearchConfigFieldBuilder() { + if (federatedSearchConfigBuilder_ == null) { + federatedSearchConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.Builder, + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder>( + getFederatedSearchConfig(), getParentForChildren(), isClean()); + federatedSearchConfig_ = null; } + return federatedSearchConfigBuilder_; } + private int configurableBillingApproach_ = 0; + /** * * *
-     * The start schema to use for this
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
-     * it. If unset, a default vertical specialized schema will be used.
+     * Optional. Configuration for configurable billing approach. See
+     * 
* - * This field is only used by - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API, and will be ignored if used in other APIs. This field will be omitted - * from all API responses including - * [CreateDataStore][google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore] - * API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; + } + + /** + * + * + *
+     * Optional. Configuration for configurable billing approach. See
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for configurableBillingApproach to set. + * @return This builder for chaining. + */ + public Builder setConfigurableBillingApproachValue(int value) { + configurableBillingApproach_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for configurable billing approach. See
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Configuration for configurable billing approach. See
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The configurableBillingApproach to set. + * @return This builder for chaining. + */ + public Builder setConfigurableBillingApproach( + com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00200000; + configurableBillingApproach_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for configurable billing approach. See
      * 
* - * .google.cloud.discoveryengine.v1.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder> - internalGetStartingSchemaFieldBuilder() { - if (startingSchemaBuilder_ == null) { - startingSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Schema, - com.google.cloud.discoveryengine.v1.Schema.Builder, - com.google.cloud.discoveryengine.v1.SchemaOrBuilder>( - getStartingSchema(), getParentForChildren(), isClean()); - startingSchema_ = null; - } - return startingSchemaBuilder_; + public Builder clearConfigurableBillingApproach() { + bitField0_ = (bitField0_ & ~0x00200000); + configurableBillingApproach_ = 0; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcareFhirConfig_; + private com.google.protobuf.Timestamp configurableBillingApproachUpdateTime_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, - com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder> - healthcareFhirConfigBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + configurableBillingApproachUpdateTimeBuilder_; /** * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the healthcareFhirConfig field is set. + * @return Whether the configurableBillingApproachUpdateTime field is set. */ - public boolean hasHealthcareFhirConfig() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasConfigurableBillingApproachUpdateTime() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The healthcareFhirConfig. + * @return The configurableBillingApproachUpdateTime. */ - public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhirConfig() { - if (healthcareFhirConfigBuilder_ == null) { - return healthcareFhirConfig_ == null - ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() - : healthcareFhirConfig_; + public com.google.protobuf.Timestamp getConfigurableBillingApproachUpdateTime() { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; } else { - return healthcareFhirConfigBuilder_.getMessage(); + return configurableBillingApproachUpdateTimeBuilder_.getMessage(); } } @@ -7165,24 +17488,24 @@ public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig getHealthcareFhi * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setHealthcareFhirConfig( - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { - if (healthcareFhirConfigBuilder_ == null) { + public Builder setConfigurableBillingApproachUpdateTime(com.google.protobuf.Timestamp value) { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - healthcareFhirConfig_ = value; + configurableBillingApproachUpdateTime_ = value; } else { - healthcareFhirConfigBuilder_.setMessage(value); + configurableBillingApproachUpdateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7191,21 +17514,22 @@ public Builder setHealthcareFhirConfig( * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setHealthcareFhirConfig( - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder builderForValue) { - if (healthcareFhirConfigBuilder_ == null) { - healthcareFhirConfig_ = builderForValue.build(); + public Builder setConfigurableBillingApproachUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + configurableBillingApproachUpdateTime_ = builderForValue.build(); } else { - healthcareFhirConfigBuilder_.setMessage(builderForValue.build()); + configurableBillingApproachUpdateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7214,29 +17538,29 @@ public Builder setHealthcareFhirConfig( * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeHealthcareFhirConfig( - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig value) { - if (healthcareFhirConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && healthcareFhirConfig_ != null - && healthcareFhirConfig_ - != com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance()) { - getHealthcareFhirConfigBuilder().mergeFrom(value); + public Builder mergeConfigurableBillingApproachUpdateTime(com.google.protobuf.Timestamp value) { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && configurableBillingApproachUpdateTime_ != null + && configurableBillingApproachUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getConfigurableBillingApproachUpdateTimeBuilder().mergeFrom(value); } else { - healthcareFhirConfig_ = value; + configurableBillingApproachUpdateTime_ = value; } } else { - healthcareFhirConfigBuilder_.mergeFrom(value); + configurableBillingApproachUpdateTimeBuilder_.mergeFrom(value); } - if (healthcareFhirConfig_ != null) { - bitField0_ |= 0x00010000; + if (configurableBillingApproachUpdateTime_ != null) { + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -7246,19 +17570,20 @@ public Builder mergeHealthcareFhirConfig( * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearHealthcareFhirConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - healthcareFhirConfig_ = null; - if (healthcareFhirConfigBuilder_ != null) { - healthcareFhirConfigBuilder_.dispose(); - healthcareFhirConfigBuilder_ = null; + public Builder clearConfigurableBillingApproachUpdateTime() { + bitField0_ = (bitField0_ & ~0x00400000); + configurableBillingApproachUpdateTime_ = null; + if (configurableBillingApproachUpdateTimeBuilder_ != null) { + configurableBillingApproachUpdateTimeBuilder_.dispose(); + configurableBillingApproachUpdateTimeBuilder_ = null; } onChanged(); return this; @@ -7268,39 +17593,40 @@ public Builder clearHealthcareFhirConfig() { * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder - getHealthcareFhirConfigBuilder() { - bitField0_ |= 0x00010000; + public com.google.protobuf.Timestamp.Builder getConfigurableBillingApproachUpdateTimeBuilder() { + bitField0_ |= 0x00400000; onChanged(); - return internalGetHealthcareFhirConfigFieldBuilder().getBuilder(); + return internalGetConfigurableBillingApproachUpdateTimeFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder - getHealthcareFhirConfigOrBuilder() { - if (healthcareFhirConfigBuilder_ != null) { - return healthcareFhirConfigBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder + getConfigurableBillingApproachUpdateTimeOrBuilder() { + if (configurableBillingApproachUpdateTimeBuilder_ != null) { + return configurableBillingApproachUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return healthcareFhirConfig_ == null - ? com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.getDefaultInstance() - : healthcareFhirConfig_; + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; } } @@ -7308,87 +17634,75 @@ public Builder clearHealthcareFhirConfig() { * * *
-     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
+     * Output only. The timestamp when configurable_billing_approach was last
+     * updated.
      * 
* * - * .google.cloud.discoveryengine.v1.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, - com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder> - internalGetHealthcareFhirConfigFieldBuilder() { - if (healthcareFhirConfigBuilder_ == null) { - healthcareFhirConfigBuilder_ = + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetConfigurableBillingApproachUpdateTimeFieldBuilder() { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + configurableBillingApproachUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig, - com.google.cloud.discoveryengine.v1.HealthcareFhirConfig.Builder, - com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder>( - getHealthcareFhirConfig(), getParentForChildren(), isClean()); - healthcareFhirConfig_ = null; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getConfigurableBillingApproachUpdateTime(), getParentForChildren(), isClean()); + configurableBillingApproachUpdateTime_ = null; } - return healthcareFhirConfigBuilder_; + return configurableBillingApproachUpdateTimeBuilder_; } - private java.lang.Object identityMappingStore_ = ""; + private com.google.cloud.discoveryengine.v1.DataProtectionPolicy dataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder> + dataProtectionPolicyBuilder_; /** * * *
-     * Immutable. The fully qualified resource name of the associated
-     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-     * `GSUITE` IdP. Format:
-     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+     * Optional. Specifies the data protection policy for the data store.
      * 
* * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The identityMappingStore. + * @return Whether the dataProtectionPolicy field is set. */ - public java.lang.String getIdentityMappingStore() { - java.lang.Object ref = identityMappingStore_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identityMappingStore_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
-     * Immutable. The fully qualified resource name of the associated
-     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-     * `GSUITE` IdP. Format:
-     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+     * Optional. Specifies the data protection policy for the data store.
      * 
* * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bytes for identityMappingStore. + * @return The dataProtectionPolicy. */ - public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { - java.lang.Object ref = identityMappingStore_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - identityMappingStore_ = b; - return b; + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy() { + if (dataProtectionPolicyBuilder_ == null) { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; } else { - return (com.google.protobuf.ByteString) ref; + return dataProtectionPolicyBuilder_.getMessage(); } } @@ -7396,26 +17710,24 @@ public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { * * *
-     * Immutable. The fully qualified resource name of the associated
-     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-     * `GSUITE` IdP. Format:
-     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+     * Optional. Specifies the data protection policy for the data store.
      * 
* * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The identityMappingStore to set. - * @return This builder for chaining. */ - public Builder setIdentityMappingStore(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy value) { + if (dataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataProtectionPolicy_ = value; + } else { + dataProtectionPolicyBuilder_.setMessage(value); } - identityMappingStore_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7424,22 +17736,21 @@ public Builder setIdentityMappingStore(java.lang.String value) { * * *
-     * Immutable. The fully qualified resource name of the associated
-     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-     * `GSUITE` IdP. Format:
-     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+     * Optional. Specifies the data protection policy for the data store.
      * 
* * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearIdentityMappingStore() { - identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); - bitField0_ = (bitField0_ & ~0x00020000); + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder builderForValue) { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicy_ = builderForValue.build(); + } else { + dataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7448,31 +17759,124 @@ public Builder clearIdentityMappingStore() { * * *
-     * Immutable. The fully qualified resource name of the associated
-     * [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore].
-     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
-     * `GSUITE` IdP. Format:
-     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
+     * Optional. Specifies the data protection policy for the data store.
      * 
* * - * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder mergeDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.DataProtectionPolicy value) { + if (dataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && dataProtectionPolicy_ != null + && dataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance()) { + getDataProtectionPolicyBuilder().mergeFrom(value); + } else { + dataProtectionPolicy_ = value; + } + } else { + dataProtectionPolicyBuilder_.mergeFrom(value); + } + if (dataProtectionPolicy_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for identityMappingStore to set. - * @return This builder for chaining. + * + *
+     * Optional. Specifies the data protection policy for the data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00800000); + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; } - checkByteStringIsUtf8(value); - identityMappingStore_ = value; - bitField0_ |= 0x00020000; onChanged(); return this; } + /** + * + * + *
+     * Optional. Specifies the data protection policy for the data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder + getDataProtectionPolicyBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return internalGetDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + if (dataProtectionPolicyBuilder_ != null) { + return dataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + } + + /** + * + * + *
+     * Optional. Specifies the data protection policy for the data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder> + internalGetDataProtectionPolicyFieldBuilder() { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder>( + getDataProtectionPolicy(), getParentForChildren(), isClean()); + dataProtectionPolicy_ = null; + } + return dataProtectionPolicyBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DataStore) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java index 2e90fade806c..d0a73c688d5c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreOrBuilder.java @@ -794,6 +794,50 @@ public interface DataStoreOrBuilder com.google.cloud.discoveryengine.v1.HealthcareFhirConfigOrBuilder getHealthcareFhirConfigOrBuilder(); + /** + * + * + *
+   * Optional. Stores serving config at DataStore level.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the servingConfigDataStore field is set. + */ + boolean hasServingConfigDataStore(); + + /** + * + * + *
+   * Optional. Stores serving config at DataStore level.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The servingConfigDataStore. + */ + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore getServingConfigDataStore(); + + /** + * + * + *
+   * Optional. Stores serving config at DataStore level.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.ServingConfigDataStoreOrBuilder + getServingConfigDataStoreOrBuilder(); + /** * * @@ -831,4 +875,182 @@ public interface DataStoreOrBuilder * @return The bytes for identityMappingStore. */ com.google.protobuf.ByteString getIdentityMappingStoreBytes(); + + /** + * + * + *
+   * Optional. If set, this DataStore is an Infobot FAQ DataStore.
+   * 
+ * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isInfobotFaqDataStore. + */ + boolean getIsInfobotFaqDataStore(); + + /** + * + * + *
+   * Optional. If set, this DataStore is a federated search DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedSearchConfig field is set. + */ + boolean hasFederatedSearchConfig(); + + /** + * + * + *
+   * Optional. If set, this DataStore is a federated search DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedSearchConfig. + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig getFederatedSearchConfig(); + + /** + * + * + *
+   * Optional. If set, this DataStore is a federated search DataStore.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataStore.FederatedSearchConfigOrBuilder + getFederatedSearchConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach. See
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + int getConfigurableBillingApproachValue(); + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach. See
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + com.google.cloud.discoveryengine.v1.DataStore.ConfigurableBillingApproach + getConfigurableBillingApproach(); + + /** + * + * + *
+   * Output only. The timestamp when configurable_billing_approach was last
+   * updated.
+   * 
+ * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingApproachUpdateTime field is set. + */ + boolean hasConfigurableBillingApproachUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when configurable_billing_approach was last
+   * updated.
+   * 
+ * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingApproachUpdateTime. + */ + com.google.protobuf.Timestamp getConfigurableBillingApproachUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when configurable_billing_approach was last
+   * updated.
+   * 
+ * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getConfigurableBillingApproachUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + boolean hasDataProtectionPolicy(); + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicy getDataProtectionPolicy(); + + /** + * + * + *
+   * Optional. Specifies the data protection policy for the data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataProtectionPolicy data_protection_policy = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java index a41a504253e2..19e6eaee0456 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreProto.java @@ -48,6 +48,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_AdvancedSiteSearchConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -69,89 +97,152 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n0google/cloud/discoveryengine/v1/data_s" - + "tore.proto\022\037google.cloud.discoveryengine" + "\n" + + "0google/cloud/discoveryengine/v1/data_store.proto\022\037google.cloud.discoveryengine" + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0329google/cloud/di" - + "scoveryengine/v1/cmek_config_service.pro" - + "to\032,google/cloud/discoveryengine/v1/comm" - + "on.proto\032@google/cloud/discoveryengine/v" + + "ogle/api/resource.proto\0329google/cloud/discoveryengine/v1/cmek_config_service.pro" + + "to\032,google/cloud/discoveryengine/v1/common.proto\032@google/cloud/discoveryengine/v" + "1/document_processing_config.proto\032,goog" - + "le/cloud/discoveryengine/v1/schema.proto" - + "\032\037google/protobuf/timestamp.proto\"\370\016\n\tDa" - + "taStore\022\023\n\004name\030\001 \001(\tB\005\342A\002\005\010\022\032\n\014display_" - + "name\030\002 \001(\tB\004\342A\001\002\022R\n\021industry_vertical\030\003 " - + "\001(\01621.google.cloud.discoveryengine.v1.In" - + "dustryVerticalB\004\342A\001\005\022E\n\016solution_types\030\005" - + " \003(\0162-.google.cloud.discoveryengine.v1.S" - + "olutionType\022\037\n\021default_schema_id\030\007 \001(\tB\004" - + "\342A\001\003\022V\n\016content_config\030\006 \001(\01628.google.cl" - + "oud.discoveryengine.v1.DataStore.Content" - + "ConfigB\004\342A\001\005\0225\n\013create_time\030\004 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\022d\n\033advanced_" - + "site_search_config\030\014 \001(\01329.google.cloud." - + "discoveryengine.v1.AdvancedSiteSearchCon" - + "figB\004\342A\001\001\022\203\001\n+natural_language_query_und" - + "erstanding_config\030\" \001(\0132H.google.cloud.d" - + "iscoveryengine.v1.NaturalLanguageQueryUn" - + "derstandingConfigB\004\342A\001\001\022\032\n\014kms_key_name\030" - + " \001(\tB\004\342A\001\004\022F\n\013cmek_config\030\022 \001(\0132+.googl" - + "e.cloud.discoveryengine.v1.CmekConfigB\004\342" - + "A\001\003\022^\n\022billing_estimation\030\027 \001(\0132<.google" - + ".cloud.discoveryengine.v1.DataStore.Bill" - + "ingEstimationB\004\342A\001\003\022\031\n\013acl_enabled\030\030 \001(\010" - + "B\004\342A\001\005\022J\n\020workspace_config\030\031 \001(\01320.googl" - + "e.cloud.discoveryengine.v1.WorkspaceConf" - + "ig\022]\n\032document_processing_config\030\033 \001(\01329" - + ".google.cloud.discoveryengine.v1.Documen" - + "tProcessingConfig\022@\n\017starting_schema\030\034 \001" - + "(\0132\'.google.cloud.discoveryengine.v1.Sch" - + "ema\022[\n\026healthcare_fhir_config\030\035 \001(\01325.go" - + "ogle.cloud.discoveryengine.v1.Healthcare" - + "FhirConfigB\004\342A\001\001\022\\\n\026identity_mapping_sto" - + "re\030\037 \001(\tB<\342A\001\005\372A5\n3discoveryengine.googl" - + "eapis.com/IdentityMappingStore\032\256\002\n\021Billi" - + "ngEstimation\022\034\n\024structured_data_size\030\001 \001" - + "(\003\022\036\n\026unstructured_data_size\030\002 \001(\003\022\031\n\021we" - + "bsite_data_size\030\003 \001(\003\022?\n\033structured_data" - + "_update_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\022A\n\035unstructured_data_update_time\030" - + "\005 \001(\0132\032.google.protobuf.Timestamp\022<\n\030web" - + "site_data_update_time\030\006 \001(\0132\032.google.pro" - + "tobuf.Timestamp\"\177\n\rContentConfig\022\036\n\032CONT" - + "ENT_CONFIG_UNSPECIFIED\020\000\022\016\n\nNO_CONTENT\020\001" - + "\022\024\n\020CONTENT_REQUIRED\020\002\022\022\n\016PUBLIC_WEBSITE" - + "\020\003\022\024\n\020GOOGLE_WORKSPACE\020\004:\311\001\352A\305\001\n(discove" - + "ryengine.googleapis.com/DataStore\022?proje" - + "cts/{project}/locations/{location}/dataS" - + "tores/{data_store}\022Xprojects/{project}/l" - + "ocations/{location}/collections/{collect" - + "ion}/dataStores/{data_store}\"\236\001\n\030Advance" - + "dSiteSearchConfig\022\"\n\025disable_initial_ind" - + "ex\030\003 \001(\010H\000\210\001\001\022&\n\031disable_automatic_refre" - + "sh\030\004 \001(\010H\001\210\001\001B\030\n\026_disable_initial_indexB" - + "\034\n\032_disable_automatic_refresh\"\277\001\n\'Natura" - + "lLanguageQueryUnderstandingConfig\022[\n\004mod" - + "e\030\001 \001(\0162M.google.cloud.discoveryengine.v" - + "1.NaturalLanguageQueryUnderstandingConfi" - + "g.Mode\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010" - + "DISABLED\020\001\022\013\n\007ENABLED\020\002\"\367\002\n\017WorkspaceCon" - + "fig\022C\n\004type\030\001 \001(\01625.google.cloud.discove" - + "ryengine.v1.WorkspaceConfig.Type\022\032\n\022dash" - + "er_customer_id\030\002 \001(\t\022)\n\033super_admin_serv" - + "ice_account\030\004 \001(\tB\004\342A\001\001\022\'\n\031super_admin_e" - + "mail_address\030\005 \001(\tB\004\342A\001\001\"\256\001\n\004Type\022\024\n\020TYP" - + "E_UNSPECIFIED\020\000\022\020\n\014GOOGLE_DRIVE\020\001\022\017\n\013GOO" - + "GLE_MAIL\020\002\022\020\n\014GOOGLE_SITES\020\003\022\023\n\017GOOGLE_C" - + "ALENDAR\020\004\022\017\n\013GOOGLE_CHAT\020\005\022\021\n\rGOOGLE_GRO" - + "UPS\020\006\022\017\n\013GOOGLE_KEEP\020\007\022\021\n\rGOOGLE_PEOPLE\020" - + "\010B\201\002\n#com.google.cloud.discoveryengine.v" - + "1B\016DataStoreProtoP\001ZMcloud.google.com/go" - + "/discoveryengine/apiv1/discoveryenginepb" - + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037G" - + "oogle.Cloud.DiscoveryEngine.V1\312\002\037Google\\" - + "Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cloud" - + "::DiscoveryEngine::V1b\006proto3" + + "le/cloud/discoveryengine/v1/schema.proto\032\037google/protobuf/timestamp.proto\"\343\037\n" + + "\tDataStore\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\005\010\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\002\022R\n" + + "\021industry_vertical\030\003 " + + "\001(\01621.google.cloud.discoveryengine.v1.IndustryVerticalB\004\342A\001\005\022E\n" + + "\016solution_types\030\005" + + " \003(\0162-.google.cloud.discoveryengine.v1.SolutionType\022\037\n" + + "\021default_schema_id\030\007 \001(\tB\004\342A\001\003\022V\n" + + "\016content_config\030\006 \001(\01628.google.cl" + + "oud.discoveryengine.v1.DataStore.ContentConfigB\004\342A\001\005\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022d\n" + + "\033advanced_site_search_config\030\014 \001(\01329.google.cloud." + + "discoveryengine.v1.AdvancedSiteSearchConfigB\004\342A\001\001\022\203\001\n" + + "+natural_language_query_understanding_config\030\" \001(\0132H.google.cloud.d" + + "iscoveryengine.v1.NaturalLanguageQueryUnderstandingConfigB\004\342A\001\001\022\032\n" + + "\014kms_key_name\030 \001(\tB\004\342A\001\004\022F\n" + + "\013cmek_config\030\022 \001(\0132+.googl" + + "e.cloud.discoveryengine.v1.CmekConfigB\004\342A\001\003\022^\n" + + "\022billing_estimation\030\027 \001(\0132<.google" + + ".cloud.discoveryengine.v1.DataStore.BillingEstimationB\004\342A\001\003\022\031\n" + + "\013acl_enabled\030\030 \001(\010B\004\342A\001\005\022J\n" + + "\020workspace_config\030\031 \001(\01320.googl" + + "e.cloud.discoveryengine.v1.WorkspaceConfig\022]\n" + + "\032document_processing_config\030\033 \001(\01329" + + ".google.cloud.discoveryengine.v1.DocumentProcessingConfig\022@\n" + + "\017starting_schema\030\034 \001(\0132\'.google.cloud.discoveryengine.v1.Schema\022[\n" + + "\026healthcare_fhir_config\030\035 \001(\01325.go" + + "ogle.cloud.discoveryengine.v1.HealthcareFhirConfigB\004\342A\001\001\022j\n" + + "\031serving_config_data_store\030\036 \001(\0132A.google.cloud.discoveryengi" + + "ne.v1.DataStore.ServingConfigDataStoreB\004\342A\001\001\022\\\n" + + "\026identity_mapping_store\030\037 \001(\tB<\342A\001\005\372A5\n" + + "3discoveryengine.googleapis.com/IdentityMappingStore\022\'\n" + + "\031is_infobot_faq_data_store\030% \001(\010B\004\342A\001\001\022g\n" + + "\027federated_search_config\030& \001(\0132@.google.cloud.discoveryeng" + + "ine.v1.DataStore.FederatedSearchConfigB\004\342A\001\001\022s\n" + + "\035configurable_billing_approach\030- \001(\0162F.google.cloud.discoveryengine.v1.Da" + + "taStore.ConfigurableBillingApproachB\004\342A\001\001\022S\n" + + ")configurable_billing_approach_update_time\030." + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022[\n" + + "\026data_protection_policy\0300 \001(\01325" + + ".google.cloud.discoveryengine.v1.DataProtectionPolicyB\004\342A\001\001\032\256\002\n" + + "\021BillingEstimation\022\034\n" + + "\024structured_data_size\030\001 \001(\003\022\036\n" + + "\026unstructured_data_size\030\002 \001(\003\022\031\n" + + "\021website_data_size\030\003 \001(\003\022?\n" + + "\033structured_data_update_time\030\004" + + " \001(\0132\032.google.protobuf.Timestamp\022A\n" + + "\035unstructured_data_update_time\030\005" + + " \001(\0132\032.google.protobuf.Timestamp\022<\n" + + "\030website_data_update_time\030\006 \001(\0132\032.google.protobuf.Timestamp\032<\n" + + "\026ServingConfigDataStore\022\"\n" + + "\024disabled_for_serving\030\001 \001(\010B\004\342A\001\001\032\341\n\n" + + "\025FederatedSearchConfig\022i\n" + + "\017alloy_db_config\030\001 \001(\0132N.google.cloud.discoveryengine.v1.DataStor" + + "e.FederatedSearchConfig.AlloyDbConfigH\000\022z\n" + + "\030third_party_oauth_config\030\002 \001(\0132V.goog" + + "le.cloud.discoveryengine.v1.DataStore.Fe" + + "deratedSearchConfig.ThirdPartyOauthConfigH\000\022n\n" + + "\021notebooklm_config\030\003 \001(\0132Q.google." + + "cloud.discoveryengine.v1.DataStore.FederatedSearchConfig.NotebooklmConfigH\000\032\226\006\n\r" + + "AlloyDbConfig\022\217\001\n" + + "\031alloydb_connection_config\030\001 \001(\0132f.google.cloud.discoveryengine" + + ".v1.DataStore.FederatedSearchConfig.Allo" + + "yDbConfig.AlloyDbConnectionConfigB\004\342A\001\002\022\221\001\n" + + "\024alloydb_ai_nl_config\030\002 \001(\0132m.google." + + "cloud.discoveryengine.v1.DataStore.Feder" + + "atedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfigB\004\342A\001\001\022\035\n" + + "\017returned_fields\030\003 \003(\tB\004\342A\001\001\032\201\003\n" + + "\027AlloyDbConnectionConfig\022\026\n" + + "\010instance\030\001 \001(\tB\004\342A\001\002\022\026\n" + + "\010database\030\002 \001(\tB\004\342A\001\002\022\022\n" + + "\004user\030\003 \001(\tB\004\342A\001\002\022\026\n" + + "\010password\030\004 \001(\tB\004\342A\001\002\022\210\001\n" + + "\tauth_mode\030\005 \001(\0162o.google.cloud.discoveryengine.v1.DataSto" + + "re.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthModeB\004\342A\001\001\022\031\n" + + "\013enable_psvs\030\006 \001(\010B\004\342A\001\001\"d\n" + + "\010AuthMode\022\031\n" + + "\025AUTH_MODE_UNSPECIFIED\020\000\022\035\n" + + "\031AUTH_MODE_SERVICE_ACCOUNT\020\001\022\036\n" + + "\032AUTH_MODE_END_USER_ACCOUNT\020\002\032<\n" + + "\036AlloyDbAiNaturalLanguageConfig\022\032\n" + + "\014nl_config_id\030\001 \001(\tB\004\342A\001\001\032L\n" + + "\025ThirdPartyOauthConfig\022\026\n" + + "\010app_name\030\001 \001(\tB\004\342A\001\001\022\033\n" + + "\r" + + "instance_name\030\002 \001(\tB\004\342A\001\001\032t\n" + + "\020NotebooklmConfig\022\033\n\r" + + "search_config\030\001 \001(\tB\004\342A\001\002\022C\n" + + "\tnotebooks\030\002 \003(\tB0\342A\001\001\372A)\n" + + "\'discoveryengine.googleapis.com/NotebookB\024\n" + + "\022data_source_config\"\177\n\r" + + "ContentConfig\022\036\n" + + "\032CONTENT_CONFIG_UNSPECIFIED\020\000\022\016\n\n" + + "NO_CONTENT\020\001\022\024\n" + + "\020CONTENT_REQUIRED\020\002\022\022\n" + + "\016PUBLIC_WEBSITE\020\003\022\024\n" + + "\020GOOGLE_WORKSPACE\020\004\"\241\001\n" + + "\033ConfigurableBillingApproach\022-\n" + + ")CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED\020\000\022+\n" + + "\'CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE\020\001\022&\n" + + "\"CONFIGURABLE_CONSUMPTION_EMBEDDING\020\002:\311\001\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022?projects/{" + + "project}/locations/{location}/dataStores/{data_store}\022Xprojects/{project}/locati" + + "ons/{location}/collections/{collection}/dataStores/{data_store}\"\236\001\n" + + "\030AdvancedSiteSearchConfig\022\"\n" + + "\025disable_initial_index\030\003 \001(\010H\000\210\001\001\022&\n" + + "\031disable_automatic_refresh\030\004 \001(\010H\001\210\001\001B\030\n" + + "\026_disable_initial_indexB\034\n" + + "\032_disable_automatic_refresh\"\277\001\n" + + "\'NaturalLanguageQueryUnderstandingConfig\022[\n" + + "\004mode\030\001 \001(\0162M.google.cloud.discoveryengine.v1.Nat" + + "uralLanguageQueryUnderstandingConfig.Mode\"7\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\"\223\003\n" + + "\017WorkspaceConfig\022C\n" + + "\004type\030\001 \001(\01625.google.cloud.discoveryengine.v1.WorkspaceConfig.Type\022" + + " \n" + + "\022dasher_customer_id\030\002 \001(\tB\004\342A\001\003\022)\n" + + "\033super_admin_service_account\030\004 \001(\tB\004\342A\001\001\022\'\n" + + "\031super_admin_email_address\030\005 \001(\tB\004\342A\001\001\"\304\001\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\020\n" + + "\014GOOGLE_DRIVE\020\001\022\017\n" + + "\013GOOGLE_MAIL\020\002\022\020\n" + + "\014GOOGLE_SITES\020\003\022\023\n" + + "\017GOOGLE_CALENDAR\020\004\022\017\n" + + "\013GOOGLE_CHAT\020\005\022\021\n\r" + + "GOOGLE_GROUPS\020\006\022\017\n" + + "\013GOOGLE_KEEP\020\007\022\021\n\r" + + "GOOGLE_PEOPLE\020\010\022\024\n" + + "\020GOOGLE_WORKSPACE\020\tB\201\002\n" + + "#com.google.cloud.discoveryengine.v1B\016DataStoreProto" + + "P\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginep" + + "b\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Disco" + + "veryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEn" + + "gine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -188,7 +279,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DocumentProcessingConfig", "StartingSchema", "HealthcareFhirConfig", + "ServingConfigDataStore", "IdentityMappingStore", + "IsInfobotFaqDataStore", + "FederatedSearchConfig", + "ConfigurableBillingApproach", + "ConfigurableBillingApproachUpdateTime", + "DataProtectionPolicy", }); internal_static_google_cloud_discoveryengine_v1_DataStore_BillingEstimation_descriptor = internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor.getNestedType(0); @@ -203,6 +300,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UnstructuredDataUpdateTime", "WebsiteDataUpdateTime", }); + internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_ServingConfigDataStore_descriptor, + new java.lang.String[] { + "DisabledForServing", + }); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor, + new java.lang.String[] { + "AlloyDbConfig", "ThirdPartyOauthConfig", "NotebooklmConfig", "DataSourceConfig", + }); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor, + new java.lang.String[] { + "AlloydbConnectionConfig", "AlloydbAiNlConfig", "ReturnedFields", + }); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor, + new java.lang.String[] { + "Instance", "Database", "User", "Password", "AuthMode", "EnablePsvs", + }); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor, + new java.lang.String[] { + "NlConfigId", + }); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor, + new java.lang.String[] { + "AppName", "InstanceName", + }); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor, + new java.lang.String[] { + "SearchConfig", "Notebooks", + }); internal_static_google_cloud_discoveryengine_v1_AdvancedSiteSearchConfig_descriptor = getDescriptor().getMessageType(1); internal_static_google_cloud_discoveryengine_v1_AdvancedSiteSearchConfig_fieldAccessorTable = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceProto.java index 7e995b80c9d3..b8c47314c828 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceProto.java @@ -87,89 +87,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" + ".proto\0320google/cloud/discoveryengine/v1/" - + "data_store.proto\032#google/longrunning/ope" - + "rations.proto\032\033google/protobuf/empty.pro" - + "to\032 google/protobuf/field_mask.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"\376\002\n\026Create" - + "DataStoreRequest\022J\n\020cmek_config_name\030\005 \001" - + "(\tB.\372A+\n)discoveryengine.googleapis.com/" - + "CmekConfigH\000\022\026\n\014disable_cmek\030\006 \001(\010H\000\022B\n\006" - + "parent\030\001 \001(\tB2\342A\001\002\372A+\n)discoveryengine.g" - + "oogleapis.com/Collection\022D\n\ndata_store\030\002" - + " \001(\0132*.google.cloud.discoveryengine.v1.D" - + "ataStoreB\004\342A\001\002\022\033\n\rdata_store_id\030\003 \001(\tB\004\342" - + "A\001\002\022#\n\033create_advanced_site_search\030\004 \001(\010" - + "\022$\n\034skip_default_schema_creation\030\007 \001(\010B\016" - + "\n\014cmek_options\"V\n\023GetDataStoreRequest\022?\n" - + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.go" - + "ogleapis.com/DataStore\"{\n\027CreateDataStor" - + "eMetadata\022/\n\013create_time\030\001 \001(\0132\032.google." - + "protobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132" - + "\032.google.protobuf.Timestamp\"\222\001\n\025ListData" - + "StoresRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)" - + "discoveryengine.googleapis.com/Collectio" - + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\022\016\n\006filter\030\004 \001(\t\"r\n\026ListDataStoresRespon" - + "se\022?\n\013data_stores\030\001 \003(\0132*.google.cloud.d" - + "iscoveryengine.v1.DataStore\022\027\n\017next_page" - + "_token\030\002 \001(\t\"Y\n\026DeleteDataStoreRequest\022?" - + "\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.g" - + "oogleapis.com/DataStore\"\217\001\n\026UpdateDataSt" - + "oreRequest\022D\n\ndata_store\030\001 \001(\0132*.google." - + "cloud.discoveryengine.v1.DataStoreB\004\342A\001\002" - + "\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMask\"{\n\027DeleteDataStoreMetadata\022/\n\013" - + "create_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stamp\022/\n\013update_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp2\335\014\n\020DataStoreService\022\204\003\n\017" - + "CreateDataStore\0227.google.cloud.discovery" - + "engine.v1.CreateDataStoreRequest\032\035.googl" - + "e.longrunning.Operation\"\230\002\312Ad\n)google.cl" - + "oud.discoveryengine.v1.DataStore\0227google" - + ".cloud.discoveryengine.v1.CreateDataStor" - + "eMetadata\332A\037parent,data_store,data_store" - + "_id\202\323\344\223\002\210\001\"./v1/{parent=projects/*/locat" - + "ions/*}/dataStores:\ndata_storeZJ\"\022\022*\022\022* + * Request message for the + * [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1.AssistantService.DeleteAssistant] + * method. + * + * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteAssistantRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteAssistantRequest) + DeleteAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteAssistantRequest"); + } + + // Use DeleteAssistantRequest.newBuilder() to construct. + private DeleteAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAssistantRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.class, + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to delete the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to delete the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DeleteAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest other = + (com.google.cloud.discoveryengine.v1.DeleteAssistantRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the
+   * [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1.AssistantService.DeleteAssistant]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DeleteAssistantRequest) + com.google.cloud.discoveryengine.v1.DeleteAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.class, + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteAssistantRequest build() { + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1.DeleteAssistantRequest result = + new com.google.cloud.discoveryengine.v1.DeleteAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DeleteAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteAssistantRequest other) { + if (other == com.google.cloud.discoveryengine.v1.DeleteAssistantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to delete the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to delete the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to delete the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to delete the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to delete the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteAssistantRequest) + private static final com.google.cloud.discoveryengine.v1.DeleteAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1.DeleteAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..a196d26a667a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteAssistantRequestOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DeleteAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to delete the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to delete the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadata.java new file mode 100644 index 000000000000..2ccdad240d6b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadata.java @@ -0,0 +1,992 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Metadata related to the progress of the
+ * [CollectionService.UpdateCollection][] operation. This will be returned by
+ * the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteCollectionMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteCollectionMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteCollectionMetadata) + DeleteCollectionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteCollectionMetadata"); + } + + // Use DeleteCollectionMetadata.newBuilder() to construct. + private DeleteCollectionMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCollectionMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.class, + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata other = + (com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata related to the progress of the
+   * [CollectionService.UpdateCollection][] operation. This will be returned by
+   * the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteCollectionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DeleteCollectionMetadata) + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.class, + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata build() { + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata buildPartial() { + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata result = + new com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteCollectionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteCollectionMetadata) + private static final com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCollectionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadataOrBuilder.java new file mode 100644 index 000000000000..42bdab533d53 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionMetadataOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DeleteCollectionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteCollectionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequest.java new file mode 100644 index 000000000000..7bcc95477238 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteCollectionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteCollectionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteCollectionRequest) + DeleteCollectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteCollectionRequest"); + } + + // Use DeleteCollectionRequest.newBuilder() to construct. + private DeleteCollectionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCollectionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.class, + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The full resource name of the Collection, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The full resource name of the Collection, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DeleteCollectionRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest other = + (com.google.cloud.discoveryengine.v1.DeleteCollectionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteCollectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DeleteCollectionRequest) + com.google.cloud.discoveryengine.v1.DeleteCollectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.class, + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CollectionServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteCollectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionRequest build() { + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionRequest buildPartial() { + com.google.cloud.discoveryengine.v1.DeleteCollectionRequest result = + new com.google.cloud.discoveryengine.v1.DeleteCollectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DeleteCollectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DeleteCollectionRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteCollectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteCollectionRequest other) { + if (other == com.google.cloud.discoveryengine.v1.DeleteCollectionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The full resource name of the Collection, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The full resource name of the Collection, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The full resource name of the Collection, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full resource name of the Collection, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The full resource name of the Collection, in the format of
+     * `projects/{project}/locations/{location}/collections/{collection}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteCollectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteCollectionRequest) + private static final com.google.cloud.discoveryengine.v1.DeleteCollectionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteCollectionRequest(); + } + + public static com.google.cloud.discoveryengine.v1.DeleteCollectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCollectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteCollectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequestOrBuilder.java new file mode 100644 index 000000000000..08d496da92b0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteCollectionRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/collection_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DeleteCollectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteCollectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full resource name of the Collection, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The full resource name of the Collection, in the format of
+   * `projects/{project}/locations/{location}/collections/{collection}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequest.java new file mode 100644 index 000000000000..c16a7c8e2de5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequest.java @@ -0,0 +1,624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for DeleteServingConfig method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteServingConfigRequest} + */ +@com.google.protobuf.Generated +public final class DeleteServingConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DeleteServingConfigRequest) + DeleteServingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteServingConfigRequest"); + } + + // Use DeleteServingConfigRequest.newBuilder() to construct. + private DeleteServingConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteServingConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.class, + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to delete. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to delete. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest other = + (com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for DeleteServingConfig method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DeleteServingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DeleteServingConfigRequest) + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.class, + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest build() { + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest result = + new com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to delete. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to delete. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to delete. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to delete. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to delete. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DeleteServingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DeleteServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServingConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..e73b1c5a8d1f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DeleteServingConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DeleteServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DeleteServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to delete. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to delete. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfig.java new file mode 100644 index 000000000000..df15750b80f8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfig.java @@ -0,0 +1,2707 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Defines target endpoints used to connect to third-party sources.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DestinationConfig} + */ +@com.google.protobuf.Generated +public final class DestinationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DestinationConfig) + DestinationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DestinationConfig"); + } + + // Use DestinationConfig.newBuilder() to construct. + private DestinationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DestinationConfig() { + key_ = ""; + destinations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DestinationConfig.class, + com.google.cloud.discoveryengine.v1.DestinationConfig.Builder.class); + } + + public interface DestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DestinationConfig.Destination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Publicly routable host.
+     * 
+ * + * string host = 1; + * + * @return Whether the host field is set. + */ + boolean hasHost(); + + /** + * + * + *
+     * Publicly routable host.
+     * 
+ * + * string host = 1; + * + * @return The host. + */ + java.lang.String getHost(); + + /** + * + * + *
+     * Publicly routable host.
+     * 
+ * + * string host = 1; + * + * @return The bytes for host. + */ + com.google.protobuf.ByteString getHostBytes(); + + /** + * + * + *
+     * Optional. Target port number accepted by the destination.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The port. + */ + int getPort(); + + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.DestinationCase + getDestinationCase(); + } + + /** + * + * + *
+   * Defines a target endpoint
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DestinationConfig.Destination} + */ + public static final class Destination extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DestinationConfig.Destination) + DestinationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Destination"); + } + + // Use Destination.newBuilder() to construct. + private Destination(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Destination() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.class, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder.class); + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + HOST(1), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 1: + return HOST; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int HOST_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Publicly routable host.
+     * 
+ * + * string host = 1; + * + * @return Whether the host field is set. + */ + public boolean hasHost() { + return destinationCase_ == 1; + } + + /** + * + * + *
+     * Publicly routable host.
+     * 
+ * + * string host = 1; + * + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 1) { + destination_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Publicly routable host.
+     * 
+ * + * string host = 1; + * + * @return The bytes for host. + */ + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 1) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_ = 0; + + /** + * + * + *
+     * Optional. Target port number accepted by the destination.
+     * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + 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 (destinationCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, destination_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, destination_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DestinationConfig.Destination)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination other = + (com.google.cloud.discoveryengine.v1.DestinationConfig.Destination) obj; + + if (getPort() != other.getPort()) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getHost().equals(other.getHost())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + switch (destinationCase_) { + case 1: + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Defines a target endpoint
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DestinationConfig.Destination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DestinationConfig.Destination) + com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.class, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + port_ = 0; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_Destination_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination build() { + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination buildPartial() { + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination result = + new com.google.cloud.discoveryengine.v1.DestinationConfig.Destination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DestinationConfig.Destination) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DestinationConfig.Destination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination other) { + if (other + == com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + .getDefaultInstance()) return this; + if (other.getPort() != 0) { + setPort(other.getPort()); + } + switch (other.getDestinationCase()) { + case HOST: + { + destinationCase_ = 1; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + 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 destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Publicly routable host.
+       * 
+ * + * string host = 1; + * + * @return Whether the host field is set. + */ + @java.lang.Override + public boolean hasHost() { + return destinationCase_ == 1; + } + + /** + * + * + *
+       * Publicly routable host.
+       * 
+ * + * string host = 1; + * + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 1) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Publicly routable host.
+       * 
+ * + * string host = 1; + * + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 1) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Publicly routable host.
+       * 
+ * + * string host = 1; + * + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 1; + destination_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Publicly routable host.
+       * 
+ * + * string host = 1; + * + * @return This builder for chaining. + */ + public Builder clearHost() { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Publicly routable host.
+       * 
+ * + * string host = 1; + * + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 1; + destination_ = value; + onChanged(); + return this; + } + + private int port_; + + /** + * + * + *
+       * Optional. Target port number accepted by the destination.
+       * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + /** + * + * + *
+       * Optional. Target port number accepted by the destination.
+       * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Target port number accepted by the destination.
+       * 
+ * + * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DestinationConfig.Destination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DestinationConfig.Destination) + private static final com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DestinationConfig.Destination(); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Destination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int destinationConfigParamsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destinationConfigParams_; + + public enum DestinationConfigParamsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARAMS(3), + JSON_PARAMS(4), + DESTINATIONCONFIGPARAMS_NOT_SET(0); + private final int value; + + private DestinationConfigParamsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationConfigParamsCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationConfigParamsCase forNumber(int value) { + switch (value) { + case 3: + return PARAMS; + case 4: + return JSON_PARAMS; + case 0: + return DESTINATIONCONFIGPARAMS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationConfigParamsCase getDestinationConfigParamsCase() { + return DestinationConfigParamsCase.forNumber(destinationConfigParamsCase_); + } + + public static final int PARAMS_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. Additional parameters for this destination config in structured
+   * json format.
+   * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return destinationConfigParamsCase_ == 3; + } + + /** + * + * + *
+   * Optional. Additional parameters for this destination config in structured
+   * json format.
+   * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The params. + */ + @java.lang.Override + public com.google.protobuf.Struct getParams() { + if (destinationConfigParamsCase_ == 3) { + return (com.google.protobuf.Struct) destinationConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Additional parameters for this destination config in structured
+   * json format.
+   * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if (destinationConfigParamsCase_ == 3) { + return (com.google.protobuf.Struct) destinationConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int JSON_PARAMS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Additional parameters for this destination config in json string format.
+   * 
+ * + * string json_params = 4; + * + * @return Whether the jsonParams field is set. + */ + public boolean hasJsonParams() { + return destinationConfigParamsCase_ == 4; + } + + /** + * + * + *
+   * Additional parameters for this destination config in json string format.
+   * 
+ * + * string json_params = 4; + * + * @return The jsonParams. + */ + public java.lang.String getJsonParams() { + java.lang.Object ref = ""; + if (destinationConfigParamsCase_ == 4) { + ref = destinationConfigParams_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationConfigParamsCase_ == 4) { + destinationConfigParams_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Additional parameters for this destination config in json string format.
+   * 
+ * + * string json_params = 4; + * + * @return The bytes for jsonParams. + */ + public com.google.protobuf.ByteString getJsonParamsBytes() { + java.lang.Object ref = ""; + if (destinationConfigParamsCase_ == 4) { + ref = destinationConfigParams_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationConfigParamsCase_ == 4) { + destinationConfigParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * Optional. Unique destination identifier that is supported by the connector.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. Unique destination identifier that is supported by the connector.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 DESTINATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + destinations_; + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDestinationsList() { + return destinations_; + } + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder> + getDestinationsOrBuilderList() { + return destinations_; + } + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDestinationsCount() { + return destinations_.size(); + } + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination getDestinations( + int index) { + return destinations_.get(index); + } + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder + getDestinationsOrBuilder(int index) { + return destinations_.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.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + for (int i = 0; i < destinations_.size(); i++) { + output.writeMessage(2, destinations_.get(i)); + } + if (destinationConfigParamsCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Struct) destinationConfigParams_); + } + if (destinationConfigParamsCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, destinationConfigParams_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + for (int i = 0; i < destinations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, destinations_.get(i)); + } + if (destinationConfigParamsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Struct) destinationConfigParams_); + } + if (destinationConfigParamsCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, destinationConfigParams_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DestinationConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DestinationConfig other = + (com.google.cloud.discoveryengine.v1.DestinationConfig) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getDestinationsList().equals(other.getDestinationsList())) return false; + if (!getDestinationConfigParamsCase().equals(other.getDestinationConfigParamsCase())) + return false; + switch (destinationConfigParamsCase_) { + case 3: + if (!getParams().equals(other.getParams())) return false; + break; + case 4: + if (!getJsonParams().equals(other.getJsonParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (getDestinationsCount() > 0) { + hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationsList().hashCode(); + } + switch (destinationConfigParamsCase_) { + case 3: + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getParams().hashCode(); + break; + case 4: + hash = (37 * hash) + JSON_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getJsonParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DestinationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines target endpoints used to connect to third-party sources.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DestinationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DestinationConfig) + com.google.cloud.discoveryengine.v1.DestinationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DestinationConfig.class, + com.google.cloud.discoveryengine.v1.DestinationConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DestinationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (paramsBuilder_ != null) { + paramsBuilder_.clear(); + } + key_ = ""; + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + } else { + destinations_ = null; + destinationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + destinationConfigParamsCase_ = 0; + destinationConfigParams_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DestinationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DestinationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig build() { + com.google.cloud.discoveryengine.v1.DestinationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig buildPartial() { + com.google.cloud.discoveryengine.v1.DestinationConfig result = + new com.google.cloud.discoveryengine.v1.DestinationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.DestinationConfig result) { + if (destinationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + destinations_ = java.util.Collections.unmodifiableList(destinations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.destinations_ = destinations_; + } else { + result.destinations_ = destinationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DestinationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.DestinationConfig result) { + result.destinationConfigParamsCase_ = destinationConfigParamsCase_; + result.destinationConfigParams_ = this.destinationConfigParams_; + if (destinationConfigParamsCase_ == 3 && paramsBuilder_ != null) { + result.destinationConfigParams_ = paramsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DestinationConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DestinationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DestinationConfig other) { + if (other == com.google.cloud.discoveryengine.v1.DestinationConfig.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (destinationsBuilder_ == null) { + if (!other.destinations_.isEmpty()) { + if (destinations_.isEmpty()) { + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDestinationsIsMutable(); + destinations_.addAll(other.destinations_); + } + onChanged(); + } + } else { + if (!other.destinations_.isEmpty()) { + if (destinationsBuilder_.isEmpty()) { + destinationsBuilder_.dispose(); + destinationsBuilder_ = null; + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000008); + destinationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDestinationsFieldBuilder() + : null; + } else { + destinationsBuilder_.addAllMessages(other.destinations_); + } + } + } + switch (other.getDestinationConfigParamsCase()) { + case PARAMS: + { + mergeParams(other.getParams()); + break; + } + case JSON_PARAMS: + { + destinationConfigParamsCase_ = 4; + destinationConfigParams_ = other.destinationConfigParams_; + onChanged(); + break; + } + case DESTINATIONCONFIGPARAMS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination m = + input.readMessage( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.parser(), + extensionRegistry); + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(m); + } else { + destinationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(internalGetParamsFieldBuilder().getBuilder(), extensionRegistry); + destinationConfigParamsCase_ = 3; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationConfigParamsCase_ = 4; + destinationConfigParams_ = s; + 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 destinationConfigParamsCase_ = 0; + private java.lang.Object destinationConfigParams_; + + public DestinationConfigParamsCase getDestinationConfigParamsCase() { + return DestinationConfigParamsCase.forNumber(destinationConfigParamsCase_); + } + + public Builder clearDestinationConfigParams() { + destinationConfigParamsCase_ = 0; + destinationConfigParams_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + paramsBuilder_; + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the params field is set. + */ + @java.lang.Override + public boolean hasParams() { + return destinationConfigParamsCase_ == 3; + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The params. + */ + @java.lang.Override + public com.google.protobuf.Struct getParams() { + if (paramsBuilder_ == null) { + if (destinationConfigParamsCase_ == 3) { + return (com.google.protobuf.Struct) destinationConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (destinationConfigParamsCase_ == 3) { + return paramsBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationConfigParams_ = value; + onChanged(); + } else { + paramsBuilder_.setMessage(value); + } + destinationConfigParamsCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) { + if (paramsBuilder_ == null) { + destinationConfigParams_ = builderForValue.build(); + onChanged(); + } else { + paramsBuilder_.setMessage(builderForValue.build()); + } + destinationConfigParamsCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeParams(com.google.protobuf.Struct value) { + if (paramsBuilder_ == null) { + if (destinationConfigParamsCase_ == 3 + && destinationConfigParams_ != com.google.protobuf.Struct.getDefaultInstance()) { + destinationConfigParams_ = + com.google.protobuf.Struct.newBuilder( + (com.google.protobuf.Struct) destinationConfigParams_) + .mergeFrom(value) + .buildPartial(); + } else { + destinationConfigParams_ = value; + } + onChanged(); + } else { + if (destinationConfigParamsCase_ == 3) { + paramsBuilder_.mergeFrom(value); + } else { + paramsBuilder_.setMessage(value); + } + } + destinationConfigParamsCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + if (destinationConfigParamsCase_ == 3) { + destinationConfigParamsCase_ = 0; + destinationConfigParams_ = null; + onChanged(); + } + } else { + if (destinationConfigParamsCase_ == 3) { + destinationConfigParamsCase_ = 0; + destinationConfigParams_ = null; + } + paramsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getParamsBuilder() { + return internalGetParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { + if ((destinationConfigParamsCase_ == 3) && (paramsBuilder_ != null)) { + return paramsBuilder_.getMessageOrBuilder(); + } else { + if (destinationConfigParamsCase_ == 3) { + return (com.google.protobuf.Struct) destinationConfigParams_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Additional parameters for this destination config in structured
+     * json format.
+     * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetParamsFieldBuilder() { + if (paramsBuilder_ == null) { + if (!(destinationConfigParamsCase_ == 3)) { + destinationConfigParams_ = com.google.protobuf.Struct.getDefaultInstance(); + } + paramsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) destinationConfigParams_, + getParentForChildren(), + isClean()); + destinationConfigParams_ = null; + } + destinationConfigParamsCase_ = 3; + onChanged(); + return paramsBuilder_; + } + + /** + * + * + *
+     * Additional parameters for this destination config in json string format.
+     * 
+ * + * string json_params = 4; + * + * @return Whether the jsonParams field is set. + */ + @java.lang.Override + public boolean hasJsonParams() { + return destinationConfigParamsCase_ == 4; + } + + /** + * + * + *
+     * Additional parameters for this destination config in json string format.
+     * 
+ * + * string json_params = 4; + * + * @return The jsonParams. + */ + @java.lang.Override + public java.lang.String getJsonParams() { + java.lang.Object ref = ""; + if (destinationConfigParamsCase_ == 4) { + ref = destinationConfigParams_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationConfigParamsCase_ == 4) { + destinationConfigParams_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Additional parameters for this destination config in json string format.
+     * 
+ * + * string json_params = 4; + * + * @return The bytes for jsonParams. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonParamsBytes() { + java.lang.Object ref = ""; + if (destinationConfigParamsCase_ == 4) { + ref = destinationConfigParams_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationConfigParamsCase_ == 4) { + destinationConfigParams_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Additional parameters for this destination config in json string format.
+     * 
+ * + * string json_params = 4; + * + * @param value The jsonParams to set. + * @return This builder for chaining. + */ + public Builder setJsonParams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationConfigParamsCase_ = 4; + destinationConfigParams_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Additional parameters for this destination config in json string format.
+     * 
+ * + * string json_params = 4; + * + * @return This builder for chaining. + */ + public Builder clearJsonParams() { + if (destinationConfigParamsCase_ == 4) { + destinationConfigParamsCase_ = 0; + destinationConfigParams_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Additional parameters for this destination config in json string format.
+     * 
+ * + * string json_params = 4; + * + * @param value The bytes for jsonParams to set. + * @return This builder for chaining. + */ + public Builder setJsonParamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationConfigParamsCase_ = 4; + destinationConfigParams_ = value; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + + /** + * + * + *
+     * Optional. Unique destination identifier that is supported by the connector.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Unique destination identifier that is supported by the connector.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Unique destination identifier that is supported by the connector.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Unique destination identifier that is supported by the connector.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Unique destination identifier that is supported by the connector.
+     * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List + destinations_ = java.util.Collections.emptyList(); + + private void ensureDestinationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + destinations_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination>(destinations_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder, + com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder> + destinationsBuilder_; + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationsList() { + if (destinationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinations_); + } else { + return destinationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDestinationsCount() { + if (destinationsBuilder_ == null) { + return destinations_.size(); + } else { + return destinationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination getDestinations( + int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinations( + int index, com.google.cloud.discoveryengine.v1.DestinationConfig.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.set(index, value); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDestinations( + int index, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinations( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(value); + onChanged(); + } else { + destinationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinations( + int index, com.google.cloud.discoveryengine.v1.DestinationConfig.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(index, value); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinations( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDestinations( + int index, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDestinations( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.DestinationConfig.Destination> + values) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + onChanged(); + } else { + destinationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDestinations() { + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + destinationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDestinations(int index) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.remove(index); + onChanged(); + } else { + destinationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder + getDestinationsBuilder(int index) { + return internalGetDestinationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder + getDestinationsOrBuilder(int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder> + getDestinationsOrBuilderList() { + if (destinationsBuilder_ != null) { + return destinationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinations_); + } + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder + addDestinationsBuilder() { + return internalGetDestinationsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder + addDestinationsBuilder(int index) { + return internalGetDestinationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The destinations for the corresponding key.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDestinationsBuilderList() { + return internalGetDestinationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder, + com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder> + internalGetDestinationsFieldBuilder() { + if (destinationsBuilder_ == null) { + destinationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination, + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination.Builder, + com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder>( + destinations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + destinations_ = null; + } + return destinationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DestinationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DestinationConfig) + private static final com.google.cloud.discoveryengine.v1.DestinationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DestinationConfig(); + } + + public static com.google.cloud.discoveryengine.v1.DestinationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DestinationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfigOrBuilder.java new file mode 100644 index 000000000000..413632a5bd7d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DestinationConfigOrBuilder.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DestinationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DestinationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Additional parameters for this destination config in structured
+   * json format.
+   * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the params field is set. + */ + boolean hasParams(); + + /** + * + * + *
+   * Optional. Additional parameters for this destination config in structured
+   * json format.
+   * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The params. + */ + com.google.protobuf.Struct getParams(); + + /** + * + * + *
+   * Optional. Additional parameters for this destination config in structured
+   * json format.
+   * 
+ * + * .google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getParamsOrBuilder(); + + /** + * + * + *
+   * Additional parameters for this destination config in json string format.
+   * 
+ * + * string json_params = 4; + * + * @return Whether the jsonParams field is set. + */ + boolean hasJsonParams(); + + /** + * + * + *
+   * Additional parameters for this destination config in json string format.
+   * 
+ * + * string json_params = 4; + * + * @return The jsonParams. + */ + java.lang.String getJsonParams(); + + /** + * + * + *
+   * Additional parameters for this destination config in json string format.
+   * 
+ * + * string json_params = 4; + * + * @return The bytes for jsonParams. + */ + com.google.protobuf.ByteString getJsonParamsBytes(); + + /** + * + * + *
+   * Optional. Unique destination identifier that is supported by the connector.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + * + * + *
+   * Optional. Unique destination identifier that is supported by the connector.
+   * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDestinationsList(); + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DestinationConfig.Destination getDestinations(int index); + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDestinationsCount(); + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder> + getDestinationsOrBuilderList(); + + /** + * + * + *
+   * Optional. The destinations for the corresponding key.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder + getDestinationsOrBuilder(int index); + + com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationConfigParamsCase + getDestinationConfigParamsCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequest.java new file mode 100644 index 000000000000..df009900c402 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequest.java @@ -0,0 +1,1246 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.DistributeLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class DistributeLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) + DistributeLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DistributeLicenseConfigRequest"); + } + + // Use DistributeLicenseConfigRequest.newBuilder() to construct. + private DistributeLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DistributeLicenseConfigRequest() { + billingAccountLicenseConfig_ = ""; + location_ = ""; + licenseConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest.Builder.class); + } + + public static final int BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingAccountLicenseConfig_ = ""; + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + @java.lang.Override + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_NUMBER_FIELD_NUMBER = 2; + private long projectNumber_ = 0L; + + /** + * + * + *
+   * Required. The target GCP project number to distribute the license config
+   * to.
+   * 
+ * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectNumber. + */ + @java.lang.Override + public long getProjectNumber() { + return projectNumber_; + } + + public static final int LOCATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
+   * Required. The target GCP project region to distribute the license config
+   * to.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The target GCP project region to distribute the license config
+   * to.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_COUNT_FIELD_NUMBER = 4; + private long licenseCount_ = 0L; + + /** + * + * + *
+   * Required. The number of licenses to distribute.
+   * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + public static final int LICENSE_CONFIG_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
+   * Optional. Distribute seats to this license config instead of creating a new
+   * one. If not specified, a new license config will be created from the
+   * billing account license config.
+   * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + @java.lang.Override + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Distribute seats to this license config instead of creating a new
+   * one. If not specified, a new license config will be created from the
+   * billing account license config.
+   * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, billingAccountLicenseConfig_); + } + if (projectNumber_ != 0L) { + output.writeInt64(2, projectNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, location_); + } + if (licenseCount_ != 0L) { + output.writeInt64(4, licenseCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, licenseConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(1, billingAccountLicenseConfig_); + } + if (projectNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, projectNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, location_); + } + if (licenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, licenseCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, licenseConfigId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) obj; + + if (!getBillingAccountLicenseConfig().equals(other.getBillingAccountLicenseConfig())) + return false; + if (getProjectNumber() != other.getProjectNumber()) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (getLicenseCount() != other.getLicenseCount()) return false; + if (!getLicenseConfigId().equals(other.getLicenseConfigId())) 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) + BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBillingAccountLicenseConfig().hashCode(); + hash = (37 * hash) + PROJECT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProjectNumber()); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLicenseCount()); + hash = (37 * hash) + LICENSE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.DistributeLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + billingAccountLicenseConfig_ = ""; + projectNumber_ = 0L; + location_ = ""; + licenseCount_ = 0L; + licenseConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.billingAccountLicenseConfig_ = billingAccountLicenseConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectNumber_ = projectNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.licenseCount_ = licenseCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.licenseConfigId_ = licenseConfigId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + .getDefaultInstance()) return this; + if (!other.getBillingAccountLicenseConfig().isEmpty()) { + billingAccountLicenseConfig_ = other.billingAccountLicenseConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getProjectNumber() != 0L) { + setProjectNumber(other.getProjectNumber()); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getLicenseCount() != 0L) { + setLicenseCount(other.getLicenseCount()); + } + if (!other.getLicenseConfigId().isEmpty()) { + licenseConfigId_ = other.licenseConfigId_; + 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: + { + billingAccountLicenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + projectNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + licenseCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + licenseConfigId_ = 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 billingAccountLicenseConfig_ = ""; + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBillingAccountLicenseConfig() { + billingAccountLicenseConfig_ = getDefaultInstance().getBillingAccountLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long projectNumber_; + + /** + * + * + *
+     * Required. The target GCP project number to distribute the license config
+     * to.
+     * 
+ * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectNumber. + */ + @java.lang.Override + public long getProjectNumber() { + return projectNumber_; + } + + /** + * + * + *
+     * Required. The target GCP project number to distribute the license config
+     * to.
+     * 
+ * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectNumber to set. + * @return This builder for chaining. + */ + public Builder setProjectNumber(long value) { + + projectNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The target GCP project number to distribute the license config
+     * to.
+     * 
+ * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + projectNumber_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
+     * Required. The target GCP project region to distribute the license config
+     * to.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The target GCP project region to distribute the license config
+     * to.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The target GCP project region to distribute the license config
+     * to.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The target GCP project region to distribute the license config
+     * to.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The target GCP project region to distribute the license config
+     * to.
+     * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long licenseCount_; + + /** + * + * + *
+     * Required. The number of licenses to distribute.
+     * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + /** + * + * + *
+     * Required. The number of licenses to distribute.
+     * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The licenseCount to set. + * @return This builder for chaining. + */ + public Builder setLicenseCount(long value) { + + licenseCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The number of licenses to distribute.
+     * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000008); + licenseCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
+     * Optional. Distribute seats to this license config instead of creating a new
+     * one. If not specified, a new license config will be created from the
+     * billing account license config.
+     * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Distribute seats to this license config instead of creating a new
+     * one. If not specified, a new license config will be created from the
+     * billing account license config.
+     * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Distribute seats to this license config instead of creating a new
+     * one. If not specified, a new license config will be created from the
+     * billing account license config.
+     * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfigId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Distribute seats to this license config instead of creating a new
+     * one. If not specified, a new license config will be created from the
+     * billing account license config.
+     * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfigId() { + licenseConfigId_ = getDefaultInstance().getLicenseConfigId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Distribute seats to this license config instead of creating a new
+     * one. If not specified, a new license config will be created from the
+     * billing account license config.
+     * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfigId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributeLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..9040982159ce --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DistributeLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + java.lang.String getBillingAccountLicenseConfig(); + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes(); + + /** + * + * + *
+   * Required. The target GCP project number to distribute the license config
+   * to.
+   * 
+ * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectNumber. + */ + long getProjectNumber(); + + /** + * + * + *
+   * Required. The target GCP project region to distribute the license config
+   * to.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
+   * Required. The target GCP project region to distribute the license config
+   * to.
+   * 
+ * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Required. The number of licenses to distribute.
+   * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + long getLicenseCount(); + + /** + * + * + *
+   * Optional. Distribute seats to this license config instead of creating a new
+   * one. If not specified, a new license config will be created from the
+   * billing account license config.
+   * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + java.lang.String getLicenseConfigId(); + + /** + * + * + *
+   * Optional. Distribute seats to this license config instead of creating a new
+   * one. If not specified, a new license config will be created from the
+   * billing account license config.
+   * 
+ * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + com.google.protobuf.ByteString getLicenseConfigIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponse.java new file mode 100644 index 000000000000..26d7eea8fff0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponse.java @@ -0,0 +1,717 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response message for
+ * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.DistributeLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse} + */ +@com.google.protobuf.Generated +public final class DistributeLicenseConfigResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) + DistributeLicenseConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DistributeLicenseConfigResponse"); + } + + // Use DistributeLicenseConfigResponse.newBuilder() to construct. + private DistributeLicenseConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DistributeLicenseConfigResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + + /** + * + * + *
+   * The updated or created LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The updated or created LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
+   * The updated or created LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + 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, getLicenseConfig()); + } + 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, getLicenseConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse other = + (com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) obj; + + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.DistributeLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse build() { + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse buildPartial() { + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse result = + new com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + .getDefaultInstance()) return this; + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + 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( + internalGetLicenseConfigFieldBuilder().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.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
+     * The updated or created LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) + private static final com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse(); + } + + public static com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributeLicenseConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponseOrBuilder.java new file mode 100644 index 000000000000..fb311868f1f8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DistributeLicenseConfigResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DistributeLicenseConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The updated or created LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
+   * The updated or created LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig(); + + /** + * + * + *
+   * The updated or created LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java index f845c9f0259d..65f5f79cfa4e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Document.java @@ -3791,6 +3791,8 @@ public interface IndexStatusOrBuilder *
      * The time when the document was indexed.
      * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      * 
* * .google.protobuf.Timestamp index_time = 1; @@ -3805,6 +3807,8 @@ public interface IndexStatusOrBuilder *
      * The time when the document was indexed.
      * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      * 
* * .google.protobuf.Timestamp index_time = 1; @@ -3819,6 +3823,8 @@ public interface IndexStatusOrBuilder *
      * The time when the document was indexed.
      * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      * 
* * .google.protobuf.Timestamp index_time = 1; @@ -3974,6 +3980,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
      * The time when the document was indexed.
      * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      * 
* * .google.protobuf.Timestamp index_time = 1; @@ -3991,6 +3999,8 @@ public boolean hasIndexTime() { *
      * The time when the document was indexed.
      * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4008,6 +4018,8 @@ public com.google.protobuf.Timestamp getIndexTime() { *
      * The time when the document was indexed.
      * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4592,6 +4604,8 @@ public Builder mergeFrom( *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4608,6 +4622,8 @@ public boolean hasIndexTime() { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4630,6 +4646,8 @@ public com.google.protobuf.Timestamp getIndexTime() { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4654,6 +4672,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4675,6 +4695,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4704,6 +4726,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4725,6 +4749,8 @@ public Builder clearIndexTime() { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4741,6 +4767,8 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -4761,6 +4789,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { *
        * The time when the document was indexed.
        * If this field is populated, it means the document has been indexed.
+       * While documents typically become searchable within seconds of indexing,
+       * it can sometimes take up to a few hours.
        * 
* * .google.protobuf.Timestamp index_time = 1; @@ -5934,11 +5964,14 @@ public com.google.cloud.discoveryengine.v1.Document.AclInfoOrBuilder getAclInfoO * * *
-   * Output only. The last time the document was indexed. If this field is set,
-   * the document could be returned in search results.
+   * Output only. The time when the document was last indexed.
    *
-   * This field is OUTPUT_ONLY. If this field is not populated, it means the
-   * document has never been indexed.
+   * If this field is populated, it means the document has been indexed.
+   * While documents typically become searchable within seconds of indexing,
+   * it can sometimes take up to a few hours.
+   *
+   * If this field is not populated, it means the document has never been
+   * indexed.
    * 
* * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5955,11 +5988,14 @@ public boolean hasIndexTime() { * * *
-   * Output only. The last time the document was indexed. If this field is set,
-   * the document could be returned in search results.
+   * Output only. The time when the document was last indexed.
+   *
+   * If this field is populated, it means the document has been indexed.
+   * While documents typically become searchable within seconds of indexing,
+   * it can sometimes take up to a few hours.
    *
-   * This field is OUTPUT_ONLY. If this field is not populated, it means the
-   * document has never been indexed.
+   * If this field is not populated, it means the document has never been
+   * indexed.
    * 
* * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5976,11 +6012,14 @@ public com.google.protobuf.Timestamp getIndexTime() { * * *
-   * Output only. The last time the document was indexed. If this field is set,
-   * the document could be returned in search results.
+   * Output only. The time when the document was last indexed.
+   *
+   * If this field is populated, it means the document has been indexed.
+   * While documents typically become searchable within seconds of indexing,
+   * it can sometimes take up to a few hours.
    *
-   * This field is OUTPUT_ONLY. If this field is not populated, it means the
-   * document has never been indexed.
+   * If this field is not populated, it means the document has never been
+   * indexed.
    * 
* * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8249,11 +8288,14 @@ public com.google.cloud.discoveryengine.v1.Document.AclInfoOrBuilder getAclInfoO * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
+     *
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8270,11 +8312,14 @@ public boolean hasIndexTime() { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
+     *
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8295,11 +8340,14 @@ public com.google.protobuf.Timestamp getIndexTime() { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
+     *
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8324,11 +8372,14 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
+     *
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8350,11 +8401,14 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
+     *
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8384,11 +8438,14 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
+     *
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8410,11 +8467,14 @@ public Builder clearIndexTime() { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
+     *
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8431,11 +8491,14 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
+     *
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * @@ -8454,11 +8517,14 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * * *
-     * Output only. The last time the document was indexed. If this field is set,
-     * the document could be returned in search results.
+     * Output only. The time when the document was last indexed.
+     *
+     * If this field is populated, it means the document has been indexed.
+     * While documents typically become searchable within seconds of indexing,
+     * it can sometimes take up to a few hours.
      *
-     * This field is OUTPUT_ONLY. If this field is not populated, it means the
-     * document has never been indexed.
+     * If this field is not populated, it means the document has never been
+     * indexed.
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java index ecf18488352a..50b72315b39b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentOrBuilder.java @@ -369,11 +369,14 @@ public interface DocumentOrBuilder * * *
-   * Output only. The last time the document was indexed. If this field is set,
-   * the document could be returned in search results.
+   * Output only. The time when the document was last indexed.
    *
-   * This field is OUTPUT_ONLY. If this field is not populated, it means the
-   * document has never been indexed.
+   * If this field is populated, it means the document has been indexed.
+   * While documents typically become searchable within seconds of indexing,
+   * it can sometimes take up to a few hours.
+   *
+   * If this field is not populated, it means the document has never been
+   * indexed.
    * 
* * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -387,11 +390,14 @@ public interface DocumentOrBuilder * * *
-   * Output only. The last time the document was indexed. If this field is set,
-   * the document could be returned in search results.
+   * Output only. The time when the document was last indexed.
+   *
+   * If this field is populated, it means the document has been indexed.
+   * While documents typically become searchable within seconds of indexing,
+   * it can sometimes take up to a few hours.
    *
-   * This field is OUTPUT_ONLY. If this field is not populated, it means the
-   * document has never been indexed.
+   * If this field is not populated, it means the document has never been
+   * indexed.
    * 
* * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -405,11 +411,14 @@ public interface DocumentOrBuilder * * *
-   * Output only. The last time the document was indexed. If this field is set,
-   * the document could be returned in search results.
+   * Output only. The time when the document was last indexed.
+   *
+   * If this field is populated, it means the document has been indexed.
+   * While documents typically become searchable within seconds of indexing,
+   * it can sometimes take up to a few hours.
    *
-   * This field is OUTPUT_ONLY. If this field is not populated, it means the
-   * document has never been indexed.
+   * If this field is not populated, it means the document has never been
+   * indexed.
    * 
* * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java index 8bebb73be36f..ee802ac16fa7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfig.java @@ -3450,6 +3450,19 @@ public interface LayoutParsingConfigOrBuilder */ boolean getEnableImageAnnotation(); + /** + * + * + *
+       * Optional. If true, the pdf layout will be refined using an LLM.
+       * 
+ * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLlmLayoutParsing. + */ + boolean getEnableLlmLayoutParsing(); + /** * * @@ -3697,6 +3710,21 @@ public interface LayoutParsingConfigOrBuilder * @return The bytes of the excludeHtmlIds at the given index. */ com.google.protobuf.ByteString getExcludeHtmlIdsBytes(int index); + + /** + * + * + *
+       * Optional. If true, the processed document will be made available for
+       * the GetProcessedDocument API.
+       * 
+ * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGetProcessedDocument. + */ + boolean getEnableGetProcessedDocument(); } /** @@ -3794,6 +3822,25 @@ public boolean getEnableImageAnnotation() { return enableImageAnnotation_; } + public static final int ENABLE_LLM_LAYOUT_PARSING_FIELD_NUMBER = 5; + private boolean enableLlmLayoutParsing_ = false; + + /** + * + * + *
+       * Optional. If true, the pdf layout will be refined using an LLM.
+       * 
+ * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLlmLayoutParsing. + */ + @java.lang.Override + public boolean getEnableLlmLayoutParsing() { + return enableLlmLayoutParsing_; + } + public static final int STRUCTURED_CONTENT_TYPES_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -4098,6 +4145,27 @@ public com.google.protobuf.ByteString getExcludeHtmlIdsBytes(int index) { return excludeHtmlIds_.getByteString(index); } + public static final int ENABLE_GET_PROCESSED_DOCUMENT_FIELD_NUMBER = 14; + private boolean enableGetProcessedDocument_ = false; + + /** + * + * + *
+       * Optional. If true, the processed document will be made available for
+       * the GetProcessedDocument API.
+       * 
+ * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGetProcessedDocument. + */ + @java.lang.Override + public boolean getEnableGetProcessedDocument() { + return enableGetProcessedDocument_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4118,6 +4186,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableImageAnnotation_ != false) { output.writeBool(2, enableImageAnnotation_); } + if (enableLlmLayoutParsing_ != false) { + output.writeBool(5, enableLlmLayoutParsing_); + } for (int i = 0; i < structuredContentTypes_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString( output, 9, structuredContentTypes_.getRaw(i)); @@ -4133,6 +4204,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < excludeHtmlIds_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 12, excludeHtmlIds_.getRaw(i)); } + if (enableGetProcessedDocument_ != false) { + output.writeBool(14, enableGetProcessedDocument_); + } getUnknownFields().writeTo(output); } @@ -4148,6 +4222,9 @@ public int getSerializedSize() { if (enableImageAnnotation_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableImageAnnotation_); } + if (enableLlmLayoutParsing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableLlmLayoutParsing_); + } { int dataSize = 0; for (int i = 0; i < structuredContentTypes_.size(); i++) { @@ -4180,6 +4257,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExcludeHtmlIdsList().size(); } + if (enableGetProcessedDocument_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 14, enableGetProcessedDocument_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4205,11 +4287,13 @@ public boolean equals(final java.lang.Object obj) { if (getEnableTableAnnotation() != other.getEnableTableAnnotation()) return false; if (getEnableImageAnnotation() != other.getEnableImageAnnotation()) return false; + if (getEnableLlmLayoutParsing() != other.getEnableLlmLayoutParsing()) return false; if (!getStructuredContentTypesList().equals(other.getStructuredContentTypesList())) return false; if (!getExcludeHtmlElementsList().equals(other.getExcludeHtmlElementsList())) return false; if (!getExcludeHtmlClassesList().equals(other.getExcludeHtmlClassesList())) return false; if (!getExcludeHtmlIdsList().equals(other.getExcludeHtmlIdsList())) return false; + if (getEnableGetProcessedDocument() != other.getEnableGetProcessedDocument()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4225,6 +4309,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTableAnnotation()); hash = (37 * hash) + ENABLE_IMAGE_ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableImageAnnotation()); + hash = (37 * hash) + ENABLE_LLM_LAYOUT_PARSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLlmLayoutParsing()); if (getStructuredContentTypesCount() > 0) { hash = (37 * hash) + STRUCTURED_CONTENT_TYPES_FIELD_NUMBER; hash = (53 * hash) + getStructuredContentTypesList().hashCode(); @@ -4241,6 +4327,9 @@ public int hashCode() { hash = (37 * hash) + EXCLUDE_HTML_IDS_FIELD_NUMBER; hash = (53 * hash) + getExcludeHtmlIdsList().hashCode(); } + hash = (37 * hash) + ENABLE_GET_PROCESSED_DOCUMENT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGetProcessedDocument()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4413,10 +4502,12 @@ public Builder clear() { bitField0_ = 0; enableTableAnnotation_ = false; enableImageAnnotation_ = false; + enableLlmLayoutParsing_ = false; structuredContentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); excludeHtmlElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); excludeHtmlClasses_ = com.google.protobuf.LazyStringArrayList.emptyList(); excludeHtmlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enableGetProcessedDocument_ = false; return this; } @@ -4475,21 +4566,27 @@ private void buildPartial0( result.enableImageAnnotation_ = enableImageAnnotation_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableLlmLayoutParsing_ = enableLlmLayoutParsing_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { structuredContentTypes_.makeImmutable(); result.structuredContentTypes_ = structuredContentTypes_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { excludeHtmlElements_.makeImmutable(); result.excludeHtmlElements_ = excludeHtmlElements_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { excludeHtmlClasses_.makeImmutable(); result.excludeHtmlClasses_ = excludeHtmlClasses_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { excludeHtmlIds_.makeImmutable(); result.excludeHtmlIds_ = excludeHtmlIds_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableGetProcessedDocument_ = enableGetProcessedDocument_; + } } @java.lang.Override @@ -4521,10 +4618,13 @@ public Builder mergeFrom( if (other.getEnableImageAnnotation() != false) { setEnableImageAnnotation(other.getEnableImageAnnotation()); } + if (other.getEnableLlmLayoutParsing() != false) { + setEnableLlmLayoutParsing(other.getEnableLlmLayoutParsing()); + } if (!other.structuredContentTypes_.isEmpty()) { if (structuredContentTypes_.isEmpty()) { structuredContentTypes_ = other.structuredContentTypes_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } else { ensureStructuredContentTypesIsMutable(); structuredContentTypes_.addAll(other.structuredContentTypes_); @@ -4534,7 +4634,7 @@ public Builder mergeFrom( if (!other.excludeHtmlElements_.isEmpty()) { if (excludeHtmlElements_.isEmpty()) { excludeHtmlElements_ = other.excludeHtmlElements_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } else { ensureExcludeHtmlElementsIsMutable(); excludeHtmlElements_.addAll(other.excludeHtmlElements_); @@ -4544,7 +4644,7 @@ public Builder mergeFrom( if (!other.excludeHtmlClasses_.isEmpty()) { if (excludeHtmlClasses_.isEmpty()) { excludeHtmlClasses_ = other.excludeHtmlClasses_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } else { ensureExcludeHtmlClassesIsMutable(); excludeHtmlClasses_.addAll(other.excludeHtmlClasses_); @@ -4554,13 +4654,16 @@ public Builder mergeFrom( if (!other.excludeHtmlIds_.isEmpty()) { if (excludeHtmlIds_.isEmpty()) { excludeHtmlIds_ = other.excludeHtmlIds_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } else { ensureExcludeHtmlIdsIsMutable(); excludeHtmlIds_.addAll(other.excludeHtmlIds_); } onChanged(); } + if (other.getEnableGetProcessedDocument() != false) { + setEnableGetProcessedDocument(other.getEnableGetProcessedDocument()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4599,6 +4702,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 40: + { + enableLlmLayoutParsing_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 case 74: { java.lang.String s = input.readStringRequireUtf8(); @@ -4627,6 +4736,12 @@ public Builder mergeFrom( excludeHtmlIds_.add(s); break; } // case 98 + case 112: + { + enableGetProcessedDocument_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4764,6 +4879,65 @@ public Builder clearEnableImageAnnotation() { return this; } + private boolean enableLlmLayoutParsing_; + + /** + * + * + *
+         * Optional. If true, the pdf layout will be refined using an LLM.
+         * 
+ * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableLlmLayoutParsing. + */ + @java.lang.Override + public boolean getEnableLlmLayoutParsing() { + return enableLlmLayoutParsing_; + } + + /** + * + * + *
+         * Optional. If true, the pdf layout will be refined using an LLM.
+         * 
+ * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableLlmLayoutParsing to set. + * @return This builder for chaining. + */ + public Builder setEnableLlmLayoutParsing(boolean value) { + + enableLlmLayoutParsing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If true, the pdf layout will be refined using an LLM.
+         * 
+ * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableLlmLayoutParsing() { + bitField0_ = (bitField0_ & ~0x00000004); + enableLlmLayoutParsing_ = false; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringArrayList structuredContentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -4772,7 +4946,7 @@ private void ensureStructuredContentTypesIsMutable() { structuredContentTypes_ = new com.google.protobuf.LazyStringArrayList(structuredContentTypes_); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } /** @@ -4882,7 +5056,7 @@ public Builder setStructuredContentTypes(int index, java.lang.String value) { } ensureStructuredContentTypesIsMutable(); structuredContentTypes_.set(index, value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4910,7 +5084,7 @@ public Builder addStructuredContentTypes(java.lang.String value) { } ensureStructuredContentTypesIsMutable(); structuredContentTypes_.add(value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4935,7 +5109,7 @@ public Builder addStructuredContentTypes(java.lang.String value) { public Builder addAllStructuredContentTypes(java.lang.Iterable values) { ensureStructuredContentTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, structuredContentTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4958,7 +5132,7 @@ public Builder addAllStructuredContentTypes(java.lang.Iterable */ public Builder clearStructuredContentTypes() { structuredContentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; @@ -4988,7 +5162,7 @@ public Builder addStructuredContentTypesBytes(com.google.protobuf.ByteString val checkByteStringIsUtf8(value); ensureStructuredContentTypesIsMutable(); structuredContentTypes_.add(value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -5001,7 +5175,7 @@ private void ensureExcludeHtmlElementsIsMutable() { excludeHtmlElements_ = new com.google.protobuf.LazyStringArrayList(excludeHtmlElements_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } /** @@ -5096,7 +5270,7 @@ public Builder setExcludeHtmlElements(int index, java.lang.String value) { } ensureExcludeHtmlElementsIsMutable(); excludeHtmlElements_.set(index, value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5121,7 +5295,7 @@ public Builder addExcludeHtmlElements(java.lang.String value) { } ensureExcludeHtmlElementsIsMutable(); excludeHtmlElements_.add(value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5143,7 +5317,7 @@ public Builder addExcludeHtmlElements(java.lang.String value) { public Builder addAllExcludeHtmlElements(java.lang.Iterable values) { ensureExcludeHtmlElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeHtmlElements_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5163,7 +5337,7 @@ public Builder addAllExcludeHtmlElements(java.lang.Iterable va */ public Builder clearExcludeHtmlElements() { excludeHtmlElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); ; onChanged(); return this; @@ -5190,7 +5364,7 @@ public Builder addExcludeHtmlElementsBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureExcludeHtmlElementsIsMutable(); excludeHtmlElements_.add(value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -5202,7 +5376,7 @@ private void ensureExcludeHtmlClassesIsMutable() { if (!excludeHtmlClasses_.isModifiable()) { excludeHtmlClasses_ = new com.google.protobuf.LazyStringArrayList(excludeHtmlClasses_); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } /** @@ -5297,7 +5471,7 @@ public Builder setExcludeHtmlClasses(int index, java.lang.String value) { } ensureExcludeHtmlClassesIsMutable(); excludeHtmlClasses_.set(index, value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5322,7 +5496,7 @@ public Builder addExcludeHtmlClasses(java.lang.String value) { } ensureExcludeHtmlClassesIsMutable(); excludeHtmlClasses_.add(value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5344,7 +5518,7 @@ public Builder addExcludeHtmlClasses(java.lang.String value) { public Builder addAllExcludeHtmlClasses(java.lang.Iterable values) { ensureExcludeHtmlClassesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeHtmlClasses_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5364,7 +5538,7 @@ public Builder addAllExcludeHtmlClasses(java.lang.Iterable val */ public Builder clearExcludeHtmlClasses() { excludeHtmlClasses_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); ; onChanged(); return this; @@ -5391,7 +5565,7 @@ public Builder addExcludeHtmlClassesBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureExcludeHtmlClassesIsMutable(); excludeHtmlClasses_.add(value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5403,7 +5577,7 @@ private void ensureExcludeHtmlIdsIsMutable() { if (!excludeHtmlIds_.isModifiable()) { excludeHtmlIds_ = new com.google.protobuf.LazyStringArrayList(excludeHtmlIds_); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } /** @@ -5493,7 +5667,7 @@ public Builder setExcludeHtmlIds(int index, java.lang.String value) { } ensureExcludeHtmlIdsIsMutable(); excludeHtmlIds_.set(index, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5517,7 +5691,7 @@ public Builder addExcludeHtmlIds(java.lang.String value) { } ensureExcludeHtmlIdsIsMutable(); excludeHtmlIds_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5538,7 +5712,7 @@ public Builder addExcludeHtmlIds(java.lang.String value) { public Builder addAllExcludeHtmlIds(java.lang.Iterable values) { ensureExcludeHtmlIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeHtmlIds_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -5557,7 +5731,7 @@ public Builder addAllExcludeHtmlIds(java.lang.Iterable values) */ public Builder clearExcludeHtmlIds() { excludeHtmlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); ; onChanged(); return this; @@ -5583,7 +5757,69 @@ public Builder addExcludeHtmlIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureExcludeHtmlIdsIsMutable(); excludeHtmlIds_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean enableGetProcessedDocument_; + + /** + * + * + *
+         * Optional. If true, the processed document will be made available for
+         * the GetProcessedDocument API.
+         * 
+ * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGetProcessedDocument. + */ + @java.lang.Override + public boolean getEnableGetProcessedDocument() { + return enableGetProcessedDocument_; + } + + /** + * + * + *
+         * Optional. If true, the processed document will be made available for
+         * the GetProcessedDocument API.
+         * 
+ * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableGetProcessedDocument to set. + * @return This builder for chaining. + */ + public Builder setEnableGetProcessedDocument(boolean value) { + + enableGetProcessedDocument_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If true, the processed document will be made available for
+         * the GetProcessedDocument API.
+         * 
+ * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableGetProcessedDocument() { + bitField0_ = (bitField0_ & ~0x00000080); + enableGetProcessedDocument_ = false; onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigProto.java index c7bc38a3ed10..f62ca4672b45 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentProcessingConfigProto.java @@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nt_processing_config.proto\022\037google.cloud" + ".discoveryengine.v1\032\037google/api/field_be" + "havior.proto\032\031google/api/resource.proto\"" - + "\212\016\n\030DocumentProcessingConfig\022\014\n\004name\030\001 \001" + + "\340\016\n\030DocumentProcessingConfig\022\014\n\004name\030\001 \001" + "(\t\022a\n\017chunking_config\030\003 \001(\0132H.google.clo" + "ud.discoveryengine.v1.DocumentProcessing" + "Config.ChunkingConfig\022g\n\026default_parsing" @@ -100,7 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nfig.ChunkingConfig.LayoutBasedChunkingC" + "onfigH\000\032R\n\031LayoutBasedChunkingConfig\022\022\n\n" + "chunk_size\030\001 \001(\005\022!\n\031include_ancestor_hea" - + "dings\030\002 \001(\010B\014\n\nchunk_mode\032\202\006\n\rParsingCon" + + "dings\030\002 \001(\010B\014\n\nchunk_mode\032\330\006\n\rParsingCon" + "fig\022~\n\026digital_parsing_config\030\001 \001(\0132\\.go" + "ogle.cloud.discoveryengine.v1.DocumentPr" + "ocessingConfig.ParsingConfig.DigitalPars" @@ -113,31 +113,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "utParsingConfigH\000\032\026\n\024DigitalParsingConfi" + "g\032S\n\020OcrParsingConfig\022&\n\032enhanced_docume" + "nt_elements\030\001 \003(\tB\002\030\001\022\027\n\017use_native_text" - + "\030\002 \001(\010\032\364\001\n\023LayoutParsingConfig\022%\n\027enable" + + "\030\002 \001(\010\032\312\002\n\023LayoutParsingConfig\022%\n\027enable" + "_table_annotation\030\001 \001(\010B\004\342A\001\001\022%\n\027enable_" - + "image_annotation\030\002 \001(\010B\004\342A\001\001\022&\n\030structur" - + "ed_content_types\030\t \003(\tB\004\342A\001\001\022#\n\025exclude_" - + "html_elements\030\n \003(\tB\004\342A\001\001\022\"\n\024exclude_htm" - + "l_classes\030\013 \003(\tB\004\342A\001\001\022\036\n\020exclude_html_id" - + "s\030\014 \003(\tB\004\342A\001\001B\027\n\025type_dedicated_config\032\206" - + "\001\n\033ParsingConfigOverridesEntry\022\013\n\003key\030\001 " - + "\001(\t\022V\n\005value\030\002 \001(\0132G.google.cloud.discov" - + "eryengine.v1.DocumentProcessingConfig.Pa" - + "rsingConfig:\0028\001:\212\002\352A\206\002\n7discoveryengine." - + "googleapis.com/DocumentProcessingConfig\022" - + "Xprojects/{project}/locations/{location}" - + "/dataStores/{data_store}/documentProcess" - + "ingConfig\022qprojects/{project}/locations/" - + "{location}/collections/{collection}/data" - + "Stores/{data_store}/documentProcessingCo" - + "nfigB\220\002\n#com.google.cloud.discoveryengin" - + "e.v1B\035DocumentProcessingConfigProtoP\001ZMc" - + "loud.google.com/go/discoveryengine/apiv1" - + "/discoveryenginepb;discoveryenginepb\242\002\017D" - + "ISCOVERYENGINE\252\002\037Google.Cloud.DiscoveryE" - + "ngine.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\" - + "V1\352\002\"Google::Cloud::DiscoveryEngine::V1b" - + "\006proto3" + + "image_annotation\030\002 \001(\010B\004\342A\001\001\022\'\n\031enable_l" + + "lm_layout_parsing\030\005 \001(\010B\004\342A\001\001\022&\n\030structu" + + "red_content_types\030\t \003(\tB\004\342A\001\001\022#\n\025exclude" + + "_html_elements\030\n \003(\tB\004\342A\001\001\022\"\n\024exclude_ht" + + "ml_classes\030\013 \003(\tB\004\342A\001\001\022\036\n\020exclude_html_i" + + "ds\030\014 \003(\tB\004\342A\001\001\022+\n\035enable_get_processed_d" + + "ocument\030\016 \001(\010B\004\342A\001\001B\027\n\025type_dedicated_co" + + "nfig\032\206\001\n\033ParsingConfigOverridesEntry\022\013\n\003" + + "key\030\001 \001(\t\022V\n\005value\030\002 \001(\0132G.google.cloud." + + "discoveryengine.v1.DocumentProcessingCon" + + "fig.ParsingConfig:\0028\001:\212\002\352A\206\002\n7discoverye" + + "ngine.googleapis.com/DocumentProcessingC" + + "onfig\022Xprojects/{project}/locations/{loc" + + "ation}/dataStores/{data_store}/documentP" + + "rocessingConfig\022qprojects/{project}/loca" + + "tions/{location}/collections/{collection" + + "}/dataStores/{data_store}/documentProces" + + "singConfigB\220\002\n#com.google.cloud.discover" + + "yengine.v1B\035DocumentProcessingConfigProt" + + "oP\001ZMcloud.google.com/go/discoveryengine" + + "/apiv1/discoveryenginepb;discoveryengine" + + "pb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Disc" + + "overyEngine.V1\312\002\037Google\\Cloud\\DiscoveryE" + + "ngine\\V1\352\002\"Google::Cloud::DiscoveryEngin" + + "e::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -209,10 +211,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableTableAnnotation", "EnableImageAnnotation", + "EnableLlmLayoutParsing", "StructuredContentTypes", "ExcludeHtmlElements", "ExcludeHtmlClasses", "ExcludeHtmlIds", + "EnableGetProcessedDocument", }); internal_static_google_cloud_discoveryengine_v1_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor = internal_static_google_cloud_discoveryengine_v1_DocumentProcessingConfig_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java index 928032a4ea33..429517e82167 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceProto.java @@ -162,7 +162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\tB+\372A(\n&healthcare.googleapis.com/FhirR" + "esourceH\000B\017\n\rmatcher_value\"U\n\005State\022\025\n\021S" + "TATE_UNSPECIFIED\020\000\022\013\n\007INDEXED\020\001\022\026\n\022NOT_I" - + "N_TARGET_SITE\020\002\022\020\n\014NOT_IN_INDEX\020\0032\235\026\n\017Do" + + "N_TARGET_SITE\020\002\022\020\n\014NOT_IN_INDEX\020\0032\233\027\n\017Do" + "cumentService\022\234\002\n\013GetDocument\0223.google.c" + "loud.discoveryengine.v1.GetDocumentReque" + "st\032).google.cloud.discoveryengine.v1.Doc" @@ -231,16 +231,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s/*/dataStores/*/branches/*}/batchGetDoc" + "umentsMetadataZe\022c/v1/{parent=projects/*" + "/locations/*/collections/*/dataStores/*/" - + "branches/*}/batchGetDocumentsMetadata\032R\312" - + "A\036discoveryengine.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\207\002\n#com.google.cloud.discoveryengine.v" - + "1B\024DocumentServiceProtoP\001ZMcloud.google." - + "com/go/discoveryengine/apiv1/discoveryen" - + "ginepb;discoveryenginepb\242\002\017DISCOVERYENGI" - + "NE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037G" - + "oogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google:" - + ":Cloud::DiscoveryEngine::V1b\006proto3" + + "branches/*}/batchGetDocumentsMetadata\032\317\001" + + "\312A\036discoveryengine.googleapis.com\322A\252\001htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/disc" + + "overyengine.readwrite,https://www.google" + + "apis.com/auth/discoveryengine.serving.re" + + "adwriteB\207\002\n#com.google.cloud.discoveryen" + + "gine.v1B\024DocumentServiceProtoP\001ZMcloud.g" + + "oogle.com/go/discoveryengine/apiv1/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002\037Google.Cloud.DiscoveryEngine." + + "V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"G" + + "oogle::Cloud::DiscoveryEngine::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicTool.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicTool.java new file mode 100644 index 000000000000..0a84774fd75b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicTool.java @@ -0,0 +1,1071 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Configuration for dynamic tools.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DynamicTool} + */ +@com.google.protobuf.Generated +public final class DynamicTool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.DynamicTool) + DynamicToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DynamicTool"); + } + + // Use DynamicTool.newBuilder() to construct. + private DynamicTool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DynamicTool() { + name_ = ""; + description_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DynamicTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DynamicTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DynamicTool.class, + com.google.cloud.discoveryengine.v1.DynamicTool.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the tool.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the tool.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. The description of the tool.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The description of the tool.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 3; + private boolean enabled_ = false; + + /** + * + * + *
+   * Optional. Whether the tool is enabled.
+   * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The display name of the tool.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The display name of the tool.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (enabled_ != false) { + output.writeBool(3, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.DynamicTool)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.DynamicTool other = + (com.google.cloud.discoveryengine.v1.DynamicTool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getEnabled() != other.getEnabled()) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.DynamicTool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for dynamic tools.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.DynamicTool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.DynamicTool) + com.google.cloud.discoveryengine.v1.DynamicToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DynamicTool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DynamicTool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.DynamicTool.class, + com.google.cloud.discoveryengine.v1.DynamicTool.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.DynamicTool.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + enabled_ = false; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_DynamicTool_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DynamicTool getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.DynamicTool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DynamicTool build() { + com.google.cloud.discoveryengine.v1.DynamicTool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DynamicTool buildPartial() { + com.google.cloud.discoveryengine.v1.DynamicTool result = + new com.google.cloud.discoveryengine.v1.DynamicTool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.DynamicTool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.DynamicTool) { + return mergeFrom((com.google.cloud.discoveryengine.v1.DynamicTool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.DynamicTool other) { + if (other == com.google.cloud.discoveryengine.v1.DynamicTool.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the tool.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the tool.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the tool.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the tool.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the tool.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. The description of the tool.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The description of the tool.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The description of the tool.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of the tool.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The description of the tool.
+     * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean enabled_; + + /** + * + * + *
+     * Optional. Whether the tool is enabled.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+     * Optional. Whether the tool is enabled.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the tool is enabled.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The display name of the tool.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The display name of the tool.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The display name of the tool.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of the tool.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of the tool.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.DynamicTool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.DynamicTool) + private static final com.google.cloud.discoveryengine.v1.DynamicTool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.DynamicTool(); + } + + public static com.google.cloud.discoveryengine.v1.DynamicTool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicTool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DynamicTool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicToolOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicToolOrBuilder.java new file mode 100644 index 000000000000..c279e72337a5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DynamicToolOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface DynamicToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.DynamicTool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the tool.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the tool.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The description of the tool.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. The description of the tool.
+   * 
+ * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Whether the tool is enabled.
+   * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Optional. The display name of the tool.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of the tool.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java index 14a33761f4b0..14130daeb0dc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Engine.java @@ -58,6 +58,11 @@ private Engine() { dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); solutionType_ = 0; industryVertical_ = 0; + appType_ = 0; + configurableBillingApproach_ = 0; + marketplaceAgentVisibility_ = 0; + procurementContactEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + associatedAgentRegistry_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -65,6 +70,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1_Engine_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetFeatures(); + case 37: + return internalGetModelConfigs(); + case 42: + return internalGetConnectorTenantInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -75,1391 +96,1042 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.Engine.Builder.class); } - public interface SearchEngineConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
+   * The app of the engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Engine.AppType} + */ + public enum AppType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
-     * The search feature tier of this engine.
-     *
-     * Different tiers might have different
-     * pricing. To learn more, check the pricing documentation.
-     *
-     * Defaults to
-     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-     * if not specified.
+     * All non specified apps.
      * 
* - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return The enum numeric value on the wire for searchTier. + * APP_TYPE_UNSPECIFIED = 0; */ - int getSearchTierValue(); - + APP_TYPE_UNSPECIFIED(0), /** * * *
-     * The search feature tier of this engine.
-     *
-     * Different tiers might have different
-     * pricing. To learn more, check the pricing documentation.
-     *
-     * Defaults to
-     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-     * if not specified.
+     * App type for intranet search and Agentspace.
      * 
* - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return The searchTier. + * APP_TYPE_INTRANET = 1; */ - com.google.cloud.discoveryengine.v1.SearchTier getSearchTier(); + APP_TYPE_INTRANET(1), + UNRECOGNIZED(-1), + ; - /** - * - * - *
-     * The add-on that this search engine enables.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return A list containing the searchAddOns. - */ - java.util.List getSearchAddOnsList(); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AppType"); + } /** * * *
-     * The add-on that this search engine enables.
+     * All non specified apps.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return The count of searchAddOns. + * APP_TYPE_UNSPECIFIED = 0; */ - int getSearchAddOnsCount(); + public static final int APP_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
-     * The add-on that this search engine enables.
+     * App type for intranet search and Agentspace.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index of the element to return. - * @return The searchAddOns at the given index. + * APP_TYPE_INTRANET = 1; */ - com.google.cloud.discoveryengine.v1.SearchAddOn getSearchAddOns(int index); + public static final int APP_TYPE_INTRANET_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } /** - * - * - *
-     * The add-on that this search engine enables.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return A list containing the enum numeric values on the wire for searchAddOns. + * @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.util.List getSearchAddOnsValueList(); + @java.lang.Deprecated + public static AppType valueOf(int value) { + return forNumber(value); + } /** - * - * - *
-     * The add-on that this search engine enables.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of searchAddOns at the given index. + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. */ - int getSearchAddOnsValue(int index); - } + public static AppType forNumber(int value) { + switch (value) { + case 0: + return APP_TYPE_UNSPECIFIED; + case 1: + return APP_TYPE_INTRANET; + default: + return null; + } + } - /** - * - * - *
-   * Configurations for a Search Engine.
-   * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.SearchEngineConfig} - */ - public static final class SearchEngineConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) - SearchEngineConfigOrBuilder { - private static final long serialVersionUID = 0L; + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchEngineConfig"); + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AppType findValueByNumber(int number) { + return AppType.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()); } - // Use SearchEngineConfig.newBuilder() to construct. - private SearchEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - private SearchEngineConfig() { - searchTier_ = 0; - searchAddOns_ = emptyIntList(); + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Engine.getDescriptor().getEnumTypes().get(0); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor; + private static final AppType[] VALUES = values(); + + public static AppType 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()]; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.class, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder.class); + private final int value; + + private AppType(int value) { + this.value = value; } - public static final int SEARCH_TIER_FIELD_NUMBER = 1; - private int searchTier_ = 0; + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.AppType) + } + /** + * + * + *
+   * The state of the feature for the engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Engine.FeatureState} + */ + public enum FeatureState implements com.google.protobuf.ProtocolMessageEnum { /** * * *
-     * The search feature tier of this engine.
-     *
-     * Different tiers might have different
-     * pricing. To learn more, check the pricing documentation.
-     *
-     * Defaults to
-     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-     * if not specified.
+     * The feature state is unspecified.
      * 
* - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return The enum numeric value on the wire for searchTier. + * FEATURE_STATE_UNSPECIFIED = 0; */ - @java.lang.Override - public int getSearchTierValue() { - return searchTier_; - } - + FEATURE_STATE_UNSPECIFIED(0), /** * * *
-     * The search feature tier of this engine.
-     *
-     * Different tiers might have different
-     * pricing. To learn more, check the pricing documentation.
-     *
-     * Defaults to
-     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-     * if not specified.
+     * The feature is turned on to be accessible.
      * 
* - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return The searchTier. + * FEATURE_STATE_ON = 1; */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchTier getSearchTier() { - com.google.cloud.discoveryengine.v1.SearchTier result = - com.google.cloud.discoveryengine.v1.SearchTier.forNumber(searchTier_); - return result == null ? com.google.cloud.discoveryengine.v1.SearchTier.UNRECOGNIZED : result; - } - - public static final int SEARCH_ADD_ONS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1.SearchAddOn> - searchAddOns_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1.SearchAddOn>() { - public com.google.cloud.discoveryengine.v1.SearchAddOn convert(int from) { - com.google.cloud.discoveryengine.v1.SearchAddOn result = - com.google.cloud.discoveryengine.v1.SearchAddOn.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchAddOn.UNRECOGNIZED - : result; - } - }; - + FEATURE_STATE_ON(1), /** * * *
-     * The add-on that this search engine enables.
+     * The feature is turned off to be inaccessible.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return A list containing the searchAddOns. + * FEATURE_STATE_OFF = 2; */ - @java.lang.Override - public java.util.List getSearchAddOnsList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1.SearchAddOn>(searchAddOns_, searchAddOns_converter_); + FEATURE_STATE_OFF(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FeatureState"); } /** * * *
-     * The add-on that this search engine enables.
+     * The feature state is unspecified.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return The count of searchAddOns. + * FEATURE_STATE_UNSPECIFIED = 0; */ - @java.lang.Override - public int getSearchAddOnsCount() { - return searchAddOns_.size(); - } + public static final int FEATURE_STATE_UNSPECIFIED_VALUE = 0; /** * * *
-     * The add-on that this search engine enables.
+     * The feature is turned on to be accessible.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index of the element to return. - * @return The searchAddOns at the given index. + * FEATURE_STATE_ON = 1; */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchAddOn getSearchAddOns(int index) { - return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); - } + public static final int FEATURE_STATE_ON_VALUE = 1; /** * * *
-     * The add-on that this search engine enables.
+     * The feature is turned off to be inaccessible.
      * 
* - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return A list containing the enum numeric values on the wire for searchAddOns. + * FEATURE_STATE_OFF = 2; */ - @java.lang.Override - public java.util.List getSearchAddOnsValueList() { - return searchAddOns_; + public static final int FEATURE_STATE_OFF_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; } /** - * - * - *
-     * The add-on that this search engine enables.
-     * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of searchAddOns at the given index. + * @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.Override - public int getSearchAddOnsValue(int index) { - return searchAddOns_.getInt(index); + @java.lang.Deprecated + public static FeatureState valueOf(int value) { + return forNumber(value); } - private int searchAddOnsMemoizedSerializedSize; - - 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; + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FeatureState forNumber(int value) { + switch (value) { + case 0: + return FEATURE_STATE_UNSPECIFIED; + case 1: + return FEATURE_STATE_ON; + case 2: + return FEATURE_STATE_OFF; + default: + return null; + } } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (searchTier_ - != com.google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, searchTier_); - } - if (getSearchAddOnsList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(searchAddOnsMemoizedSerializedSize); - } - for (int i = 0; i < searchAddOns_.size(); i++) { - output.writeEnumNoTag(searchAddOns_.getInt(i)); - } - getUnknownFields().writeTo(output); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeatureState findValueByNumber(int number) { + return FeatureState.forNumber(number); + } + }; - size = 0; - if (searchTier_ - != com.google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchTier_); - } - { - int dataSize = 0; - for (int i = 0; i < searchAddOns_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(searchAddOns_.getInt(i)); - } - size += dataSize; - if (!getSearchAddOnsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - searchAddOnsMemoizedSerializedSize = dataSize; + 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."); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + return getDescriptor().getValues().get(ordinal()); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig other = - (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) obj; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - if (searchTier_ != other.searchTier_) return false; - if (!searchAddOns_.equals(other.searchAddOns_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Engine.getDescriptor().getEnumTypes().get(1); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + private static final FeatureState[] VALUES = values(); + + public static FeatureState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEARCH_TIER_FIELD_NUMBER; - hash = (53 * hash) + searchTier_; - if (getSearchAddOnsCount() > 0) { - hash = (37 * hash) + SEARCH_ADD_ONS_FIELD_NUMBER; - hash = (53 * hash) + searchAddOns_.hashCode(); + if (desc.getIndex() == -1) { + return UNRECOGNIZED; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return VALUES[desc.getIndex()]; } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private final int value; - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + private FeatureState(int value) { + this.value = value; } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.FeatureState) + } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+   * Configuration for configurable billing approach.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach} + */ + public enum ConfigurableBillingApproach implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. For Spark and non-Spark non-configurable billing approach.
+     * General pricing model.
+     * 
+ * + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED(0), + /** + * + * + *
+     * The billing approach follows configurations specified by customer.
+     * 
+ * + * CONFIGURABLE_BILLING_APPROACH_ENABLED = 1; + */ + CONFIGURABLE_BILLING_APPROACH_ENABLED(1), + UNRECOGNIZED(-1), + ; - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConfigurableBillingApproach"); } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Default value. For Spark and non-Spark non-configurable billing approach.
+     * General pricing model.
+     * 
+ * + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + public static final int CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED_VALUE = 0; - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * The billing approach follows configurations specified by customer.
+     * 
+ * + * CONFIGURABLE_BILLING_APPROACH_ENABLED = 1; + */ + public static final int CONFIGURABLE_BILLING_APPROACH_ENABLED_VALUE = 1; - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * @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 ConfigurableBillingApproach valueOf(int value) { + return forNumber(value); } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConfigurableBillingApproach forNumber(int value) { + switch (value) { + case 0: + return CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED; + case 1: + return CONFIGURABLE_BILLING_APPROACH_ENABLED; + default: + return null; + } } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; } - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConfigurableBillingApproach findValueByNumber(int number) { + return ConfigurableBillingApproach.forNumber(number); + } + }; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + 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 static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Engine.getDescriptor().getEnumTypes().get(2); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + private static final ConfigurableBillingApproach[] VALUES = values(); + + public static ConfigurableBillingApproach 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()]; } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + private final int value; + + private ConfigurableBillingApproach(int value) { + this.value = value; } - /** - * - * - *
-     * Configurations for a Search Engine.
-     * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.SearchEngineConfig} + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach) + } + + /** + * + * + *
+   * The status of the model for the engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Engine.ModelState} + */ + public enum ModelState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The model state is unspecified.
+     * 
+ * + * MODEL_STATE_UNSPECIFIED = 0; */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor; - } + MODEL_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The model is enabled by admin.
+     * 
+ * + * MODEL_ENABLED = 1; + */ + MODEL_ENABLED(1), + /** + * + * + *
+     * The model is disabled by admin.
+     * 
+ * + * MODEL_DISABLED = 2; + */ + MODEL_DISABLED(2), + UNRECOGNIZED(-1), + ; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.class, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder.class); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelState"); + } - // Construct using com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.newBuilder() - private Builder() {} + /** + * + * + *
+     * The model state is unspecified.
+     * 
+ * + * MODEL_STATE_UNSPECIFIED = 0; + */ + public static final int MODEL_STATE_UNSPECIFIED_VALUE = 0; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+     * The model is enabled by admin.
+     * 
+ * + * MODEL_ENABLED = 1; + */ + public static final int MODEL_ENABLED_VALUE = 1; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - searchTier_ = 0; - searchAddOns_ = emptyIntList(); - return this; - } + /** + * + * + *
+     * The model is disabled by admin.
+     * 
+ * + * MODEL_DISABLED = 2; + */ + public static final int MODEL_DISABLED_VALUE = 2; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); - } + /** + * @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 ModelState valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig build() { - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ModelState forNumber(int value) { + switch (value) { + case 0: + return MODEL_STATE_UNSPECIFIED; + case 1: + return MODEL_ENABLED; + case 2: + return MODEL_DISABLED; + default: + return null; } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig result = - new com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.searchTier_ = searchTier_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - searchAddOns_.makeImmutable(); - result.searchAddOns_ = searchAddOns_; - } - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelState findValueByNumber(int number) { + return ModelState.forNumber(number); + } + }; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) other); - } else { - super.mergeFrom(other); - return this; - } + 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 Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance()) - return this; - if (other.searchTier_ != 0) { - setSearchTierValue(other.getSearchTierValue()); - } - if (!other.searchAddOns_.isEmpty()) { - if (searchAddOns_.isEmpty()) { - searchAddOns_ = other.searchAddOns_; - searchAddOns_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureSearchAddOnsIsMutable(); - searchAddOns_.addAll(other.searchAddOns_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Engine.getDescriptor().getEnumTypes().get(3); + } - @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: - { - searchTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - int tmpRaw = input.readEnum(); - ensureSearchAddOnsIsMutable(); - searchAddOns_.addInt(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureSearchAddOnsIsMutable(); - while (input.getBytesUntilLimit() > 0) { - searchAddOns_.addInt(input.readEnum()); - } - input.popLimit(limit); - 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 static final ModelState[] VALUES = values(); + + public static ModelState 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 int bitField0_; + private final int value; - private int searchTier_ = 0; + private ModelState(int value) { + this.value = value; + } - /** - * - * - *
-       * The search feature tier of this engine.
-       *
-       * Different tiers might have different
-       * pricing. To learn more, check the pricing documentation.
-       *
-       * Defaults to
-       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-       * if not specified.
-       * 
- * - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return The enum numeric value on the wire for searchTier. - */ - @java.lang.Override - public int getSearchTierValue() { - return searchTier_; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.ModelState) + } - /** - * - * - *
-       * The search feature tier of this engine.
-       *
-       * Different tiers might have different
-       * pricing. To learn more, check the pricing documentation.
-       *
-       * Defaults to
-       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-       * if not specified.
-       * 
- * - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @param value The enum numeric value on the wire for searchTier to set. - * @return This builder for chaining. - */ - public Builder setSearchTierValue(int value) { - searchTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
+   * Represents which marketplace agents are visible to any users in agent
+   * gallery.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility} + */ + public enum MarketplaceAgentVisibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Defaults to `MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED`.
+     * 
+ * + * MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED = 0; + */ + MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
+     * Only agents that are currently available for use by the user are visible.
+     * 
+ * + * SHOW_AVAILABLE_AGENTS_ONLY = 1; + */ + SHOW_AVAILABLE_AGENTS_ONLY(1), + /** + * + * + *
+     * Show marketplace agents that the user does not yet have access to but
+     * are integrated into the engine. This level also includes all agents
+     * visible with `SHOW_AVAILABLE_AGENTS_ONLY`.
+     * 
+ * + * SHOW_AGENTS_ALREADY_INTEGRATED = 2; + */ + SHOW_AGENTS_ALREADY_INTEGRATED(2), + /** + * + * + *
+     * Show all agents visible with `SHOW_AGENTS_ALREADY_INTEGRATED`, plus
+     * agents that have already been purchased by the project/organization, even
+     * if they are not currently integrated into the engine.
+     * 
+ * + * SHOW_AGENTS_ALREADY_PURCHASED = 3; + */ + SHOW_AGENTS_ALREADY_PURCHASED(3), + /** + * + * + *
+     * All agents in the marketplace are visible, regardless of access or
+     * purchase status. This level encompasses all agents shown in the previous
+     * levels.
+     * 
+ * + * SHOW_ALL_AGENTS = 4; + */ + SHOW_ALL_AGENTS(4), + UNRECOGNIZED(-1), + ; - /** - * - * - *
-       * The search feature tier of this engine.
-       *
-       * Different tiers might have different
-       * pricing. To learn more, check the pricing documentation.
-       *
-       * Defaults to
-       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-       * if not specified.
-       * 
- * - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return The searchTier. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SearchTier getSearchTier() { - com.google.cloud.discoveryengine.v1.SearchTier result = - com.google.cloud.discoveryengine.v1.SearchTier.forNumber(searchTier_); - return result == null - ? com.google.cloud.discoveryengine.v1.SearchTier.UNRECOGNIZED - : result; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MarketplaceAgentVisibility"); + } - /** - * - * - *
-       * The search feature tier of this engine.
-       *
-       * Different tiers might have different
-       * pricing. To learn more, check the pricing documentation.
-       *
-       * Defaults to
-       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-       * if not specified.
-       * 
- * - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @param value The searchTier to set. - * @return This builder for chaining. - */ - public Builder setSearchTier(com.google.cloud.discoveryengine.v1.SearchTier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - searchTier_ = value.getNumber(); - onChanged(); - return this; - } + /** + * + * + *
+     * Defaults to `MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED`.
+     * 
+ * + * MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED = 0; + */ + public static final int MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The search feature tier of this engine.
-       *
-       * Different tiers might have different
-       * pricing. To learn more, check the pricing documentation.
-       *
-       * Defaults to
-       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
-       * if not specified.
-       * 
- * - * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * - * @return This builder for chaining. - */ - public Builder clearSearchTier() { - bitField0_ = (bitField0_ & ~0x00000001); - searchTier_ = 0; - onChanged(); - return this; - } + /** + * + * + *
+     * Only agents that are currently available for use by the user are visible.
+     * 
+ * + * SHOW_AVAILABLE_AGENTS_ONLY = 1; + */ + public static final int SHOW_AVAILABLE_AGENTS_ONLY_VALUE = 1; - private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); + /** + * + * + *
+     * Show marketplace agents that the user does not yet have access to but
+     * are integrated into the engine. This level also includes all agents
+     * visible with `SHOW_AVAILABLE_AGENTS_ONLY`.
+     * 
+ * + * SHOW_AGENTS_ALREADY_INTEGRATED = 2; + */ + public static final int SHOW_AGENTS_ALREADY_INTEGRATED_VALUE = 2; - private void ensureSearchAddOnsIsMutable() { - if (!searchAddOns_.isModifiable()) { - searchAddOns_ = makeMutableCopy(searchAddOns_); - } - bitField0_ |= 0x00000002; + /** + * + * + *
+     * Show all agents visible with `SHOW_AGENTS_ALREADY_INTEGRATED`, plus
+     * agents that have already been purchased by the project/organization, even
+     * if they are not currently integrated into the engine.
+     * 
+ * + * SHOW_AGENTS_ALREADY_PURCHASED = 3; + */ + public static final int SHOW_AGENTS_ALREADY_PURCHASED_VALUE = 3; + + /** + * + * + *
+     * All agents in the marketplace are visible, regardless of access or
+     * purchase status. This level encompasses all agents shown in the previous
+     * levels.
+     * 
+ * + * SHOW_ALL_AGENTS = 4; + */ + public static final int SHOW_ALL_AGENTS_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; + } - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return A list containing the searchAddOns. - */ - public java.util.List getSearchAddOnsList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1.SearchAddOn>( - searchAddOns_, searchAddOns_converter_); + /** + * @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 MarketplaceAgentVisibility 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 MarketplaceAgentVisibility forNumber(int value) { + switch (value) { + case 0: + return MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED; + case 1: + return SHOW_AVAILABLE_AGENTS_ONLY; + case 2: + return SHOW_AGENTS_ALREADY_INTEGRATED; + case 3: + return SHOW_AGENTS_ALREADY_PURCHASED; + case 4: + return SHOW_ALL_AGENTS; + default: + return null; } + } - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return The count of searchAddOns. - */ - public int getSearchAddOnsCount() { - return searchAddOns_.size(); + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MarketplaceAgentVisibility findValueByNumber(int number) { + return MarketplaceAgentVisibility.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()); + } - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index of the element to return. - * @return The searchAddOns at the given index. - */ - public com.google.cloud.discoveryengine.v1.SearchAddOn getSearchAddOns(int index) { - return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); - } - - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index to set the value at. - * @param value The searchAddOns to set. - * @return This builder for chaining. - */ - public Builder setSearchAddOns( - int index, com.google.cloud.discoveryengine.v1.SearchAddOn value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAddOnsIsMutable(); - searchAddOns_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param value The searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addSearchAddOns(com.google.cloud.discoveryengine.v1.SearchAddOn value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAddOnsIsMutable(); - searchAddOns_.addInt(value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param values The searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addAllSearchAddOns( - java.lang.Iterable values) { - ensureSearchAddOnsIsMutable(); - for (com.google.cloud.discoveryengine.v1.SearchAddOn value : values) { - searchAddOns_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return This builder for chaining. - */ - public Builder clearSearchAddOns() { - searchAddOns_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @return A list containing the enum numeric values on the wire for searchAddOns. - */ - public java.util.List getSearchAddOnsValueList() { - searchAddOns_.makeImmutable(); - return searchAddOns_; - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of searchAddOns at the given index. - */ - public int getSearchAddOnsValue(int index) { - return searchAddOns_.getInt(index); - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Engine.getDescriptor().getEnumTypes().get(4); + } - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for searchAddOns to set. - * @return This builder for chaining. - */ - public Builder setSearchAddOnsValue(int index, int value) { - ensureSearchAddOnsIsMutable(); - searchAddOns_.setInt(index, value); - onChanged(); - return this; - } + private static final MarketplaceAgentVisibility[] VALUES = values(); - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param value The enum numeric value on the wire for searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addSearchAddOnsValue(int value) { - ensureSearchAddOnsIsMutable(); - searchAddOns_.addInt(value); - onChanged(); - return this; + public static MarketplaceAgentVisibility valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } - - /** - * - * - *
-       * The add-on that this search engine enables.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * - * @param values The enum numeric values on the wire for searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addAllSearchAddOnsValue(java.lang.Iterable values) { - ensureSearchAddOnsIsMutable(); - for (int value : values) { - searchAddOns_.addInt(value); - } - onChanged(); - return this; + if (desc.getIndex() == -1) { + return UNRECOGNIZED; } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) + return VALUES[desc.getIndex()]; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) - private static final com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig(); - } - - public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchEngineConfig 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; - } + private final int value; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + private MarketplaceAgentVisibility(int value) { + this.value = value; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility) } - public interface MediaRecommendationEngineConfigOrBuilder + public interface SearchEngineConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Required. The type of engine. e.g., `recommended-for-you`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-     * describe engine metadata to use to control engine training and serving.
+     * The search feature tier of this engine.
      *
-     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-     * `more-like-this`, `most-popular-items`.
-     * 
+ * Different tiers might have different + * pricing. To learn more, check the pricing documentation. * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The type. - */ - java.lang.String getType(); - - /** - * - * - *
-     * Required. The type of engine. e.g., `recommended-for-you`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-     * `more-like-this`, `most-popular-items`.
+     * Defaults to
+     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+     * if not specified.
      * 
* - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; * - * @return The bytes for type. + * @return The enum numeric value on the wire for searchTier. */ - com.google.protobuf.ByteString getTypeBytes(); + int getSearchTierValue(); /** * * *
-     * The optimization objective. e.g., `cvr`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported
-     * values: `ctr`, `cvr`.
-     *
-     * If not specified, we choose default based on engine type.
-     * Default depends on type of recommendation:
+     * The search feature tier of this engine.
      *
-     * `recommended-for-you` => `ctr`
+     * Different tiers might have different
+     * pricing. To learn more, check the pricing documentation.
      *
-     * `others-you-may-like` => `ctr`
+     * Defaults to
+     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+     * if not specified.
      * 
* - * string optimization_objective = 2; + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; * - * @return The optimizationObjective. + * @return The searchTier. */ - java.lang.String getOptimizationObjective(); + com.google.cloud.discoveryengine.v1.SearchTier getSearchTier(); /** * * *
-     * The optimization objective. e.g., `cvr`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported
-     * values: `ctr`, `cvr`.
-     *
-     * If not specified, we choose default based on engine type.
-     * Default depends on type of recommendation:
-     *
-     * `recommended-for-you` => `ctr`
-     *
-     * `others-you-may-like` => `ctr`
-     * 
- * - * string optimization_objective = 2; - * - * @return The bytes for optimizationObjective. - */ - com.google.protobuf.ByteString getOptimizationObjectiveBytes(); - - /** + * Optional. The required subscription tier of this engine. * + * If the required subscription tier is search, user with higher license + * tier like assist can still access the standalone app associated with this + * engine. * - *
-     * Name and value of the custom threshold for cvr optimization_objective.
-     * For target_field `watch-time`, target_field_value must be an integer
-     * value indicating the media progress time in seconds between (0, 86400]
-     * (excludes 0, includes 86400) (e.g., 90).
-     * For target_field `watch-percentage`, the target_field_value must be a
-     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-     * 0.5).
+     * Web grounding feature is only available on the app if it is set as
+     * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the optimizationObjectiveConfig field is set. + * @return The enum numeric value on the wire for requiredSubscriptionTier. */ - boolean hasOptimizationObjectiveConfig(); + int getRequiredSubscriptionTierValue(); /** * * *
-     * Name and value of the custom threshold for cvr optimization_objective.
-     * For target_field `watch-time`, target_field_value must be an integer
-     * value indicating the media progress time in seconds between (0, 86400]
-     * (excludes 0, includes 86400) (e.g., 90).
-     * For target_field `watch-percentage`, the target_field_value must be a
-     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-     * 0.5).
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - * - * @return The optimizationObjectiveConfig. - */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - getOptimizationObjectiveConfig(); - - /** + * Optional. The required subscription tier of this engine. * + * If the required subscription tier is search, user with higher license + * tier like assist can still access the standalone app associated with this + * engine. * - *
-     * Name and value of the custom threshold for cvr optimization_objective.
-     * For target_field `watch-time`, target_field_value must be an integer
-     * value indicating the media progress time in seconds between (0, 86400]
-     * (excludes 0, includes 86400) (e.g., 90).
-     * For target_field `watch-percentage`, the target_field_value must be a
-     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-     * 0.5).
+     * Web grounding feature is only available on the app if it is set as
+     * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The requiredSubscriptionTier. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder - getOptimizationObjectiveConfigOrBuilder(); + com.google.cloud.discoveryengine.v1.SubscriptionTier getRequiredSubscriptionTier(); /** * * *
-     * The training state that the engine is in (e.g.
-     * `TRAINING` or `PAUSED`).
-     *
-     * Since part of the cost of running the service
-     * is frequency of training - this can be used to determine when to train
-     * engine in order to control cost. If not specified: the default value for
-     * `CreateEngine` method is `TRAINING`. The default value for
-     * `UpdateEngine` method is to keep the state the same as before.
+     * The add-on that this search engine enables.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return The enum numeric value on the wire for trainingState. + * @return A list containing the searchAddOns. */ - int getTrainingStateValue(); + java.util.List getSearchAddOnsList(); /** * * *
-     * The training state that the engine is in (e.g.
-     * `TRAINING` or `PAUSED`).
-     *
-     * Since part of the cost of running the service
-     * is frequency of training - this can be used to determine when to train
-     * engine in order to control cost. If not specified: the default value for
-     * `CreateEngine` method is `TRAINING`. The default value for
-     * `UpdateEngine` method is to keep the state the same as before.
+     * The add-on that this search engine enables.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return The trainingState. + * @return The count of searchAddOns. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState - getTrainingState(); + int getSearchAddOnsCount(); /** * * *
-     * Optional. Additional engine features config.
+     * The add-on that this search engine enables.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return Whether the engineFeaturesConfig field is set. + * @param index The index of the element to return. + * @return The searchAddOns at the given index. */ - boolean hasEngineFeaturesConfig(); + com.google.cloud.discoveryengine.v1.SearchAddOn getSearchAddOns(int index); /** * * *
-     * Optional. Additional engine features config.
+     * The add-on that this search engine enables.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return The engineFeaturesConfig. + * @return A list containing the enum numeric values on the wire for searchAddOns. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig - getEngineFeaturesConfig(); + java.util.List getSearchAddOnsValueList(); /** * * *
-     * Optional. Additional engine features config.
+     * The add-on that this search engine enables.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of searchAddOns at the given index. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder - getEngineFeaturesConfigOrBuilder(); + int getSearchAddOnsValue(int index); } /** * * *
-   * Additional config specs for a Media Recommendation engine.
+   * Configurations for a Search Engine.
    * 
* - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig} + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.SearchEngineConfig} */ - public static final class MediaRecommendationEngineConfig - extends com.google.protobuf.GeneratedMessage + public static final class SearchEngineConfig extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - MediaRecommendationEngineConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) + SearchEngineConfigOrBuilder { private static final long serialVersionUID = 0L; static { @@ -1469,2831 +1141,2109 @@ public static final class MediaRecommendationEngineConfig /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "MediaRecommendationEngineConfig"); + "SearchEngineConfig"); } - // Use MediaRecommendationEngineConfig.newBuilder() to construct. - private MediaRecommendationEngineConfig( - com.google.protobuf.GeneratedMessage.Builder builder) { + // Use SearchEngineConfig.newBuilder() to construct. + private SearchEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private MediaRecommendationEngineConfig() { - type_ = ""; - optimizationObjective_ = ""; - trainingState_ = 0; + private SearchEngineConfig() { + searchTier_ = 0; + requiredSubscriptionTier_ = 0; + searchAddOns_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder - .class); + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.class, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder.class); } + public static final int SEARCH_TIER_FIELD_NUMBER = 1; + private int searchTier_ = 0; + /** * * *
-     * The training state of the engine.
+     * The search feature tier of this engine.
+     *
+     * Different tiers might have different
+     * pricing. To learn more, check the pricing documentation.
+     *
+     * Defaults to
+     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+     * if not specified.
      * 
* - * Protobuf enum {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState} + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; + * + * @return The enum numeric value on the wire for searchTier. */ - public enum TrainingState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified training state.
-       * 
- * - * TRAINING_STATE_UNSPECIFIED = 0; - */ - TRAINING_STATE_UNSPECIFIED(0), - /** - * - * - *
-       * The engine training is paused.
-       * 
- * - * PAUSED = 1; - */ - PAUSED(1), - /** - * - * - *
-       * The engine is training.
-       * 
- * - * TRAINING = 2; - */ - TRAINING(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TrainingState"); - } - - /** - * - * - *
-       * Unspecified training state.
-       * 
- * - * TRAINING_STATE_UNSPECIFIED = 0; - */ - public static final int TRAINING_STATE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-       * The engine training is paused.
-       * 
- * - * PAUSED = 1; - */ - public static final int PAUSED_VALUE = 1; - - /** - * - * - *
-       * The engine is training.
-       * 
- * - * TRAINING = 2; - */ - public static final int TRAINING_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 TrainingState 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 TrainingState forNumber(int value) { - switch (value) { - case 0: - return TRAINING_STATE_UNSPECIFIED; - case 1: - return PAUSED; - case 2: - return TRAINING; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TrainingState findValueByNumber(int number) { - return TrainingState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final TrainingState[] VALUES = values(); - - public static TrainingState 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 TrainingState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState) + @java.lang.Override + public int getSearchTierValue() { + return searchTier_; } - public interface OptimizationObjectiveConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Required. The name of the field to target. Currently supported
-       * values: `watch-percentage`, `watch-time`.
-       * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The targetField. - */ - java.lang.String getTargetField(); + /** + * + * + *
+     * The search feature tier of this engine.
+     *
+     * Different tiers might have different
+     * pricing. To learn more, check the pricing documentation.
+     *
+     * Defaults to
+     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+     * if not specified.
+     * 
+ * + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; + * + * @return The searchTier. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchTier getSearchTier() { + com.google.cloud.discoveryengine.v1.SearchTier result = + com.google.cloud.discoveryengine.v1.SearchTier.forNumber(searchTier_); + return result == null ? com.google.cloud.discoveryengine.v1.SearchTier.UNRECOGNIZED : result; + } - /** - * - * - *
-       * Required. The name of the field to target. Currently supported
-       * values: `watch-percentage`, `watch-time`.
-       * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for targetField. - */ - com.google.protobuf.ByteString getTargetFieldBytes(); + public static final int REQUIRED_SUBSCRIPTION_TIER_FIELD_NUMBER = 3; + private int requiredSubscriptionTier_ = 0; - /** - * - * - *
-       * Required. The threshold to be applied to the target (e.g., 0.5).
-       * 
- * - * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The targetFieldValueFloat. - */ - float getTargetFieldValueFloat(); + /** + * + * + *
+     * Optional. The required subscription tier of this engine.
+     *
+     * If the required subscription tier is search, user with higher license
+     * tier like assist can still access the standalone app associated with this
+     * engine.
+     *
+     * Web grounding feature is only available on the app if it is set as
+     * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requiredSubscriptionTier. + */ + @java.lang.Override + public int getRequiredSubscriptionTierValue() { + return requiredSubscriptionTier_; } /** * * *
-     * Custom threshold for `cvr` optimization_objective.
+     * Optional. The required subscription tier of this engine.
+     *
+     * If the required subscription tier is search, user with higher license
+     * tier like assist can still access the standalone app associated with this
+     * engine.
+     *
+     * Web grounding feature is only available on the app if it is set as
+     * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
      * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig} + * + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requiredSubscriptionTier. */ - public static final class OptimizationObjectiveConfig - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) - OptimizationObjectiveConfigOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SubscriptionTier getRequiredSubscriptionTier() { + com.google.cloud.discoveryengine.v1.SubscriptionTier result = + com.google.cloud.discoveryengine.v1.SubscriptionTier.forNumber(requiredSubscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1.SubscriptionTier.UNRECOGNIZED + : result; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "OptimizationObjectiveConfig"); - } - - // Use OptimizationObjectiveConfig.newBuilder() to construct. - private OptimizationObjectiveConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final int SEARCH_ADD_ONS_FIELD_NUMBER = 2; - private OptimizationObjectiveConfig() { - targetField_ = ""; - } + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; - } + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.SearchAddOn> + searchAddOns_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.SearchAddOn>() { + public com.google.cloud.discoveryengine.v1.SearchAddOn convert(int from) { + com.google.cloud.discoveryengine.v1.SearchAddOn result = + com.google.cloud.discoveryengine.v1.SearchAddOn.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchAddOn.UNRECOGNIZED + : result; + } + }; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder.class); - } + /** + * + * + *
+     * The add-on that this search engine enables.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @return A list containing the searchAddOns. + */ + @java.lang.Override + public java.util.List getSearchAddOnsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.SearchAddOn>(searchAddOns_, searchAddOns_converter_); + } - public static final int TARGET_FIELD_FIELD_NUMBER = 1; + /** + * + * + *
+     * The add-on that this search engine enables.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @return The count of searchAddOns. + */ + @java.lang.Override + public int getSearchAddOnsCount() { + return searchAddOns_.size(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object targetField_ = ""; + /** + * + * + *
+     * The add-on that this search engine enables.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param index The index of the element to return. + * @return The searchAddOns at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchAddOn getSearchAddOns(int index) { + return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); + } - /** - * - * - *
-       * Required. The name of the field to target. Currently supported
-       * values: `watch-percentage`, `watch-time`.
-       * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The targetField. - */ - @java.lang.Override - public java.lang.String getTargetField() { - java.lang.Object ref = targetField_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetField_ = s; - return s; - } - } + /** + * + * + *
+     * The add-on that this search engine enables.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @return A list containing the enum numeric values on the wire for searchAddOns. + */ + @java.lang.Override + public java.util.List getSearchAddOnsValueList() { + return searchAddOns_; + } - /** - * - * - *
-       * Required. The name of the field to target. Currently supported
-       * values: `watch-percentage`, `watch-time`.
-       * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for targetField. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetFieldBytes() { - java.lang.Object ref = targetField_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetField_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+     * The add-on that this search engine enables.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of searchAddOns at the given index. + */ + @java.lang.Override + public int getSearchAddOnsValue(int index) { + return searchAddOns_.getInt(index); + } - public static final int TARGET_FIELD_VALUE_FLOAT_FIELD_NUMBER = 2; - private float targetFieldValueFloat_ = 0F; + private int searchAddOnsMemoizedSerializedSize; - /** - * - * - *
-       * Required. The threshold to be applied to the target (e.g., 0.5).
-       * 
- * - * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The targetFieldValueFloat. - */ - @java.lang.Override - public float getTargetFieldValueFloat() { - return targetFieldValueFloat_; - } + private byte memoizedIsInitialized = -1; - private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (searchTier_ + != com.google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, searchTier_); } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetField_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, targetField_); - } - if (java.lang.Float.floatToRawIntBits(targetFieldValueFloat_) != 0) { - output.writeFloat(2, targetFieldValueFloat_); - } - getUnknownFields().writeTo(output); + if (getSearchAddOnsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(searchAddOnsMemoizedSerializedSize); + } + for (int i = 0; i < searchAddOns_.size(); i++) { + output.writeEnumNoTag(searchAddOns_.getInt(i)); + } + if (requiredSubscriptionTier_ + != com.google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, requiredSubscriptionTier_); } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetField_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetField_); + size = 0; + if (searchTier_ + != com.google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchTier_); + } + { + int dataSize = 0; + for (int i = 0; i < searchAddOns_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(searchAddOns_.getInt(i)); } - if (java.lang.Float.floatToRawIntBits(targetFieldValueFloat_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, targetFieldValueFloat_); + size += dataSize; + if (!getSearchAddOnsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + searchAddOnsMemoizedSerializedSize = dataSize; } + if (requiredSubscriptionTier_ + != com.google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, requiredSubscriptionTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - other = - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig) - obj; - - if (!getTargetField().equals(other.getTargetField())) return false; - if (java.lang.Float.floatToIntBits(getTargetFieldValueFloat()) - != java.lang.Float.floatToIntBits(other.getTargetFieldValueFloat())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { return true; } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGET_FIELD_FIELD_NUMBER; - hash = (53 * hash) + getTargetField().hashCode(); - hash = (37 * hash) + TARGET_FIELD_VALUE_FLOAT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTargetFieldValueFloat()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig other = + (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) obj; - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + if (searchTier_ != other.searchTier_) return false; + if (requiredSubscriptionTier_ != other.requiredSubscriptionTier_) return false; + if (!searchAddOns_.equals(other.searchAddOns_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEARCH_TIER_FIELD_NUMBER; + hash = (53 * hash) + searchTier_; + hash = (37 * hash) + REQUIRED_SUBSCRIPTION_TIER_FIELD_NUMBER; + hash = (53 * hash) + requiredSubscriptionTier_; + if (getSearchAddOnsCount() > 0) { + hash = (37 * hash) + SEARCH_ADD_ONS_FIELD_NUMBER; + hash = (53 * hash) + searchAddOns_.hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
-       * Custom threshold for `cvr` optimization_objective.
-       * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder.class); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // Construct using - // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig.newBuilder() - private Builder() {} + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+     * Configurations for a Search Engine.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.SearchEngineConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - targetField_ = ""; - targetFieldValueFloat_ = 0F; - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.class, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; - } + // Construct using com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.newBuilder() + private Builder() {} - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - build() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchTier_ = 0; + requiredSubscriptionTier_ = 0; + searchAddOns_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig build() { + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - result = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig result = + new com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.targetField_ = targetField_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.targetFieldValueFloat_ = targetFieldValueFloat_; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchTier_ = searchTier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requiredSubscriptionTier_ = requiredSubscriptionTier_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + searchAddOns_.makeImmutable(); + result.searchAddOns_ = searchAddOns_; } + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig) - other); - } else { - super.mergeFrom(other); - return this; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) other); + } else { + super.mergeFrom(other); + return this; } + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance()) return this; - if (!other.getTargetField().isEmpty()) { - targetField_ = other.targetField_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (java.lang.Float.floatToRawIntBits(other.getTargetFieldValueFloat()) != 0) { - setTargetFieldValueFloat(other.getTargetFieldValueFloat()); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance()) + return this; + if (other.searchTier_ != 0) { + setSearchTierValue(other.getSearchTierValue()); + } + if (other.requiredSubscriptionTier_ != 0) { + setRequiredSubscriptionTierValue(other.getRequiredSubscriptionTierValue()); + } + if (!other.searchAddOns_.isEmpty()) { + if (searchAddOns_.isEmpty()) { + searchAddOns_ = other.searchAddOns_; + searchAddOns_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureSearchAddOnsIsMutable(); + searchAddOns_.addAll(other.searchAddOns_); } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - return this; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @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: - { - targetField_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - targetFieldValueFloat_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - 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 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: + { + searchTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureSearchAddOnsIsMutable(); + searchAddOns_.addInt(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSearchAddOnsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + searchAddOns_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: + { + requiredSubscriptionTier_ = input.readEnum(); + bitField0_ |= 0x00000002; + 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 int bitField0_; - private java.lang.Object targetField_ = ""; + private int searchTier_ = 0; - /** - * - * - *
-         * Required. The name of the field to target. Currently supported
-         * values: `watch-percentage`, `watch-time`.
-         * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The targetField. - */ - public java.lang.String getTargetField() { - java.lang.Object ref = targetField_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetField_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
+       * The search feature tier of this engine.
+       *
+       * Different tiers might have different
+       * pricing. To learn more, check the pricing documentation.
+       *
+       * Defaults to
+       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+       * if not specified.
+       * 
+ * + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; + * + * @return The enum numeric value on the wire for searchTier. + */ + @java.lang.Override + public int getSearchTierValue() { + return searchTier_; + } - /** - * - * - *
-         * Required. The name of the field to target. Currently supported
-         * values: `watch-percentage`, `watch-time`.
-         * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for targetField. - */ - public com.google.protobuf.ByteString getTargetFieldBytes() { - java.lang.Object ref = targetField_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetField_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+       * The search feature tier of this engine.
+       *
+       * Different tiers might have different
+       * pricing. To learn more, check the pricing documentation.
+       *
+       * Defaults to
+       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+       * if not specified.
+       * 
+ * + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; + * + * @param value The enum numeric value on the wire for searchTier to set. + * @return This builder for chaining. + */ + public Builder setSearchTierValue(int value) { + searchTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The name of the field to target. Currently supported
-         * values: `watch-percentage`, `watch-time`.
-         * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The targetField to set. - * @return This builder for chaining. - */ - public Builder setTargetField(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetField_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
+       * The search feature tier of this engine.
+       *
+       * Different tiers might have different
+       * pricing. To learn more, check the pricing documentation.
+       *
+       * Defaults to
+       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+       * if not specified.
+       * 
+ * + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; + * + * @return The searchTier. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SearchTier getSearchTier() { + com.google.cloud.discoveryengine.v1.SearchTier result = + com.google.cloud.discoveryengine.v1.SearchTier.forNumber(searchTier_); + return result == null + ? com.google.cloud.discoveryengine.v1.SearchTier.UNRECOGNIZED + : result; + } - /** - * - * - *
-         * Required. The name of the field to target. Currently supported
-         * values: `watch-percentage`, `watch-time`.
-         * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTargetField() { - targetField_ = getDefaultInstance().getTargetField(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-         * Required. The name of the field to target. Currently supported
-         * values: `watch-percentage`, `watch-time`.
-         * 
- * - * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for targetField to set. - * @return This builder for chaining. - */ - public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetField_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private float targetFieldValueFloat_; - - /** - * - * - *
-         * Required. The threshold to be applied to the target (e.g., 0.5).
-         * 
- * - * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The targetFieldValueFloat. - */ - @java.lang.Override - public float getTargetFieldValueFloat() { - return targetFieldValueFloat_; - } - - /** - * - * - *
-         * Required. The threshold to be applied to the target (e.g., 0.5).
-         * 
- * - * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The targetFieldValueFloat to set. - * @return This builder for chaining. - */ - public Builder setTargetFieldValueFloat(float value) { - - targetFieldValueFloat_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-         * Required. The threshold to be applied to the target (e.g., 0.5).
-         * 
- * - * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearTargetFieldValueFloat() { - bitField0_ = (bitField0_ & ~0x00000002); - targetFieldValueFloat_ = 0F; - onChanged(); - return this; + /** + * + * + *
+       * The search feature tier of this engine.
+       *
+       * Different tiers might have different
+       * pricing. To learn more, check the pricing documentation.
+       *
+       * Defaults to
+       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+       * if not specified.
+       * 
+ * + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; + * + * @param value The searchTier to set. + * @return This builder for chaining. + */ + public Builder setSearchTier(com.google.cloud.discoveryengine.v1.SearchTier value) { + if (value == null) { + throw new NullPointerException(); } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) - private static final com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfig.OptimizationObjectiveConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig(); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizationObjectiveConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + bitField0_ |= 0x00000001; + searchTier_ = value.getNumber(); + onChanged(); + return this; } - } - - public interface EngineFeaturesConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) - com.google.protobuf.MessageOrBuilder { /** * * *
-       * Recommended for you engine feature config.
+       * The search feature tier of this engine.
+       *
+       * Different tiers might have different
+       * pricing. To learn more, check the pricing documentation.
+       *
+       * Defaults to
+       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
+       * if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * + * .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; * - * @return Whether the recommendedForYouConfig field is set. + * @return This builder for chaining. */ - boolean hasRecommendedForYouConfig(); + public Builder clearSearchTier() { + bitField0_ = (bitField0_ & ~0x00000001); + searchTier_ = 0; + onChanged(); + return this; + } + + private int requiredSubscriptionTier_ = 0; /** * * *
-       * Recommended for you engine feature config.
+       * Optional. The required subscription tier of this engine.
+       *
+       * If the required subscription tier is search, user with higher license
+       * tier like assist can still access the standalone app associated with this
+       * engine.
+       *
+       * Web grounding feature is only available on the app if it is set as
+       * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
        * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The recommendedForYouConfig. + * @return The enum numeric value on the wire for requiredSubscriptionTier. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - getRecommendedForYouConfig(); + @java.lang.Override + public int getRequiredSubscriptionTierValue() { + return requiredSubscriptionTier_; + } /** * * *
-       * Recommended for you engine feature config.
+       * Optional. The required subscription tier of this engine.
+       *
+       * If the required subscription tier is search, user with higher license
+       * tier like assist can still access the standalone app associated with this
+       * engine.
+       *
+       * Web grounding feature is only available on the app if it is set as
+       * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
        * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for requiredSubscriptionTier to set. + * @return This builder for chaining. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder - getRecommendedForYouConfigOrBuilder(); + public Builder setRequiredSubscriptionTierValue(int value) { + requiredSubscriptionTier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } /** * * *
-       * Most popular engine feature config.
+       * Optional. The required subscription tier of this engine.
+       *
+       * If the required subscription tier is search, user with higher license
+       * tier like assist can still access the standalone app associated with this
+       * engine.
+       *
+       * Web grounding feature is only available on the app if it is set as
+       * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
        * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the mostPopularConfig field is set. + * @return The requiredSubscriptionTier. */ - boolean hasMostPopularConfig(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SubscriptionTier getRequiredSubscriptionTier() { + com.google.cloud.discoveryengine.v1.SubscriptionTier result = + com.google.cloud.discoveryengine.v1.SubscriptionTier.forNumber( + requiredSubscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1.SubscriptionTier.UNRECOGNIZED + : result; + } /** * * *
-       * Most popular engine feature config.
+       * Optional. The required subscription tier of this engine.
+       *
+       * If the required subscription tier is search, user with higher license
+       * tier like assist can still access the standalone app associated with this
+       * engine.
+       *
+       * Web grounding feature is only available on the app if it is set as
+       * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
        * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The mostPopularConfig. + * @param value The requiredSubscriptionTier to set. + * @return This builder for chaining. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - getMostPopularConfig(); + public Builder setRequiredSubscriptionTier( + com.google.cloud.discoveryengine.v1.SubscriptionTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + requiredSubscriptionTier_ = value.getNumber(); + onChanged(); + return this; + } /** * * *
-       * Most popular engine feature config.
+       * Optional. The required subscription tier of this engine.
+       *
+       * If the required subscription tier is search, user with higher license
+       * tier like assist can still access the standalone app associated with this
+       * engine.
+       *
+       * Web grounding feature is only available on the app if it is set as
+       * [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT].
        * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * .google.cloud.discoveryengine.v1.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder - getMostPopularConfigOrBuilder(); - - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.TypeDedicatedConfigCase - getTypeDedicatedConfigCase(); - } - - /** - * - * - *
-     * More feature configs of the selected engine type.
-     * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig} - */ - public static final class EngineFeaturesConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) - EngineFeaturesConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EngineFeaturesConfig"); - } - - // Use EngineFeaturesConfig.newBuilder() to construct. - private EngineFeaturesConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EngineFeaturesConfig() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder.class); + public Builder clearRequiredSubscriptionTier() { + bitField0_ = (bitField0_ & ~0x00000002); + requiredSubscriptionTier_ = 0; + onChanged(); + return this; } - private int typeDedicatedConfigCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeDedicatedConfig_; - - public enum TypeDedicatedConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - RECOMMENDED_FOR_YOU_CONFIG(1), - MOST_POPULAR_CONFIG(2), - TYPEDEDICATEDCONFIG_NOT_SET(0); - private final int value; - - private TypeDedicatedConfigCase(int value) { - this.value = value; - } - - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeDedicatedConfigCase valueOf(int value) { - return forNumber(value); - } - - public static TypeDedicatedConfigCase forNumber(int value) { - switch (value) { - case 1: - return RECOMMENDED_FOR_YOU_CONFIG; - case 2: - return MOST_POPULAR_CONFIG; - case 0: - return TYPEDEDICATEDCONFIG_NOT_SET; - default: - return null; - } - } + private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); - public int getNumber() { - return this.value; + private void ensureSearchAddOnsIsMutable() { + if (!searchAddOns_.isModifiable()) { + searchAddOns_ = makeMutableCopy(searchAddOns_); } - }; - - public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { - return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + bitField0_ |= 0x00000004; } - public static final int RECOMMENDED_FOR_YOU_CONFIG_FIELD_NUMBER = 1; - /** * * *
-       * Recommended for you engine feature config.
+       * The add-on that this search engine enables.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return Whether the recommendedForYouConfig field is set. + * @return A list containing the searchAddOns. */ - @java.lang.Override - public boolean hasRecommendedForYouConfig() { - return typeDedicatedConfigCase_ == 1; + public java.util.List getSearchAddOnsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.SearchAddOn>( + searchAddOns_, searchAddOns_converter_); } /** * * *
-       * Recommended for you engine feature config.
+       * The add-on that this search engine enables.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return The recommendedForYouConfig. + * @return The count of searchAddOns. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - getRecommendedForYouConfig() { - if (typeDedicatedConfigCase_ == 1) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); + public int getSearchAddOnsCount() { + return searchAddOns_.size(); } /** * * *
-       * Recommended for you engine feature config.
+       * The add-on that this search engine enables.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param index The index of the element to return. + * @return The searchAddOns at the given index. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder - getRecommendedForYouConfigOrBuilder() { - if (typeDedicatedConfigCase_ == 1) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SearchAddOn getSearchAddOns(int index) { + return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); } - public static final int MOST_POPULAR_CONFIG_FIELD_NUMBER = 2; - /** * * *
-       * Most popular engine feature config.
+       * The add-on that this search engine enables.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return Whether the mostPopularConfig field is set. + * @param index The index to set the value at. + * @param value The searchAddOns to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasMostPopularConfig() { - return typeDedicatedConfigCase_ == 2; + public Builder setSearchAddOns( + int index, com.google.cloud.discoveryengine.v1.SearchAddOn value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchAddOnsIsMutable(); + searchAddOns_.setInt(index, value.getNumber()); + onChanged(); + return this; } /** * * *
-       * Most popular engine feature config.
+       * The add-on that this search engine enables.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; * - * @return The mostPopularConfig. + * @param value The searchAddOns to add. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - getMostPopularConfig() { - if (typeDedicatedConfigCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_; + public Builder addSearchAddOns(com.google.cloud.discoveryengine.v1.SearchAddOn value) { + if (value == null) { + throw new NullPointerException(); } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); + ensureSearchAddOnsIsMutable(); + searchAddOns_.addInt(value.getNumber()); + onChanged(); + return this; } /** * * *
-       * Most popular engine feature config.
+       * The add-on that this search engine enables.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param values The searchAddOns to add. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder - getMostPopularConfigOrBuilder() { - if (typeDedicatedConfigCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_; + public Builder addAllSearchAddOns( + java.lang.Iterable values) { + ensureSearchAddOnsIsMutable(); + for (com.google.cloud.discoveryengine.v1.SearchAddOn value : values) { + searchAddOns_.addInt(value.getNumber()); } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); + onChanged(); + return this; } - 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; + /** + * + * + *
+       * The add-on that this search engine enables.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @return This builder for chaining. + */ + public Builder clearSearchAddOns() { + searchAddOns_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (typeDedicatedConfigCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_); - } - if (typeDedicatedConfigCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_); - } - getUnknownFields().writeTo(output); + /** + * + * + *
+       * The add-on that this search engine enables.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @return A list containing the enum numeric values on the wire for searchAddOns. + */ + public java.util.List getSearchAddOnsValueList() { + searchAddOns_.makeImmutable(); + return searchAddOns_; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeDedicatedConfigCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_); - } - if (typeDedicatedConfigCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+       * The add-on that this search engine enables.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of searchAddOns at the given index. + */ + public int getSearchAddOnsValue(int index) { + return searchAddOns_.getInt(index); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - other = - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig) - obj; + /** + * + * + *
+       * The add-on that this search engine enables.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for searchAddOns to set. + * @return This builder for chaining. + */ + public Builder setSearchAddOnsValue(int index, int value) { + ensureSearchAddOnsIsMutable(); + searchAddOns_.setInt(index, value); + onChanged(); + return this; + } - if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; - switch (typeDedicatedConfigCase_) { - case 1: - if (!getRecommendedForYouConfig().equals(other.getRecommendedForYouConfig())) - return false; - break; - case 2: - if (!getMostPopularConfig().equals(other.getMostPopularConfig())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
+       * The add-on that this search engine enables.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param value The enum numeric value on the wire for searchAddOns to add. + * @return This builder for chaining. + */ + public Builder addSearchAddOnsValue(int value) { + ensureSearchAddOnsIsMutable(); + searchAddOns_.addInt(value); + onChanged(); + return this; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (typeDedicatedConfigCase_) { - case 1: - hash = (37 * hash) + RECOMMENDED_FOR_YOU_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRecommendedForYouConfig().hashCode(); - break; - case 2: - hash = (37 * hash) + MOST_POPULAR_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMostPopularConfig().hashCode(); - break; - case 0: - default: + /** + * + * + *
+       * The add-on that this search engine enables.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; + * + * @param values The enum numeric values on the wire for searchAddOns to add. + * @return This builder for chaining. + */ + public Builder addAllSearchAddOnsValue(java.lang.Iterable values) { + ensureSearchAddOnsIsMutable(); + for (int value : values) { + searchAddOns_.addInt(value); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig + DEFAULT_INSTANCE; - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig(); + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom( - com.google.protobuf.ByteString data, + public static com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEngineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + 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.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public interface MediaRecommendationEngineConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * Required. The type of engine. e.g., `recommended-for-you`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+     * `more-like-this`, `most-popular-items`.
+     * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + java.lang.String getType(); - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * Required. The type of engine. e.g., `recommended-for-you`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+     * `more-like-this`, `most-popular-items`.
+     * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
+     * The optimization objective. e.g., `cvr`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported
+     * values: `ctr`, `cvr`.
+     *
+     * If not specified, we choose default based on engine type.
+     * Default depends on type of recommendation:
+     *
+     * `recommended-for-you` => `ctr`
+     *
+     * `others-you-may-like` => `ctr`
+     * 
+ * + * string optimization_objective = 2; + * + * @return The optimizationObjective. + */ + java.lang.String getOptimizationObjective(); - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+     * The optimization objective. e.g., `cvr`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported
+     * values: `ctr`, `cvr`.
+     *
+     * If not specified, we choose default based on engine type.
+     * Default depends on type of recommendation:
+     *
+     * `recommended-for-you` => `ctr`
+     *
+     * `others-you-may-like` => `ctr`
+     * 
+ * + * string optimization_objective = 2; + * + * @return The bytes for optimizationObjective. + */ + com.google.protobuf.ByteString getOptimizationObjectiveBytes(); - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+     * Name and value of the custom threshold for cvr optimization_objective.
+     * For target_field `watch-time`, target_field_value must be an integer
+     * value indicating the media progress time in seconds between (0, 86400]
+     * (excludes 0, includes 86400) (e.g., 90).
+     * For target_field `watch-percentage`, the target_field_value must be a
+     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+     * 0.5).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return Whether the optimizationObjectiveConfig field is set. + */ + boolean hasOptimizationObjectiveConfig(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+     * Name and value of the custom threshold for cvr optimization_objective.
+     * For target_field `watch-time`, target_field_value must be an integer
+     * value indicating the media progress time in seconds between (0, 86400]
+     * (excludes 0, includes 86400) (e.g., 90).
+     * For target_field `watch-percentage`, the target_field_value must be a
+     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+     * 0.5).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return The optimizationObjectiveConfig. + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getOptimizationObjectiveConfig(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+     * Name and value of the custom threshold for cvr optimization_objective.
+     * For target_field `watch-time`, target_field_value must be an integer
+     * value indicating the media progress time in seconds between (0, 86400]
+     * (excludes 0, includes 86400) (e.g., 90).
+     * For target_field `watch-percentage`, the target_field_value must be a
+     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+     * 0.5).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder + getOptimizationObjectiveConfigOrBuilder(); - /** - * - * - *
-       * More feature configs of the selected engine type.
-       * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder.class); - } + /** + * + * + *
+     * The training state that the engine is in (e.g.
+     * `TRAINING` or `PAUSED`).
+     *
+     * Since part of the cost of running the service
+     * is frequency of training - this can be used to determine when to train
+     * engine in order to control cost. If not specified: the default value for
+     * `CreateEngine` method is `TRAINING`. The default value for
+     * `UpdateEngine` method is to keep the state the same as before.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The enum numeric value on the wire for trainingState. + */ + int getTrainingStateValue(); - // Construct using - // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig.newBuilder() - private Builder() {} + /** + * + * + *
+     * The training state that the engine is in (e.g.
+     * `TRAINING` or `PAUSED`).
+     *
+     * Since part of the cost of running the service
+     * is frequency of training - this can be used to determine when to train
+     * engine in order to control cost. If not specified: the default value for
+     * `CreateEngine` method is `TRAINING`. The default value for
+     * `UpdateEngine` method is to keep the state the same as before.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The trainingState. + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState + getTrainingState(); - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+     * Optional. Additional engine features config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineFeaturesConfig field is set. + */ + boolean hasEngineFeaturesConfig(); - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (recommendedForYouConfigBuilder_ != null) { - recommendedForYouConfigBuilder_.clear(); - } - if (mostPopularConfigBuilder_ != null) { - mostPopularConfigBuilder_.clear(); - } - typeDedicatedConfigCase_ = 0; - typeDedicatedConfig_ = null; - return this; - } + /** + * + * + *
+     * Optional. Additional engine features config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineFeaturesConfig. + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig + getEngineFeaturesConfig(); - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; - } + /** + * + * + *
+     * Optional. Additional engine features config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder + getEngineFeaturesConfigOrBuilder(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance(); - } + /** + * + * + *
+   * Additional config specs for a Media Recommendation engine.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig} + */ + public static final class MediaRecommendationEngineConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + MediaRecommendationEngineConfigOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - build() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MediaRecommendationEngineConfig"); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - result = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } + // Use MediaRecommendationEngineConfig.newBuilder() to construct. + private MediaRecommendationEngineConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - result) { - int from_bitField0_ = bitField0_; - } + private MediaRecommendationEngineConfig() { + type_ = ""; + optimizationObjective_ = ""; + trainingState_ = 0; + } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - result) { - result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; - result.typeDedicatedConfig_ = this.typeDedicatedConfig_; - if (typeDedicatedConfigCase_ == 1 && recommendedForYouConfigBuilder_ != null) { - result.typeDedicatedConfig_ = recommendedForYouConfigBuilder_.build(); - } - if (typeDedicatedConfigCase_ == 2 && mostPopularConfigBuilder_ != null) { - result.typeDedicatedConfig_ = mostPopularConfigBuilder_.build(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder + .class); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance()) return this; - switch (other.getTypeDedicatedConfigCase()) { - case RECOMMENDED_FOR_YOU_CONFIG: - { - mergeRecommendedForYouConfig(other.getRecommendedForYouConfig()); - break; - } - case MOST_POPULAR_CONFIG: - { - mergeMostPopularConfig(other.getMostPopularConfig()); - break; - } - case TYPEDEDICATEDCONFIG_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
+     * The training state of the engine.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState} + */ + public enum TrainingState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified training state.
+       * 
+ * + * TRAINING_STATE_UNSPECIFIED = 0; + */ + TRAINING_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * The engine training is paused.
+       * 
+ * + * PAUSED = 1; + */ + PAUSED(1), + /** + * + * + *
+       * The engine is training.
+       * 
+ * + * TRAINING = 2; + */ + TRAINING(2), + UNRECOGNIZED(-1), + ; - @java.lang.Override - public final boolean isInitialized() { - return true; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TrainingState"); + } - @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( - internalGetRecommendedForYouConfigFieldBuilder().getBuilder(), - extensionRegistry); - typeDedicatedConfigCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetMostPopularConfigFieldBuilder().getBuilder(), extensionRegistry); - typeDedicatedConfigCase_ = 2; - 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; + /** + * + * + *
+       * Unspecified training state.
+       * 
+ * + * TRAINING_STATE_UNSPECIFIED = 0; + */ + public static final int TRAINING_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The engine training is paused.
+       * 
+ * + * PAUSED = 1; + */ + public static final int PAUSED_VALUE = 1; + + /** + * + * + *
+       * The engine is training.
+       * 
+ * + * TRAINING = 2; + */ + public static final int TRAINING_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; + } - private int typeDedicatedConfigCase_ = 0; - private java.lang.Object typeDedicatedConfig_; + /** + * @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 TrainingState valueOf(int value) { + return forNumber(value); + } - public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { - return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TrainingState forNumber(int value) { + switch (value) { + case 0: + return TRAINING_STATE_UNSPECIFIED; + case 1: + return PAUSED; + case 2: + return TRAINING; + default: + return null; } + } - public Builder clearTypeDedicatedConfig() { - typeDedicatedConfigCase_ = 0; - typeDedicatedConfig_ = null; - onChanged(); - return this; + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrainingState findValueByNumber(int number) { + return TrainingState.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()); + } - private int bitField0_; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder> - recommendedForYouConfigBuilder_; + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - * - * @return Whether the recommendedForYouConfig field is set. - */ - @java.lang.Override - public boolean hasRecommendedForYouConfig() { - return typeDedicatedConfigCase_ == 1; + private static final TrainingState[] VALUES = values(); + + public static TrainingState 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()]; + } - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - * - * @return The recommendedForYouConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - getRecommendedForYouConfig() { - if (recommendedForYouConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 1) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); - } else { - if (typeDedicatedConfigCase_ == 1) { - return recommendedForYouConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); - } - } + private final int value; - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - public Builder setRecommendedForYouConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - value) { - if (recommendedForYouConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeDedicatedConfig_ = value; - onChanged(); - } else { - recommendedForYouConfigBuilder_.setMessage(value); - } - typeDedicatedConfigCase_ = 1; - return this; - } + private TrainingState(int value) { + this.value = value; + } - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - public Builder setRecommendedForYouConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder - builderForValue) { - if (recommendedForYouConfigBuilder_ == null) { - typeDedicatedConfig_ = builderForValue.build(); - onChanged(); - } else { - recommendedForYouConfigBuilder_.setMessage(builderForValue.build()); - } - typeDedicatedConfigCase_ = 1; - return this; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState) + } - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - public Builder mergeRecommendedForYouConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - value) { - if (recommendedForYouConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 1 - && typeDedicatedConfig_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance()) { - typeDedicatedConfig_ = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.newBuilder( - (com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) - typeDedicatedConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - typeDedicatedConfig_ = value; - } - onChanged(); - } else { - if (typeDedicatedConfigCase_ == 1) { - recommendedForYouConfigBuilder_.mergeFrom(value); - } else { - recommendedForYouConfigBuilder_.setMessage(value); - } - } - typeDedicatedConfigCase_ = 1; - return this; - } + public interface OptimizationObjectiveConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - public Builder clearRecommendedForYouConfig() { - if (recommendedForYouConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 1) { - typeDedicatedConfigCase_ = 0; - typeDedicatedConfig_ = null; - onChanged(); - } - } else { - if (typeDedicatedConfigCase_ == 1) { - typeDedicatedConfigCase_ = 0; - typeDedicatedConfig_ = null; - } - recommendedForYouConfigBuilder_.clear(); - } - return this; - } + /** + * + * + *
+       * Required. The name of the field to target. Currently supported
+       * values: `watch-percentage`, `watch-time`.
+       * 
+ * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetField. + */ + java.lang.String getTargetField(); - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder - getRecommendedForYouConfigBuilder() { - return internalGetRecommendedForYouConfigFieldBuilder().getBuilder(); - } + /** + * + * + *
+       * Required. The name of the field to target. Currently supported
+       * values: `watch-percentage`, `watch-time`.
+       * 
+ * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetField. + */ + com.google.protobuf.ByteString getTargetFieldBytes(); - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder - getRecommendedForYouConfigOrBuilder() { - if ((typeDedicatedConfigCase_ == 1) && (recommendedForYouConfigBuilder_ != null)) { - return recommendedForYouConfigBuilder_.getMessageOrBuilder(); - } else { - if (typeDedicatedConfigCase_ == 1) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); - } - } + /** + * + * + *
+       * Required. The threshold to be applied to the target (e.g., 0.5).
+       * 
+ * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetFieldValueFloat. + */ + float getTargetFieldValueFloat(); + } - /** - * - * - *
-         * Recommended for you engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder> - internalGetRecommendedForYouConfigFieldBuilder() { - if (recommendedForYouConfigBuilder_ == null) { - if (!(typeDedicatedConfigCase_ == 1)) { - typeDedicatedConfig_ = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); - } - recommendedForYouConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - typeDedicatedConfig_, - getParentForChildren(), - isClean()); - typeDedicatedConfig_ = null; - } - typeDedicatedConfigCase_ = 1; - onChanged(); - return recommendedForYouConfigBuilder_; - } + /** + * + * + *
+     * Custom threshold for `cvr` optimization_objective.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig} + */ + public static final class OptimizationObjectiveConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + OptimizationObjectiveConfigOrBuilder { + private static final long serialVersionUID = 0L; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig, + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OptimizationObjectiveConfig"); + } + + // Use OptimizationObjectiveConfig.newBuilder() to construct. + private OptimizationObjectiveConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OptimizationObjectiveConfig() { + targetField_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder, + .OptimizationObjectiveConfig.class, com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder> - mostPopularConfigBuilder_; + .OptimizationObjectiveConfig.Builder.class); + } - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - * - * @return Whether the mostPopularConfig field is set. - */ - @java.lang.Override - public boolean hasMostPopularConfig() { - return typeDedicatedConfigCase_ == 2; - } + public static final int TARGET_FIELD_FIELD_NUMBER = 1; - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - * - * @return The mostPopularConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - getMostPopularConfig() { - if (mostPopularConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); - } else { - if (typeDedicatedConfigCase_ == 2) { - return mostPopularConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); - } - } + @SuppressWarnings("serial") + private volatile java.lang.Object targetField_ = ""; - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - public Builder setMostPopularConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - value) { - if (mostPopularConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeDedicatedConfig_ = value; - onChanged(); - } else { - mostPopularConfigBuilder_.setMessage(value); - } - typeDedicatedConfigCase_ = 2; - return this; + /** + * + * + *
+       * Required. The name of the field to target. Currently supported
+       * values: `watch-percentage`, `watch-time`.
+       * 
+ * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetField. + */ + @java.lang.Override + public java.lang.String getTargetField() { + java.lang.Object ref = targetField_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetField_ = s; + return s; } + } - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - public Builder setMostPopularConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder - builderForValue) { - if (mostPopularConfigBuilder_ == null) { - typeDedicatedConfig_ = builderForValue.build(); - onChanged(); - } else { - mostPopularConfigBuilder_.setMessage(builderForValue.build()); - } - typeDedicatedConfigCase_ = 2; - return this; + /** + * + * + *
+       * Required. The name of the field to target. Currently supported
+       * values: `watch-percentage`, `watch-time`.
+       * 
+ * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetFieldBytes() { + java.lang.Object ref = targetField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - public Builder mergeMostPopularConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - value) { - if (mostPopularConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 2 - && typeDedicatedConfig_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance()) { - typeDedicatedConfig_ = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.newBuilder( - (com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfig.MostPopularFeatureConfig) - typeDedicatedConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - typeDedicatedConfig_ = value; - } - onChanged(); - } else { - if (typeDedicatedConfigCase_ == 2) { - mostPopularConfigBuilder_.mergeFrom(value); - } else { - mostPopularConfigBuilder_.setMessage(value); - } - } - typeDedicatedConfigCase_ = 2; - return this; - } + public static final int TARGET_FIELD_VALUE_FLOAT_FIELD_NUMBER = 2; + private float targetFieldValueFloat_ = 0F; - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - public Builder clearMostPopularConfig() { - if (mostPopularConfigBuilder_ == null) { - if (typeDedicatedConfigCase_ == 2) { - typeDedicatedConfigCase_ = 0; - typeDedicatedConfig_ = null; - onChanged(); - } - } else { - if (typeDedicatedConfigCase_ == 2) { - typeDedicatedConfigCase_ = 0; - typeDedicatedConfig_ = null; - } - mostPopularConfigBuilder_.clear(); - } - return this; + /** + * + * + *
+       * Required. The threshold to be applied to the target (e.g., 0.5).
+       * 
+ * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetFieldValueFloat. + */ + @java.lang.Override + public float getTargetFieldValueFloat() { + return targetFieldValueFloat_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetField_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, targetField_); } + if (java.lang.Float.floatToRawIntBits(targetFieldValueFloat_) != 0) { + output.writeFloat(2, targetFieldValueFloat_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder - getMostPopularConfigBuilder() { - return internalGetMostPopularConfigFieldBuilder().getBuilder(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetField_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetField_); } + if (java.lang.Float.floatToRawIntBits(targetFieldValueFloat_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, targetFieldValueFloat_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder - getMostPopularConfigOrBuilder() { - if ((typeDedicatedConfigCase_ == 2) && (mostPopularConfigBuilder_ != null)) { - return mostPopularConfigBuilder_.getMessageOrBuilder(); - } else { - if (typeDedicatedConfigCase_ == 2) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + other = + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig) + obj; - /** - * - * - *
-         * Most popular engine feature config.
-         * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder> - internalGetMostPopularConfigFieldBuilder() { - if (mostPopularConfigBuilder_ == null) { - if (!(typeDedicatedConfigCase_ == 2)) { - typeDedicatedConfig_ = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); - } - mostPopularConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - typeDedicatedConfig_, - getParentForChildren(), - isClean()); - typeDedicatedConfig_ = null; - } - typeDedicatedConfigCase_ = 2; - onChanged(); - return mostPopularConfigBuilder_; + if (!getTargetField().equals(other.getTargetField())) return false; + if (java.lang.Float.floatToIntBits(getTargetFieldValueFloat()) + != java.lang.Float.floatToIntBits(other.getTargetFieldValueFloat())) 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) + TARGET_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getTargetField().hashCode(); + hash = (37 * hash) + TARGET_FIELD_VALUE_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTargetFieldValueFloat()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) - private static final com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfig.EngineFeaturesConfig - DEFAULT_INSTANCE; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig(); + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; + .OptimizationObjectiveConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EngineFeaturesConfig 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; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - public interface RecommendedForYouFeatureConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) - com.google.protobuf.MessageOrBuilder { + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-       * The type of event with which the engine is queried at prediction time.
-       * If set to `generic`, only `view-item`, `media-play`,and
-       * `media-complete` will be used as `context-event` in engine training. If
-       * set to `view-home-page`, `view-home-page` will also be used as
-       * `context-events` in addition to `view-item`, `media-play`, and
-       * `media-complete`. Currently supported for the `recommended-for-you`
-       * engine. Currently supported values: `view-home-page`, `generic`.
-       * 
- * - * string context_event_type = 1; - * - * @return The contextEventType. - */ - java.lang.String getContextEventType(); + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
-       * The type of event with which the engine is queried at prediction time.
-       * If set to `generic`, only `view-item`, `media-play`,and
-       * `media-complete` will be used as `context-event` in engine training. If
-       * set to `view-home-page`, `view-home-page` will also be used as
-       * `context-events` in addition to `view-item`, `media-play`, and
-       * `media-complete`. Currently supported for the `recommended-for-you`
-       * engine. Currently supported values: `view-home-page`, `generic`.
-       * 
- * - * string context_event_type = 1; - * - * @return The bytes for contextEventType. - */ - com.google.protobuf.ByteString getContextEventTypeBytes(); - } + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-     * Additional feature configurations for creating a `recommended-for-you`
-     * engine.
-     * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig} - */ - public static final class RecommendedForYouFeatureConfig - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) - RecommendedForYouFeatureConfigOrBuilder { - private static final long serialVersionUID = 0L; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RecommendedForYouFeatureConfig"); + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - // Use RecommendedForYouFeatureConfig.newBuilder() to construct. - private RecommendedForYouFeatureConfig( - com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - private RecommendedForYouFeatureConfig() { - contextEventType_ = ""; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder.class); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - public static final int CONTEXT_EVENT_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object contextEventType_ = ""; - - /** - * - * - *
-       * The type of event with which the engine is queried at prediction time.
-       * If set to `generic`, only `view-item`, `media-play`,and
-       * `media-complete` will be used as `context-event` in engine training. If
-       * set to `view-home-page`, `view-home-page` will also be used as
-       * `context-events` in addition to `view-item`, `media-play`, and
-       * `media-complete`. Currently supported for the `recommended-for-you`
-       * engine. Currently supported values: `view-home-page`, `generic`.
-       * 
- * - * string context_event_type = 1; - * - * @return The contextEventType. - */ @java.lang.Override - public java.lang.String getContextEventType() { - java.lang.Object ref = contextEventType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextEventType_ = s; - return s; - } + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-       * The type of event with which the engine is queried at prediction time.
-       * If set to `generic`, only `view-item`, `media-play`,and
-       * `media-complete` will be used as `context-event` in engine training. If
-       * set to `view-home-page`, `view-home-page` will also be used as
-       * `context-events` in addition to `view-item`, `media-play`, and
-       * `media-complete`. Currently supported for the `recommended-for-you`
-       * engine. Currently supported values: `view-home-page`, `generic`.
+       * Custom threshold for `cvr` optimization_objective.
        * 
* - * string context_event_type = 1; - * - * @return The bytes for contextEventType. + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig} */ - @java.lang.Override - public com.google.protobuf.ByteString getContextEventTypeBytes() { - java.lang.Object ref = contextEventType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextEventType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextEventType_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, contextEventType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextEventType_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextEventType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - other = - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) - obj; - - if (!getContextEventType().equals(other.getContextEventType())) 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) + CONTEXT_EVENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getContextEventType().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-       * Additional feature configurations for creating a `recommended-for-you`
-       * engine.
-       * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.class, + .OptimizationObjectiveConfig.class, com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.Builder.class); + .OptimizationObjectiveConfig.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.newBuilder() + // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -4304,30 +3254,31 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - contextEventType_ = ""; + targetField_ = ""; + targetFieldValueFloat_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; } @java.lang.Override public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance(); + .OptimizationObjectiveConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig build() { com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -4337,13 +3288,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig buildPartial() { com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig result = new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig(this); + .OptimizationObjectiveConfig(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -4353,11 +3304,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { private void buildPartial0( com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.contextEventType_ = contextEventType_; + result.targetField_ = targetField_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetFieldValueFloat_ = targetFieldValueFloat_; } } @@ -4366,10 +3320,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) { + .OptimizationObjectiveConfig) { return mergeFrom( (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig) + .OptimizationObjectiveConfig) other); } else { super.mergeFrom(other); @@ -4379,16 +3333,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom( com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig other) { if (other == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig.getDefaultInstance()) return this; - if (!other.getContextEventType().isEmpty()) { - contextEventType_ = other.contextEventType_; + .OptimizationObjectiveConfig.getDefaultInstance()) return this; + if (!other.getTargetField().isEmpty()) { + targetField_ = other.targetField_; bitField0_ |= 0x00000001; onChanged(); } + if (java.lang.Float.floatToRawIntBits(other.getTargetFieldValueFloat()) != 0) { + setTargetFieldValueFloat(other.getTargetFieldValueFloat()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4417,10 +3374,16 @@ public Builder mergeFrom( break; case 10: { - contextEventType_ = input.readStringRequireUtf8(); + targetField_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 + case 21: + { + targetFieldValueFloat_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4440,31 +3403,26 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object contextEventType_ = ""; + private java.lang.Object targetField_ = ""; /** * * *
-         * The type of event with which the engine is queried at prediction time.
-         * If set to `generic`, only `view-item`, `media-play`,and
-         * `media-complete` will be used as `context-event` in engine training. If
-         * set to `view-home-page`, `view-home-page` will also be used as
-         * `context-events` in addition to `view-item`, `media-play`, and
-         * `media-complete`. Currently supported for the `recommended-for-you`
-         * engine. Currently supported values: `view-home-page`, `generic`.
+         * Required. The name of the field to target. Currently supported
+         * values: `watch-percentage`, `watch-time`.
          * 
* - * string context_event_type = 1; + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The contextEventType. + * @return The targetField. */ - public java.lang.String getContextEventType() { - java.lang.Object ref = contextEventType_; + public java.lang.String getTargetField() { + java.lang.Object ref = targetField_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - contextEventType_ = s; + targetField_ = s; return s; } else { return (java.lang.String) ref; @@ -4475,25 +3433,20 @@ public java.lang.String getContextEventType() { * * *
-         * The type of event with which the engine is queried at prediction time.
-         * If set to `generic`, only `view-item`, `media-play`,and
-         * `media-complete` will be used as `context-event` in engine training. If
-         * set to `view-home-page`, `view-home-page` will also be used as
-         * `context-events` in addition to `view-item`, `media-play`, and
-         * `media-complete`. Currently supported for the `recommended-for-you`
-         * engine. Currently supported values: `view-home-page`, `generic`.
+         * Required. The name of the field to target. Currently supported
+         * values: `watch-percentage`, `watch-time`.
          * 
* - * string context_event_type = 1; + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for contextEventType. + * @return The bytes for targetField. */ - public com.google.protobuf.ByteString getContextEventTypeBytes() { - java.lang.Object ref = contextEventType_; + public com.google.protobuf.ByteString getTargetFieldBytes() { + java.lang.Object ref = targetField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextEventType_ = b; + targetField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4504,25 +3457,20 @@ public com.google.protobuf.ByteString getContextEventTypeBytes() { * * *
-         * The type of event with which the engine is queried at prediction time.
-         * If set to `generic`, only `view-item`, `media-play`,and
-         * `media-complete` will be used as `context-event` in engine training. If
-         * set to `view-home-page`, `view-home-page` will also be used as
-         * `context-events` in addition to `view-item`, `media-play`, and
-         * `media-complete`. Currently supported for the `recommended-for-you`
-         * engine. Currently supported values: `view-home-page`, `generic`.
+         * Required. The name of the field to target. Currently supported
+         * values: `watch-percentage`, `watch-time`.
          * 
* - * string context_event_type = 1; + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The contextEventType to set. + * @param value The targetField to set. * @return This builder for chaining. */ - public Builder setContextEventType(java.lang.String value) { + public Builder setTargetField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - contextEventType_ = value; + targetField_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -4532,21 +3480,16 @@ public Builder setContextEventType(java.lang.String value) { * * *
-         * The type of event with which the engine is queried at prediction time.
-         * If set to `generic`, only `view-item`, `media-play`,and
-         * `media-complete` will be used as `context-event` in engine training. If
-         * set to `view-home-page`, `view-home-page` will also be used as
-         * `context-events` in addition to `view-item`, `media-play`, and
-         * `media-complete`. Currently supported for the `recommended-for-you`
-         * engine. Currently supported values: `view-home-page`, `generic`.
+         * Required. The name of the field to target. Currently supported
+         * values: `watch-percentage`, `watch-time`.
          * 
* - * string context_event_type = 1; + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearContextEventType() { - contextEventType_ = getDefaultInstance().getContextEventType(); + public Builder clearTargetField() { + targetField_ = getDefaultInstance().getTargetField(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -4556,55 +3499,109 @@ public Builder clearContextEventType() { * * *
-         * The type of event with which the engine is queried at prediction time.
-         * If set to `generic`, only `view-item`, `media-play`,and
-         * `media-complete` will be used as `context-event` in engine training. If
-         * set to `view-home-page`, `view-home-page` will also be used as
-         * `context-events` in addition to `view-item`, `media-play`, and
-         * `media-complete`. Currently supported for the `recommended-for-you`
-         * engine. Currently supported values: `view-home-page`, `generic`.
+         * Required. The name of the field to target. Currently supported
+         * values: `watch-percentage`, `watch-time`.
          * 
* - * string context_event_type = 1; + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for contextEventType to set. + * @param value The bytes for targetField to set. * @return This builder for chaining. */ - public Builder setContextEventTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - contextEventType_ = value; + targetField_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + private float targetFieldValueFloat_; + + /** + * + * + *
+         * Required. The threshold to be applied to the target (e.g., 0.5).
+         * 
+ * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetFieldValueFloat. + */ + @java.lang.Override + public float getTargetFieldValueFloat() { + return targetFieldValueFloat_; + } + + /** + * + * + *
+         * Required. The threshold to be applied to the target (e.g., 0.5).
+         * 
+ * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The targetFieldValueFloat to set. + * @return This builder for chaining. + */ + public Builder setTargetFieldValueFloat(float value) { + + targetFieldValueFloat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The threshold to be applied to the target (e.g., 0.5).
+         * 
+ * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetFieldValueFloat() { + bitField0_ = (bitField0_ & ~0x00000002); + targetFieldValueFloat_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) private static final com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig + .MediaRecommendationEngineConfig.OptimizationObjectiveConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig(); + .OptimizationObjectiveConfig(); } public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig 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 RecommendedForYouFeatureConfig parsePartialFrom( + public OptimizationObjectiveConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4624,1067 +3621,7662 @@ public RecommendedForYouFeatureConfig 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.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .RecommendedForYouFeatureConfig + .OptimizationObjectiveConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MostPopularFeatureConfigOrBuilder + public interface EngineFeaturesConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-       * The time window of which the engine is queried at training and
-       * prediction time. Positive integers only. The value translates to the
-       * last X days of events. Currently required for the `most-popular-items`
-       * engine.
+       * Recommended for you engine feature config.
        * 
* - * int64 time_window_days = 1; + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * * - * @return The timeWindowDays. + * @return Whether the recommendedForYouConfig field is set. */ - long getTimeWindowDays(); - } - - /** - * - * - *
-     * Feature configurations that are required for creating a Most Popular
-     * engine.
-     * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig} - */ - public static final class MostPopularFeatureConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) - MostPopularFeatureConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "MostPopularFeatureConfig"); - } - - // Use MostPopularFeatureConfig.newBuilder() to construct. - private MostPopularFeatureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private MostPopularFeatureConfig() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder.class); - } - - public static final int TIME_WINDOW_DAYS_FIELD_NUMBER = 1; - private long timeWindowDays_ = 0L; + boolean hasRecommendedForYouConfig(); /** * * *
-       * The time window of which the engine is queried at training and
-       * prediction time. Positive integers only. The value translates to the
-       * last X days of events. Currently required for the `most-popular-items`
-       * engine.
+       * Recommended for you engine feature config.
        * 
* - * int64 time_window_days = 1; - * - * @return The timeWindowDays. + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return The recommendedForYouConfig. */ - @java.lang.Override - public long getTimeWindowDays() { - return timeWindowDays_; - } + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getRecommendedForYouConfig(); - private byte memoizedIsInitialized = -1; + /** + * + * + *
+       * Recommended for you engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder + getRecommendedForYouConfigOrBuilder(); - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+       * Most popular engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return Whether the mostPopularConfig field is set. + */ + boolean hasMostPopularConfig(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+       * Most popular engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return The mostPopularConfig. + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getMostPopularConfig(); + + /** + * + * + *
+       * Most popular engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder + getMostPopularConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + + /** + * + * + *
+     * More feature configs of the selected engine type.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig} + */ + public static final class EngineFeaturesConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + EngineFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "EngineFeaturesConfig"); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (timeWindowDays_ != 0L) { - output.writeInt64(1, timeWindowDays_); - } - getUnknownFields().writeTo(output); + // Use EngineFeaturesConfig.newBuilder() to construct. + private EngineFeaturesConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private EngineFeaturesConfig() {} - size = 0; - if (timeWindowDays_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, timeWindowDays_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder.class); + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RECOMMENDED_FOR_YOU_CONFIG(1), + MOST_POPULAR_CONFIG(2), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(int value) { + this.value = value; } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig)) { - return super.equals(obj); + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); } - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - other = - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - obj; - if (getTimeWindowDays() != other.getTimeWindowDays()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return RECOMMENDED_FOR_YOU_CONFIG; + case 2: + return MOST_POPULAR_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public int getNumber() { + return this.value; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_WINDOW_DAYS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeWindowDays()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + }; - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int RECOMMENDED_FOR_YOU_CONFIG_FIELD_NUMBER = 1; - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+       * Recommended for you engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return Whether the recommendedForYouConfig field is set. + */ + @java.lang.Override + public boolean hasRecommendedForYouConfig() { + return typeDedicatedConfigCase_ == 1; } + /** + * + * + *
+       * Recommended for you engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return The recommendedForYouConfig. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getRecommendedForYouConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+       * Recommended for you engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder + getRecommendedForYouConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int MOST_POPULAR_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+       * Most popular engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return Whether the mostPopularConfig field is set. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public boolean hasMostPopularConfig() { + return typeDedicatedConfigCase_ == 2; } + /** + * + * + *
+       * Most popular engine feature config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return The mostPopularConfig. + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getMostPopularConfig() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); } /** * * *
-       * Feature configurations that are required for creating a Most Popular
-       * engine.
+       * Most popular engine feature config.
        * 
* - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig} + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder + getMostPopularConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.Builder.class); - } + private byte memoizedIsInitialized = -1; - // Construct using - // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig.newBuilder() - private Builder() {} + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - timeWindowDays_ = 0L; - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_); } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + if (typeDedicatedConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_); } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - build() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_); } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - result = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + if (typeDedicatedConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private void buildPartial0( + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.timeWindowDays_ = timeWindowDays_; - } + .EngineFeaturesConfig)) { + return super.equals(obj); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) { - return mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + other = (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } + .EngineFeaturesConfig) + obj; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig.getDefaultInstance()) return this; - if (other.getTimeWindowDays() != 0L) { - setTimeWindowDays(other.getTimeWindowDays()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getRecommendedForYouConfig().equals(other.getRecommendedForYouConfig())) + return false; + break; + case 2: + if (!getMostPopularConfig().equals(other.getMostPopularConfig())) return false; + break; + case 0: + default: } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - @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: - { - timeWindowDays_ = input.readInt64(); - 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + RECOMMENDED_FOR_YOU_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedForYouConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + MOST_POPULAR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMostPopularConfig().hashCode(); + break; + case 0: + default: } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private int bitField0_; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private long timeWindowDays_; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-         * The time window of which the engine is queried at training and
-         * prediction time. Positive integers only. The value translates to the
-         * last X days of events. Currently required for the `most-popular-items`
-         * engine.
-         * 
- * - * int64 time_window_days = 1; - * - * @return The timeWindowDays. - */ - @java.lang.Override - public long getTimeWindowDays() { - return timeWindowDays_; - } + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-         * The time window of which the engine is queried at training and
-         * prediction time. Positive integers only. The value translates to the
-         * last X days of events. Currently required for the `most-popular-items`
-         * engine.
-         * 
- * - * int64 time_window_days = 1; - * - * @param value The timeWindowDays to set. - * @return This builder for chaining. - */ - public Builder setTimeWindowDays(long value) { + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - timeWindowDays_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-         * The time window of which the engine is queried at training and
-         * prediction time. Positive integers only. The value translates to the
-         * last X days of events. Currently required for the `most-popular-items`
-         * engine.
-         * 
- * - * int64 time_window_days = 1; - * - * @return This builder for chaining. - */ - public Builder clearTimeWindowDays() { - bitField0_ = (bitField0_ & ~0x00000001); - timeWindowDays_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) - private static final com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfig.MostPopularFeatureConfig - DEFAULT_INSTANCE; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig(); + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; + .EngineFeaturesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MostPopularFeatureConfig 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.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.protobuf.Parser parser() { - return PARSER; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .MostPopularFeatureConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public Builder newBuilderForType() { + return newBuilder(); } - } - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
-     * Required. The type of engine. e.g., `recommended-for-you`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-     * `more-like-this`, `most-popular-items`.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - /** - * - * - *
-     * Required. The type of engine. e.g., `recommended-for-you`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-     * `more-like-this`, `most-popular-items`.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - } - public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 2; + /** + * + * + *
+       * More feature configs of the selected engine type.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; + } - @SuppressWarnings("serial") - private volatile java.lang.Object optimizationObjective_ = ""; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder.class); + } - /** - * - * - *
-     * The optimization objective. e.g., `cvr`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported
-     * values: `ctr`, `cvr`.
-     *
-     * If not specified, we choose default based on engine type.
-     * Default depends on type of recommendation:
-     *
-     * `recommended-for-you` => `ctr`
-     *
-     * `others-you-may-like` => `ctr`
-     * 
- * - * string optimization_objective = 2; - * - * @return The optimizationObjective. - */ - @java.lang.Override - public java.lang.String getOptimizationObjective() { - java.lang.Object ref = optimizationObjective_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - optimizationObjective_ = s; - return s; - } - } + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig.newBuilder() + private Builder() {} - /** - * - * - *
-     * The optimization objective. e.g., `cvr`.
-     *
-     * This field together with
-     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-     * describe engine metadata to use to control engine training and serving.
-     *
-     * Currently supported
-     * values: `ctr`, `cvr`.
-     *
-     * If not specified, we choose default based on engine type.
-     * Default depends on type of recommendation:
-     *
-     * `recommended-for-you` => `ctr`
-     *
-     * `others-you-may-like` => `ctr`
-     * 
- * - * string optimization_objective = 2; - * - * @return The bytes for optimizationObjective. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { - java.lang.Object ref = optimizationObjective_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - optimizationObjective_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - optimizationObjectiveConfig_; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
-     * Name and value of the custom threshold for cvr optimization_objective.
-     * For target_field `watch-time`, target_field_value must be an integer
-     * value indicating the media progress time in seconds between (0, 86400]
-     * (excludes 0, includes 86400) (e.g., 90).
-     * For target_field `watch-percentage`, the target_field_value must be a
-     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-     * 0.5).
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - * - * @return Whether the optimizationObjectiveConfig field is set. - */ - @java.lang.Override - public boolean hasOptimizationObjectiveConfig() { - return ((bitField0_ & 0x00000001) != 0); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (recommendedForYouConfigBuilder_ != null) { + recommendedForYouConfigBuilder_.clear(); + } + if (mostPopularConfigBuilder_ != null) { + mostPopularConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } - /** - * - * - *
-     * Name and value of the custom threshold for cvr optimization_objective.
-     * For target_field `watch-time`, target_field_value must be an integer
-     * value indicating the media progress time in seconds between (0, 86400]
-     * (excludes 0, includes 86400) (e.g., 90).
-     * For target_field `watch-percentage`, the target_field_value must be a
-     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-     * 0.5).
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - * - * @return The optimizationObjectiveConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - getOptimizationObjectiveConfig() { - return optimizationObjectiveConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance() - : optimizationObjectiveConfig_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; + } - /** - * - * - *
-     * Name and value of the custom threshold for cvr optimization_objective.
-     * For target_field `watch-time`, target_field_value must be an integer
-     * value indicating the media progress time in seconds between (0, 86400]
-     * (excludes 0, includes 86400) (e.g., 90).
-     * For target_field `watch-percentage`, the target_field_value must be a
-     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-     * 0.5).
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder - getOptimizationObjectiveConfigOrBuilder() { - return optimizationObjectiveConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance() - : optimizationObjectiveConfig_; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance(); + } - public static final int TRAINING_STATE_FIELD_NUMBER = 4; - private int trainingState_ = 0; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + build() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
-     * The training state that the engine is in (e.g.
-     * `TRAINING` or `PAUSED`).
-     *
-     * Since part of the cost of running the service
-     * is frequency of training - this can be used to determine when to train
-     * engine in order to control cost. If not specified: the default value for
-     * `CreateEngine` method is `TRAINING`. The default value for
-     * `UpdateEngine` method is to keep the state the same as before.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * - * - * @return The enum numeric value on the wire for trainingState. - */ - @java.lang.Override - public int getTrainingStateValue() { - return trainingState_; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } - /** - * - * - *
-     * The training state that the engine is in (e.g.
-     * `TRAINING` or `PAUSED`).
-     *
-     * Since part of the cost of running the service
-     * is frequency of training - this can be used to determine when to train
-     * engine in order to control cost. If not specified: the default value for
-     * `CreateEngine` method is `TRAINING`. The default value for
-     * `UpdateEngine` method is to keep the state the same as before.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * - * - * @return The trainingState. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState - getTrainingState() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState - result = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .TrainingState.forNumber(trainingState_); - return result == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState - .UNRECOGNIZED - : result; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result) { + int from_bitField0_ = bitField0_; + } - public static final int ENGINE_FEATURES_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - engineFeaturesConfig_; + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && recommendedForYouConfigBuilder_ != null) { + result.typeDedicatedConfig_ = recommendedForYouConfigBuilder_.build(); + } + if (typeDedicatedConfigCase_ == 2 && mostPopularConfigBuilder_ != null) { + result.typeDedicatedConfig_ = mostPopularConfigBuilder_.build(); + } + } - /** - * - * - *
-     * Optional. Additional engine features config.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the engineFeaturesConfig field is set. - */ - @java.lang.Override - public boolean hasEngineFeaturesConfig() { - return ((bitField0_ & 0x00000002) != 0); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
-     * Optional. Additional engine features config.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The engineFeaturesConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - getEngineFeaturesConfig() { - return engineFeaturesConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance() - : engineFeaturesConfig_; - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance()) return this; + switch (other.getTypeDedicatedConfigCase()) { + case RECOMMENDED_FOR_YOU_CONFIG: + { + mergeRecommendedForYouConfig(other.getRecommendedForYouConfig()); + break; + } + case MOST_POPULAR_CONFIG: + { + mergeMostPopularConfig(other.getMostPopularConfig()); + break; + } + case TYPEDEDICATEDCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-     * Optional. Additional engine features config.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder - getEngineFeaturesConfigOrBuilder() { - return engineFeaturesConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance() - : engineFeaturesConfig_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private byte memoizedIsInitialized = -1; + @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( + internalGetRecommendedForYouConfigFieldBuilder().getBuilder(), + extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMostPopularConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 2; + 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; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; - memoizedIsInitialized = 1; - return true; - } + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(optimizationObjective_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, optimizationObjective_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getOptimizationObjectiveConfig()); - } - if (trainingState_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .TrainingState.TRAINING_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, trainingState_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getEngineFeaturesConfig()); - } - getUnknownFields().writeTo(output); - } + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private int bitField0_; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(optimizationObjective_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, optimizationObjective_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getOptimizationObjectiveConfig()); - } - if (trainingState_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .TrainingState.TRAINING_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, trainingState_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEngineFeaturesConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder> + recommendedForYouConfigBuilder_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig other = - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) obj; + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return Whether the recommendedForYouConfig field is set. + */ + @java.lang.Override + public boolean hasRecommendedForYouConfig() { + return typeDedicatedConfigCase_ == 1; + } - if (!getType().equals(other.getType())) return false; + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return The recommendedForYouConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getRecommendedForYouConfig() { + if (recommendedForYouConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return recommendedForYouConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder setRecommendedForYouConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + value) { + if (recommendedForYouConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + recommendedForYouConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder setRecommendedForYouConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder + builderForValue) { + if (recommendedForYouConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + recommendedForYouConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder mergeRecommendedForYouConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + value) { + if (recommendedForYouConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.newBuilder( + (com.google.cloud.discoveryengine.v1.Engine + .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + recommendedForYouConfigBuilder_.mergeFrom(value); + } else { + recommendedForYouConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 1; + return this; + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder clearRecommendedForYouConfig() { + if (recommendedForYouConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + recommendedForYouConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder + getRecommendedForYouConfigBuilder() { + return internalGetRecommendedForYouConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder + getRecommendedForYouConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (recommendedForYouConfigBuilder_ != null)) { + return recommendedForYouConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+         * Recommended for you engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder> + internalGetRecommendedForYouConfigFieldBuilder() { + if (recommendedForYouConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + recommendedForYouConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 1; + onChanged(); + return recommendedForYouConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder> + mostPopularConfigBuilder_; + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return Whether the mostPopularConfig field is set. + */ + @java.lang.Override + public boolean hasMostPopularConfig() { + return typeDedicatedConfigCase_ == 2; + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return The mostPopularConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getMostPopularConfig() { + if (mostPopularConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return mostPopularConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder setMostPopularConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + value) { + if (mostPopularConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + mostPopularConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 2; + return this; + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder setMostPopularConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder + builderForValue) { + if (mostPopularConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + mostPopularConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 2; + return this; + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder mergeMostPopularConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + value) { + if (mostPopularConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.newBuilder( + (com.google.cloud.discoveryengine.v1.Engine + .MediaRecommendationEngineConfig.MostPopularFeatureConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 2) { + mostPopularConfigBuilder_.mergeFrom(value); + } else { + mostPopularConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 2; + return this; + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder clearMostPopularConfig() { + if (mostPopularConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + mostPopularConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder + getMostPopularConfigBuilder() { + return internalGetMostPopularConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder + getMostPopularConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 2) && (mostPopularConfigBuilder_ != null)) { + return mostPopularConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+         * Most popular engine feature config.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder> + internalGetMostPopularConfigFieldBuilder() { + if (mostPopularConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 2)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } + mostPopularConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 2; + onChanged(); + return mostPopularConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + private static final com.google.cloud.discoveryengine.v1.Engine + .MediaRecommendationEngineConfig.EngineFeaturesConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EngineFeaturesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RecommendedForYouFeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The type of event with which the engine is queried at prediction time.
+       * If set to `generic`, only `view-item`, `media-play`,and
+       * `media-complete` will be used as `context-event` in engine training. If
+       * set to `view-home-page`, `view-home-page` will also be used as
+       * `context-events` in addition to `view-item`, `media-play`, and
+       * `media-complete`. Currently supported for the `recommended-for-you`
+       * engine. Currently supported values: `view-home-page`, `generic`.
+       * 
+ * + * string context_event_type = 1; + * + * @return The contextEventType. + */ + java.lang.String getContextEventType(); + + /** + * + * + *
+       * The type of event with which the engine is queried at prediction time.
+       * If set to `generic`, only `view-item`, `media-play`,and
+       * `media-complete` will be used as `context-event` in engine training. If
+       * set to `view-home-page`, `view-home-page` will also be used as
+       * `context-events` in addition to `view-item`, `media-play`, and
+       * `media-complete`. Currently supported for the `recommended-for-you`
+       * engine. Currently supported values: `view-home-page`, `generic`.
+       * 
+ * + * string context_event_type = 1; + * + * @return The bytes for contextEventType. + */ + com.google.protobuf.ByteString getContextEventTypeBytes(); + } + + /** + * + * + *
+     * Additional feature configurations for creating a `recommended-for-you`
+     * engine.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig} + */ + public static final class RecommendedForYouFeatureConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + RecommendedForYouFeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RecommendedForYouFeatureConfig"); + } + + // Use RecommendedForYouFeatureConfig.newBuilder() to construct. + private RecommendedForYouFeatureConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RecommendedForYouFeatureConfig() { + contextEventType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder.class); + } + + public static final int CONTEXT_EVENT_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextEventType_ = ""; + + /** + * + * + *
+       * The type of event with which the engine is queried at prediction time.
+       * If set to `generic`, only `view-item`, `media-play`,and
+       * `media-complete` will be used as `context-event` in engine training. If
+       * set to `view-home-page`, `view-home-page` will also be used as
+       * `context-events` in addition to `view-item`, `media-play`, and
+       * `media-complete`. Currently supported for the `recommended-for-you`
+       * engine. Currently supported values: `view-home-page`, `generic`.
+       * 
+ * + * string context_event_type = 1; + * + * @return The contextEventType. + */ + @java.lang.Override + public java.lang.String getContextEventType() { + java.lang.Object ref = contextEventType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextEventType_ = s; + return s; + } + } + + /** + * + * + *
+       * The type of event with which the engine is queried at prediction time.
+       * If set to `generic`, only `view-item`, `media-play`,and
+       * `media-complete` will be used as `context-event` in engine training. If
+       * set to `view-home-page`, `view-home-page` will also be used as
+       * `context-events` in addition to `view-item`, `media-play`, and
+       * `media-complete`. Currently supported for the `recommended-for-you`
+       * engine. Currently supported values: `view-home-page`, `generic`.
+       * 
+ * + * string context_event_type = 1; + * + * @return The bytes for contextEventType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextEventTypeBytes() { + java.lang.Object ref = contextEventType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextEventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextEventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contextEventType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextEventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextEventType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + other = + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + obj; + + if (!getContextEventType().equals(other.getContextEventType())) 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) + CONTEXT_EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getContextEventType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Additional feature configurations for creating a `recommended-for-you`
+       * engine.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextEventType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + build() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + result = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextEventType_ = contextEventType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance()) return this; + if (!other.getContextEventType().isEmpty()) { + contextEventType_ = other.contextEventType_; + 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: + { + contextEventType_ = 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 contextEventType_ = ""; + + /** + * + * + *
+         * The type of event with which the engine is queried at prediction time.
+         * If set to `generic`, only `view-item`, `media-play`,and
+         * `media-complete` will be used as `context-event` in engine training. If
+         * set to `view-home-page`, `view-home-page` will also be used as
+         * `context-events` in addition to `view-item`, `media-play`, and
+         * `media-complete`. Currently supported for the `recommended-for-you`
+         * engine. Currently supported values: `view-home-page`, `generic`.
+         * 
+ * + * string context_event_type = 1; + * + * @return The contextEventType. + */ + public java.lang.String getContextEventType() { + java.lang.Object ref = contextEventType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextEventType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The type of event with which the engine is queried at prediction time.
+         * If set to `generic`, only `view-item`, `media-play`,and
+         * `media-complete` will be used as `context-event` in engine training. If
+         * set to `view-home-page`, `view-home-page` will also be used as
+         * `context-events` in addition to `view-item`, `media-play`, and
+         * `media-complete`. Currently supported for the `recommended-for-you`
+         * engine. Currently supported values: `view-home-page`, `generic`.
+         * 
+ * + * string context_event_type = 1; + * + * @return The bytes for contextEventType. + */ + public com.google.protobuf.ByteString getContextEventTypeBytes() { + java.lang.Object ref = contextEventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextEventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The type of event with which the engine is queried at prediction time.
+         * If set to `generic`, only `view-item`, `media-play`,and
+         * `media-complete` will be used as `context-event` in engine training. If
+         * set to `view-home-page`, `view-home-page` will also be used as
+         * `context-events` in addition to `view-item`, `media-play`, and
+         * `media-complete`. Currently supported for the `recommended-for-you`
+         * engine. Currently supported values: `view-home-page`, `generic`.
+         * 
+ * + * string context_event_type = 1; + * + * @param value The contextEventType to set. + * @return This builder for chaining. + */ + public Builder setContextEventType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextEventType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The type of event with which the engine is queried at prediction time.
+         * If set to `generic`, only `view-item`, `media-play`,and
+         * `media-complete` will be used as `context-event` in engine training. If
+         * set to `view-home-page`, `view-home-page` will also be used as
+         * `context-events` in addition to `view-item`, `media-play`, and
+         * `media-complete`. Currently supported for the `recommended-for-you`
+         * engine. Currently supported values: `view-home-page`, `generic`.
+         * 
+ * + * string context_event_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearContextEventType() { + contextEventType_ = getDefaultInstance().getContextEventType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * The type of event with which the engine is queried at prediction time.
+         * If set to `generic`, only `view-item`, `media-play`,and
+         * `media-complete` will be used as `context-event` in engine training. If
+         * set to `view-home-page`, `view-home-page` will also be used as
+         * `context-events` in addition to `view-item`, `media-play`, and
+         * `media-complete`. Currently supported for the `recommended-for-you`
+         * engine. Currently supported values: `view-home-page`, `generic`.
+         * 
+ * + * string context_event_type = 1; + * + * @param value The bytes for contextEventType to set. + * @return This builder for chaining. + */ + public Builder setContextEventTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextEventType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + private static final com.google.cloud.discoveryengine.v1.Engine + .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendedForYouFeatureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MostPopularFeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The time window of which the engine is queried at training and
+       * prediction time. Positive integers only. The value translates to the
+       * last X days of events. Currently required for the `most-popular-items`
+       * engine.
+       * 
+ * + * int64 time_window_days = 1; + * + * @return The timeWindowDays. + */ + long getTimeWindowDays(); + } + + /** + * + * + *
+     * Feature configurations that are required for creating a Most Popular
+     * engine.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig} + */ + public static final class MostPopularFeatureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + MostPopularFeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MostPopularFeatureConfig"); + } + + // Use MostPopularFeatureConfig.newBuilder() to construct. + private MostPopularFeatureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MostPopularFeatureConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder.class); + } + + public static final int TIME_WINDOW_DAYS_FIELD_NUMBER = 1; + private long timeWindowDays_ = 0L; + + /** + * + * + *
+       * The time window of which the engine is queried at training and
+       * prediction time. Positive integers only. The value translates to the
+       * last X days of events. Currently required for the `most-popular-items`
+       * engine.
+       * 
+ * + * int64 time_window_days = 1; + * + * @return The timeWindowDays. + */ + @java.lang.Override + public long getTimeWindowDays() { + return timeWindowDays_; + } + + 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 (timeWindowDays_ != 0L) { + output.writeInt64(1, timeWindowDays_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeWindowDays_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, timeWindowDays_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + other = + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + obj; + + if (getTimeWindowDays() != other.getTimeWindowDays()) 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) + TIME_WINDOW_DAYS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeWindowDays()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Feature configurations that are required for creating a Most Popular
+       * engine.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeWindowDays_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + build() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + result = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeWindowDays_ = timeWindowDays_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance()) return this; + if (other.getTimeWindowDays() != 0L) { + setTimeWindowDays(other.getTimeWindowDays()); + } + 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: + { + timeWindowDays_ = input.readInt64(); + 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 long timeWindowDays_; + + /** + * + * + *
+         * The time window of which the engine is queried at training and
+         * prediction time. Positive integers only. The value translates to the
+         * last X days of events. Currently required for the `most-popular-items`
+         * engine.
+         * 
+ * + * int64 time_window_days = 1; + * + * @return The timeWindowDays. + */ + @java.lang.Override + public long getTimeWindowDays() { + return timeWindowDays_; + } + + /** + * + * + *
+         * The time window of which the engine is queried at training and
+         * prediction time. Positive integers only. The value translates to the
+         * last X days of events. Currently required for the `most-popular-items`
+         * engine.
+         * 
+ * + * int64 time_window_days = 1; + * + * @param value The timeWindowDays to set. + * @return This builder for chaining. + */ + public Builder setTimeWindowDays(long value) { + + timeWindowDays_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The time window of which the engine is queried at training and
+         * prediction time. Positive integers only. The value translates to the
+         * last X days of events. Currently required for the `most-popular-items`
+         * engine.
+         * 
+ * + * int64 time_window_days = 1; + * + * @return This builder for chaining. + */ + public Builder clearTimeWindowDays() { + bitField0_ = (bitField0_ & ~0x00000001); + timeWindowDays_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + private static final com.google.cloud.discoveryengine.v1.Engine + .MediaRecommendationEngineConfig.MostPopularFeatureConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MostPopularFeatureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+     * Required. The type of engine. e.g., `recommended-for-you`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+     * `more-like-this`, `most-popular-items`.
+     * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The type of engine. e.g., `recommended-for-you`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+     * `more-like-this`, `most-popular-items`.
+     * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object optimizationObjective_ = ""; + + /** + * + * + *
+     * The optimization objective. e.g., `cvr`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported
+     * values: `ctr`, `cvr`.
+     *
+     * If not specified, we choose default based on engine type.
+     * Default depends on type of recommendation:
+     *
+     * `recommended-for-you` => `ctr`
+     *
+     * `others-you-may-like` => `ctr`
+     * 
+ * + * string optimization_objective = 2; + * + * @return The optimizationObjective. + */ + @java.lang.Override + public java.lang.String getOptimizationObjective() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + optimizationObjective_ = s; + return s; + } + } + + /** + * + * + *
+     * The optimization objective. e.g., `cvr`.
+     *
+     * This field together with
+     * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+     * describe engine metadata to use to control engine training and serving.
+     *
+     * Currently supported
+     * values: `ctr`, `cvr`.
+     *
+     * If not specified, we choose default based on engine type.
+     * Default depends on type of recommendation:
+     *
+     * `recommended-for-you` => `ctr`
+     *
+     * `others-you-may-like` => `ctr`
+     * 
+ * + * string optimization_objective = 2; + * + * @return The bytes for optimizationObjective. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + optimizationObjective_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + optimizationObjectiveConfig_; + + /** + * + * + *
+     * Name and value of the custom threshold for cvr optimization_objective.
+     * For target_field `watch-time`, target_field_value must be an integer
+     * value indicating the media progress time in seconds between (0, 86400]
+     * (excludes 0, includes 86400) (e.g., 90).
+     * For target_field `watch-percentage`, the target_field_value must be a
+     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+     * 0.5).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return Whether the optimizationObjectiveConfig field is set. + */ + @java.lang.Override + public boolean hasOptimizationObjectiveConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Name and value of the custom threshold for cvr optimization_objective.
+     * For target_field `watch-time`, target_field_value must be an integer
+     * value indicating the media progress time in seconds between (0, 86400]
+     * (excludes 0, includes 86400) (e.g., 90).
+     * For target_field `watch-percentage`, the target_field_value must be a
+     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+     * 0.5).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return The optimizationObjectiveConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getOptimizationObjectiveConfig() { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } + + /** + * + * + *
+     * Name and value of the custom threshold for cvr optimization_objective.
+     * For target_field `watch-time`, target_field_value must be an integer
+     * value indicating the media progress time in seconds between (0, 86400]
+     * (excludes 0, includes 86400) (e.g., 90).
+     * For target_field `watch-percentage`, the target_field_value must be a
+     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+     * 0.5).
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder + getOptimizationObjectiveConfigOrBuilder() { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } + + public static final int TRAINING_STATE_FIELD_NUMBER = 4; + private int trainingState_ = 0; + + /** + * + * + *
+     * The training state that the engine is in (e.g.
+     * `TRAINING` or `PAUSED`).
+     *
+     * Since part of the cost of running the service
+     * is frequency of training - this can be used to determine when to train
+     * engine in order to control cost. If not specified: the default value for
+     * `CreateEngine` method is `TRAINING`. The default value for
+     * `UpdateEngine` method is to keep the state the same as before.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The enum numeric value on the wire for trainingState. + */ + @java.lang.Override + public int getTrainingStateValue() { + return trainingState_; + } + + /** + * + * + *
+     * The training state that the engine is in (e.g.
+     * `TRAINING` or `PAUSED`).
+     *
+     * Since part of the cost of running the service
+     * is frequency of training - this can be used to determine when to train
+     * engine in order to control cost. If not specified: the default value for
+     * `CreateEngine` method is `TRAINING`. The default value for
+     * `UpdateEngine` method is to keep the state the same as before.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The trainingState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState + getTrainingState() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState + result = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .TrainingState.forNumber(trainingState_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState + .UNRECOGNIZED + : result; + } + + public static final int ENGINE_FEATURES_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + engineFeaturesConfig_; + + /** + * + * + *
+     * Optional. Additional engine features config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineFeaturesConfig field is set. + */ + @java.lang.Override + public boolean hasEngineFeaturesConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Additional engine features config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineFeaturesConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getEngineFeaturesConfig() { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } + + /** + * + * + *
+     * Optional. Additional engine features config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder + getEngineFeaturesConfigOrBuilder() { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(optimizationObjective_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, optimizationObjective_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOptimizationObjectiveConfig()); + } + if (trainingState_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .TrainingState.TRAINING_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, trainingState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getEngineFeaturesConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(optimizationObjective_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, optimizationObjective_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getOptimizationObjectiveConfig()); + } + if (trainingState_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .TrainingState.TRAINING_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, trainingState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEngineFeaturesConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig other = + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) obj; + + if (!getType().equals(other.getType())) return false; if (!getOptimizationObjective().equals(other.getOptimizationObjective())) return false; if (hasOptimizationObjectiveConfig() != other.hasOptimizationObjectiveConfig()) return false; if (hasOptimizationObjectiveConfig()) { if (!getOptimizationObjectiveConfig().equals(other.getOptimizationObjectiveConfig())) return false; } - if (trainingState_ != other.trainingState_) return false; - if (hasEngineFeaturesConfig() != other.hasEngineFeaturesConfig()) return false; - if (hasEngineFeaturesConfig()) { - if (!getEngineFeaturesConfig().equals(other.getEngineFeaturesConfig())) return false; + if (trainingState_ != other.trainingState_) return false; + if (hasEngineFeaturesConfig() != other.hasEngineFeaturesConfig()) return false; + if (hasEngineFeaturesConfig()) { + if (!getEngineFeaturesConfig().equals(other.getEngineFeaturesConfig())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationObjective().hashCode(); + if (hasOptimizationObjectiveConfig()) { + hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationObjectiveConfig().hashCode(); + } + hash = (37 * hash) + TRAINING_STATE_FIELD_NUMBER; + hash = (53 * hash) + trainingState_; + if (hasEngineFeaturesConfig()) { + hash = (37 * hash) + ENGINE_FEATURES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEngineFeaturesConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Additional config specs for a Media Recommendation engine.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.class, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOptimizationObjectiveConfigFieldBuilder(); + internalGetEngineFeaturesConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + optimizationObjective_ = ""; + optimizationObjectiveConfig_ = null; + if (optimizationObjectiveConfigBuilder_ != null) { + optimizationObjectiveConfigBuilder_.dispose(); + optimizationObjectiveConfigBuilder_ = null; + } + trainingState_ = 0; + engineFeaturesConfig_ = null; + if (engineFeaturesConfigBuilder_ != null) { + engineFeaturesConfigBuilder_.dispose(); + engineFeaturesConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig build() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig result = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.optimizationObjective_ = optimizationObjective_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.optimizationObjectiveConfig_ = + optimizationObjectiveConfigBuilder_ == null + ? optimizationObjectiveConfig_ + : optimizationObjectiveConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trainingState_ = trainingState_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.engineFeaturesConfig_ = + engineFeaturesConfigBuilder_ == null + ? engineFeaturesConfig_ + : engineFeaturesConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOptimizationObjective().isEmpty()) { + optimizationObjective_ = other.optimizationObjective_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOptimizationObjectiveConfig()) { + mergeOptimizationObjectiveConfig(other.getOptimizationObjectiveConfig()); + } + if (other.trainingState_ != 0) { + setTrainingStateValue(other.getTrainingStateValue()); + } + if (other.hasEngineFeaturesConfig()) { + mergeEngineFeaturesConfig(other.getEngineFeaturesConfig()); + } + 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + optimizationObjective_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOptimizationObjectiveConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + trainingState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetEngineFeaturesConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 type_ = ""; + + /** + * + * + *
+       * Required. The type of engine. e.g., `recommended-for-you`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+       * `more-like-this`, `most-popular-items`.
+       * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The type of engine. e.g., `recommended-for-you`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+       * `more-like-this`, `most-popular-items`.
+       * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The type of engine. e.g., `recommended-for-you`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+       * `more-like-this`, `most-popular-items`.
+       * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The type of engine. e.g., `recommended-for-you`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+       * `more-like-this`, `most-popular-items`.
+       * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The type of engine. e.g., `recommended-for-you`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
+       * `more-like-this`, `most-popular-items`.
+       * 
+ * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object optimizationObjective_ = ""; + + /** + * + * + *
+       * The optimization objective. e.g., `cvr`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported
+       * values: `ctr`, `cvr`.
+       *
+       * If not specified, we choose default based on engine type.
+       * Default depends on type of recommendation:
+       *
+       * `recommended-for-you` => `ctr`
+       *
+       * `others-you-may-like` => `ctr`
+       * 
+ * + * string optimization_objective = 2; + * + * @return The optimizationObjective. + */ + public java.lang.String getOptimizationObjective() { + java.lang.Object ref = optimizationObjective_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + optimizationObjective_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The optimization objective. e.g., `cvr`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported
+       * values: `ctr`, `cvr`.
+       *
+       * If not specified, we choose default based on engine type.
+       * Default depends on type of recommendation:
+       *
+       * `recommended-for-you` => `ctr`
+       *
+       * `others-you-may-like` => `ctr`
+       * 
+ * + * string optimization_objective = 2; + * + * @return The bytes for optimizationObjective. + */ + public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + optimizationObjective_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The optimization objective. e.g., `cvr`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported
+       * values: `ctr`, `cvr`.
+       *
+       * If not specified, we choose default based on engine type.
+       * Default depends on type of recommendation:
+       *
+       * `recommended-for-you` => `ctr`
+       *
+       * `others-you-may-like` => `ctr`
+       * 
+ * + * string optimization_objective = 2; + * + * @param value The optimizationObjective to set. + * @return This builder for chaining. + */ + public Builder setOptimizationObjective(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + optimizationObjective_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The optimization objective. e.g., `cvr`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported
+       * values: `ctr`, `cvr`.
+       *
+       * If not specified, we choose default based on engine type.
+       * Default depends on type of recommendation:
+       *
+       * `recommended-for-you` => `ctr`
+       *
+       * `others-you-may-like` => `ctr`
+       * 
+ * + * string optimization_objective = 2; + * + * @return This builder for chaining. + */ + public Builder clearOptimizationObjective() { + optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The optimization objective. e.g., `cvr`.
+       *
+       * This field together with
+       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
+       * describe engine metadata to use to control engine training and serving.
+       *
+       * Currently supported
+       * values: `ctr`, `cvr`.
+       *
+       * If not specified, we choose default based on engine type.
+       * Default depends on type of recommendation:
+       *
+       * `recommended-for-you` => `ctr`
+       *
+       * `others-you-may-like` => `ctr`
+       * 
+ * + * string optimization_objective = 2; + * + * @param value The bytes for optimizationObjective to set. + * @return This builder for chaining. + */ + public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + optimizationObjective_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + optimizationObjectiveConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder> + optimizationObjectiveConfigBuilder_; + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return Whether the optimizationObjectiveConfig field is set. + */ + public boolean hasOptimizationObjectiveConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return The optimizationObjectiveConfig. + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getOptimizationObjectiveConfig() { + if (optimizationObjectiveConfigBuilder_ == null) { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } else { + return optimizationObjectiveConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder setOptimizationObjectiveConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + value) { + if (optimizationObjectiveConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + optimizationObjectiveConfig_ = value; + } else { + optimizationObjectiveConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder setOptimizationObjectiveConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder + builderForValue) { + if (optimizationObjectiveConfigBuilder_ == null) { + optimizationObjectiveConfig_ = builderForValue.build(); + } else { + optimizationObjectiveConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder mergeOptimizationObjectiveConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + value) { + if (optimizationObjectiveConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && optimizationObjectiveConfig_ != null + && optimizationObjectiveConfig_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance()) { + getOptimizationObjectiveConfigBuilder().mergeFrom(value); + } else { + optimizationObjectiveConfig_ = value; + } + } else { + optimizationObjectiveConfigBuilder_.mergeFrom(value); + } + if (optimizationObjectiveConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder clearOptimizationObjectiveConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + optimizationObjectiveConfig_ = null; + if (optimizationObjectiveConfigBuilder_ != null) { + optimizationObjectiveConfigBuilder_.dispose(); + optimizationObjectiveConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder + getOptimizationObjectiveConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOptimizationObjectiveConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder + getOptimizationObjectiveConfigOrBuilder() { + if (optimizationObjectiveConfigBuilder_ != null) { + return optimizationObjectiveConfigBuilder_.getMessageOrBuilder(); + } else { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } + } + + /** + * + * + *
+       * Name and value of the custom threshold for cvr optimization_objective.
+       * For target_field `watch-time`, target_field_value must be an integer
+       * value indicating the media progress time in seconds between (0, 86400]
+       * (excludes 0, includes 86400) (e.g., 90).
+       * For target_field `watch-percentage`, the target_field_value must be a
+       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
+       * 0.5).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder> + internalGetOptimizationObjectiveConfigFieldBuilder() { + if (optimizationObjectiveConfigBuilder_ == null) { + optimizationObjectiveConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder>( + getOptimizationObjectiveConfig(), getParentForChildren(), isClean()); + optimizationObjectiveConfig_ = null; + } + return optimizationObjectiveConfigBuilder_; + } + + private int trainingState_ = 0; + + /** + * + * + *
+       * The training state that the engine is in (e.g.
+       * `TRAINING` or `PAUSED`).
+       *
+       * Since part of the cost of running the service
+       * is frequency of training - this can be used to determine when to train
+       * engine in order to control cost. If not specified: the default value for
+       * `CreateEngine` method is `TRAINING`. The default value for
+       * `UpdateEngine` method is to keep the state the same as before.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The enum numeric value on the wire for trainingState. + */ + @java.lang.Override + public int getTrainingStateValue() { + return trainingState_; + } + + /** + * + * + *
+       * The training state that the engine is in (e.g.
+       * `TRAINING` or `PAUSED`).
+       *
+       * Since part of the cost of running the service
+       * is frequency of training - this can be used to determine when to train
+       * engine in order to control cost. If not specified: the default value for
+       * `CreateEngine` method is `TRAINING`. The default value for
+       * `UpdateEngine` method is to keep the state the same as before.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @param value The enum numeric value on the wire for trainingState to set. + * @return This builder for chaining. + */ + public Builder setTrainingStateValue(int value) { + trainingState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The training state that the engine is in (e.g.
+       * `TRAINING` or `PAUSED`).
+       *
+       * Since part of the cost of running the service
+       * is frequency of training - this can be used to determine when to train
+       * engine in order to control cost. If not specified: the default value for
+       * `CreateEngine` method is `TRAINING`. The default value for
+       * `UpdateEngine` method is to keep the state the same as before.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The trainingState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .TrainingState + getTrainingState() { + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState + result = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .TrainingState.forNumber(trainingState_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .TrainingState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * The training state that the engine is in (e.g.
+       * `TRAINING` or `PAUSED`).
+       *
+       * Since part of the cost of running the service
+       * is frequency of training - this can be used to determine when to train
+       * engine in order to control cost. If not specified: the default value for
+       * `CreateEngine` method is `TRAINING`. The default value for
+       * `UpdateEngine` method is to keep the state the same as before.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @param value The trainingState to set. + * @return This builder for chaining. + */ + public Builder setTrainingState( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + trainingState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * The training state that the engine is in (e.g.
+       * `TRAINING` or `PAUSED`).
+       *
+       * Since part of the cost of running the service
+       * is frequency of training - this can be used to determine when to train
+       * engine in order to control cost. If not specified: the default value for
+       * `CreateEngine` method is `TRAINING`. The default value for
+       * `UpdateEngine` method is to keep the state the same as before.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearTrainingState() { + bitField0_ = (bitField0_ & ~0x00000008); + trainingState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + engineFeaturesConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder> + engineFeaturesConfigBuilder_; + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineFeaturesConfig field is set. + */ + public boolean hasEngineFeaturesConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineFeaturesConfig. + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getEngineFeaturesConfig() { + if (engineFeaturesConfigBuilder_ == null) { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } else { + return engineFeaturesConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEngineFeaturesConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + value) { + if (engineFeaturesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineFeaturesConfig_ = value; + } else { + engineFeaturesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEngineFeaturesConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder + builderForValue) { + if (engineFeaturesConfigBuilder_ == null) { + engineFeaturesConfig_ = builderForValue.build(); + } else { + engineFeaturesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEngineFeaturesConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + value) { + if (engineFeaturesConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && engineFeaturesConfig_ != null + && engineFeaturesConfig_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance()) { + getEngineFeaturesConfigBuilder().mergeFrom(value); + } else { + engineFeaturesConfig_ = value; + } + } else { + engineFeaturesConfigBuilder_.mergeFrom(value); + } + if (engineFeaturesConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEngineFeaturesConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + engineFeaturesConfig_ = null; + if (engineFeaturesConfigBuilder_ != null) { + engineFeaturesConfigBuilder_.dispose(); + engineFeaturesConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder + getEngineFeaturesConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetEngineFeaturesConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder + getEngineFeaturesConfigOrBuilder() { + if (engineFeaturesConfigBuilder_ != null) { + return engineFeaturesConfigBuilder_.getMessageOrBuilder(); + } else { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } + } + + /** + * + * + *
+       * Optional. Additional engine features config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder> + internalGetEngineFeaturesConfigFieldBuilder() { + if (engineFeaturesConfigBuilder_ == null) { + engineFeaturesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder>( + getEngineFeaturesConfig(), getParentForChildren(), isClean()); + engineFeaturesConfig_ = null; + } + return engineFeaturesConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaRecommendationEngineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChatEngineConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The configurationt generate the Dialogflow agent that is associated to
+     * this Engine.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return Whether the agentCreationConfig field is set. + */ + boolean hasAgentCreationConfig(); + + /** + * + * + *
+     * The configurationt generate the Dialogflow agent that is associated to
+     * this Engine.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return The agentCreationConfig. + */ + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + getAgentCreationConfig(); + + /** + * + * + *
+     * The configurationt generate the Dialogflow agent that is associated to
+     * this Engine.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder + getAgentCreationConfigOrBuilder(); + + /** + * + * + *
+     * The resource name of an exist Dialogflow agent to link to this Chat
+     * Engine. Customers can either provide `agent_creation_config` to create
+     * agent or provide an agent name that links the agent with the Chat engine.
+     *
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>`.
+     *
+     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+     * passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation. Use
+     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+     * for actual agent association after Engine is created.
+     * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return The dialogflowAgentToLink. + */ + java.lang.String getDialogflowAgentToLink(); + + /** + * + * + *
+     * The resource name of an exist Dialogflow agent to link to this Chat
+     * Engine. Customers can either provide `agent_creation_config` to create
+     * agent or provide an agent name that links the agent with the Chat engine.
+     *
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>`.
+     *
+     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+     * passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation. Use
+     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+     * for actual agent association after Engine is created.
+     * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return The bytes for dialogflowAgentToLink. + */ + com.google.protobuf.ByteString getDialogflowAgentToLinkBytes(); + + /** + * + * + *
+     * Optional. If the flag set to true, we allow the agent and engine are in
+     * different locations, otherwise the agent and engine are required to be in
+     * the same location. The flag is set to false by default.
+     *
+     * Note that the `allow_cross_region` are one-time consumed by and
+     * passed to
+     * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
+     * It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowCrossRegion. + */ + boolean getAllowCrossRegion(); + } + + /** + * + * + *
+   * Configurations for a Chat Engine.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineConfig} + */ + public static final class ChatEngineConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) + ChatEngineConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatEngineConfig"); + } + + // Use ChatEngineConfig.newBuilder() to construct. + private ChatEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatEngineConfig() { + dialogflowAgentToLink_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.class, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder.class); + } + + public interface AgentCreationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Name of the company, organization or other entity that the agent
+       * represents. Used for knowledge connector LLM prompt and for knowledge
+       * search.
+       * 
+ * + * string business = 1; + * + * @return The business. + */ + java.lang.String getBusiness(); + + /** + * + * + *
+       * Name of the company, organization or other entity that the agent
+       * represents. Used for knowledge connector LLM prompt and for knowledge
+       * search.
+       * 
+ * + * string business = 1; + * + * @return The bytes for business. + */ + com.google.protobuf.ByteString getBusinessBytes(); + + /** + * + * + *
+       * Required. The default language of the agent as a language tag.
+       * See [Language
+       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+       * for a list of the currently supported language codes.
+       * 
+ * + * string default_language_code = 2; + * + * @return The defaultLanguageCode. + */ + java.lang.String getDefaultLanguageCode(); + + /** + * + * + *
+       * Required. The default language of the agent as a language tag.
+       * See [Language
+       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+       * for a list of the currently supported language codes.
+       * 
+ * + * string default_language_code = 2; + * + * @return The bytes for defaultLanguageCode. + */ + com.google.protobuf.ByteString getDefaultLanguageCodeBytes(); + + /** + * + * + *
+       * Required. The time zone of the agent from the [time zone
+       * database](https://www.iana.org/time-zones), e.g., America/New_York,
+       * Europe/Paris.
+       * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + + /** + * + * + *
+       * Required. The time zone of the agent from the [time zone
+       * database](https://www.iana.org/time-zones), e.g., America/New_York,
+       * Europe/Paris.
+       * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+       * Agent location for Agent creation, supported values: global/us/eu.
+       * If not provided, us Engine will create Agent using us-central-1 by
+       * default; eu Engine will create Agent using eu-west-1 by default.
+       * 
+ * + * string location = 4; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
+       * Agent location for Agent creation, supported values: global/us/eu.
+       * If not provided, us Engine will create Agent using us-central-1 by
+       * default; eu Engine will create Agent using eu-west-1 by default.
+       * 
+ * + * string location = 4; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + } + + /** + * + * + *
+     * Configurations for generating a Dialogflow agent.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig} + */ + public static final class AgentCreationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + AgentCreationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentCreationConfig"); + } + + // Use AgentCreationConfig.newBuilder() to construct. + private AgentCreationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentCreationConfig() { + business_ = ""; + defaultLanguageCode_ = ""; + timeZone_ = ""; + location_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .class, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .Builder.class); + } + + public static final int BUSINESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object business_ = ""; + + /** + * + * + *
+       * Name of the company, organization or other entity that the agent
+       * represents. Used for knowledge connector LLM prompt and for knowledge
+       * search.
+       * 
+ * + * string business = 1; + * + * @return The business. + */ + @java.lang.Override + public java.lang.String getBusiness() { + java.lang.Object ref = business_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + business_ = s; + return s; + } + } + + /** + * + * + *
+       * Name of the company, organization or other entity that the agent
+       * represents. Used for knowledge connector LLM prompt and for knowledge
+       * search.
+       * 
+ * + * string business = 1; + * + * @return The bytes for business. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBusinessBytes() { + java.lang.Object ref = business_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + business_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguageCode_ = ""; + + /** + * + * + *
+       * Required. The default language of the agent as a language tag.
+       * See [Language
+       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+       * for a list of the currently supported language codes.
+       * 
+ * + * string default_language_code = 2; + * + * @return The defaultLanguageCode. + */ + @java.lang.Override + public java.lang.String getDefaultLanguageCode() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. The default language of the agent as a language tag.
+       * See [Language
+       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+       * for a list of the currently supported language codes.
+       * 
+ * + * string default_language_code = 2; + * + * @return The bytes for defaultLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + + /** + * + * + *
+       * Required. The time zone of the agent from the [time zone
+       * database](https://www.iana.org/time-zones), e.g., America/New_York,
+       * Europe/Paris.
+       * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. The time zone of the agent from the [time zone
+       * database](https://www.iana.org/time-zones), e.g., America/New_York,
+       * Europe/Paris.
+       * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
+       * Agent location for Agent creation, supported values: global/us/eu.
+       * If not provided, us Engine will create Agent using us-central-1 by
+       * default; eu Engine will create Agent using eu-west-1 by default.
+       * 
+ * + * string location = 4; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
+       * Agent location for Agent creation, supported values: global/us/eu.
+       * If not provided, us Engine will create Agent using us-central-1 by
+       * default; eu Engine will create Agent using eu-west-1 by default.
+       * 
+ * + * string location = 4; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, business_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, business_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, location_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig other = + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) obj; + + if (!getBusiness().equals(other.getBusiness())) return false; + if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getLocation().equals(other.getLocation())) 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) + BUSINESS_FIELD_NUMBER; + hash = (53 * hash) + getBusiness().hashCode(); + hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLanguageCode().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Configurations for generating a Dialogflow agent.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .class, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + business_ = ""; + defaultLanguageCode_ = ""; + timeZone_ = ""; + location_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + build() { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig result = + new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.business_ = business_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultLanguageCode_ = defaultLanguageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.location_ = location_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance()) return this; + if (!other.getBusiness().isEmpty()) { + business_ = other.business_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDefaultLanguageCode().isEmpty()) { + defaultLanguageCode_ = other.defaultLanguageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + 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: + { + business_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object business_ = ""; + + /** + * + * + *
+         * Name of the company, organization or other entity that the agent
+         * represents. Used for knowledge connector LLM prompt and for knowledge
+         * search.
+         * 
+ * + * string business = 1; + * + * @return The business. + */ + public java.lang.String getBusiness() { + java.lang.Object ref = business_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + business_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Name of the company, organization or other entity that the agent
+         * represents. Used for knowledge connector LLM prompt and for knowledge
+         * search.
+         * 
+ * + * string business = 1; + * + * @return The bytes for business. + */ + public com.google.protobuf.ByteString getBusinessBytes() { + java.lang.Object ref = business_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + business_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Name of the company, organization or other entity that the agent
+         * represents. Used for knowledge connector LLM prompt and for knowledge
+         * search.
+         * 
+ * + * string business = 1; + * + * @param value The business to set. + * @return This builder for chaining. + */ + public Builder setBusiness(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + business_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Name of the company, organization or other entity that the agent
+         * represents. Used for knowledge connector LLM prompt and for knowledge
+         * search.
+         * 
+ * + * string business = 1; + * + * @return This builder for chaining. + */ + public Builder clearBusiness() { + business_ = getDefaultInstance().getBusiness(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Name of the company, organization or other entity that the agent
+         * represents. Used for knowledge connector LLM prompt and for knowledge
+         * search.
+         * 
+ * + * string business = 1; + * + * @param value The bytes for business to set. + * @return This builder for chaining. + */ + public Builder setBusinessBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + business_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object defaultLanguageCode_ = ""; + + /** + * + * + *
+         * Required. The default language of the agent as a language tag.
+         * See [Language
+         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+         * for a list of the currently supported language codes.
+         * 
+ * + * string default_language_code = 2; + * + * @return The defaultLanguageCode. + */ + public java.lang.String getDefaultLanguageCode() { + java.lang.Object ref = defaultLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The default language of the agent as a language tag.
+         * See [Language
+         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+         * for a list of the currently supported language codes.
+         * 
+ * + * string default_language_code = 2; + * + * @return The bytes for defaultLanguageCode. + */ + public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The default language of the agent as a language tag.
+         * See [Language
+         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+         * for a list of the currently supported language codes.
+         * 
+ * + * string default_language_code = 2; + * + * @param value The defaultLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The default language of the agent as a language tag.
+         * See [Language
+         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+         * for a list of the currently supported language codes.
+         * 
+ * + * string default_language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearDefaultLanguageCode() { + defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The default language of the agent as a language tag.
+         * See [Language
+         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
+         * for a list of the currently supported language codes.
+         * 
+ * + * string default_language_code = 2; + * + * @param value The bytes for defaultLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + + /** + * + * + *
+         * Required. The time zone of the agent from the [time zone
+         * database](https://www.iana.org/time-zones), e.g., America/New_York,
+         * Europe/Paris.
+         * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The time zone of the agent from the [time zone
+         * database](https://www.iana.org/time-zones), e.g., America/New_York,
+         * Europe/Paris.
+         * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The time zone of the agent from the [time zone
+         * database](https://www.iana.org/time-zones), e.g., America/New_York,
+         * Europe/Paris.
+         * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The time zone of the agent from the [time zone
+         * database](https://www.iana.org/time-zones), e.g., America/New_York,
+         * Europe/Paris.
+         * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The time zone of the agent from the [time zone
+         * database](https://www.iana.org/time-zones), e.g., America/New_York,
+         * Europe/Paris.
+         * 
+ * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
+         * Agent location for Agent creation, supported values: global/us/eu.
+         * If not provided, us Engine will create Agent using us-central-1 by
+         * default; eu Engine will create Agent using eu-west-1 by default.
+         * 
+ * + * string location = 4; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Agent location for Agent creation, supported values: global/us/eu.
+         * If not provided, us Engine will create Agent using us-central-1 by
+         * default; eu Engine will create Agent using eu-west-1 by default.
+         * 
+ * + * string location = 4; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Agent location for Agent creation, supported values: global/us/eu.
+         * If not provided, us Engine will create Agent using us-central-1 by
+         * default; eu Engine will create Agent using eu-west-1 by default.
+         * 
+ * + * string location = 4; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Agent location for Agent creation, supported values: global/us/eu.
+         * If not provided, us Engine will create Agent using us-central-1 by
+         * default; eu Engine will create Agent using eu-west-1 by default.
+         * 
+ * + * string location = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+         * Agent location for Agent creation, supported values: global/us/eu.
+         * If not provided, us Engine will create Agent using us-central-1 by
+         * default; eu Engine will create Agent using eu-west-1 by default.
+         * 
+ * + * string location = 4; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + .AgentCreationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCreationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int AGENT_CREATION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + agentCreationConfig_; + + /** + * + * + *
+     * The configurationt generate the Dialogflow agent that is associated to
+     * this Engine.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return Whether the agentCreationConfig field is set. + */ + @java.lang.Override + public boolean hasAgentCreationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The configurationt generate the Dialogflow agent that is associated to
+     * this Engine.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return The agentCreationConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + getAgentCreationConfig() { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } + + /** + * + * + *
+     * The configurationt generate the Dialogflow agent that is associated to
+     * this Engine.
+     *
+     * Note that these configurations are one-time consumed by
+     * and passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder + getAgentCreationConfigOrBuilder() { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } + + public static final int DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dialogflowAgentToLink_ = ""; + + /** + * + * + *
+     * The resource name of an exist Dialogflow agent to link to this Chat
+     * Engine. Customers can either provide `agent_creation_config` to create
+     * agent or provide an agent name that links the agent with the Chat engine.
+     *
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>`.
+     *
+     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+     * passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation. Use
+     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+     * for actual agent association after Engine is created.
+     * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return The dialogflowAgentToLink. + */ + @java.lang.Override + public java.lang.String getDialogflowAgentToLink() { + java.lang.Object ref = dialogflowAgentToLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dialogflowAgentToLink_ = s; + return s; + } + } + + /** + * + * + *
+     * The resource name of an exist Dialogflow agent to link to this Chat
+     * Engine. Customers can either provide `agent_creation_config` to create
+     * agent or provide an agent name that links the agent with the Chat engine.
+     *
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>`.
+     *
+     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+     * passed to Dialogflow service. It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation. Use
+     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+     * for actual agent association after Engine is created.
+     * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return The bytes for dialogflowAgentToLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { + java.lang.Object ref = dialogflowAgentToLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dialogflowAgentToLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_CROSS_REGION_FIELD_NUMBER = 3; + private boolean allowCrossRegion_ = false; + + /** + * + * + *
+     * Optional. If the flag set to true, we allow the agent and engine are in
+     * different locations, otherwise the agent and engine are required to be in
+     * the same location. The flag is set to false by default.
+     *
+     * Note that the `allow_cross_region` are one-time consumed by and
+     * passed to
+     * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
+     * It means they cannot be retrieved using
+     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+     * or
+     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+     * API after engine creation.
+     * 
+ * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowCrossRegion. + */ + @java.lang.Override + public boolean getAllowCrossRegion() { + return allowCrossRegion_; + } + + 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, getAgentCreationConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dialogflowAgentToLink_); + } + if (allowCrossRegion_ != false) { + output.writeBool(3, allowCrossRegion_); + } + 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, getAgentCreationConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dialogflowAgentToLink_); + } + if (allowCrossRegion_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowCrossRegion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig other = + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) obj; + + if (hasAgentCreationConfig() != other.hasAgentCreationConfig()) return false; + if (hasAgentCreationConfig()) { + if (!getAgentCreationConfig().equals(other.getAgentCreationConfig())) return false; + } + if (!getDialogflowAgentToLink().equals(other.getDialogflowAgentToLink())) return false; + if (getAllowCrossRegion() != other.getAllowCrossRegion()) 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 (hasAgentCreationConfig()) { + hash = (37 * hash) + AGENT_CREATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentCreationConfig().hashCode(); + } + hash = (37 * hash) + DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDialogflowAgentToLink().hashCode(); + hash = (37 * hash) + ALLOW_CROSS_REGION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCrossRegion()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configurations for a Chat Engine.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.class, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentCreationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentCreationConfig_ = null; + if (agentCreationConfigBuilder_ != null) { + agentCreationConfigBuilder_.dispose(); + agentCreationConfigBuilder_ = null; + } + dialogflowAgentToLink_ = ""; + allowCrossRegion_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig build() { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig result = + new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentCreationConfig_ = + agentCreationConfigBuilder_ == null + ? agentCreationConfig_ + : agentCreationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dialogflowAgentToLink_ = dialogflowAgentToLink_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowCrossRegion_ = allowCrossRegion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance()) + return this; + if (other.hasAgentCreationConfig()) { + mergeAgentCreationConfig(other.getAgentCreationConfig()); + } + if (!other.getDialogflowAgentToLink().isEmpty()) { + dialogflowAgentToLink_ = other.dialogflowAgentToLink_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAllowCrossRegion() != false) { + setAllowCrossRegion(other.getAllowCrossRegion()); + } + 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( + internalGetAgentCreationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dialogflowAgentToLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + allowCrossRegion_ = input.readBool(); + 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.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + agentCreationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder> + agentCreationConfigBuilder_; + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return Whether the agentCreationConfig field is set. + */ + public boolean hasAgentCreationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return The agentCreationConfig. + */ + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + getAgentCreationConfig() { + if (agentCreationConfigBuilder_ == null) { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } else { + return agentCreationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder setAgentCreationConfig( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig value) { + if (agentCreationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentCreationConfig_ = value; + } else { + agentCreationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder setAgentCreationConfig( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig.Builder + builderForValue) { + if (agentCreationConfigBuilder_ == null) { + agentCreationConfig_ = builderForValue.build(); + } else { + agentCreationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder mergeAgentCreationConfig( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig value) { + if (agentCreationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && agentCreationConfig_ != null + && agentCreationConfig_ + != com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance()) { + getAgentCreationConfigBuilder().mergeFrom(value); + } else { + agentCreationConfig_ = value; + } + } else { + agentCreationConfigBuilder_.mergeFrom(value); + } + if (agentCreationConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder clearAgentCreationConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + agentCreationConfig_ = null; + if (agentCreationConfigBuilder_ != null) { + agentCreationConfigBuilder_.dispose(); + agentCreationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig.Builder + getAgentCreationConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAgentCreationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder + getAgentCreationConfigOrBuilder() { + if (agentCreationConfigBuilder_ != null) { + return agentCreationConfigBuilder_.getMessageOrBuilder(); + } else { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } + } + + /** + * + * + *
+       * The configurationt generate the Dialogflow agent that is associated to
+       * this Engine.
+       *
+       * Note that these configurations are one-time consumed by
+       * and passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder> + internalGetAgentCreationConfigFieldBuilder() { + if (agentCreationConfigBuilder_ == null) { + agentCreationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig + .Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder>( + getAgentCreationConfig(), getParentForChildren(), isClean()); + agentCreationConfig_ = null; + } + return agentCreationConfigBuilder_; + } + + private java.lang.Object dialogflowAgentToLink_ = ""; + + /** + * + * + *
+       * The resource name of an exist Dialogflow agent to link to this Chat
+       * Engine. Customers can either provide `agent_creation_config` to create
+       * agent or provide an agent name that links the agent with the Chat engine.
+       *
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
+       *
+       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+       * passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation. Use
+       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+       * for actual agent association after Engine is created.
+       * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return The dialogflowAgentToLink. + */ + public java.lang.String getDialogflowAgentToLink() { + java.lang.Object ref = dialogflowAgentToLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dialogflowAgentToLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The resource name of an exist Dialogflow agent to link to this Chat
+       * Engine. Customers can either provide `agent_creation_config` to create
+       * agent or provide an agent name that links the agent with the Chat engine.
+       *
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
+       *
+       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+       * passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation. Use
+       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+       * for actual agent association after Engine is created.
+       * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return The bytes for dialogflowAgentToLink. + */ + public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { + java.lang.Object ref = dialogflowAgentToLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dialogflowAgentToLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The resource name of an exist Dialogflow agent to link to this Chat
+       * Engine. Customers can either provide `agent_creation_config` to create
+       * agent or provide an agent name that links the agent with the Chat engine.
+       *
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
+       *
+       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+       * passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation. Use
+       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+       * for actual agent association after Engine is created.
+       * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @param value The dialogflowAgentToLink to set. + * @return This builder for chaining. + */ + public Builder setDialogflowAgentToLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dialogflowAgentToLink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The resource name of an exist Dialogflow agent to link to this Chat
+       * Engine. Customers can either provide `agent_creation_config` to create
+       * agent or provide an agent name that links the agent with the Chat engine.
+       *
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
+       *
+       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+       * passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation. Use
+       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+       * for actual agent association after Engine is created.
+       * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @return This builder for chaining. + */ + public Builder clearDialogflowAgentToLink() { + dialogflowAgentToLink_ = getDefaultInstance().getDialogflowAgentToLink(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The resource name of an exist Dialogflow agent to link to this Chat
+       * Engine. Customers can either provide `agent_creation_config` to create
+       * agent or provide an agent name that links the agent with the Chat engine.
+       *
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
+       *
+       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
+       * passed to Dialogflow service. It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation. Use
+       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
+       * for actual agent association after Engine is created.
+       * 
+ * + * string dialogflow_agent_to_link = 2; + * + * @param value The bytes for dialogflowAgentToLink to set. + * @return This builder for chaining. + */ + public Builder setDialogflowAgentToLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dialogflowAgentToLink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean allowCrossRegion_; + + /** + * + * + *
+       * Optional. If the flag set to true, we allow the agent and engine are in
+       * different locations, otherwise the agent and engine are required to be in
+       * the same location. The flag is set to false by default.
+       *
+       * Note that the `allow_cross_region` are one-time consumed by and
+       * passed to
+       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
+       * It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowCrossRegion. + */ + @java.lang.Override + public boolean getAllowCrossRegion() { + return allowCrossRegion_; + } + + /** + * + * + *
+       * Optional. If the flag set to true, we allow the agent and engine are in
+       * different locations, otherwise the agent and engine are required to be in
+       * the same location. The flag is set to false by default.
+       *
+       * Note that the `allow_cross_region` are one-time consumed by and
+       * passed to
+       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
+       * It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowCrossRegion to set. + * @return This builder for chaining. + */ + public Builder setAllowCrossRegion(boolean value) { + + allowCrossRegion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If the flag set to true, we allow the agent and engine are in
+       * different locations, otherwise the agent and engine are required to be in
+       * the same location. The flag is set to false by default.
+       *
+       * Note that the `allow_cross_region` are one-time consumed by and
+       * passed to
+       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
+       * It means they cannot be retrieved using
+       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
+       * or
+       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
+       * API after engine creation.
+       * 
+ * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowCrossRegion() { + bitField0_ = (bitField0_ & ~0x00000004); + allowCrossRegion_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatEngineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CommonConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.CommonConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the company, business or entity that is associated with the
+     * engine. Setting this may help improve LLM related features.
+     * 
+ * + * string company_name = 1; + * + * @return The companyName. + */ + java.lang.String getCompanyName(); + + /** + * + * + *
+     * The name of the company, business or entity that is associated with the
+     * engine. Setting this may help improve LLM related features.
+     * 
+ * + * string company_name = 1; + * + * @return The bytes for companyName. + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + } + + /** + * + * + *
+   * Common configurations for an Engine.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.CommonConfig} + */ + public static final class CommonConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.CommonConfig) + CommonConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CommonConfig"); + } + + // Use CommonConfig.newBuilder() to construct. + private CommonConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CommonConfig() { + companyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.class, + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder.class); + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object companyName_ = ""; + + /** + * + * + *
+     * The name of the company, business or entity that is associated with the
+     * engine. Setting this may help improve LLM related features.
+     * 
+ * + * string company_name = 1; + * + * @return The companyName. + */ + @java.lang.Override + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the company, business or entity that is associated with the
+     * engine. Setting this may help improve LLM related features.
+     * 
+ * + * string company_name = 1; + * + * @return The bytes for companyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, companyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, companyName_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.CommonConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.CommonConfig other = + (com.google.cloud.discoveryengine.v1.Engine.CommonConfig) obj; + + if (!getCompanyName().equals(other.getCompanyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5696,99 +11288,81 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_FIELD_NUMBER; - hash = (53 * hash) + getOptimizationObjective().hashCode(); - if (hasOptimizationObjectiveConfig()) { - hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getOptimizationObjectiveConfig().hashCode(); - } - hash = (37 * hash) + TRAINING_STATE_FIELD_NUMBER; - hash = (53 * hash) + trainingState_; - if (hasEngineFeaturesConfig()) { - hash = (37 * hash) + ENGINE_FEATURES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEngineFeaturesConfig().hashCode(); - } + hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -5803,7 +11377,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig prototype) { + com.google.cloud.discoveryengine.v1.Engine.CommonConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5822,86 +11396,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * Additional config specs for a Media Recommendation engine.
+     * Common configurations for an Engine.
      * 
* - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig} + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.CommonConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.CommonConfig) + com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.class, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder - .class); + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.class, + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using com.google.cloud.discoveryengine.v1.Engine.CommonConfig.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetOptimizationObjectiveConfigFieldBuilder(); - internalGetEngineFeaturesConfigFieldBuilder(); - } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - type_ = ""; - optimizationObjective_ = ""; - optimizationObjectiveConfig_ = null; - if (optimizationObjectiveConfigBuilder_ != null) { - optimizationObjectiveConfigBuilder_.dispose(); - optimizationObjectiveConfigBuilder_ = null; - } - trainingState_ = 0; - engineFeaturesConfig_ = null; - if (engineFeaturesConfigBuilder_ != null) { - engineFeaturesConfigBuilder_.dispose(); - engineFeaturesConfigBuilder_ = null; - } + companyName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig build() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig result = - buildPartial(); + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig build() { + com.google.cloud.discoveryengine.v1.Engine.CommonConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5909,10 +11456,9 @@ public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfi } @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig result = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig(this); + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.CommonConfig result = + new com.google.cloud.discoveryengine.v1.Engine.CommonConfig(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -5920,72 +11466,31 @@ public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfi return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig result) { + private void buildPartial0(com.google.cloud.discoveryengine.v1.Engine.CommonConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.optimizationObjective_ = optimizationObjective_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.optimizationObjectiveConfig_ = - optimizationObjectiveConfigBuilder_ == null - ? optimizationObjectiveConfig_ - : optimizationObjectiveConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.trainingState_ = trainingState_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.engineFeaturesConfig_ = - engineFeaturesConfigBuilder_ == null - ? engineFeaturesConfig_ - : engineFeaturesConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; + result.companyName_ = companyName_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) other); + if (other instanceof com.google.cloud.discoveryengine.v1.Engine.CommonConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.CommonConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine.CommonConfig other) { + if (other == com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance()) + return this; + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getOptimizationObjective().isEmpty()) { - optimizationObjective_ = other.optimizationObjective_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasOptimizationObjectiveConfig()) { - mergeOptimizationObjectiveConfig(other.getOptimizationObjectiveConfig()); - } - if (other.trainingState_ != 0) { - setTrainingStateValue(other.getTrainingStateValue()); - } - if (other.hasEngineFeaturesConfig()) { - mergeEngineFeaturesConfig(other.getEngineFeaturesConfig()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6014,38 +11519,10 @@ public Builder mergeFrom( break; case 10: { - type_ = input.readStringRequireUtf8(); + companyName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: - { - optimizationObjective_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetOptimizationObjectiveConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - trainingState_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetEngineFeaturesConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6056,194 +11533,35 @@ public Builder mergeFrom( } // 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 type_ = ""; - - /** - * - * - *
-       * Required. The type of engine. e.g., `recommended-for-you`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-       * `more-like-this`, `most-popular-items`.
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The type. - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Required. The type of engine. e.g., `recommended-for-you`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-       * `more-like-this`, `most-popular-items`.
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for type. - */ - public com.google.protobuf.ByteString getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Required. The type of engine. e.g., `recommended-for-you`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-       * `more-like-this`, `most-popular-items`.
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Required. The type of engine. e.g., `recommended-for-you`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-       * `more-like-this`, `most-popular-items`.
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Required. The type of engine. e.g., `recommended-for-you`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.optimization_objective]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
-       * `more-like-this`, `most-popular-items`.
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for type to set. - * @return This builder for chaining. - */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } - private java.lang.Object optimizationObjective_ = ""; + private int bitField0_; + + private java.lang.Object companyName_ = ""; /** * * *
-       * The optimization objective. e.g., `cvr`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported
-       * values: `ctr`, `cvr`.
-       *
-       * If not specified, we choose default based on engine type.
-       * Default depends on type of recommendation:
-       *
-       * `recommended-for-you` => `ctr`
-       *
-       * `others-you-may-like` => `ctr`
+       * The name of the company, business or entity that is associated with the
+       * engine. Setting this may help improve LLM related features.
        * 
* - * string optimization_objective = 2; + * string company_name = 1; * - * @return The optimizationObjective. + * @return The companyName. */ - public java.lang.String getOptimizationObjective() { - java.lang.Object ref = optimizationObjective_; + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - optimizationObjective_ = s; + companyName_ = s; return s; } else { return (java.lang.String) ref; @@ -6254,33 +11572,20 @@ public java.lang.String getOptimizationObjective() { * * *
-       * The optimization objective. e.g., `cvr`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported
-       * values: `ctr`, `cvr`.
-       *
-       * If not specified, we choose default based on engine type.
-       * Default depends on type of recommendation:
-       *
-       * `recommended-for-you` => `ctr`
-       *
-       * `others-you-may-like` => `ctr`
+       * The name of the company, business or entity that is associated with the
+       * engine. Setting this may help improve LLM related features.
        * 
* - * string optimization_objective = 2; + * string company_name = 1; * - * @return The bytes for optimizationObjective. + * @return The bytes for companyName. */ - public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { - java.lang.Object ref = optimizationObjective_; + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - optimizationObjective_ = b; + companyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6291,204 +11596,21 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { * * *
-       * The optimization objective. e.g., `cvr`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported
-       * values: `ctr`, `cvr`.
-       *
-       * If not specified, we choose default based on engine type.
-       * Default depends on type of recommendation:
-       *
-       * `recommended-for-you` => `ctr`
-       *
-       * `others-you-may-like` => `ctr`
-       * 
- * - * string optimization_objective = 2; - * - * @param value The optimizationObjective to set. - * @return This builder for chaining. - */ - public Builder setOptimizationObjective(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - optimizationObjective_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The optimization objective. e.g., `cvr`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported
-       * values: `ctr`, `cvr`.
-       *
-       * If not specified, we choose default based on engine type.
-       * Default depends on type of recommendation:
-       *
-       * `recommended-for-you` => `ctr`
-       *
-       * `others-you-may-like` => `ctr`
-       * 
- * - * string optimization_objective = 2; - * - * @return This builder for chaining. - */ - public Builder clearOptimizationObjective() { - optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * The optimization objective. e.g., `cvr`.
-       *
-       * This field together with
-       * [optimization_objective][google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.type]
-       * describe engine metadata to use to control engine training and serving.
-       *
-       * Currently supported
-       * values: `ctr`, `cvr`.
-       *
-       * If not specified, we choose default based on engine type.
-       * Default depends on type of recommendation:
-       *
-       * `recommended-for-you` => `ctr`
-       *
-       * `others-you-may-like` => `ctr`
+       * The name of the company, business or entity that is associated with the
+       * engine. Setting this may help improve LLM related features.
        * 
* - * string optimization_objective = 2; + * string company_name = 1; * - * @param value The bytes for optimizationObjective to set. + * @param value The companyName to set. * @return This builder for chaining. */ - public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { + public Builder setCompanyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - optimizationObjective_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - optimizationObjectiveConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder> - optimizationObjectiveConfigBuilder_; - - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - * - * @return Whether the optimizationObjectiveConfig field is set. - */ - public boolean hasOptimizationObjectiveConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - * - * @return The optimizationObjectiveConfig. - */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - getOptimizationObjectiveConfig() { - if (optimizationObjectiveConfigBuilder_ == null) { - return optimizationObjectiveConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance() - : optimizationObjectiveConfig_; - } else { - return optimizationObjectiveConfigBuilder_.getMessage(); - } - } - - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - */ - public Builder setOptimizationObjectiveConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - value) { - if (optimizationObjectiveConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - optimizationObjectiveConfig_ = value; - } else { - optimizationObjectiveConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; + companyName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6497,29 +11619,17 @@ public Builder setOptimizationObjectiveConfig( * * *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
+       * The name of the company, business or entity that is associated with the
+       * engine. Setting this may help improve LLM related features.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * + * string company_name = 1; + * + * @return This builder for chaining. */ - public Builder setOptimizationObjectiveConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder - builderForValue) { - if (optimizationObjectiveConfigBuilder_ == null) { - optimizationObjectiveConfig_ = builderForValue.build(); - } else { - optimizationObjectiveConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; + public Builder clearCompanyName() { + companyName_ = getDefaultInstance().getCompanyName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -6528,2330 +11638,2844 @@ public Builder setOptimizationObjectiveConfig( * * *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
+       * The name of the company, business or entity that is associated with the
+       * engine. Setting this may help improve LLM related features.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * + * string company_name = 1; + * + * @param value The bytes for companyName to set. + * @return This builder for chaining. */ - public Builder mergeOptimizationObjectiveConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig - value) { - if (optimizationObjectiveConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && optimizationObjectiveConfig_ != null - && optimizationObjectiveConfig_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance()) { - getOptimizationObjectiveConfigBuilder().mergeFrom(value); - } else { - optimizationObjectiveConfig_ = value; - } - } else { - optimizationObjectiveConfigBuilder_.mergeFrom(value); - } - if (optimizationObjectiveConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + companyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - */ - public Builder clearOptimizationObjectiveConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - optimizationObjectiveConfig_ = null; - if (optimizationObjectiveConfigBuilder_ != null) { - optimizationObjectiveConfigBuilder_.dispose(); - optimizationObjectiveConfigBuilder_ = null; - } - onChanged(); - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.CommonConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.CommonConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.CommonConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.CommonConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnowledgeGraphConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Whether to enable the Cloud Knowledge Graph for the engine.
+     *
+     * Defaults to false if not specified.
+     * 
+ * + * bool enable_cloud_knowledge_graph = 1; + * + * @return The enableCloudKnowledgeGraph. + */ + boolean getEnableCloudKnowledgeGraph(); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return A list containing the cloudKnowledgeGraphTypes. + */ + java.util.List getCloudKnowledgeGraphTypesList(); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return The count of cloudKnowledgeGraphTypes. + */ + int getCloudKnowledgeGraphTypesCount(); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the element to return. + * @return The cloudKnowledgeGraphTypes at the given index. + */ + java.lang.String getCloudKnowledgeGraphTypes(int index); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the value to return. + * @return The bytes of the cloudKnowledgeGraphTypes at the given index. + */ + com.google.protobuf.ByteString getCloudKnowledgeGraphTypesBytes(int index); + + /** + * + * + *
+     * Whether to enable the Private Knowledge Graph for the engine.
+     *
+     * Defaults to false if not specified.
+     * 
+ * + * bool enable_private_knowledge_graph = 3; + * + * @return The enablePrivateKnowledgeGraph. + */ + boolean getEnablePrivateKnowledgeGraph(); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return A list containing the privateKnowledgeGraphTypes. + */ + java.util.List getPrivateKnowledgeGraphTypesList(); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return The count of privateKnowledgeGraphTypes. + */ + int getPrivateKnowledgeGraphTypesCount(); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the element to return. + * @return The privateKnowledgeGraphTypes at the given index. + */ + java.lang.String getPrivateKnowledgeGraphTypes(int index); + + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the privateKnowledgeGraphTypes at the given index. + */ + com.google.protobuf.ByteString getPrivateKnowledgeGraphTypesBytes(int index); + + /** + * + * + *
+     * Optional. Feature config for the Knowledge Graph.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureConfig field is set. + */ + boolean hasFeatureConfig(); + + /** + * + * + *
+     * Optional. Feature config for the Knowledge Graph.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureConfig. + */ + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + getFeatureConfig(); + + /** + * + * + *
+     * Optional. Feature config for the Knowledge Graph.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder + getFeatureConfigOrBuilder(); + } + + /** + * + * + *
+   * Configuration message for the Knowledge Graph.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig} + */ + public static final class KnowledgeGraphConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) + KnowledgeGraphConfigOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder - getOptimizationObjectiveConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetOptimizationObjectiveConfigFieldBuilder().getBuilder(); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "KnowledgeGraphConfig"); + } - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder - getOptimizationObjectiveConfigOrBuilder() { - if (optimizationObjectiveConfigBuilder_ != null) { - return optimizationObjectiveConfigBuilder_.getMessageOrBuilder(); - } else { - return optimizationObjectiveConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.getDefaultInstance() - : optimizationObjectiveConfig_; - } - } + // Use KnowledgeGraphConfig.newBuilder() to construct. + private KnowledgeGraphConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-       * Name and value of the custom threshold for cvr optimization_objective.
-       * For target_field `watch-time`, target_field_value must be an integer
-       * value indicating the media progress time in seconds between (0, 86400]
-       * (excludes 0, includes 86400) (e.g., 90).
-       * For target_field `watch-percentage`, the target_field_value must be a
-       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
-       * 0.5).
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder> - internalGetOptimizationObjectiveConfigFieldBuilder() { - if (optimizationObjectiveConfigBuilder_ == null) { - optimizationObjectiveConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .OptimizationObjectiveConfigOrBuilder>( - getOptimizationObjectiveConfig(), getParentForChildren(), isClean()); - optimizationObjectiveConfig_ = null; - } - return optimizationObjectiveConfigBuilder_; - } + private KnowledgeGraphConfig() { + cloudKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + privateKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - private int trainingState_ = 0; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.class, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder.class); + } + + public interface FeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) + com.google.protobuf.MessageOrBuilder { /** * * *
-       * The training state that the engine is in (e.g.
-       * `TRAINING` or `PAUSED`).
+       * Whether to disable the private KG query understanding for the engine.
        *
-       * Since part of the cost of running the service
-       * is frequency of training - this can be used to determine when to train
-       * engine in order to control cost. If not specified: the default value for
-       * `CreateEngine` method is `TRAINING`. The default value for
-       * `UpdateEngine` method is to keep the state the same as before.
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * bool disable_private_kg_query_understanding = 1; * - * @return The enum numeric value on the wire for trainingState. + * @return The disablePrivateKgQueryUnderstanding. */ - @java.lang.Override - public int getTrainingStateValue() { - return trainingState_; - } + boolean getDisablePrivateKgQueryUnderstanding(); /** * * *
-       * The training state that the engine is in (e.g.
-       * `TRAINING` or `PAUSED`).
+       * Whether to disable the private KG enrichment for the engine.
        *
-       * Since part of the cost of running the service
-       * is frequency of training - this can be used to determine when to train
-       * engine in order to control cost. If not specified: the default value for
-       * `CreateEngine` method is `TRAINING`. The default value for
-       * `UpdateEngine` method is to keep the state the same as before.
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * bool disable_private_kg_enrichment = 2; * - * @param value The enum numeric value on the wire for trainingState to set. - * @return This builder for chaining. + * @return The disablePrivateKgEnrichment. */ - public Builder setTrainingStateValue(int value) { - trainingState_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + boolean getDisablePrivateKgEnrichment(); /** * * *
-       * The training state that the engine is in (e.g.
-       * `TRAINING` or `PAUSED`).
+       * Whether to disable the private KG auto complete for the engine.
        *
-       * Since part of the cost of running the service
-       * is frequency of training - this can be used to determine when to train
-       * engine in order to control cost. If not specified: the default value for
-       * `CreateEngine` method is `TRAINING`. The default value for
-       * `UpdateEngine` method is to keep the state the same as before.
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * bool disable_private_kg_auto_complete = 3; * - * @return The trainingState. + * @return The disablePrivateKgAutoComplete. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .TrainingState - getTrainingState() { - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState - result = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .TrainingState.forNumber(trainingState_); - return result == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .TrainingState.UNRECOGNIZED - : result; - } + boolean getDisablePrivateKgAutoComplete(); /** * * *
-       * The training state that the engine is in (e.g.
-       * `TRAINING` or `PAUSED`).
+       * Whether to disable the private KG for query UI chips.
        *
-       * Since part of the cost of running the service
-       * is frequency of training - this can be used to determine when to train
-       * engine in order to control cost. If not specified: the default value for
-       * `CreateEngine` method is `TRAINING`. The default value for
-       * `UpdateEngine` method is to keep the state the same as before.
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * bool disable_private_kg_query_ui_chips = 4; * - * @param value The trainingState to set. - * @return This builder for chaining. + * @return The disablePrivateKgQueryUiChips. */ - public Builder setTrainingState( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - trainingState_ = value.getNumber(); - onChanged(); - return this; + boolean getDisablePrivateKgQueryUiChips(); + } + + /** + * + * + *
+     * Feature config for the Knowledge Graph.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig} + */ + public static final class FeatureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) + FeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FeatureConfig"); + } + + // Use FeatureConfig.newBuilder() to construct. + private FeatureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FeatureConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig.class, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder.class); } + public static final int DISABLE_PRIVATE_KG_QUERY_UNDERSTANDING_FIELD_NUMBER = 1; + private boolean disablePrivateKgQueryUnderstanding_ = false; + /** * * *
-       * The training state that the engine is in (e.g.
-       * `TRAINING` or `PAUSED`).
+       * Whether to disable the private KG query understanding for the engine.
        *
-       * Since part of the cost of running the service
-       * is frequency of training - this can be used to determine when to train
-       * engine in order to control cost. If not specified: the default value for
-       * `CreateEngine` method is `TRAINING`. The default value for
-       * `UpdateEngine` method is to keep the state the same as before.
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; - * + * bool disable_private_kg_query_understanding = 1; * - * @return This builder for chaining. + * @return The disablePrivateKgQueryUnderstanding. */ - public Builder clearTrainingState() { - bitField0_ = (bitField0_ & ~0x00000008); - trainingState_ = 0; - onChanged(); - return this; + @java.lang.Override + public boolean getDisablePrivateKgQueryUnderstanding() { + return disablePrivateKgQueryUnderstanding_; } - private com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - engineFeaturesConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder> - engineFeaturesConfigBuilder_; + public static final int DISABLE_PRIVATE_KG_ENRICHMENT_FIELD_NUMBER = 2; + private boolean disablePrivateKgEnrichment_ = false; /** * * *
-       * Optional. Additional engine features config.
+       * Whether to disable the private KG enrichment for the engine.
+       *
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_private_kg_enrichment = 2; * - * @return Whether the engineFeaturesConfig field is set. + * @return The disablePrivateKgEnrichment. */ - public boolean hasEngineFeaturesConfig() { - return ((bitField0_ & 0x00000010) != 0); + @java.lang.Override + public boolean getDisablePrivateKgEnrichment() { + return disablePrivateKgEnrichment_; } + public static final int DISABLE_PRIVATE_KG_AUTO_COMPLETE_FIELD_NUMBER = 3; + private boolean disablePrivateKgAutoComplete_ = false; + /** * * *
-       * Optional. Additional engine features config.
+       * Whether to disable the private KG auto complete for the engine.
+       *
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_private_kg_auto_complete = 3; * - * @return The engineFeaturesConfig. + * @return The disablePrivateKgAutoComplete. */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - getEngineFeaturesConfig() { - if (engineFeaturesConfigBuilder_ == null) { - return engineFeaturesConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance() - : engineFeaturesConfig_; - } else { - return engineFeaturesConfigBuilder_.getMessage(); - } + @java.lang.Override + public boolean getDisablePrivateKgAutoComplete() { + return disablePrivateKgAutoComplete_; } + public static final int DISABLE_PRIVATE_KG_QUERY_UI_CHIPS_FIELD_NUMBER = 4; + private boolean disablePrivateKgQueryUiChips_ = false; + /** * * *
-       * Optional. Additional engine features config.
+       * Whether to disable the private KG for query UI chips.
+       *
+       * Defaults to false if not specified.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return The disablePrivateKgQueryUiChips. */ - public Builder setEngineFeaturesConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - value) { - if (engineFeaturesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineFeaturesConfig_ = value; - } else { - engineFeaturesConfigBuilder_.setMessage(value); + @java.lang.Override + public boolean getDisablePrivateKgQueryUiChips() { + return disablePrivateKgQueryUiChips_; + } + + 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 (disablePrivateKgQueryUnderstanding_ != false) { + output.writeBool(1, disablePrivateKgQueryUnderstanding_); } - bitField0_ |= 0x00000010; - onChanged(); - return this; + if (disablePrivateKgEnrichment_ != false) { + output.writeBool(2, disablePrivateKgEnrichment_); + } + if (disablePrivateKgAutoComplete_ != false) { + output.writeBool(3, disablePrivateKgAutoComplete_); + } + if (disablePrivateKgQueryUiChips_ != false) { + output.writeBool(4, disablePrivateKgQueryUiChips_); + } + getUnknownFields().writeTo(output); } - /** - * - * - *
-       * Optional. Additional engine features config.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEngineFeaturesConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder - builderForValue) { - if (engineFeaturesConfigBuilder_ == null) { - engineFeaturesConfig_ = builderForValue.build(); - } else { - engineFeaturesConfigBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disablePrivateKgQueryUnderstanding_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, disablePrivateKgQueryUnderstanding_); } - bitField0_ |= 0x00000010; - onChanged(); - return this; + if (disablePrivateKgEnrichment_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, disablePrivateKgEnrichment_); + } + if (disablePrivateKgAutoComplete_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, disablePrivateKgAutoComplete_); + } + if (disablePrivateKgQueryUiChips_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, disablePrivateKgQueryUiChips_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig other = + (com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) obj; + + if (getDisablePrivateKgQueryUnderstanding() + != other.getDisablePrivateKgQueryUnderstanding()) return false; + if (getDisablePrivateKgEnrichment() != other.getDisablePrivateKgEnrichment()) return false; + if (getDisablePrivateKgAutoComplete() != other.getDisablePrivateKgAutoComplete()) + return false; + if (getDisablePrivateKgQueryUiChips() != other.getDisablePrivateKgQueryUiChips()) + 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) + DISABLE_PRIVATE_KG_QUERY_UNDERSTANDING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgQueryUnderstanding()); + hash = (37 * hash) + DISABLE_PRIVATE_KG_ENRICHMENT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgEnrichment()); + hash = (37 * hash) + DISABLE_PRIVATE_KG_AUTO_COMPLETE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgAutoComplete()); + hash = (37 * hash) + DISABLE_PRIVATE_KG_QUERY_UI_CHIPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgQueryUiChips()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - /** - * - * - *
-       * Optional. Additional engine features config.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeEngineFeaturesConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig - value) { - if (engineFeaturesConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && engineFeaturesConfig_ != null - && engineFeaturesConfig_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance()) { - getEngineFeaturesConfigBuilder().mergeFrom(value); - } else { - engineFeaturesConfig_ = value; - } - } else { - engineFeaturesConfigBuilder_.mergeFrom(value); - } - if (engineFeaturesConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - /** - * - * - *
-       * Optional. Additional engine features config.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearEngineFeaturesConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - engineFeaturesConfig_ = null; - if (engineFeaturesConfigBuilder_ != null) { - engineFeaturesConfigBuilder_.dispose(); - engineFeaturesConfigBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - /** - * - * - *
-       * Optional. Additional engine features config.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder - getEngineFeaturesConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetEngineFeaturesConfigFieldBuilder().getBuilder(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-       * Optional. Additional engine features config.
+       * Feature config for the Knowledge Graph.
        * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig} */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder - getEngineFeaturesConfigOrBuilder() { - if (engineFeaturesConfigBuilder_ != null) { - return engineFeaturesConfigBuilder_.getMessageOrBuilder(); - } else { - return engineFeaturesConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.getDefaultInstance() - : engineFeaturesConfig_; + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; } - } - /** - * - * - *
-       * Optional. Additional engine features config.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder> - internalGetEngineFeaturesConfigFieldBuilder() { - if (engineFeaturesConfigBuilder_ == null) { - engineFeaturesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .EngineFeaturesConfigOrBuilder>( - getEngineFeaturesConfig(), getParentForChildren(), isClean()); - engineFeaturesConfig_ = null; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .class, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder.class); } - return engineFeaturesConfigBuilder_; - } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - } + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig.newBuilder() + private Builder() {} - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - private static final com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - DEFAULT_INSTANCE; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disablePrivateKgQueryUnderstanding_ = false; + disablePrivateKgEnrichment_ = false; + disablePrivateKgAutoComplete_ = false; + disablePrivateKgQueryUiChips_ = false; + return this; + } - public static com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MediaRecommendationEngineConfig 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(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + build() { + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - }; + return result; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig result = + new com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disablePrivateKgQueryUnderstanding_ = disablePrivateKgQueryUnderstanding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disablePrivateKgEnrichment_ = disablePrivateKgEnrichment_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disablePrivateKgAutoComplete_ = disablePrivateKgAutoComplete_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disablePrivateKgQueryUiChips_ = disablePrivateKgQueryUiChips_; + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface ChatEngineConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance()) return this; + if (other.getDisablePrivateKgQueryUnderstanding() != false) { + setDisablePrivateKgQueryUnderstanding(other.getDisablePrivateKgQueryUnderstanding()); + } + if (other.getDisablePrivateKgEnrichment() != false) { + setDisablePrivateKgEnrichment(other.getDisablePrivateKgEnrichment()); + } + if (other.getDisablePrivateKgAutoComplete() != false) { + setDisablePrivateKgAutoComplete(other.getDisablePrivateKgAutoComplete()); + } + if (other.getDisablePrivateKgQueryUiChips() != false) { + setDisablePrivateKgQueryUiChips(other.getDisablePrivateKgQueryUiChips()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-     * The configurationt generate the Dialogflow agent that is associated to
-     * this Engine.
-     *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - * - * @return Whether the agentCreationConfig field is set. - */ - boolean hasAgentCreationConfig(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
-     * The configurationt generate the Dialogflow agent that is associated to
-     * this Engine.
-     *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - * - * @return The agentCreationConfig. - */ - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - getAgentCreationConfig(); + @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: + { + disablePrivateKgQueryUnderstanding_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + disablePrivateKgEnrichment_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + disablePrivateKgAutoComplete_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + disablePrivateKgQueryUiChips_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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; + } - /** - * - * - *
-     * The configurationt generate the Dialogflow agent that is associated to
-     * this Engine.
-     *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder - getAgentCreationConfigOrBuilder(); + private int bitField0_; - /** - * - * - *
-     * The resource name of an exist Dialogflow agent to link to this Chat
-     * Engine. Customers can either provide `agent_creation_config` to create
-     * agent or provide an agent name that links the agent with the Chat engine.
-     *
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>`.
-     *
-     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-     * passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation. Use
-     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-     * for actual agent association after Engine is created.
-     * 
- * - * string dialogflow_agent_to_link = 2; - * - * @return The dialogflowAgentToLink. - */ - java.lang.String getDialogflowAgentToLink(); + private boolean disablePrivateKgQueryUnderstanding_; - /** - * - * - *
-     * The resource name of an exist Dialogflow agent to link to this Chat
-     * Engine. Customers can either provide `agent_creation_config` to create
-     * agent or provide an agent name that links the agent with the Chat engine.
-     *
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>`.
-     *
-     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-     * passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation. Use
-     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-     * for actual agent association after Engine is created.
-     * 
- * - * string dialogflow_agent_to_link = 2; - * - * @return The bytes for dialogflowAgentToLink. - */ - com.google.protobuf.ByteString getDialogflowAgentToLinkBytes(); + /** + * + * + *
+         * Whether to disable the private KG query understanding for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_query_understanding = 1; + * + * @return The disablePrivateKgQueryUnderstanding. + */ + @java.lang.Override + public boolean getDisablePrivateKgQueryUnderstanding() { + return disablePrivateKgQueryUnderstanding_; + } - /** - * - * - *
-     * Optional. If the flag set to true, we allow the agent and engine are in
-     * different locations, otherwise the agent and engine are required to be in
-     * the same location. The flag is set to false by default.
-     *
-     * Note that the `allow_cross_region` are one-time consumed by and
-     * passed to
-     * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
-     * It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The allowCrossRegion. - */ - boolean getAllowCrossRegion(); - } + /** + * + * + *
+         * Whether to disable the private KG query understanding for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_query_understanding = 1; + * + * @param value The disablePrivateKgQueryUnderstanding to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgQueryUnderstanding(boolean value) { - /** - * - * - *
-   * Configurations for a Chat Engine.
-   * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineConfig} - */ - public static final class ChatEngineConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) - ChatEngineConfigOrBuilder { - private static final long serialVersionUID = 0L; + disablePrivateKgQueryUnderstanding_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ChatEngineConfig"); - } + /** + * + * + *
+         * Whether to disable the private KG query understanding for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_query_understanding = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgQueryUnderstanding() { + bitField0_ = (bitField0_ & ~0x00000001); + disablePrivateKgQueryUnderstanding_ = false; + onChanged(); + return this; + } - // Use ChatEngineConfig.newBuilder() to construct. - private ChatEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private boolean disablePrivateKgEnrichment_; - private ChatEngineConfig() { - dialogflowAgentToLink_ = ""; - } + /** + * + * + *
+         * Whether to disable the private KG enrichment for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_enrichment = 2; + * + * @return The disablePrivateKgEnrichment. + */ + @java.lang.Override + public boolean getDisablePrivateKgEnrichment() { + return disablePrivateKgEnrichment_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_descriptor; - } + /** + * + * + *
+         * Whether to disable the private KG enrichment for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_enrichment = 2; + * + * @param value The disablePrivateKgEnrichment to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgEnrichment(boolean value) { - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.class, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder.class); - } + disablePrivateKgEnrichment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public interface AgentCreationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+         * Whether to disable the private KG enrichment for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_enrichment = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgEnrichment() { + bitField0_ = (bitField0_ & ~0x00000002); + disablePrivateKgEnrichment_ = false; + onChanged(); + return this; + } - /** - * - * - *
-       * Name of the company, organization or other entity that the agent
-       * represents. Used for knowledge connector LLM prompt and for knowledge
-       * search.
-       * 
- * - * string business = 1; - * - * @return The business. - */ - java.lang.String getBusiness(); + private boolean disablePrivateKgAutoComplete_; - /** - * - * - *
-       * Name of the company, organization or other entity that the agent
-       * represents. Used for knowledge connector LLM prompt and for knowledge
-       * search.
-       * 
- * - * string business = 1; - * - * @return The bytes for business. - */ - com.google.protobuf.ByteString getBusinessBytes(); + /** + * + * + *
+         * Whether to disable the private KG auto complete for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_auto_complete = 3; + * + * @return The disablePrivateKgAutoComplete. + */ + @java.lang.Override + public boolean getDisablePrivateKgAutoComplete() { + return disablePrivateKgAutoComplete_; + } - /** - * - * - *
-       * Required. The default language of the agent as a language tag.
-       * See [Language
-       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-       * for a list of the currently supported language codes.
-       * 
- * - * string default_language_code = 2; - * - * @return The defaultLanguageCode. - */ - java.lang.String getDefaultLanguageCode(); + /** + * + * + *
+         * Whether to disable the private KG auto complete for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_auto_complete = 3; + * + * @param value The disablePrivateKgAutoComplete to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgAutoComplete(boolean value) { - /** - * - * - *
-       * Required. The default language of the agent as a language tag.
-       * See [Language
-       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-       * for a list of the currently supported language codes.
-       * 
- * - * string default_language_code = 2; - * - * @return The bytes for defaultLanguageCode. - */ - com.google.protobuf.ByteString getDefaultLanguageCodeBytes(); + disablePrivateKgAutoComplete_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
-       * Required. The time zone of the agent from the [time zone
-       * database](https://www.iana.org/time-zones), e.g., America/New_York,
-       * Europe/Paris.
-       * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - java.lang.String getTimeZone(); + /** + * + * + *
+         * Whether to disable the private KG auto complete for the engine.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_auto_complete = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgAutoComplete() { + bitField0_ = (bitField0_ & ~0x00000004); + disablePrivateKgAutoComplete_ = false; + onChanged(); + return this; + } - /** - * - * - *
-       * Required. The time zone of the agent from the [time zone
-       * database](https://www.iana.org/time-zones), e.g., America/New_York,
-       * Europe/Paris.
-       * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString getTimeZoneBytes(); + private boolean disablePrivateKgQueryUiChips_; - /** - * - * - *
-       * Agent location for Agent creation, supported values: global/us/eu.
-       * If not provided, us Engine will create Agent using us-central-1 by
-       * default; eu Engine will create Agent using eu-west-1 by default.
-       * 
- * - * string location = 4; - * - * @return The location. - */ - java.lang.String getLocation(); + /** + * + * + *
+         * Whether to disable the private KG for query UI chips.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return The disablePrivateKgQueryUiChips. + */ + @java.lang.Override + public boolean getDisablePrivateKgQueryUiChips() { + return disablePrivateKgQueryUiChips_; + } - /** - * - * - *
-       * Agent location for Agent creation, supported values: global/us/eu.
-       * If not provided, us Engine will create Agent using us-central-1 by
-       * default; eu Engine will create Agent using eu-west-1 by default.
-       * 
- * - * string location = 4; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - } + /** + * + * + *
+         * Whether to disable the private KG for query UI chips.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_query_ui_chips = 4; + * + * @param value The disablePrivateKgQueryUiChips to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgQueryUiChips(boolean value) { + + disablePrivateKgQueryUiChips_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Whether to disable the private KG for query UI chips.
+         *
+         * Defaults to false if not specified.
+         * 
+ * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgQueryUiChips() { + bitField0_ = (bitField0_ & ~0x00000008); + disablePrivateKgQueryUiChips_ = false; + onChanged(); + return this; + } - /** - * - * - *
-     * Configurations for generating a Dialogflow agent.
-     *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig} - */ - public static final class AgentCreationConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) - AgentCreationConfigOrBuilder { - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + .FeatureConfig + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AgentCreationConfig"); + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig(); } - // Use AgentCreationConfig.newBuilder() to construct. - private AgentCreationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private AgentCreationConfig() { - business_ = ""; - defaultLanguageCode_ = ""; - timeZone_ = ""; - location_ = ""; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureConfig 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; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .class, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .Builder.class); + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int BUSINESS_FIELD_NUMBER = 1; + private int bitField0_; + public static final int ENABLE_CLOUD_KNOWLEDGE_GRAPH_FIELD_NUMBER = 1; + private boolean enableCloudKnowledgeGraph_ = false; - @SuppressWarnings("serial") - private volatile java.lang.Object business_ = ""; + /** + * + * + *
+     * Whether to enable the Cloud Knowledge Graph for the engine.
+     *
+     * Defaults to false if not specified.
+     * 
+ * + * bool enable_cloud_knowledge_graph = 1; + * + * @return The enableCloudKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnableCloudKnowledgeGraph() { + return enableCloudKnowledgeGraph_; + } - /** - * - * - *
-       * Name of the company, organization or other entity that the agent
-       * represents. Used for knowledge connector LLM prompt and for knowledge
-       * search.
-       * 
- * - * string business = 1; - * - * @return The business. - */ - @java.lang.Override - public java.lang.String getBusiness() { - java.lang.Object ref = business_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - business_ = s; - return s; - } - } + public static final int CLOUD_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER = 2; - /** - * - * - *
-       * Name of the company, organization or other entity that the agent
-       * represents. Used for knowledge connector LLM prompt and for knowledge
-       * search.
-       * 
- * - * string business = 1; - * - * @return The bytes for business. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBusinessBytes() { - java.lang.Object ref = business_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - business_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList cloudKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 2; + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return A list containing the cloudKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getCloudKnowledgeGraphTypesList() { + return cloudKnowledgeGraphTypes_; + } - @SuppressWarnings("serial") - private volatile java.lang.Object defaultLanguageCode_ = ""; + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return The count of cloudKnowledgeGraphTypes. + */ + public int getCloudKnowledgeGraphTypesCount() { + return cloudKnowledgeGraphTypes_.size(); + } - /** - * - * - *
-       * Required. The default language of the agent as a language tag.
-       * See [Language
-       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-       * for a list of the currently supported language codes.
-       * 
- * - * string default_language_code = 2; - * - * @return The defaultLanguageCode. - */ - @java.lang.Override - public java.lang.String getDefaultLanguageCode() { - java.lang.Object ref = defaultLanguageCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultLanguageCode_ = s; - return s; - } - } + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the element to return. + * @return The cloudKnowledgeGraphTypes at the given index. + */ + public java.lang.String getCloudKnowledgeGraphTypes(int index) { + return cloudKnowledgeGraphTypes_.get(index); + } - /** - * - * - *
-       * Required. The default language of the agent as a language tag.
-       * See [Language
-       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-       * for a list of the currently supported language codes.
-       * 
- * - * string default_language_code = 2; - * - * @return The bytes for defaultLanguageCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { - java.lang.Object ref = defaultLanguageCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultLanguageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the value to return. + * @return The bytes of the cloudKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getCloudKnowledgeGraphTypesBytes(int index) { + return cloudKnowledgeGraphTypes_.getByteString(index); + } + + public static final int ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER = 3; + private boolean enablePrivateKnowledgeGraph_ = false; + + /** + * + * + *
+     * Whether to enable the Private Knowledge Graph for the engine.
+     *
+     * Defaults to false if not specified.
+     * 
+ * + * bool enable_private_knowledge_graph = 3; + * + * @return The enablePrivateKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnablePrivateKnowledgeGraph() { + return enablePrivateKnowledgeGraph_; + } - public static final int TIME_ZONE_FIELD_NUMBER = 3; + public static final int PRIVATE_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object timeZone_ = ""; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList privateKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * Required. The time zone of the agent from the [time zone
-       * database](https://www.iana.org/time-zones), e.g., America/New_York,
-       * Europe/Paris.
-       * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return A list containing the privateKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getPrivateKnowledgeGraphTypesList() { + return privateKnowledgeGraphTypes_; + } - /** - * - * - *
-       * Required. The time zone of the agent from the [time zone
-       * database](https://www.iana.org/time-zones), e.g., America/New_York,
-       * Europe/Paris.
-       * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return The count of privateKnowledgeGraphTypes. + */ + public int getPrivateKnowledgeGraphTypesCount() { + return privateKnowledgeGraphTypes_.size(); + } - public static final int LOCATION_FIELD_NUMBER = 4; + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the element to return. + * @return The privateKnowledgeGraphTypes at the given index. + */ + public java.lang.String getPrivateKnowledgeGraphTypes(int index) { + return privateKnowledgeGraphTypes_.get(index); + } - @SuppressWarnings("serial") - private volatile java.lang.Object location_ = ""; + /** + * + * + *
+     * Specify entity types to support.
+     * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the privateKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getPrivateKnowledgeGraphTypesBytes(int index) { + return privateKnowledgeGraphTypes_.getByteString(index); + } - /** - * - * - *
-       * Agent location for Agent creation, supported values: global/us/eu.
-       * If not provided, us Engine will create Agent using us-central-1 by
-       * default; eu Engine will create Agent using eu-west-1 by default.
-       * 
- * - * string location = 4; - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } + public static final int FEATURE_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + featureConfig_; - /** - * - * - *
-       * Agent location for Agent creation, supported values: global/us/eu.
-       * If not provided, us Engine will create Agent using us-central-1 by
-       * default; eu Engine will create Agent using eu-west-1 by default.
-       * 
- * - * string location = 4; - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+     * Optional. Feature config for the Knowledge Graph.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureConfig field is set. + */ + @java.lang.Override + public boolean hasFeatureConfig() { + return ((bitField0_ & 0x00000001) != 0); + } - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Optional. Feature config for the Knowledge Graph.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + getFeatureConfig() { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+     * Optional. Feature config for the Knowledge Graph.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder + getFeatureConfigOrBuilder() { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, business_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultLanguageCode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, timeZone_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, location_); - } - getUnknownFields().writeTo(output); + @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 (enableCloudKnowledgeGraph_ != false) { + output.writeBool(1, enableCloudKnowledgeGraph_); } + for (int i = 0; i < cloudKnowledgeGraphTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, cloudKnowledgeGraphTypes_.getRaw(i)); + } + if (enablePrivateKnowledgeGraph_ != false) { + output.writeBool(3, enablePrivateKnowledgeGraph_); + } + for (int i = 0; i < privateKnowledgeGraphTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 4, privateKnowledgeGraphTypes_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getFeatureConfig()); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, business_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultLanguageCode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeZone_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + size = 0; + if (enableCloudKnowledgeGraph_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableCloudKnowledgeGraph_); } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + { + int dataSize = 0; + for (int i = 0; i < cloudKnowledgeGraphTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(cloudKnowledgeGraphTypes_.getRaw(i)); } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig)) { - return super.equals(obj); + size += dataSize; + size += 1 * getCloudKnowledgeGraphTypesList().size(); + } + if (enablePrivateKnowledgeGraph_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, enablePrivateKnowledgeGraph_); + } + { + int dataSize = 0; + for (int i = 0; i < privateKnowledgeGraphTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(privateKnowledgeGraphTypes_.getRaw(i)); } - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig other = - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) obj; + size += dataSize; + size += 1 * getPrivateKnowledgeGraphTypesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeatureConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - if (!getBusiness().equals(other.getBusiness())) return false; - if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; - if (!getTimeZone().equals(other.getTimeZone())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { return true; } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BUSINESS_FIELD_NUMBER; - hash = (53 * hash) + getBusiness().hashCode(); - hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultLanguageCode().hashCode(); - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig other = + (com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) obj; - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (getEnableCloudKnowledgeGraph() != other.getEnableCloudKnowledgeGraph()) return false; + if (!getCloudKnowledgeGraphTypesList().equals(other.getCloudKnowledgeGraphTypesList())) + return false; + if (getEnablePrivateKnowledgeGraph() != other.getEnablePrivateKnowledgeGraph()) return false; + if (!getPrivateKnowledgeGraphTypesList().equals(other.getPrivateKnowledgeGraphTypesList())) + return false; + if (hasFeatureConfig() != other.hasFeatureConfig()) return false; + if (hasFeatureConfig()) { + if (!getFeatureConfig().equals(other.getFeatureConfig())) return false; } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_CLOUD_KNOWLEDGE_GRAPH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCloudKnowledgeGraph()); + if (getCloudKnowledgeGraphTypesCount() > 0) { + hash = (37 * hash) + CLOUD_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getCloudKnowledgeGraphTypesList().hashCode(); + } + hash = (37 * hash) + ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateKnowledgeGraph()); + if (getPrivateKnowledgeGraphTypesCount() > 0) { + hash = (37 * hash) + PRIVATE_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKnowledgeGraphTypesList().hashCode(); + } + if (hasFeatureConfig()) { + hash = (37 * hash) + FEATURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFeatureConfig().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
-       * Configurations for generating a Dialogflow agent.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * Protobuf type {@code - * google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .class, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .Builder.class); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // Construct using - // com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig.newBuilder() - private Builder() {} + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+     * Configuration message for the Knowledge Graph.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - business_ = ""; - defaultLanguageCode_ = ""; - timeZone_ = ""; - location_ = ""; - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.class, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; - } + // Construct using + // com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - build() { - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFeatureConfigFieldBuilder(); } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig result = - new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCloudKnowledgeGraph_ = false; + cloudKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enablePrivateKnowledgeGraph_ = false; + privateKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + featureConfig_ = null; + if (featureConfigBuilder_ != null) { + featureConfigBuilder_.dispose(); + featureConfigBuilder_ = null; } + return this; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.business_ = business_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultLanguageCode_ = defaultLanguageCode_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timeZone_ = timeZone_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.location_ = location_; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.getDefaultInstance(); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance()) return this; - if (!other.getBusiness().isEmpty()) { - business_ = other.business_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDefaultLanguageCode().isEmpty()) { - defaultLanguageCode_ = other.defaultLanguageCode_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig build() { + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig result = + new com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - @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: - { - business_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - defaultLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - location_ = 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 void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableCloudKnowledgeGraph_ = enableCloudKnowledgeGraph_; } - - private int bitField0_; - - private java.lang.Object business_ = ""; - - /** - * - * - *
-         * Name of the company, organization or other entity that the agent
-         * represents. Used for knowledge connector LLM prompt and for knowledge
-         * search.
-         * 
- * - * string business = 1; - * - * @return The business. - */ - public java.lang.String getBusiness() { - java.lang.Object ref = business_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - business_ = s; - return s; - } else { - return (java.lang.String) ref; - } + if (((from_bitField0_ & 0x00000002) != 0)) { + cloudKnowledgeGraphTypes_.makeImmutable(); + result.cloudKnowledgeGraphTypes_ = cloudKnowledgeGraphTypes_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablePrivateKnowledgeGraph_ = enablePrivateKnowledgeGraph_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + privateKnowledgeGraphTypes_.makeImmutable(); + result.privateKnowledgeGraphTypes_ = privateKnowledgeGraphTypes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureConfig_ = + featureConfigBuilder_ == null ? featureConfig_ : featureConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - /** - * - * - *
-         * Name of the company, organization or other entity that the agent
-         * represents. Used for knowledge connector LLM prompt and for knowledge
-         * search.
-         * 
- * - * string business = 1; - * - * @return The bytes for business. - */ - public com.google.protobuf.ByteString getBusinessBytes() { - java.lang.Object ref = business_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - business_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) other); + } else { + super.mergeFrom(other); + return this; } + } - /** - * - * - *
-         * Name of the company, organization or other entity that the agent
-         * represents. Used for knowledge connector LLM prompt and for knowledge
-         * search.
-         * 
- * - * string business = 1; - * - * @param value The business to set. - * @return This builder for chaining. - */ - public Builder setBusiness(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.getDefaultInstance()) + return this; + if (other.getEnableCloudKnowledgeGraph() != false) { + setEnableCloudKnowledgeGraph(other.getEnableCloudKnowledgeGraph()); + } + if (!other.cloudKnowledgeGraphTypes_.isEmpty()) { + if (cloudKnowledgeGraphTypes_.isEmpty()) { + cloudKnowledgeGraphTypes_ = other.cloudKnowledgeGraphTypes_; + bitField0_ |= 0x00000002; + } else { + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.addAll(other.cloudKnowledgeGraphTypes_); } - business_ = value; - bitField0_ |= 0x00000001; onChanged(); - return this; } - - /** - * - * - *
-         * Name of the company, organization or other entity that the agent
-         * represents. Used for knowledge connector LLM prompt and for knowledge
-         * search.
-         * 
- * - * string business = 1; - * - * @return This builder for chaining. - */ - public Builder clearBusiness() { - business_ = getDefaultInstance().getBusiness(); - bitField0_ = (bitField0_ & ~0x00000001); + if (other.getEnablePrivateKnowledgeGraph() != false) { + setEnablePrivateKnowledgeGraph(other.getEnablePrivateKnowledgeGraph()); + } + if (!other.privateKnowledgeGraphTypes_.isEmpty()) { + if (privateKnowledgeGraphTypes_.isEmpty()) { + privateKnowledgeGraphTypes_ = other.privateKnowledgeGraphTypes_; + bitField0_ |= 0x00000008; + } else { + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.addAll(other.privateKnowledgeGraphTypes_); + } onChanged(); - return this; } + if (other.hasFeatureConfig()) { + mergeFeatureConfig(other.getFeatureConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-         * Name of the company, organization or other entity that the agent
-         * represents. Used for knowledge connector LLM prompt and for knowledge
-         * search.
-         * 
- * - * string business = 1; - * - * @param value The bytes for business to set. - * @return This builder for chaining. - */ - public Builder setBusinessBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - business_ = value; - bitField0_ |= 0x00000001; + @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: + { + enableCloudKnowledgeGraph_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.add(s); + break; + } // case 18 + case 24: + { + enablePrivateKnowledgeGraph_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetFeatureConfigFieldBuilder().getBuilder(), extensionRegistry); + 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(); - return this; + } // finally + return this; + } + + private int bitField0_; + + private boolean enableCloudKnowledgeGraph_; + + /** + * + * + *
+       * Whether to enable the Cloud Knowledge Graph for the engine.
+       *
+       * Defaults to false if not specified.
+       * 
+ * + * bool enable_cloud_knowledge_graph = 1; + * + * @return The enableCloudKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnableCloudKnowledgeGraph() { + return enableCloudKnowledgeGraph_; + } + + /** + * + * + *
+       * Whether to enable the Cloud Knowledge Graph for the engine.
+       *
+       * Defaults to false if not specified.
+       * 
+ * + * bool enable_cloud_knowledge_graph = 1; + * + * @param value The enableCloudKnowledgeGraph to set. + * @return This builder for chaining. + */ + public Builder setEnableCloudKnowledgeGraph(boolean value) { + + enableCloudKnowledgeGraph_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether to enable the Cloud Knowledge Graph for the engine.
+       *
+       * Defaults to false if not specified.
+       * 
+ * + * bool enable_cloud_knowledge_graph = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableCloudKnowledgeGraph() { + bitField0_ = (bitField0_ & ~0x00000001); + enableCloudKnowledgeGraph_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList cloudKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCloudKnowledgeGraphTypesIsMutable() { + if (!cloudKnowledgeGraphTypes_.isModifiable()) { + cloudKnowledgeGraphTypes_ = + new com.google.protobuf.LazyStringArrayList(cloudKnowledgeGraphTypes_); } + bitField0_ |= 0x00000002; + } - private java.lang.Object defaultLanguageCode_ = ""; + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return A list containing the cloudKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getCloudKnowledgeGraphTypesList() { + cloudKnowledgeGraphTypes_.makeImmutable(); + return cloudKnowledgeGraphTypes_; + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return The count of cloudKnowledgeGraphTypes. + */ + public int getCloudKnowledgeGraphTypesCount() { + return cloudKnowledgeGraphTypes_.size(); + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the element to return. + * @return The cloudKnowledgeGraphTypes at the given index. + */ + public java.lang.String getCloudKnowledgeGraphTypes(int index) { + return cloudKnowledgeGraphTypes_.get(index); + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the value to return. + * @return The bytes of the cloudKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getCloudKnowledgeGraphTypesBytes(int index) { + return cloudKnowledgeGraphTypes_.getByteString(index); + } - /** - * - * - *
-         * Required. The default language of the agent as a language tag.
-         * See [Language
-         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-         * for a list of the currently supported language codes.
-         * 
- * - * string default_language_code = 2; - * - * @return The defaultLanguageCode. - */ - public java.lang.String getDefaultLanguageCode() { - java.lang.Object ref = defaultLanguageCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultLanguageCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index to set the value at. + * @param value The cloudKnowledgeGraphTypes to set. + * @return This builder for chaining. + */ + public Builder setCloudKnowledgeGraphTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The default language of the agent as a language tag.
-         * See [Language
-         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-         * for a list of the currently supported language codes.
-         * 
- * - * string default_language_code = 2; - * - * @return The bytes for defaultLanguageCode. - */ - public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { - java.lang.Object ref = defaultLanguageCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultLanguageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param value The cloudKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addCloudKnowledgeGraphTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The default language of the agent as a language tag.
-         * See [Language
-         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-         * for a list of the currently supported language codes.
-         * 
- * - * string default_language_code = 2; - * - * @param value The defaultLanguageCode to set. - * @return This builder for chaining. - */ - public Builder setDefaultLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultLanguageCode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param values The cloudKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addAllCloudKnowledgeGraphTypes(java.lang.Iterable values) { + ensureCloudKnowledgeGraphTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudKnowledgeGraphTypes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The default language of the agent as a language tag.
-         * See [Language
-         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-         * for a list of the currently supported language codes.
-         * 
- * - * string default_language_code = 2; - * - * @return This builder for chaining. - */ - public Builder clearDefaultLanguageCode() { - defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return This builder for chaining. + */ + public Builder clearCloudKnowledgeGraphTypes() { + cloudKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The default language of the agent as a language tag.
-         * See [Language
-         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
-         * for a list of the currently supported language codes.
-         * 
- * - * string default_language_code = 2; - * - * @param value The bytes for defaultLanguageCode to set. - * @return This builder for chaining. - */ - public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultLanguageCode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param value The bytes of the cloudKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addCloudKnowledgeGraphTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private java.lang.Object timeZone_ = ""; + private boolean enablePrivateKnowledgeGraph_; - /** - * - * - *
-         * Required. The time zone of the agent from the [time zone
-         * database](https://www.iana.org/time-zones), e.g., America/New_York,
-         * Europe/Paris.
-         * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
+       * Whether to enable the Private Knowledge Graph for the engine.
+       *
+       * Defaults to false if not specified.
+       * 
+ * + * bool enable_private_knowledge_graph = 3; + * + * @return The enablePrivateKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnablePrivateKnowledgeGraph() { + return enablePrivateKnowledgeGraph_; + } + + /** + * + * + *
+       * Whether to enable the Private Knowledge Graph for the engine.
+       *
+       * Defaults to false if not specified.
+       * 
+ * + * bool enable_private_knowledge_graph = 3; + * + * @param value The enablePrivateKnowledgeGraph to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateKnowledgeGraph(boolean value) { + + enablePrivateKnowledgeGraph_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether to enable the Private Knowledge Graph for the engine.
+       *
+       * Defaults to false if not specified.
+       * 
+ * + * bool enable_private_knowledge_graph = 3; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateKnowledgeGraph() { + bitField0_ = (bitField0_ & ~0x00000004); + enablePrivateKnowledgeGraph_ = false; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The time zone of the agent from the [time zone
-         * database](https://www.iana.org/time-zones), e.g., America/New_York,
-         * Europe/Paris.
-         * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private com.google.protobuf.LazyStringArrayList privateKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-         * Required. The time zone of the agent from the [time zone
-         * database](https://www.iana.org/time-zones), e.g., America/New_York,
-         * Europe/Paris.
-         * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - timeZone_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + private void ensurePrivateKnowledgeGraphTypesIsMutable() { + if (!privateKnowledgeGraphTypes_.isModifiable()) { + privateKnowledgeGraphTypes_ = + new com.google.protobuf.LazyStringArrayList(privateKnowledgeGraphTypes_); } + bitField0_ |= 0x00000008; + } - /** - * - * - *
-         * Required. The time zone of the agent from the [time zone
-         * database](https://www.iana.org/time-zones), e.g., America/New_York,
-         * Europe/Paris.
-         * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return A list containing the privateKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getPrivateKnowledgeGraphTypesList() { + privateKnowledgeGraphTypes_.makeImmutable(); + return privateKnowledgeGraphTypes_; + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return The count of privateKnowledgeGraphTypes. + */ + public int getPrivateKnowledgeGraphTypesCount() { + return privateKnowledgeGraphTypes_.size(); + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the element to return. + * @return The privateKnowledgeGraphTypes at the given index. + */ + public java.lang.String getPrivateKnowledgeGraphTypes(int index) { + return privateKnowledgeGraphTypes_.get(index); + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the privateKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getPrivateKnowledgeGraphTypesBytes(int index) { + return privateKnowledgeGraphTypes_.getByteString(index); + } + + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index to set the value at. + * @param value The privateKnowledgeGraphTypes to set. + * @return This builder for chaining. + */ + public Builder setPrivateKnowledgeGraphTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - * - * - *
-         * Required. The time zone of the agent from the [time zone
-         * database](https://www.iana.org/time-zones), e.g., America/New_York,
-         * Europe/Paris.
-         * 
- * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - timeZone_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param value The privateKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addPrivateKnowledgeGraphTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - private java.lang.Object location_ = ""; + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param values The privateKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addAllPrivateKnowledgeGraphTypes(java.lang.Iterable values) { + ensurePrivateKnowledgeGraphTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateKnowledgeGraphTypes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - * - * - *
-         * Agent location for Agent creation, supported values: global/us/eu.
-         * If not provided, us Engine will create Agent using us-central-1 by
-         * default; eu Engine will create Agent using eu-west-1 by default.
-         * 
- * - * string location = 4; - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrivateKnowledgeGraphTypes() { + privateKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } - /** - * - * - *
-         * Agent location for Agent creation, supported values: global/us/eu.
-         * If not provided, us Engine will create Agent using us-central-1 by
-         * default; eu Engine will create Agent using eu-west-1 by default.
-         * 
- * - * string location = 4; - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+       * Specify entity types to support.
+       * 
+ * + * repeated string private_knowledge_graph_types = 4; + * + * @param value The bytes of the privateKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addPrivateKnowledgeGraphTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + featureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder> + featureConfigBuilder_; + + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureConfig field is set. + */ + public boolean hasFeatureConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureConfig. + */ + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + getFeatureConfig() { + if (featureConfigBuilder_ == null) { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } else { + return featureConfigBuilder_.getMessage(); } + } - /** - * - * - *
-         * Agent location for Agent creation, supported values: global/us/eu.
-         * If not provided, us Engine will create Agent using us-central-1 by
-         * default; eu Engine will create Agent using eu-west-1 by default.
-         * 
- * - * string location = 4; - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeatureConfig( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig value) { + if (featureConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - location_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + featureConfig_ = value; + } else { + featureConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - /** - * - * - *
-         * Agent location for Agent creation, supported values: global/us/eu.
-         * If not provided, us Engine will create Agent using us-central-1 by
-         * default; eu Engine will create Agent using eu-west-1 by default.
-         * 
- * - * string location = 4; - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeatureConfig( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig.Builder + builderForValue) { + if (featureConfigBuilder_ == null) { + featureConfig_ = builderForValue.build(); + } else { + featureConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - /** - * - * - *
-         * Agent location for Agent creation, supported values: global/us/eu.
-         * If not provided, us Engine will create Agent using us-central-1 by
-         * default; eu Engine will create Agent using eu-west-1 by default.
-         * 
- * - * string location = 4; - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFeatureConfig( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig value) { + if (featureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && featureConfig_ != null + && featureConfig_ + != com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance()) { + getFeatureConfigBuilder().mergeFrom(value); + } else { + featureConfig_ = value; } - checkByteStringIsUtf8(value); - location_ = value; - bitField0_ |= 0x00000008; + } else { + featureConfigBuilder_.mergeFrom(value); + } + if (featureConfig_ != null) { + bitField0_ |= 0x00000010; onChanged(); - return this; } + return this; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFeatureConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + featureConfig_ = null; + if (featureConfigBuilder_ != null) { + featureConfigBuilder_.dispose(); + featureConfigBuilder_ = null; + } + onChanged(); + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig) - private static final com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - .AgentCreationConfig - DEFAULT_INSTANCE; + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig.Builder + getFeatureConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetFeatureConfigFieldBuilder().getBuilder(); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig(); + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder + getFeatureConfigOrBuilder() { + if (featureConfigBuilder_ != null) { + return featureConfigBuilder_.getMessageOrBuilder(); + } else { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
+       * Optional. Feature config for the Knowledge Graph.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder> + internalGetFeatureConfigFieldBuilder() { + if (featureConfigBuilder_ == null) { + featureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder>( + getFeatureConfig(), getParentForChildren(), isClean()); + featureConfig_ = null; + } + return featureConfigBuilder_; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentCreationConfig 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(); - } - }; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig) + private static final com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + DEFAULT_INSTANCE; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeGraphConfig 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.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - private int bitField0_; - public static final int AGENT_CREATION_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - agentCreationConfig_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChatEngineMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) + com.google.protobuf.MessageOrBuilder { /** * * *
-     * The configurationt generate the Dialogflow agent that is associated to
-     * this Engine.
+     * The resource name of a Dialogflow agent, that this Chat Engine refers
+     * to.
      *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>`.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * + * string dialogflow_agent = 1; * - * @return Whether the agentCreationConfig field is set. + * @return The dialogflowAgent. */ - @java.lang.Override - public boolean hasAgentCreationConfig() { - return ((bitField0_ & 0x00000001) != 0); - } + java.lang.String getDialogflowAgent(); /** * * *
-     * The configurationt generate the Dialogflow agent that is associated to
-     * this Engine.
+     * The resource name of a Dialogflow agent, that this Chat Engine refers
+     * to.
      *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>`.
      * 
* - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * + * string dialogflow_agent = 1; * - * @return The agentCreationConfig. + * @return The bytes for dialogflowAgent. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - getAgentCreationConfig() { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; + com.google.protobuf.ByteString getDialogflowAgentBytes(); + } + + /** + * + * + *
+   * Additional information of a Chat Engine.
+   * Fields in this message are output only.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata} + */ + public static final class ChatEngineMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) + ChatEngineMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatEngineMetadata"); + } + + // Use ChatEngineMetadata.newBuilder() to construct. + private ChatEngineMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatEngineMetadata() { + dialogflowAgent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; } - /** - * - * - *
-     * The configurationt generate the Dialogflow agent that is associated to
-     * this Engine.
-     *
-     * Note that these configurations are one-time consumed by
-     * and passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder - getAgentCreationConfigOrBuilder() { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.class, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder.class); } - public static final int DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER = 2; + public static final int DIALOGFLOW_AGENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object dialogflowAgentToLink_ = ""; + private volatile java.lang.Object dialogflowAgent_ = ""; /** * * *
-     * The resource name of an exist Dialogflow agent to link to this Chat
-     * Engine. Customers can either provide `agent_creation_config` to create
-     * agent or provide an agent name that links the agent with the Chat engine.
+     * The resource name of a Dialogflow agent, that this Chat Engine refers
+     * to.
      *
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>`.
-     *
-     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-     * passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation. Use
-     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-     * for actual agent association after Engine is created.
      * 
* - * string dialogflow_agent_to_link = 2; + * string dialogflow_agent = 1; * - * @return The dialogflowAgentToLink. + * @return The dialogflowAgent. */ @java.lang.Override - public java.lang.String getDialogflowAgentToLink() { - java.lang.Object ref = dialogflowAgentToLink_; + public java.lang.String getDialogflowAgent() { + java.lang.Object ref = dialogflowAgent_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - dialogflowAgentToLink_ = s; + dialogflowAgent_ = s; return s; } } @@ -8860,70 +14484,30 @@ public java.lang.String getDialogflowAgentToLink() { * * *
-     * The resource name of an exist Dialogflow agent to link to this Chat
-     * Engine. Customers can either provide `agent_creation_config` to create
-     * agent or provide an agent name that links the agent with the Chat engine.
+     * The resource name of a Dialogflow agent, that this Chat Engine refers
+     * to.
      *
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>`.
-     *
-     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-     * passed to Dialogflow service. It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation. Use
-     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-     * for actual agent association after Engine is created.
      * 
* - * string dialogflow_agent_to_link = 2; + * string dialogflow_agent = 1; * - * @return The bytes for dialogflowAgentToLink. + * @return The bytes for dialogflowAgent. */ @java.lang.Override - public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { - java.lang.Object ref = dialogflowAgentToLink_; + public com.google.protobuf.ByteString getDialogflowAgentBytes() { + java.lang.Object ref = dialogflowAgent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgentToLink_ = b; + dialogflowAgent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ALLOW_CROSS_REGION_FIELD_NUMBER = 3; - private boolean allowCrossRegion_ = false; - - /** - * - * - *
-     * Optional. If the flag set to true, we allow the agent and engine are in
-     * different locations, otherwise the agent and engine are required to be in
-     * the same location. The flag is set to false by default.
-     *
-     * Note that the `allow_cross_region` are one-time consumed by and
-     * passed to
-     * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
-     * It means they cannot be retrieved using
-     * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-     * or
-     * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-     * API after engine creation.
-     * 
- * - * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The allowCrossRegion. - */ - @java.lang.Override - public boolean getAllowCrossRegion() { - return allowCrossRegion_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8938,14 +14522,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getAgentCreationConfig()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, dialogflowAgentToLink_); - } - if (allowCrossRegion_ != false) { - output.writeBool(3, allowCrossRegion_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, dialogflowAgent_); } getUnknownFields().writeTo(output); } @@ -8956,15 +14534,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAgentCreationConfig()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dialogflowAgentToLink_); - } - if (allowCrossRegion_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowCrossRegion_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dialogflowAgent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8976,18 +14547,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig other = - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) obj; - - if (hasAgentCreationConfig() != other.hasAgentCreationConfig()) return false; - if (hasAgentCreationConfig()) { - if (!getAgentCreationConfig().equals(other.getAgentCreationConfig())) return false; + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata)) { + return super.equals(obj); } - if (!getDialogflowAgentToLink().equals(other.getDialogflowAgentToLink())) return false; - if (getAllowCrossRegion() != other.getAllowCrossRegion()) return false; + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata other = + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) obj; + + if (!getDialogflowAgent().equals(other.getDialogflowAgent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8999,84 +14565,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAgentCreationConfig()) { - hash = (37 * hash) + AGENT_CREATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAgentCreationConfig().hashCode(); - } - hash = (37 * hash) + DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER; - hash = (53 * hash) + getDialogflowAgentToLink().hashCode(); - hash = (37 * hash) + ALLOW_CROSS_REGION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCrossRegion()); + hash = (37 * hash) + DIALOGFLOW_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getDialogflowAgent().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig parseFrom( + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9094,7 +14654,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig prototype) { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -9113,537 +14673,180 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * Configurations for a Chat Engine.
+     * Additional information of a Chat Engine.
+     * Fields in this message are output only.
      * 
* - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineConfig} + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.class, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder.class); + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.class, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetAgentCreationConfigFieldBuilder(); - } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - agentCreationConfig_ = null; - if (agentCreationConfigBuilder_ != null) { - agentCreationConfigBuilder_.dispose(); - agentCreationConfigBuilder_ = null; - } - dialogflowAgentToLink_ = ""; - allowCrossRegion_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig build() { - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig result = - new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.agentCreationConfig_ = - agentCreationConfigBuilder_ == null - ? agentCreationConfig_ - : agentCreationConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dialogflowAgentToLink_ = dialogflowAgentToLink_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.allowCrossRegion_ = allowCrossRegion_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance()) - return this; - if (other.hasAgentCreationConfig()) { - mergeAgentCreationConfig(other.getAgentCreationConfig()); - } - if (!other.getDialogflowAgentToLink().isEmpty()) { - dialogflowAgentToLink_ = other.dialogflowAgentToLink_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getAllowCrossRegion() != false) { - setAllowCrossRegion(other.getAllowCrossRegion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + dialogflowAgent_ = ""; 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( - internalGetAgentCreationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dialogflowAgentToLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - allowCrossRegion_ = input.readBool(); - 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.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - agentCreationConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder> - agentCreationConfigBuilder_; - - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - * - * @return Whether the agentCreationConfig field is set. - */ - public boolean hasAgentCreationConfig() { - return ((bitField0_ & 0x00000001) != 0); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - * - * @return The agentCreationConfig. - */ - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - getAgentCreationConfig() { - if (agentCreationConfigBuilder_ == null) { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; - } else { - return agentCreationConfigBuilder_.getMessage(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata build() { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - public Builder setAgentCreationConfig( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig value) { - if (agentCreationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - agentCreationConfig_ = value; - } else { - agentCreationConfigBuilder_.setMessage(value); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata buildPartial() { + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata result = + new com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); } - bitField0_ |= 0x00000001; - onChanged(); - return this; + onBuilt(); + return result; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - public Builder setAgentCreationConfig( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig.Builder - builderForValue) { - if (agentCreationConfigBuilder_ == null) { - agentCreationConfig_ = builderForValue.build(); - } else { - agentCreationConfigBuilder_.setMessage(builderForValue.build()); + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dialogflowAgent_ = dialogflowAgent_; } - bitField0_ |= 0x00000001; - onChanged(); - return this; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - public Builder mergeAgentCreationConfig( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig value) { - if (agentCreationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && agentCreationConfig_ != null - && agentCreationConfig_ - != com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance()) { - getAgentCreationConfigBuilder().mergeFrom(value); - } else { - agentCreationConfig_ = value; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) other); } else { - agentCreationConfigBuilder_.mergeFrom(value); - } - if (agentCreationConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); + super.mergeFrom(other); + return this; } - return this; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - public Builder clearAgentCreationConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - agentCreationConfig_ = null; - if (agentCreationConfigBuilder_ != null) { - agentCreationConfigBuilder_.dispose(); - agentCreationConfigBuilder_ = null; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance()) + return this; + if (!other.getDialogflowAgent().isEmpty()) { + dialogflowAgent_ = other.dialogflowAgent_; + bitField0_ |= 0x00000001; + onChanged(); } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig.Builder - getAgentCreationConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetAgentCreationConfigFieldBuilder().getBuilder(); + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder - getAgentCreationConfigOrBuilder() { - if (agentCreationConfigBuilder_ != null) { - return agentCreationConfigBuilder_.getMessageOrBuilder(); - } else { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; + @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: + { + dialogflowAgent_ = 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; } - /** - * - * - *
-       * The configurationt generate the Dialogflow agent that is associated to
-       * this Engine.
-       *
-       * Note that these configurations are one-time consumed by
-       * and passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder> - internalGetAgentCreationConfigFieldBuilder() { - if (agentCreationConfigBuilder_ == null) { - agentCreationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - .Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder>( - getAgentCreationConfig(), getParentForChildren(), isClean()); - agentCreationConfig_ = null; - } - return agentCreationConfigBuilder_; - } + private int bitField0_; - private java.lang.Object dialogflowAgentToLink_ = ""; + private java.lang.Object dialogflowAgent_ = ""; /** * * *
-       * The resource name of an exist Dialogflow agent to link to this Chat
-       * Engine. Customers can either provide `agent_creation_config` to create
-       * agent or provide an agent name that links the agent with the Chat engine.
+       * The resource name of a Dialogflow agent, that this Chat Engine refers
+       * to.
        *
        * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
        * ID>`.
-       *
-       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-       * passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation. Use
-       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-       * for actual agent association after Engine is created.
        * 
* - * string dialogflow_agent_to_link = 2; + * string dialogflow_agent = 1; * - * @return The dialogflowAgentToLink. + * @return The dialogflowAgent. */ - public java.lang.String getDialogflowAgentToLink() { - java.lang.Object ref = dialogflowAgentToLink_; + public java.lang.String getDialogflowAgent() { + java.lang.Object ref = dialogflowAgent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - dialogflowAgentToLink_ = s; + dialogflowAgent_ = s; return s; } else { return (java.lang.String) ref; @@ -9654,33 +14857,23 @@ public java.lang.String getDialogflowAgentToLink() { * * *
-       * The resource name of an exist Dialogflow agent to link to this Chat
-       * Engine. Customers can either provide `agent_creation_config` to create
-       * agent or provide an agent name that links the agent with the Chat engine.
+       * The resource name of a Dialogflow agent, that this Chat Engine refers
+       * to.
        *
        * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
        * ID>`.
-       *
-       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-       * passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation. Use
-       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-       * for actual agent association after Engine is created.
        * 
* - * string dialogflow_agent_to_link = 2; + * string dialogflow_agent = 1; * - * @return The bytes for dialogflowAgentToLink. + * @return The bytes for dialogflowAgent. */ - public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { - java.lang.Object ref = dialogflowAgentToLink_; + public com.google.protobuf.ByteString getDialogflowAgentBytes() { + java.lang.Object ref = dialogflowAgent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgentToLink_ = b; + dialogflowAgent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -9691,163 +14884,46 @@ public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { * * *
-       * The resource name of an exist Dialogflow agent to link to this Chat
-       * Engine. Customers can either provide `agent_creation_config` to create
-       * agent or provide an agent name that links the agent with the Chat engine.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       *
-       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-       * passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation. Use
-       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-       * for actual agent association after Engine is created.
-       * 
- * - * string dialogflow_agent_to_link = 2; - * - * @param value The dialogflowAgentToLink to set. - * @return This builder for chaining. - */ - public Builder setDialogflowAgentToLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dialogflowAgentToLink_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The resource name of an exist Dialogflow agent to link to this Chat
-       * Engine. Customers can either provide `agent_creation_config` to create
-       * agent or provide an agent name that links the agent with the Chat engine.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       *
-       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-       * passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation. Use
-       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-       * for actual agent association after Engine is created.
-       * 
- * - * string dialogflow_agent_to_link = 2; - * - * @return This builder for chaining. - */ - public Builder clearDialogflowAgentToLink() { - dialogflowAgentToLink_ = getDefaultInstance().getDialogflowAgentToLink(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * The resource name of an exist Dialogflow agent to link to this Chat
-       * Engine. Customers can either provide `agent_creation_config` to create
-       * agent or provide an agent name that links the agent with the Chat engine.
+       * The resource name of a Dialogflow agent, that this Chat Engine refers
+       * to.
        *
        * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
        * ID>`.
-       *
-       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
-       * passed to Dialogflow service. It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation. Use
-       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
-       * for actual agent association after Engine is created.
        * 
* - * string dialogflow_agent_to_link = 2; + * string dialogflow_agent = 1; * - * @param value The bytes for dialogflowAgentToLink to set. + * @param value The dialogflowAgent to set. * @return This builder for chaining. */ - public Builder setDialogflowAgentToLinkBytes(com.google.protobuf.ByteString value) { + public Builder setDialogflowAgent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dialogflowAgentToLink_ = value; - bitField0_ |= 0x00000002; + dialogflowAgent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private boolean allowCrossRegion_; - - /** - * - * - *
-       * Optional. If the flag set to true, we allow the agent and engine are in
-       * different locations, otherwise the agent and engine are required to be in
-       * the same location. The flag is set to false by default.
-       *
-       * Note that the `allow_cross_region` are one-time consumed by and
-       * passed to
-       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
-       * It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
-       * 
- * - * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The allowCrossRegion. - */ - @java.lang.Override - public boolean getAllowCrossRegion() { - return allowCrossRegion_; - } - /** * * *
-       * Optional. If the flag set to true, we allow the agent and engine are in
-       * different locations, otherwise the agent and engine are required to be in
-       * the same location. The flag is set to false by default.
-       *
-       * Note that the `allow_cross_region` are one-time consumed by and
-       * passed to
-       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
-       * It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
+       * The resource name of a Dialogflow agent, that this Chat Engine refers
+       * to.
+       *
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
        * 
* - * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dialogflow_agent = 1; * - * @param value The allowCrossRegion to set. * @return This builder for chaining. */ - public Builder setAllowCrossRegion(boolean value) { - - allowCrossRegion_ = value; - bitField0_ |= 0x00000004; + public Builder clearDialogflowAgent() { + dialogflowAgent_ = getDefaultInstance().getDialogflowAgent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -9856,50 +14932,49 @@ public Builder setAllowCrossRegion(boolean value) { * * *
-       * Optional. If the flag set to true, we allow the agent and engine are in
-       * different locations, otherwise the agent and engine are required to be in
-       * the same location. The flag is set to false by default.
+       * The resource name of a Dialogflow agent, that this Chat Engine refers
+       * to.
        *
-       * Note that the `allow_cross_region` are one-time consumed by and
-       * passed to
-       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1.EngineService.CreateEngine].
-       * It means they cannot be retrieved using
-       * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
-       * or
-       * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
-       * API after engine creation.
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>`.
        * 
* - * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dialogflow_agent = 1; * + * @param value The bytes for dialogflowAgent to set. * @return This builder for chaining. */ - public Builder clearAllowCrossRegion() { - bitField0_ = (bitField0_ & ~0x00000004); - allowCrossRegion_ = false; + public Builder setDialogflowAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dialogflowAgent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) - private static final com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) + private static final com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata(); } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata + 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 ChatEngineConfig parsePartialFrom( + public ChatEngineMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9919,3113 +14994,6237 @@ public ChatEngineConfig 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.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CommonConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.CommonConfig) - com.google.protobuf.MessageOrBuilder { + private int bitField0_; + private int engineConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object engineConfig_; + + public enum EngineConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CHAT_ENGINE_CONFIG(11), + SEARCH_ENGINE_CONFIG(13), + MEDIA_RECOMMENDATION_ENGINE_CONFIG(14), + ENGINECONFIG_NOT_SET(0); + private final int value; + + private EngineConfigCase(int value) { + this.value = value; + } /** - * - * - *
-     * The name of the company, business or entity that is associated with the
-     * engine. Setting this may help improve LLM related features.
-     * 
- * - * string company_name = 1; - * - * @return The companyName. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - java.lang.String getCompanyName(); + @java.lang.Deprecated + public static EngineConfigCase valueOf(int value) { + return forNumber(value); + } + + public static EngineConfigCase forNumber(int value) { + switch (value) { + case 11: + return CHAT_ENGINE_CONFIG; + case 13: + return SEARCH_ENGINE_CONFIG; + case 14: + return MEDIA_RECOMMENDATION_ENGINE_CONFIG; + case 0: + return ENGINECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EngineConfigCase getEngineConfigCase() { + return EngineConfigCase.forNumber(engineConfigCase_); + } + + private int engineMetadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object engineMetadata_; + + public enum EngineMetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CHAT_ENGINE_METADATA(12), + ENGINEMETADATA_NOT_SET(0); + private final int value; + + private EngineMetadataCase(int value) { + this.value = value; + } /** - * - * - *
-     * The name of the company, business or entity that is associated with the
-     * engine. Setting this may help improve LLM related features.
-     * 
- * - * string company_name = 1; - * - * @return The bytes for companyName. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - com.google.protobuf.ByteString getCompanyNameBytes(); + @java.lang.Deprecated + public static EngineMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static EngineMetadataCase forNumber(int value) { + switch (value) { + case 12: + return CHAT_ENGINE_METADATA; + case 0: + return ENGINEMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EngineMetadataCase getEngineMetadataCase() { + return EngineMetadataCase.forNumber(engineMetadataCase_); + } + + public static final int CHAT_ENGINE_CONFIG_FIELD_NUMBER = 11; + + /** + * + * + *
+   * Configurations for the Chat Engine. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * @return Whether the chatEngineConfig field is set. + */ + @java.lang.Override + public boolean hasChatEngineConfig() { + return engineConfigCase_ == 11; + } + + /** + * + * + *
+   * Configurations for the Chat Engine. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * @return The chatEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getChatEngineConfig() { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Configurations for the Chat Engine. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder + getChatEngineConfigOrBuilder() { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } + + public static final int SEARCH_ENGINE_CONFIG_FIELD_NUMBER = 13; + + /** + * + * + *
+   * Configurations for the Search Engine. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return Whether the searchEngineConfig field is set. + */ + @java.lang.Override + public boolean hasSearchEngineConfig() { + return engineConfigCase_ == 13; } /** * * *
-   * Common configurations for an Engine.
+   * Configurations for the Search Engine. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
    * 
* - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.CommonConfig} + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return The searchEngineConfig. */ - public static final class CommonConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.CommonConfig) - CommonConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CommonConfig"); - } - - // Use CommonConfig.newBuilder() to construct. - private CommonConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CommonConfig() { - companyName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.class, - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder.class); - } - - public static final int COMPANY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object companyName_ = ""; - - /** - * - * - *
-     * The name of the company, business or entity that is associated with the
-     * engine. Setting this may help improve LLM related features.
-     * 
- * - * string company_name = 1; - * - * @return The companyName. - */ - @java.lang.Override - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - companyName_ = s; - return s; - } - } - - /** - * - * - *
-     * The name of the company, business or entity that is associated with the
-     * engine. Setting this may help improve LLM related features.
-     * 
- * - * string company_name = 1; - * - * @return The bytes for companyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - companyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig getSearchEngineConfig() { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; } + return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+   * Configurations for the Search Engine. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder + getSearchEngineConfigOrBuilder() { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; } + return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, companyName_); - } - getUnknownFields().writeTo(output); - } + public static final int MEDIA_RECOMMENDATION_ENGINE_CONFIG_FIELD_NUMBER = 14; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+   * Configurations for the Media Engine. Only applicable on the data
+   * stores with
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * and
+   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+   * vertical.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return Whether the mediaRecommendationEngineConfig field is set. + */ + @java.lang.Override + public boolean hasMediaRecommendationEngineConfig() { + return engineConfigCase_ == 14; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, companyName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+   * Configurations for the Media Engine. Only applicable on the data
+   * stores with
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * and
+   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+   * vertical.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return The mediaRecommendationEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + getMediaRecommendationEngineConfig() { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_; } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.CommonConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.CommonConfig other = - (com.google.cloud.discoveryengine.v1.Engine.CommonConfig) obj; - - if (!getCompanyName().equals(other.getCompanyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
+   * Configurations for the Media Engine. Only applicable on the data
+   * stores with
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * and
+   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+   * vertical.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder + getMediaRecommendationEngineConfigOrBuilder() { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_; } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCompanyName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int CHAT_ENGINE_METADATA_FIELD_NUMBER = 12; - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+   * Output only. Additional information of the Chat Engine. Only applicable
+   * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+   * is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chatEngineMetadata field is set. + */ + @java.lang.Override + public boolean hasChatEngineMetadata() { + return engineMetadataCase_ == 12; + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Output only. Additional information of the Chat Engine. Only applicable
+   * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+   * is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chatEngineMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata getChatEngineMetadata() { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Output only. Additional information of the Chat Engine. Only applicable
+   * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+   * is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder + getChatEngineMetadataOrBuilder() { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int NAME_FIELD_NUMBER = 1; - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Immutable. Identifier. The fully qualified resource name of the engine.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * engine should be 1-63 characters, and valid characters are
+   * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; } + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
+   * Immutable. Identifier. The fully qualified resource name of the engine.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * engine should be 1-63 characters, and valid characters are
+   * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The display name of the engine. Should be human readable. UTF-8
+   * encoded string with limit of 1024 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; } + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Required. The display name of the engine. Should be human readable. UTF-8
+   * encoded string with limit of 1024 characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp the Recommendation Engine was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+   * Output only. Timestamp the Recommendation Engine was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+   * Output only. Timestamp the Recommendation Engine was created at.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+   * Output only. Timestamp the Recommendation Engine was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.CommonConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+   * Output only. Timestamp the Recommendation Engine was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+   * Output only. Timestamp the Recommendation Engine was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static final int DATA_STORE_IDS_FIELD_NUMBER = 5; - /** - * - * - *
-     * Common configurations for an Engine.
-     * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.CommonConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.CommonConfig) - com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataStoreIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.class, - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder.class); - } + /** + * + * + *
+   * Optional. The data stores associated with this engine.
+   *
+   * For
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+   * and
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * type of engines, they can only associate with at most one data store.
+   *
+   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+   * associated here.
+   *
+   * Note that when used in
+   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+   * one DataStore id must be provided as the system will use it for necessary
+   * initializations.
+   * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dataStoreIds. + */ + public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { + return dataStoreIds_; + } - // Construct using com.google.cloud.discoveryengine.v1.Engine.CommonConfig.newBuilder() - private Builder() {} + /** + * + * + *
+   * Optional. The data stores associated with this engine.
+   *
+   * For
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+   * and
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * type of engines, they can only associate with at most one data store.
+   *
+   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+   * associated here.
+   *
+   * Note that when used in
+   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+   * one DataStore id must be provided as the system will use it for necessary
+   * initializations.
+   * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dataStoreIds. + */ + public int getDataStoreIdsCount() { + return dataStoreIds_.size(); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
+   * Optional. The data stores associated with this engine.
+   *
+   * For
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+   * and
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * type of engines, they can only associate with at most one data store.
+   *
+   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+   * associated here.
+   *
+   * Note that when used in
+   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+   * one DataStore id must be provided as the system will use it for necessary
+   * initializations.
+   * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dataStoreIds at the given index. + */ + public java.lang.String getDataStoreIds(int index) { + return dataStoreIds_.get(index); + } + + /** + * + * + *
+   * Optional. The data stores associated with this engine.
+   *
+   * For
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+   * and
+   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+   * type of engines, they can only associate with at most one data store.
+   *
+   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+   * associated here.
+   *
+   * Note that when used in
+   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+   * one DataStore id must be provided as the system will use it for necessary
+   * initializations.
+   * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStoreIds at the given index. + */ + public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { + return dataStoreIds_.getByteString(index); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - companyName_ = ""; - return this; - } + public static final int SOLUTION_TYPE_FIELD_NUMBER = 6; + private int solutionType_ = 0; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; - } + /** + * + * + *
+   * Required. The solutions of the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + @java.lang.Override + public int getSolutionTypeValue() { + return solutionType_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance(); - } + /** + * + * + *
+   * Required. The solutions of the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1.SolutionType result = + com.google.cloud.discoveryengine.v1.SolutionType.forNumber(solutionType_); + return result == null ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED : result; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig build() { - com.google.cloud.discoveryengine.v1.Engine.CommonConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 16; + private int industryVertical_ = 0; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.CommonConfig result = - new com.google.cloud.discoveryengine.v1.Engine.CommonConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
+   * Optional. The industry vertical that the engine registers.
+   * The restriction of the Engine industry vertical is based on
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+   * has to match vertical of the DataStore linked to the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } - private void buildPartial0(com.google.cloud.discoveryengine.v1.Engine.CommonConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.companyName_ = companyName_; - } - } + /** + * + * + *
+   * Optional. The industry vertical that the engine registers.
+   * The restriction of the Engine industry vertical is based on
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+   * has to match vertical of the DataStore linked to the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Engine.CommonConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.CommonConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static final int COMMON_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.discoveryengine.v1.Engine.CommonConfig commonConfig_; - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine.CommonConfig other) { - if (other == com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance()) - return this; - if (!other.getCompanyName().isEmpty()) { - companyName_ = other.companyName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
+   * Common config spec that specifies the metadata of the engine.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * @return Whether the commonConfig field is set. + */ + @java.lang.Override + public boolean hasCommonConfig() { + return ((bitField0_ & 0x00000004) != 0); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
+   * Common config spec that specifies the metadata of the engine.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * @return The commonConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getCommonConfig() { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; + } - @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: - { - companyName_ = 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; - } + /** + * + * + *
+   * Common config spec that specifies the metadata of the engine.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder + getCommonConfigOrBuilder() { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; + } - private int bitField0_; + public static final int KNOWLEDGE_GRAPH_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledgeGraphConfig_; - private java.lang.Object companyName_ = ""; + /** + * + * + *
+   * Optional. Configurations for the Knowledge Graph. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the knowledgeGraphConfig field is set. + */ + @java.lang.Override + public boolean hasKnowledgeGraphConfig() { + return ((bitField0_ & 0x00000008) != 0); + } - /** - * - * - *
-       * The name of the company, business or entity that is associated with the
-       * engine. Setting this may help improve LLM related features.
-       * 
- * - * string company_name = 1; - * - * @return The companyName. - */ - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - companyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
+   * Optional. Configurations for the Knowledge Graph. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The knowledgeGraphConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig getKnowledgeGraphConfig() { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.getDefaultInstance() + : knowledgeGraphConfig_; + } - /** - * - * - *
-       * The name of the company, business or entity that is associated with the
-       * engine. Setting this may help improve LLM related features.
-       * 
- * - * string company_name = 1; - * - * @return The bytes for companyName. - */ - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - companyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+   * Optional. Configurations for the Knowledge Graph. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder + getKnowledgeGraphConfigOrBuilder() { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.getDefaultInstance() + : knowledgeGraphConfig_; + } - /** - * - * - *
-       * The name of the company, business or entity that is associated with the
-       * engine. Setting this may help improve LLM related features.
-       * 
- * - * string company_name = 1; - * - * @param value The companyName to set. - * @return This builder for chaining. - */ - public Builder setCompanyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - companyName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static final int APP_TYPE_FIELD_NUMBER = 24; + private int appType_ = 0; - /** - * - * - *
-       * The name of the company, business or entity that is associated with the
-       * engine. Setting this may help improve LLM related features.
-       * 
- * - * string company_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearCompanyName() { - companyName_ = getDefaultInstance().getCompanyName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
+   * Optional. Immutable. This the application type which this engine resource
+   * represents. NOTE: this is a new concept independ of existing industry
+   * vertical or solution type.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for appType. + */ + @java.lang.Override + public int getAppTypeValue() { + return appType_; + } - /** - * - * - *
-       * The name of the company, business or entity that is associated with the
-       * engine. Setting this may help improve LLM related features.
-       * 
- * - * string company_name = 1; - * - * @param value The bytes for companyName to set. - * @return This builder for chaining. - */ - public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - companyName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
+   * Optional. Immutable. This the application type which this engine resource
+   * represents. NOTE: this is a new concept independ of existing industry
+   * vertical or solution type.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The appType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.AppType getAppType() { + com.google.cloud.discoveryengine.v1.Engine.AppType result = + com.google.cloud.discoveryengine.v1.Engine.AppType.forNumber(appType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.AppType.UNRECOGNIZED + : result; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.CommonConfig) - } + public static final int DISABLE_ANALYTICS_FIELD_NUMBER = 26; + private boolean disableAnalytics_ = false; - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.CommonConfig) - private static final com.google.cloud.discoveryengine.v1.Engine.CommonConfig DEFAULT_INSTANCE; + /** + * + * + *
+   * Optional. Whether to disable analytics for searches performed on this
+   * engine.
+   * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAnalytics. + */ + @java.lang.Override + public boolean getDisableAnalytics() { + return disableAnalytics_; + } - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.CommonConfig(); - } + public static final int SESSION_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.discoveryengine.v1.SessionConfig sessionConfig_; - public static com.google.cloud.discoveryengine.v1.Engine.CommonConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
+   * Optional. Non-empty default. Session config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return Whether the sessionConfig field is set. + */ + @java.lang.Override + public boolean hasSessionConfig() { + return ((bitField0_ & 0x00000010) != 0); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonConfig 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(); - } - }; + /** + * + * + *
+   * Optional. Non-empty default. Session config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return The sessionConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig getSessionConfig() { + return sessionConfig_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance() + : sessionConfig_; + } + + /** + * + * + *
+   * Optional. Non-empty default. Session config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder getSessionConfigOrBuilder() { + return sessionConfig_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance() + : sessionConfig_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int FEATURES_FIELD_NUMBER = 30; + + private static final class FeaturesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_FeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.discoveryengine.v1.Engine.FeatureState.FEATURE_STATE_UNSPECIFIED + .getNumber()); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @SuppressWarnings("serial") + private com.google.protobuf.MapField features_; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private com.google.protobuf.MapField internalGetFeatures() { + if (features_ == null) { + return com.google.protobuf.MapField.emptyMapField(FeaturesDefaultEntryHolder.defaultEntry); } + return features_; } - public interface ChatEngineMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) - com.google.protobuf.MessageOrBuilder { + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.discoveryengine.v1.Engine.FeatureState> + featuresValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.discoveryengine.v1.Engine.FeatureState.internalGetValueMap(), + com.google.cloud.discoveryengine.v1.Engine.FeatureState.UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Engine.FeatureState> + internalGetAdaptedFeaturesMap(java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, + com.google.cloud.discoveryengine.v1.Engine.FeatureState, + java.lang.Integer>(map, featuresValueConverter); + } - /** - * - * - *
-     * The resource name of a Dialogflow agent, that this Chat Engine refers
-     * to.
-     *
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>`.
-     * 
- * - * string dialogflow_agent = 1; - * - * @return The dialogflowAgent. - */ - java.lang.String getDialogflowAgent(); + public int getFeaturesCount() { + return internalGetFeatures().getMap().size(); + } - /** - * - * - *
-     * The resource name of a Dialogflow agent, that this Chat Engine refers
-     * to.
-     *
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>`.
-     * 
- * - * string dialogflow_agent = 1; - * - * @return The bytes for dialogflowAgent. - */ - com.google.protobuf.ByteString getDialogflowAgentBytes(); + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatures().getMap().containsKey(key); + } + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getFeatures() { + return getFeaturesMap(); } /** * * *
-   * Additional information of a Chat Engine.
-   * Fields in this message are output only.
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
    * 
* - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata} + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public static final class ChatEngineMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) - ChatEngineMetadataOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public java.util.Map + getFeaturesMap() { + return internalGetAdaptedFeaturesMap(internalGetFeatures().getMap()); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ChatEngineMetadata"); - } + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Engine.FeatureState + getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.FeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? featuresValueConverter.doForward(map.get(key)) : defaultValue; + } - // Use ChatEngineMetadata.newBuilder() to construct. - private ChatEngineMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.FeatureState getFeaturesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - - private ChatEngineMetadata() { - dialogflowAgent_ = ""; + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return featuresValueConverter.doForward(map.get(key)); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeaturesValue() { + return getFeaturesValueMap(); + } + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFeaturesValueMap() { + return internalGetFeatures().getMap(); + } + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFeaturesValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.class, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder.class); + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFeaturesValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } - public static final int DIALOGFLOW_AGENT_FIELD_NUMBER = 1; + public static final int CMEK_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.discoveryengine.v1.CmekConfig cmekConfig_; - @SuppressWarnings("serial") - private volatile java.lang.Object dialogflowAgent_ = ""; + /** + * + * + *
+   * Output only. CMEK-related information for the Engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + @java.lang.Override + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000020) != 0); + } - /** - * - * - *
-     * The resource name of a Dialogflow agent, that this Chat Engine refers
-     * to.
-     *
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>`.
-     * 
- * - * string dialogflow_agent = 1; - * - * @return The dialogflowAgent. - */ - @java.lang.Override - public java.lang.String getDialogflowAgent() { - java.lang.Object ref = dialogflowAgent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dialogflowAgent_ = s; - return s; - } - } + /** + * + * + *
+   * Output only. CMEK-related information for the Engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + /** + * + * + *
+   * Output only. CMEK-related information for the Engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + public static final int CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER = 36; + private int configurableBillingApproach_ = 0; + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; + } - /** - * - * - *
-     * The resource name of a Dialogflow agent, that this Chat Engine refers
-     * to.
-     *
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>`.
-     * 
- * - * string dialogflow_agent = 1; - * - * @return The bytes for dialogflowAgent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDialogflowAgentBytes() { - java.lang.Object ref = dialogflowAgent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+   * Optional. Configuration for configurable billing approach.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach.UNRECOGNIZED + : result; + } - private byte memoizedIsInitialized = -1; + public static final int MODEL_CONFIGS_FIELD_NUMBER = 37; + + private static final class ModelConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ModelConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.discoveryengine.v1.Engine.ModelState.MODEL_STATE_UNSPECIFIED + .getNumber()); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private com.google.protobuf.MapField modelConfigs_; - memoizedIsInitialized = 1; - return true; + private com.google.protobuf.MapField + internalGetModelConfigs() { + if (modelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelConfigsDefaultEntryHolder.defaultEntry); } + return modelConfigs_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, dialogflowAgent_); - } - getUnknownFields().writeTo(output); - } + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.discoveryengine.v1.Engine.ModelState> + modelConfigsValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.discoveryengine.v1.Engine.ModelState.internalGetValueMap(), + com.google.cloud.discoveryengine.v1.Engine.ModelState.UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Engine.ModelState> + internalGetAdaptedModelConfigsMap(java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, com.google.cloud.discoveryengine.v1.Engine.ModelState, java.lang.Integer>( + map, modelConfigsValueConverter); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public int getModelConfigsCount() { + return internalGetModelConfigs().getMap().size(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dialogflowAgent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetModelConfigs().getMap().containsKey(key); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata other = - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) obj; + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getModelConfigs() { + return getModelConfigsMap(); + } - if (!getDialogflowAgent().equals(other.getDialogflowAgent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getModelConfigsMap() { + return internalGetAdaptedModelConfigsMap(internalGetModelConfigs().getMap()); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIALOGFLOW_AGENT_FIELD_NUMBER; - hash = (53 * hash) + getDialogflowAgent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Engine.ModelState + getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.ModelState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? modelConfigsValueConverter.doForward(map.get(key)) : defaultValue; + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ModelState getModelConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return modelConfigsValueConverter.doForward(map.get(key)); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelConfigsValue() { + return getModelConfigsValueMap(); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getModelConfigsValueMap() { + return internalGetModelConfigs().getMap(); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 39; + private com.google.cloud.discoveryengine.v1.ObservabilityConfig observabilityConfig_; + + /** + * + * + *
+   * Optional. Observability config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + @java.lang.Override + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Observability config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfig getObservabilityConfig() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + /** + * + * + *
+   * Optional. Observability config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int CONNECTOR_TENANT_INFO_FIELD_NUMBER = 42; + + private static final class ConnectorTenantInfoDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_ConnectorTenantInfoEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @SuppressWarnings("serial") + private com.google.protobuf.MapField connectorTenantInfo_; - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + private com.google.protobuf.MapField + internalGetConnectorTenantInfo() { + if (connectorTenantInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry); } + return connectorTenantInfo_; + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public int getConnectorTenantInfoCount() { + return internalGetConnectorTenantInfo().getMap().size(); + } - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConnectorTenantInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetConnectorTenantInfo().getMap().containsKey(key); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** Use {@link #getConnectorTenantInfoMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectorTenantInfo() { + return getConnectorTenantInfoMap(); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConnectorTenantInfoMap() { + return internalGetConnectorTenantInfo().getMap(); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectorTenantInfoOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getConnectorTenantInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } - /** - * - * - *
-     * Additional information of a Chat Engine.
-     * Fields in this message are output only.
-     * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.class, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder.class); - } - - // Construct using com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + public static final int AGENT_GATEWAY_SETTING_FIELD_NUMBER = 43; + private com.google.cloud.discoveryengine.v1.AgentGatewaySetting agentGatewaySetting_; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dialogflowAgent_ = ""; - return this; - } + /** + * + * + *
+   * Optional. The agent gateway setting for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentGatewaySetting field is set. + */ + @java.lang.Override + public boolean hasAgentGatewaySetting() { + return ((bitField0_ & 0x00000080) != 0); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; - } + /** + * + * + *
+   * Optional. The agent gateway setting for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentGatewaySetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting getAgentGatewaySetting() { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); - } + /** + * + * + *
+   * Optional. The agent gateway setting for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder + getAgentGatewaySettingOrBuilder() { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata build() { - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static final int MARKETPLACE_AGENT_VISIBILITY_FIELD_NUMBER = 44; + private int marketplaceAgentVisibility_ = 0; - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata buildPartial() { - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata result = - new com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
+   * Optional. The visibility of marketplace agents in the agent gallery.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for marketplaceAgentVisibility. + */ + @java.lang.Override + public int getMarketplaceAgentVisibilityValue() { + return marketplaceAgentVisibility_; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dialogflowAgent_ = dialogflowAgent_; - } - } + /** + * + * + *
+   * Optional. The visibility of marketplace agents in the agent gallery.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The marketplaceAgentVisibility. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility + getMarketplaceAgentVisibility() { + com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility result = + com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility.forNumber( + marketplaceAgentVisibility_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility.UNRECOGNIZED + : result; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static final int PROCUREMENT_CONTACT_EMAILS_FIELD_NUMBER = 45; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata other) { - if (other - == com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance()) - return this; - if (!other.getDialogflowAgent().isEmpty()) { - dialogflowAgent_ = other.dialogflowAgent_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList procurementContactEmails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the procurementContactEmails. + */ + public com.google.protobuf.ProtocolStringList getProcurementContactEmailsList() { + return procurementContactEmails_; + } - @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: - { - dialogflowAgent_ = 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; - } + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of procurementContactEmails. + */ + public int getProcurementContactEmailsCount() { + return procurementContactEmails_.size(); + } - private int bitField0_; + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The procurementContactEmails at the given index. + */ + public java.lang.String getProcurementContactEmails(int index) { + return procurementContactEmails_.get(index); + } - private java.lang.Object dialogflowAgent_ = ""; + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the procurementContactEmails at the given index. + */ + public com.google.protobuf.ByteString getProcurementContactEmailsBytes(int index) { + return procurementContactEmails_.getByteString(index); + } - /** - * - * - *
-       * The resource name of a Dialogflow agent, that this Chat Engine refers
-       * to.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       * 
- * - * string dialogflow_agent = 1; - * - * @return The dialogflowAgent. - */ - public java.lang.String getDialogflowAgent() { - java.lang.Object ref = dialogflowAgent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dialogflowAgent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + public static final int ASSOCIATED_AGENT_REGISTRY_FIELD_NUMBER = 50; - /** - * - * - *
-       * The resource name of a Dialogflow agent, that this Chat Engine refers
-       * to.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       * 
- * - * string dialogflow_agent = 1; - * - * @return The bytes for dialogflowAgent. - */ - public com.google.protobuf.ByteString getDialogflowAgentBytes() { - java.lang.Object ref = dialogflowAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @SuppressWarnings("serial") + private volatile java.lang.Object associatedAgentRegistry_ = ""; - /** - * - * - *
-       * The resource name of a Dialogflow agent, that this Chat Engine refers
-       * to.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       * 
- * - * string dialogflow_agent = 1; - * - * @param value The dialogflowAgent to set. - * @return This builder for chaining. - */ - public Builder setDialogflowAgent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dialogflowAgent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
+   * Output only. The Agent registry containing the agents, MCP servers and
+   * tools associated with this engine. Derived server-side from the linked
+   * Agent Gateway's registry.
+   * 
+ * + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The associatedAgentRegistry. + */ + @java.lang.Override + public java.lang.String getAssociatedAgentRegistry() { + java.lang.Object ref = associatedAgentRegistry_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + associatedAgentRegistry_ = s; + return s; + } + } - /** - * - * - *
-       * The resource name of a Dialogflow agent, that this Chat Engine refers
-       * to.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       * 
- * - * string dialogflow_agent = 1; - * - * @return This builder for chaining. - */ - public Builder clearDialogflowAgent() { - dialogflowAgent_ = getDefaultInstance().getDialogflowAgent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
+   * Output only. The Agent registry containing the agents, MCP servers and
+   * tools associated with this engine. Derived server-side from the linked
+   * Agent Gateway's registry.
+   * 
+ * + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for associatedAgentRegistry. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssociatedAgentRegistryBytes() { + java.lang.Object ref = associatedAgentRegistry_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + associatedAgentRegistry_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-       * The resource name of a Dialogflow agent, that this Chat Engine refers
-       * to.
-       *
-       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>`.
-       * 
- * - * string dialogflow_agent = 1; - * - * @param value The bytes for dialogflowAgent to set. - * @return This builder for chaining. - */ - public Builder setDialogflowAgentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dialogflowAgent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + for (int i = 0; i < dataStoreIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStoreIds_.getRaw(i)); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, solutionType_); + } + if (engineConfigCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_); + } + if (engineMetadataCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_); + } + if (engineConfigCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_); + } + if (engineConfigCase_ == 14) { + output.writeMessage( + 14, + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getCommonConfig()); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, industryVertical_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(23, getKnowledgeGraphConfig()); + } + if (appType_ + != com.google.cloud.discoveryengine.v1.Engine.AppType.APP_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(24, appType_); + } + if (disableAnalytics_ != false) { + output.writeBool(26, disableAnalytics_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(29, getSessionConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetFeatures(), FeaturesDefaultEntryHolder.defaultEntry, 30); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(32, getCmekConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + output.writeEnum(36, configurableBillingApproach_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetModelConfigs(), ModelConfigsDefaultEntryHolder.defaultEntry, 37); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(39, getObservabilityConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetConnectorTenantInfo(), + ConnectorTenantInfoDefaultEntryHolder.defaultEntry, + 42); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(43, getAgentGatewaySetting()); + } + if (marketplaceAgentVisibility_ + != com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility + .MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(44, marketplaceAgentVisibility_); + } + for (int i = 0; i < procurementContactEmails_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 45, procurementContactEmails_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(associatedAgentRegistry_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 50, associatedAgentRegistry_); + } + getUnknownFields().writeTo(output); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) - private static final com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata - DEFAULT_INSTANCE; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata(); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - - public static com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata - getDefaultInstance() { - return DEFAULT_INSTANCE; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < dataStoreIds_.size(); i++) { + dataSize += computeStringSizeNoTag(dataStoreIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataStoreIdsList().size(); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, solutionType_); + } + if (engineConfigCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_); + } + if (engineMetadataCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_); + } + if (engineConfigCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_); + } + if (engineConfigCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCommonConfig()); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, industryVertical_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getKnowledgeGraphConfig()); + } + if (appType_ + != com.google.cloud.discoveryengine.v1.Engine.AppType.APP_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, appType_); + } + if (disableAnalytics_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, disableAnalytics_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getSessionConfig()); + } + for (java.util.Map.Entry entry : + internalGetFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry features__ = + FeaturesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, features__); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getCmekConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(36, configurableBillingApproach_); + } + for (java.util.Map.Entry entry : + internalGetModelConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry modelConfigs__ = + ModelConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, modelConfigs__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(39, getObservabilityConfig()); + } + for (java.util.Map.Entry entry : + internalGetConnectorTenantInfo().getMap().entrySet()) { + com.google.protobuf.MapEntry connectorTenantInfo__ = + ConnectorTenantInfoDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, connectorTenantInfo__); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(43, getAgentGatewaySetting()); + } + if (marketplaceAgentVisibility_ + != com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility + .MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(44, marketplaceAgentVisibility_); + } + { + int dataSize = 0; + for (int i = 0; i < procurementContactEmails_.size(); i++) { + dataSize += computeStringSizeNoTag(procurementContactEmails_.getRaw(i)); + } + size += dataSize; + size += 2 * getProcurementContactEmailsList().size(); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(associatedAgentRegistry_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(50, associatedAgentRegistry_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChatEngineMetadata 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(); - } - }; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Engine other = + (com.google.cloud.discoveryengine.v1.Engine) obj; - public static com.google.protobuf.Parser parser() { - return PARSER; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDataStoreIdsList().equals(other.getDataStoreIdsList())) return false; + if (solutionType_ != other.solutionType_) return false; + if (industryVertical_ != other.industryVertical_) return false; + if (hasCommonConfig() != other.hasCommonConfig()) return false; + if (hasCommonConfig()) { + if (!getCommonConfig().equals(other.getCommonConfig())) return false; + } + if (hasKnowledgeGraphConfig() != other.hasKnowledgeGraphConfig()) return false; + if (hasKnowledgeGraphConfig()) { + if (!getKnowledgeGraphConfig().equals(other.getKnowledgeGraphConfig())) return false; + } + if (appType_ != other.appType_) return false; + if (getDisableAnalytics() != other.getDisableAnalytics()) return false; + if (hasSessionConfig() != other.hasSessionConfig()) return false; + if (hasSessionConfig()) { + if (!getSessionConfig().equals(other.getSessionConfig())) return false; + } + if (!internalGetFeatures().equals(other.internalGetFeatures())) return false; + if (hasCmekConfig() != other.hasCmekConfig()) return false; + if (hasCmekConfig()) { + if (!getCmekConfig().equals(other.getCmekConfig())) return false; + } + if (configurableBillingApproach_ != other.configurableBillingApproach_) return false; + if (!internalGetModelConfigs().equals(other.internalGetModelConfigs())) return false; + if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; + if (hasObservabilityConfig()) { + if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false; + } + if (!internalGetConnectorTenantInfo().equals(other.internalGetConnectorTenantInfo())) + return false; + if (hasAgentGatewaySetting() != other.hasAgentGatewaySetting()) return false; + if (hasAgentGatewaySetting()) { + if (!getAgentGatewaySetting().equals(other.getAgentGatewaySetting())) return false; + } + if (marketplaceAgentVisibility_ != other.marketplaceAgentVisibility_) return false; + if (!getProcurementContactEmailsList().equals(other.getProcurementContactEmailsList())) + return false; + if (!getAssociatedAgentRegistry().equals(other.getAssociatedAgentRegistry())) return false; + if (!getEngineConfigCase().equals(other.getEngineConfigCase())) return false; + switch (engineConfigCase_) { + case 11: + if (!getChatEngineConfig().equals(other.getChatEngineConfig())) return false; + break; + case 13: + if (!getSearchEngineConfig().equals(other.getSearchEngineConfig())) return false; + break; + case 14: + if (!getMediaRecommendationEngineConfig() + .equals(other.getMediaRecommendationEngineConfig())) return false; + break; + case 0: + default: + } + if (!getEngineMetadataCase().equals(other.getEngineMetadataCase())) return false; + switch (engineMetadataCase_) { + case 12: + if (!getChatEngineMetadata().equals(other.getChatEngineMetadata())) return false; + break; + case 0: + default: } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + if (getDataStoreIdsCount() > 0) { + hash = (37 * hash) + DATA_STORE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreIdsList().hashCode(); } - } - - private int bitField0_; - private int engineConfigCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object engineConfig_; - - public enum EngineConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CHAT_ENGINE_CONFIG(11), - SEARCH_ENGINE_CONFIG(13), - MEDIA_RECOMMENDATION_ENGINE_CONFIG(14), - ENGINECONFIG_NOT_SET(0); - private final int value; - - private EngineConfigCase(int value) { - this.value = value; + hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + solutionType_; + hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; + hash = (53 * hash) + industryVertical_; + if (hasCommonConfig()) { + hash = (37 * hash) + COMMON_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCommonConfig().hashCode(); } - - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EngineConfigCase valueOf(int value) { - return forNumber(value); + if (hasKnowledgeGraphConfig()) { + hash = (37 * hash) + KNOWLEDGE_GRAPH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeGraphConfig().hashCode(); } - - public static EngineConfigCase forNumber(int value) { - switch (value) { - case 11: - return CHAT_ENGINE_CONFIG; - case 13: - return SEARCH_ENGINE_CONFIG; - case 14: - return MEDIA_RECOMMENDATION_ENGINE_CONFIG; - case 0: - return ENGINECONFIG_NOT_SET; - default: - return null; - } + hash = (37 * hash) + APP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + appType_; + hash = (37 * hash) + DISABLE_ANALYTICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAnalytics()); + if (hasSessionConfig()) { + hash = (37 * hash) + SESSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSessionConfig().hashCode(); + } + if (!internalGetFeatures().getMap().isEmpty()) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeatures().hashCode(); + } + if (hasCmekConfig()) { + hash = (37 * hash) + CMEK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfig().hashCode(); + } + hash = (37 * hash) + CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER; + hash = (53 * hash) + configurableBillingApproach_; + if (!internalGetModelConfigs().getMap().isEmpty()) { + hash = (37 * hash) + MODEL_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetModelConfigs().hashCode(); + } + if (hasObservabilityConfig()) { + hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityConfig().hashCode(); + } + if (!internalGetConnectorTenantInfo().getMap().isEmpty()) { + hash = (37 * hash) + CONNECTOR_TENANT_INFO_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnectorTenantInfo().hashCode(); + } + if (hasAgentGatewaySetting()) { + hash = (37 * hash) + AGENT_GATEWAY_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewaySetting().hashCode(); + } + hash = (37 * hash) + MARKETPLACE_AGENT_VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + marketplaceAgentVisibility_; + if (getProcurementContactEmailsCount() > 0) { + hash = (37 * hash) + PROCUREMENT_CONTACT_EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getProcurementContactEmailsList().hashCode(); + } + hash = (37 * hash) + ASSOCIATED_AGENT_REGISTRY_FIELD_NUMBER; + hash = (53 * hash) + getAssociatedAgentRegistry().hashCode(); + switch (engineConfigCase_) { + case 11: + hash = (37 * hash) + CHAT_ENGINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getChatEngineConfig().hashCode(); + break; + case 13: + hash = (37 * hash) + SEARCH_ENGINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSearchEngineConfig().hashCode(); + break; + case 14: + hash = (37 * hash) + MEDIA_RECOMMENDATION_ENGINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMediaRecommendationEngineConfig().hashCode(); + break; + case 0: + default: } - - public int getNumber() { - return this.value; + switch (engineMetadataCase_) { + case 12: + hash = (37 * hash) + CHAT_ENGINE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getChatEngineMetadata().hashCode(); + break; + case 0: + default: } - }; - - public EngineConfigCase getEngineConfigCase() { - return EngineConfigCase.forNumber(engineConfigCase_); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int engineMetadataCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object engineMetadata_; - - public enum EngineMetadataCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CHAT_ENGINE_METADATA(12), - ENGINEMETADATA_NOT_SET(0); - private final int value; + public static com.google.cloud.discoveryengine.v1.Engine parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private EngineMetadataCase(int value) { - this.value = value; - } + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EngineMetadataCase valueOf(int value) { - return forNumber(value); - } + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static EngineMetadataCase forNumber(int value) { - switch (value) { - case 12: - return CHAT_ENGINE_METADATA; - case 0: - return ENGINEMETADATA_NOT_SET; - default: - return null; - } - } + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public int getNumber() { - return this.value; - } - }; + public static com.google.cloud.discoveryengine.v1.Engine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public EngineMetadataCase getEngineMetadataCase() { - return EngineMetadataCase.forNumber(engineMetadataCase_); + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static final int CHAT_ENGINE_CONFIG_FIELD_NUMBER = 11; + public static com.google.cloud.discoveryengine.v1.Engine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Configurations for the Chat Engine. Only applicable if
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - * - * @return Whether the chatEngineConfig field is set. - */ - @java.lang.Override - public boolean hasChatEngineConfig() { - return engineConfigCase_ == 11; + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
-   * Configurations for the Chat Engine. Only applicable if
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - * - * @return The chatEngineConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getChatEngineConfig() { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + public static com.google.cloud.discoveryengine.v1.Engine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - /** - * - * - *
-   * Configurations for the Chat Engine. Only applicable if
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder - getChatEngineConfigOrBuilder() { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + public static com.google.cloud.discoveryengine.v1.Engine parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static final int SEARCH_ENGINE_CONFIG_FIELD_NUMBER = 13; + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Configurations for the Search Engine. Only applicable if
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * - * - * @return Whether the searchEngineConfig field is set. - */ - @java.lang.Override - public boolean hasSearchEngineConfig() { - return engineConfigCase_ == 13; + public static com.google.cloud.discoveryengine.v1.Engine parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
-   * Configurations for the Search Engine. Only applicable if
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * - * - * @return The searchEngineConfig. - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig getSearchEngineConfig() { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + public Builder newBuilderForType() { + return newBuilder(); } - /** - * - * - *
-   * Configurations for the Search Engine. Only applicable if
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder - getSearchEngineConfigOrBuilder() { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - public static final int MEDIA_RECOMMENDATION_ENGINE_CONFIG_FIELD_NUMBER = 14; + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Engine prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
-   * Configurations for the Media Engine. Only applicable on the data
-   * stores with
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * and
-   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-   * vertical.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; - * - * - * @return Whether the mediaRecommendationEngineConfig field is set. - */ @java.lang.Override - public boolean hasMediaRecommendationEngineConfig() { - return engineConfigCase_ == 14; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-   * Configurations for the Media Engine. Only applicable on the data
-   * stores with
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * and
-   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-   * vertical.
+   * Metadata that describes the training and serving parameters of an
+   * [Engine][google.cloud.discoveryengine.v1.Engine].
    * 
* - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; - * - * - * @return The mediaRecommendationEngineConfig. + * Protobuf type {@code google.cloud.discoveryengine.v1.Engine} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - getMediaRecommendationEngineConfig() { - if (engineConfigCase_ == 14) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_; + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine) + com.google.cloud.discoveryengine.v1.EngineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetFeatures(); + case 37: + return internalGetModelConfigs(); + case 42: + return internalGetConnectorTenantInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetMutableFeatures(); + case 37: + return internalGetMutableModelConfigs(); + case 42: + return internalGetMutableConnectorTenantInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Engine.class, + com.google.cloud.discoveryengine.v1.Engine.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Engine.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetCommonConfigFieldBuilder(); + internalGetKnowledgeGraphConfigFieldBuilder(); + internalGetSessionConfigFieldBuilder(); + internalGetCmekConfigFieldBuilder(); + internalGetObservabilityConfigFieldBuilder(); + internalGetAgentGatewaySettingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (chatEngineConfigBuilder_ != null) { + chatEngineConfigBuilder_.clear(); + } + if (searchEngineConfigBuilder_ != null) { + searchEngineConfigBuilder_.clear(); + } + if (mediaRecommendationEngineConfigBuilder_ != null) { + mediaRecommendationEngineConfigBuilder_.clear(); + } + if (chatEngineMetadataBuilder_ != null) { + chatEngineMetadataBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + solutionType_ = 0; + industryVertical_ = 0; + commonConfig_ = null; + if (commonConfigBuilder_ != null) { + commonConfigBuilder_.dispose(); + commonConfigBuilder_ = null; + } + knowledgeGraphConfig_ = null; + if (knowledgeGraphConfigBuilder_ != null) { + knowledgeGraphConfigBuilder_.dispose(); + knowledgeGraphConfigBuilder_ = null; + } + appType_ = 0; + disableAnalytics_ = false; + sessionConfig_ = null; + if (sessionConfigBuilder_ != null) { + sessionConfigBuilder_.dispose(); + sessionConfigBuilder_ = null; + } + internalGetMutableFeatures().clear(); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } + configurableBillingApproach_ = 0; + internalGetMutableModelConfigs().clear(); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + internalGetMutableConnectorTenantInfo().clear(); + agentGatewaySetting_ = null; + if (agentGatewaySettingBuilder_ != null) { + agentGatewaySettingBuilder_.dispose(); + agentGatewaySettingBuilder_ = null; + } + marketplaceAgentVisibility_ = 0; + procurementContactEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + associatedAgentRegistry_ = ""; + engineConfigCase_ = 0; + engineConfig_ = null; + engineMetadataCase_ = 0; + engineMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.EngineProto + .internal_static_google_cloud_discoveryengine_v1_Engine_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Engine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine build() { + com.google.cloud.discoveryengine.v1.Engine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine buildPartial() { + com.google.cloud.discoveryengine.v1.Engine result = + new com.google.cloud.discoveryengine.v1.Engine(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Engine result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + dataStoreIds_.makeImmutable(); + result.dataStoreIds_ = dataStoreIds_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.solutionType_ = solutionType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.industryVertical_ = industryVertical_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.commonConfig_ = + commonConfigBuilder_ == null ? commonConfig_ : commonConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.knowledgeGraphConfig_ = + knowledgeGraphConfigBuilder_ == null + ? knowledgeGraphConfig_ + : knowledgeGraphConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.appType_ = appType_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.disableAnalytics_ = disableAnalytics_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.sessionConfig_ = + sessionConfigBuilder_ == null ? sessionConfig_ : sessionConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.features_ = internalGetFeatures(); + result.features_.makeImmutable(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.configurableBillingApproach_ = configurableBillingApproach_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.modelConfigs_ = internalGetModelConfigs(); + result.modelConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.observabilityConfig_ = + observabilityConfigBuilder_ == null + ? observabilityConfig_ + : observabilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.connectorTenantInfo_ = internalGetConnectorTenantInfo(); + result.connectorTenantInfo_.makeImmutable(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.agentGatewaySetting_ = + agentGatewaySettingBuilder_ == null + ? agentGatewaySetting_ + : agentGatewaySettingBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.marketplaceAgentVisibility_ = marketplaceAgentVisibility_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + procurementContactEmails_.makeImmutable(); + result.procurementContactEmails_ = procurementContactEmails_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.associatedAgentRegistry_ = associatedAgentRegistry_; + } + result.bitField0_ |= to_bitField0_; } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); - } - /** - * - * - *
-   * Configurations for the Media Engine. Only applicable on the data
-   * stores with
-   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * and
-   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-   * vertical.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder - getMediaRecommendationEngineConfigOrBuilder() { - if (engineConfigCase_ == 14) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_; + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Engine result) { + result.engineConfigCase_ = engineConfigCase_; + result.engineConfig_ = this.engineConfig_; + if (engineConfigCase_ == 11 && chatEngineConfigBuilder_ != null) { + result.engineConfig_ = chatEngineConfigBuilder_.build(); + } + if (engineConfigCase_ == 13 && searchEngineConfigBuilder_ != null) { + result.engineConfig_ = searchEngineConfigBuilder_.build(); + } + if (engineConfigCase_ == 14 && mediaRecommendationEngineConfigBuilder_ != null) { + result.engineConfig_ = mediaRecommendationEngineConfigBuilder_.build(); + } + result.engineMetadataCase_ = engineMetadataCase_; + result.engineMetadata_ = this.engineMetadata_; + if (engineMetadataCase_ == 12 && chatEngineMetadataBuilder_ != null) { + result.engineMetadata_ = chatEngineMetadataBuilder_.build(); + } } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); - } - public static final int CHAT_ENGINE_METADATA_FIELD_NUMBER = 12; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Engine) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Engine) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
-   * Output only. Additional information of the Chat Engine. Only applicable
-   * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-   * is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the chatEngineMetadata field is set. - */ - @java.lang.Override - public boolean hasChatEngineMetadata() { - return engineMetadataCase_ == 12; - } + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine other) { + if (other == com.google.cloud.discoveryengine.v1.Engine.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.dataStoreIds_.isEmpty()) { + if (dataStoreIds_.isEmpty()) { + dataStoreIds_ = other.dataStoreIds_; + bitField0_ |= 0x00000100; + } else { + ensureDataStoreIdsIsMutable(); + dataStoreIds_.addAll(other.dataStoreIds_); + } + onChanged(); + } + if (other.solutionType_ != 0) { + setSolutionTypeValue(other.getSolutionTypeValue()); + } + if (other.industryVertical_ != 0) { + setIndustryVerticalValue(other.getIndustryVerticalValue()); + } + if (other.hasCommonConfig()) { + mergeCommonConfig(other.getCommonConfig()); + } + if (other.hasKnowledgeGraphConfig()) { + mergeKnowledgeGraphConfig(other.getKnowledgeGraphConfig()); + } + if (other.appType_ != 0) { + setAppTypeValue(other.getAppTypeValue()); + } + if (other.getDisableAnalytics() != false) { + setDisableAnalytics(other.getDisableAnalytics()); + } + if (other.hasSessionConfig()) { + mergeSessionConfig(other.getSessionConfig()); + } + internalGetMutableFeatures().mergeFrom(other.internalGetFeatures()); + bitField0_ |= 0x00010000; + if (other.hasCmekConfig()) { + mergeCmekConfig(other.getCmekConfig()); + } + if (other.configurableBillingApproach_ != 0) { + setConfigurableBillingApproachValue(other.getConfigurableBillingApproachValue()); + } + internalGetMutableModelConfigs().mergeFrom(other.internalGetModelConfigs()); + bitField0_ |= 0x00080000; + if (other.hasObservabilityConfig()) { + mergeObservabilityConfig(other.getObservabilityConfig()); + } + internalGetMutableConnectorTenantInfo().mergeFrom(other.internalGetConnectorTenantInfo()); + bitField0_ |= 0x00200000; + if (other.hasAgentGatewaySetting()) { + mergeAgentGatewaySetting(other.getAgentGatewaySetting()); + } + if (other.marketplaceAgentVisibility_ != 0) { + setMarketplaceAgentVisibilityValue(other.getMarketplaceAgentVisibilityValue()); + } + if (!other.procurementContactEmails_.isEmpty()) { + if (procurementContactEmails_.isEmpty()) { + procurementContactEmails_ = other.procurementContactEmails_; + bitField0_ |= 0x01000000; + } else { + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.addAll(other.procurementContactEmails_); + } + onChanged(); + } + if (!other.getAssociatedAgentRegistry().isEmpty()) { + associatedAgentRegistry_ = other.associatedAgentRegistry_; + bitField0_ |= 0x02000000; + onChanged(); + } + switch (other.getEngineConfigCase()) { + case CHAT_ENGINE_CONFIG: + { + mergeChatEngineConfig(other.getChatEngineConfig()); + break; + } + case SEARCH_ENGINE_CONFIG: + { + mergeSearchEngineConfig(other.getSearchEngineConfig()); + break; + } + case MEDIA_RECOMMENDATION_ENGINE_CONFIG: + { + mergeMediaRecommendationEngineConfig(other.getMediaRecommendationEngineConfig()); + break; + } + case ENGINECONFIG_NOT_SET: + { + break; + } + } + switch (other.getEngineMetadataCase()) { + case CHAT_ENGINE_METADATA: + { + mergeChatEngineMetadata(other.getChatEngineMetadata()); + break; + } + case ENGINEMETADATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-   * Output only. Additional information of the Chat Engine. Only applicable
-   * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-   * is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The chatEngineMetadata. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata getChatEngineMetadata() { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; + @java.lang.Override + public final boolean isInitialized() { + return true; } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); - } - /** - * - * - *
-   * Output only. Additional information of the Chat Engine. Only applicable
-   * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-   * is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
-   * 
- * - * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder - getChatEngineMetadataOrBuilder() { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataStoreIdsIsMutable(); + dataStoreIds_.add(s); + break; + } // case 42 + case 48: + { + solutionType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 48 + case 90: + { + input.readMessage( + internalGetChatEngineConfigFieldBuilder().getBuilder(), extensionRegistry); + engineConfigCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetChatEngineMetadataFieldBuilder().getBuilder(), extensionRegistry); + engineMetadataCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetSearchEngineConfigFieldBuilder().getBuilder(), extensionRegistry); + engineConfigCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetMediaRecommendationEngineConfigFieldBuilder().getBuilder(), + extensionRegistry); + engineConfigCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetCommonConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 122 + case 128: + { + industryVertical_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 128 + case 186: + { + input.readMessage( + internalGetKnowledgeGraphConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 186 + case 192: + { + appType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 192 + case 208: + { + disableAnalytics_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 208 + case 234: + { + input.readMessage( + internalGetSessionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 234 + case 242: + { + com.google.protobuf.MapEntry features__ = + input.readMessage( + FeaturesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFeatures() + .getMutableMap() + .put(features__.getKey(), features__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 242 + case 258: + { + input.readMessage( + internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 258 + case 288: + { + configurableBillingApproach_ = input.readEnum(); + bitField0_ |= 0x00040000; + break; + } // case 288 + case 298: + { + com.google.protobuf.MapEntry modelConfigs__ = + input.readMessage( + ModelConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModelConfigs() + .getMutableMap() + .put(modelConfigs__.getKey(), modelConfigs__.getValue()); + bitField0_ |= 0x00080000; + break; + } // case 298 + case 314: + { + input.readMessage( + internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 314 + case 338: + { + com.google.protobuf.MapEntry + connectorTenantInfo__ = + input.readMessage( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConnectorTenantInfo() + .getMutableMap() + .put(connectorTenantInfo__.getKey(), connectorTenantInfo__.getValue()); + bitField0_ |= 0x00200000; + break; + } // case 338 + case 346: + { + input.readMessage( + internalGetAgentGatewaySettingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 346 + case 352: + { + marketplaceAgentVisibility_ = input.readEnum(); + bitField0_ |= 0x00800000; + break; + } // case 352 + case 362: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.add(s); + break; + } // case 362 + case 402: + { + associatedAgentRegistry_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 402 + 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; } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + private int engineConfigCase_ = 0; + private java.lang.Object engineConfig_; - /** - * - * - *
-   * Immutable. Identifier. The fully qualified resource name of the engine.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
-   *
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
-   * engine should be 1-63 characters, and valid characters are
-   * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public EngineConfigCase getEngineConfigCase() { + return EngineConfigCase.forNumber(engineConfigCase_); } - } - /** - * - * - *
-   * Immutable. Identifier. The fully qualified resource name of the engine.
-   *
-   * This field must be a UTF-8 encoded string with a length limit of 1024
-   * characters.
-   *
-   * Format:
-   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
-   * engine should be 1-63 characters, and valid characters are
-   * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder clearEngineConfig() { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + return this; } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; + private int engineMetadataCase_ = 0; + private java.lang.Object engineMetadata_; - /** - * - * - *
-   * Required. The display name of the engine. Should be human readable. UTF-8
-   * encoded string with limit of 1024 characters.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; + public EngineMetadataCase getEngineMetadataCase() { + return EngineMetadataCase.forNumber(engineMetadataCase_); } - } - /** - * - * - *
-   * Required. The display name of the engine. Should be human readable. UTF-8
-   * encoded string with limit of 1024 characters.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 Builder clearEngineMetadata() { + engineMetadataCase_ = 0; + engineMetadata_ = null; + onChanged(); + return this; } - } - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; + private int bitField0_; - /** - * - * - *
-   * Output only. Timestamp the Recommendation Engine was created at.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder> + chatEngineConfigBuilder_; - /** - * - * - *
-   * Output only. Timestamp the Recommendation Engine was created at.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * + * @return Whether the chatEngineConfig field is set. + */ + @java.lang.Override + public boolean hasChatEngineConfig() { + return engineConfigCase_ == 11; + } - /** - * - * - *
-   * Output only. Timestamp the Recommendation Engine was created at.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * + * @return The chatEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getChatEngineConfig() { + if (chatEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } else { + if (engineConfigCase_ == 11) { + return chatEngineConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } + } - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder setChatEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig value) { + if (chatEngineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineConfig_ = value; + onChanged(); + } else { + chatEngineConfigBuilder_.setMessage(value); + } + engineConfigCase_ = 11; + return this; + } - /** - * - * - *
-   * Output only. Timestamp the Recommendation Engine was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder setChatEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder builderForValue) { + if (chatEngineConfigBuilder_ == null) { + engineConfig_ = builderForValue.build(); + onChanged(); + } else { + chatEngineConfigBuilder_.setMessage(builderForValue.build()); + } + engineConfigCase_ = 11; + return this; + } - /** - * - * - *
-   * Output only. Timestamp the Recommendation Engine was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder mergeChatEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig value) { + if (chatEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 11 + && engineConfig_ + != com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig + .getDefaultInstance()) { + engineConfig_ = + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.newBuilder( + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + engineConfig_ = value; + } + onChanged(); + } else { + if (engineConfigCase_ == 11) { + chatEngineConfigBuilder_.mergeFrom(value); + } else { + chatEngineConfigBuilder_.setMessage(value); + } + } + engineConfigCase_ = 11; + return this; + } - /** - * - * - *
-   * Output only. Timestamp the Recommendation Engine was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder clearChatEngineConfig() { + if (chatEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 11) { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + } + } else { + if (engineConfigCase_ == 11) { + engineConfigCase_ = 0; + engineConfig_ = null; + } + chatEngineConfigBuilder_.clear(); + } + return this; + } - public static final int DATA_STORE_IDS_FIELD_NUMBER = 5; + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder + getChatEngineConfigBuilder() { + return internalGetChatEngineConfigFieldBuilder().getBuilder(); + } - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList dataStoreIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder + getChatEngineConfigOrBuilder() { + if ((engineConfigCase_ == 11) && (chatEngineConfigBuilder_ != null)) { + return chatEngineConfigBuilder_.getMessageOrBuilder(); + } else { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } + } - /** - * - * - *
-   * Optional. The data stores associated with this engine.
-   *
-   * For
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-   * and
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * type of engines, they can only associate with at most one data store.
-   *
-   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-   * associated here.
-   *
-   * Note that when used in
-   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-   * one DataStore id must be provided as the system will use it for necessary
-   * initializations.
-   * 
- * - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the dataStoreIds. - */ - public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { - return dataStoreIds_; - } + /** + * + * + *
+     * Configurations for the Chat Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder> + internalGetChatEngineConfigFieldBuilder() { + if (chatEngineConfigBuilder_ == null) { + if (!(engineConfigCase_ == 11)) { + engineConfig_ = + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + } + chatEngineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_, + getParentForChildren(), + isClean()); + engineConfig_ = null; + } + engineConfigCase_ = 11; + onChanged(); + return chatEngineConfigBuilder_; + } - /** - * - * - *
-   * Optional. The data stores associated with this engine.
-   *
-   * For
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-   * and
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * type of engines, they can only associate with at most one data store.
-   *
-   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-   * associated here.
-   *
-   * Note that when used in
-   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-   * one DataStore id must be provided as the system will use it for necessary
-   * initializations.
-   * 
- * - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of dataStoreIds. - */ - public int getDataStoreIdsCount() { - return dataStoreIds_.size(); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder> + searchEngineConfigBuilder_; - /** - * - * - *
-   * Optional. The data stores associated with this engine.
-   *
-   * For
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-   * and
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * type of engines, they can only associate with at most one data store.
-   *
-   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-   * associated here.
-   *
-   * Note that when used in
-   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-   * one DataStore id must be provided as the system will use it for necessary
-   * initializations.
-   * 
- * - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The dataStoreIds at the given index. - */ - public java.lang.String getDataStoreIds(int index) { - return dataStoreIds_.get(index); - } + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return Whether the searchEngineConfig field is set. + */ + @java.lang.Override + public boolean hasSearchEngineConfig() { + return engineConfigCase_ == 13; + } - /** - * - * - *
-   * Optional. The data stores associated with this engine.
-   *
-   * For
-   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-   * and
-   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-   * type of engines, they can only associate with at most one data store.
-   *
-   * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-   * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-   * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-   * associated here.
-   *
-   * Note that when used in
-   * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-   * one DataStore id must be provided as the system will use it for necessary
-   * initializations.
-   * 
- * - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the dataStoreIds at the given index. - */ - public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { - return dataStoreIds_.getByteString(index); - } + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return The searchEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig getSearchEngineConfig() { + if (searchEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } else { + if (engineConfigCase_ == 13) { + return searchEngineConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } + } - public static final int SOLUTION_TYPE_FIELD_NUMBER = 6; - private int solutionType_ = 0; + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder setSearchEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig value) { + if (searchEngineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineConfig_ = value; + onChanged(); + } else { + searchEngineConfigBuilder_.setMessage(value); + } + engineConfigCase_ = 13; + return this; + } - /** - * - * - *
-   * Required. The solutions of the engine.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for solutionType. - */ - @java.lang.Override - public int getSolutionTypeValue() { - return solutionType_; - } + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder setSearchEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder builderForValue) { + if (searchEngineConfigBuilder_ == null) { + engineConfig_ = builderForValue.build(); + onChanged(); + } else { + searchEngineConfigBuilder_.setMessage(builderForValue.build()); + } + engineConfigCase_ = 13; + return this; + } - /** - * - * - *
-   * Required. The solutions of the engine.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The solutionType. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SolutionType getSolutionType() { - com.google.cloud.discoveryengine.v1.SolutionType result = - com.google.cloud.discoveryengine.v1.SolutionType.forNumber(solutionType_); - return result == null ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED : result; - } + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder mergeSearchEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig value) { + if (searchEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 13 + && engineConfig_ + != com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig + .getDefaultInstance()) { + engineConfig_ = + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.newBuilder( + (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + engineConfig_ = value; + } + onChanged(); + } else { + if (engineConfigCase_ == 13) { + searchEngineConfigBuilder_.mergeFrom(value); + } else { + searchEngineConfigBuilder_.setMessage(value); + } + } + engineConfigCase_ = 13; + return this; + } - public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 16; - private int industryVertical_ = 0; + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder clearSearchEngineConfig() { + if (searchEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 13) { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + } + } else { + if (engineConfigCase_ == 13) { + engineConfigCase_ = 0; + engineConfig_ = null; + } + searchEngineConfigBuilder_.clear(); + } + return this; + } - /** - * - * - *
-   * Optional. The industry vertical that the engine registers.
-   * The restriction of the Engine industry vertical is based on
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-   * has to match vertical of the DataStore linked to the engine.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for industryVertical. - */ - @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; - } + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder + getSearchEngineConfigBuilder() { + return internalGetSearchEngineConfigFieldBuilder().getBuilder(); + } - /** - * - * - *
-   * Optional. The industry vertical that the engine registers.
-   * The restriction of the Engine industry vertical is based on
-   * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-   * has to match vertical of the DataStore linked to the engine.
-   * 
- * - * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The industryVertical. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1.IndustryVertical result = - com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); - return result == null - ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED - : result; - } + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder + getSearchEngineConfigOrBuilder() { + if ((engineConfigCase_ == 13) && (searchEngineConfigBuilder_ != null)) { + return searchEngineConfigBuilder_.getMessageOrBuilder(); + } else { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } + } - public static final int COMMON_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.discoveryengine.v1.Engine.CommonConfig commonConfig_; + /** + * + * + *
+     * Configurations for the Search Engine. Only applicable if
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder> + internalGetSearchEngineConfigFieldBuilder() { + if (searchEngineConfigBuilder_ == null) { + if (!(engineConfigCase_ == 13)) { + engineConfig_ = + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + } + searchEngineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_, + getParentForChildren(), + isClean()); + engineConfig_ = null; + } + engineConfigCase_ = 13; + onChanged(); + return searchEngineConfigBuilder_; + } - /** - * - * - *
-   * Common config spec that specifies the metadata of the engine.
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; - * - * @return Whether the commonConfig field is set. - */ - @java.lang.Override - public boolean hasCommonConfig() { - return ((bitField0_ & 0x00000004) != 0); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder> + mediaRecommendationEngineConfigBuilder_; - /** - * - * - *
-   * Common config spec that specifies the metadata of the engine.
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; - * - * @return The commonConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getCommonConfig() { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return Whether the mediaRecommendationEngineConfig field is set. + */ + @java.lang.Override + public boolean hasMediaRecommendationEngineConfig() { + return engineConfigCase_ == 14; + } - /** - * - * - *
-   * Common config spec that specifies the metadata of the engine.
-   * 
- * - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder - getCommonConfigOrBuilder() { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return The mediaRecommendationEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + getMediaRecommendationEngineConfig() { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } else { + if (engineConfigCase_ == 14) { + return mediaRecommendationEngineConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + } - public static final int DISABLE_ANALYTICS_FIELD_NUMBER = 26; - private boolean disableAnalytics_ = false; + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder setMediaRecommendationEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig value) { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineConfig_ = value; + onChanged(); + } else { + mediaRecommendationEngineConfigBuilder_.setMessage(value); + } + engineConfigCase_ = 14; + return this; + } - /** - * - * - *
-   * Optional. Whether to disable analytics for searches performed on this
-   * engine.
-   * 
- * - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAnalytics. - */ - @java.lang.Override - public boolean getDisableAnalytics() { - return disableAnalytics_; - } + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder setMediaRecommendationEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder + builderForValue) { + if (mediaRecommendationEngineConfigBuilder_ == null) { + engineConfig_ = builderForValue.build(); + onChanged(); + } else { + mediaRecommendationEngineConfigBuilder_.setMessage(builderForValue.build()); + } + engineConfigCase_ = 14; + return this; + } - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder mergeMediaRecommendationEngineConfig( + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig value) { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 14 + && engineConfig_ + != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance()) { + engineConfig_ = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.newBuilder( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + engineConfig_ = value; + } + onChanged(); + } else { + if (engineConfigCase_ == 14) { + mediaRecommendationEngineConfigBuilder_.mergeFrom(value); + } else { + mediaRecommendationEngineConfigBuilder_.setMessage(value); + } + } + engineConfigCase_ = 14; + return this; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder clearMediaRecommendationEngineConfig() { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 14) { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + } + } else { + if (engineConfigCase_ == 14) { + engineConfigCase_ = 0; + engineConfig_ = null; + } + mediaRecommendationEngineConfigBuilder_.clear(); + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder + getMediaRecommendationEngineConfigBuilder() { + return internalGetMediaRecommendationEngineConfigFieldBuilder().getBuilder(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder + getMediaRecommendationEngineConfigOrBuilder() { + if ((engineConfigCase_ == 14) && (mediaRecommendationEngineConfigBuilder_ != null)) { + return mediaRecommendationEngineConfigBuilder_.getMessageOrBuilder(); + } else { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_; + } + return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + + /** + * + * + *
+     * Configurations for the Media Engine. Only applicable on the data
+     * stores with
+     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * and
+     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
+     * vertical.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder> + internalGetMediaRecommendationEngineConfigFieldBuilder() { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (!(engineConfigCase_ == 14)) { + engineConfig_ = + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + mediaRecommendationEngineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig, + com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine + .MediaRecommendationEngineConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) + engineConfig_, + getParentForChildren(), + isClean()); + engineConfig_ = null; + } + engineConfigCase_ = 14; + onChanged(); + return mediaRecommendationEngineConfigBuilder_; } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCreateTime()); + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder> + chatEngineMetadataBuilder_; + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chatEngineMetadata field is set. + */ + @java.lang.Override + public boolean hasChatEngineMetadata() { + return engineMetadataCase_ == 12; } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getUpdateTime()); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chatEngineMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata getChatEngineMetadata() { + if (chatEngineMetadataBuilder_ == null) { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } else { + if (engineMetadataCase_ == 12) { + return chatEngineMetadataBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } } - for (int i = 0; i < dataStoreIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStoreIds_.getRaw(i)); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChatEngineMetadata( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata value) { + if (chatEngineMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineMetadata_ = value; + onChanged(); + } else { + chatEngineMetadataBuilder_.setMessage(value); + } + engineMetadataCase_ = 12; + return this; } - if (solutionType_ - != com.google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, solutionType_); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChatEngineMetadata( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder builderForValue) { + if (chatEngineMetadataBuilder_ == null) { + engineMetadata_ = builderForValue.build(); + onChanged(); + } else { + chatEngineMetadataBuilder_.setMessage(builderForValue.build()); + } + engineMetadataCase_ = 12; + return this; } - if (engineConfigCase_ == 11) { - output.writeMessage( - 11, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeChatEngineMetadata( + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata value) { + if (chatEngineMetadataBuilder_ == null) { + if (engineMetadataCase_ == 12 + && engineMetadata_ + != com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata + .getDefaultInstance()) { + engineMetadata_ = + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.newBuilder( + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) + engineMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + engineMetadata_ = value; + } + onChanged(); + } else { + if (engineMetadataCase_ == 12) { + chatEngineMetadataBuilder_.mergeFrom(value); + } else { + chatEngineMetadataBuilder_.setMessage(value); + } + } + engineMetadataCase_ = 12; + return this; } - if (engineMetadataCase_ == 12) { - output.writeMessage( - 12, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearChatEngineMetadata() { + if (chatEngineMetadataBuilder_ == null) { + if (engineMetadataCase_ == 12) { + engineMetadataCase_ = 0; + engineMetadata_ = null; + onChanged(); + } + } else { + if (engineMetadataCase_ == 12) { + engineMetadataCase_ = 0; + engineMetadata_ = null; + } + chatEngineMetadataBuilder_.clear(); + } + return this; } - if (engineConfigCase_ == 13) { - output.writeMessage( - 13, (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder + getChatEngineMetadataBuilder() { + return internalGetChatEngineMetadataFieldBuilder().getBuilder(); } - if (engineConfigCase_ == 14) { - output.writeMessage( - 14, - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder + getChatEngineMetadataOrBuilder() { + if ((engineMetadataCase_ == 12) && (chatEngineMetadataBuilder_ != null)) { + return chatEngineMetadataBuilder_.getMessageOrBuilder(); + } else { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; + } + return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(15, getCommonConfig()); + + /** + * + * + *
+     * Output only. Additional information of the Chat Engine. Only applicable
+     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
+     * is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder> + internalGetChatEngineMetadataFieldBuilder() { + if (chatEngineMetadataBuilder_ == null) { + if (!(engineMetadataCase_ == 12)) { + engineMetadata_ = + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + } + chatEngineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder, + com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder>( + (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_, + getParentForChildren(), + isClean()); + engineMetadata_ = null; + } + engineMetadataCase_ = 12; + onChanged(); + return chatEngineMetadataBuilder_; } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - output.writeEnum(16, industryVertical_); + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the engine.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * engine should be 1-63 characters, and valid characters are
+     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (disableAnalytics_ != false) { - output.writeBool(26, disableAnalytics_); + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the engine.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * engine should be 1-63 characters, and valid characters are
+     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - { - int dataSize = 0; - for (int i = 0; i < dataStoreIds_.size(); i++) { - dataSize += computeStringSizeNoTag(dataStoreIds_.getRaw(i)); + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the engine.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * engine should be 1-63 characters, and valid characters are
+     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - size += dataSize; - size += 1 * getDataStoreIdsList().size(); - } - if (solutionType_ - != com.google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, solutionType_); + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - if (engineConfigCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_); + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the engine.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * engine should be 1-63 characters, and valid characters are
+     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; } - if (engineMetadataCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_); + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the engine.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * engine should be 1-63 characters, and valid characters are
+     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - if (engineConfigCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_); + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. The display name of the engine. Should be human readable. UTF-8
+     * encoded string with limit of 1024 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } } - if (engineConfigCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_); + + /** + * + * + *
+     * Required. The display name of the engine. Should be human readable. UTF-8
+     * encoded string with limit of 1024 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCommonConfig()); + + /** + * + * + *
+     * Required. The display name of the engine. Should be human readable. UTF-8
+     * encoded string with limit of 1024 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, industryVertical_); + + /** + * + * + *
+     * Required. The display name of the engine. Should be human readable. UTF-8
+     * encoded string with limit of 1024 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; } - if (disableAnalytics_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, disableAnalytics_); + + /** + * + * + *
+     * Required. The display name of the engine. Should be human readable. UTF-8
+     * encoded string with limit of 1024 characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Engine)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Engine other = - (com.google.cloud.discoveryengine.v1.Engine) obj; + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); } - if (!getDataStoreIdsList().equals(other.getDataStoreIdsList())) return false; - if (solutionType_ != other.solutionType_) return false; - if (industryVertical_ != other.industryVertical_) return false; - if (hasCommonConfig() != other.hasCommonConfig()) return false; - if (hasCommonConfig()) { - if (!getCommonConfig().equals(other.getCommonConfig())) return false; + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } } - if (getDisableAnalytics() != other.getDisableAnalytics()) return false; - if (!getEngineConfigCase().equals(other.getEngineConfigCase())) return false; - switch (engineConfigCase_) { - case 11: - if (!getChatEngineConfig().equals(other.getChatEngineConfig())) return false; - break; - case 13: - if (!getSearchEngineConfig().equals(other.getSearchEngineConfig())) return false; - break; - case 14: - if (!getMediaRecommendationEngineConfig() - .equals(other.getMediaRecommendationEngineConfig())) return false; - break; - case 0: - default: + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; } - if (!getEngineMetadataCase().equals(other.getEngineMetadataCase())) return false; - switch (engineMetadataCase_) { - case 12: - if (!getChatEngineMetadata().equals(other.getChatEngineMetadata())) return false; - break; - case 0: - default: + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } - if (getDataStoreIdsCount() > 0) { - hash = (37 * hash) + DATA_STORE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getDataStoreIdsList().hashCode(); + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } } - hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + solutionType_; - hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; - hash = (53 * hash) + industryVertical_; - if (hasCommonConfig()) { - hash = (37 * hash) + COMMON_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCommonConfig().hashCode(); + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was created at.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; } - hash = (37 * hash) + DISABLE_ANALYTICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAnalytics()); - switch (engineConfigCase_) { - case 11: - hash = (37 * hash) + CHAT_ENGINE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getChatEngineConfig().hashCode(); - break; - case 13: - hash = (37 * hash) + SEARCH_ENGINE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSearchEngineConfig().hashCode(); - break; - case 14: - hash = (37 * hash) + MEDIA_RECOMMENDATION_ENGINE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMediaRecommendationEngineConfig().hashCode(); - break; - case 0: - default: + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); } - switch (engineMetadataCase_) { - case 12: - hash = (37 * hash) + CHAT_ENGINE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getChatEngineMetadata().hashCode(); - break; - case 0: - default: + + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * Output only. Timestamp the Recommendation Engine was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private com.google.protobuf.LazyStringArrayList dataStoreIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.discoveryengine.v1.Engine parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + private void ensureDataStoreIdsIsMutable() { + if (!dataStoreIds_.isModifiable()) { + dataStoreIds_ = new com.google.protobuf.LazyStringArrayList(dataStoreIds_); + } + bitField0_ |= 0x00000100; + } - public static com.google.cloud.discoveryengine.v1.Engine parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dataStoreIds. + */ + public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { + dataStoreIds_.makeImmutable(); + return dataStoreIds_; + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dataStoreIds. + */ + public int getDataStoreIdsCount() { + return dataStoreIds_.size(); + } - public static com.google.cloud.discoveryengine.v1.Engine parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dataStoreIds at the given index. + */ + public java.lang.String getDataStoreIds(int index) { + return dataStoreIds_.get(index); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStoreIds at the given index. + */ + public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { + return dataStoreIds_.getByteString(index); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The dataStoreIds to set. + * @return This builder for chaining. + */ + public Builder setDataStoreIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreIdsIsMutable(); + dataStoreIds_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Engine prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataStoreIds to add. + * @return This builder for chaining. + */ + public Builder addDataStoreIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreIdsIsMutable(); + dataStoreIds_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The dataStoreIds to add. + * @return This builder for chaining. + */ + public Builder addAllDataStoreIds(java.lang.Iterable values) { + ensureDataStoreIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreIds_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataStoreIds() { + dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } - /** - * - * - *
-   * Metadata that describes the training and serving parameters of an
-   * [Engine][google.cloud.discoveryengine.v1.Engine].
-   * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Engine} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Engine) - com.google.cloud.discoveryengine.v1.EngineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_descriptor; + /** + * + * + *
+     * Optional. The data stores associated with this engine.
+     *
+     * For
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
+     * and
+     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * type of engines, they can only associate with at most one data store.
+     *
+     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
+     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
+     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
+     * associated here.
+     *
+     * Note that when used in
+     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
+     * one DataStore id must be provided as the system will use it for necessary
+     * initializations.
+     * 
+ * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the dataStoreIds to add. + * @return This builder for chaining. + */ + public Builder addDataStoreIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataStoreIdsIsMutable(); + dataStoreIds_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; } + private int solutionType_ = 0; + + /** + * + * + *
+     * Required. The solutions of the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Engine.class, - com.google.cloud.discoveryengine.v1.Engine.Builder.class); + public int getSolutionTypeValue() { + return solutionType_; } - // Construct using com.google.cloud.discoveryengine.v1.Engine.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Required. The solutions of the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionTypeValue(int value) { + solutionType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Required. The solutions of the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1.SolutionType result = + com.google.cloud.discoveryengine.v1.SolutionType.forNumber(solutionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED + : result; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCreateTimeFieldBuilder(); - internalGetUpdateTimeFieldBuilder(); - internalGetCommonConfigFieldBuilder(); + /** + * + * + *
+     * Required. The solutions of the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionType(com.google.cloud.discoveryengine.v1.SolutionType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000200; + solutionType_ = value.getNumber(); + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (chatEngineConfigBuilder_ != null) { - chatEngineConfigBuilder_.clear(); - } - if (searchEngineConfigBuilder_ != null) { - searchEngineConfigBuilder_.clear(); - } - if (mediaRecommendationEngineConfigBuilder_ != null) { - mediaRecommendationEngineConfigBuilder_.clear(); - } - if (chatEngineMetadataBuilder_ != null) { - chatEngineMetadataBuilder_.clear(); - } - name_ = ""; - displayName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Required. The solutions of the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSolutionType() { + bitField0_ = (bitField0_ & ~0x00000200); solutionType_ = 0; - industryVertical_ = 0; - commonConfig_ = null; - if (commonConfigBuilder_ != null) { - commonConfigBuilder_.dispose(); - commonConfigBuilder_ = null; - } - disableAnalytics_ = false; - engineConfigCase_ = 0; - engineConfig_ = null; - engineMetadataCase_ = 0; - engineMetadata_ = null; + onChanged(); return this; } + private int industryVertical_ = 0; + + /** + * + * + *
+     * Optional. The industry vertical that the engine registers.
+     * The restriction of the Engine industry vertical is based on
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+     * has to match vertical of the DataStore linked to the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.EngineProto - .internal_static_google_cloud_discoveryengine_v1_Engine_descriptor; + public int getIndustryVerticalValue() { + return industryVertical_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Engine.getDefaultInstance(); + /** + * + * + *
+     * Optional. The industry vertical that the engine registers.
+     * The restriction of the Engine industry vertical is based on
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+     * has to match vertical of the DataStore linked to the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVerticalValue(int value) { + industryVertical_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } + /** + * + * + *
+     * Optional. The industry vertical that the engine registers.
+     * The restriction of the Engine industry vertical is based on
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+     * has to match vertical of the DataStore linked to the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The industryVertical. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine build() { - com.google.cloud.discoveryengine.v1.Engine result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine buildPartial() { - com.google.cloud.discoveryengine.v1.Engine result = - new com.google.cloud.discoveryengine.v1.Engine(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * Optional. The industry vertical that the engine registers.
+     * The restriction of the Engine industry vertical is based on
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+     * has to match vertical of the DataStore linked to the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { + if (value == null) { + throw new NullPointerException(); } - buildPartialOneofs(result); - onBuilt(); - return result; + bitField0_ |= 0x00000400; + industryVertical_ = value.getNumber(); + onChanged(); + return this; } - private void buildPartial0(com.google.cloud.discoveryengine.v1.Engine result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.displayName_ = displayName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - dataStoreIds_.makeImmutable(); - result.dataStoreIds_ = dataStoreIds_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.solutionType_ = solutionType_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.industryVertical_ = industryVertical_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.commonConfig_ = - commonConfigBuilder_ == null ? commonConfig_ : commonConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.disableAnalytics_ = disableAnalytics_; - } - result.bitField0_ |= to_bitField0_; + /** + * + * + *
+     * Optional. The industry vertical that the engine registers.
+     * The restriction of the Engine industry vertical is based on
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
+     * has to match vertical of the DataStore linked to the engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIndustryVertical() { + bitField0_ = (bitField0_ & ~0x00000400); + industryVertical_ = 0; + onChanged(); + return this; } - private void buildPartialOneofs(com.google.cloud.discoveryengine.v1.Engine result) { - result.engineConfigCase_ = engineConfigCase_; - result.engineConfig_ = this.engineConfig_; - if (engineConfigCase_ == 11 && chatEngineConfigBuilder_ != null) { - result.engineConfig_ = chatEngineConfigBuilder_.build(); - } - if (engineConfigCase_ == 13 && searchEngineConfigBuilder_ != null) { - result.engineConfig_ = searchEngineConfigBuilder_.build(); - } - if (engineConfigCase_ == 14 && mediaRecommendationEngineConfigBuilder_ != null) { - result.engineConfig_ = mediaRecommendationEngineConfigBuilder_.build(); - } - result.engineMetadataCase_ = engineMetadataCase_; - result.engineMetadata_ = this.engineMetadata_; - if (engineMetadataCase_ == 12 && chatEngineMetadataBuilder_ != null) { - result.engineMetadata_ = chatEngineMetadataBuilder_.build(); - } + private com.google.cloud.discoveryengine.v1.Engine.CommonConfig commonConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.CommonConfig, + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder> + commonConfigBuilder_; + + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * @return Whether the commonConfig field is set. + */ + public boolean hasCommonConfig() { + return ((bitField0_ & 0x00000800) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Engine) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Engine) other); + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * @return The commonConfig. + */ + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getCommonConfig() { + if (commonConfigBuilder_ == null) { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; } else { - super.mergeFrom(other); - return this; + return commonConfigBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Engine other) { - if (other == com.google.cloud.discoveryengine.v1.Engine.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.dataStoreIds_.isEmpty()) { - if (dataStoreIds_.isEmpty()) { - dataStoreIds_ = other.dataStoreIds_; - bitField0_ |= 0x00000100; - } else { - ensureDataStoreIdsIsMutable(); - dataStoreIds_.addAll(other.dataStoreIds_); + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + */ + public Builder setCommonConfig(com.google.cloud.discoveryengine.v1.Engine.CommonConfig value) { + if (commonConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - onChanged(); - } - if (other.solutionType_ != 0) { - setSolutionTypeValue(other.getSolutionTypeValue()); - } - if (other.industryVertical_ != 0) { - setIndustryVerticalValue(other.getIndustryVerticalValue()); - } - if (other.hasCommonConfig()) { - mergeCommonConfig(other.getCommonConfig()); - } - if (other.getDisableAnalytics() != false) { - setDisableAnalytics(other.getDisableAnalytics()); - } - switch (other.getEngineConfigCase()) { - case CHAT_ENGINE_CONFIG: - { - mergeChatEngineConfig(other.getChatEngineConfig()); - break; - } - case SEARCH_ENGINE_CONFIG: - { - mergeSearchEngineConfig(other.getSearchEngineConfig()); - break; - } - case MEDIA_RECOMMENDATION_ENGINE_CONFIG: - { - mergeMediaRecommendationEngineConfig(other.getMediaRecommendationEngineConfig()); - break; - } - case ENGINECONFIG_NOT_SET: - { - break; - } - } - switch (other.getEngineMetadataCase()) { - case CHAT_ENGINE_METADATA: - { - mergeChatEngineMetadata(other.getChatEngineMetadata()); - break; - } - case ENGINEMETADATA_NOT_SET: - { - break; - } + commonConfig_ = value; + } else { + commonConfigBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000800; 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(); + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + */ + public Builder setCommonConfig( + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder builderForValue) { + if (commonConfigBuilder_ == null) { + commonConfig_ = builderForValue.build(); + } else { + commonConfigBuilder_.setMessage(builderForValue.build()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDataStoreIdsIsMutable(); - dataStoreIds_.add(s); - break; - } // case 42 - case 48: - { - solutionType_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 48 - case 90: - { - input.readMessage( - internalGetChatEngineConfigFieldBuilder().getBuilder(), extensionRegistry); - engineConfigCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage( - internalGetChatEngineMetadataFieldBuilder().getBuilder(), extensionRegistry); - engineMetadataCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - internalGetSearchEngineConfigFieldBuilder().getBuilder(), extensionRegistry); - engineConfigCase_ = 13; - break; - } // case 106 - case 114: - { - input.readMessage( - internalGetMediaRecommendationEngineConfigFieldBuilder().getBuilder(), - extensionRegistry); - engineConfigCase_ = 14; - break; - } // case 114 - case 122: - { - input.readMessage( - internalGetCommonConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 122 - case 128: - { - industryVertical_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 128 - case 208: - { - disableAnalytics_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 208 - 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 + bitField0_ |= 0x00000800; + onChanged(); return this; } - private int engineConfigCase_ = 0; - private java.lang.Object engineConfig_; - - public EngineConfigCase getEngineConfigCase() { - return EngineConfigCase.forNumber(engineConfigCase_); + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + */ + public Builder mergeCommonConfig( + com.google.cloud.discoveryengine.v1.Engine.CommonConfig value) { + if (commonConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && commonConfig_ != null + && commonConfig_ + != com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance()) { + getCommonConfigBuilder().mergeFrom(value); + } else { + commonConfig_ = value; + } + } else { + commonConfigBuilder_.mergeFrom(value); + } + if (commonConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; } - public Builder clearEngineConfig() { - engineConfigCase_ = 0; - engineConfig_ = null; + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + */ + public Builder clearCommonConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + commonConfig_ = null; + if (commonConfigBuilder_ != null) { + commonConfigBuilder_.dispose(); + commonConfigBuilder_ = null; + } onChanged(); return this; } - private int engineMetadataCase_ = 0; - private java.lang.Object engineMetadata_; - - public EngineMetadataCase getEngineMetadataCase() { - return EngineMetadataCase.forNumber(engineMetadataCase_); - } - - public Builder clearEngineMetadata() { - engineMetadataCase_ = 0; - engineMetadata_ = null; + /** + * + * + *
+     * Common config spec that specifies the metadata of the engine.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + */ + public com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder + getCommonConfigBuilder() { + bitField0_ |= 0x00000800; onChanged(); - return this; + return internalGetCommonConfigFieldBuilder().getBuilder(); } - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder> - chatEngineConfigBuilder_; - /** * * *
-     * Configurations for the Chat Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Common config spec that specifies the metadata of the engine.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - * - * - * @return Whether the chatEngineConfig field is set. + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; */ - @java.lang.Override - public boolean hasChatEngineConfig() { - return engineConfigCase_ == 11; + public com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder + getCommonConfigOrBuilder() { + if (commonConfigBuilder_ != null) { + return commonConfigBuilder_.getMessageOrBuilder(); + } else { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; + } } /** * * *
-     * Configurations for the Chat Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Common config spec that specifies the metadata of the engine.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - * - * - * @return The chatEngineConfig. + * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig getChatEngineConfig() { - if (chatEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); - } else { - if (engineConfigCase_ == 11) { - return chatEngineConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.CommonConfig, + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder> + internalGetCommonConfigFieldBuilder() { + if (commonConfigBuilder_ == null) { + commonConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.CommonConfig, + com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder>( + getCommonConfig(), getParentForChildren(), isClean()); + commonConfig_ = null; } + return commonConfigBuilder_; } + private com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledgeGraphConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder> + knowledgeGraphConfigBuilder_; + /** * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the knowledgeGraphConfig field is set. */ - public Builder setChatEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig value) { - if (chatEngineConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineConfig_ = value; - onChanged(); - } else { - chatEngineConfigBuilder_.setMessage(value); - } - engineConfigCase_ = 11; - return this; + public boolean hasKnowledgeGraphConfig() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The knowledgeGraphConfig. */ - public Builder setChatEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder builderForValue) { - if (chatEngineConfigBuilder_ == null) { - engineConfig_ = builderForValue.build(); - onChanged(); + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + getKnowledgeGraphConfig() { + if (knowledgeGraphConfigBuilder_ == null) { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.getDefaultInstance() + : knowledgeGraphConfig_; } else { - chatEngineConfigBuilder_.setMessage(builderForValue.build()); + return knowledgeGraphConfigBuilder_.getMessage(); } - engineConfigCase_ = 11; - return this; } /** * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeChatEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig value) { - if (chatEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 11 - && engineConfig_ - != com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - .getDefaultInstance()) { - engineConfig_ = - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.newBuilder( - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - engineConfig_ = value; + public Builder setKnowledgeGraphConfig( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig value) { + if (knowledgeGraphConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - onChanged(); + knowledgeGraphConfig_ = value; } else { - if (engineConfigCase_ == 11) { - chatEngineConfigBuilder_.mergeFrom(value); - } else { - chatEngineConfigBuilder_.setMessage(value); - } + knowledgeGraphConfigBuilder_.setMessage(value); } - engineConfigCase_ = 11; + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -13033,28 +21232,24 @@ public Builder mergeChatEngineConfig( * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearChatEngineConfig() { - if (chatEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 11) { - engineConfigCase_ = 0; - engineConfig_ = null; - onChanged(); - } + public Builder setKnowledgeGraphConfig( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder builderForValue) { + if (knowledgeGraphConfigBuilder_ == null) { + knowledgeGraphConfig_ = builderForValue.build(); } else { - if (engineConfigCase_ == 11) { - engineConfigCase_ = 0; - engineConfig_ = null; - } - chatEngineConfigBuilder_.clear(); + knowledgeGraphConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -13062,183 +21257,177 @@ public Builder clearChatEngineConfig() { * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder - getChatEngineConfigBuilder() { - return internalGetChatEngineConfigFieldBuilder().getBuilder(); + public Builder mergeKnowledgeGraphConfig( + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig value) { + if (knowledgeGraphConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && knowledgeGraphConfig_ != null + && knowledgeGraphConfig_ + != com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig + .getDefaultInstance()) { + getKnowledgeGraphConfigBuilder().mergeFrom(value); + } else { + knowledgeGraphConfig_ = value; + } + } else { + knowledgeGraphConfigBuilder_.mergeFrom(value); + } + if (knowledgeGraphConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; } /** * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder - getChatEngineConfigOrBuilder() { - if ((engineConfigCase_ == 11) && (chatEngineConfigBuilder_ != null)) { - return chatEngineConfigBuilder_.getMessageOrBuilder(); - } else { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); + public Builder clearKnowledgeGraphConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + knowledgeGraphConfig_ = null; + if (knowledgeGraphConfigBuilder_ != null) { + knowledgeGraphConfigBuilder_.dispose(); + knowledgeGraphConfigBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Configurations for the Chat Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder> - internalGetChatEngineConfigFieldBuilder() { - if (chatEngineConfigBuilder_ == null) { - if (!(engineConfigCase_ == 11)) { - engineConfig_ = - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.getDefaultInstance(); - } - chatEngineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineConfig) engineConfig_, - getParentForChildren(), - isClean()); - engineConfig_ = null; - } - engineConfigCase_ = 11; + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder + getKnowledgeGraphConfigBuilder() { + bitField0_ |= 0x00001000; onChanged(); - return chatEngineConfigBuilder_; + return internalGetKnowledgeGraphConfigFieldBuilder().getBuilder(); } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder> - searchEngineConfigBuilder_; - /** * * *
-     * Configurations for the Search Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
      * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the searchEngineConfig field is set. */ - @java.lang.Override - public boolean hasSearchEngineConfig() { - return engineConfigCase_ == 13; + public com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder + getKnowledgeGraphConfigOrBuilder() { + if (knowledgeGraphConfigBuilder_ != null) { + return knowledgeGraphConfigBuilder_.getMessageOrBuilder(); + } else { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.getDefaultInstance() + : knowledgeGraphConfig_; + } } /** * * *
-     * Configurations for the Search Engine. Only applicable if
+     * Optional. Configurations for the Knowledge Graph. Only applicable if
      * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
      * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The searchEngineConfig. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig getSearchEngineConfig() { - if (searchEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); - } else { - if (engineConfigCase_ == 13) { - return searchEngineConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder> + internalGetKnowledgeGraphConfigFieldBuilder() { + if (knowledgeGraphConfigBuilder_ == null) { + knowledgeGraphConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig.Builder, + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder>( + getKnowledgeGraphConfig(), getParentForChildren(), isClean()); + knowledgeGraphConfig_ = null; } + return knowledgeGraphConfigBuilder_; } + private int appType_ = 0; + /** * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Immutable. This the application type which this engine resource
+     * represents. NOTE: this is a new concept independ of existing industry
+     * vertical or solution type.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * + * + * @return The enum numeric value on the wire for appType. */ - public Builder setSearchEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig value) { - if (searchEngineConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineConfig_ = value; - onChanged(); - } else { - searchEngineConfigBuilder_.setMessage(value); - } - engineConfigCase_ = 13; - return this; + @java.lang.Override + public int getAppTypeValue() { + return appType_; } /** * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Immutable. This the application type which this engine resource
+     * represents. NOTE: this is a new concept independ of existing industry
+     * vertical or solution type.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * + * + * @param value The enum numeric value on the wire for appType to set. + * @return This builder for chaining. */ - public Builder setSearchEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder builderForValue) { - if (searchEngineConfigBuilder_ == null) { - engineConfig_ = builderForValue.build(); - onChanged(); - } else { - searchEngineConfigBuilder_.setMessage(builderForValue.build()); - } - engineConfigCase_ = 13; + public Builder setAppTypeValue(int value) { + appType_ = value; + bitField0_ |= 0x00002000; + onChanged(); return this; } @@ -13246,67 +21435,49 @@ public Builder setSearchEngineConfig( * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Immutable. This the application type which this engine resource
+     * represents. NOTE: this is a new concept independ of existing industry
+     * vertical or solution type.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * + * + * @return The appType. */ - public Builder mergeSearchEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig value) { - if (searchEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 13 - && engineConfig_ - != com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig - .getDefaultInstance()) { - engineConfig_ = - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.newBuilder( - (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - engineConfig_ = value; - } - onChanged(); - } else { - if (engineConfigCase_ == 13) { - searchEngineConfigBuilder_.mergeFrom(value); - } else { - searchEngineConfigBuilder_.setMessage(value); - } - } - engineConfigCase_ = 13; - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.AppType getAppType() { + com.google.cloud.discoveryengine.v1.Engine.AppType result = + com.google.cloud.discoveryengine.v1.Engine.AppType.forNumber(appType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.AppType.UNRECOGNIZED + : result; } /** * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Immutable. This the application type which this engine resource
+     * represents. NOTE: this is a new concept independ of existing industry
+     * vertical or solution type.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * + * + * @param value The appType to set. + * @return This builder for chaining. */ - public Builder clearSearchEngineConfig() { - if (searchEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 13) { - engineConfigCase_ = 0; - engineConfig_ = null; - onChanged(); - } - } else { - if (engineConfigCase_ == 13) { - engineConfigCase_ = 0; - engineConfig_ = null; - } - searchEngineConfigBuilder_.clear(); + public Builder setAppType(com.google.cloud.discoveryengine.v1.Engine.AppType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00002000; + appType_ = value.getNumber(); + onChanged(); return this; } @@ -13314,146 +21485,127 @@ public Builder clearSearchEngineConfig() { * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Immutable. This the application type which this engine resource
+     * represents. NOTE: this is a new concept independ of existing industry
+     * vertical or solution type.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder - getSearchEngineConfigBuilder() { - return internalGetSearchEngineConfigFieldBuilder().getBuilder(); + public Builder clearAppType() { + bitField0_ = (bitField0_ & ~0x00002000); + appType_ = 0; + onChanged(); + return this; } + private boolean disableAnalytics_; + /** * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Whether to disable analytics for searches performed on this
+     * engine.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAnalytics. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder - getSearchEngineConfigOrBuilder() { - if ((engineConfigCase_ == 13) && (searchEngineConfigBuilder_ != null)) { - return searchEngineConfigBuilder_.getMessageOrBuilder(); - } else { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); - } + public boolean getDisableAnalytics() { + return disableAnalytics_; } /** * * *
-     * Configurations for the Search Engine. Only applicable if
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+     * Optional. Whether to disable analytics for searches performed on this
+     * engine.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableAnalytics to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder> - internalGetSearchEngineConfigFieldBuilder() { - if (searchEngineConfigBuilder_ == null) { - if (!(engineConfigCase_ == 13)) { - engineConfig_ = - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.getDefaultInstance(); - } - searchEngineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1.Engine.SearchEngineConfig) engineConfig_, - getParentForChildren(), - isClean()); - engineConfig_ = null; - } - engineConfigCase_ = 13; + public Builder setDisableAnalytics(boolean value) { + + disableAnalytics_ = value; + bitField0_ |= 0x00004000; onChanged(); - return searchEngineConfigBuilder_; + return this; + } + + /** + * + * + *
+     * Optional. Whether to disable analytics for searches performed on this
+     * engine.
+     * 
+ * + * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableAnalytics() { + bitField0_ = (bitField0_ & ~0x00004000); + disableAnalytics_ = false; + onChanged(); + return this; } + private com.google.cloud.discoveryengine.v1.SessionConfig sessionConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder> - mediaRecommendationEngineConfigBuilder_; + com.google.cloud.discoveryengine.v1.SessionConfig, + com.google.cloud.discoveryengine.v1.SessionConfig.Builder, + com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder> + sessionConfigBuilder_; /** * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * - * @return Whether the mediaRecommendationEngineConfig field is set. + * @return Whether the sessionConfig field is set. */ - @java.lang.Override - public boolean hasMediaRecommendationEngineConfig() { - return engineConfigCase_ == 14; + public boolean hasSessionConfig() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * * - * @return The mediaRecommendationEngineConfig. + * @return The sessionConfig. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - getMediaRecommendationEngineConfig() { - if (mediaRecommendationEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 14) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1.SessionConfig getSessionConfig() { + if (sessionConfigBuilder_ == null) { + return sessionConfig_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance() + : sessionConfig_; } else { - if (engineConfigCase_ == 14) { - return mediaRecommendationEngineConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); + return sessionConfigBuilder_.getMessage(); } } @@ -13461,31 +21613,24 @@ public boolean hasMediaRecommendationEngineConfig() { * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ - public Builder setMediaRecommendationEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig value) { - if (mediaRecommendationEngineConfigBuilder_ == null) { + public Builder setSessionConfig(com.google.cloud.discoveryengine.v1.SessionConfig value) { + if (sessionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - engineConfig_ = value; - onChanged(); + sessionConfig_ = value; } else { - mediaRecommendationEngineConfigBuilder_.setMessage(value); + sessionConfigBuilder_.setMessage(value); } - engineConfigCase_ = 14; + bitField0_ |= 0x00008000; + onChanged(); return this; } @@ -13493,29 +21638,22 @@ public Builder setMediaRecommendationEngineConfig( * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ - public Builder setMediaRecommendationEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder - builderForValue) { - if (mediaRecommendationEngineConfigBuilder_ == null) { - engineConfig_ = builderForValue.build(); - onChanged(); + public Builder setSessionConfig( + com.google.cloud.discoveryengine.v1.SessionConfig.Builder builderForValue) { + if (sessionConfigBuilder_ == null) { + sessionConfig_ = builderForValue.build(); } else { - mediaRecommendationEngineConfigBuilder_.setMessage(builderForValue.build()); + sessionConfigBuilder_.setMessage(builderForValue.build()); } - engineConfigCase_ = 14; + bitField0_ |= 0x00008000; + onChanged(); return this; } @@ -13523,44 +21661,30 @@ public Builder setMediaRecommendationEngineConfig( * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ - public Builder mergeMediaRecommendationEngineConfig( - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig value) { - if (mediaRecommendationEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 14 - && engineConfig_ - != com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance()) { - engineConfig_ = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.newBuilder( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_) - .mergeFrom(value) - .buildPartial(); + public Builder mergeSessionConfig(com.google.cloud.discoveryengine.v1.SessionConfig value) { + if (sessionConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && sessionConfig_ != null + && sessionConfig_ + != com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance()) { + getSessionConfigBuilder().mergeFrom(value); } else { - engineConfig_ = value; + sessionConfig_ = value; } - onChanged(); } else { - if (engineConfigCase_ == 14) { - mediaRecommendationEngineConfigBuilder_.mergeFrom(value); - } else { - mediaRecommendationEngineConfigBuilder_.setMessage(value); - } + sessionConfigBuilder_.mergeFrom(value); + } + if (sessionConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); } - engineConfigCase_ = 14; return this; } @@ -13568,33 +21692,21 @@ public Builder mergeMediaRecommendationEngineConfig( * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ - public Builder clearMediaRecommendationEngineConfig() { - if (mediaRecommendationEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 14) { - engineConfigCase_ = 0; - engineConfig_ = null; - onChanged(); - } - } else { - if (engineConfigCase_ == 14) { - engineConfigCase_ = 0; - engineConfig_ = null; - } - mediaRecommendationEngineConfigBuilder_.clear(); + public Builder clearSessionConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + sessionConfig_ = null; + if (sessionConfigBuilder_ != null) { + sessionConfigBuilder_.dispose(); + sessionConfigBuilder_ = null; } + onChanged(); return this; } @@ -13602,53 +21714,37 @@ public Builder clearMediaRecommendationEngineConfig() { * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder - getMediaRecommendationEngineConfigBuilder() { - return internalGetMediaRecommendationEngineConfigFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1.SessionConfig.Builder getSessionConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetSessionConfigFieldBuilder().getBuilder(); } /** * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder - getMediaRecommendationEngineConfigOrBuilder() { - if ((engineConfigCase_ == 14) && (mediaRecommendationEngineConfigBuilder_ != null)) { - return mediaRecommendationEngineConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder getSessionConfigOrBuilder() { + if (sessionConfigBuilder_ != null) { + return sessionConfigBuilder_.getMessageOrBuilder(); } else { - if (engineConfigCase_ == 14) { - return (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_; - } - return com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); + return sessionConfig_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance() + : sessionConfig_; } } @@ -13656,131 +21752,499 @@ public Builder clearMediaRecommendationEngineConfig() { * * *
-     * Configurations for the Media Engine. Only applicable on the data
-     * stores with
-     * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * and
-     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA]
-     * vertical.
+     * Optional. Non-empty default. Session config for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfigOrBuilder> - internalGetMediaRecommendationEngineConfigFieldBuilder() { - if (mediaRecommendationEngineConfigBuilder_ == null) { - if (!(engineConfigCase_ == 14)) { - engineConfig_ = - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig - .getDefaultInstance(); - } - mediaRecommendationEngineConfigBuilder_ = + com.google.cloud.discoveryengine.v1.SessionConfig, + com.google.cloud.discoveryengine.v1.SessionConfig.Builder, + com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder> + internalGetSessionConfigFieldBuilder() { + if (sessionConfigBuilder_ == null) { + sessionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig, - com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine - .MediaRecommendationEngineConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig) - engineConfig_, - getParentForChildren(), - isClean()); - engineConfig_ = null; + com.google.cloud.discoveryengine.v1.SessionConfig, + com.google.cloud.discoveryengine.v1.SessionConfig.Builder, + com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder>( + getSessionConfig(), getParentForChildren(), isClean()); + sessionConfig_ = null; } - engineConfigCase_ = 14; + return sessionConfigBuilder_; + } + + private com.google.protobuf.MapField features_; + + private com.google.protobuf.MapField + internalGetFeatures() { + if (features_ == null) { + return com.google.protobuf.MapField.emptyMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + return features_; + } + + private com.google.protobuf.MapField + internalGetMutableFeatures() { + if (features_ == null) { + features_ = + com.google.protobuf.MapField.newMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + if (!features_.isMutable()) { + features_ = features_.copy(); + } + bitField0_ |= 0x00010000; onChanged(); - return mediaRecommendationEngineConfigBuilder_; + return features_; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder> - chatEngineMetadataBuilder_; + public int getFeaturesCount() { + return internalGetFeatures().getMap().size(); + } + + /** + * + * + *
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatures().getMap().containsKey(key); + } + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getFeatures() { + return getFeaturesMap(); + } + + /** + * + * + *
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getFeaturesMap() { + return internalGetAdaptedFeaturesMap(internalGetFeatures().getMap()); + } + + /** + * + * + *
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Engine.FeatureState + getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.FeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? featuresValueConverter.doForward(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.FeatureState getFeaturesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return featuresValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeaturesValue() { + return getFeaturesValueMap(); + } /** * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the chatEngineMetadata field is set. */ @java.lang.Override - public boolean hasChatEngineMetadata() { - return engineMetadataCase_ == 12; + public java.util.Map getFeaturesValueMap() { + return internalGetFeatures().getMap(); } /** * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The chatEngineMetadata. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata getChatEngineMetadata() { - if (chatEngineMetadataBuilder_ == null) { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); - } else { - if (engineMetadataCase_ == 12) { - return chatEngineMetadataBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + public int getFeaturesValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setChatEngineMetadata( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata value) { - if (chatEngineMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineMetadata_ = value; - onChanged(); - } else { - chatEngineMetadataBuilder_.setMessage(value); + @java.lang.Override + public int getFeaturesValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - engineMetadataCase_ = 12; + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeatures() { + bitField0_ = (bitField0_ & ~0x00010000); + internalGetMutableFeatures().getMutableMap().clear(); return this; } @@ -13788,67 +22252,130 @@ public Builder setChatEngineMetadata( * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setChatEngineMetadata( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder builderForValue) { - if (chatEngineMetadataBuilder_ == null) { - engineMetadata_ = builderForValue.build(); - onChanged(); - } else { - chatEngineMetadataBuilder_.setMessage(builderForValue.build()); + public Builder removeFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - engineMetadataCase_ = 12; + internalGetMutableFeatures().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFeatures() { + bitField0_ |= 0x00010000; + return internalGetAdaptedFeaturesMap(internalGetMutableFeatures().getMutableMap()); + } + /** * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeChatEngineMetadata( - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata value) { - if (chatEngineMetadataBuilder_ == null) { - if (engineMetadataCase_ == 12 - && engineMetadata_ - != com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata - .getDefaultInstance()) { - engineMetadata_ = - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.newBuilder( - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) - engineMetadata_) - .mergeFrom(value) - .buildPartial(); - } else { - engineMetadata_ = value; - } - onChanged(); - } else { - if (engineMetadataCase_ == 12) { - chatEngineMetadataBuilder_.mergeFrom(value); - } else { - chatEngineMetadataBuilder_.setMessage(value); - } + public Builder putFeatures( + java.lang.String key, com.google.cloud.discoveryengine.v1.Engine.FeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); } - engineMetadataCase_ = 12; + + internalGetMutableFeatures() + .getMutableMap() + .put(key, featuresValueConverter.doBackward(value)); + bitField0_ |= 0x00010000; return this; } @@ -13856,30 +22383,126 @@ public Builder mergeChatEngineMetadata( * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearChatEngineMetadata() { - if (chatEngineMetadataBuilder_ == null) { - if (engineMetadataCase_ == 12) { - engineMetadataCase_ = 0; - engineMetadata_ = null; - onChanged(); - } - } else { - if (engineMetadataCase_ == 12) { - engineMetadataCase_ = 0; - engineMetadata_ = null; - } - chatEngineMetadataBuilder_.clear(); + public Builder putAllFeatures( + java.util.Map + values) { + internalGetAdaptedFeaturesMap(internalGetMutableFeatures().getMutableMap()).putAll(values); + bitField0_ |= 0x00010000; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFeaturesValue() { + bitField0_ |= 0x00010000; + return internalGetMutableFeatures().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putFeaturesValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); } + + internalGetMutableFeatures().getMutableMap().put(key, value); + bitField0_ |= 0x00010000; return this; } @@ -13887,45 +22510,103 @@ public Builder clearChatEngineMetadata() { * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Optional. Feature config for the engine to opt in or opt out of features.
+     * Supported keys:
+     *
+     * * `*`: all features, if it's present, all other feature state settings are
+     * ignored.
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder - getChatEngineMetadataBuilder() { - return internalGetChatEngineMetadataFieldBuilder().getBuilder(); + public Builder putAllFeaturesValue(java.util.Map values) { + internalGetMutableFeatures().getMutableMap().putAll(values); + bitField0_ |= 0x00010000; + return this; } + private com.google.cloud.discoveryengine.v1.CmekConfig cmekConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CmekConfig, + com.google.cloud.discoveryengine.v1.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder> + cmekConfigBuilder_; + /** * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Output only. CMEK-related information for the Engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the cmekConfig field is set. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder - getChatEngineMetadataOrBuilder() { - if ((engineMetadataCase_ == 12) && (chatEngineMetadataBuilder_ != null)) { - return chatEngineMetadataBuilder_.getMessageOrBuilder(); + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Output only. CMEK-related information for the Engine.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + public com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig() { + if (cmekConfigBuilder_ == null) { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; } else { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_; - } - return com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + return cmekConfigBuilder_.getMessage(); } } @@ -13933,271 +22614,254 @@ public Builder clearChatEngineMetadata() { * * *
-     * Output only. Additional information of the Chat Engine. Only applicable
-     * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type]
-     * is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT].
+     * Output only. CMEK-related information for the Engine.
      * 
* * - * .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder> - internalGetChatEngineMetadataFieldBuilder() { - if (chatEngineMetadataBuilder_ == null) { - if (!(engineMetadataCase_ == 12)) { - engineMetadata_ = - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.getDefaultInstance(); + public Builder setCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - chatEngineMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.Builder, - com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataOrBuilder>( - (com.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata) engineMetadata_, - getParentForChildren(), - isClean()); - engineMetadata_ = null; + cmekConfig_ = value; + } else { + cmekConfigBuilder_.setMessage(value); } - engineMetadataCase_ = 12; + bitField0_ |= 0x00020000; onChanged(); - return chatEngineMetadataBuilder_; + return this; } - private java.lang.Object name_ = ""; - /** * * *
-     * Immutable. Identifier. The fully qualified resource name of the engine.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
-     *
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
-     * engine should be 1-63 characters, and valid characters are
-     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. CMEK-related information for the Engine.
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The name. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public Builder setCmekConfig( + com.google.cloud.discoveryengine.v1.CmekConfig.Builder builderForValue) { + if (cmekConfigBuilder_ == null) { + cmekConfig_ = builderForValue.build(); } else { - return (java.lang.String) ref; + cmekConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Immutable. Identifier. The fully qualified resource name of the engine.
+     * Output only. CMEK-related information for the Engine.
+     * 
* - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && cmekConfig_ != null + && cmekConfig_ != com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance()) { + getCmekConfigBuilder().mergeFrom(value); + } else { + cmekConfig_ = value; + } + } else { + cmekConfigBuilder_.mergeFrom(value); + } + if (cmekConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** * - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` - * engine should be 1-63 characters, and valid characters are - * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. + * + *
+     * Output only. CMEK-related information for the Engine.
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder clearCmekConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Immutable. Identifier. The fully qualified resource name of the engine.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
-     *
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
-     * engine should be 1-63 characters, and valid characters are
-     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. CMEK-related information for the Engine.
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The name to set. - * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000010; + public com.google.cloud.discoveryengine.v1.CmekConfig.Builder getCmekConfigBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return this; + return internalGetCmekConfigFieldBuilder().getBuilder(); } /** * * *
-     * Immutable. Identifier. The fully qualified resource name of the engine.
-     *
-     * This field must be a UTF-8 encoded string with a length limit of 1024
-     * characters.
-     *
-     * Format:
-     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
-     * engine should be 1-63 characters, and valid characters are
-     * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
+     * Output only. CMEK-related information for the Engine.
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder() { + if (cmekConfigBuilder_ != null) { + return cmekConfigBuilder_.getMessageOrBuilder(); + } else { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1.CmekConfig.getDefaultInstance() + : cmekConfig_; + } } /** * * *
-     * Immutable. Identifier. The fully qualified resource name of the engine.
+     * Output only. CMEK-related information for the Engine.
+     * 
* - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CmekConfig, + com.google.cloud.discoveryengine.v1.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder> + internalGetCmekConfigFieldBuilder() { + if (cmekConfigBuilder_ == null) { + cmekConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.CmekConfig, + com.google.cloud.discoveryengine.v1.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder>( + getCmekConfig(), getParentForChildren(), isClean()); + cmekConfig_ = null; + } + return cmekConfigBuilder_; + } + + private int configurableBillingApproach_ = 0; + + /** * - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` - * engine should be 1-63 characters, and valid characters are - * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. + * + *
+     * Optional. Configuration for configurable billing approach.
      * 
* * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The bytes for name to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for configurableBillingApproach. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; } - private java.lang.Object displayName_ = ""; - /** * * *
-     * Required. The display name of the engine. Should be human readable. UTF-8
-     * encoded string with limit of 1024 characters.
+     * Optional. Configuration for configurable billing approach.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The displayName. + * @param value The enum numeric value on the wire for configurableBillingApproach to set. + * @return This builder for chaining. */ - 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; - } + public Builder setConfigurableBillingApproachValue(int value) { + configurableBillingApproach_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; } /** * * *
-     * Required. The display name of the engine. Should be human readable. UTF-8
-     * encoded string with limit of 1024 characters.
+     * Optional. Configuration for configurable billing approach.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for displayName. + * @return The configurableBillingApproach. */ - 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; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach.UNRECOGNIZED + : result; } /** * * *
-     * Required. The display name of the engine. Should be human readable. UTF-8
-     * encoded string with limit of 1024 characters.
+     * Optional. Configuration for configurable billing approach.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The displayName to set. + * @param value The configurableBillingApproach to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setConfigurableBillingApproach( + com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00040000; + configurableBillingApproach_ = value.getNumber(); onChanged(); return this; } @@ -14206,188 +22870,328 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The display name of the engine. Should be human readable. UTF-8
-     * encoded string with limit of 1024 characters.
+     * Optional. Configuration for configurable billing approach.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearConfigurableBillingApproach() { + bitField0_ = (bitField0_ & ~0x00040000); + configurableBillingApproach_ = 0; onChanged(); return this; } + private com.google.protobuf.MapField modelConfigs_; + + private com.google.protobuf.MapField + internalGetModelConfigs() { + if (modelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelConfigsDefaultEntryHolder.defaultEntry); + } + return modelConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableModelConfigs() { + if (modelConfigs_ == null) { + modelConfigs_ = + com.google.protobuf.MapField.newMapField(ModelConfigsDefaultEntryHolder.defaultEntry); + } + if (!modelConfigs_.isMutable()) { + modelConfigs_ = modelConfigs_.copy(); + } + bitField0_ |= 0x00080000; + onChanged(); + return modelConfigs_; + } + + public int getModelConfigsCount() { + return internalGetModelConfigs().getMap().size(); + } + /** * * *
-     * Required. The display name of the engine. Should be human readable. UTF-8
-     * encoded string with limit of 1024 characters.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public boolean containsModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; + return internalGetModelConfigs().getMap().containsKey(key); } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getModelConfigs() { + return getModelConfigsMap(); + } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); + @java.lang.Override + public java.util.Map + getModelConfigsMap() { + return internalGetAdaptedModelConfigsMap(internalGetModelConfigs().getMap()); } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The createTime. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Engine.ModelState + getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.ModelState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) + ? modelConfigsValueConverter.doForward(map.get(key)) + : defaultValue; } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Engine.ModelState getModelConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000040; - onChanged(); - return this; + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelConfigsValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelConfigsValue() { + return getModelConfigsValueMap(); } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public java.util.Map getModelConfigsValueMap() { + return internalGetModelConfigs().getMap(); + } + + /** + * + * + *
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000040; - onChanged(); - return this; + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public int getModelConfigsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000040; - onChanged(); + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearModelConfigs() { + bitField0_ = (bitField0_ & ~0x00080000); + internalGetMutableModelConfigs().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + internalGetMutableModelConfigs().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableModelConfigs() { + bitField0_ |= 0x00080000; + return internalGetAdaptedModelConfigsMap(internalGetMutableModelConfigs().getMutableMap()); + } + /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder putModelConfigs( + java.lang.String key, com.google.cloud.discoveryengine.v1.Engine.ModelState value) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + + internalGetMutableModelConfigs() + .getMutableMap() + .put(key, modelConfigsValueConverter.doBackward(value)); + bitField0_ |= 0x00080000; return this; } @@ -14395,112 +23199,133 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + public Builder putAllModelConfigs( + java.util.Map + values) { + internalGetAdaptedModelConfigsMap(internalGetMutableModelConfigs().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00080000; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableModelConfigsValue() { + bitField0_ |= 0x00080000; + return internalGetMutableModelConfigs().getMutableMap(); } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder putModelConfigsValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); } + + internalGetMutableModelConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00080000; + return this; } /** * * *
-     * Output only. Timestamp the Recommendation Engine was created at.
+     * Optional. Maps a model name to its specific configuration for this engine.
+     * This allows admin users to turn on/off individual models. This only stores
+     * models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; + public Builder putAllModelConfigsValue( + java.util.Map values) { + internalGetMutableModelConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00080000; + return this; } - private com.google.protobuf.Timestamp updateTime_; + private com.google.cloud.discoveryengine.v1.ObservabilityConfig observabilityConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.cloud.discoveryengine.v1.ObservabilityConfig, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder> + observabilityConfigBuilder_; /** * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the updateTime field is set. + * @return Whether the observabilityConfig field is set. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The updateTime. + * @return The observabilityConfig. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + public com.google.cloud.discoveryengine.v1.ObservabilityConfig getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; } else { - return updateTimeBuilder_.getMessage(); + return observabilityConfigBuilder_.getMessage(); } } @@ -14508,23 +23333,24 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - updateTime_ = value; + observabilityConfig_ = value; } else { - updateTimeBuilder_.setMessage(value); + observabilityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -14533,20 +23359,21 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder builderForValue) { + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + observabilityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -14555,27 +23382,29 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); + public Builder mergeObservabilityConfig( + com.google.cloud.discoveryengine.v1.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance()) { + getObservabilityConfigBuilder().mergeFrom(value); } else { - updateTime_ = value; + observabilityConfig_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + observabilityConfigBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000080; + if (observabilityConfig_ != null) { + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -14585,19 +23414,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000080); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; } onChanged(); return this; @@ -14607,37 +23436,39 @@ public Builder clearUpdateTime() { * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00100000; onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; } } @@ -14645,249 +23476,214 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. Timestamp the Recommendation Engine was last updated.
+     * Optional. Observability config for the engine.
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + com.google.cloud.discoveryengine.v1.ObservabilityConfig, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder> + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + com.google.cloud.discoveryengine.v1.ObservabilityConfig, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; } - return updateTimeBuilder_; + return observabilityConfigBuilder_; } - private com.google.protobuf.LazyStringArrayList dataStoreIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private com.google.protobuf.MapField connectorTenantInfo_; - private void ensureDataStoreIdsIsMutable() { - if (!dataStoreIds_.isModifiable()) { - dataStoreIds_ = new com.google.protobuf.LazyStringArrayList(dataStoreIds_); + private com.google.protobuf.MapField + internalGetConnectorTenantInfo() { + if (connectorTenantInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry); } - bitField0_ |= 0x00000100; + return connectorTenantInfo_; + } + + private com.google.protobuf.MapField + internalGetMutableConnectorTenantInfo() { + if (connectorTenantInfo_ == null) { + connectorTenantInfo_ = + com.google.protobuf.MapField.newMapField( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry); + } + if (!connectorTenantInfo_.isMutable()) { + connectorTenantInfo_ = connectorTenantInfo_.copy(); + } + bitField0_ |= 0x00200000; + onChanged(); + return connectorTenantInfo_; + } + + public int getConnectorTenantInfoCount() { + return internalGetConnectorTenantInfo().getMap().size(); } /** * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the dataStoreIds. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { - dataStoreIds_.makeImmutable(); - return dataStoreIds_; + @java.lang.Override + public boolean containsConnectorTenantInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectorTenantInfo().getMap().containsKey(key); + } + + /** Use {@link #getConnectorTenantInfoMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectorTenantInfo() { + return getConnectorTenantInfoMap(); } /** * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of dataStoreIds. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public int getDataStoreIdsCount() { - return dataStoreIds_.size(); + @java.lang.Override + public java.util.Map getConnectorTenantInfoMap() { + return internalGetConnectorTenantInfo().getMap(); } /** * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The dataStoreIds at the given index. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getDataStoreIds(int index) { - return dataStoreIds_.get(index); + @java.lang.Override + public /* nullable */ java.lang.String getConnectorTenantInfoOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the dataStoreIds at the given index. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { - return dataStoreIds_.getByteString(index); + @java.lang.Override + public java.lang.String getConnectorTenantInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConnectorTenantInfo() { + bitField0_ = (bitField0_ & ~0x00200000); + internalGetMutableConnectorTenantInfo().getMutableMap().clear(); + return this; } /** * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The dataStoreIds to set. - * @return This builder for chaining. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDataStoreIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeConnectorTenantInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - ensureDataStoreIdsIsMutable(); - dataStoreIds_.set(index, value); - bitField0_ |= 0x00000100; - onChanged(); + internalGetMutableConnectorTenantInfo().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConnectorTenantInfo() { + bitField0_ |= 0x00200000; + return internalGetMutableConnectorTenantInfo().getMutableMap(); + } + /** * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The dataStoreIds to add. - * @return This builder for chaining. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addDataStoreIds(java.lang.String value) { + public Builder putConnectorTenantInfo(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException(); + throw new NullPointerException("map value"); } - ensureDataStoreIdsIsMutable(); - dataStoreIds_.add(value); - bitField0_ |= 0x00000100; - onChanged(); + internalGetMutableConnectorTenantInfo().getMutableMap().put(key, value); + bitField0_ |= 0x00200000; return this; } @@ -14895,71 +23691,91 @@ public Builder addDataStoreIds(java.lang.String value) { * * *
-     * Optional. The data stores associated with this engine.
+     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+     * tenant-specific information required for that connector. The structure of
+     * the tenant information string is connector-dependent.
+     * 
* - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllConnectorTenantInfo( + java.util.Map values) { + internalGetMutableConnectorTenantInfo().getMutableMap().putAll(values); + bitField0_ |= 0x00200000; + return this; + } + + private com.google.cloud.discoveryengine.v1.AgentGatewaySetting agentGatewaySetting_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AgentGatewaySetting, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder, + com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder> + agentGatewaySettingBuilder_; + + /** * - * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1.Collection] can be - * associated here. * - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. + *
+     * Optional. The agent gateway setting for the engine.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param values The dataStoreIds to add. - * @return This builder for chaining. + * @return Whether the agentGatewaySetting field is set. */ - public Builder addAllDataStoreIds(java.lang.Iterable values) { - ensureDataStoreIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreIds_); - bitField0_ |= 0x00000100; - onChanged(); - return this; + public boolean hasAgentGatewaySetting() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
-     * Optional. The data stores associated with this engine.
+     * Optional. The agent gateway setting for the engine.
+     * 
* - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * * - * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1.Collection] can be - * associated here. + * @return The agentGatewaySetting. + */ + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting getAgentGatewaySetting() { + if (agentGatewaySettingBuilder_ == null) { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; + } else { + return agentGatewaySettingBuilder_.getMessage(); + } + } + + /** * - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. - * * - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + *
+     * Optional. The agent gateway setting for the engine.
+     * 
* - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearDataStoreIds() { - dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + public Builder setAgentGatewaySetting( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting value) { + if (agentGatewaySettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGatewaySetting_ = value; + } else { + agentGatewaySettingBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -14968,80 +23784,75 @@ public Builder clearDataStoreIds() { * * *
-     * Optional. The data stores associated with this engine.
-     *
-     * For
-     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]
-     * and
-     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
-     * type of engines, they can only associate with at most one data store.
-     *
-     * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
-     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT],
-     * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the
-     * same [Collection][google.cloud.discoveryengine.v1.Collection] can be
-     * associated here.
-     *
-     * Note that when used in
-     * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest],
-     * one DataStore id must be provided as the system will use it for necessary
-     * initializations.
+     * Optional. The agent gateway setting for the engine.
      * 
* - * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the dataStoreIds to add. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addDataStoreIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAgentGatewaySetting( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder builderForValue) { + if (agentGatewaySettingBuilder_ == null) { + agentGatewaySetting_ = builderForValue.build(); + } else { + agentGatewaySettingBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureDataStoreIdsIsMutable(); - dataStoreIds_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00400000; onChanged(); return this; } - private int solutionType_ = 0; - /** * * *
-     * Required. The solutions of the engine.
+     * Optional. The agent gateway setting for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for solutionType. */ - @java.lang.Override - public int getSolutionTypeValue() { - return solutionType_; + public Builder mergeAgentGatewaySetting( + com.google.cloud.discoveryengine.v1.AgentGatewaySetting value) { + if (agentGatewaySettingBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && agentGatewaySetting_ != null + && agentGatewaySetting_ + != com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance()) { + getAgentGatewaySettingBuilder().mergeFrom(value); + } else { + agentGatewaySetting_ = value; + } + } else { + agentGatewaySettingBuilder_.mergeFrom(value); + } + if (agentGatewaySetting_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; } /** * * *
-     * Required. The solutions of the engine.
+     * Optional. The agent gateway setting for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for solutionType to set. - * @return This builder for chaining. */ - public Builder setSolutionTypeValue(int value) { - solutionType_ = value; - bitField0_ |= 0x00000200; + public Builder clearAgentGatewaySetting() { + bitField0_ = (bitField0_ & ~0x00400000); + agentGatewaySetting_ = null; + if (agentGatewaySettingBuilder_ != null) { + agentGatewaySettingBuilder_.dispose(); + agentGatewaySettingBuilder_ = null; + } onChanged(); return this; } @@ -15050,111 +23861,107 @@ public Builder setSolutionTypeValue(int value) { * * *
-     * Required. The solutions of the engine.
+     * Optional. The agent gateway setting for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The solutionType. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.SolutionType getSolutionType() { - com.google.cloud.discoveryengine.v1.SolutionType result = - com.google.cloud.discoveryengine.v1.SolutionType.forNumber(solutionType_); - return result == null - ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder + getAgentGatewaySettingBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return internalGetAgentGatewaySettingFieldBuilder().getBuilder(); } /** * * *
-     * Required. The solutions of the engine.
+     * Optional. The agent gateway setting for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The solutionType to set. - * @return This builder for chaining. */ - public Builder setSolutionType(com.google.cloud.discoveryengine.v1.SolutionType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder + getAgentGatewaySettingOrBuilder() { + if (agentGatewaySettingBuilder_ != null) { + return agentGatewaySettingBuilder_.getMessageOrBuilder(); + } else { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; } - bitField0_ |= 0x00000200; - solutionType_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Required. The solutions of the engine.
+     * Optional. The agent gateway setting for the engine.
      * 
* * - * .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearSolutionType() { - bitField0_ = (bitField0_ & ~0x00000200); - solutionType_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AgentGatewaySetting, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder, + com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder> + internalGetAgentGatewaySettingFieldBuilder() { + if (agentGatewaySettingBuilder_ == null) { + agentGatewaySettingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AgentGatewaySetting, + com.google.cloud.discoveryengine.v1.AgentGatewaySetting.Builder, + com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder>( + getAgentGatewaySetting(), getParentForChildren(), isClean()); + agentGatewaySetting_ = null; + } + return agentGatewaySettingBuilder_; } - private int industryVertical_ = 0; + private int marketplaceAgentVisibility_ = 0; /** * * *
-     * Optional. The industry vertical that the engine registers.
-     * The restriction of the Engine industry vertical is based on
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-     * has to match vertical of the DataStore linked to the engine.
+     * Optional. The visibility of marketplace agents in the agent gallery.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for industryVertical. + * @return The enum numeric value on the wire for marketplaceAgentVisibility. */ @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; + public int getMarketplaceAgentVisibilityValue() { + return marketplaceAgentVisibility_; } /** * * *
-     * Optional. The industry vertical that the engine registers.
-     * The restriction of the Engine industry vertical is based on
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-     * has to match vertical of the DataStore linked to the engine.
+     * Optional. The visibility of marketplace agents in the agent gallery.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for industryVertical to set. + * @param value The enum numeric value on the wire for marketplaceAgentVisibility to set. * @return This builder for chaining. */ - public Builder setIndustryVerticalValue(int value) { - industryVertical_ = value; - bitField0_ |= 0x00000400; + public Builder setMarketplaceAgentVisibilityValue(int value) { + marketplaceAgentVisibility_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -15163,24 +23970,23 @@ public Builder setIndustryVerticalValue(int value) { * * *
-     * Optional. The industry vertical that the engine registers.
-     * The restriction of the Engine industry vertical is based on
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-     * has to match vertical of the DataStore linked to the engine.
+     * Optional. The visibility of marketplace agents in the agent gallery.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The industryVertical. + * @return The marketplaceAgentVisibility. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1.IndustryVertical result = - com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + public com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility + getMarketplaceAgentVisibility() { + com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility result = + com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility.forNumber( + marketplaceAgentVisibility_); return result == null - ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility.UNRECOGNIZED : result; } @@ -15188,25 +23994,23 @@ public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical( * * *
-     * Optional. The industry vertical that the engine registers.
-     * The restriction of the Engine industry vertical is based on
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-     * has to match vertical of the DataStore linked to the engine.
+     * Optional. The visibility of marketplace agents in the agent gallery.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The industryVertical to set. + * @param value The marketplaceAgentVisibility to set. * @return This builder for chaining. */ - public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { + public Builder setMarketplaceAgentVisibility( + com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; - industryVertical_ = value.getNumber(); + bitField0_ |= 0x00800000; + marketplaceAgentVisibility_ = value.getNumber(); onChanged(); return this; } @@ -15215,87 +24019,126 @@ public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryV * * *
-     * Optional. The industry vertical that the engine registers.
-     * The restriction of the Engine industry vertical is based on
-     * [DataStore][google.cloud.discoveryengine.v1.DataStore]: Vertical on Engine
-     * has to match vertical of the DataStore linked to the engine.
+     * Optional. The visibility of marketplace agents in the agent gallery.
      * 
* * - * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ - public Builder clearIndustryVertical() { - bitField0_ = (bitField0_ & ~0x00000400); - industryVertical_ = 0; + public Builder clearMarketplaceAgentVisibility() { + bitField0_ = (bitField0_ & ~0x00800000); + marketplaceAgentVisibility_ = 0; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.Engine.CommonConfig commonConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.CommonConfig, - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder> - commonConfigBuilder_; + private com.google.protobuf.LazyStringArrayList procurementContactEmails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProcurementContactEmailsIsMutable() { + if (!procurementContactEmails_.isModifiable()) { + procurementContactEmails_ = + new com.google.protobuf.LazyStringArrayList(procurementContactEmails_); + } + bitField0_ |= 0x01000000; + } /** * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the commonConfig field is set. + * @return A list containing the procurementContactEmails. */ - public boolean hasCommonConfig() { - return ((bitField0_ & 0x00000800) != 0); + public com.google.protobuf.ProtocolStringList getProcurementContactEmailsList() { + procurementContactEmails_.makeImmutable(); + return procurementContactEmails_; } /** * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The commonConfig. + * @return The count of procurementContactEmails. */ - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig getCommonConfig() { - if (commonConfigBuilder_ == null) { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } else { - return commonConfigBuilder_.getMessage(); - } + public int getProcurementContactEmailsCount() { + return procurementContactEmails_.size(); } /** * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The procurementContactEmails at the given index. */ - public Builder setCommonConfig(com.google.cloud.discoveryengine.v1.Engine.CommonConfig value) { - if (commonConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commonConfig_ = value; - } else { - commonConfigBuilder_.setMessage(value); + public java.lang.String getProcurementContactEmails(int index) { + return procurementContactEmails_.get(index); + } + + /** + * + * + *
+     * Optional. The emails of the procurement contacts.
+     * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the procurementContactEmails at the given index. + */ + public com.google.protobuf.ByteString getProcurementContactEmailsBytes(int index) { + return procurementContactEmails_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The emails of the procurement contacts.
+     * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The procurementContactEmails to set. + * @return This builder for chaining. + */ + public Builder setProcurementContactEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000800; + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.set(index, value); + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -15304,19 +24147,23 @@ public Builder setCommonConfig(com.google.cloud.discoveryengine.v1.Engine.Common * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The procurementContactEmails to add. + * @return This builder for chaining. */ - public Builder setCommonConfig( - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder builderForValue) { - if (commonConfigBuilder_ == null) { - commonConfig_ = builderForValue.build(); - } else { - commonConfigBuilder_.setMessage(builderForValue.build()); + public Builder addProcurementContactEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000800; + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.add(value); + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -15325,29 +24172,21 @@ public Builder setCommonConfig( * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The procurementContactEmails to add. + * @return This builder for chaining. */ - public Builder mergeCommonConfig( - com.google.cloud.discoveryengine.v1.Engine.CommonConfig value) { - if (commonConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && commonConfig_ != null - && commonConfig_ - != com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance()) { - getCommonConfigBuilder().mergeFrom(value); - } else { - commonConfig_ = value; - } - } else { - commonConfigBuilder_.mergeFrom(value); - } - if (commonConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } + public Builder addAllProcurementContactEmails(java.lang.Iterable values) { + ensureProcurementContactEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, procurementContactEmails_); + bitField0_ |= 0x01000000; + onChanged(); return this; } @@ -15355,18 +24194,19 @@ public Builder mergeCommonConfig( * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. */ - public Builder clearCommonConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - commonConfig_ = null; - if (commonConfigBuilder_ != null) { - commonConfigBuilder_.dispose(); - commonConfigBuilder_ = null; - } + public Builder clearProcurementContactEmails() { + procurementContactEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + ; onChanged(); return this; } @@ -15375,35 +24215,53 @@ public Builder clearCommonConfig() { * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Optional. The emails of the procurement contacts.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the procurementContactEmails to add. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder - getCommonConfigBuilder() { - bitField0_ |= 0x00000800; + public Builder addProcurementContactEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.add(value); + bitField0_ |= 0x01000000; onChanged(); - return internalGetCommonConfigFieldBuilder().getBuilder(); + return this; } + private java.lang.Object associatedAgentRegistry_ = ""; + /** * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Output only. The Agent registry containing the agents, MCP servers and
+     * tools associated with this engine. Derived server-side from the linked
+     * Agent Gateway's registry.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The associatedAgentRegistry. */ - public com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder - getCommonConfigOrBuilder() { - if (commonConfigBuilder_ != null) { - return commonConfigBuilder_.getMessageOrBuilder(); + public java.lang.String getAssociatedAgentRegistry() { + java.lang.Object ref = associatedAgentRegistry_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + associatedAgentRegistry_ = s; + return s; } else { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; + return (java.lang.String) ref; } } @@ -15411,64 +24269,70 @@ public Builder clearCommonConfig() { * * *
-     * Common config spec that specifies the metadata of the engine.
+     * Output only. The Agent registry containing the agents, MCP servers and
+     * tools associated with this engine. Derived server-side from the linked
+     * Agent Gateway's registry.
      * 
* - * .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for associatedAgentRegistry. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.CommonConfig, - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder> - internalGetCommonConfigFieldBuilder() { - if (commonConfigBuilder_ == null) { - commonConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.Engine.CommonConfig, - com.google.cloud.discoveryengine.v1.Engine.CommonConfig.Builder, - com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder>( - getCommonConfig(), getParentForChildren(), isClean()); - commonConfig_ = null; + public com.google.protobuf.ByteString getAssociatedAgentRegistryBytes() { + java.lang.Object ref = associatedAgentRegistry_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + associatedAgentRegistry_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return commonConfigBuilder_; } - private boolean disableAnalytics_; - /** * * *
-     * Optional. Whether to disable analytics for searches performed on this
-     * engine.
+     * Output only. The Agent registry containing the agents, MCP servers and
+     * tools associated with this engine. Derived server-side from the linked
+     * Agent Gateway's registry.
      * 
* - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The disableAnalytics. + * @param value The associatedAgentRegistry to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean getDisableAnalytics() { - return disableAnalytics_; + public Builder setAssociatedAgentRegistry(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + associatedAgentRegistry_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; } /** * * *
-     * Optional. Whether to disable analytics for searches performed on this
-     * engine.
+     * Output only. The Agent registry containing the agents, MCP servers and
+     * tools associated with this engine. Derived server-side from the linked
+     * Agent Gateway's registry.
      * 
* - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The disableAnalytics to set. * @return This builder for chaining. */ - public Builder setDisableAnalytics(boolean value) { - - disableAnalytics_ = value; - bitField0_ |= 0x00001000; + public Builder clearAssociatedAgentRegistry() { + associatedAgentRegistry_ = getDefaultInstance().getAssociatedAgentRegistry(); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); return this; } @@ -15477,17 +24341,24 @@ public Builder setDisableAnalytics(boolean value) { * * *
-     * Optional. Whether to disable analytics for searches performed on this
-     * engine.
+     * Output only. The Agent registry containing the agents, MCP servers and
+     * tools associated with this engine. Derived server-side from the linked
+     * Agent Gateway's registry.
      * 
* - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @param value The bytes for associatedAgentRegistry to set. * @return This builder for chaining. */ - public Builder clearDisableAnalytics() { - bitField0_ = (bitField0_ & ~0x00001000); - disableAnalytics_ = false; + public Builder setAssociatedAgentRegistryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + associatedAgentRegistry_ = value; + bitField0_ |= 0x02000000; onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java index 861550cc8472..93ba6204f2de 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineOrBuilder.java @@ -612,6 +612,90 @@ public interface EngineOrBuilder */ com.google.cloud.discoveryengine.v1.Engine.CommonConfigOrBuilder getCommonConfigOrBuilder(); + /** + * + * + *
+   * Optional. Configurations for the Knowledge Graph. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the knowledgeGraphConfig field is set. + */ + boolean hasKnowledgeGraphConfig(); + + /** + * + * + *
+   * Optional. Configurations for the Knowledge Graph. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The knowledgeGraphConfig. + */ + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig getKnowledgeGraphConfig(); + + /** + * + * + *
+   * Optional. Configurations for the Knowledge Graph. Only applicable if
+   * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is
+   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfigOrBuilder + getKnowledgeGraphConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. This the application type which this engine resource
+   * represents. NOTE: this is a new concept independ of existing industry
+   * vertical or solution type.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for appType. + */ + int getAppTypeValue(); + + /** + * + * + *
+   * Optional. Immutable. This the application type which this engine resource
+   * represents. NOTE: this is a new concept independ of existing industry
+   * vertical or solution type.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The appType. + */ + com.google.cloud.discoveryengine.v1.Engine.AppType getAppType(); + /** * * @@ -626,6 +710,1032 @@ public interface EngineOrBuilder */ boolean getDisableAnalytics(); + /** + * + * + *
+   * Optional. Non-empty default. Session config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return Whether the sessionConfig field is set. + */ + boolean hasSessionConfig(); + + /** + * + * + *
+   * Optional. Non-empty default. Session config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + * + * @return The sessionConfig. + */ + com.google.cloud.discoveryengine.v1.SessionConfig getSessionConfig(); + + /** + * + * + *
+   * Optional. Non-empty default. Session config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig session_config = 29 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * + */ + com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder getSessionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFeaturesCount(); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsFeatures(java.lang.String key); + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getFeatures(); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getFeaturesMap(); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.FeatureState getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.FeatureState defaultValue); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Engine.FeatureState getFeaturesOrThrow(java.lang.String key); + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFeaturesValue(); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getFeaturesValueMap(); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFeaturesValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
+   * Optional. Feature config for the engine to opt in or opt out of features.
+   * Supported keys:
+   *
+   * * `*`: all features, if it's present, all other feature state settings are
+   * ignored.
+   * * `agent-gallery`
+   * * `no-code-agent-builder`
+   * * `prompt-gallery`
+   * * `model-selector`
+   * * `notebook-lm`
+   * * `people-search`
+   * * `people-search-org-chart`
+   * * `bi-directional-audio`
+   * * `speech-to-text`
+   * * `feedback`
+   * * `session-sharing`
+   * * `personalization-memory`
+   * * `personalization-suggested-highlights`
+   * * `mobile-app-access`
+   * * `disable-agent-sharing`
+   * * `disable-image-generation`
+   * * `disable-video-generation`
+   * * `disable-onedrive-upload`
+   * * `disable-talk-to-content`
+   * * `disable-google-drive-upload`
+   * * `disable-welcome-emails`
+   * * `disable-canvas`
+   * * `canvas-workspace`
+   * * `canvas-app-builder`
+   * * `skills`
+   * * `skill-sharing`
+   * * `skill-sharing-without-admin-approval`
+   * * `disable-projects`
+   * * `sobi`
+   * * `enable-end-user-sharing-with-groups`
+   * * `single-agent-orchestration`
+   * * `multi-agent-orchestration`
+   * * `cross-product-intelligence`
+   * * `workflow-agents`
+   * * `in-app-notifications`
+   * * `code-extraction`
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFeaturesValueOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. CMEK-related information for the Engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + boolean hasCmekConfig(); + + /** + * + * + *
+   * Output only. CMEK-related information for the Engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + com.google.cloud.discoveryengine.v1.CmekConfig getCmekConfig(); + + /** + * + * + *
+   * Output only. CMEK-related information for the Engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.CmekConfigOrBuilder getCmekConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + int getConfigurableBillingApproachValue(); + + /** + * + * + *
+   * Optional. Configuration for configurable billing approach.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + com.google.cloud.discoveryengine.v1.Engine.ConfigurableBillingApproach + getConfigurableBillingApproach(); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModelConfigsCount(); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsModelConfigs(java.lang.String key); + + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getModelConfigs(); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getModelConfigsMap(); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.ModelState getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Engine.ModelState defaultValue); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Engine.ModelState getModelConfigsOrThrow( + java.lang.String key); + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getModelConfigsValue(); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getModelConfigsValueMap(); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
+   * Optional. Maps a model name to its specific configuration for this engine.
+   * This allows admin users to turn on/off individual models. This only stores
+   * models whose states are overridden by the admin.
+   *
+   * When the state is unspecified, or model_configs is empty for this
+   * model, the system will decide if this model should be available or not
+   * based on the default configuration. For example, a preview model
+   * should be disabled by default if the admin has not chosen to enable it.
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModelConfigsValueOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Observability config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + boolean hasObservabilityConfig(); + + /** + * + * + *
+   * Optional. Observability config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + com.google.cloud.discoveryengine.v1.ObservabilityConfig getObservabilityConfig(); + + /** + * + * + *
+   * Optional. Observability config for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConnectorTenantInfoCount(); + + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsConnectorTenantInfo(java.lang.String key); + + /** Use {@link #getConnectorTenantInfoMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConnectorTenantInfo(); + + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getConnectorTenantInfoMap(); + + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getConnectorTenantInfoOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
+   * tenant-specific information required for that connector. The structure of
+   * the tenant information string is connector-dependent.
+   * 
+ * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getConnectorTenantInfoOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. The agent gateway setting for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentGatewaySetting field is set. + */ + boolean hasAgentGatewaySetting(); + + /** + * + * + *
+   * Optional. The agent gateway setting for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentGatewaySetting. + */ + com.google.cloud.discoveryengine.v1.AgentGatewaySetting getAgentGatewaySetting(); + + /** + * + * + *
+   * Optional. The agent gateway setting for the engine.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AgentGatewaySettingOrBuilder + getAgentGatewaySettingOrBuilder(); + + /** + * + * + *
+   * Optional. The visibility of marketplace agents in the agent gallery.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for marketplaceAgentVisibility. + */ + int getMarketplaceAgentVisibilityValue(); + + /** + * + * + *
+   * Optional. The visibility of marketplace agents in the agent gallery.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The marketplaceAgentVisibility. + */ + com.google.cloud.discoveryengine.v1.Engine.MarketplaceAgentVisibility + getMarketplaceAgentVisibility(); + + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the procurementContactEmails. + */ + java.util.List getProcurementContactEmailsList(); + + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of procurementContactEmails. + */ + int getProcurementContactEmailsCount(); + + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The procurementContactEmails at the given index. + */ + java.lang.String getProcurementContactEmails(int index); + + /** + * + * + *
+   * Optional. The emails of the procurement contacts.
+   * 
+ * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the procurementContactEmails at the given index. + */ + com.google.protobuf.ByteString getProcurementContactEmailsBytes(int index); + + /** + * + * + *
+   * Output only. The Agent registry containing the agents, MCP servers and
+   * tools associated with this engine. Derived server-side from the linked
+   * Agent Gateway's registry.
+   * 
+ * + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The associatedAgentRegistry. + */ + java.lang.String getAssociatedAgentRegistry(); + + /** + * + * + *
+   * Output only. The Agent registry containing the agents, MCP servers and
+   * tools associated with this engine. Derived server-side from the linked
+   * Agent Gateway's registry.
+   * 
+ * + * string associated_agent_registry = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for associatedAgentRegistry. + */ + com.google.protobuf.ByteString getAssociatedAgentRegistryBytes(); + com.google.cloud.discoveryengine.v1.Engine.EngineConfigCase getEngineConfigCase(); com.google.cloud.discoveryengine.v1.Engine.EngineMetadataCase getEngineMetadataCase(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java index 95624a837e6d..038c09509758 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineProto.java @@ -80,10 +80,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_Engine_CommonConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Engine_FeaturesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Engine_FeaturesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Engine_ModelConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Engine_ModelConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Engine_ConnectorTenantInfoEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Engine_ConnectorTenantInfoEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -97,17 +117,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",google/cloud/discoveryengine/v1/engine" + ".proto\022\037google.cloud.discoveryengine.v1\032" + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032,google/cloud/discov" - + "eryengine/v1/common.proto\032\037google/protobuf/timestamp.proto\"\356\024\n" + + "/api/resource.proto\032;google/cloud/discoveryengine/v1/agent_gateway_setting.proto" + + "\0329google/cloud/discoveryengine/v1/cmek_config_service.proto\032,google/cloud/discov" + + "eryengine/v1/common.proto\032-google/cloud/" + + "discoveryengine/v1/logging.proto\032\037google/protobuf/timestamp.proto\"\233(\n" + "\006Engine\022V\n" - + "\022chat_engine_config\030\013" - + " \001(\01328.google.cloud.discoveryengine.v1.Engine.ChatEngineConfigH\000\022Z\n" + + "\022chat_engine_config\030\013 \001(\01328.google.cloud." + + "discoveryengine.v1.Engine.ChatEngineConfigH\000\022Z\n" + "\024search_engine_config\030\r" + " \001(\0132:.google.cloud.discoveryengine.v1.Engine.SearchEngineConfigH\000\022u\n" - + "\"media_recommendation_engine_config\030\016 \001(\0132G.google.cloud.discoveryen" - + "gine.v1.Engine.MediaRecommendationEngineConfigH\000\022`\n" - + "\024chat_engine_metadata\030\014 \001(\0132:" - + ".google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataB\004\342A\001\003H\001\022\023\n" + + "\"media_recommendation_engine_config\030\016 \001(\0132G.google.cloud.disc" + + "overyengine.v1.Engine.MediaRecommendationEngineConfigH\000\022`\n" + + "\024chat_engine_metadata\030\014" + + " \001(\0132:.google.cloud.discoveryengine.v1.Engine.ChatEngineMetadataB\004\342A\001\003H\001\022\023\n" + "\004name\030\001 \001(\tB\005\342A\002\005\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\0225\n" + "\013create_time\030\003" @@ -115,35 +137,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\034\n" + "\016data_store_ids\030\005 \003(\tB\004\342A\001\001\022J\n\r" - + "solution_type\030\006 \001(\0162-" - + ".google.cloud.discoveryengine.v1.SolutionTypeB\004\342A\001\002\022R\n" - + "\021industry_vertical\030\020 \001(\01621" - + ".google.cloud.discoveryengine.v1.IndustryVerticalB\004\342A\001\001\022K\n\r" - + "common_config\030\017 \001(\01324" - + ".google.cloud.discoveryengine.v1.Engine.CommonConfig\022\037\n" - + "\021disable_analytics\030\032 \001(\010B\004\342A\001\001\032\234\001\n" + + "solution_type\030\006" + + " \001(\0162-.google.cloud.discoveryengine.v1.SolutionTypeB\004\342A\001\002\022R\n" + + "\021industry_vertical\030\020" + + " \001(\01621.google.cloud.discoveryengine.v1.IndustryVerticalB\004\342A\001\001\022K\n\r" + + "common_config\030\017" + + " \001(\01324.google.cloud.discoveryengine.v1.Engine.CommonConfig\022b\n" + + "\026knowledge_graph_config\030\027 \001(\0132<.google.cloud.discoveryengi" + + "ne.v1.Engine.KnowledgeGraphConfigB\004\342A\001\001\022H\n" + + "\010app_type\030\030" + + " \001(\0162/.google.cloud.discoveryengine.v1.Engine.AppTypeB\005\342A\002\001\005\022\037\n" + + "\021disable_analytics\030\032 \001(\010B\004\342A\001\001\022M\n" + + "\016session_config\030\035" + + " \001(\0132..google.cloud.discoveryengine.v1.SessionConfigB\005\342A\002\001\007\022M\n" + + "\010features\030\036 " + + "\003(\01325.google.cloud.discoveryengine.v1.Engine.FeaturesEntryB\004\342A\001\001\022F\n" + + "\013cmek_config\030 " + + " \001(\0132+.google.cloud.discoveryengine.v1.CmekConfigB\004\342A\001\003\022p\n" + + "\035configurable_billing_approach\030$ \001(\0162C.google.cloud.discovery" + + "engine.v1.Engine.ConfigurableBillingApproachB\004\342A\001\001\022V\n\r" + + "model_configs\030% \003(\01329.goog" + + "le.cloud.discoveryengine.v1.Engine.ModelConfigsEntryB\004\342A\001\001\022X\n" + + "\024observability_config\030\'" + + " \001(\01324.google.cloud.discoveryengine.v1.ObservabilityConfigB\004\342A\001\001\022e\n" + + "\025connector_tenant_info\030* \003(\0132@.google.cloud.disco" + + "veryengine.v1.Engine.ConnectorTenantInfoEntryB\004\342A\001\001\022Y\n" + + "\025agent_gateway_setting\030+ \001" + + "(\01324.google.cloud.discoveryengine.v1.AgentGatewaySettingB\004\342A\001\001\022n\n" + + "\034marketplace_agent_visibility\030, \001(\0162B.google.cloud.disc" + + "overyengine.v1.Engine.MarketplaceAgentVisibilityB\004\342A\001\001\022(\n" + + "\032procurement_contact_emails\030- \003(\tB\004\342A\001\001\022\'\n" + + "\031associated_agent_registry\0302 \001(\tB\004\342A\001\003\032\371\001\n" + "\022SearchEngineConfig\022@\n" - + "\013search_tier\030\001 \001(\0162+.google.cloud.discoveryengine.v1.SearchTier\022D\n" - + "\016search_add_ons\030\002 \003(\0162," - + ".google.cloud.discoveryengine.v1.SearchAddOn\032\272\010\n" + + "\013search_tier\030\001 \001(\0162+.google.cloud.discoveryengine.v1.SearchTier\022[\n" + + "\032required_subscription_tier\030\003 \001(\01621.google.cloud.di" + + "scoveryengine.v1.SubscriptionTierB\004\342A\001\001\022D\n" + + "\016search_add_ons\030\002" + + " \003(\0162,.google.cloud.discoveryengine.v1.SearchAddOn\032\272\010\n" + "\037MediaRecommendationEngineConfig\022\022\n" + "\004type\030\001 \001(\tB\004\342A\001\002\022\036\n" + "\026optimization_objective\030\002 \001(\t\022\212\001\n" - + "\035optimization_objective_config\030\003 \001(\0132c.google.cloud.discoveryeng" - + "ine.v1.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig\022m\n" - + "\016training_state\030\004 \001(\0162U.google.cloud.discove" - + "ryengine.v1.Engine.MediaRecommendationEngineConfig.TrainingState\022\202\001\n" - + "\026engine_features_config\030\005 \001(\0132\\.google.cloud.discove" - + "ryengine.v1.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfigB\004\342A\001\001\032a\n" + + "\035optimization_objective_config\030\003 \001(\0132c." + + "google.cloud.discoveryengine.v1.Engine.M" + + "ediaRecommendationEngineConfig.OptimizationObjectiveConfig\022m\n" + + "\016training_state\030\004 \001(\0162U.google.cloud.discoveryengine.v1.Eng" + + "ine.MediaRecommendationEngineConfig.TrainingState\022\202\001\n" + + "\026engine_features_config\030\005 \001(\0132\\.google.cloud.discoveryengine.v1.Eng" + + "ine.MediaRecommendationEngineConfig.EngineFeaturesConfigB\004\342A\001\001\032a\n" + "\033OptimizationObjectiveConfig\022\032\n" + "\014target_field\030\001 \001(\tB\004\342A\001\002\022&\n" + "\030target_field_value_float\030\002 \001(\002B\004\342A\001\002\032\277\002\n" + "\024EngineFeaturesConfig\022\214\001\n" - + "\032recommended_for_you_config\030\001 \001(\0132f" - + ".google.cloud.discoveryengine.v1.Engine." - + "MediaRecommendationEngineConfig.RecommendedForYouFeatureConfigH\000\022\177\n" - + "\023most_popular_config\030\002 \001(\0132`.google.cloud.discoveryen" - + "gine.v1.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfigH\000B\027\n" + + "\032recommended_for_you_config\030\001 \001(\0132f.google.cloud.d" + + "iscoveryengine.v1.Engine.MediaRecommenda" + + "tionEngineConfig.RecommendedForYouFeatureConfigH\000\022\177\n" + + "\023most_popular_config\030\002 \001(\0132`.google.cloud.discoveryengine.v1.Engine." + + "MediaRecommendationEngineConfig.MostPopularFeatureConfigH\000B\027\n" + "\025type_dedicated_config\032<\n" + "\036RecommendedForYouFeatureConfig\022\032\n" + "\022context_event_type\030\001 \001(\t\0324\n" @@ -154,8 +203,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006PAUSED\020\001\022\014\n" + "\010TRAINING\020\002\032\266\002\n" + "\020ChatEngineConfig\022k\n" - + "\025agent_creation_config\030\001 \001(\0132L.google.cloud.dis" - + "coveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig\022 \n" + + "\025agent_creation_config\030\001 \001(\0132L.google.cloud.discoveryengine.v1" + + ".Engine.ChatEngineConfig.AgentCreationConfig\022 \n" + "\030dialogflow_agent_to_link\030\002 \001(\t\022 \n" + "\022allow_cross_region\030\003 \001(\010B\004\342A\001\001\032q\n" + "\023AgentCreationConfig\022\020\n" @@ -164,19 +213,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttime_zone\030\003 \001(\tB\004\342A\001\002\022\020\n" + "\010location\030\004 \001(\t\032$\n" + "\014CommonConfig\022\024\n" - + "\014company_name\030\001 \001(\t\032.\n" + + "\014company_name\030\001 \001(\t\032\330\003\n" + + "\024KnowledgeGraphConfig\022$\n" + + "\034enable_cloud_knowledge_graph\030\001 \001(\010\022#\n" + + "\033cloud_knowledge_graph_types\030\002 \003(\t\022&\n" + + "\036enable_private_knowledge_graph\030\003 \001(\010\022%\n" + + "\035private_knowledge_graph_types\030\004 \003(\t\022h\n" + + "\016feature_config\030\005 \001(\0132J.google.cl" + + "oud.discoveryengine.v1.Engine.KnowledgeGraphConfig.FeatureConfigB\004\342A\001\001\032\273\001\n\r" + + "FeatureConfig\022.\n" + + "&disable_private_kg_query_understanding\030\001 \001(\010\022%\n" + + "\035disable_private_kg_enrichment\030\002 \001(\010\022(\n" + + " disable_private_kg_auto_complete\030\003 \001(\010\022)\n" + + "!disable_private_kg_query_ui_chips\030\004 \001(\010\032.\n" + "\022ChatEngineMetadata\022\030\n" - + "\020dialogflow_agent\030\001 \001(\t:}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locatio" - + "ns/{location}/collections/{collection}/engines/{engine}B\017\n\r" + + "\020dialogflow_agent\030\001 \001(\t\032e\n\r" + + "FeaturesEntry\022\013\n" + + "\003key\030\001 \001(\t\022C\n" + + "\005value\030\002 \001(\01624.goog" + + "le.cloud.discoveryengine.v1.Engine.FeatureState:\0028\001\032g\n" + + "\021ModelConfigsEntry\022\013\n" + + "\003key\030\001 \001(\t\022A\n" + + "\005value\030\002" + + " \001(\01622.google.cloud.discoveryengine.v1.Engine.ModelState:\0028\001\032:\n" + + "\030ConnectorTenantInfoEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\":\n" + + "\007AppType\022\030\n" + + "\024APP_TYPE_UNSPECIFIED\020\000\022\025\n" + + "\021APP_TYPE_INTRANET\020\001\"Z\n" + + "\014FeatureState\022\035\n" + + "\031FEATURE_STATE_UNSPECIFIED\020\000\022\024\n" + + "\020FEATURE_STATE_ON\020\001\022\025\n" + + "\021FEATURE_STATE_OFF\020\002\"w\n" + + "\033ConfigurableBillingApproach\022-\n" + + ")CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED\020\000\022)\n" + + "%CONFIGURABLE_BILLING_APPROACH_ENABLED\020\001\"P\n\n" + + "ModelState\022\033\n" + + "\027MODEL_STATE_UNSPECIFIED\020\000\022\021\n\r" + + "MODEL_ENABLED\020\001\022\022\n" + + "\016MODEL_DISABLED\020\002\"\306\001\n" + + "\032MarketplaceAgentVisibility\022,\n" + + "(MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED\020\000\022\036\n" + + "\032SHOW_AVAILABLE_AGENTS_ONLY\020\001\022\"\n" + + "\036SHOW_AGENTS_ALREADY_INTEGRATED\020\002\022!\n" + + "\035SHOW_AGENTS_ALREADY_PURCHASED\020\003\022\023\n" + + "\017SHOW_ALL_AGENTS\020\004:}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/loc" + + "ations/{location}/collections/{collection}/engines/{engine}B\017\n\r" + "engine_configB\021\n" + "\017engine_metadataB\376\001\n" - + "#com.google.cloud.discoveryengine.v1B\013EngineProtoP\001ZMcloud.google" - + ".com/go/discoveryengine/apiv1/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037" - + "Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Google" - + "::Cloud::DiscoveryEngine::V1b\006proto3" + + "#com.google.cloud.discoveryengine.v1B\013EngineProtoP\001ZMcloud.go" + + "ogle.com/go/discoveryengine/apiv1/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002\037Google.Cloud.DiscoveryEngine.V" + + "1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Go" + + "ogle::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -184,7 +276,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CmekConfigServiceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.LoggingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_Engine_descriptor = @@ -205,7 +300,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SolutionType", "IndustryVertical", "CommonConfig", + "KnowledgeGraphConfig", + "AppType", "DisableAnalytics", + "SessionConfig", + "Features", + "CmekConfig", + "ConfigurableBillingApproach", + "ModelConfigs", + "ObservabilityConfig", + "ConnectorTenantInfo", + "AgentGatewaySetting", + "MarketplaceAgentVisibility", + "ProcurementContactEmails", + "AssociatedAgentRegistry", "EngineConfig", "EngineMetadata", }); @@ -215,7 +323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Engine_SearchEngineConfig_descriptor, new java.lang.String[] { - "SearchTier", "SearchAddOns", + "SearchTier", "RequiredSubscriptionTier", "SearchAddOns", }); internal_static_google_cloud_discoveryengine_v1_Engine_MediaRecommendationEngineConfig_descriptor = internal_static_google_cloud_discoveryengine_v1_Engine_descriptor.getNestedType(1); @@ -290,18 +398,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CompanyName", }); - internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor = internal_static_google_cloud_discoveryengine_v1_Engine_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor, + new java.lang.String[] { + "EnableCloudKnowledgeGraph", + "CloudKnowledgeGraphTypes", + "EnablePrivateKnowledgeGraph", + "PrivateKnowledgeGraphTypes", + "FeatureConfig", + }); + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor, + new java.lang.String[] { + "DisablePrivateKgQueryUnderstanding", + "DisablePrivateKgEnrichment", + "DisablePrivateKgAutoComplete", + "DisablePrivateKgQueryUiChips", + }); + internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_Engine_descriptor.getNestedType(5); internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Engine_ChatEngineMetadata_descriptor, new java.lang.String[] { "DialogflowAgent", }); + internal_static_google_cloud_discoveryengine_v1_Engine_FeaturesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_Engine_descriptor.getNestedType(6); + internal_static_google_cloud_discoveryengine_v1_Engine_FeaturesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Engine_FeaturesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_Engine_ModelConfigsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_Engine_descriptor.getNestedType(7); + internal_static_google_cloud_discoveryengine_v1_Engine_ModelConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Engine_ModelConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_Engine_ConnectorTenantInfoEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_Engine_descriptor.getNestedType(8); + internal_static_google_cloud_discoveryengine_v1_Engine_ConnectorTenantInfoEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Engine_ConnectorTenantInfoEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.AgentGatewaySettingProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CmekConfigServiceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.LoggingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceProto.java index 497a82cce4c0..ff443fb55b80 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceProto.java @@ -87,7 +87,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/client.proto\032\037google/api/field" + "_behavior.proto\032\031google/api/resource.pro" + "to\032,google/cloud/discoveryengine/v1/engi" - + "ne.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + "ne.proto\032\036google/iam/v1/iam_policy.proto" + + "\032\032google/iam/v1/policy.proto\032#google/lon" + + "grunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\261\001\n" + "\023CreateEngineRequest\022B\n" + "\006parent\030\001 \001(\tB2\342A\001\002\372A+\n" @@ -117,39 +119,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007engines\030\001 \003(\0132\'.google.cloud.discoveryengine.v1.Engine\022\027\n" + "\017next_page_token\030\002 \001(\t\"\205\001\n" + "\023UpdateEngineRequest\022=\n" - + "\006engine\030\001 \001" - + "(\0132\'.google.cloud.discoveryengine.v1.EngineB\004\342A\001\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask2\343\t\n\r" + + "\006engine\030\001" + + " \001(\0132\'.google.cloud.discoveryengine.v1.EngineB\004\342A\001\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask2\301\r\n\r" + "EngineService\022\252\002\n" - + "\014CreateEngine\0224.google.cloud.discoveryen" - + "gine.v1.CreateEngineRequest\032\035.google.longrunning.Operation\"\304\001\312A^\n" - + "&google.cloud.discoveryengine.v1.Engine\0224google.cloud.d" - + "iscoveryengine.v1.CreateEngineMetadata\332A" - + "\027parent,engine,engine_id\202\323\344\223\002C\"9/v1/{par" - + "ent=projects/*/locations/*/collections/*}/engines:\006engine\022\376\001\n" - + "\014DeleteEngine\0224.google.cloud.discoveryengine.v1.DeleteEngin" - + "eRequest\032\035.google.longrunning.Operation\"\230\001\312AM\n" - + "\025google.protobuf.Empty\0224google.cloud.discoveryengine.v1.DeleteEngineMetada" - + "ta\332A\004name\202\323\344\223\002;*9/v1/{name=projects/*/locations/*/collections/*/engines/*}\022\324\001\n" - + "\014UpdateEngine\0224.google.cloud.discoveryengi" - + "ne.v1.UpdateEngineRequest\032\'.google.cloud" - + ".discoveryengine.v1.Engine\"e\332A\022engine,up" - + "date_mask\202\323\344\223\002J2@/v1/{engine.name=projec" - + "ts/*/locations/*/collections/*/engines/*}:\006engine\022\261\001\n" - + "\tGetEngine\0221.google.cloud.discoveryengine.v1.GetEngineRequest\032\'.goo" - + "gle.cloud.discoveryengine.v1.Engine\"H\332A\004" - + "name\202\323\344\223\002;\0229/v1/{name=projects/*/locations/*/collections/*/engines/*}\022\304\001\n" - + "\013ListEngines\0223.google.cloud.discoveryengine.v1." - + "ListEnginesRequest\0324.google.cloud.discov" - + "eryengine.v1.ListEnginesResponse\"J\332A\006par" - + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" - + "ons/*/collections/*}/engines\032R\312A\036discove" - + "ryengine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\205\002\n" - + "#com.google.cloud.discoveryengine.v1B\022Engine" - + "ServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;disc" - + "overyenginepb\242\002\017DISCOVERYENGINE\252\002\037Google" - + ".Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud" - + "\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "\014CreateEngine\0224.google.cloud.discoveryengine.v1.CreateEngine" + + "Request\032\035.google.longrunning.Operation\"\304\001\312A^\n" + + "&google.cloud.discoveryengine.v1.Engine\0224google.cloud.discoveryengine.v1.Cr" + + "eateEngineMetadata\332A\027parent,engine,engin" + + "e_id\202\323\344\223\002C\"9/v1/{parent=projects/*/locat" + + "ions/*/collections/*}/engines:\006engine\022\376\001\n" + + "\014DeleteEngine\0224.google.cloud.discoverye" + + "ngine.v1.DeleteEngineRequest\032\035.google.longrunning.Operation\"\230\001\312AM\n" + + "\025google.protobuf.Empty\0224google.cloud.discoveryengine.v" + + "1.DeleteEngineMetadata\332A\004name\202\323\344\223\002;*9/v1" + + "/{name=projects/*/locations/*/collections/*/engines/*}\022\324\001\n" + + "\014UpdateEngine\0224.google.cloud.discoveryengine.v1.UpdateEngineRe" + + "quest\032\'.google.cloud.discoveryengine.v1." + + "Engine\"e\332A\022engine,update_mask\202\323\344\223\002J2@/v1" + + "/{engine.name=projects/*/locations/*/collections/*/engines/*}:\006engine\022\261\001\n" + + "\tGetEngine\0221.google.cloud.discoveryengine.v1.Ge" + + "tEngineRequest\032\'.google.cloud.discoverye" + + "ngine.v1.Engine\"H\332A\004name\202\323\344\223\002;\0229/v1/{nam" + + "e=projects/*/locations/*/collections/*/engines/*}\022\304\001\n" + + "\013ListEngines\0223.google.cloud.discoveryengine.v1.ListEnginesRequest\0324" + + ".google.cloud.discoveryengine.v1.ListEng" + + "inesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{pare" + + "nt=projects/*/locations/*/collections/*}/engines\022\250\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.google.iam.v1.Po" + + "licy\"]\332A\010resource\202\323\344\223\002L\022J/v1/{resource=p" + + "rojects/*/locations/*/collections/*/engines/*}:getIamPolicy\022\262\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.googl" + + "e.iam.v1.Policy\"g\332A\017resource,policy\202\323\344\223\002" + + "O\"J/v1/{resource=projects/*/locations/*/collections/*/engines/*}:setIamPolicy:\001*" + + "\032\317\001\312A\036discoveryengine.googleapis.com\322A\252\001" + + "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/d" + + "iscoveryengine.readwrite,https://www.goo" + + "gleapis.com/auth/discoveryengine.serving.readwriteB\205\002\n" + + "#com.google.cloud.discoveryengine.v1B\022EngineServiceProtoP\001ZMcloud." + + "google.com/go/discoveryengine/apiv1/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002\037Google.Cloud.DiscoveryEngine" + + ".V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"" + + "Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -160,6 +172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.EngineProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -235,6 +249,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.EngineProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Feedback.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Feedback.java new file mode 100644 index 000000000000..927966a23146 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Feedback.java @@ -0,0 +1,5042 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/feedback.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Information about the user feedback. This information will be used for
+ * logging and metrics purpose.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Feedback} + */ +@com.google.protobuf.Generated +public final class Feedback extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Feedback) + FeedbackOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Feedback"); + } + + // Use Feedback.newBuilder() to construct. + private Feedback(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Feedback() { + feedbackType_ = 0; + reasons_ = emptyIntList(); + comment_ = ""; + llmModelVersion_ = ""; + feedbackSource_ = 0; + componentVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Feedback.class, + com.google.cloud.discoveryengine.v1.Feedback.Builder.class); + } + + /** + * + * + *
+   * The type of the feedback user gives.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Feedback.FeedbackType} + */ + public enum FeedbackType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified feedback type.
+     * 
+ * + * FEEDBACK_TYPE_UNSPECIFIED = 0; + */ + FEEDBACK_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The user gives a positive feedback.
+     * 
+ * + * LIKE = 1; + */ + LIKE(1), + /** + * + * + *
+     * The user gives a negative feedback.
+     * 
+ * + * DISLIKE = 2; + */ + DISLIKE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FeedbackType"); + } + + /** + * + * + *
+     * Unspecified feedback type.
+     * 
+ * + * FEEDBACK_TYPE_UNSPECIFIED = 0; + */ + public static final int FEEDBACK_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The user gives a positive feedback.
+     * 
+ * + * LIKE = 1; + */ + public static final int LIKE_VALUE = 1; + + /** + * + * + *
+     * The user gives a negative feedback.
+     * 
+ * + * DISLIKE = 2; + */ + public static final int DISLIKE_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 FeedbackType 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 FeedbackType forNumber(int value) { + switch (value) { + case 0: + return FEEDBACK_TYPE_UNSPECIFIED; + case 1: + return LIKE; + case 2: + return DISLIKE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeedbackType findValueByNumber(int number) { + return FeedbackType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Feedback.getDescriptor().getEnumTypes().get(0); + } + + private static final FeedbackType[] VALUES = values(); + + public static FeedbackType 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 FeedbackType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Feedback.FeedbackType) + } + + /** + * + * + *
+   * The reason why user gives a negative feedback.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Feedback.Reason} + */ + public enum Reason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified reason.
+     * 
+ * + * REASON_UNSPECIFIED = 0; + */ + REASON_UNSPECIFIED(0), + /** + * + * + *
+     * The response is inaccurate.
+     * 
+ * + * INACCURATE_RESPONSE = 1; + */ + INACCURATE_RESPONSE(1), + /** + * + * + *
+     * The response is not relevant.
+     * 
+ * + * NOT_RELEVANT = 2; + */ + NOT_RELEVANT(2), + /** + * + * + *
+     * The response is incomprehensive.
+     * 
+ * + * INCOMPREHENSIVE = 3; + */ + INCOMPREHENSIVE(3), + /** + * + * + *
+     * The response is offensive or unsafe.
+     * 
+ * + * OFFENSIVE_OR_UNSAFE = 4; + */ + OFFENSIVE_OR_UNSAFE(4), + /** + * + * + *
+     * The response is not well-formatted.
+     * 
+ * + * FORMAT_AND_STYLES = 6; + */ + FORMAT_AND_STYLES(6), + /** + * + * + *
+     * The response is not well-associated with the query.
+     * 
+ * + * BAD_CITATION = 7; + */ + BAD_CITATION(7), + /** + * + * + *
+     * The expected canvas was not generated for the response.
+     * 
+ * + * CANVAS_NOT_GENERATED = 8; + */ + CANVAS_NOT_GENERATED(8), + /** + * + * + *
+     * The generated canvas is of bad quality (e.g. inaccurate, incomplete,
+     * poorly formatted).
+     * 
+ * + * CANVAS_QUALITY_BAD = 9; + */ + CANVAS_QUALITY_BAD(9), + /** + * + * + *
+     * Exporting the generated canvas failed (e.g. download or external
+     * export action did not complete successfully).
+     * 
+ * + * CANVAS_EXPORT_FAILED = 10; + */ + CANVAS_EXPORT_FAILED(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Reason"); + } + + /** + * + * + *
+     * Unspecified reason.
+     * 
+ * + * REASON_UNSPECIFIED = 0; + */ + public static final int REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The response is inaccurate.
+     * 
+ * + * INACCURATE_RESPONSE = 1; + */ + public static final int INACCURATE_RESPONSE_VALUE = 1; + + /** + * + * + *
+     * The response is not relevant.
+     * 
+ * + * NOT_RELEVANT = 2; + */ + public static final int NOT_RELEVANT_VALUE = 2; + + /** + * + * + *
+     * The response is incomprehensive.
+     * 
+ * + * INCOMPREHENSIVE = 3; + */ + public static final int INCOMPREHENSIVE_VALUE = 3; + + /** + * + * + *
+     * The response is offensive or unsafe.
+     * 
+ * + * OFFENSIVE_OR_UNSAFE = 4; + */ + public static final int OFFENSIVE_OR_UNSAFE_VALUE = 4; + + /** + * + * + *
+     * The response is not well-formatted.
+     * 
+ * + * FORMAT_AND_STYLES = 6; + */ + public static final int FORMAT_AND_STYLES_VALUE = 6; + + /** + * + * + *
+     * The response is not well-associated with the query.
+     * 
+ * + * BAD_CITATION = 7; + */ + public static final int BAD_CITATION_VALUE = 7; + + /** + * + * + *
+     * The expected canvas was not generated for the response.
+     * 
+ * + * CANVAS_NOT_GENERATED = 8; + */ + public static final int CANVAS_NOT_GENERATED_VALUE = 8; + + /** + * + * + *
+     * The generated canvas is of bad quality (e.g. inaccurate, incomplete,
+     * poorly formatted).
+     * 
+ * + * CANVAS_QUALITY_BAD = 9; + */ + public static final int CANVAS_QUALITY_BAD_VALUE = 9; + + /** + * + * + *
+     * Exporting the generated canvas failed (e.g. download or external
+     * export action did not complete successfully).
+     * 
+ * + * CANVAS_EXPORT_FAILED = 10; + */ + public static final int CANVAS_EXPORT_FAILED_VALUE = 10; + + 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 Reason 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 Reason forNumber(int value) { + switch (value) { + case 0: + return REASON_UNSPECIFIED; + case 1: + return INACCURATE_RESPONSE; + case 2: + return NOT_RELEVANT; + case 3: + return INCOMPREHENSIVE; + case 4: + return OFFENSIVE_OR_UNSAFE; + case 6: + return FORMAT_AND_STYLES; + case 7: + return BAD_CITATION; + case 8: + return CANVAS_NOT_GENERATED; + case 9: + return CANVAS_QUALITY_BAD; + case 10: + return CANVAS_EXPORT_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Reason findValueByNumber(int number) { + return Reason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Feedback.getDescriptor().getEnumTypes().get(1); + } + + private static final Reason[] VALUES = values(); + + public static Reason 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 Reason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Feedback.Reason) + } + + /** + * + * + *
+   * Source of the feedback as per integration.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.Feedback.FeedbackSource} + */ + public enum FeedbackSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified feedback source.
+     * 
+ * + * FEEDBACK_SOURCE_UNSPECIFIED = 0; + */ + FEEDBACK_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+     * Feedback source is Google Console.
+     * 
+ * + * GOOGLE_CONSOLE = 1; + */ + GOOGLE_CONSOLE(1), + /** + * + * + *
+     * Feedback source is Google Widget.
+     * 
+ * + * GOOGLE_WIDGET = 2; + */ + GOOGLE_WIDGET(2), + /** + * + * + *
+     * Feedback source is Google Webapp.
+     * 
+ * + * GOOGLE_WEBAPP = 3; + */ + GOOGLE_WEBAPP(3), + /** + * + * + *
+     * Feedback source is Google AgentSpace Mobile app.
+     * 
+ * + * GOOGLE_AGENTSPACE_MOBILE = 4; + */ + GOOGLE_AGENTSPACE_MOBILE(4), + /** + * + * + *
+     * Feedback source is Google AgentSpace Desktop app.
+     * 
+ * + * GOOGLE_AGENTSPACE_DESKTOP = 5; + */ + GOOGLE_AGENTSPACE_DESKTOP(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FeedbackSource"); + } + + /** + * + * + *
+     * Unspecified feedback source.
+     * 
+ * + * FEEDBACK_SOURCE_UNSPECIFIED = 0; + */ + public static final int FEEDBACK_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Feedback source is Google Console.
+     * 
+ * + * GOOGLE_CONSOLE = 1; + */ + public static final int GOOGLE_CONSOLE_VALUE = 1; + + /** + * + * + *
+     * Feedback source is Google Widget.
+     * 
+ * + * GOOGLE_WIDGET = 2; + */ + public static final int GOOGLE_WIDGET_VALUE = 2; + + /** + * + * + *
+     * Feedback source is Google Webapp.
+     * 
+ * + * GOOGLE_WEBAPP = 3; + */ + public static final int GOOGLE_WEBAPP_VALUE = 3; + + /** + * + * + *
+     * Feedback source is Google AgentSpace Mobile app.
+     * 
+ * + * GOOGLE_AGENTSPACE_MOBILE = 4; + */ + public static final int GOOGLE_AGENTSPACE_MOBILE_VALUE = 4; + + /** + * + * + *
+     * Feedback source is Google AgentSpace Desktop app.
+     * 
+ * + * GOOGLE_AGENTSPACE_DESKTOP = 5; + */ + public static final int GOOGLE_AGENTSPACE_DESKTOP_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FeedbackSource 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 FeedbackSource forNumber(int value) { + switch (value) { + case 0: + return FEEDBACK_SOURCE_UNSPECIFIED; + case 1: + return GOOGLE_CONSOLE; + case 2: + return GOOGLE_WIDGET; + case 3: + return GOOGLE_WEBAPP; + case 4: + return GOOGLE_AGENTSPACE_MOBILE; + case 5: + return GOOGLE_AGENTSPACE_DESKTOP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeedbackSource findValueByNumber(int number) { + return FeedbackSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Feedback.getDescriptor().getEnumTypes().get(2); + } + + private static final FeedbackSource[] VALUES = values(); + + public static FeedbackSource 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 FeedbackSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Feedback.FeedbackSource) + } + + public interface ConversationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Feedback.ConversationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The index of the user input within the conversation messages.
+     * 
+ * + * int32 question_index = 1; + * + * @return The questionIndex. + */ + int getQuestionIndex(); + + /** + * + * + *
+     * Name of the newly generated or continued session.
+     * 
+ * + * string session = 2; + * + * @return The session. + */ + java.lang.String getSession(); + + /** + * + * + *
+     * Name of the newly generated or continued session.
+     * 
+ * + * string session = 2; + * + * @return The bytes for session. + */ + com.google.protobuf.ByteString getSessionBytes(); + + /** + * + * + *
+     * Required. The user's search query.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + + /** + * + * + *
+     * Required. The user's search query.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + com.google.cloud.discoveryengine.v1.Query getQuery(); + + /** + * + * + *
+     * Required. The user's search query.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.QueryOrBuilder getQueryOrBuilder(); + + /** + * + * + *
+     * Optional. The token which could be used to fetch the assistant log.
+     * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistToken. + */ + java.lang.String getAssistToken(); + + /** + * + * + *
+     * Optional. The token which could be used to fetch the assistant log.
+     * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistToken. + */ + com.google.protobuf.ByteString getAssistTokenBytes(); + + /** + * + * + *
+     * Optional. The token which could be used to fetch the answer log.
+     * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerQueryToken. + */ + java.lang.String getAnswerQueryToken(); + + /** + * + * + *
+     * Optional. The token which could be used to fetch the answer log.
+     * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerQueryToken. + */ + com.google.protobuf.ByteString getAnswerQueryTokenBytes(); + + /** + * + * + *
+     * Optional. The full resource name of the Sobi task if the conversation was
+     * handled by a long-running agent task. Format (canonical, or the short
+     * alias the Task API also accepts):
+     * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+     * projects/{project}/locations/{location}/tasks/{task}
+     * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskName. + */ + java.lang.String getTaskName(); + + /** + * + * + *
+     * Optional. The full resource name of the Sobi task if the conversation was
+     * handled by a long-running agent task. Format (canonical, or the short
+     * alias the Task API also accepts):
+     * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+     * projects/{project}/locations/{location}/tasks/{task}
+     * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskName. + */ + com.google.protobuf.ByteString getTaskNameBytes(); + + /** + * + * + *
+     * Optional. The runtime trajectory id of the rated agent task turn, as set
+     * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+     * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trajectoryId. + */ + java.lang.String getTrajectoryId(); + + /** + * + * + *
+     * Optional. The runtime trajectory id of the rated agent task turn, as set
+     * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+     * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for trajectoryId. + */ + com.google.protobuf.ByteString getTrajectoryIdBytes(); + + /** + * + * + *
+     * Optional. The `TaskServerEvent.seq_num` of the step that opened the rated
+     * agent task reply.
+     * 
+ * + * int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stepSeqNum. + */ + long getStepSeqNum(); + } + + /** + * + * + *
+   * The conversation information such as the question index and session name.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Feedback.ConversationInfo} + */ + public static final class ConversationInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Feedback.ConversationInfo) + ConversationInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConversationInfo"); + } + + // Use ConversationInfo.newBuilder() to construct. + private ConversationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationInfo() { + session_ = ""; + assistToken_ = ""; + answerQueryToken_ = ""; + taskName_ = ""; + trajectoryId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.class, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder.class); + } + + private int bitField0_; + public static final int QUESTION_INDEX_FIELD_NUMBER = 1; + private int questionIndex_ = 0; + + /** + * + * + *
+     * The index of the user input within the conversation messages.
+     * 
+ * + * int32 question_index = 1; + * + * @return The questionIndex. + */ + @java.lang.Override + public int getQuestionIndex() { + return questionIndex_; + } + + public static final int SESSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + + /** + * + * + *
+     * Name of the newly generated or continued session.
+     * 
+ * + * string session = 2; + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + + /** + * + * + *
+     * Name of the newly generated or continued session.
+     * 
+ * + * string session = 2; + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.Query query_; + + /** + * + * + *
+     * Required. The user's search query.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The user's search query.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Query getQuery() { + return query_ == null + ? com.google.cloud.discoveryengine.v1.Query.getDefaultInstance() + : query_; + } + + /** + * + * + *
+     * Required. The user's search query.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.QueryOrBuilder getQueryOrBuilder() { + return query_ == null + ? com.google.cloud.discoveryengine.v1.Query.getDefaultInstance() + : query_; + } + + public static final int ASSIST_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistToken_ = ""; + + /** + * + * + *
+     * Optional. The token which could be used to fetch the assistant log.
+     * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistToken. + */ + @java.lang.Override + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The token which could be used to fetch the assistant log.
+     * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANSWER_QUERY_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerQueryToken_ = ""; + + /** + * + * + *
+     * Optional. The token which could be used to fetch the answer log.
+     * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerQueryToken. + */ + @java.lang.Override + public java.lang.String getAnswerQueryToken() { + java.lang.Object ref = answerQueryToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerQueryToken_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The token which could be used to fetch the answer log.
+     * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerQueryToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerQueryTokenBytes() { + java.lang.Object ref = answerQueryToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerQueryToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskName_ = ""; + + /** + * + * + *
+     * Optional. The full resource name of the Sobi task if the conversation was
+     * handled by a long-running agent task. Format (canonical, or the short
+     * alias the Task API also accepts):
+     * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+     * projects/{project}/locations/{location}/tasks/{task}
+     * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskName. + */ + @java.lang.Override + public java.lang.String getTaskName() { + java.lang.Object ref = taskName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskName_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The full resource name of the Sobi task if the conversation was
+     * handled by a long-running agent task. Format (canonical, or the short
+     * alias the Task API also accepts):
+     * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+     * projects/{project}/locations/{location}/tasks/{task}
+     * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTaskNameBytes() { + java.lang.Object ref = taskName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRAJECTORY_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object trajectoryId_ = ""; + + /** + * + * + *
+     * Optional. The runtime trajectory id of the rated agent task turn, as set
+     * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+     * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trajectoryId. + */ + @java.lang.Override + public java.lang.String getTrajectoryId() { + java.lang.Object ref = trajectoryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trajectoryId_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The runtime trajectory id of the rated agent task turn, as set
+     * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+     * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for trajectoryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrajectoryIdBytes() { + java.lang.Object ref = trajectoryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trajectoryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STEP_SEQ_NUM_FIELD_NUMBER = 8; + private long stepSeqNum_ = 0L; + + /** + * + * + *
+     * Optional. The `TaskServerEvent.seq_num` of the step that opened the rated
+     * agent task reply.
+     * 
+ * + * int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stepSeqNum. + */ + @java.lang.Override + public long getStepSeqNum() { + return stepSeqNum_; + } + + 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 (questionIndex_ != 0) { + output.writeInt32(1, questionIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, session_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, assistToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerQueryToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, answerQueryToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, taskName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trajectoryId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, trajectoryId_); + } + if (stepSeqNum_ != 0L) { + output.writeInt64(8, stepSeqNum_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (questionIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, questionIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, session_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, assistToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerQueryToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, answerQueryToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, taskName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trajectoryId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, trajectoryId_); + } + if (stepSeqNum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, stepSeqNum_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo other = + (com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo) obj; + + if (getQuestionIndex() != other.getQuestionIndex()) return false; + if (!getSession().equals(other.getSession())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery().equals(other.getQuery())) return false; + } + if (!getAssistToken().equals(other.getAssistToken())) return false; + if (!getAnswerQueryToken().equals(other.getAnswerQueryToken())) return false; + if (!getTaskName().equals(other.getTaskName())) return false; + if (!getTrajectoryId().equals(other.getTrajectoryId())) return false; + if (getStepSeqNum() != other.getStepSeqNum()) 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) + QUESTION_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getQuestionIndex(); + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (37 * hash) + ASSIST_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAssistToken().hashCode(); + hash = (37 * hash) + ANSWER_QUERY_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAnswerQueryToken().hashCode(); + hash = (37 * hash) + TASK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTaskName().hashCode(); + hash = (37 * hash) + TRAJECTORY_ID_FIELD_NUMBER; + hash = (53 * hash) + getTrajectoryId().hashCode(); + hash = (37 * hash) + STEP_SEQ_NUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStepSeqNum()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The conversation information such as the question index and session name.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Feedback.ConversationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Feedback.ConversationInfo) + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.class, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + questionIndex_ = 0; + session_ = ""; + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + assistToken_ = ""; + answerQueryToken_ = ""; + taskName_ = ""; + trajectoryId_ = ""; + stepSeqNum_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo build() { + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo buildPartial() { + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo result = + new com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.questionIndex_ = questionIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.session_ = session_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.assistToken_ = assistToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.answerQueryToken_ = answerQueryToken_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.taskName_ = taskName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.trajectoryId_ = trajectoryId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.stepSeqNum_ = stepSeqNum_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo other) { + if (other + == com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.getDefaultInstance()) + return this; + if (other.getQuestionIndex() != 0) { + setQuestionIndex(other.getQuestionIndex()); + } + if (!other.getSession().isEmpty()) { + session_ = other.session_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + if (!other.getAssistToken().isEmpty()) { + assistToken_ = other.assistToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAnswerQueryToken().isEmpty()) { + answerQueryToken_ = other.answerQueryToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getTaskName().isEmpty()) { + taskName_ = other.taskName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTrajectoryId().isEmpty()) { + trajectoryId_ = other.trajectoryId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getStepSeqNum() != 0L) { + setStepSeqNum(other.getStepSeqNum()); + } + 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: + { + questionIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + session_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + assistToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + answerQueryToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + taskName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + trajectoryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + stepSeqNum_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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 questionIndex_; + + /** + * + * + *
+       * The index of the user input within the conversation messages.
+       * 
+ * + * int32 question_index = 1; + * + * @return The questionIndex. + */ + @java.lang.Override + public int getQuestionIndex() { + return questionIndex_; + } + + /** + * + * + *
+       * The index of the user input within the conversation messages.
+       * 
+ * + * int32 question_index = 1; + * + * @param value The questionIndex to set. + * @return This builder for chaining. + */ + public Builder setQuestionIndex(int value) { + + questionIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The index of the user input within the conversation messages.
+       * 
+ * + * int32 question_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuestionIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + questionIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object session_ = ""; + + /** + * + * + *
+       * Name of the newly generated or continued session.
+       * 
+ * + * string session = 2; + * + * @return The session. + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Name of the newly generated or continued session.
+       * 
+ * + * string session = 2; + * + * @return The bytes for session. + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Name of the newly generated or continued session.
+       * 
+ * + * string session = 2; + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Name of the newly generated or continued session.
+       * 
+ * + * string session = 2; + * + * @return This builder for chaining. + */ + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Name of the newly generated or continued session.
+       * 
+ * + * string session = 2; + * + * @param value The bytes for session to set. + * @return This builder for chaining. + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Query query_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Query, + com.google.cloud.discoveryengine.v1.Query.Builder, + com.google.cloud.discoveryengine.v1.QueryOrBuilder> + queryBuilder_; + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + public com.google.cloud.discoveryengine.v1.Query getQuery() { + if (queryBuilder_ == null) { + return query_ == null + ? com.google.cloud.discoveryengine.v1.Query.getDefaultInstance() + : query_; + } else { + return queryBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuery(com.google.cloud.discoveryengine.v1.Query value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + } else { + queryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuery(com.google.cloud.discoveryengine.v1.Query.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQuery(com.google.cloud.discoveryengine.v1.Query value) { + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && query_ != null + && query_ != com.google.cloud.discoveryengine.v1.Query.getDefaultInstance()) { + getQueryBuilder().mergeFrom(value); + } else { + query_ = value; + } + } else { + queryBuilder_.mergeFrom(value); + } + if (query_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuery() { + bitField0_ = (bitField0_ & ~0x00000004); + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.Query.Builder getQueryBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.QueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null + ? com.google.cloud.discoveryengine.v1.Query.getDefaultInstance() + : query_; + } + } + + /** + * + * + *
+       * Required. The user's search query.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Query, + com.google.cloud.discoveryengine.v1.Query.Builder, + com.google.cloud.discoveryengine.v1.QueryOrBuilder> + internalGetQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Query, + com.google.cloud.discoveryengine.v1.Query.Builder, + com.google.cloud.discoveryengine.v1.QueryOrBuilder>( + getQuery(), getParentForChildren(), isClean()); + query_ = null; + } + return queryBuilder_; + } + + private java.lang.Object assistToken_ = ""; + + /** + * + * + *
+       * Optional. The token which could be used to fetch the assistant log.
+       * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistToken. + */ + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the assistant log.
+       * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistToken. + */ + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the assistant log.
+       * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the assistant log.
+       * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssistToken() { + assistToken_ = getDefaultInstance().getAssistToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the assistant log.
+       * 
+ * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object answerQueryToken_ = ""; + + /** + * + * + *
+       * Optional. The token which could be used to fetch the answer log.
+       * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerQueryToken. + */ + public java.lang.String getAnswerQueryToken() { + java.lang.Object ref = answerQueryToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerQueryToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the answer log.
+       * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerQueryToken. + */ + public com.google.protobuf.ByteString getAnswerQueryTokenBytes() { + java.lang.Object ref = answerQueryToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerQueryToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the answer log.
+       * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The answerQueryToken to set. + * @return This builder for chaining. + */ + public Builder setAnswerQueryToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerQueryToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the answer log.
+       * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAnswerQueryToken() { + answerQueryToken_ = getDefaultInstance().getAnswerQueryToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The token which could be used to fetch the answer log.
+       * 
+ * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for answerQueryToken to set. + * @return This builder for chaining. + */ + public Builder setAnswerQueryTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerQueryToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object taskName_ = ""; + + /** + * + * + *
+       * Optional. The full resource name of the Sobi task if the conversation was
+       * handled by a long-running agent task. Format (canonical, or the short
+       * alias the Task API also accepts):
+       * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+       * projects/{project}/locations/{location}/tasks/{task}
+       * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskName. + */ + public java.lang.String getTaskName() { + java.lang.Object ref = taskName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The full resource name of the Sobi task if the conversation was
+       * handled by a long-running agent task. Format (canonical, or the short
+       * alias the Task API also accepts):
+       * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+       * projects/{project}/locations/{location}/tasks/{task}
+       * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskName. + */ + public com.google.protobuf.ByteString getTaskNameBytes() { + java.lang.Object ref = taskName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The full resource name of the Sobi task if the conversation was
+       * handled by a long-running agent task. Format (canonical, or the short
+       * alias the Task API also accepts):
+       * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+       * projects/{project}/locations/{location}/tasks/{task}
+       * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The taskName to set. + * @return This builder for chaining. + */ + public Builder setTaskName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + taskName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The full resource name of the Sobi task if the conversation was
+       * handled by a long-running agent task. Format (canonical, or the short
+       * alias the Task API also accepts):
+       * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+       * projects/{project}/locations/{location}/tasks/{task}
+       * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTaskName() { + taskName_ = getDefaultInstance().getTaskName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The full resource name of the Sobi task if the conversation was
+       * handled by a long-running agent task. Format (canonical, or the short
+       * alias the Task API also accepts):
+       * projects/{project}/locations/{location}/agents/{agent}/tasks/{task}
+       * projects/{project}/locations/{location}/tasks/{task}
+       * 
+ * + * string task_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for taskName to set. + * @return This builder for chaining. + */ + public Builder setTaskNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + taskName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object trajectoryId_ = ""; + + /** + * + * + *
+       * Optional. The runtime trajectory id of the rated agent task turn, as set
+       * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+       * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The trajectoryId. + */ + public java.lang.String getTrajectoryId() { + java.lang.Object ref = trajectoryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trajectoryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The runtime trajectory id of the rated agent task turn, as set
+       * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+       * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for trajectoryId. + */ + public com.google.protobuf.ByteString getTrajectoryIdBytes() { + java.lang.Object ref = trajectoryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trajectoryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The runtime trajectory id of the rated agent task turn, as set
+       * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+       * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The trajectoryId to set. + * @return This builder for chaining. + */ + public Builder setTrajectoryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trajectoryId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The runtime trajectory id of the rated agent task turn, as set
+       * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+       * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTrajectoryId() { + trajectoryId_ = getDefaultInstance().getTrajectoryId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The runtime trajectory id of the rated agent task turn, as set
+       * on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn.
+       * 
+ * + * string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for trajectoryId to set. + * @return This builder for chaining. + */ + public Builder setTrajectoryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trajectoryId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private long stepSeqNum_; + + /** + * + * + *
+       * Optional. The `TaskServerEvent.seq_num` of the step that opened the rated
+       * agent task reply.
+       * 
+ * + * int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stepSeqNum. + */ + @java.lang.Override + public long getStepSeqNum() { + return stepSeqNum_; + } + + /** + * + * + *
+       * Optional. The `TaskServerEvent.seq_num` of the step that opened the rated
+       * agent task reply.
+       * 
+ * + * int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The stepSeqNum to set. + * @return This builder for chaining. + */ + public Builder setStepSeqNum(long value) { + + stepSeqNum_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The `TaskServerEvent.seq_num` of the step that opened the rated
+       * agent task reply.
+       * 
+ * + * int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStepSeqNum() { + bitField0_ = (bitField0_ & ~0x00000080); + stepSeqNum_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Feedback.ConversationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Feedback.ConversationInfo) + private static final com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo(); + } + + public static com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FEEDBACK_TYPE_FIELD_NUMBER = 1; + private int feedbackType_ = 0; + + /** + * + * + *
+   * Required. Indicate whether the user gives a positive or negative feedback.
+   * If the user gives a negative feedback, there might be more feedback
+   * details.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for feedbackType. + */ + @java.lang.Override + public int getFeedbackTypeValue() { + return feedbackType_; + } + + /** + * + * + *
+   * Required. Indicate whether the user gives a positive or negative feedback.
+   * If the user gives a negative feedback, there might be more feedback
+   * details.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedbackType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.FeedbackType getFeedbackType() { + com.google.cloud.discoveryengine.v1.Feedback.FeedbackType result = + com.google.cloud.discoveryengine.v1.Feedback.FeedbackType.forNumber(feedbackType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Feedback.FeedbackType.UNRECOGNIZED + : result; + } + + public static final int REASONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList reasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.Feedback.Reason> + reasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.Feedback.Reason>() { + public com.google.cloud.discoveryengine.v1.Feedback.Reason convert(int from) { + com.google.cloud.discoveryengine.v1.Feedback.Reason result = + com.google.cloud.discoveryengine.v1.Feedback.Reason.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.Feedback.Reason.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reasons. + */ + @java.lang.Override + public java.util.List getReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.Feedback.Reason>(reasons_, reasons_converter_); + } + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reasons. + */ + @java.lang.Override + public int getReasonsCount() { + return reasons_.size(); + } + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.Reason getReasons(int index) { + return reasons_converter_.convert(reasons_.getInt(index)); + } + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + @java.lang.Override + public java.util.List getReasonsValueList() { + return reasons_; + } + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + @java.lang.Override + public int getReasonsValue(int index) { + return reasons_.getInt(index); + } + + private int reasonsMemoizedSerializedSize; + + public static final int COMMENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; + + /** + * + * + *
+   * Optional. The additional user comment of the feedback if user gives a thumb
+   * down.
+   * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + @java.lang.Override + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The additional user comment of the feedback if user gives a thumb
+   * down.
+   * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSATION_INFO_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversationInfo_; + + /** + * + * + *
+   * The related conversation information when user gives feedback.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + * @return Whether the conversationInfo field is set. + */ + @java.lang.Override + public boolean hasConversationInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The related conversation information when user gives feedback.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + * @return The conversationInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo getConversationInfo() { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } + + /** + * + * + *
+   * The related conversation information when user gives feedback.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder + getConversationInfoOrBuilder() { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } + + public static final int LLM_MODEL_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object llmModelVersion_ = ""; + + /** + * + * + *
+   * The version of the LLM model that was used to generate the response.
+   * 
+ * + * string llm_model_version = 5; + * + * @return The llmModelVersion. + */ + @java.lang.Override + public java.lang.String getLlmModelVersion() { + java.lang.Object ref = llmModelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + llmModelVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * The version of the LLM model that was used to generate the response.
+   * 
+ * + * string llm_model_version = 5; + * + * @return The bytes for llmModelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLlmModelVersionBytes() { + java.lang.Object ref = llmModelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + llmModelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEEDBACK_SOURCE_FIELD_NUMBER = 6; + private int feedbackSource_ = 0; + + /** + * + * + *
+   * Optional. The UI component the user feedback comes from, which could be
+   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for feedbackSource. + */ + @java.lang.Override + public int getFeedbackSourceValue() { + return feedbackSource_; + } + + /** + * + * + *
+   * Optional. The UI component the user feedback comes from, which could be
+   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedbackSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource getFeedbackSource() { + com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource result = + com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource.forNumber(feedbackSource_); + return result == null + ? com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource.UNRECOGNIZED + : result; + } + + public static final int COMPONENT_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object componentVersion_ = ""; + + /** + * + * + *
+   * Optional. The version of the component that this report is being sent from.
+   * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The componentVersion. + */ + @java.lang.Override + public java.lang.String getComponentVersion() { + java.lang.Object ref = componentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The version of the component that this report is being sent from.
+   * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for componentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentVersionBytes() { + java.lang.Object ref = componentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TERMS_ACCEPTED_FIELD_NUMBER = 8; + private boolean dataTermsAccepted_ = false; + + /** + * + * + *
+   * Optional. Whether the customer accepted data use terms.
+   * 
+ * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataTermsAccepted. + */ + @java.lang.Override + public boolean getDataTermsAccepted() { + return dataTermsAccepted_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (feedbackType_ + != com.google.cloud.discoveryengine.v1.Feedback.FeedbackType.FEEDBACK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, feedbackType_); + } + if (getReasonsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(reasonsMemoizedSerializedSize); + } + for (int i = 0; i < reasons_.size(); i++) { + output.writeEnumNoTag(reasons_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(comment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, comment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getConversationInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(llmModelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, llmModelVersion_); + } + if (feedbackSource_ + != com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource.FEEDBACK_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, feedbackSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, componentVersion_); + } + if (dataTermsAccepted_ != false) { + output.writeBool(8, dataTermsAccepted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (feedbackType_ + != com.google.cloud.discoveryengine.v1.Feedback.FeedbackType.FEEDBACK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, feedbackType_); + } + { + int dataSize = 0; + for (int i = 0; i < reasons_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.getInt(i)); + } + size += dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(comment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, comment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConversationInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(llmModelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, llmModelVersion_); + } + if (feedbackSource_ + != com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource.FEEDBACK_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, feedbackSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, componentVersion_); + } + if (dataTermsAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, dataTermsAccepted_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Feedback)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Feedback other = + (com.google.cloud.discoveryengine.v1.Feedback) obj; + + if (feedbackType_ != other.feedbackType_) return false; + if (!reasons_.equals(other.reasons_)) return false; + if (!getComment().equals(other.getComment())) return false; + if (hasConversationInfo() != other.hasConversationInfo()) return false; + if (hasConversationInfo()) { + if (!getConversationInfo().equals(other.getConversationInfo())) return false; + } + if (!getLlmModelVersion().equals(other.getLlmModelVersion())) return false; + if (feedbackSource_ != other.feedbackSource_) return false; + if (!getComponentVersion().equals(other.getComponentVersion())) return false; + if (getDataTermsAccepted() != other.getDataTermsAccepted()) 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) + FEEDBACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + feedbackType_; + if (getReasonsCount() > 0) { + hash = (37 * hash) + REASONS_FIELD_NUMBER; + hash = (53 * hash) + reasons_.hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + if (hasConversationInfo()) { + hash = (37 * hash) + CONVERSATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getConversationInfo().hashCode(); + } + hash = (37 * hash) + LLM_MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getLlmModelVersion().hashCode(); + hash = (37 * hash) + FEEDBACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + feedbackSource_; + hash = (37 * hash) + COMPONENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getComponentVersion().hashCode(); + hash = (37 * hash) + DATA_TERMS_ACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataTermsAccepted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Feedback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Feedback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Information about the user feedback. This information will be used for
+   * logging and metrics purpose.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Feedback} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Feedback) + com.google.cloud.discoveryengine.v1.FeedbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Feedback.class, + com.google.cloud.discoveryengine.v1.Feedback.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Feedback.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConversationInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + feedbackType_ = 0; + reasons_ = emptyIntList(); + comment_ = ""; + conversationInfo_ = null; + if (conversationInfoBuilder_ != null) { + conversationInfoBuilder_.dispose(); + conversationInfoBuilder_ = null; + } + llmModelVersion_ = ""; + feedbackSource_ = 0; + componentVersion_ = ""; + dataTermsAccepted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback build() { + com.google.cloud.discoveryengine.v1.Feedback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback buildPartial() { + com.google.cloud.discoveryengine.v1.Feedback result = + new com.google.cloud.discoveryengine.v1.Feedback(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Feedback result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.feedbackType_ = feedbackType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + reasons_.makeImmutable(); + result.reasons_ = reasons_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = comment_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conversationInfo_ = + conversationInfoBuilder_ == null ? conversationInfo_ : conversationInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.llmModelVersion_ = llmModelVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.feedbackSource_ = feedbackSource_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.componentVersion_ = componentVersion_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dataTermsAccepted_ = dataTermsAccepted_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Feedback) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Feedback) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Feedback other) { + if (other == com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance()) return this; + if (other.feedbackType_ != 0) { + setFeedbackTypeValue(other.getFeedbackTypeValue()); + } + if (!other.reasons_.isEmpty()) { + if (reasons_.isEmpty()) { + reasons_ = other.reasons_; + reasons_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureReasonsIsMutable(); + reasons_.addAll(other.reasons_); + } + onChanged(); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasConversationInfo()) { + mergeConversationInfo(other.getConversationInfo()); + } + if (!other.getLlmModelVersion().isEmpty()) { + llmModelVersion_ = other.llmModelVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.feedbackSource_ != 0) { + setFeedbackSourceValue(other.getFeedbackSourceValue()); + } + if (!other.getComponentVersion().isEmpty()) { + componentVersion_ = other.componentVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getDataTermsAccepted() != false) { + setDataTermsAccepted(other.getDataTermsAccepted()); + } + 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: + { + feedbackType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.addInt(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + reasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 18 + case 26: + { + comment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetConversationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + llmModelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + feedbackSource_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + componentVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + dataTermsAccepted_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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 feedbackType_ = 0; + + /** + * + * + *
+     * Required. Indicate whether the user gives a positive or negative feedback.
+     * If the user gives a negative feedback, there might be more feedback
+     * details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for feedbackType. + */ + @java.lang.Override + public int getFeedbackTypeValue() { + return feedbackType_; + } + + /** + * + * + *
+     * Required. Indicate whether the user gives a positive or negative feedback.
+     * If the user gives a negative feedback, there might be more feedback
+     * details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for feedbackType to set. + * @return This builder for chaining. + */ + public Builder setFeedbackTypeValue(int value) { + feedbackType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Indicate whether the user gives a positive or negative feedback.
+     * If the user gives a negative feedback, there might be more feedback
+     * details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedbackType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.FeedbackType getFeedbackType() { + com.google.cloud.discoveryengine.v1.Feedback.FeedbackType result = + com.google.cloud.discoveryengine.v1.Feedback.FeedbackType.forNumber(feedbackType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Feedback.FeedbackType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Indicate whether the user gives a positive or negative feedback.
+     * If the user gives a negative feedback, there might be more feedback
+     * details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The feedbackType to set. + * @return This builder for chaining. + */ + public Builder setFeedbackType( + com.google.cloud.discoveryengine.v1.Feedback.FeedbackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + feedbackType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Indicate whether the user gives a positive or negative feedback.
+     * If the user gives a negative feedback, there might be more feedback
+     * details.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFeedbackType() { + bitField0_ = (bitField0_ & ~0x00000001); + feedbackType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList reasons_ = emptyIntList(); + + private void ensureReasonsIsMutable() { + if (!reasons_.isModifiable()) { + reasons_ = makeMutableCopy(reasons_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reasons. + */ + public java.util.List getReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.Feedback.Reason>(reasons_, reasons_converter_); + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reasons. + */ + public int getReasonsCount() { + return reasons_.size(); + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + public com.google.cloud.discoveryengine.v1.Feedback.Reason getReasons(int index) { + return reasons_converter_.convert(reasons_.getInt(index)); + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The reasons to set. + * @return This builder for chaining. + */ + public Builder setReasons( + int index, com.google.cloud.discoveryengine.v1.Feedback.Reason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The reasons to add. + * @return This builder for chaining. + */ + public Builder addReasons(com.google.cloud.discoveryengine.v1.Feedback.Reason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The reasons to add. + * @return This builder for chaining. + */ + public Builder addAllReasons( + java.lang.Iterable values) { + ensureReasonsIsMutable(); + for (com.google.cloud.discoveryengine.v1.Feedback.Reason value : values) { + reasons_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReasons() { + reasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + public java.util.List getReasonsValueList() { + reasons_.makeImmutable(); + return reasons_; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + public int getReasonsValue(int index) { + return reasons_.getInt(index); + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for reasons to set. + * @return This builder for chaining. + */ + public Builder setReasonsValue(int index, int value) { + ensureReasonsIsMutable(); + reasons_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for reasons to add. + * @return This builder for chaining. + */ + public Builder addReasonsValue(int value) { + ensureReasonsIsMutable(); + reasons_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The reason if user gives a thumb down.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for reasons to add. + * @return This builder for chaining. + */ + public Builder addAllReasonsValue(java.lang.Iterable values) { + ensureReasonsIsMutable(); + for (int value : values) { + reasons_.addInt(value); + } + onChanged(); + return this; + } + + private java.lang.Object comment_ = ""; + + /** + * + * + *
+     * Optional. The additional user comment of the feedback if user gives a thumb
+     * down.
+     * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The additional user comment of the feedback if user gives a thumb
+     * down.
+     * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The additional user comment of the feedback if user gives a thumb
+     * down.
+     * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The additional user comment of the feedback if user gives a thumb
+     * down.
+     * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComment() { + comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The additional user comment of the feedback if user gives a thumb
+     * down.
+     * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversationInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder> + conversationInfoBuilder_; + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return Whether the conversationInfo field is set. + */ + public boolean hasConversationInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return The conversationInfo. + */ + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo getConversationInfo() { + if (conversationInfoBuilder_ == null) { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } else { + return conversationInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder setConversationInfo( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo value) { + if (conversationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationInfo_ = value; + } else { + conversationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder setConversationInfo( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder builderForValue) { + if (conversationInfoBuilder_ == null) { + conversationInfo_ = builderForValue.build(); + } else { + conversationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder mergeConversationInfo( + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo value) { + if (conversationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && conversationInfo_ != null + && conversationInfo_ + != com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo + .getDefaultInstance()) { + getConversationInfoBuilder().mergeFrom(value); + } else { + conversationInfo_ = value; + } + } else { + conversationInfoBuilder_.mergeFrom(value); + } + if (conversationInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder clearConversationInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + conversationInfo_ = null; + if (conversationInfoBuilder_ != null) { + conversationInfoBuilder_.dispose(); + conversationInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder + getConversationInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetConversationInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder + getConversationInfoOrBuilder() { + if (conversationInfoBuilder_ != null) { + return conversationInfoBuilder_.getMessageOrBuilder(); + } else { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } + } + + /** + * + * + *
+     * The related conversation information when user gives feedback.
+     * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder> + internalGetConversationInfoFieldBuilder() { + if (conversationInfoBuilder_ == null) { + conversationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo.Builder, + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder>( + getConversationInfo(), getParentForChildren(), isClean()); + conversationInfo_ = null; + } + return conversationInfoBuilder_; + } + + private java.lang.Object llmModelVersion_ = ""; + + /** + * + * + *
+     * The version of the LLM model that was used to generate the response.
+     * 
+ * + * string llm_model_version = 5; + * + * @return The llmModelVersion. + */ + public java.lang.String getLlmModelVersion() { + java.lang.Object ref = llmModelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + llmModelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The version of the LLM model that was used to generate the response.
+     * 
+ * + * string llm_model_version = 5; + * + * @return The bytes for llmModelVersion. + */ + public com.google.protobuf.ByteString getLlmModelVersionBytes() { + java.lang.Object ref = llmModelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + llmModelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The version of the LLM model that was used to generate the response.
+     * 
+ * + * string llm_model_version = 5; + * + * @param value The llmModelVersion to set. + * @return This builder for chaining. + */ + public Builder setLlmModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + llmModelVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The version of the LLM model that was used to generate the response.
+     * 
+ * + * string llm_model_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearLlmModelVersion() { + llmModelVersion_ = getDefaultInstance().getLlmModelVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The version of the LLM model that was used to generate the response.
+     * 
+ * + * string llm_model_version = 5; + * + * @param value The bytes for llmModelVersion to set. + * @return This builder for chaining. + */ + public Builder setLlmModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + llmModelVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int feedbackSource_ = 0; + + /** + * + * + *
+     * Optional. The UI component the user feedback comes from, which could be
+     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for feedbackSource. + */ + @java.lang.Override + public int getFeedbackSourceValue() { + return feedbackSource_; + } + + /** + * + * + *
+     * Optional. The UI component the user feedback comes from, which could be
+     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for feedbackSource to set. + * @return This builder for chaining. + */ + public Builder setFeedbackSourceValue(int value) { + feedbackSource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The UI component the user feedback comes from, which could be
+     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedbackSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource getFeedbackSource() { + com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource result = + com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource.forNumber(feedbackSource_); + return result == null + ? com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The UI component the user feedback comes from, which could be
+     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The feedbackSource to set. + * @return This builder for chaining. + */ + public Builder setFeedbackSource( + com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + feedbackSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The UI component the user feedback comes from, which could be
+     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFeedbackSource() { + bitField0_ = (bitField0_ & ~0x00000020); + feedbackSource_ = 0; + onChanged(); + return this; + } + + private java.lang.Object componentVersion_ = ""; + + /** + * + * + *
+     * Optional. The version of the component that this report is being sent from.
+     * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The componentVersion. + */ + public java.lang.String getComponentVersion() { + java.lang.Object ref = componentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The version of the component that this report is being sent from.
+     * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for componentVersion. + */ + public com.google.protobuf.ByteString getComponentVersionBytes() { + java.lang.Object ref = componentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The version of the component that this report is being sent from.
+     * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The componentVersion to set. + * @return This builder for chaining. + */ + public Builder setComponentVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + componentVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The version of the component that this report is being sent from.
+     * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComponentVersion() { + componentVersion_ = getDefaultInstance().getComponentVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The version of the component that this report is being sent from.
+     * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for componentVersion to set. + * @return This builder for chaining. + */ + public Builder setComponentVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + componentVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean dataTermsAccepted_; + + /** + * + * + *
+     * Optional. Whether the customer accepted data use terms.
+     * 
+ * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataTermsAccepted. + */ + @java.lang.Override + public boolean getDataTermsAccepted() { + return dataTermsAccepted_; + } + + /** + * + * + *
+     * Optional. Whether the customer accepted data use terms.
+     * 
+ * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataTermsAccepted to set. + * @return This builder for chaining. + */ + public Builder setDataTermsAccepted(boolean value) { + + dataTermsAccepted_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the customer accepted data use terms.
+     * 
+ * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataTermsAccepted() { + bitField0_ = (bitField0_ & ~0x00000080); + dataTermsAccepted_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Feedback) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Feedback) + private static final com.google.cloud.discoveryengine.v1.Feedback DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Feedback(); + } + + public static com.google.cloud.discoveryengine.v1.Feedback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feedback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackOrBuilder.java new file mode 100644 index 000000000000..1d7eae971c01 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackOrBuilder.java @@ -0,0 +1,302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/feedback.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface FeedbackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Feedback) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Indicate whether the user gives a positive or negative feedback.
+   * If the user gives a negative feedback, there might be more feedback
+   * details.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for feedbackType. + */ + int getFeedbackTypeValue(); + + /** + * + * + *
+   * Required. Indicate whether the user gives a positive or negative feedback.
+   * If the user gives a negative feedback, there might be more feedback
+   * details.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedbackType. + */ + com.google.cloud.discoveryengine.v1.Feedback.FeedbackType getFeedbackType(); + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reasons. + */ + java.util.List getReasonsList(); + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reasons. + */ + int getReasonsCount(); + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + com.google.cloud.discoveryengine.v1.Feedback.Reason getReasons(int index); + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + java.util.List getReasonsValueList(); + + /** + * + * + *
+   * Optional. The reason if user gives a thumb down.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + int getReasonsValue(int index); + + /** + * + * + *
+   * Optional. The additional user comment of the feedback if user gives a thumb
+   * down.
+   * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + java.lang.String getComment(); + + /** + * + * + *
+   * Optional. The additional user comment of the feedback if user gives a thumb
+   * down.
+   * 
+ * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + com.google.protobuf.ByteString getCommentBytes(); + + /** + * + * + *
+   * The related conversation information when user gives feedback.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + * @return Whether the conversationInfo field is set. + */ + boolean hasConversationInfo(); + + /** + * + * + *
+   * The related conversation information when user gives feedback.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + * + * @return The conversationInfo. + */ + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfo getConversationInfo(); + + /** + * + * + *
+   * The related conversation information when user gives feedback.
+   * 
+ * + * .google.cloud.discoveryengine.v1.Feedback.ConversationInfo conversation_info = 4; + */ + com.google.cloud.discoveryengine.v1.Feedback.ConversationInfoOrBuilder + getConversationInfoOrBuilder(); + + /** + * + * + *
+   * The version of the LLM model that was used to generate the response.
+   * 
+ * + * string llm_model_version = 5; + * + * @return The llmModelVersion. + */ + java.lang.String getLlmModelVersion(); + + /** + * + * + *
+   * The version of the LLM model that was used to generate the response.
+   * 
+ * + * string llm_model_version = 5; + * + * @return The bytes for llmModelVersion. + */ + com.google.protobuf.ByteString getLlmModelVersionBytes(); + + /** + * + * + *
+   * Optional. The UI component the user feedback comes from, which could be
+   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for feedbackSource. + */ + int getFeedbackSourceValue(); + + /** + * + * + *
+   * Optional. The UI component the user feedback comes from, which could be
+   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedbackSource. + */ + com.google.cloud.discoveryengine.v1.Feedback.FeedbackSource getFeedbackSource(); + + /** + * + * + *
+   * Optional. The version of the component that this report is being sent from.
+   * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The componentVersion. + */ + java.lang.String getComponentVersion(); + + /** + * + * + *
+   * Optional. The version of the component that this report is being sent from.
+   * 
+ * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for componentVersion. + */ + com.google.protobuf.ByteString getComponentVersionBytes(); + + /** + * + * + *
+   * Optional. Whether the customer accepted data use terms.
+   * 
+ * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataTermsAccepted. + */ + boolean getDataTermsAccepted(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackProto.java new file mode 100644 index 000000000000..78e3614cc304 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/FeedbackProto.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/feedback.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class FeedbackProto extends com.google.protobuf.GeneratedFile { + private FeedbackProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FeedbackProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Feedback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ".google/cloud/discoveryengine/v1/feedback.proto\022\037google.cloud.discoveryengine.v" + + "1\032\037google/api/field_behavior.proto\032-goog" + + "le/cloud/discoveryengine/v1/session.proto\"\273\t\n" + + "\010Feedback\022S\n\r" + + "feedback_type\030\001 \001(\01626." + + "google.cloud.discoveryengine.v1.Feedback.FeedbackTypeB\004\342A\001\002\022G\n" + + "\007reasons\030\002 \003(\01620.g" + + "oogle.cloud.discoveryengine.v1.Feedback.ReasonB\004\342A\001\001\022\025\n" + + "\007comment\030\003 \001(\tB\004\342A\001\001\022U\n" + + "\021conversation_info\030\004 \001(\0132:.google.cloud.di" + + "scoveryengine.v1.Feedback.ConversationInfo\022\031\n" + + "\021llm_model_version\030\005 \001(\t\022W\n" + + "\017feedback_source\030\006 \001(\01628.google.cloud.discoverye" + + "ngine.v1.Feedback.FeedbackSourceB\004\342A\001\001\022\037\n" + + "\021component_version\030\007 \001(\tB\004\342A\001\001\022!\n" + + "\023data_terms_accepted\030\010 \001(\010B\004\342A\001\001\032\210\002\n" + + "\020ConversationInfo\022\026\n" + + "\016question_index\030\001 \001(\005\022\017\n" + + "\007session\030\002 \001(\t\022;\n" + + "\005query\030\003" + + " \001(\0132&.google.cloud.discoveryengine.v1.QueryB\004\342A\001\002\022\032\n" + + "\014assist_token\030\004 \001(\tB\004\342A\001\001\022 \n" + + "\022answer_query_token\030\005 \001(\tB\004\342A\001\001\022\027\n" + + "\ttask_name\030\006 \001(\tB\004\342A\001\001\022\033\n\r" + + "trajectory_id\030\007 \001(\tB\004\342A\001\001\022\032\n" + + "\014step_seq_num\030\010 \001(\003B\004\342A\001\001\"D\n" + + "\014FeedbackType\022\035\n" + + "\031FEEDBACK_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004LIKE\020\001\022\013\n" + + "\007DISLIKE\020\002\"\356\001\n" + + "\006Reason\022\026\n" + + "\022REASON_UNSPECIFIED\020\000\022\027\n" + + "\023INACCURATE_RESPONSE\020\001\022\020\n" + + "\014NOT_RELEVANT\020\002\022\023\n" + + "\017INCOMPREHENSIVE\020\003\022\027\n" + + "\023OFFENSIVE_OR_UNSAFE\020\004\022\025\n" + + "\021FORMAT_AND_STYLES\020\006\022\020\n" + + "\014BAD_CITATION\020\007\022\030\n" + + "\024CANVAS_NOT_GENERATED\020\010\022\026\n" + + "\022CANVAS_QUALITY_BAD\020\t\022\030\n" + + "\024CANVAS_EXPORT_FAILED\020\n" + + "\"\250\001\n" + + "\016FeedbackSource\022\037\n" + + "\033FEEDBACK_SOURCE_UNSPECIFIED\020\000\022\022\n" + + "\016GOOGLE_CONSOLE\020\001\022\021\n\r" + + "GOOGLE_WIDGET\020\002\022\021\n\r" + + "GOOGLE_WEBAPP\020\003\022\034\n" + + "\030GOOGLE_AGENTSPACE_MOBILE\020\004\022\035\n" + + "\031GOOGLE_AGENTSPACE_DESKTOP\020\005B\200\002\n" + + "#com.google.cloud.discoveryengine.v1B\r" + + "FeedbackProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002\037Google.Cloud.DiscoveryEngine" + + ".V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"" + + "Google::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.SessionProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_Feedback_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor, + new java.lang.String[] { + "FeedbackType", + "Reasons", + "Comment", + "ConversationInfo", + "LlmModelVersion", + "FeedbackSource", + "ComponentVersion", + "DataTermsAccepted", + }); + internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1_Feedback_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Feedback_ConversationInfo_descriptor, + new java.lang.String[] { + "QuestionIndex", + "Session", + "Query", + "AssistToken", + "AnswerQueryToken", + "TaskName", + "TrajectoryId", + "StepSeqNum", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.SessionProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java index 9b243b2b9e9b..6097a7ec27b7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentRequest.java @@ -324,6 +324,38 @@ public interface GenerationSpecOrBuilder * @return The maxOutputTokens. */ int getMaxOutputTokens(); + + /** + * + * + *
+     * Optional. Setting for provisioned throughput.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionedThroughputSetting. + */ + int getProvisionedThroughputSettingValue(); + + /** + * + * + *
+     * Optional. Setting for provisioned throughput.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughputSetting. + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + getProvisionedThroughputSetting(); } /** @@ -360,6 +392,7 @@ private GenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) private GenerationSpec() { modelId_ = ""; languageCode_ = ""; + provisionedThroughputSetting_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -379,6 +412,188 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } + /** + * + * + *
+     * Setting for provisioned throughput.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting} + */ + public enum ProvisionedThroughputSetting implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. If the user has remaining provisioned throughput,
+       * provisioned throughput will be used. Otherwise, pay as you go will be
+       * used.
+       * 
+ * + * PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED = 0; + */ + PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED(0), + /** + * + * + *
+       * Only use provisioned throughput. If the user has no remaining
+       * provisioned throughput, an error will be returned.
+       * 
+ * + * PROVISIONED_THROUGHPUT_ONLY = 1; + */ + PROVISIONED_THROUGHPUT_ONLY(1), + /** + * + * + *
+       * Disables provisioned throughput.
+       * 
+ * + * PAY_AS_YOU_GO_ONLY = 2; + */ + PAY_AS_YOU_GO_ONLY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProvisionedThroughputSetting"); + } + + /** + * + * + *
+       * Default value. If the user has remaining provisioned throughput,
+       * provisioned throughput will be used. Otherwise, pay as you go will be
+       * used.
+       * 
+ * + * PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED = 0; + */ + public static final int PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Only use provisioned throughput. If the user has no remaining
+       * provisioned throughput, an error will be returned.
+       * 
+ * + * PROVISIONED_THROUGHPUT_ONLY = 1; + */ + public static final int PROVISIONED_THROUGHPUT_ONLY_VALUE = 1; + + /** + * + * + *
+       * Disables provisioned throughput.
+       * 
+ * + * PAY_AS_YOU_GO_ONLY = 2; + */ + public static final int PAY_AS_YOU_GO_ONLY_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 ProvisionedThroughputSetting 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 ProvisionedThroughputSetting forNumber(int value) { + switch (value) { + case 0: + return PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED; + case 1: + return PROVISIONED_THROUGHPUT_ONLY; + case 2: + return PAY_AS_YOU_GO_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProvisionedThroughputSetting findValueByNumber(int number) { + return ProvisionedThroughputSetting.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionedThroughputSetting[] VALUES = values(); + + public static ProvisionedThroughputSetting 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 ProvisionedThroughputSetting(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting) + } + private int bitField0_; public static final int MODEL_ID_FIELD_NUMBER = 3; @@ -733,6 +948,55 @@ public int getMaxOutputTokens() { return maxOutputTokens_; } + public static final int PROVISIONED_THROUGHPUT_SETTING_FIELD_NUMBER = 13; + private int provisionedThroughputSetting_ = 0; + + /** + * + * + *
+     * Optional. Setting for provisioned throughput.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionedThroughputSetting. + */ + @java.lang.Override + public int getProvisionedThroughputSettingValue() { + return provisionedThroughputSetting_; + } + + /** + * + * + *
+     * Optional. Setting for provisioned throughput.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughputSetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + getProvisionedThroughputSetting() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.forNumber(provisionedThroughputSetting_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -774,6 +1038,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(12, seed_); } + if (provisionedThroughputSetting_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, provisionedThroughputSetting_); + } getUnknownFields().writeTo(output); } @@ -810,6 +1080,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, seed_); } + if (provisionedThroughputSetting_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 13, provisionedThroughputSetting_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -862,6 +1140,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMaxOutputTokens()) { if (getMaxOutputTokens() != other.getMaxOutputTokens()) return false; } + if (provisionedThroughputSetting_ != other.provisionedThroughputSetting_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -905,6 +1184,8 @@ public int hashCode() { hash = (37 * hash) + MAX_OUTPUT_TOKENS_FIELD_NUMBER; hash = (53 * hash) + getMaxOutputTokens(); } + hash = (37 * hash) + PROVISIONED_THROUGHPUT_SETTING_FIELD_NUMBER; + hash = (53 * hash) + provisionedThroughputSetting_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1066,6 +1347,7 @@ public Builder clear() { seed_ = 0; presencePenalty_ = 0F; maxOutputTokens_ = 0; + provisionedThroughputSetting_ = 0; return this; } @@ -1145,6 +1427,9 @@ private void buildPartial0( result.maxOutputTokens_ = maxOutputTokens_; to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.provisionedThroughputSetting_ = provisionedThroughputSetting_; + } result.bitField0_ |= to_bitField0_; } @@ -1198,6 +1483,9 @@ public Builder mergeFrom( if (other.hasMaxOutputTokens()) { setMaxOutputTokens(other.getMaxOutputTokens()); } + if (other.provisionedThroughputSetting_ != 0) { + setProvisionedThroughputSettingValue(other.getProvisionedThroughputSettingValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1278,6 +1566,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 96 + case 104: + { + provisionedThroughputSetting_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2028,6 +2322,122 @@ public Builder clearMaxOutputTokens() { return this; } + private int provisionedThroughputSetting_ = 0; + + /** + * + * + *
+       * Optional. Setting for provisioned throughput.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionedThroughputSetting. + */ + @java.lang.Override + public int getProvisionedThroughputSettingValue() { + return provisionedThroughputSetting_; + } + + /** + * + * + *
+       * Optional. Setting for provisioned throughput.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provisionedThroughputSetting to set. + * @return This builder for chaining. + */ + public Builder setProvisionedThroughputSettingValue(int value) { + provisionedThroughputSetting_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Setting for provisioned throughput.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughputSetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + getProvisionedThroughputSetting() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + result = + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.forNumber(provisionedThroughputSetting_); + return result == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Setting for provisioned throughput.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionedThroughputSetting to set. + * @return This builder for chaining. + */ + public Builder setProvisionedThroughputSetting( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + provisionedThroughputSetting_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Setting for provisioned throughput.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionedThroughputSetting() { + bitField0_ = (bitField0_ & ~0x00000200); + provisionedThroughputSetting_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec) } @@ -6967,14 +7377,100 @@ public interface GoogleSearchSourceOrBuilder com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest .DynamicRetrievalConfigurationOrBuilder getDynamicRetrievalConfigOrBuilder(); - } - /** - * - * - *
-     * Google Search config parameters.
-     * 
+ /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + java.util.List getExcludeDomainsList(); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + int getExcludeDomainsCount(); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + java.lang.String getExcludeDomains(int index); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + com.google.protobuf.ByteString getExcludeDomainsBytes(int index); + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + int getBlockingConfidenceValue(); + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold getBlockingConfidence(); + } + + /** + * + * + *
+     * Google Search config parameters.
+     * 
* * Protobuf type {@code * google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource} @@ -7000,7 +7496,10 @@ private GoogleSearchSource(com.google.protobuf.GeneratedMessage.Builder build super(builder); } - private GoogleSearchSource() {} + private GoogleSearchSource() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto @@ -7090,6 +7589,121 @@ public boolean hasDynamicRetrievalConfig() { : dynamicRetrievalConfig_; } + public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + return excludeDomains_; + } + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 6; + private int blockingConfidence_ = 0; + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7107,6 +7721,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getDynamicRetrievalConfig()); } + for (int i = 0; i < excludeDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, excludeDomains_.getRaw(i)); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, blockingConfidence_); + } getUnknownFields().writeTo(output); } @@ -7121,6 +7744,20 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getDynamicRetrievalConfig()); } + { + int dataSize = 0; + for (int i = 0; i < excludeDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeDomainsList().size(); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, blockingConfidence_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7148,6 +7785,8 @@ public boolean equals(final java.lang.Object obj) { if (hasDynamicRetrievalConfig()) { if (!getDynamicRetrievalConfig().equals(other.getDynamicRetrievalConfig())) return false; } + if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false; + if (blockingConfidence_ != other.blockingConfidence_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7163,6 +7802,12 @@ public int hashCode() { hash = (37 * hash) + DYNAMIC_RETRIEVAL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDynamicRetrievalConfig().hashCode(); } + if (getExcludeDomainsCount() > 0) { + hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeDomainsList().hashCode(); + } + hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + blockingConfidence_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -7347,6 +7992,8 @@ public Builder clear() { dynamicRetrievalConfigBuilder_.dispose(); dynamicRetrievalConfigBuilder_ = null; } + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; return this; } @@ -7406,6 +8053,13 @@ private void buildPartial0( : dynamicRetrievalConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludeDomains_.makeImmutable(); + result.excludeDomains_ = excludeDomains_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blockingConfidence_ = blockingConfidence_; + } result.bitField0_ |= to_bitField0_; } @@ -7435,6 +8089,19 @@ public Builder mergeFrom( if (other.hasDynamicRetrievalConfig()) { mergeDynamicRetrievalConfig(other.getDynamicRetrievalConfig()); } + if (!other.excludeDomains_.isEmpty()) { + if (excludeDomains_.isEmpty()) { + excludeDomains_ = other.excludeDomains_; + bitField0_ |= 0x00000002; + } else { + ensureExcludeDomainsIsMutable(); + excludeDomains_.addAll(other.excludeDomains_); + } + onChanged(); + } + if (other.blockingConfidence_ != 0) { + setBlockingConfidenceValue(other.getBlockingConfidenceValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7469,6 +8136,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 18 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(s); + break; + } // case 42 + case 48: + { + blockingConfidence_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7739,70 +8419,464 @@ public Builder clearDynamicRetrievalConfig() { return dynamicRetrievalConfigBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) - private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource - DEFAULT_INSTANCE; + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSource(); - } + private void ensureExcludeDomainsIsMutable() { + if (!excludeDomains_.isModifiable()) { + excludeDomains_ = new com.google.protobuf.LazyStringArrayList(excludeDomains_); + } + bitField0_ |= 0x00000002; + } - public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + excludeDomains_.makeImmutable(); + return excludeDomains_; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleSearchSource 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(); - } - }; + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSource - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludeDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeDomains(java.lang.Iterable values) { + ensureExcludeDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeDomains_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeDomains() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int blockingConfidence_ = 0; + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidenceValue(int value) { + blockingConfidence_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidence( + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + blockingConfidence_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockingConfidence() { + bitField0_ = (bitField0_ & ~0x00000004); + blockingConfidence_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSearchSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } public interface EnterpriseWebRetrievalSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + java.util.List getExcludeDomainsList(); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + int getExcludeDomainsCount(); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + java.lang.String getExcludeDomains(int index); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + com.google.protobuf.ByteString getExcludeDomainsBytes(int index); + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + int getBlockingConfidenceValue(); + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold getBlockingConfidence(); + } /** * @@ -7837,7 +8911,10 @@ private EnterpriseWebRetrievalSource( super(builder); } - private EnterpriseWebRetrievalSource() {} + private EnterpriseWebRetrievalSource() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto @@ -7856,6 +8933,121 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .EnterpriseWebRetrievalSource.Builder.class); } + public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + return excludeDomains_; + } + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
+       * Optional. List of domains to be excluded from the search results.
+       * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 2; + private int blockingConfidence_ = 0; + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
+       * Optional. Sites with confidence level chosen & above this value will be
+       * blocked from the search results.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7870,6 +9062,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < excludeDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, excludeDomains_.getRaw(i)); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, blockingConfidence_); + } getUnknownFields().writeTo(output); } @@ -7879,6 +9080,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + { + int dataSize = 0; + for (int i = 0; i < excludeDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeDomainsList().size(); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, blockingConfidence_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7902,6 +9117,8 @@ public boolean equals(final java.lang.Object obj) { .EnterpriseWebRetrievalSource) obj; + if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false; + if (blockingConfidence_ != other.blockingConfidence_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7913,6 +9130,12 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (getExcludeDomainsCount() > 0) { + hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeDomainsList().hashCode(); + } + hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + blockingConfidence_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -8082,6 +9305,9 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; return this; } @@ -8121,10 +9347,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest .GroundingSource.EnterpriseWebRetrievalSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + excludeDomains_.makeImmutable(); + result.excludeDomains_ = excludeDomains_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.blockingConfidence_ = blockingConfidence_; + } + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -8148,6 +9391,19 @@ public Builder mergeFrom( if (other == com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource .EnterpriseWebRetrievalSource.getDefaultInstance()) return this; + if (!other.excludeDomains_.isEmpty()) { + if (excludeDomains_.isEmpty()) { + excludeDomains_ = other.excludeDomains_; + bitField0_ |= 0x00000001; + } else { + ensureExcludeDomainsIsMutable(); + excludeDomains_.addAll(other.excludeDomains_); + } + onChanged(); + } + if (other.blockingConfidence_ != 0) { + setBlockingConfidenceValue(other.getBlockingConfidenceValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -8174,6 +9430,19 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(s); + break; + } // case 10 + case 16: + { + blockingConfidence_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8191,6 +9460,315 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeDomainsIsMutable() { + if (!excludeDomains_.isModifiable()) { + excludeDomains_ = new com.google.protobuf.LazyStringArrayList(excludeDomains_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + excludeDomains_.makeImmutable(); + return excludeDomains_; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludeDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeDomains(java.lang.Iterable values) { + ensureExcludeDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeDomains_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeDomains() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. List of domains to be excluded from the search results.
+         * 
+ * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int blockingConfidence_ = 0; + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidenceValue(int value) { + blockingConfidence_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidence( + com.google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + blockingConfidence_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Sites with confidence level chosen & above this value will be
+         * blocked from the search results.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockingConfidence() { + bitField0_ = (bitField0_ & ~0x00000002); + blockingConfidence_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java index 60db5c96aa47..e67090ded478 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GenerateGroundedContentResponse.java @@ -665,6 +665,82 @@ public interface GroundingMetadataOrBuilder com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate .GroundingMetadata.ImageMetadataOrBuilder getImagesOrBuilder(int index); + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata> + getVideosList(); + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getVideos(int index); + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + int getVideosCount(); + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder> + getVideosOrBuilderList(); + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder + getVideosOrBuilder(int index); } /** @@ -704,6 +780,7 @@ private GroundingMetadata() { webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); groundingSupport_ = java.util.Collections.emptyList(); images_ = java.util.Collections.emptyList(); + videos_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -6233,6 +6310,32 @@ public interface WebsiteInfoOrBuilder * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+           * The display name of the website.
+           * 
+ * + * string site_display_name = 3; + * + * @return The siteDisplayName. + */ + java.lang.String getSiteDisplayName(); + + /** + * + * + *
+           * The display name of the website.
+           * 
+ * + * string site_display_name = 3; + * + * @return The bytes for siteDisplayName. + */ + com.google.protobuf.ByteString getSiteDisplayNameBytes(); } /** @@ -6269,6 +6372,7 @@ private WebsiteInfo(com.google.protobuf.GeneratedMessage.Builder builder) { private WebsiteInfo() { uri_ = ""; title_ = ""; + siteDisplayName_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -6394,6 +6498,59 @@ public com.google.protobuf.ByteString getTitleBytes() { } } + public static final int SITE_DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object siteDisplayName_ = ""; + + /** + * + * + *
+           * The display name of the website.
+           * 
+ * + * string site_display_name = 3; + * + * @return The siteDisplayName. + */ + @java.lang.Override + public java.lang.String getSiteDisplayName() { + java.lang.Object ref = siteDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+           * The display name of the website.
+           * 
+ * + * string site_display_name = 3; + * + * @return The bytes for siteDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteDisplayNameBytes() { + java.lang.Object ref = siteDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6415,6 +6572,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(siteDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, siteDisplayName_); + } getUnknownFields().writeTo(output); } @@ -6430,6 +6590,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(siteDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, siteDisplayName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6455,6 +6618,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUri().equals(other.getUri())) return false; if (!getTitle().equals(other.getTitle())) return false; + if (!getSiteDisplayName().equals(other.getSiteDisplayName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6470,6 +6634,8 @@ public int hashCode() { hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + SITE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSiteDisplayName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6644,6 +6810,7 @@ public Builder clear() { bitField0_ = 0; uri_ = ""; title_ = ""; + siteDisplayName_ = ""; return this; } @@ -6701,6 +6868,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.title_ = title_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.siteDisplayName_ = siteDisplayName_; + } } @java.lang.Override @@ -6737,6 +6907,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getSiteDisplayName().isEmpty()) { + siteDisplayName_ = other.siteDisplayName_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6775,6 +6950,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + siteDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7016,6 +7197,117 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object siteDisplayName_ = ""; + + /** + * + * + *
+             * The display name of the website.
+             * 
+ * + * string site_display_name = 3; + * + * @return The siteDisplayName. + */ + public java.lang.String getSiteDisplayName() { + java.lang.Object ref = siteDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+             * The display name of the website.
+             * 
+ * + * string site_display_name = 3; + * + * @return The bytes for siteDisplayName. + */ + public com.google.protobuf.ByteString getSiteDisplayNameBytes() { + java.lang.Object ref = siteDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+             * The display name of the website.
+             * 
+ * + * string site_display_name = 3; + * + * @param value The siteDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSiteDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + siteDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+             * The display name of the website.
+             * 
+ * + * string site_display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearSiteDisplayName() { + siteDisplayName_ = getDefaultInstance().getSiteDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+             * The display name of the website.
+             * 
+ * + * string site_display_name = 3; + * + * @param value The bytes for siteDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSiteDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + siteDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) } @@ -9431,240 +9723,922 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int RETRIEVAL_METADATA_FIELD_NUMBER = 5; + public interface VideoMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - retrievalMetadata_; + /** + * + * + *
+         * The external id of the video.
+         * 
+ * + * string youtube_external_id = 1; + * + * @return The youtubeExternalId. + */ + java.lang.String getYoutubeExternalId(); - /** - * - * - *
-       * Retrieval metadata to provide an understanding in the
-       * retrieval steps performed by the model. There can be multiple such
-       * messages which can correspond to different parts of the retrieval. This
-       * is a mechanism used to ensure transparency to our users.
-       * 
- * - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - getRetrievalMetadataList() { - return retrievalMetadata_; + /** + * + * + *
+         * The external id of the video.
+         * 
+ * + * string youtube_external_id = 1; + * + * @return The bytes for youtubeExternalId. + */ + com.google.protobuf.ByteString getYoutubeExternalIdBytes(); } /** * * *
-       * Retrieval metadata to provide an understanding in the
-       * retrieval steps performed by the model. There can be multiple such
-       * messages which can correspond to different parts of the retrieval. This
-       * is a mechanism used to ensure transparency to our users.
+       * Metadata about a video from the web search.
        * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata} */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder> - getRetrievalMetadataOrBuilderList() { - return retrievalMetadata_; - } + public static final class VideoMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + VideoMetadataOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-       * Retrieval metadata to provide an understanding in the
-       * retrieval steps performed by the model. There can be multiple such
-       * messages which can correspond to different parts of the retrieval. This
-       * is a mechanism used to ensure transparency to our users.
-       * 
- * - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public int getRetrievalMetadataCount() { - return retrievalMetadata_.size(); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "VideoMetadata"); + } - /** - * - * - *
-       * Retrieval metadata to provide an understanding in the
-       * retrieval steps performed by the model. There can be multiple such
-       * messages which can correspond to different parts of the retrieval. This
-       * is a mechanism used to ensure transparency to our users.
-       * 
- * - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - getRetrievalMetadata(int index) { - return retrievalMetadata_.get(index); - } + // Use VideoMetadata.newBuilder() to construct. + private VideoMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-       * Retrieval metadata to provide an understanding in the
-       * retrieval steps performed by the model. There can be multiple such
-       * messages which can correspond to different parts of the retrieval. This
-       * is a mechanism used to ensure transparency to our users.
-       * 
- * - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder - getRetrievalMetadataOrBuilder(int index) { - return retrievalMetadata_.get(index); - } + private VideoMetadata() { + youtubeExternalId_ = ""; + } - public static final int SUPPORT_CHUNKS_FIELD_NUMBER = 1; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + } - @SuppressWarnings("serial") - private java.util.List supportChunks_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.Builder.class); + } - /** - * - * - *
-       * List of chunks to be attributed across all claims in the candidate.
-       * These are derived from the grounding sources supplied in the request.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - @java.lang.Override - public java.util.List getSupportChunksList() { - return supportChunks_; - } + public static final int YOUTUBE_EXTERNAL_ID_FIELD_NUMBER = 1; - /** - * - * - *
-       * List of chunks to be attributed across all claims in the candidate.
-       * These are derived from the grounding sources supplied in the request.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - @java.lang.Override - public java.util.List - getSupportChunksOrBuilderList() { - return supportChunks_; - } + @SuppressWarnings("serial") + private volatile java.lang.Object youtubeExternalId_ = ""; - /** - * - * - *
-       * List of chunks to be attributed across all claims in the candidate.
-       * These are derived from the grounding sources supplied in the request.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - @java.lang.Override - public int getSupportChunksCount() { - return supportChunks_.size(); - } + /** + * + * + *
+         * The external id of the video.
+         * 
+ * + * string youtube_external_id = 1; + * + * @return The youtubeExternalId. + */ + @java.lang.Override + public java.lang.String getYoutubeExternalId() { + java.lang.Object ref = youtubeExternalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + youtubeExternalId_ = s; + return s; + } + } - /** - * - * - *
-       * List of chunks to be attributed across all claims in the candidate.
-       * These are derived from the grounding sources supplied in the request.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index) { - return supportChunks_.get(index); - } + /** + * + * + *
+         * The external id of the video.
+         * 
+ * + * string youtube_external_id = 1; + * + * @return The bytes for youtubeExternalId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYoutubeExternalIdBytes() { + java.lang.Object ref = youtubeExternalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + youtubeExternalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-       * List of chunks to be attributed across all claims in the candidate.
-       * These are derived from the grounding sources supplied in the request.
-       * 
- * - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder( - int index) { - return supportChunks_.get(index); - } + private byte memoizedIsInitialized = -1; - public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 3; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList webSearchQueries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
-       * Web search queries for the following-up web search.
-       * 
- * - * repeated string web_search_queries = 3; - * - * @return A list containing the webSearchQueries. - */ - public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { - return webSearchQueries_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(youtubeExternalId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, youtubeExternalId_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
-       * Web search queries for the following-up web search.
-       * 
- * - * repeated string web_search_queries = 3; - * - * @return The count of webSearchQueries. - */ - public int getWebSearchQueriesCount() { - return webSearchQueries_.size(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(youtubeExternalId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, youtubeExternalId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + other = + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata) + obj; + + if (!getYoutubeExternalId().equals(other.getYoutubeExternalId())) 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) + YOUTUBE_EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getYoutubeExternalId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Metadata about a video from the web search.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + youtubeExternalId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.youtubeExternalId_ = youtubeExternalId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.getDefaultInstance()) return this; + if (!other.getYoutubeExternalId().isEmpty()) { + youtubeExternalId_ = other.youtubeExternalId_; + 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: + { + youtubeExternalId_ = 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 youtubeExternalId_ = ""; + + /** + * + * + *
+           * The external id of the video.
+           * 
+ * + * string youtube_external_id = 1; + * + * @return The youtubeExternalId. + */ + public java.lang.String getYoutubeExternalId() { + java.lang.Object ref = youtubeExternalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + youtubeExternalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * The external id of the video.
+           * 
+ * + * string youtube_external_id = 1; + * + * @return The bytes for youtubeExternalId. + */ + public com.google.protobuf.ByteString getYoutubeExternalIdBytes() { + java.lang.Object ref = youtubeExternalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + youtubeExternalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * The external id of the video.
+           * 
+ * + * string youtube_external_id = 1; + * + * @param value The youtubeExternalId to set. + * @return This builder for chaining. + */ + public Builder setYoutubeExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + youtubeExternalId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * The external id of the video.
+           * 
+ * + * string youtube_external_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearYoutubeExternalId() { + youtubeExternalId_ = getDefaultInstance().getYoutubeExternalId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * The external id of the video.
+           * 
+ * + * string youtube_external_id = 1; + * + * @param value The bytes for youtubeExternalId to set. + * @return This builder for chaining. + */ + public Builder setYoutubeExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + youtubeExternalId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + private static final com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RETRIEVAL_METADATA_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + retrievalMetadata_; + + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + getRetrievalMetadataList() { + return retrievalMetadata_; + } + + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataOrBuilderList() { + return retrievalMetadata_; + } + + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public int getRetrievalMetadataCount() { + return retrievalMetadata_.size(); + } + + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getRetrievalMetadata(int index) { + return retrievalMetadata_.get(index); + } + + /** + * + * + *
+       * Retrieval metadata to provide an understanding in the
+       * retrieval steps performed by the model. There can be multiple such
+       * messages which can correspond to different parts of the retrieval. This
+       * is a mechanism used to ensure transparency to our users.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder + getRetrievalMetadataOrBuilder(int index) { + return retrievalMetadata_.get(index); + } + + public static final int SUPPORT_CHUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List supportChunks_; + + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public java.util.List getSupportChunksList() { + return supportChunks_; + } + + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public java.util.List + getSupportChunksOrBuilderList() { + return supportChunks_; + } + + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public int getSupportChunksCount() { + return supportChunks_.size(); + } + + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index) { + return supportChunks_.get(index); + } + + /** + * + * + *
+       * List of chunks to be attributed across all claims in the candidate.
+       * These are derived from the grounding sources supplied in the request.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder( + int index) { + return supportChunks_.get(index); + } + + public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList webSearchQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @return A list containing the webSearchQueries. + */ + public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { + return webSearchQueries_; + } + + /** + * + * + *
+       * Web search queries for the following-up web search.
+       * 
+ * + * repeated string web_search_queries = 3; + * + * @return The count of webSearchQueries. + */ + public int getWebSearchQueriesCount() { + return webSearchQueries_.size(); + } + + /** * * *
@@ -9971,6 +10945,105 @@ public int getImagesCount() {
         return images_.get(index);
       }
 
+      public static final int VIDEOS_FIELD_NUMBER = 11;
+
+      @SuppressWarnings("serial")
+      private java.util.List<
+              com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate
+                  .GroundingMetadata.VideoMetadata>
+          videos_;
+
+      /**
+       *
+       *
+       * 
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata> + getVideosList() { + return videos_; + } + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder> + getVideosOrBuilderList() { + return videos_; + } + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public int getVideosCount() { + return videos_.size(); + } + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getVideos(int index) { + return videos_.get(index); + } + + /** + * + * + *
+       * Videos from the web search.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder + getVideosOrBuilder(int index) { + return videos_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10003,6 +11076,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < images_.size(); i++) { output.writeMessage(9, images_.get(i)); } + for (int i = 0; i < videos_.size(); i++) { + output.writeMessage(11, videos_.get(i)); + } getUnknownFields().writeTo(output); } @@ -10040,6 +11116,9 @@ public int getSerializedSize() { for (int i = 0; i < images_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, images_.get(i)); } + for (int i = 0; i < videos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, videos_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10072,6 +11151,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getGroundingSupportList().equals(other.getGroundingSupportList())) return false; if (!getImagesList().equals(other.getImagesList())) return false; + if (!getVideosList().equals(other.getVideosList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10107,6 +11187,10 @@ public int hashCode() { hash = (37 * hash) + IMAGES_FIELD_NUMBER; hash = (53 * hash) + getImagesList().hashCode(); } + if (getVideosCount() > 0) { + hash = (37 * hash) + VIDEOS_FIELD_NUMBER; + hash = (53 * hash) + getVideosList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -10254,476 +11338,819 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto - .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.class, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.Builder.class); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.class, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRetrievalMetadataFieldBuilder(); + internalGetSupportChunksFieldBuilder(); + internalGetSearchEntryPointFieldBuilder(); + internalGetGroundingSupportFieldBuilder(); + internalGetImagesFieldBuilder(); + internalGetVideosFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (retrievalMetadataBuilder_ == null) { + retrievalMetadata_ = java.util.Collections.emptyList(); + } else { + retrievalMetadata_ = null; + retrievalMetadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (supportChunksBuilder_ == null) { + supportChunks_ = java.util.Collections.emptyList(); + } else { + supportChunks_ = null; + supportChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; + } + if (groundingSupportBuilder_ == null) { + groundingSupport_ = java.util.Collections.emptyList(); + } else { + groundingSupport_ = null; + groundingSupportBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (imagesBuilder_ == null) { + images_ = java.util.Collections.emptyList(); + } else { + images_ = null; + imagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (videosBuilder_ == null) { + videos_ = java.util.Collections.emptyList(); + } else { + videos_ = null; + videosBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + build() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - // Construct using - // com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result = + new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result) { + if (retrievalMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + retrievalMetadata_ = java.util.Collections.unmodifiableList(retrievalMetadata_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.retrievalMetadata_ = retrievalMetadata_; + } else { + result.retrievalMetadata_ = retrievalMetadataBuilder_.build(); + } + if (supportChunksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + supportChunks_ = java.util.Collections.unmodifiableList(supportChunks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.supportChunks_ = supportChunks_; + } else { + result.supportChunks_ = supportChunksBuilder_.build(); + } + if (groundingSupportBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + groundingSupport_ = java.util.Collections.unmodifiableList(groundingSupport_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.groundingSupport_ = groundingSupport_; + } else { + result.groundingSupport_ = groundingSupportBuilder_.build(); + } + if (imagesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + images_ = java.util.Collections.unmodifiableList(images_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.images_ = images_; + } else { + result.images_ = imagesBuilder_.build(); + } + if (videosBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + videos_ = java.util.Collections.unmodifiableList(videos_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.videos_ = videos_; + } else { + result.videos_ = videosBuilder_.build(); + } } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetRetrievalMetadataFieldBuilder(); - internalGetSupportChunksFieldBuilder(); - internalGetSearchEntryPointFieldBuilder(); - internalGetGroundingSupportFieldBuilder(); - internalGetImagesFieldBuilder(); + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + webSearchQueries_.makeImmutable(); + result.webSearchQueries_ = webSearchQueries_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.searchEntryPoint_ = + searchEntryPointBuilder_ == null + ? searchEntryPoint_ + : searchEntryPointBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance()) return this; if (retrievalMetadataBuilder_ == null) { - retrievalMetadata_ = java.util.Collections.emptyList(); + if (!other.retrievalMetadata_.isEmpty()) { + if (retrievalMetadata_.isEmpty()) { + retrievalMetadata_ = other.retrievalMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.addAll(other.retrievalMetadata_); + } + onChanged(); + } } else { - retrievalMetadata_ = null; - retrievalMetadataBuilder_.clear(); + if (!other.retrievalMetadata_.isEmpty()) { + if (retrievalMetadataBuilder_.isEmpty()) { + retrievalMetadataBuilder_.dispose(); + retrievalMetadataBuilder_ = null; + retrievalMetadata_ = other.retrievalMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + retrievalMetadataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRetrievalMetadataFieldBuilder() + : null; + } else { + retrievalMetadataBuilder_.addAllMessages(other.retrievalMetadata_); + } + } } - bitField0_ = (bitField0_ & ~0x00000001); if (supportChunksBuilder_ == null) { - supportChunks_ = java.util.Collections.emptyList(); + if (!other.supportChunks_.isEmpty()) { + if (supportChunks_.isEmpty()) { + supportChunks_ = other.supportChunks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSupportChunksIsMutable(); + supportChunks_.addAll(other.supportChunks_); + } + onChanged(); + } } else { - supportChunks_ = null; - supportChunksBuilder_.clear(); + if (!other.supportChunks_.isEmpty()) { + if (supportChunksBuilder_.isEmpty()) { + supportChunksBuilder_.dispose(); + supportChunksBuilder_ = null; + supportChunks_ = other.supportChunks_; + bitField0_ = (bitField0_ & ~0x00000002); + supportChunksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSupportChunksFieldBuilder() + : null; + } else { + supportChunksBuilder_.addAllMessages(other.supportChunks_); + } + } } - bitField0_ = (bitField0_ & ~0x00000002); - webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - searchEntryPoint_ = null; - if (searchEntryPointBuilder_ != null) { - searchEntryPointBuilder_.dispose(); - searchEntryPointBuilder_ = null; + if (!other.webSearchQueries_.isEmpty()) { + if (webSearchQueries_.isEmpty()) { + webSearchQueries_ = other.webSearchQueries_; + bitField0_ |= 0x00000004; + } else { + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.addAll(other.webSearchQueries_); + } + onChanged(); + } + if (other.hasSearchEntryPoint()) { + mergeSearchEntryPoint(other.getSearchEntryPoint()); } if (groundingSupportBuilder_ == null) { - groundingSupport_ = java.util.Collections.emptyList(); + if (!other.groundingSupport_.isEmpty()) { + if (groundingSupport_.isEmpty()) { + groundingSupport_ = other.groundingSupport_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGroundingSupportIsMutable(); + groundingSupport_.addAll(other.groundingSupport_); + } + onChanged(); + } } else { - groundingSupport_ = null; - groundingSupportBuilder_.clear(); + if (!other.groundingSupport_.isEmpty()) { + if (groundingSupportBuilder_.isEmpty()) { + groundingSupportBuilder_.dispose(); + groundingSupportBuilder_ = null; + groundingSupport_ = other.groundingSupport_; + bitField0_ = (bitField0_ & ~0x00000010); + groundingSupportBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGroundingSupportFieldBuilder() + : null; + } else { + groundingSupportBuilder_.addAllMessages(other.groundingSupport_); + } + } + } + if (imagesBuilder_ == null) { + if (!other.images_.isEmpty()) { + if (images_.isEmpty()) { + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureImagesIsMutable(); + images_.addAll(other.images_); + } + onChanged(); + } + } else { + if (!other.images_.isEmpty()) { + if (imagesBuilder_.isEmpty()) { + imagesBuilder_.dispose(); + imagesBuilder_ = null; + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000020); + imagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetImagesFieldBuilder() + : null; + } else { + imagesBuilder_.addAllMessages(other.images_); + } + } } - bitField0_ = (bitField0_ & ~0x00000010); - if (imagesBuilder_ == null) { - images_ = java.util.Collections.emptyList(); + if (videosBuilder_ == null) { + if (!other.videos_.isEmpty()) { + if (videos_.isEmpty()) { + videos_ = other.videos_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureVideosIsMutable(); + videos_.addAll(other.videos_); + } + onChanged(); + } } else { - images_ = null; - imagesBuilder_.clear(); + if (!other.videos_.isEmpty()) { + if (videosBuilder_.isEmpty()) { + videosBuilder_.dispose(); + videosBuilder_ = null; + videos_ = other.videos_; + bitField0_ = (bitField0_ & ~0x00000040); + videosBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVideosFieldBuilder() + : null; + } else { + videosBuilder_.addAllMessages(other.videos_); + } + } } - bitField0_ = (bitField0_ & ~0x00000020); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.GroundedGenerationServiceProto - .internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.getDefaultInstance(); + public final boolean isInitialized() { + return true; } @java.lang.Override - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - build() { - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + 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(); } - return result; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.FactChunk m = + input.readMessage( + com.google.cloud.discoveryengine.v1.FactChunk.parser(), + extensionRegistry); + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(m); + } else { + supportChunksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport.parser(), + extensionRegistry); + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(m); + } else { + groundingSupportBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(s); + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata.parser(), + extensionRegistry); + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(m); + } else { + retrievalMetadataBuilder_.addMessage(m); + } + break; + } // case 42 + case 74: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.parser(), + extensionRegistry); + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(m); + } else { + imagesBuilder_.addMessage(m); + } + break; + } // case 74 + case 90: + { + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata.parser(), + extensionRegistry); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.add(m); + } else { + videosBuilder_.addMessage(m); + } + 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; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - buildPartial() { - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result = - new com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + retrievalMetadata_ = java.util.Collections.emptyList(); + + private void ensureRetrievalMetadataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + retrievalMetadata_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata>(retrievalMetadata_); + bitField0_ |= 0x00000001; } - onBuilt(); - return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result) { + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + retrievalMetadataBuilder_; + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata> + getRetrievalMetadataList() { if (retrievalMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - retrievalMetadata_ = java.util.Collections.unmodifiableList(retrievalMetadata_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.retrievalMetadata_ = retrievalMetadata_; - } else { - result.retrievalMetadata_ = retrievalMetadataBuilder_.build(); - } - if (supportChunksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - supportChunks_ = java.util.Collections.unmodifiableList(supportChunks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.supportChunks_ = supportChunks_; - } else { - result.supportChunks_ = supportChunksBuilder_.build(); - } - if (groundingSupportBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - groundingSupport_ = java.util.Collections.unmodifiableList(groundingSupport_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.groundingSupport_ = groundingSupport_; - } else { - result.groundingSupport_ = groundingSupportBuilder_.build(); - } - if (imagesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - images_ = java.util.Collections.unmodifiableList(images_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.images_ = images_; + return java.util.Collections.unmodifiableList(retrievalMetadata_); } else { - result.images_ = imagesBuilder_.build(); + return retrievalMetadataBuilder_.getMessageList(); } } - private void buildPartial0( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - webSearchQueries_.makeImmutable(); - result.webSearchQueries_ = webSearchQueries_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.searchEntryPoint_ = - searchEntryPointBuilder_ == null - ? searchEntryPoint_ - : searchEntryPointBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public int getRetrievalMetadataCount() { + if (retrievalMetadataBuilder_ == null) { + return retrievalMetadata_.size(); + } else { + return retrievalMetadataBuilder_.getCount(); } - result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata) - other); + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + getRetrievalMetadata(int index) { + if (retrievalMetadataBuilder_ == null) { + return retrievalMetadata_.get(index); } else { - super.mergeFrom(other); - return this; + return retrievalMetadataBuilder_.getMessage(index); } } - public Builder mergeFrom( + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder setRetrievalMetadata( + int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - other) { - if (other - == com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.getDefaultInstance()) return this; + .GroundingMetadata.RetrievalMetadata + value) { if (retrievalMetadataBuilder_ == null) { - if (!other.retrievalMetadata_.isEmpty()) { - if (retrievalMetadata_.isEmpty()) { - retrievalMetadata_ = other.retrievalMetadata_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.addAll(other.retrievalMetadata_); - } - onChanged(); - } - } else { - if (!other.retrievalMetadata_.isEmpty()) { - if (retrievalMetadataBuilder_.isEmpty()) { - retrievalMetadataBuilder_.dispose(); - retrievalMetadataBuilder_ = null; - retrievalMetadata_ = other.retrievalMetadata_; - bitField0_ = (bitField0_ & ~0x00000001); - retrievalMetadataBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetRetrievalMetadataFieldBuilder() - : null; - } else { - retrievalMetadataBuilder_.addAllMessages(other.retrievalMetadata_); - } - } - } - if (supportChunksBuilder_ == null) { - if (!other.supportChunks_.isEmpty()) { - if (supportChunks_.isEmpty()) { - supportChunks_ = other.supportChunks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSupportChunksIsMutable(); - supportChunks_.addAll(other.supportChunks_); - } - onChanged(); + if (value == null) { + throw new NullPointerException(); } + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.set(index, value); + onChanged(); } else { - if (!other.supportChunks_.isEmpty()) { - if (supportChunksBuilder_.isEmpty()) { - supportChunksBuilder_.dispose(); - supportChunksBuilder_ = null; - supportChunks_ = other.supportChunks_; - bitField0_ = (bitField0_ & ~0x00000002); - supportChunksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSupportChunksFieldBuilder() - : null; - } else { - supportChunksBuilder_.addAllMessages(other.supportChunks_); - } - } + retrievalMetadataBuilder_.setMessage(index, value); } - if (!other.webSearchQueries_.isEmpty()) { - if (webSearchQueries_.isEmpty()) { - webSearchQueries_ = other.webSearchQueries_; - bitField0_ |= 0x00000004; - } else { - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.addAll(other.webSearchQueries_); - } + return this; + } + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder setRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + builderForValue) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.set(index, builderForValue.build()); onChanged(); - } - if (other.hasSearchEntryPoint()) { - mergeSearchEntryPoint(other.getSearchEntryPoint()); - } - if (groundingSupportBuilder_ == null) { - if (!other.groundingSupport_.isEmpty()) { - if (groundingSupport_.isEmpty()) { - groundingSupport_ = other.groundingSupport_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureGroundingSupportIsMutable(); - groundingSupport_.addAll(other.groundingSupport_); - } - onChanged(); - } } else { - if (!other.groundingSupport_.isEmpty()) { - if (groundingSupportBuilder_.isEmpty()) { - groundingSupportBuilder_.dispose(); - groundingSupportBuilder_ = null; - groundingSupport_ = other.groundingSupport_; - bitField0_ = (bitField0_ & ~0x00000010); - groundingSupportBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetGroundingSupportFieldBuilder() - : null; - } else { - groundingSupportBuilder_.addAllMessages(other.groundingSupport_); - } - } + retrievalMetadataBuilder_.setMessage(index, builderForValue.build()); } - if (imagesBuilder_ == null) { - if (!other.images_.isEmpty()) { - if (images_.isEmpty()) { - images_ = other.images_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureImagesIsMutable(); - images_.addAll(other.images_); - } - onChanged(); - } - } else { - if (!other.images_.isEmpty()) { - if (imagesBuilder_.isEmpty()) { - imagesBuilder_.dispose(); - imagesBuilder_ = null; - images_ = other.images_; - bitField0_ = (bitField0_ & ~0x00000020); - imagesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetImagesFieldBuilder() - : null; - } else { - imagesBuilder_.addAllMessages(other.images_); - } + return this; + } + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + value) { + if (retrievalMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(value); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata + value) { + if (retrievalMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(index, value); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(index, value); + } + return this; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.discoveryengine.v1.FactChunk m = - input.readMessage( - com.google.cloud.discoveryengine.v1.FactChunk.parser(), - extensionRegistry); - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.add(m); - } else { - supportChunksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport - m = - input.readMessage( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport.parser(), - extensionRegistry); - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.add(m); - } else { - groundingSupportBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.add(s); - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - m = - input.readMessage( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata.parser(), - extensionRegistry); - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(m); - } else { - retrievalMetadataBuilder_.addMessage(m); - } - break; - } // case 42 - case 74: - { - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata - m = - input.readMessage( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.ImageMetadata.parser(), - extensionRegistry); - if (imagesBuilder_ == null) { - ensureImagesIsMutable(); - images_.add(m); - } else { - imagesBuilder_.addMessage(m); - } - break; - } // case 74 - 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 { + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + builderForValue) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(builderForValue.build()); onChanged(); - } // finally + } else { + retrievalMetadataBuilder_.addMessage(builderForValue.build()); + } return this; } - private int bitField0_; - - private java.util.List< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - retrievalMetadata_ = java.util.Collections.emptyList(); - - private void ensureRetrievalMetadataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - retrievalMetadata_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata>(retrievalMetadata_); - bitField0_ |= 0x00000001; + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + builderForValue) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + retrievalMetadataBuilder_.addMessage(index, builderForValue.build()); } + return this; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder> - retrievalMetadataBuilder_; + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addAllRetrievalMetadata( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata> + values) { + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, retrievalMetadata_); + onChanged(); + } else { + retrievalMetadataBuilder_.addAllMessages(values); + } + return this; + } /** * @@ -10739,15 +12166,15 @@ private void ensureRetrievalMetadataIsMutable() { * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; *
*/ - public java.util.List< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - getRetrievalMetadataList() { + public Builder clearRetrievalMetadata() { if (retrievalMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(retrievalMetadata_); + retrievalMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - return retrievalMetadataBuilder_.getMessageList(); + retrievalMetadataBuilder_.clear(); } + return this; } /** @@ -10764,12 +12191,15 @@ private void ensureRetrievalMetadataIsMutable() { * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; *
*/ - public int getRetrievalMetadataCount() { + public Builder removeRetrievalMetadata(int index) { if (retrievalMetadataBuilder_ == null) { - return retrievalMetadata_.size(); + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.remove(index); + onChanged(); } else { - return retrievalMetadataBuilder_.getCount(); + retrievalMetadataBuilder_.remove(index); } + return this; } /** @@ -10787,12 +12217,32 @@ public int getRetrievalMetadataCount() { * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - getRetrievalMetadata(int index) { + .GroundingMetadata.RetrievalMetadata.Builder + getRetrievalMetadataBuilder(int index) { + return internalGetRetrievalMetadataFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder + getRetrievalMetadataOrBuilder(int index) { if (retrievalMetadataBuilder_ == null) { return retrievalMetadata_.get(index); } else { - return retrievalMetadataBuilder_.getMessage(index); + return retrievalMetadataBuilder_.getMessageOrBuilder(index); } } @@ -10810,22 +12260,16 @@ public int getRetrievalMetadataCount() { * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; * */ - public Builder setRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - value) { - if (retrievalMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.set(index, value); - onChanged(); + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataOrBuilderList() { + if (retrievalMetadataBuilder_ != null) { + return retrievalMetadataBuilder_.getMessageOrBuilderList(); } else { - retrievalMetadataBuilder_.setMessage(index, value); + return java.util.Collections.unmodifiableList(retrievalMetadata_); } - return this; } /** @@ -10842,17 +12286,202 @@ public Builder setRetrievalMetadata( * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; * */ - public Builder setRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - builderForValue) { + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + addRetrievalMetadataBuilder() { + return internalGetRetrievalMetadataFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + } + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + addRetrievalMetadataBuilder(int index) { + return internalGetRetrievalMetadataFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + } + + /** + * + * + *
+         * Retrieval metadata to provide an understanding in the
+         * retrieval steps performed by the model. There can be multiple such
+         * messages which can correspond to different parts of the retrieval. This
+         * is a mechanism used to ensure transparency to our users.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder> + getRetrievalMetadataBuilderList() { + return internalGetRetrievalMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + internalGetRetrievalMetadataFieldBuilder() { if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.set(index, builderForValue.build()); + retrievalMetadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder>( + retrievalMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + retrievalMetadata_ = null; + } + return retrievalMetadataBuilder_; + } + + private java.util.List supportChunks_ = + java.util.Collections.emptyList(); + + private void ensureSupportChunksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + supportChunks_ = + new java.util.ArrayList( + supportChunks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.FactChunk, + com.google.cloud.discoveryengine.v1.FactChunk.Builder, + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder> + supportChunksBuilder_; + + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public java.util.List + getSupportChunksList() { + if (supportChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(supportChunks_); + } else { + return supportChunksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public int getSupportChunksCount() { + if (supportChunksBuilder_ == null) { + return supportChunks_.size(); + } else { + return supportChunksBuilder_.getCount(); + } + } + + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index) { + if (supportChunksBuilder_ == null) { + return supportChunks_.get(index); + } else { + return supportChunksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder setSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportChunksIsMutable(); + supportChunks_.set(index, value); + onChanged(); + } else { + supportChunksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
+         * 
+ * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public Builder setSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.set(index, builderForValue.build()); onChanged(); } else { - retrievalMetadataBuilder_.setMessage(index, builderForValue.build()); + supportChunksBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -10861,29 +12490,22 @@ public Builder setRetrievalMetadata( * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder addRetrievalMetadata( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - value) { - if (retrievalMetadataBuilder_ == null) { + public Builder addSupportChunks(com.google.cloud.discoveryengine.v1.FactChunk value) { + if (supportChunksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(value); + ensureSupportChunksIsMutable(); + supportChunks_.add(value); onChanged(); } else { - retrievalMetadataBuilder_.addMessage(value); + supportChunksBuilder_.addMessage(value); } return this; } @@ -10892,30 +12514,23 @@ public Builder addRetrievalMetadata( * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder addRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - value) { - if (retrievalMetadataBuilder_ == null) { + public Builder addSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk value) { + if (supportChunksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(index, value); + ensureSupportChunksIsMutable(); + supportChunks_.add(index, value); onChanged(); } else { - retrievalMetadataBuilder_.addMessage(index, value); + supportChunksBuilder_.addMessage(index, value); } return this; } @@ -10924,26 +12539,20 @@ public Builder addRetrievalMetadata( * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder addRetrievalMetadata( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - builderForValue) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(builderForValue.build()); + public Builder addSupportChunks( + com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(builderForValue.build()); onChanged(); } else { - retrievalMetadataBuilder_.addMessage(builderForValue.build()); + supportChunksBuilder_.addMessage(builderForValue.build()); } return this; } @@ -10952,27 +12561,20 @@ public Builder addRetrievalMetadata( * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder addRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - builderForValue) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(index, builderForValue.build()); + public Builder addSupportChunks( + int index, com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(index, builderForValue.build()); onChanged(); } else { - retrievalMetadataBuilder_.addMessage(index, builderForValue.build()); + supportChunksBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -10981,28 +12583,20 @@ public Builder addRetrievalMetadata( * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder addAllRetrievalMetadata( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata> - values) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, retrievalMetadata_); + public Builder addAllSupportChunks( + java.lang.Iterable values) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportChunks_); onChanged(); } else { - retrievalMetadataBuilder_.addAllMessages(values); + supportChunksBuilder_.addAllMessages(values); } return this; } @@ -11011,23 +12605,19 @@ public Builder addAllRetrievalMetadata( * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder clearRetrievalMetadata() { - if (retrievalMetadataBuilder_ == null) { - retrievalMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearSupportChunks() { + if (supportChunksBuilder_ == null) { + supportChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - retrievalMetadataBuilder_.clear(); + supportChunksBuilder_.clear(); } return this; } @@ -11036,23 +12626,19 @@ public Builder clearRetrievalMetadata() { * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public Builder removeRetrievalMetadata(int index) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.remove(index); + public Builder removeSupportChunks(int index) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.remove(index); onChanged(); } else { - retrievalMetadataBuilder_.remove(index); + supportChunksBuilder_.remove(index); } return this; } @@ -11061,43 +12647,33 @@ public Builder removeRetrievalMetadata(int index) { * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - getRetrievalMetadataBuilder(int index) { - return internalGetRetrievalMetadataFieldBuilder().getBuilder(index); + public com.google.cloud.discoveryengine.v1.FactChunk.Builder getSupportChunksBuilder( + int index) { + return internalGetSupportChunksFieldBuilder().getBuilder(index); } /** * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder - getRetrievalMetadataOrBuilder(int index) { - if (retrievalMetadataBuilder_ == null) { - return retrievalMetadata_.get(index); + public com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder( + int index) { + if (supportChunksBuilder_ == null) { + return supportChunks_.get(index); } else { - return retrievalMetadataBuilder_.getMessageOrBuilder(index); + return supportChunksBuilder_.getMessageOrBuilder(index); } } @@ -11105,25 +12681,18 @@ public Builder removeRetrievalMetadata(int index) { * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder> - getRetrievalMetadataOrBuilderList() { - if (retrievalMetadataBuilder_ != null) { - return retrievalMetadataBuilder_.getMessageOrBuilderList(); + public java.util.List + getSupportChunksOrBuilderList() { + if (supportChunksBuilder_ != null) { + return supportChunksBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(retrievalMetadata_); + return java.util.Collections.unmodifiableList(supportChunks_); } } @@ -11131,213 +12700,163 @@ public Builder removeRetrievalMetadata(int index) { * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - addRetrievalMetadataBuilder() { - return internalGetRetrievalMetadataFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1.FactChunk.Builder addSupportChunksBuilder() { + return internalGetSupportChunksFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.FactChunk.getDefaultInstance()); } /** * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - addRetrievalMetadataBuilder(int index) { - return internalGetRetrievalMetadataFieldBuilder() + public com.google.cloud.discoveryengine.v1.FactChunk.Builder addSupportChunksBuilder( + int index) { + return internalGetSupportChunksFieldBuilder() .addBuilder( - index, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + index, com.google.cloud.discoveryengine.v1.FactChunk.getDefaultInstance()); } /** * * *
-         * Retrieval metadata to provide an understanding in the
-         * retrieval steps performed by the model. There can be multiple such
-         * messages which can correspond to different parts of the retrieval. This
-         * is a mechanism used to ensure transparency to our users.
+         * List of chunks to be attributed across all claims in the candidate.
+         * These are derived from the grounding sources supplied in the request.
          * 
* - * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder> - getRetrievalMetadataBuilderList() { - return internalGetRetrievalMetadataFieldBuilder().getBuilderList(); + public java.util.List + getSupportChunksBuilderList() { + return internalGetSupportChunksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder> - internalGetRetrievalMetadataFieldBuilder() { - if (retrievalMetadataBuilder_ == null) { - retrievalMetadataBuilder_ = + com.google.cloud.discoveryengine.v1.FactChunk, + com.google.cloud.discoveryengine.v1.FactChunk.Builder, + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder> + internalGetSupportChunksFieldBuilder() { + if (supportChunksBuilder_ == null) { + supportChunksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder>( - retrievalMetadata_, - ((bitField0_ & 0x00000001) != 0), + com.google.cloud.discoveryengine.v1.FactChunk, + com.google.cloud.discoveryengine.v1.FactChunk.Builder, + com.google.cloud.discoveryengine.v1.FactChunkOrBuilder>( + supportChunks_, + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - retrievalMetadata_ = null; + supportChunks_ = null; } - return retrievalMetadataBuilder_; + return supportChunksBuilder_; } - private java.util.List supportChunks_ = - java.util.Collections.emptyList(); + private com.google.protobuf.LazyStringArrayList webSearchQueries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSupportChunksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - supportChunks_ = - new java.util.ArrayList( - supportChunks_); - bitField0_ |= 0x00000002; + private void ensureWebSearchQueriesIsMutable() { + if (!webSearchQueries_.isModifiable()) { + webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_); } + bitField0_ |= 0x00000004; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1.FactChunk, - com.google.cloud.discoveryengine.v1.FactChunk.Builder, - com.google.cloud.discoveryengine.v1.FactChunkOrBuilder> - supportChunksBuilder_; - /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @return A list containing the webSearchQueries. */ - public java.util.List - getSupportChunksList() { - if (supportChunksBuilder_ == null) { - return java.util.Collections.unmodifiableList(supportChunks_); - } else { - return supportChunksBuilder_.getMessageList(); - } + public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { + webSearchQueries_.makeImmutable(); + return webSearchQueries_; } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @return The count of webSearchQueries. */ - public int getSupportChunksCount() { - if (supportChunksBuilder_ == null) { - return supportChunks_.size(); - } else { - return supportChunksBuilder_.getCount(); - } + public int getWebSearchQueriesCount() { + return webSearchQueries_.size(); } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @param index The index of the element to return. + * @return The webSearchQueries at the given index. */ - public com.google.cloud.discoveryengine.v1.FactChunk getSupportChunks(int index) { - if (supportChunksBuilder_ == null) { - return supportChunks_.get(index); - } else { - return supportChunksBuilder_.getMessage(index); - } + public java.lang.String getWebSearchQueries(int index) { + return webSearchQueries_.get(index); } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @param index The index of the value to return. + * @return The bytes of the webSearchQueries at the given index. */ - public Builder setSupportChunks( - int index, com.google.cloud.discoveryengine.v1.FactChunk value) { - if (supportChunksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportChunksIsMutable(); - supportChunks_.set(index, value); - onChanged(); - } else { - supportChunksBuilder_.setMessage(index, value); - } - return this; + public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { + return webSearchQueries_.getByteString(index); } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @param index The index to set the value at. + * @param value The webSearchQueries to set. + * @return This builder for chaining. */ - public Builder setSupportChunks( - int index, com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.set(index, builderForValue.build()); - onChanged(); - } else { - supportChunksBuilder_.setMessage(index, builderForValue.build()); + public Builder setWebSearchQueries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -11345,23 +12864,22 @@ public Builder setSupportChunks( * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @param value The webSearchQueries to add. + * @return This builder for chaining. */ - public Builder addSupportChunks(com.google.cloud.discoveryengine.v1.FactChunk value) { - if (supportChunksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportChunksIsMutable(); - supportChunks_.add(value); - onChanged(); - } else { - supportChunksBuilder_.addMessage(value); + public Builder addWebSearchQueries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -11369,24 +12887,19 @@ public Builder addSupportChunks(com.google.cloud.discoveryengine.v1.FactChunk va * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @param values The webSearchQueries to add. + * @return This builder for chaining. */ - public Builder addSupportChunks( - int index, com.google.cloud.discoveryengine.v1.FactChunk value) { - if (supportChunksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportChunksIsMutable(); - supportChunks_.add(index, value); - onChanged(); - } else { - supportChunksBuilder_.addMessage(index, value); - } + public Builder addAllWebSearchQueries(java.lang.Iterable values) { + ensureWebSearchQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webSearchQueries_); + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -11394,21 +12907,18 @@ public Builder addSupportChunks( * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - public Builder addSupportChunks( - com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.add(builderForValue.build()); - onChanged(); - } else { - supportChunksBuilder_.addMessage(builderForValue.build()); - } + * repeated string web_search_queries = 3; + * + * @return This builder for chaining. + */ + public Builder clearWebSearchQueries() { + webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); return this; } @@ -11416,85 +12926,106 @@ public Builder addSupportChunks( * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Web search queries for the following-up web search.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * repeated string web_search_queries = 3; + * + * @param value The bytes of the webSearchQueries to add. + * @return This builder for chaining. */ - public Builder addSupportChunks( - int index, com.google.cloud.discoveryengine.v1.FactChunk.Builder builderForValue) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.add(index, builderForValue.build()); - onChanged(); - } else { - supportChunksBuilder_.addMessage(index, builderForValue.build()); + public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureWebSearchQueriesIsMutable(); + webSearchQueries_.add(value); + bitField0_ |= 0x00000004; + onChanged(); return this; } + private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + searchEntryPoint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder> + searchEntryPointBuilder_; + /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return Whether the searchEntryPoint field is set. */ - public Builder addAllSupportChunks( - java.lang.Iterable values) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportChunks_); - onChanged(); - } else { - supportChunksBuilder_.addAllMessages(values); - } - return this; + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return The searchEntryPoint. */ - public Builder clearSupportChunks() { - if (supportChunksBuilder_ == null) { - supportChunks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getSearchEntryPoint() { + if (searchEntryPointBuilder_ == null) { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } else { - supportChunksBuilder_.clear(); + return searchEntryPointBuilder_.getMessage(); } - return this; } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * */ - public Builder removeSupportChunks(int index) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.remove(index); - onChanged(); + public Builder setSearchEntryPoint( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + value) { + if (searchEntryPointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchEntryPoint_ = value; } else { - supportChunksBuilder_.remove(index); + searchEntryPointBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); return this; } @@ -11502,216 +13033,309 @@ public Builder removeSupportChunks(int index) { * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * */ - public com.google.cloud.discoveryengine.v1.FactChunk.Builder getSupportChunksBuilder( - int index) { - return internalGetSupportChunksFieldBuilder().getBuilder(index); + public Builder setSearchEntryPoint( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder + builderForValue) { + if (searchEntryPointBuilder_ == null) { + searchEntryPoint_ = builderForValue.build(); + } else { + searchEntryPointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * */ - public com.google.cloud.discoveryengine.v1.FactChunkOrBuilder getSupportChunksOrBuilder( - int index) { - if (supportChunksBuilder_ == null) { - return supportChunks_.get(index); + public Builder mergeSearchEntryPoint( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + value) { + if (searchEntryPointBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && searchEntryPoint_ != null + && searchEntryPoint_ + != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance()) { + getSearchEntryPointBuilder().mergeFrom(value); + } else { + searchEntryPoint_ = value; + } } else { - return supportChunksBuilder_.getMessageOrBuilder(index); + searchEntryPointBuilder_.mergeFrom(value); + } + if (searchEntryPoint_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } + return this; } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * */ - public java.util.List - getSupportChunksOrBuilderList() { - if (supportChunksBuilder_ != null) { - return supportChunksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(supportChunks_); + public Builder clearSearchEntryPoint() { + bitField0_ = (bitField0_ & ~0x00000008); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; } + onChanged(); + return this; } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * */ - public com.google.cloud.discoveryengine.v1.FactChunk.Builder addSupportChunksBuilder() { - return internalGetSupportChunksFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1.FactChunk.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder + getSearchEntryPointBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSearchEntryPointFieldBuilder().getBuilder(); } /** * * *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
+         * Google search entry for the following-up web searches.
          * 
* - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * */ - public com.google.cloud.discoveryengine.v1.FactChunk.Builder addSupportChunksBuilder( - int index) { - return internalGetSupportChunksFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1.FactChunk.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder + getSearchEntryPointOrBuilder() { + if (searchEntryPointBuilder_ != null) { + return searchEntryPointBuilder_.getMessageOrBuilder(); + } else { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } } /** * * - *
-         * List of chunks to be attributed across all claims in the candidate.
-         * These are derived from the grounding sources supplied in the request.
-         * 
- * - * repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - public java.util.List - getSupportChunksBuilderList() { - return internalGetSupportChunksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1.FactChunk, - com.google.cloud.discoveryengine.v1.FactChunk.Builder, - com.google.cloud.discoveryengine.v1.FactChunkOrBuilder> - internalGetSupportChunksFieldBuilder() { - if (supportChunksBuilder_ == null) { - supportChunksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1.FactChunk, - com.google.cloud.discoveryengine.v1.FactChunk.Builder, - com.google.cloud.discoveryengine.v1.FactChunkOrBuilder>( - supportChunks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - supportChunks_ = null; + *
+         * Google search entry for the following-up web searches.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder> + internalGetSearchEntryPointFieldBuilder() { + if (searchEntryPointBuilder_ == null) { + searchEntryPointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder>( + getSearchEntryPoint(), getParentForChildren(), isClean()); + searchEntryPoint_ = null; } - return supportChunksBuilder_; + return searchEntryPointBuilder_; } - private com.google.protobuf.LazyStringArrayList webSearchQueries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + groundingSupport_ = java.util.Collections.emptyList(); - private void ensureWebSearchQueriesIsMutable() { - if (!webSearchQueries_.isModifiable()) { - webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_); + private void ensureGroundingSupportIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + groundingSupport_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport>(groundingSupport_); + bitField0_ |= 0x00000010; } - bitField0_ |= 0x00000004; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + groundingSupportBuilder_; + /** * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @return A list containing the webSearchQueries. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { - webSearchQueries_.makeImmutable(); - return webSearchQueries_; + public java.util.List< + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + getGroundingSupportList() { + if (groundingSupportBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSupport_); + } else { + return groundingSupportBuilder_.getMessageList(); + } } /** * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @return The count of webSearchQueries. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public int getWebSearchQueriesCount() { - return webSearchQueries_.size(); + public int getGroundingSupportCount() { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.size(); + } else { + return groundingSupportBuilder_.getCount(); + } } /** * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @param index The index of the element to return. - * @return The webSearchQueries at the given index. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public java.lang.String getWebSearchQueries(int index) { - return webSearchQueries_.get(index); + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getGroundingSupport(int index) { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.get(index); + } else { + return groundingSupportBuilder_.getMessage(index); + } } /** * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @param index The index of the value to return. - * @return The bytes of the webSearchQueries at the given index. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { - return webSearchQueries_.getByteString(index); + public Builder setGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportIsMutable(); + groundingSupport_.set(index, value); + onChanged(); + } else { + groundingSupportBuilder_.setMessage(index, value); + } + return this; } /** * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @param index The index to set the value at. - * @param value The webSearchQueries to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder setWebSearchQueries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportBuilder_.setMessage(index, builderForValue.build()); } - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -11719,22 +13343,29 @@ public Builder setWebSearchQueries(int index, java.lang.String value) { * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @param value The webSearchQueries to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addWebSearchQueries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addGroundingSupport( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportIsMutable(); + groundingSupport_.add(value); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(value); } - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.add(value); - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -11742,19 +13373,30 @@ public Builder addWebSearchQueries(java.lang.String value) { * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @param values The webSearchQueries to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addAllWebSearchQueries(java.lang.Iterable values) { - ensureWebSearchQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webSearchQueries_); - bitField0_ |= 0x00000004; - onChanged(); + public Builder addGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportIsMutable(); + groundingSupport_.add(index, value); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(index, value); + } return this; } @@ -11762,18 +13404,26 @@ public Builder addAllWebSearchQueries(java.lang.Iterable value * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder clearWebSearchQueries() { - webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); + public Builder addGroundingSupport( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(builderForValue.build()); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(builderForValue.build()); + } return this; } @@ -11781,106 +13431,104 @@ public Builder clearWebSearchQueries() { * * *
-         * Web search queries for the following-up web search.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* - * repeated string web_search_queries = 3; - * - * @param value The bytes of the webSearchQueries to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportBuilder_.addMessage(index, builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.add(value); - bitField0_ |= 0x00000004; - onChanged(); return this; } - private com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - searchEntryPoint_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder, - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder> - searchEntryPointBuilder_; - /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * - * - * @return Whether the searchEntryPoint field is set. */ - public boolean hasSearchEntryPoint() { - return ((bitField0_ & 0x00000008) != 0); + public Builder addAllGroundingSupport( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport> + values) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupport_); + onChanged(); + } else { + groundingSupportBuilder_.addAllMessages(values); + } + return this; } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * - * - * @return The searchEntryPoint. */ - public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - getSearchEntryPoint() { - if (searchEntryPointBuilder_ == null) { - return searchEntryPoint_ == null - ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; + public Builder clearGroundingSupport() { + if (groundingSupportBuilder_ == null) { + groundingSupport_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); } else { - return searchEntryPointBuilder_.getMessage(); + groundingSupportBuilder_.clear(); } + return this; } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ - public Builder setSearchEntryPoint( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - value) { - if (searchEntryPointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - searchEntryPoint_ = value; + public Builder removeGroundingSupport(int index) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.remove(index); + onChanged(); } else { - searchEntryPointBuilder_.setMessage(value); + groundingSupportBuilder_.remove(index); } - bitField0_ |= 0x00000008; - onChanged(); return this; } @@ -11888,206 +13536,203 @@ public Builder setSearchEntryPoint( * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ - public Builder setSearchEntryPoint( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder - builderForValue) { - if (searchEntryPointBuilder_ == null) { - searchEntryPoint_ = builderForValue.build(); - } else { - searchEntryPointBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + getGroundingSupportBuilder(int index) { + return internalGetGroundingSupportFieldBuilder().getBuilder(index); } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ - public Builder mergeSearchEntryPoint( - com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - value) { - if (searchEntryPointBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && searchEntryPoint_ != null - && searchEntryPoint_ - != com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance()) { - getSearchEntryPointBuilder().mergeFrom(value); - } else { - searchEntryPoint_ = value; - } + public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder + getGroundingSupportOrBuilder(int index) { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.get(index); } else { - searchEntryPointBuilder_.mergeFrom(value); - } - if (searchEntryPoint_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return groundingSupportBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ - public Builder clearSearchEntryPoint() { - bitField0_ = (bitField0_ & ~0x00000008); - searchEntryPoint_ = null; - if (searchEntryPointBuilder_ != null) { - searchEntryPointBuilder_.dispose(); - searchEntryPointBuilder_ = null; + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + getGroundingSupportOrBuilderList() { + if (groundingSupportBuilder_ != null) { + return groundingSupportBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingSupport_); } - onChanged(); - return this; } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder - getSearchEntryPointBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetSearchEntryPointFieldBuilder().getBuilder(); + .GroundingMetadata.GroundingSupport.Builder + addGroundingSupportBuilder() { + return internalGetGroundingSupportFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()); } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder - getSearchEntryPointOrBuilder() { - if (searchEntryPointBuilder_ != null) { - return searchEntryPointBuilder_.getMessageOrBuilder(); - } else { - return searchEntryPoint_ == null - ? com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; - } + .GroundingMetadata.GroundingSupport.Builder + addGroundingSupportBuilder(int index) { + return internalGetGroundingSupportFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()); } /** * * *
-         * Google search entry for the following-up web searches.
+         * GroundingSupport across all claims in the answer candidate.
+         * An support to a fact indicates that the claim is supported by
+         * the fact.
          * 
* * - * .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; * */ - private com.google.protobuf.SingleFieldBuilder< + public java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint, + .GroundingMetadata.GroundingSupport.Builder> + getGroundingSupportBuilderList() { + return internalGetGroundingSupportFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder, + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder> - internalGetSearchEntryPointFieldBuilder() { - if (searchEntryPointBuilder_ == null) { - searchEntryPointBuilder_ = - new com.google.protobuf.SingleFieldBuilder< + .GroundingMetadata.GroundingSupportOrBuilder> + internalGetGroundingSupportFieldBuilder() { + if (groundingSupportBuilder_ == null) { + groundingSupportBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint, + .GroundingMetadata.GroundingSupport, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder, + .GroundingMetadata.GroundingSupport.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder>( - getSearchEntryPoint(), getParentForChildren(), isClean()); - searchEntryPoint_ = null; + .GroundingMetadata.GroundingSupportOrBuilder>( + groundingSupport_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + groundingSupport_ = null; } - return searchEntryPointBuilder_; + return groundingSupportBuilder_; } private java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport> - groundingSupport_ = java.util.Collections.emptyList(); + .GroundingMetadata.ImageMetadata> + images_ = java.util.Collections.emptyList(); - private void ensureGroundingSupportIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - groundingSupport_ = + private void ensureImagesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + images_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport>(groundingSupport_); - bitField0_ |= 0x00000010; + .GroundingMetadata.ImageMetadata>(images_); + bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport, + .GroundingMetadata.ImageMetadata, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder, + .GroundingMetadata.ImageMetadata.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder> - groundingSupportBuilder_; + .GroundingMetadata.ImageMetadataOrBuilder> + imagesBuilder_; /** * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport> - getGroundingSupportList() { - if (groundingSupportBuilder_ == null) { - return java.util.Collections.unmodifiableList(groundingSupport_); + .GroundingMetadata.ImageMetadata> + getImagesList() { + if (imagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(images_); } else { - return groundingSupportBuilder_.getMessageList(); + return imagesBuilder_.getMessageList(); } } @@ -12095,20 +13740,18 @@ private void ensureGroundingSupportIsMutable() { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public int getGroundingSupportCount() { - if (groundingSupportBuilder_ == null) { - return groundingSupport_.size(); + public int getImagesCount() { + if (imagesBuilder_ == null) { + return images_.size(); } else { - return groundingSupportBuilder_.getCount(); + return imagesBuilder_.getCount(); } } @@ -12116,22 +13759,20 @@ public int getGroundingSupportCount() { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport - getGroundingSupport(int index) { - if (groundingSupportBuilder_ == null) { - return groundingSupport_.get(index); + .GroundingMetadata.ImageMetadata + getImages(int index) { + if (imagesBuilder_ == null) { + return images_.get(index); } else { - return groundingSupportBuilder_.getMessage(index); + return imagesBuilder_.getMessage(index); } } @@ -12139,29 +13780,27 @@ public int getGroundingSupportCount() { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder setGroundingSupport( + public Builder setImages( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport + .GroundingMetadata.ImageMetadata value) { - if (groundingSupportBuilder_ == null) { + if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingSupportIsMutable(); - groundingSupport_.set(index, value); + ensureImagesIsMutable(); + images_.set(index, value); onChanged(); } else { - groundingSupportBuilder_.setMessage(index, value); + imagesBuilder_.setMessage(index, value); } return this; } @@ -12170,26 +13809,24 @@ public Builder setGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder setGroundingSupport( + public Builder setImages( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder + .GroundingMetadata.ImageMetadata.Builder builderForValue) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.set(index, builderForValue.build()); + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.set(index, builderForValue.build()); onChanged(); } else { - groundingSupportBuilder_.setMessage(index, builderForValue.build()); + imagesBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -12198,28 +13835,26 @@ public Builder setGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder addGroundingSupport( + public Builder addImages( com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport + .GroundingMetadata.ImageMetadata value) { - if (groundingSupportBuilder_ == null) { + if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingSupportIsMutable(); - groundingSupport_.add(value); + ensureImagesIsMutable(); + images_.add(value); onChanged(); } else { - groundingSupportBuilder_.addMessage(value); + imagesBuilder_.addMessage(value); } return this; } @@ -12228,29 +13863,27 @@ public Builder addGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder addGroundingSupport( + public Builder addImages( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport + .GroundingMetadata.ImageMetadata value) { - if (groundingSupportBuilder_ == null) { + if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingSupportIsMutable(); - groundingSupport_.add(index, value); + ensureImagesIsMutable(); + images_.add(index, value); onChanged(); } else { - groundingSupportBuilder_.addMessage(index, value); + imagesBuilder_.addMessage(index, value); } return this; } @@ -12259,25 +13892,23 @@ public Builder addGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder addGroundingSupport( + public Builder addImages( com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder + .GroundingMetadata.ImageMetadata.Builder builderForValue) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.add(builderForValue.build()); + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(builderForValue.build()); onChanged(); } else { - groundingSupportBuilder_.addMessage(builderForValue.build()); + imagesBuilder_.addMessage(builderForValue.build()); } return this; } @@ -12286,26 +13917,24 @@ public Builder addGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder addGroundingSupport( + public Builder addImages( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder + .GroundingMetadata.ImageMetadata.Builder builderForValue) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.add(index, builderForValue.build()); + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(index, builderForValue.build()); onChanged(); } else { - groundingSupportBuilder_.addMessage(index, builderForValue.build()); + imagesBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -12314,27 +13943,25 @@ public Builder addGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder addAllGroundingSupport( + public Builder addAllImages( java.lang.Iterable< ? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport> + .Candidate.GroundingMetadata.ImageMetadata> values) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupport_); + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); onChanged(); } else { - groundingSupportBuilder_.addAllMessages(values); + imagesBuilder_.addAllMessages(values); } return this; } @@ -12343,22 +13970,20 @@ public Builder addAllGroundingSupport( * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder clearGroundingSupport() { - if (groundingSupportBuilder_ == null) { - groundingSupport_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearImages() { + if (imagesBuilder_ == null) { + images_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { - groundingSupportBuilder_.clear(); + imagesBuilder_.clear(); } return this; } @@ -12367,22 +13992,20 @@ public Builder clearGroundingSupport() { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder removeGroundingSupport(int index) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.remove(index); + public Builder removeImages(int index) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.remove(index); onChanged(); } else { - groundingSupportBuilder_.remove(index); + imagesBuilder_.remove(index); } return this; } @@ -12391,41 +14014,37 @@ public Builder removeGroundingSupport(int index) { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder - getGroundingSupportBuilder(int index) { - return internalGetGroundingSupportFieldBuilder().getBuilder(index); + .GroundingMetadata.ImageMetadata.Builder + getImagesBuilder(int index) { + return internalGetImagesFieldBuilder().getBuilder(index); } /** * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder - getGroundingSupportOrBuilder(int index) { - if (groundingSupportBuilder_ == null) { - return groundingSupport_.get(index); + .GroundingMetadata.ImageMetadataOrBuilder + getImagesOrBuilder(int index) { + if (imagesBuilder_ == null) { + return images_.get(index); } else { - return groundingSupportBuilder_.getMessageOrBuilder(index); + return imagesBuilder_.getMessageOrBuilder(index); } } @@ -12433,24 +14052,22 @@ public Builder removeGroundingSupport(int index) { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public java.util.List< ? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder> - getGroundingSupportOrBuilderList() { - if (groundingSupportBuilder_ != null) { - return groundingSupportBuilder_.getMessageOrBuilderList(); + .GroundingMetadata.ImageMetadataOrBuilder> + getImagesOrBuilderList() { + if (imagesBuilder_ != null) { + return imagesBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(groundingSupport_); + return java.util.Collections.unmodifiableList(images_); } } @@ -12458,136 +14075,127 @@ public Builder removeGroundingSupport(int index) { * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder - addGroundingSupportBuilder() { - return internalGetGroundingSupportFieldBuilder() + .GroundingMetadata.ImageMetadata.Builder + addImagesBuilder() { + return internalGetImagesFieldBuilder() .addBuilder( com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.getDefaultInstance()); + .GroundingMetadata.ImageMetadata.getDefaultInstance()); } /** * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder - addGroundingSupportBuilder(int index) { - return internalGetGroundingSupportFieldBuilder() + .GroundingMetadata.ImageMetadata.Builder + addImagesBuilder(int index) { + return internalGetImagesFieldBuilder() .addBuilder( index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.getDefaultInstance()); + .GroundingMetadata.ImageMetadata.getDefaultInstance()); } /** * * *
-         * GroundingSupport across all claims in the answer candidate.
-         * An support to a fact indicates that the claim is supported by
-         * the fact.
+         * Images from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder> - getGroundingSupportBuilderList() { - return internalGetGroundingSupportFieldBuilder().getBuilderList(); + .GroundingMetadata.ImageMetadata.Builder> + getImagesBuilderList() { + return internalGetImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport, + .GroundingMetadata.ImageMetadata, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder, + .GroundingMetadata.ImageMetadata.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder> - internalGetGroundingSupportFieldBuilder() { - if (groundingSupportBuilder_ == null) { - groundingSupportBuilder_ = + .GroundingMetadata.ImageMetadataOrBuilder> + internalGetImagesFieldBuilder() { + if (imagesBuilder_ == null) { + imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport, + .GroundingMetadata.ImageMetadata, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder, + .GroundingMetadata.ImageMetadata.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder>( - groundingSupport_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - groundingSupport_ = null; + .GroundingMetadata.ImageMetadataOrBuilder>( + images_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + images_ = null; } - return groundingSupportBuilder_; + return imagesBuilder_; } private java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata> - images_ = java.util.Collections.emptyList(); + .GroundingMetadata.VideoMetadata> + videos_ = java.util.Collections.emptyList(); - private void ensureImagesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - images_ = + private void ensureVideosIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + videos_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata>(images_); - bitField0_ |= 0x00000020; + .GroundingMetadata.VideoMetadata>(videos_); + bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata, + .GroundingMetadata.VideoMetadata, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder, + .GroundingMetadata.VideoMetadata.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadataOrBuilder> - imagesBuilder_; + .GroundingMetadata.VideoMetadataOrBuilder> + videosBuilder_; /** * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata> - getImagesList() { - if (imagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(images_); + .GroundingMetadata.VideoMetadata> + getVideosList() { + if (videosBuilder_ == null) { + return java.util.Collections.unmodifiableList(videos_); } else { - return imagesBuilder_.getMessageList(); + return videosBuilder_.getMessageList(); } } @@ -12595,18 +14203,18 @@ private void ensureImagesIsMutable() { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public int getImagesCount() { - if (imagesBuilder_ == null) { - return images_.size(); + public int getVideosCount() { + if (videosBuilder_ == null) { + return videos_.size(); } else { - return imagesBuilder_.getCount(); + return videosBuilder_.getCount(); } } @@ -12614,20 +14222,20 @@ public int getImagesCount() { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata - getImages(int index) { - if (imagesBuilder_ == null) { - return images_.get(index); + .GroundingMetadata.VideoMetadata + getVideos(int index) { + if (videosBuilder_ == null) { + return videos_.get(index); } else { - return imagesBuilder_.getMessage(index); + return videosBuilder_.getMessage(index); } } @@ -12635,27 +14243,27 @@ public int getImagesCount() { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder setImages( + public Builder setVideos( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata + .GroundingMetadata.VideoMetadata value) { - if (imagesBuilder_ == null) { + if (videosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureImagesIsMutable(); - images_.set(index, value); + ensureVideosIsMutable(); + videos_.set(index, value); onChanged(); } else { - imagesBuilder_.setMessage(index, value); + videosBuilder_.setMessage(index, value); } return this; } @@ -12664,24 +14272,24 @@ public Builder setImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder setImages( + public Builder setVideos( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder + .GroundingMetadata.VideoMetadata.Builder builderForValue) { - if (imagesBuilder_ == null) { - ensureImagesIsMutable(); - images_.set(index, builderForValue.build()); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.set(index, builderForValue.build()); onChanged(); } else { - imagesBuilder_.setMessage(index, builderForValue.build()); + videosBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -12690,26 +14298,26 @@ public Builder setImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addImages( + public Builder addVideos( com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata + .GroundingMetadata.VideoMetadata value) { - if (imagesBuilder_ == null) { + if (videosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureImagesIsMutable(); - images_.add(value); + ensureVideosIsMutable(); + videos_.add(value); onChanged(); } else { - imagesBuilder_.addMessage(value); + videosBuilder_.addMessage(value); } return this; } @@ -12718,27 +14326,27 @@ public Builder addImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addImages( + public Builder addVideos( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata + .GroundingMetadata.VideoMetadata value) { - if (imagesBuilder_ == null) { + if (videosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureImagesIsMutable(); - images_.add(index, value); + ensureVideosIsMutable(); + videos_.add(index, value); onChanged(); } else { - imagesBuilder_.addMessage(index, value); + videosBuilder_.addMessage(index, value); } return this; } @@ -12747,23 +14355,23 @@ public Builder addImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addImages( + public Builder addVideos( com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder + .GroundingMetadata.VideoMetadata.Builder builderForValue) { - if (imagesBuilder_ == null) { - ensureImagesIsMutable(); - images_.add(builderForValue.build()); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.add(builderForValue.build()); onChanged(); } else { - imagesBuilder_.addMessage(builderForValue.build()); + videosBuilder_.addMessage(builderForValue.build()); } return this; } @@ -12772,24 +14380,24 @@ public Builder addImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addImages( + public Builder addVideos( int index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder + .GroundingMetadata.VideoMetadata.Builder builderForValue) { - if (imagesBuilder_ == null) { - ensureImagesIsMutable(); - images_.add(index, builderForValue.build()); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.add(index, builderForValue.build()); onChanged(); } else { - imagesBuilder_.addMessage(index, builderForValue.build()); + videosBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -12798,25 +14406,25 @@ public Builder addImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addAllImages( + public Builder addAllVideos( java.lang.Iterable< ? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.ImageMetadata> + .Candidate.GroundingMetadata.VideoMetadata> values) { - if (imagesBuilder_ == null) { - ensureImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videos_); onChanged(); } else { - imagesBuilder_.addAllMessages(values); + videosBuilder_.addAllMessages(values); } return this; } @@ -12825,20 +14433,20 @@ public Builder addAllImages( * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder clearImages() { - if (imagesBuilder_ == null) { - images_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearVideos() { + if (videosBuilder_ == null) { + videos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { - imagesBuilder_.clear(); + videosBuilder_.clear(); } return this; } @@ -12847,20 +14455,20 @@ public Builder clearImages() { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder removeImages(int index) { - if (imagesBuilder_ == null) { - ensureImagesIsMutable(); - images_.remove(index); + public Builder removeVideos(int index) { + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.remove(index); onChanged(); } else { - imagesBuilder_.remove(index); + videosBuilder_.remove(index); } return this; } @@ -12869,37 +14477,37 @@ public Builder removeImages(int index) { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder - getImagesBuilder(int index) { - return internalGetImagesFieldBuilder().getBuilder(index); + .GroundingMetadata.VideoMetadata.Builder + getVideosBuilder(int index) { + return internalGetVideosFieldBuilder().getBuilder(index); } /** * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadataOrBuilder - getImagesOrBuilder(int index) { - if (imagesBuilder_ == null) { - return images_.get(index); + .GroundingMetadata.VideoMetadataOrBuilder + getVideosOrBuilder(int index) { + if (videosBuilder_ == null) { + return videos_.get(index); } else { - return imagesBuilder_.getMessageOrBuilder(index); + return videosBuilder_.getMessageOrBuilder(index); } } @@ -12907,22 +14515,22 @@ public Builder removeImages(int index) { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public java.util.List< ? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadataOrBuilder> - getImagesOrBuilderList() { - if (imagesBuilder_ != null) { - return imagesBuilder_.getMessageOrBuilderList(); + .GroundingMetadata.VideoMetadataOrBuilder> + getVideosOrBuilderList() { + if (videosBuilder_ != null) { + return videosBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(images_); + return java.util.Collections.unmodifiableList(videos_); } } @@ -12930,82 +14538,82 @@ public Builder removeImages(int index) { * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder - addImagesBuilder() { - return internalGetImagesFieldBuilder() + .GroundingMetadata.VideoMetadata.Builder + addVideosBuilder() { + return internalGetVideosFieldBuilder() .addBuilder( com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.getDefaultInstance()); + .GroundingMetadata.VideoMetadata.getDefaultInstance()); } /** * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder - addImagesBuilder(int index) { - return internalGetImagesFieldBuilder() + .GroundingMetadata.VideoMetadata.Builder + addVideosBuilder(int index) { + return internalGetVideosFieldBuilder() .addBuilder( index, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.getDefaultInstance()); + .GroundingMetadata.VideoMetadata.getDefaultInstance()); } /** * * *
-         * Images from the web search.
+         * Videos from the web search.
          * 
* * - * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public java.util.List< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder> - getImagesBuilderList() { - return internalGetImagesFieldBuilder().getBuilderList(); + .GroundingMetadata.VideoMetadata.Builder> + getVideosBuilderList() { + return internalGetVideosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata, + .GroundingMetadata.VideoMetadata, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder, + .GroundingMetadata.VideoMetadata.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadataOrBuilder> - internalGetImagesFieldBuilder() { - if (imagesBuilder_ == null) { - imagesBuilder_ = + .GroundingMetadata.VideoMetadataOrBuilder> + internalGetVideosFieldBuilder() { + if (videosBuilder_ == null) { + videosBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata, + .GroundingMetadata.VideoMetadata, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadata.Builder, + .GroundingMetadata.VideoMetadata.Builder, com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.ImageMetadataOrBuilder>( - images_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - images_ = null; + .GroundingMetadata.VideoMetadataOrBuilder>( + videos_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + videos_ = null; } - return imagesBuilder_; + return videosBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequest.java new file mode 100644 index 000000000000..ba8c300b5a65 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for GetAclConfigRequest method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetAclConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetAclConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetAclConfigRequest) + GetAclConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAclConfigRequest"); + } + + // Use GetAclConfigRequest.newBuilder() to construct. + private GetAclConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetAclConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+   * `projects/*/locations/*/aclConfig`.
+   *
+   * If the caller does not have permission to access the
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+   * `projects/*/locations/*/aclConfig`.
+   *
+   * If the caller does not have permission to access the
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetAclConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetAclConfigRequest other = + (com.google.cloud.discoveryengine.v1.GetAclConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GetAclConfigRequest method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetAclConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetAclConfigRequest) + com.google.cloud.discoveryengine.v1.GetAclConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetAclConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetAclConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetAclConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAclConfigRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetAclConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAclConfigRequest build() { + com.google.cloud.discoveryengine.v1.GetAclConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAclConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetAclConfigRequest result = + new com.google.cloud.discoveryengine.v1.GetAclConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetAclConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetAclConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetAclConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetAclConfigRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetAclConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+     * `projects/*/locations/*/aclConfig`.
+     *
+     * If the caller does not have permission to access the
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+     * `projects/*/locations/*/aclConfig`.
+     *
+     * If the caller does not have permission to access the
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+     * `projects/*/locations/*/aclConfig`.
+     *
+     * If the caller does not have permission to access the
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+     * `projects/*/locations/*/aclConfig`.
+     *
+     * If the caller does not have permission to access the
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+     * `projects/*/locations/*/aclConfig`.
+     *
+     * If the caller does not have permission to access the
+     * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetAclConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetAclConfigRequest) + private static final com.google.cloud.discoveryengine.v1.GetAclConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetAclConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetAclConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAclConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequestOrBuilder.java new file mode 100644 index 000000000000..acfebbb3a23a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAclConfigRequestOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetAclConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetAclConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+   * `projects/*/locations/*/aclConfig`.
+   *
+   * If the caller does not have permission to access the
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as
+   * `projects/*/locations/*/aclConfig`.
+   *
+   * If the caller does not have permission to access the
+   * [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequest.java new file mode 100644 index 000000000000..e755f7d36a34 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for the
+ * [AssistantService.GetAssistant][google.cloud.discoveryengine.v1.AssistantService.GetAssistant]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetAssistantRequest} + */ +@com.google.protobuf.Generated +public final class GetAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetAssistantRequest) + GetAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAssistantRequest"); + } + + // Use GetAssistantRequest.newBuilder() to construct. + private GetAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAssistantRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetAssistantRequest.class, + com.google.cloud.discoveryengine.v1.GetAssistantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetAssistantRequest other = + (com.google.cloud.discoveryengine.v1.GetAssistantRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the
+   * [AssistantService.GetAssistant][google.cloud.discoveryengine.v1.AssistantService.GetAssistant]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetAssistantRequest) + com.google.cloud.discoveryengine.v1.GetAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetAssistantRequest.class, + com.google.cloud.discoveryengine.v1.GetAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetAssistantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAssistantRequest build() { + com.google.cloud.discoveryengine.v1.GetAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetAssistantRequest result = + new com.google.cloud.discoveryengine.v1.GetAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetAssistantRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetAssistantRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Resource name of
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetAssistantRequest) + private static final com.google.cloud.discoveryengine.v1.GetAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..bbde12955ad8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetAssistantRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Resource name of
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequest.java new file mode 100644 index 000000000000..c75136de64ee --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequest.java @@ -0,0 +1,685 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for
+ * [DataConnectorService.GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetDataConnectorRequest} + */ +@com.google.protobuf.Generated +public final class GetDataConnectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetDataConnectorRequest) + GetDataConnectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetDataConnectorRequest"); + } + + // Use GetDataConnectorRequest.newBuilder() to construct. + private GetDataConnectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetDataConnectorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.class, + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Full resource name of
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+   *
+   * If the caller does not have permission to access the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+   * exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+   *
+   * If the caller does not have permission to access the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+   * exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetDataConnectorRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest other = + (com.google.cloud.discoveryengine.v1.GetDataConnectorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for
+   * [DataConnectorService.GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetDataConnectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetDataConnectorRequest) + com.google.cloud.discoveryengine.v1.GetDataConnectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.class, + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetDataConnectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetDataConnectorRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetDataConnectorRequest build() { + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetDataConnectorRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetDataConnectorRequest result = + new com.google.cloud.discoveryengine.v1.GetDataConnectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetDataConnectorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetDataConnectorRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetDataConnectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetDataConnectorRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetDataConnectorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Full resource name of
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+     *
+     * If the caller does not have permission to access the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+     * exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+     *
+     * If the caller does not have permission to access the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+     * exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+     *
+     * If the caller does not have permission to access the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+     * exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+     *
+     * If the caller does not have permission to access the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+     * exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+     *
+     * If the caller does not have permission to access the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the requested
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+     * exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetDataConnectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetDataConnectorRequest) + private static final com.google.cloud.discoveryengine.v1.GetDataConnectorRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetDataConnectorRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetDataConnectorRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetDataConnectorRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequestOrBuilder.java new file mode 100644 index 000000000000..2be4651d6f84 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetDataConnectorRequestOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetDataConnectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetDataConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+   *
+   * If the caller does not have permission to access the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+   * exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Full resource name of
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`.
+   *
+   * If the caller does not have permission to access the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the requested
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not
+   * exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequest.java new file mode 100644 index 000000000000..de865736e779 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequest.java @@ -0,0 +1,685 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [LicenseConfigService.GetLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.GetLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetLicenseConfigRequest) + GetLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetLicenseConfigRequest"); + } + + // Use GetLicenseConfigRequest.newBuilder() to construct. + private GetLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetLicenseConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+   * `projects/{project}/locations/{location}/licenseConfigs/*`.
+   *
+   * If the caller does not have permission to access the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+   * of whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the requested
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+   * exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+   * `projects/{project}/locations/{location}/licenseConfigs/*`.
+   *
+   * If the caller does not have permission to access the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+   * of whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the requested
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+   * exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [LicenseConfigService.GetLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.GetLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetLicenseConfigRequest) + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+     * `projects/{project}/locations/{location}/licenseConfigs/*`.
+     *
+     * If the caller does not have permission to access the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+     * of whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the requested
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+     * exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+     * `projects/{project}/locations/{location}/licenseConfigs/*`.
+     *
+     * If the caller does not have permission to access the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+     * of whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the requested
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+     * exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+     * `projects/{project}/locations/{location}/licenseConfigs/*`.
+     *
+     * If the caller does not have permission to access the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+     * of whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the requested
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+     * exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+     * `projects/{project}/locations/{location}/licenseConfigs/*`.
+     *
+     * If the caller does not have permission to access the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+     * of whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the requested
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+     * exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+     * `projects/{project}/locations/{location}/licenseConfigs/*`.
+     *
+     * If the caller does not have permission to access the
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+     * of whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the requested
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+     * exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..49d46dfc1a77 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetLicenseConfigRequestOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+   * `projects/{project}/locations/{location}/licenseConfigs/*`.
+   *
+   * If the caller does not have permission to access the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+   * of whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the requested
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+   * exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as
+   * `projects/{project}/locations/{location}/licenseConfigs/*`.
+   *
+   * If the caller does not have permission to access the
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless
+   * of whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the requested
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not
+   * exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequest.java new file mode 100644 index 000000000000..9f5b8aa885dd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequest.java @@ -0,0 +1,618 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for GetServingConfig method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetServingConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetServingConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetServingConfigRequest) + GetServingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetServingConfigRequest"); + } + + // Use GetServingConfigRequest.newBuilder() to construct. + private GetServingConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetServingConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetServingConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to get. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to get. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetServingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetServingConfigRequest other = + (com.google.cloud.discoveryengine.v1.GetServingConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for GetServingConfig method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetServingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetServingConfigRequest) + com.google.cloud.discoveryengine.v1.GetServingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetServingConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetServingConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetServingConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetServingConfigRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetServingConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetServingConfigRequest build() { + com.google.cloud.discoveryengine.v1.GetServingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetServingConfigRequest result = + new com.google.cloud.discoveryengine.v1.GetServingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetServingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetServingConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetServingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetServingConfigRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetServingConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to get. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to get. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to get. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to get. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the ServingConfig to get. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetServingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1.GetServingConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetServingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetServingConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServingConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetServingConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a3c8b0b4455f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetServingConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to get. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the ServingConfig to get. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequest.java new file mode 100644 index 000000000000..582fdddef12a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [UserStoreService.GetUserStore][google.cloud.discoveryengine.v1.UserStoreService.GetUserStore]
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetUserStoreRequest} + */ +@com.google.protobuf.Generated +public final class GetUserStoreRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetUserStoreRequest) + GetUserStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetUserStoreRequest"); + } + + // Use GetUserStoreRequest.newBuilder() to construct. + private GetUserStoreRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetUserStoreRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest.class, + com.google.cloud.discoveryengine.v1.GetUserStoreRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the User Store to get.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the User Store to get.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetUserStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetUserStoreRequest other = + (com.google.cloud.discoveryengine.v1.GetUserStoreRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [UserStoreService.GetUserStore][google.cloud.discoveryengine.v1.UserStoreService.GetUserStore]
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetUserStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetUserStoreRequest) + com.google.cloud.discoveryengine.v1.GetUserStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetUserStoreRequest.class, + com.google.cloud.discoveryengine.v1.GetUserStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetUserStoreRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetUserStoreRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetUserStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetUserStoreRequest build() { + com.google.cloud.discoveryengine.v1.GetUserStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetUserStoreRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetUserStoreRequest result = + new com.google.cloud.discoveryengine.v1.GetUserStoreRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetUserStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetUserStoreRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetUserStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetUserStoreRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetUserStoreRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the User Store to get.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the User Store to get.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the User Store to get.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the User Store to get.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the User Store to get.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetUserStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetUserStoreRequest) + private static final com.google.cloud.discoveryengine.v1.GetUserStoreRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetUserStoreRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetUserStoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetUserStoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequestOrBuilder.java new file mode 100644 index 000000000000..f70f34228be9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetUserStoreRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetUserStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetUserStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the User Store to get.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the User Store to get.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequest.java new file mode 100644 index 000000000000..d09efebac14d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequest.java @@ -0,0 +1,2092 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for
+ * [WidgetConfigService.GetWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.GetWidgetConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetWidgetConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetWidgetConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetWidgetConfigRequest) + GetWidgetConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetWidgetConfigRequest"); + } + + // Use GetWidgetConfigRequest.newBuilder() to construct. + private GetWidgetConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetWidgetConfigRequest() { + name_ = ""; + languageCode_ = ""; + modelInfoView_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.Builder.class); + } + + public interface GetWidgetConfigRequestOptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Whether to turn off collection_components in WidgetConfig to
+     * reduce latency and data transmission.
+     * 
+ * + * bool turn_off_collection_components = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The turnOffCollectionComponents. + */ + boolean getTurnOffCollectionComponents(); + } + + /** + * + * + *
+   * Options for GetWidgetConfigRequest.
+   * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption} + */ + public static final class GetWidgetConfigRequestOption + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption) + GetWidgetConfigRequestOptionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetWidgetConfigRequestOption"); + } + + // Use GetWidgetConfigRequestOption.newBuilder() to construct. + private GetWidgetConfigRequestOption(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetWidgetConfigRequestOption() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.class, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.Builder.class); + } + + public static final int TURN_OFF_COLLECTION_COMPONENTS_FIELD_NUMBER = 1; + private boolean turnOffCollectionComponents_ = false; + + /** + * + * + *
+     * Optional. Whether to turn off collection_components in WidgetConfig to
+     * reduce latency and data transmission.
+     * 
+ * + * bool turn_off_collection_components = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The turnOffCollectionComponents. + */ + @java.lang.Override + public boolean getTurnOffCollectionComponents() { + return turnOffCollectionComponents_; + } + + 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 (turnOffCollectionComponents_ != false) { + output.writeBool(1, turnOffCollectionComponents_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (turnOffCollectionComponents_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, turnOffCollectionComponents_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + other = + (com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption) + obj; + + if (getTurnOffCollectionComponents() != other.getTurnOffCollectionComponents()) 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) + TURN_OFF_COLLECTION_COMPONENTS_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTurnOffCollectionComponents()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for GetWidgetConfigRequest.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption) + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.class, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnOffCollectionComponents_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + build() { + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + buildPartial() { + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + result = + new com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnOffCollectionComponents_ = turnOffCollectionComponents_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + other) { + if (other + == com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.getDefaultInstance()) return this; + if (other.getTurnOffCollectionComponents() != false) { + setTurnOffCollectionComponents(other.getTurnOffCollectionComponents()); + } + 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: + { + turnOffCollectionComponents_ = 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 turnOffCollectionComponents_; + + /** + * + * + *
+       * Optional. Whether to turn off collection_components in WidgetConfig to
+       * reduce latency and data transmission.
+       * 
+ * + * bool turn_off_collection_components = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The turnOffCollectionComponents. + */ + @java.lang.Override + public boolean getTurnOffCollectionComponents() { + return turnOffCollectionComponents_; + } + + /** + * + * + *
+       * Optional. Whether to turn off collection_components in WidgetConfig to
+       * reduce latency and data transmission.
+       * 
+ * + * bool turn_off_collection_components = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The turnOffCollectionComponents to set. + * @return This builder for chaining. + */ + public Builder setTurnOffCollectionComponents(boolean value) { + + turnOffCollectionComponents_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether to turn off collection_components in WidgetConfig to
+       * reduce latency and data transmission.
+       * 
+ * + * bool turn_off_collection_components = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTurnOffCollectionComponents() { + bitField0_ = (bitField0_ & ~0x00000001); + turnOffCollectionComponents_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption) + private static final com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption(); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWidgetConfigRequestOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Full WidgetConfig resource name. Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full WidgetConfig resource name. Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCEPT_CACHE_FIELD_NUMBER = 2; + private boolean acceptCache_ = false; + + /** + * + * + *
+   * Optional. Whether it's acceptable to load the widget config from cache. If
+   * set to true, recent changes on widget configs may take a few minutes to
+   * reflect on the end user's view. It's recommended to set to true for
+   * maturely developed widgets, as it improves widget performance. Set to false
+   * to see changes reflected in prod right away, if your widget is under
+   * development.
+   * 
+ * + * bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptCache. + */ + @java.lang.Override + public boolean getAcceptCache() { + return acceptCache_; + } + + public static final int GET_WIDGET_CONFIG_REQUEST_OPTION_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getWidgetConfigRequestOption_; + + /** + * + * + *
+   * Optional. Options for GetWidgetConfigRequest.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the getWidgetConfigRequestOption field is set. + */ + @java.lang.Override + public boolean hasGetWidgetConfigRequestOption() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Options for GetWidgetConfigRequest.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The getWidgetConfigRequestOption. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getGetWidgetConfigRequestOption() { + return getWidgetConfigRequestOption_ == null + ? com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + .getDefaultInstance() + : getWidgetConfigRequestOption_; + } + + /** + * + * + *
+   * Optional. Options for GetWidgetConfigRequest.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOptionOrBuilder + getGetWidgetConfigRequestOptionOrBuilder() { + return getWidgetConfigRequestOption_ == null + ? com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + .getDefaultInstance() + : getWidgetConfigRequestOption_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
+   * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+   * human-readable strings in the response, such as the model selector
+   * `display_name` / `description` on
+   * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+   * the default language (English).
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+   * human-readable strings in the response, such as the model selector
+   * `display_name` / `description` on
+   * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+   * the default language (English).
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_INFO_VIEW_FIELD_NUMBER = 5; + private int modelInfoView_ = 0; + + /** + * + * + *
+   * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+   * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+   * Management" page to receive the admin-surfaced
+   * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+   * set by the Gemini Enterprise mobile app to receive the mobile model set;
+   * unset / `END_USER_WEB` returns the end-user web selector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modelInfoView. + */ + @java.lang.Override + public int getModelInfoViewValue() { + return modelInfoView_; + } + + /** + * + * + *
+   * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+   * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+   * Management" page to receive the admin-surfaced
+   * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+   * set by the Gemini Enterprise mobile app to receive the mobile model set;
+   * unset / `END_USER_WEB` returns the end-user web selector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelInfoView. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ModelInfoView getModelInfoView() { + com.google.cloud.discoveryengine.v1.ModelInfoView result = + com.google.cloud.discoveryengine.v1.ModelInfoView.forNumber(modelInfoView_); + return result == null ? com.google.cloud.discoveryengine.v1.ModelInfoView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (acceptCache_ != false) { + output.writeBool(2, acceptCache_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getGetWidgetConfigRequestOption()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, languageCode_); + } + if (modelInfoView_ + != com.google.cloud.discoveryengine.v1.ModelInfoView.MODEL_INFO_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, modelInfoView_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (acceptCache_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, acceptCache_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getGetWidgetConfigRequestOption()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, languageCode_); + } + if (modelInfoView_ + != com.google.cloud.discoveryengine.v1.ModelInfoView.MODEL_INFO_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, modelInfoView_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest other = + (com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getAcceptCache() != other.getAcceptCache()) return false; + if (hasGetWidgetConfigRequestOption() != other.hasGetWidgetConfigRequestOption()) return false; + if (hasGetWidgetConfigRequestOption()) { + if (!getGetWidgetConfigRequestOption().equals(other.getGetWidgetConfigRequestOption())) + return false; + } + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (modelInfoView_ != other.modelInfoView_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ACCEPT_CACHE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptCache()); + if (hasGetWidgetConfigRequestOption()) { + hash = (37 * hash) + GET_WIDGET_CONFIG_REQUEST_OPTION_FIELD_NUMBER; + hash = (53 * hash) + getGetWidgetConfigRequestOption().hashCode(); + } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + MODEL_INFO_VIEW_FIELD_NUMBER; + hash = (53 * hash) + modelInfoView_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for
+   * [WidgetConfigService.GetWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.GetWidgetConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.GetWidgetConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.GetWidgetConfigRequest) + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.class, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGetWidgetConfigRequestOptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + acceptCache_ = false; + getWidgetConfigRequestOption_ = null; + if (getWidgetConfigRequestOptionBuilder_ != null) { + getWidgetConfigRequestOptionBuilder_.dispose(); + getWidgetConfigRequestOptionBuilder_ = null; + } + languageCode_ = ""; + modelInfoView_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest build() { + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest result = + new com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceptCache_ = acceptCache_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.getWidgetConfigRequestOption_ = + getWidgetConfigRequestOptionBuilder_ == null + ? getWidgetConfigRequestOption_ + : getWidgetConfigRequestOptionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.modelInfoView_ = modelInfoView_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest other) { + if (other == com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAcceptCache() != false) { + setAcceptCache(other.getAcceptCache()); + } + if (other.hasGetWidgetConfigRequestOption()) { + mergeGetWidgetConfigRequestOption(other.getGetWidgetConfigRequestOption()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.modelInfoView_ != 0) { + setModelInfoViewValue(other.getModelInfoViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + acceptCache_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetGetWidgetConfigRequestOptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + modelInfoView_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Full WidgetConfig resource name. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full WidgetConfig resource name. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full WidgetConfig resource name. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full WidgetConfig resource name. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full WidgetConfig resource name. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean acceptCache_; + + /** + * + * + *
+     * Optional. Whether it's acceptable to load the widget config from cache. If
+     * set to true, recent changes on widget configs may take a few minutes to
+     * reflect on the end user's view. It's recommended to set to true for
+     * maturely developed widgets, as it improves widget performance. Set to false
+     * to see changes reflected in prod right away, if your widget is under
+     * development.
+     * 
+ * + * bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptCache. + */ + @java.lang.Override + public boolean getAcceptCache() { + return acceptCache_; + } + + /** + * + * + *
+     * Optional. Whether it's acceptable to load the widget config from cache. If
+     * set to true, recent changes on widget configs may take a few minutes to
+     * reflect on the end user's view. It's recommended to set to true for
+     * maturely developed widgets, as it improves widget performance. Set to false
+     * to see changes reflected in prod right away, if your widget is under
+     * development.
+     * 
+ * + * bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The acceptCache to set. + * @return This builder for chaining. + */ + public Builder setAcceptCache(boolean value) { + + acceptCache_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether it's acceptable to load the widget config from cache. If
+     * set to true, recent changes on widget configs may take a few minutes to
+     * reflect on the end user's view. It's recommended to set to true for
+     * maturely developed widgets, as it improves widget performance. Set to false
+     * to see changes reflected in prod right away, if your widget is under
+     * development.
+     * 
+ * + * bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAcceptCache() { + bitField0_ = (bitField0_ & ~0x00000002); + acceptCache_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getWidgetConfigRequestOption_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + .Builder, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOptionOrBuilder> + getWidgetConfigRequestOptionBuilder_; + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the getWidgetConfigRequestOption field is set. + */ + public boolean hasGetWidgetConfigRequestOption() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The getWidgetConfigRequestOption. + */ + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getGetWidgetConfigRequestOption() { + if (getWidgetConfigRequestOptionBuilder_ == null) { + return getWidgetConfigRequestOption_ == null + ? com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.getDefaultInstance() + : getWidgetConfigRequestOption_; + } else { + return getWidgetConfigRequestOptionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGetWidgetConfigRequestOption( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + value) { + if (getWidgetConfigRequestOptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + getWidgetConfigRequestOption_ = value; + } else { + getWidgetConfigRequestOptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGetWidgetConfigRequestOption( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + .Builder + builderForValue) { + if (getWidgetConfigRequestOptionBuilder_ == null) { + getWidgetConfigRequestOption_ = builderForValue.build(); + } else { + getWidgetConfigRequestOptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGetWidgetConfigRequestOption( + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + value) { + if (getWidgetConfigRequestOptionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && getWidgetConfigRequestOption_ != null + && getWidgetConfigRequestOption_ + != com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.getDefaultInstance()) { + getGetWidgetConfigRequestOptionBuilder().mergeFrom(value); + } else { + getWidgetConfigRequestOption_ = value; + } + } else { + getWidgetConfigRequestOptionBuilder_.mergeFrom(value); + } + if (getWidgetConfigRequestOption_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGetWidgetConfigRequestOption() { + bitField0_ = (bitField0_ & ~0x00000004); + getWidgetConfigRequestOption_ = null; + if (getWidgetConfigRequestOptionBuilder_ != null) { + getWidgetConfigRequestOptionBuilder_.dispose(); + getWidgetConfigRequestOptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + .Builder + getGetWidgetConfigRequestOptionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetGetWidgetConfigRequestOptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOptionOrBuilder + getGetWidgetConfigRequestOptionOrBuilder() { + if (getWidgetConfigRequestOptionBuilder_ != null) { + return getWidgetConfigRequestOptionBuilder_.getMessageOrBuilder(); + } else { + return getWidgetConfigRequestOption_ == null + ? com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.getDefaultInstance() + : getWidgetConfigRequestOption_; + } + } + + /** + * + * + *
+     * Optional. Options for GetWidgetConfigRequest.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + .Builder, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOptionOrBuilder> + internalGetGetWidgetConfigRequestOptionFieldBuilder() { + if (getWidgetConfigRequestOptionBuilder_ == null) { + getWidgetConfigRequestOptionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOption.Builder, + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest + .GetWidgetConfigRequestOptionOrBuilder>( + getGetWidgetConfigRequestOption(), getParentForChildren(), isClean()); + getWidgetConfigRequestOption_ = null; + } + return getWidgetConfigRequestOptionBuilder_; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
+     * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+     * human-readable strings in the response, such as the model selector
+     * `display_name` / `description` on
+     * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+     * the default language (English).
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+     * human-readable strings in the response, such as the model selector
+     * `display_name` / `description` on
+     * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+     * the default language (English).
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+     * human-readable strings in the response, such as the model selector
+     * `display_name` / `description` on
+     * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+     * the default language (English).
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+     * human-readable strings in the response, such as the model selector
+     * `display_name` / `description` on
+     * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+     * the default language (English).
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+     * human-readable strings in the response, such as the model selector
+     * `display_name` / `description` on
+     * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+     * the default language (English).
+     * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int modelInfoView_ = 0; + + /** + * + * + *
+     * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+     * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+     * Management" page to receive the admin-surfaced
+     * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+     * set by the Gemini Enterprise mobile app to receive the mobile model set;
+     * unset / `END_USER_WEB` returns the end-user web selector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modelInfoView. + */ + @java.lang.Override + public int getModelInfoViewValue() { + return modelInfoView_; + } + + /** + * + * + *
+     * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+     * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+     * Management" page to receive the admin-surfaced
+     * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+     * set by the Gemini Enterprise mobile app to receive the mobile model set;
+     * unset / `END_USER_WEB` returns the end-user web selector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for modelInfoView to set. + * @return This builder for chaining. + */ + public Builder setModelInfoViewValue(int value) { + modelInfoView_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+     * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+     * Management" page to receive the admin-surfaced
+     * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+     * set by the Gemini Enterprise mobile app to receive the mobile model set;
+     * unset / `END_USER_WEB` returns the end-user web selector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelInfoView. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ModelInfoView getModelInfoView() { + com.google.cloud.discoveryengine.v1.ModelInfoView result = + com.google.cloud.discoveryengine.v1.ModelInfoView.forNumber(modelInfoView_); + return result == null + ? com.google.cloud.discoveryengine.v1.ModelInfoView.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+     * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+     * Management" page to receive the admin-surfaced
+     * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+     * set by the Gemini Enterprise mobile app to receive the mobile model set;
+     * unset / `END_USER_WEB` returns the end-user web selector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The modelInfoView to set. + * @return This builder for chaining. + */ + public Builder setModelInfoView(com.google.cloud.discoveryengine.v1.ModelInfoView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + modelInfoView_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+     * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+     * Management" page to receive the admin-surfaced
+     * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+     * set by the Gemini Enterprise mobile app to receive the mobile model set;
+     * unset / `END_USER_WEB` returns the end-user web selector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearModelInfoView() { + bitField0_ = (bitField0_ & ~0x00000010); + modelInfoView_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.GetWidgetConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.GetWidgetConfigRequest) + private static final com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWidgetConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..95f206e30c79 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GetWidgetConfigRequestOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface GetWidgetConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.GetWidgetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full WidgetConfig resource name. Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Full WidgetConfig resource name. Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Whether it's acceptable to load the widget config from cache. If
+   * set to true, recent changes on widget configs may take a few minutes to
+   * reflect on the end user's view. It's recommended to set to true for
+   * maturely developed widgets, as it improves widget performance. Set to false
+   * to see changes reflected in prod right away, if your widget is under
+   * development.
+   * 
+ * + * bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptCache. + */ + boolean getAcceptCache(); + + /** + * + * + *
+   * Optional. Options for GetWidgetConfigRequest.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the getWidgetConfigRequestOption field is set. + */ + boolean hasGetWidgetConfigRequestOption(); + + /** + * + * + *
+   * Optional. Options for GetWidgetConfigRequest.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The getWidgetConfigRequestOption. + */ + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption + getGetWidgetConfigRequestOption(); + + /** + * + * + *
+   * Optional. Options for GetWidgetConfigRequest.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOptionOrBuilder + getGetWidgetConfigRequestOptionOrBuilder(); + + /** + * + * + *
+   * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+   * human-readable strings in the response, such as the model selector
+   * `display_name` / `description` on
+   * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+   * the default language (English).
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
+   * Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize
+   * human-readable strings in the response, such as the model selector
+   * `display_name` / `description` on
+   * `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to
+   * the default language (English).
+   * 
+ * + * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+   * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+   * Management" page to receive the admin-surfaced
+   * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+   * set by the Gemini Enterprise mobile app to receive the mobile model set;
+   * unset / `END_USER_WEB` returns the end-user web selector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modelInfoView. + */ + int getModelInfoViewValue(); + + /** + * + * + *
+   * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo`
+   * the backend computes. `ADMIN` is set by the Cloud Console admin "Feature
+   * Management" page to receive the admin-surfaced
+   * model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is
+   * set by the Gemini Enterprise mobile app to receive the mobile model set;
+   * unset / `END_USER_WEB` returns the end-user web selector.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelInfoView. + */ + com.google.cloud.discoveryengine.v1.ModelInfoView getModelInfoView(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java index a5a75c620b3d..040c90c8980a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceProto.java @@ -140,6 +140,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -164,6 +168,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_CheckGroundingResponse_Claim_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_CheckGroundingResponse_Claim_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CitationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CitationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Citation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Citation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -178,27 +190,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d.discoveryengine.v1\032\034google/api/annotat" + "ions.proto\032\027google/api/client.proto\032\037goo" + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\032/google/cloud/discoveryengine/v1/grounding.proto\"\231\001\n" + + "/resource.proto\032/google/cloud/discoverye" + + "ngine/v1/grounding.proto\032\026google/type/date.proto\"\231\001\n" + "\031GroundedGenerationContent\022\014\n" + "\004role\030\001 \001(\t\022N\n" - + "\005parts\030\002 " - + "\003(\0132?.google.cloud.discoveryengine.v1.GroundedGenerationContent.Part\032\036\n" + + "\005parts\030\002 \003(\0132?.google.clo" + + "ud.discoveryengine.v1.GroundedGenerationContent.Part\032\036\n" + "\004Part\022\016\n" + "\004text\030\001 \001(\tH\000B\006\n" - + "\004data\"\241\025\n" + + "\004data\"\312\031\n" + "\036GenerateGroundedContentRequest\022B\n" + "\010location\030\001 \001(\tB0\342A\001\002\372A)\n" + "\'discoveryengine.googleapis.com/Location\022V\n" - + "\022system_instruction\030\005 \001(\0132:.google" - + ".cloud.discoveryengine.v1.GroundedGenerationContent\022L\n" - + "\010contents\030\002 \003(\0132:.google.c" - + "loud.discoveryengine.v1.GroundedGenerationContent\022g\n" - + "\017generation_spec\030\003 \001(\0132N.goo" - + "gle.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec\022e\n" - + "\016grounding_spec\030\004 \001(\0132M.google.cloud.discov" - + "eryengine.v1.GenerateGroundedContentRequest.GroundingSpec\022d\n" - + "\013user_labels\030\006 \003(\0132O.google.cloud.discoveryengine.v1.Generat" - + "eGroundedContentRequest.UserLabelsEntry\032\333\002\n" + + "\022system_instruction\030\005" + + " \001(\0132:.google.cloud.discoveryengine.v1.GroundedGenerationContent\022L\n" + + "\010contents\030\002" + + " \003(\0132:.google.cloud.discoveryengine.v1.GroundedGenerationContent\022g\n" + + "\017generation_spec\030\003 \001(\0132N.google.cloud.discov" + + "eryengine.v1.GenerateGroundedContentRequest.GenerationSpec\022e\n" + + "\016grounding_spec\030\004 \001(\0132M.google.cloud.discoveryengine.v1.Gen" + + "erateGroundedContentRequest.GroundingSpec\022d\n" + + "\013user_labels\030\006 \003(\0132O.google.cloud.di" + + "scoveryengine.v1.GenerateGroundedContentRequest.UserLabelsEntry\032\201\005\n" + "\016GenerationSpec\022\020\n" + "\010model_id\030\003 \001(\t\022\025\n\r" + "language_code\030\002 \001(\t\022\030\n" @@ -209,7 +222,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004seed\030\014 \001(\005H\004\210\001\001\022\035\n" + "\020presence_penalty\030\t \001(\002H\005\210\001\001\022\036\n" + "\021max_output_tokens\030\n" - + " \001(\005H\006\210\001\001B\016\n" + + " \001(\005H\006\210\001\001\022\231\001\n" + + "\036provisioned_throughput_setting\030\r" + + " \001(\0162k.google.cloud.discoveryengine.v1.GenerateGroundedConte" + + "ntRequest.GenerationSpec.ProvisionedThroughputSettingB\004\342A\001\001\"\207\001\n" + + "\034ProvisionedThroughputSetting\022.\n" + + "*PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED\020\000\022\037\n" + + "\033PROVISIONED_THROUGHPUT_ONLY\020\001\022\026\n" + + "\022PAY_AS_YOU_GO_ONLY\020\002B\016\n" + "\014_temperatureB\010\n" + "\006_top_pB\010\n" + "\006_top_kB\024\n" @@ -218,34 +238,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_presence_penaltyB\024\n" + "\022_max_output_tokens\032\273\003\n" + "\035DynamicRetrievalConfiguration\022\212\001\n" - + "\tpredictor\030\001 \001(\0132w.google.cloud.discoveryengine.v1.Ge" - + "nerateGroundedContentRequest.DynamicRetr" - + "ievalConfiguration.DynamicRetrievalPredictor\032\214\002\n" + + "\tpredictor\030\001 \001(\0132w.google.cloud.discoveryengine.v1.Gene" + + "rateGroundedContentRequest.DynamicRetrie" + + "valConfiguration.DynamicRetrievalPredictor\032\214\002\n" + "\031DynamicRetrievalPredictor\022\220\001\n" - + "\007version\030\001 \001(\0162\177.google.cloud.discoveryeng" - + "ine.v1.GenerateGroundedContentRequest.Dy" - + "namicRetrievalConfiguration.DynamicRetrievalPredictor.Version\022\026\n" + + "\007version\030\001 \001(\0162\177.google.cloud.discoveryengin" + + "e.v1.GenerateGroundedContentRequest.Dyna" + + "micRetrievalConfiguration.DynamicRetrievalPredictor.Version\022\026\n" + "\tthreshold\030\002 \001(\002H\000\210\001\001\"6\n" + "\007Version\022\027\n" + "\023VERSION_UNSPECIFIED\020\000\022\022\n" + "\016V1_INDEPENDENT\020\001B\014\n\n" - + "_threshold\032\222\t\n" + + "_threshold\032\225\013\n" + "\017GroundingSource\022u\n\r" - + "inline_source\030\001 \001(\0132\\.google.cloud.discoveryengine.v1.Generat" - + "eGroundedContentRequest.GroundingSource.InlineSourceH\000\022u\n\r" - + "search_source\030\002 \001(\0132\\.google.cloud.discoveryengine.v1.Generate" - + "GroundedContentRequest.GroundingSource.SearchSourceH\000\022\202\001\n" - + "\024google_search_source\030\003 \001(\0132b.google.cloud.discoveryengine.v1.G" - + "enerateGroundedContentRequest.GroundingSource.GoogleSearchSourceH\000\022\227\001\n" - + "\037enterprise_web_retrieval_source\030\010 \001(\0132l.google.cl" - + "oud.discoveryengine.v1.GenerateGroundedC" - + "ontentRequest.GroundingSource.EnterpriseWebRetrievalSourceH\000\032\215\002\n" + + "inline_source\030\001 \001(\0132\\.google.cloud.discoveryengine.v1.GenerateG" + + "roundedContentRequest.GroundingSource.InlineSourceH\000\022u\n\r" + + "search_source\030\002 \001(\0132\\.google.cloud.discoveryengine.v1.GenerateGr" + + "oundedContentRequest.GroundingSource.SearchSourceH\000\022\202\001\n" + + "\024google_search_source\030\003 \001(\0132b.google.cloud.discoveryengine.v1.Gen" + + "erateGroundedContentRequest.GroundingSource.GoogleSearchSourceH\000\022\227\001\n" + + "\037enterprise_web_retrieval_source\030\010 \001(\0132l.google.clou" + + "d.discoveryengine.v1.GenerateGroundedCon" + + "tentRequest.GroundingSource.EnterpriseWebRetrievalSourceH\000\032\215\002\n" + "\014InlineSource\022G\n" + "\017grounding_facts\030\001" + " \003(\0132..google.cloud.discoveryengine.v1.GroundingFact\022\200\001\n\n" - + "attributes\030\002 \003(\0132l.google.cloud.discoveryengi" - + "ne.v1.GenerateGroundedContentRequest.Gro" - + "undingSource.InlineSource.AttributesEntry\0321\n" + + "attributes\030\002 \003(\0132l.google.cloud.discoveryengine" + + ".v1.GenerateGroundedContentRequest.GroundingSource.InlineSource.AttributesEntry\0321\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032\230\001\n" @@ -254,49 +273,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",discoveryengine.googleapis.com/ServingConfig\022\030\n" + "\020max_result_count\030\002 \001(\005\022\016\n" + "\006filter\030\003 \001(\t\022\023\n" - + "\013safe_search\030\005 \001(\010\032\234\001\n" + + "\013safe_search\030\005 \001(\010\032\235\002\n" + "\022GoogleSearchSource\022\205\001\n" - + "\030dynamic_retrieval_config\030\002 \001(\0132].google.cloud" - + ".discoveryengine.v1.GenerateGroundedCont" - + "entRequest.DynamicRetrievalConfigurationB\004\342A\001\001\032\036\n" - + "\034EnterpriseWebRetrievalSourceB\010\n" + + "\030dynamic_retrieval_config\030\002 \001(\0132].google.cloud.d" + + "iscoveryengine.v1.GenerateGroundedConten" + + "tRequest.DynamicRetrievalConfigurationB\004\342A\001\001\022\035\n" + + "\017exclude_domains\030\005 \003(\tB\004\342A\001\001\022`\n" + + "\023blocking_confidence\030\006 \001(\0162=.google.cloud." + + "discoveryengine.v1.Citation.PhishBlockThresholdB\004\342A\001\001\032\237\001\n" + + "\034EnterpriseWebRetrievalSource\022\035\n" + + "\017exclude_domains\030\001 \003(\tB\004\342A\001\001\022`\n" + + "\023blocking_confidence\030\002 \001(\0162=.google.clou" + + "d.discoveryengine.v1.Citation.PhishBlockThresholdB\004\342A\001\001B\010\n" + "\006source\032{\n\r" + "GroundingSpec\022j\n" - + "\021grounding_sources\030\001 \003(\0132O.google.cloud.discoveryeng" - + "ine.v1.GenerateGroundedContentRequest.GroundingSource\0321\n" + + "\021grounding_sources\030\001 \003(\0132O.google.c" + + "loud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\351\024\n" - + "\037GenerateGroundedContentResponse\022^\n\n" - + "candidates\030\001 \003(\013" - + "2J.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate\032\345\023\n" + + "\005value\030\002 \001(\t:\0028\001\"\256\026\n" + + "\037GenerateGroundedContentResponse\022^\n" + + "\n" + + "candidates\030\001 \003(\0132J.google.cloud.discove" + + "ryengine.v1.GenerateGroundedContentResponse.Candidate\032\252\025\n" + "\tCandidate\022\r\n" + "\005index\030\001 \001(\005\022K\n" - + "\007content\030\002 \001" - + "(\0132:.google.cloud.discoveryengine.v1.GroundedGenerationContent\022\034\n" + + "\007content\030\002 \001(\0132:.google.cloud.disco" + + "veryengine.v1.GroundedGenerationContent\022\034\n" + "\017grounding_score\030\003 \001(\002H\000\210\001\001\022x\n" - + "\022grounding_metadata\030\004 \001(\0132\\.google.cloud.discoveryengine.v1.Gener" - + "ateGroundedContentResponse.Candidate.GroundingMetadata\032\317\021\n" + + "\022grounding_metadata\030\004 \001(\0132\\.google.cloud.discove" + + "ryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata\032\224\023\n" + "\021GroundingMetadata\022\212\001\n" - + "\022retrieval_metadata\030\005 \003(\0132n.google.cloud" - + ".discoveryengine.v1.GenerateGroundedCont" - + "entResponse.Candidate.GroundingMetadata.RetrievalMetadata\022B\n" - + "\016support_chunks\030\001 \003(" - + "\0132*.google.cloud.discoveryengine.v1.FactChunk\022\032\n" + + "\022retrieval_metadata\030\005 \003(\0132n.google.cloud.discoveryengine.v1.Gen" + + "erateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata\022B\n" + + "\016support_chunks\030\001" + + " \003(\0132*.google.cloud.discoveryengine.v1.FactChunk\022\032\n" + "\022web_search_queries\030\003 \003(\t\022\211\001\n" - + "\022search_entry_point\030\004 \001(\0132m.google.cloud.di" - + "scoveryengine.v1.GenerateGroundedContent" - + "Response.Candidate.GroundingMetadata.SearchEntryPoint\022\210\001\n" - + "\021grounding_support\030\002 \003(\0132m.google.cloud.discoveryengine.v1.Gene" - + "rateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport\022z\n" - + "\006images\030\t \003(\0132j.google.cloud.discoveryengine." - + "v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata\032\247\003\n" + + "\022search_entry_point\030\004 \001(\0132m.google.cloud.discoveryengine.v1.Genera" + + "teGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint\022\210\001\n" + + "\021grounding_support\030\002 \003(\0132m.google.cloud.discov" + + "eryengine.v1.GenerateGroundedContentResp" + + "onse.Candidate.GroundingMetadata.GroundingSupport\022z\n" + + "\006images\030\t \003(\0132j.google.cloud.discoveryengine.v1.GenerateGroundedCont" + + "entResponse.Candidate.GroundingMetadata.ImageMetadata\022z\n" + + "\006videos\030\013 \003(\0132j.google.cloud.discoveryengine.v1.GenerateGrounded" + + "ContentResponse.Candidate.GroundingMetadata.VideoMetadata\032\247\003\n" + "\021RetrievalMetadata\022\205\001\n" - + "\006source\030\001 \001(\0162u.google.cloud.discoveryengine.v1.GenerateGr" - + "oundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source\022\231\001\n" - + "\032dynamic_retrieval_metadata\030\002 \001(\0132u.google" - + ".cloud.discoveryengine.v1.GenerateGround" - + "edContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata\"n\n" + + "\006source\030\001 \001(\0162u.google.cloud.discover" + + "yengine.v1.GenerateGroundedContentRespon" + + "se.Candidate.GroundingMetadata.RetrievalMetadata.Source\022\231\001\n" + + "\032dynamic_retrieval_metadata\030\002 \001(\0132u.google.cloud.discoveryeng" + + "ine.v1.GenerateGroundedContentResponse.C" + + "andidate.GroundingMetadata.DynamicRetrievalMetadata\"n\n" + "\006Source\022\026\n" + "\022SOURCE_UNSPECIFIED\020\000\022\024\n" + "\020VERTEX_AI_SEARCH\020\001\022\021\n\r" @@ -304,13 +332,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016INLINE_CONTENT\020\002\022\017\n" + "\013GOOGLE_MAPS\020\004\032\267\001\n" + "\030DynamicRetrievalMetadata\022\232\001\n" - + "\022predictor_metadata\030\001 \001(\0132~.google.cloud.discoveryengine.v1.Gener" - + "ateGroundedContentResponse.Candidate.Gro" - + "undingMetadata.DynamicRetrievalPredictorMetadata\032\236\002\n" + + "\022predictor_metadata\030\001 \001(\0132~.google.cloud.dis" + + "coveryengine.v1.GenerateGroundedContentR" + + "esponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata\032\236\002\n" + "!DynamicRetrievalPredictorMetadata\022\230\001\n" - + "\007version\030\001 \001(\0162\206\001.google.cloud" - + ".discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata." - + "DynamicRetrievalPredictorMetadata.Version\022\027\n\n" + + "\007version\030\001 \001(\0162\206\001.google.cloud.discoveryengine.v1" + + ".GenerateGroundedContentResponse.Candida" + + "te.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version\022\027\n\n" + "prediction\030\002 \001(\002H\000\210\001\001\"6\n" + "\007Version\022\027\n" + "\023VERSION_UNSPECIFIED\020\000\022\022\n" @@ -323,23 +351,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "claim_text\030\001 \001(\t\022\035\n" + "\025support_chunk_indices\030\003 \003(\005\022\032\n\r" + "support_score\030\002 \001(\002H\000\210\001\001B\020\n" - + "\016_support_score\032\377\003\n\r" + + "\016_support_score\032\232\004\n\r" + "ImageMetadata\022\177\n" - + "\005image\030\001 \001(\0132p.google.cloud.discoveryengine.v1.GenerateGround" - + "edContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image\022\203\001\n" - + "\tthumbnail\030\002 \001(\0132p.google.cloud.discoveryengine.v1." - + "GenerateGroundedContentResponse.Candidat" - + "e.GroundingMetadata.ImageMetadata.Image\022\206\001\n" - + "\006source\030\003 \001(\0132v.google.cloud.discover" - + "yengine.v1.GenerateGroundedContentRespon" - + "se.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo\032)\n" + + "\005image\030\001 \001(\0132p.google.cloud.discoveryeng" + + "ine.v1.GenerateGroundedContentResponse.C" + + "andidate.GroundingMetadata.ImageMetadata.Image\022\203\001\n" + + "\tthumbnail\030\002 \001(\0132p.google.cloud.discoveryengine.v1.GenerateGroundedCon" + + "tentResponse.Candidate.GroundingMetadata.ImageMetadata.Image\022\206\001\n" + + "\006source\030\003 \001(\0132v.google.cloud.discoveryengine.v1.Generate" + + "GroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo\032D\n" + "\013WebsiteInfo\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" - + "\005title\030\002 \001(\t\0323\n" + + "\005title\030\002 \001(\t\022\031\n" + + "\021site_display_name\030\003 \001(\t\0323\n" + "\005Image\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" + "\005width\030\002 \001(\005\022\016\n" - + "\006height\030\003 \001(\005B\022\n" + + "\006height\030\003 \001(\005\032,\n\r" + + "VideoMetadata\022\033\n" + + "\023youtube_external_id\030\001 \001(\tB\022\n" + "\020_grounding_score\"\220\001\n" + "\022CheckGroundingSpec\022\037\n" + "\022citation_threshold\030\001 \001(\001H\000\210\001\001\022%\n" @@ -351,25 +381,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".discoveryengine.googleapis.com/GroundingConfig\022\030\n" + "\020answer_candidate\030\002 \001(\t\022=\n" + "\005facts\030\003 \003(\0132..google.cloud.discoveryengine.v1.GroundingFact\022K\n" - + "\016grounding_spec\030\004" - + " \001(\01323.google.cloud.discoveryengine.v1.CheckGroundingSpec\022[\n" - + "\013user_labels\030\005 \003(\0132F.google.cloud.discovery" - + "engine.v1.CheckGroundingRequest.UserLabelsEntry\0321\n" + + "\016grounding_spec\030\004 \001(\01323.go" + + "ogle.cloud.discoveryengine.v1.CheckGroundingSpec\022[\n" + + "\013user_labels\030\005 \003(\0132F.google.c" + + "loud.discoveryengine.v1.CheckGroundingRequest.UserLabelsEntry\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\316\004\n" + "\026CheckGroundingResponse\022\032\n\r" + "support_score\030\001 \001(\002H\000\210\001\001\022@\n" + "\014cited_chunks\030\003 \003(\0132*.google.cloud.discoveryengine.v1.FactChunk\022d\n" - + "\013cited_facts\030\006 \003(\0132O.google.cloud.discoveryengine.v1.Check" - + "GroundingResponse.CheckGroundingFactChunk\022M\n" - + "\006claims\030\004 \003(\0132=.google.cloud.discove" - + "ryengine.v1.CheckGroundingResponse.Claim\032-\n" + + "\013cited_facts\030\006 \003(\0132O.google.cloud.discoverye" + + "ngine.v1.CheckGroundingResponse.CheckGroundingFactChunk\022M\n" + + "\006claims\030\004 \003(\0132=.google" + + ".cloud.discoveryengine.v1.CheckGroundingResponse.Claim\032-\n" + "\027CheckGroundingFactChunk\022\022\n\n" + "chunk_text\030\001 \001(\t\032\337\001\n" + "\005Claim\022\026\n" + "\tstart_pos\030\001 \001(\005H\000\210\001\001\022\024\n" - + "\007end_pos\030\002 \001(\005H\001\210\001\001\022\022\n\n" + + "\007end_pos\030\002 \001(\005H\001\210\001\001\022\022\n" + + "\n" + "claim_text\030\003 \001(\t\022\030\n" + "\020citation_indices\030\004 \003(\005\022%\n" + "\030grounding_check_required\030\006 \001(\010H\002\210\001\001\022\022\n" @@ -378,27 +409,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_end_posB\033\n" + "\031_grounding_check_requiredB\010\n" + "\006_scoreB\020\n" - + "\016_support_score2\250\006\n" + + "\016_support_score\"V\n" + + "\020CitationMetadata\022B\n" + + "\tcitations\030\001" + + " \003(\0132).google.cloud.discoveryengine.v1.CitationB\004\342A\001\003\"\230\003\n" + + "\010Citation\022\031\n" + + "\013start_index\030\001 \001(\005B\004\342A\001\003\022\027\n" + + "\tend_index\030\002 \001(\005B\004\342A\001\003\022\021\n" + + "\003uri\030\003 \001(\tB\004\342A\001\003\022\023\n" + + "\005title\030\004 \001(\tB\004\342A\001\003\022\025\n" + + "\007license\030\005 \001(\tB\004\342A\001\003\0221\n" + + "\020publication_date\030\006" + + " \001(\0132\021.google.type.DateB\004\342A\001\003\"\345\001\n" + + "\023PhishBlockThreshold\022%\n" + + "!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + + "\023BLOCK_LOW_AND_ABOVE\020\036\022\032\n" + + "\026BLOCK_MEDIUM_AND_ABOVE\020(\022\030\n" + + "\024BLOCK_HIGH_AND_ABOVE\0202\022\032\n" + + "\026BLOCK_HIGHER_AND_ABOVE\0207\022\035\n" + + "\031BLOCK_VERY_HIGH_AND_ABOVE\020<\022\035\n" + + "\031BLOCK_ONLY_EXTREMELY_HIGH\020d2\246\007\n" + "\031GroundedGenerationService\022\366\001\n" - + "\035StreamGenerateGroundedContent\022?.google.cloud.discoveryengine.v1.GenerateGr" - + "oundedContentRequest\032@.google.cloud.discoveryengine.v1.GenerateGroundedContentRe" - + "sponse\"N\202\323\344\223\002H\"C/v1/{location=projects/*" - + "/locations/*}:streamGenerateGroundedContent:\001*(\0010\001\022\346\001\n" - + "\027GenerateGroundedContent\022?.google.cloud.discoveryengine.v1.Generat" - + "eGroundedContentRequest\032@.google.cloud.discoveryengine.v1.GenerateGroundedConten" - + "tResponse\"H\202\323\344\223\002B\"=/v1/{location=project" - + "s/*/locations/*}:generateGroundedContent:\001*\022\324\001\n" - + "\016CheckGrounding\0226.google.cloud.discoveryengine.v1.CheckGroundingRequest\0327" - + ".google.cloud.discoveryengine.v1.CheckGr" - + "oundingResponse\"Q\202\323\344\223\002K\"F/v1/{grounding_" - + "config=projects/*/locations/*/groundingC" - + "onfigs/*}:check:\001*\032R\312A\036discoveryengine.g" - + "oogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\221\002\n" - + "#com.google.cloud.discoveryengine.v1B\036GroundedGenerati" - + "onServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;di" - + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goog" - + "le.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clo" - + "ud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "\035StreamGenerateGroundedContent\022?.google.cl" + + "oud.discoveryengine.v1.GenerateGroundedContentRequest\032@.google.cloud.discoveryen" + + "gine.v1.GenerateGroundedContentResponse\"" + + "N\202\323\344\223\002H\"C/v1/{location=projects/*/locati" + + "ons/*}:streamGenerateGroundedContent:\001*(\0010\001\022\346\001\n" + + "\027GenerateGroundedContent\022?.google.cloud.discoveryengine.v1.GenerateGround" + + "edContentRequest\032@.google.cloud.discoveryengine.v1.GenerateGroundedContentRespon" + + "se\"H\202\323\344\223\002B\"=/v1/{location=projects/*/locations/*}:generateGroundedContent:\001*\022\324\001\n" + + "\016CheckGrounding\0226.google.cloud.discovery" + + "engine.v1.CheckGroundingRequest\0327.google.cloud.discoveryengine.v1.CheckGrounding" + + "Response\"Q\202\323\344\223\002K\"F/v1/{grounding_config=" + + "projects/*/locations/*/groundingConfigs/" + + "*}:check:\001*\032\317\001\312A\036discoveryengine.googlea" + + "pis.com\322A\252\001https://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwrite,http" + + "s://www.googleapis.com/auth/discoveryengine.serving.readwriteB\221\002\n" + + "#com.google.cloud.discoveryengine.v1B\036GroundedGeneratio" + + "nServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Googl" + + "e.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clou" + + "d\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -409,6 +461,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.GroundingProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_GroundedGenerationContent_descriptor = getDescriptor().getMessageType(0); @@ -456,6 +509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Seed", "PresencePenalty", "MaxOutputTokens", + "ProvisionedThroughputSetting", }); internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor = internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor @@ -522,7 +576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor, new java.lang.String[] { - "DynamicRetrievalConfig", + "DynamicRetrievalConfig", "ExcludeDomains", "BlockingConfidence", }); internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor = internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_descriptor @@ -530,7 +584,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "ExcludeDomains", "BlockingConfidence", + }); internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_GroundingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentRequest_descriptor .getNestedType(3); @@ -579,6 +635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchEntryPoint", "GroundingSupport", "Images", + "Videos", }); internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor = internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor @@ -641,7 +698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor, new java.lang.String[] { - "Uri", "Title", + "Uri", "Title", "SiteDisplayName", }); internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor = internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor @@ -652,6 +709,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Width", "Height", }); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedType(6); + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor, + new java.lang.String[] { + "YoutubeExternalId", + }); internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_descriptor = getDescriptor().getMessageType(3); internal_static_google_cloud_discoveryengine_v1_CheckGroundingSpec_fieldAccessorTable = @@ -708,12 +774,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GroundingCheckRequired", "Score", }); + internal_static_google_cloud_discoveryengine_v1_CitationMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1_CitationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CitationMetadata_descriptor, + new java.lang.String[] { + "Citations", + }); + internal_static_google_cloud_discoveryengine_v1_Citation_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1_Citation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Citation_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", "Uri", "Title", "License", "PublicationDate", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.GroundingProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfig.java index 51c9a97db769..3c7273ddd7f6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfig.java @@ -51,7 +51,9 @@ private HealthcareFhirConfig(com.google.protobuf.GeneratedMessage.Builder bui super(builder); } - private HealthcareFhirConfig() {} + private HealthcareFhirConfig() { + initialFilterGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1.CommonProto @@ -114,6 +116,98 @@ public boolean getEnableStaticIndexingForBatchIngestion() { return enableStaticIndexingForBatchIngestion_; } + public static final int INITIAL_FILTER_GROUPS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList initialFilterGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the initialFilterGroups. + */ + public com.google.protobuf.ProtocolStringList getInitialFilterGroupsList() { + return initialFilterGroups_; + } + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of initialFilterGroups. + */ + public int getInitialFilterGroupsCount() { + return initialFilterGroups_.size(); + } + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The initialFilterGroups at the given index. + */ + public java.lang.String getInitialFilterGroups(int index) { + return initialFilterGroups_.get(index); + } + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the initialFilterGroups at the given index. + */ + public com.google.protobuf.ByteString getInitialFilterGroupsBytes(int index) { + return initialFilterGroups_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -134,6 +228,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableStaticIndexingForBatchIngestion_ != false) { output.writeBool(2, enableStaticIndexingForBatchIngestion_); } + for (int i = 0; i < initialFilterGroups_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, initialFilterGroups_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -151,6 +248,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBoolSize( 2, enableStaticIndexingForBatchIngestion_); } + { + int dataSize = 0; + for (int i = 0; i < initialFilterGroups_.size(); i++) { + dataSize += computeStringSizeNoTag(initialFilterGroups_.getRaw(i)); + } + size += dataSize; + size += 1 * getInitialFilterGroupsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -170,6 +275,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableConfigurableSchema() != other.getEnableConfigurableSchema()) return false; if (getEnableStaticIndexingForBatchIngestion() != other.getEnableStaticIndexingForBatchIngestion()) return false; + if (!getInitialFilterGroupsList().equals(other.getInitialFilterGroupsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,6 +293,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStaticIndexingForBatchIngestion()); + if (getInitialFilterGroupsCount() > 0) { + hash = (37 * hash) + INITIAL_FILTER_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getInitialFilterGroupsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -330,6 +440,7 @@ public Builder clear() { bitField0_ = 0; enableConfigurableSchema_ = false; enableStaticIndexingForBatchIngestion_ = false; + initialFilterGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -372,6 +483,10 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.HealthcareFhirCon if (((from_bitField0_ & 0x00000002) != 0)) { result.enableStaticIndexingForBatchIngestion_ = enableStaticIndexingForBatchIngestion_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + initialFilterGroups_.makeImmutable(); + result.initialFilterGroups_ = initialFilterGroups_; + } } @java.lang.Override @@ -393,6 +508,16 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.HealthcareFhirConfi if (other.getEnableStaticIndexingForBatchIngestion() != false) { setEnableStaticIndexingForBatchIngestion(other.getEnableStaticIndexingForBatchIngestion()); } + if (!other.initialFilterGroups_.isEmpty()) { + if (initialFilterGroups_.isEmpty()) { + initialFilterGroups_ = other.initialFilterGroups_; + bitField0_ |= 0x00000004; + } else { + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.addAll(other.initialFilterGroups_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -431,6 +556,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -586,6 +718,243 @@ public Builder clearEnableStaticIndexingForBatchIngestion() { return this; } + private com.google.protobuf.LazyStringArrayList initialFilterGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInitialFilterGroupsIsMutable() { + if (!initialFilterGroups_.isModifiable()) { + initialFilterGroups_ = new com.google.protobuf.LazyStringArrayList(initialFilterGroups_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the initialFilterGroups. + */ + public com.google.protobuf.ProtocolStringList getInitialFilterGroupsList() { + initialFilterGroups_.makeImmutable(); + return initialFilterGroups_; + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of initialFilterGroups. + */ + public int getInitialFilterGroupsCount() { + return initialFilterGroups_.size(); + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The initialFilterGroups at the given index. + */ + public java.lang.String getInitialFilterGroups(int index) { + return initialFilterGroups_.get(index); + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the initialFilterGroups at the given index. + */ + public com.google.protobuf.ByteString getInitialFilterGroupsBytes(int index) { + return initialFilterGroups_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The initialFilterGroups to set. + * @return This builder for chaining. + */ + public Builder setInitialFilterGroups(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The initialFilterGroups to add. + * @return This builder for chaining. + */ + public Builder addInitialFilterGroups(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The initialFilterGroups to add. + * @return This builder for chaining. + */ + public Builder addAllInitialFilterGroups(java.lang.Iterable values) { + ensureInitialFilterGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initialFilterGroups_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInitialFilterGroups() { + initialFilterGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Names of the Group resources to use as a basis for the initial
+     * patient filter, in format
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+     * The filter group must be a FHIR resource name of
+     * type Group, and the filter will be constructed from the direct members of
+     * the group which are Patient resources.
+     * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the initialFilterGroups to add. + * @return This builder for chaining. + */ + public Builder addInitialFilterGroupsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.HealthcareFhirConfig) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfigOrBuilder.java index b4ffc5c796a2..fd68310a3b67 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/HealthcareFhirConfigOrBuilder.java @@ -59,4 +59,82 @@ public interface HealthcareFhirConfigOrBuilder * @return The enableStaticIndexingForBatchIngestion. */ boolean getEnableStaticIndexingForBatchIngestion(); + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the initialFilterGroups. + */ + java.util.List getInitialFilterGroupsList(); + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of initialFilterGroups. + */ + int getInitialFilterGroupsCount(); + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The initialFilterGroups at the given index. + */ + java.lang.String getInitialFilterGroups(int index); + + /** + * + * + *
+   * Optional. Names of the Group resources to use as a basis for the initial
+   * patient filter, in format
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
+   * The filter group must be a FHIR resource name of
+   * type Group, and the filter will be constructed from the direct members of
+   * the group which are Patient resources.
+   * 
+ * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the initialFilterGroups at the given index. + */ + com.google.protobuf.ByteString getInitialFilterGroupsBytes(int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntry.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntry.java index 9b48d08f8378..bf8eb7105415 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntry.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntry.java @@ -54,6 +54,7 @@ private IdentityMappingEntry(com.google.protobuf.GeneratedMessage.Builder bui private IdentityMappingEntry() { externalIdentity_ = ""; + externalIdentityName_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -346,6 +347,59 @@ public com.google.protobuf.ByteString getExternalIdentityBytes() { } } + public static final int EXTERNAL_IDENTITY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalIdentityName_ = ""; + + /** + * + * + *
+   * Optional. The name of the external identity.
+   * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The externalIdentityName. + */ + @java.lang.Override + public java.lang.String getExternalIdentityName() { + java.lang.Object ref = externalIdentityName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIdentityName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the external identity.
+   * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for externalIdentityName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalIdentityNameBytes() { + java.lang.Object ref = externalIdentityName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIdentityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -369,6 +423,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (identityProviderIdCase_ == 3) { com.google.protobuf.GeneratedMessage.writeString(output, 3, identityProviderId_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalIdentityName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, externalIdentityName_); + } getUnknownFields().writeTo(output); } @@ -387,6 +444,9 @@ public int getSerializedSize() { if (identityProviderIdCase_ == 3) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, identityProviderId_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalIdentityName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, externalIdentityName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -404,6 +464,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.discoveryengine.v1.IdentityMappingEntry) obj; if (!getExternalIdentity().equals(other.getExternalIdentity())) return false; + if (!getExternalIdentityName().equals(other.getExternalIdentityName())) return false; if (!getIdentityProviderIdCase().equals(other.getIdentityProviderIdCase())) return false; switch (identityProviderIdCase_) { case 2: @@ -428,6 +489,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXTERNAL_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getExternalIdentity().hashCode(); + hash = (37 * hash) + EXTERNAL_IDENTITY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getExternalIdentityName().hashCode(); switch (identityProviderIdCase_) { case 2: hash = (37 * hash) + USER_ID_FIELD_NUMBER; @@ -583,6 +646,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; externalIdentity_ = ""; + externalIdentityName_ = ""; identityProviderIdCase_ = 0; identityProviderId_ = null; return this; @@ -625,6 +689,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.IdentityMappingEn if (((from_bitField0_ & 0x00000004) != 0)) { result.externalIdentity_ = externalIdentity_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.externalIdentityName_ = externalIdentityName_; + } } private void buildPartialOneofs( @@ -651,6 +718,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.IdentityMappingEntr bitField0_ |= 0x00000004; onChanged(); } + if (!other.getExternalIdentityName().isEmpty()) { + externalIdentityName_ = other.externalIdentityName_; + bitField0_ |= 0x00000008; + onChanged(); + } switch (other.getIdentityProviderIdCase()) { case USER_ID: { @@ -717,6 +789,12 @@ public Builder mergeFrom( identityProviderId_ = s; break; } // case 26 + case 34: + { + externalIdentityName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1192,6 +1270,117 @@ public Builder setExternalIdentityBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object externalIdentityName_ = ""; + + /** + * + * + *
+     * Optional. The name of the external identity.
+     * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The externalIdentityName. + */ + public java.lang.String getExternalIdentityName() { + java.lang.Object ref = externalIdentityName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIdentityName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the external identity.
+     * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for externalIdentityName. + */ + public com.google.protobuf.ByteString getExternalIdentityNameBytes() { + java.lang.Object ref = externalIdentityName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIdentityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the external identity.
+     * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The externalIdentityName to set. + * @return This builder for chaining. + */ + public Builder setExternalIdentityName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + externalIdentityName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the external identity.
+     * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExternalIdentityName() { + externalIdentityName_ = getDefaultInstance().getExternalIdentityName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the external identity.
+     * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for externalIdentityName to set. + * @return This builder for chaining. + */ + public Builder setExternalIdentityNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalIdentityName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.IdentityMappingEntry) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntryOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntryOrBuilder.java index b950d0292efb..14bf23993c8e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntryOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingEntryOrBuilder.java @@ -156,6 +156,32 @@ public interface IdentityMappingEntryOrBuilder */ com.google.protobuf.ByteString getExternalIdentityBytes(); + /** + * + * + *
+   * Optional. The name of the external identity.
+   * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The externalIdentityName. + */ + java.lang.String getExternalIdentityName(); + + /** + * + * + *
+   * Optional. The name of the external identity.
+   * 
+ * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for externalIdentityName. + */ + com.google.protobuf.ByteString getExternalIdentityNameBytes(); + com.google.cloud.discoveryengine.v1.IdentityMappingEntry.IdentityProviderIdCase getIdentityProviderIdCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreProto.java index 500ce03fdbb3..84996ecf6b6c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreProto.java @@ -68,17 +68,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013cmek_config\030\004 \001(\0132+.google.cl" + "oud.discoveryengine.v1.CmekConfigB\004\342A\001\003:\221\001\352A\215\001\n" + "3discoveryengine.googleapis.com/IdentityMappingStore\022Vprojects/{project}/" - + "locations/{location}/identityMappingStores/{identity_mapping_store}\"v\n" + + "locations/{location}/identityMappingStores/{identity_mapping_store}\"\234\001\n" + "\024IdentityMappingEntry\022\021\n" + "\007user_id\030\002 \001(\tH\000\022\022\n" + "\010group_id\030\003 \001(\tH\000\022\037\n" - + "\021external_identity\030\001 \001(\tB\004\342A\001\002B\026\n" + + "\021external_identity\030\001 \001(\tB\004\342A\001\002\022$\n" + + "\026external_identity_name\030\004 \001(\tB\004\342A\001\001B\026\n" + "\024identity_provider_idB\214\002\n" - + "#com.google.cloud.discoveryengine.v1B\031IdentityMap" - + "pingStoreProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;di" - + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goog" - + "le.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clo" - + "ud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "#com.google.cloud.discoveryengine.v1B\031IdentityMapp" + + "ingStoreProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Googl" + + "e.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clou" + + "d\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -102,7 +103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_IdentityMappingEntry_descriptor, new java.lang.String[] { - "UserId", "GroupId", "ExternalIdentity", "IdentityProviderId", + "UserId", "GroupId", "ExternalIdentity", "ExternalIdentityName", "IdentityProviderId", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceProto.java index 9f772bca015f..dcaba2e8d7b8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceProto.java @@ -177,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013total_count\030\003 \001(\003\"\206\001\n" + "\"DeleteIdentityMappingStoreMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp2\330\020\n" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp2\326\021\n" + "\033IdentityMappingStoreService\022\255\002\n" + "\032CreateIdentityMappingStore\022B.google.cloud" + ".discoveryengine.v1.CreateIdentityMappingStoreRequest\0325.google.cloud.discoveryen" @@ -216,13 +216,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".ListIdentityMappingStoresRequest\032B.google.cloud.discoveryengine.v1.ListIdentity" + "MappingStoresResponse\"J\332A\006parent\202\323\344\223\002;\0229" + "/v1/{parent=projects/*/locations/*}/iden" - + "tityMappingStores\032R\312A\036discoveryengine.go" - + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\223\002\n" - + "#com.google.cloud.discoveryengine.v1B IdentityMappingSt" - + "oreServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;d" - + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goo" - + "gle.Cloud.DiscoveryEngine.V1\312\002\037Google\\Cl" - + "oud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "tityMappingStores\032\317\001\312A\036discoveryengine.g" + + "oogleapis.com\322A\252\001https://www.googleapis." + + "com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwrit" + + "e,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\223\002\n" + + "#com.google.cloud.discoveryengine.v1B IdentityMap" + + "pingStoreServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryengi" + + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" + + "\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Goo" + + "gle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfig.java new file mode 100644 index 000000000000..e4cdc4e346c2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfig.java @@ -0,0 +1,1095 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * The configuration for the identity data synchronization runs.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.IdentityScheduleConfig} + */ +@com.google.protobuf.Generated +public final class IdentityScheduleConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.IdentityScheduleConfig) + IdentityScheduleConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IdentityScheduleConfig"); + } + + // Use IdentityScheduleConfig.newBuilder() to construct. + private IdentityScheduleConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IdentityScheduleConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.class, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder.class); + } + + private int bitField0_; + public static final int REFRESH_INTERVAL_FIELD_NUMBER = 1; + private com.google.protobuf.Duration refreshInterval_; + + /** + * + * + *
+   * Optional. The refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector. If not set, the
+   * access control list will be refreshed at the default interval of 30
+   * minutes. The identity refresh interval can be at least 30 minutes
+   * and at most 7 days.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the refreshInterval field is set. + */ + @java.lang.Override + public boolean hasRefreshInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector. If not set, the
+   * access control list will be refreshed at the default interval of 30
+   * minutes. The identity refresh interval can be at least 30 minutes
+   * and at most 7 days.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The refreshInterval. + */ + @java.lang.Override + public com.google.protobuf.Duration getRefreshInterval() { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } + + /** + * + * + *
+   * Optional. The refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector. If not set, the
+   * access control list will be refreshed at the default interval of 30
+   * minutes. The identity refresh interval can be at least 30 minutes
+   * and at most 7 days.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } + + public static final int NEXT_SYNC_TIME_FIELD_NUMBER = 2; + private com.google.type.DateTime nextSyncTime_; + + /** + * + * + *
+   * Optional. The UTC time when the next data sync is expected to start for the
+   * Data Connector. Customers are only able to specify the hour and minute to
+   * schedule the data sync. This is utilized when the data connector has a
+   * refresh interval greater than 1 day.
+   * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nextSyncTime field is set. + */ + @java.lang.Override + public boolean hasNextSyncTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The UTC time when the next data sync is expected to start for the
+   * Data Connector. Customers are only able to specify the hour and minute to
+   * schedule the data sync. This is utilized when the data connector has a
+   * refresh interval greater than 1 day.
+   * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextSyncTime. + */ + @java.lang.Override + public com.google.type.DateTime getNextSyncTime() { + return nextSyncTime_ == null ? com.google.type.DateTime.getDefaultInstance() : nextSyncTime_; + } + + /** + * + * + *
+   * Optional. The UTC time when the next data sync is expected to start for the
+   * Data Connector. Customers are only able to specify the hour and minute to
+   * schedule the data sync. This is utilized when the data connector has a
+   * refresh interval greater than 1 day.
+   * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.DateTimeOrBuilder getNextSyncTimeOrBuilder() { + return nextSyncTime_ == null ? com.google.type.DateTime.getDefaultInstance() : nextSyncTime_; + } + + 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, getRefreshInterval()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getNextSyncTime()); + } + 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, getRefreshInterval()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNextSyncTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.IdentityScheduleConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig other = + (com.google.cloud.discoveryengine.v1.IdentityScheduleConfig) obj; + + if (hasRefreshInterval() != other.hasRefreshInterval()) return false; + if (hasRefreshInterval()) { + if (!getRefreshInterval().equals(other.getRefreshInterval())) return false; + } + if (hasNextSyncTime() != other.hasNextSyncTime()) return false; + if (hasNextSyncTime()) { + if (!getNextSyncTime().equals(other.getNextSyncTime())) 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 (hasRefreshInterval()) { + hash = (37 * hash) + REFRESH_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getRefreshInterval().hashCode(); + } + if (hasNextSyncTime()) { + hash = (37 * hash) + NEXT_SYNC_TIME_FIELD_NUMBER; + hash = (53 * hash) + getNextSyncTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The configuration for the identity data synchronization runs.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.IdentityScheduleConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.IdentityScheduleConfig) + com.google.cloud.discoveryengine.v1.IdentityScheduleConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.class, + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRefreshIntervalFieldBuilder(); + internalGetNextSyncTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + refreshInterval_ = null; + if (refreshIntervalBuilder_ != null) { + refreshIntervalBuilder_.dispose(); + refreshIntervalBuilder_ = null; + } + nextSyncTime_ = null; + if (nextSyncTimeBuilder_ != null) { + nextSyncTimeBuilder_.dispose(); + nextSyncTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_IdentityScheduleConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig build() { + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig buildPartial() { + com.google.cloud.discoveryengine.v1.IdentityScheduleConfig result = + new com.google.cloud.discoveryengine.v1.IdentityScheduleConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.IdentityScheduleConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.refreshInterval_ = + refreshIntervalBuilder_ == null ? refreshInterval_ : refreshIntervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextSyncTime_ = + nextSyncTimeBuilder_ == null ? nextSyncTime_ : nextSyncTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.IdentityScheduleConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.IdentityScheduleConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.IdentityScheduleConfig other) { + if (other == com.google.cloud.discoveryengine.v1.IdentityScheduleConfig.getDefaultInstance()) + return this; + if (other.hasRefreshInterval()) { + mergeRefreshInterval(other.getRefreshInterval()); + } + if (other.hasNextSyncTime()) { + mergeNextSyncTime(other.getNextSyncTime()); + } + 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( + internalGetRefreshIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetNextSyncTimeFieldBuilder().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.Duration refreshInterval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + refreshIntervalBuilder_; + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the refreshInterval field is set. + */ + public boolean hasRefreshInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The refreshInterval. + */ + public com.google.protobuf.Duration getRefreshInterval() { + if (refreshIntervalBuilder_ == null) { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } else { + return refreshIntervalBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRefreshInterval(com.google.protobuf.Duration value) { + if (refreshIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + refreshInterval_ = value; + } else { + refreshIntervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRefreshInterval(com.google.protobuf.Duration.Builder builderForValue) { + if (refreshIntervalBuilder_ == null) { + refreshInterval_ = builderForValue.build(); + } else { + refreshIntervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRefreshInterval(com.google.protobuf.Duration value) { + if (refreshIntervalBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && refreshInterval_ != null + && refreshInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRefreshIntervalBuilder().mergeFrom(value); + } else { + refreshInterval_ = value; + } + } else { + refreshIntervalBuilder_.mergeFrom(value); + } + if (refreshInterval_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRefreshInterval() { + bitField0_ = (bitField0_ & ~0x00000001); + refreshInterval_ = null; + if (refreshIntervalBuilder_ != null) { + refreshIntervalBuilder_.dispose(); + refreshIntervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getRefreshIntervalBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRefreshIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() { + if (refreshIntervalBuilder_ != null) { + return refreshIntervalBuilder_.getMessageOrBuilder(); + } else { + return refreshInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : refreshInterval_; + } + } + + /** + * + * + *
+     * Optional. The refresh interval to sync the Access Control List information
+     * for the documents ingested by this connector. If not set, the
+     * access control list will be refreshed at the default interval of 30
+     * minutes. The identity refresh interval can be at least 30 minutes
+     * and at most 7 days.
+     * 
+ * + * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetRefreshIntervalFieldBuilder() { + if (refreshIntervalBuilder_ == null) { + refreshIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRefreshInterval(), getParentForChildren(), isClean()); + refreshInterval_ = null; + } + return refreshIntervalBuilder_; + } + + private com.google.type.DateTime nextSyncTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> + nextSyncTimeBuilder_; + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nextSyncTime field is set. + */ + public boolean hasNextSyncTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextSyncTime. + */ + public com.google.type.DateTime getNextSyncTime() { + if (nextSyncTimeBuilder_ == null) { + return nextSyncTime_ == null + ? com.google.type.DateTime.getDefaultInstance() + : nextSyncTime_; + } else { + return nextSyncTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNextSyncTime(com.google.type.DateTime value) { + if (nextSyncTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextSyncTime_ = value; + } else { + nextSyncTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNextSyncTime(com.google.type.DateTime.Builder builderForValue) { + if (nextSyncTimeBuilder_ == null) { + nextSyncTime_ = builderForValue.build(); + } else { + nextSyncTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNextSyncTime(com.google.type.DateTime value) { + if (nextSyncTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && nextSyncTime_ != null + && nextSyncTime_ != com.google.type.DateTime.getDefaultInstance()) { + getNextSyncTimeBuilder().mergeFrom(value); + } else { + nextSyncTime_ = value; + } + } else { + nextSyncTimeBuilder_.mergeFrom(value); + } + if (nextSyncTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNextSyncTime() { + bitField0_ = (bitField0_ & ~0x00000002); + nextSyncTime_ = null; + if (nextSyncTimeBuilder_ != null) { + nextSyncTimeBuilder_.dispose(); + nextSyncTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.DateTime.Builder getNextSyncTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetNextSyncTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.DateTimeOrBuilder getNextSyncTimeOrBuilder() { + if (nextSyncTimeBuilder_ != null) { + return nextSyncTimeBuilder_.getMessageOrBuilder(); + } else { + return nextSyncTime_ == null + ? com.google.type.DateTime.getDefaultInstance() + : nextSyncTime_; + } + } + + /** + * + * + *
+     * Optional. The UTC time when the next data sync is expected to start for the
+     * Data Connector. Customers are only able to specify the hour and minute to
+     * schedule the data sync. This is utilized when the data connector has a
+     * refresh interval greater than 1 day.
+     * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder> + internalGetNextSyncTimeFieldBuilder() { + if (nextSyncTimeBuilder_ == null) { + nextSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.DateTime, + com.google.type.DateTime.Builder, + com.google.type.DateTimeOrBuilder>( + getNextSyncTime(), getParentForChildren(), isClean()); + nextSyncTime_ = null; + } + return nextSyncTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.IdentityScheduleConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.IdentityScheduleConfig) + private static final com.google.cloud.discoveryengine.v1.IdentityScheduleConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.IdentityScheduleConfig(); + } + + public static com.google.cloud.discoveryengine.v1.IdentityScheduleConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityScheduleConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdentityScheduleConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfigOrBuilder.java new file mode 100644 index 000000000000..b384e56d0896 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityScheduleConfigOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface IdentityScheduleConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.IdentityScheduleConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector. If not set, the
+   * access control list will be refreshed at the default interval of 30
+   * minutes. The identity refresh interval can be at least 30 minutes
+   * and at most 7 days.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the refreshInterval field is set. + */ + boolean hasRefreshInterval(); + + /** + * + * + *
+   * Optional. The refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector. If not set, the
+   * access control list will be refreshed at the default interval of 30
+   * minutes. The identity refresh interval can be at least 30 minutes
+   * and at most 7 days.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The refreshInterval. + */ + com.google.protobuf.Duration getRefreshInterval(); + + /** + * + * + *
+   * Optional. The refresh interval to sync the Access Control List information
+   * for the documents ingested by this connector. If not set, the
+   * access control list will be refreshed at the default interval of 30
+   * minutes. The identity refresh interval can be at least 30 minutes
+   * and at most 7 days.
+   * 
+ * + * .google.protobuf.Duration refresh_interval = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder(); + + /** + * + * + *
+   * Optional. The UTC time when the next data sync is expected to start for the
+   * Data Connector. Customers are only able to specify the hour and minute to
+   * schedule the data sync. This is utilized when the data connector has a
+   * refresh interval greater than 1 day.
+   * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nextSyncTime field is set. + */ + boolean hasNextSyncTime(); + + /** + * + * + *
+   * Optional. The UTC time when the next data sync is expected to start for the
+   * Data Connector. Customers are only able to specify the hour and minute to
+   * schedule the data sync. This is utilized when the data connector has a
+   * refresh interval greater than 1 day.
+   * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextSyncTime. + */ + com.google.type.DateTime getNextSyncTime(); + + /** + * + * + *
+   * Optional. The UTC time when the next data sync is expected to start for the
+   * Data Connector. Customers are only able to specify the hour and minute to
+   * schedule the data sync. This is utilized when the data connector has a
+   * refresh interval greater than 1 day.
+   * 
+ * + * .google.type.DateTime next_sync_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.DateTimeOrBuilder getNextSyncTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfig.java new file mode 100644 index 000000000000..089fda315593 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfig.java @@ -0,0 +1,1677 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Identity Provider Config.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.IdpConfig} + */ +@com.google.protobuf.Generated +public final class IdpConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.IdpConfig) + IdpConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IdpConfig"); + } + + // Use IdpConfig.newBuilder() to construct. + private IdpConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IdpConfig() { + idpType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.IdpConfig.class, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder.class); + } + + /** + * + * + *
+   * Identity Provider Type.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.IdpConfig.IdpType} + */ + public enum IdpType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. ACL search not enabled.
+     * 
+ * + * IDP_TYPE_UNSPECIFIED = 0; + */ + IDP_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Google 1P provider.
+     * 
+ * + * GSUITE = 1; + */ + GSUITE(1), + /** + * + * + *
+     * Third party provider.
+     * 
+ * + * THIRD_PARTY = 2; + */ + THIRD_PARTY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IdpType"); + } + + /** + * + * + *
+     * Default value. ACL search not enabled.
+     * 
+ * + * IDP_TYPE_UNSPECIFIED = 0; + */ + public static final int IDP_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Google 1P provider.
+     * 
+ * + * GSUITE = 1; + */ + public static final int GSUITE_VALUE = 1; + + /** + * + * + *
+     * Third party provider.
+     * 
+ * + * THIRD_PARTY = 2; + */ + public static final int THIRD_PARTY_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 IdpType 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 IdpType forNumber(int value) { + switch (value) { + case 0: + return IDP_TYPE_UNSPECIFIED; + case 1: + return GSUITE; + case 2: + return THIRD_PARTY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IdpType findValueByNumber(int number) { + return IdpType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.IdpConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final IdpType[] VALUES = values(); + + public static IdpType 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 IdpType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.IdpConfig.IdpType) + } + + public interface ExternalIdpConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Workforce pool name.
+     * Example: "locations/global/workforcePools/pool_id"
+     * 
+ * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + java.lang.String getWorkforcePoolName(); + + /** + * + * + *
+     * Workforce pool name.
+     * Example: "locations/global/workforcePools/pool_id"
+     * 
+ * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + com.google.protobuf.ByteString getWorkforcePoolNameBytes(); + } + + /** + * + * + *
+   * Third party IDP Config.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig} + */ + public static final class ExternalIdpConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) + ExternalIdpConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExternalIdpConfig"); + } + + // Use ExternalIdpConfig.newBuilder() to construct. + private ExternalIdpConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExternalIdpConfig() { + workforcePoolName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.class, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder.class); + } + + public static final int WORKFORCE_POOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object workforcePoolName_ = ""; + + /** + * + * + *
+     * Workforce pool name.
+     * Example: "locations/global/workforcePools/pool_id"
+     * 
+ * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + @java.lang.Override + public java.lang.String getWorkforcePoolName() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforcePoolName_ = s; + return s; + } + } + + /** + * + * + *
+     * Workforce pool name.
+     * Example: "locations/global/workforcePools/pool_id"
+     * 
+ * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkforcePoolNameBytes() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforcePoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workforcePoolName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workforcePoolName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workforcePoolName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workforcePoolName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig other = + (com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) obj; + + if (!getWorkforcePoolName().equals(other.getWorkforcePoolName())) 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) + WORKFORCE_POOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getWorkforcePoolName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Third party IDP Config.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.class, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workforcePoolName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig build() { + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig buildPartial() { + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig result = + new com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workforcePoolName_ = workforcePoolName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.getDefaultInstance()) + return this; + if (!other.getWorkforcePoolName().isEmpty()) { + workforcePoolName_ = other.workforcePoolName_; + 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: + { + workforcePoolName_ = 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 workforcePoolName_ = ""; + + /** + * + * + *
+       * Workforce pool name.
+       * Example: "locations/global/workforcePools/pool_id"
+       * 
+ * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + public java.lang.String getWorkforcePoolName() { + java.lang.Object ref = workforcePoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforcePoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Workforce pool name.
+       * Example: "locations/global/workforcePools/pool_id"
+       * 
+ * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + public com.google.protobuf.ByteString getWorkforcePoolNameBytes() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforcePoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Workforce pool name.
+       * Example: "locations/global/workforcePools/pool_id"
+       * 
+ * + * string workforce_pool_name = 1; + * + * @param value The workforcePoolName to set. + * @return This builder for chaining. + */ + public Builder setWorkforcePoolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workforcePoolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Workforce pool name.
+       * Example: "locations/global/workforcePools/pool_id"
+       * 
+ * + * string workforce_pool_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkforcePoolName() { + workforcePoolName_ = getDefaultInstance().getWorkforcePoolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Workforce pool name.
+       * Example: "locations/global/workforcePools/pool_id"
+       * 
+ * + * string workforce_pool_name = 1; + * + * @param value The bytes for workforcePoolName to set. + * @return This builder for chaining. + */ + public Builder setWorkforcePoolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workforcePoolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig) + private static final com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig(); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalIdpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int IDP_TYPE_FIELD_NUMBER = 1; + private int idpType_ = 0; + + /** + * + * + *
+   * Identity provider type configured.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + @java.lang.Override + public int getIdpTypeValue() { + return idpType_; + } + + /** + * + * + *
+   * Identity provider type configured.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.IdpType getIdpType() { + com.google.cloud.discoveryengine.v1.IdpConfig.IdpType result = + com.google.cloud.discoveryengine.v1.IdpConfig.IdpType.forNumber(idpType_); + return result == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.IdpType.UNRECOGNIZED + : result; + } + + public static final int EXTERNAL_IDP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig externalIdpConfig_; + + /** + * + * + *
+   * External Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + @java.lang.Override + public boolean hasExternalIdpConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * External Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig getExternalIdpConfig() { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + + /** + * + * + *
+   * External Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder() { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + + 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 (idpType_ + != com.google.cloud.discoveryengine.v1.IdpConfig.IdpType.IDP_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, idpType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExternalIdpConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idpType_ + != com.google.cloud.discoveryengine.v1.IdpConfig.IdpType.IDP_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, idpType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalIdpConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.IdpConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.IdpConfig other = + (com.google.cloud.discoveryengine.v1.IdpConfig) obj; + + if (idpType_ != other.idpType_) return false; + if (hasExternalIdpConfig() != other.hasExternalIdpConfig()) return false; + if (hasExternalIdpConfig()) { + if (!getExternalIdpConfig().equals(other.getExternalIdpConfig())) 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) + IDP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + idpType_; + if (hasExternalIdpConfig()) { + hash = (37 * hash) + EXTERNAL_IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExternalIdpConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.IdpConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Identity Provider Config.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.IdpConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.IdpConfig) + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.IdpConfig.class, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.IdpConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExternalIdpConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + idpType_ = 0; + externalIdpConfig_ = null; + if (externalIdpConfigBuilder_ != null) { + externalIdpConfigBuilder_.dispose(); + externalIdpConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_IdpConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig build() { + com.google.cloud.discoveryengine.v1.IdpConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig buildPartial() { + com.google.cloud.discoveryengine.v1.IdpConfig result = + new com.google.cloud.discoveryengine.v1.IdpConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.IdpConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.idpType_ = idpType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalIdpConfig_ = + externalIdpConfigBuilder_ == null + ? externalIdpConfig_ + : externalIdpConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.IdpConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.IdpConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.IdpConfig other) { + if (other == com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance()) return this; + if (other.idpType_ != 0) { + setIdpTypeValue(other.getIdpTypeValue()); + } + if (other.hasExternalIdpConfig()) { + mergeExternalIdpConfig(other.getExternalIdpConfig()); + } + 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: + { + idpType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetExternalIdpConfigFieldBuilder().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 int idpType_ = 0; + + /** + * + * + *
+     * Identity provider type configured.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + @java.lang.Override + public int getIdpTypeValue() { + return idpType_; + } + + /** + * + * + *
+     * Identity provider type configured.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @param value The enum numeric value on the wire for idpType to set. + * @return This builder for chaining. + */ + public Builder setIdpTypeValue(int value) { + idpType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identity provider type configured.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig.IdpType getIdpType() { + com.google.cloud.discoveryengine.v1.IdpConfig.IdpType result = + com.google.cloud.discoveryengine.v1.IdpConfig.IdpType.forNumber(idpType_); + return result == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.IdpType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Identity provider type configured.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @param value The idpType to set. + * @return This builder for chaining. + */ + public Builder setIdpType(com.google.cloud.discoveryengine.v1.IdpConfig.IdpType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + idpType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identity provider type configured.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdpType() { + bitField0_ = (bitField0_ & ~0x00000001); + idpType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig externalIdpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder> + externalIdpConfigBuilder_; + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + public boolean hasExternalIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig getExternalIdpConfig() { + if (externalIdpConfigBuilder_ == null) { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } else { + return externalIdpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder setExternalIdpConfig( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig value) { + if (externalIdpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalIdpConfig_ = value; + } else { + externalIdpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder setExternalIdpConfig( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder builderForValue) { + if (externalIdpConfigBuilder_ == null) { + externalIdpConfig_ = builderForValue.build(); + } else { + externalIdpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder mergeExternalIdpConfig( + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig value) { + if (externalIdpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalIdpConfig_ != null + && externalIdpConfig_ + != com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig + .getDefaultInstance()) { + getExternalIdpConfigBuilder().mergeFrom(value); + } else { + externalIdpConfig_ = value; + } + } else { + externalIdpConfigBuilder_.mergeFrom(value); + } + if (externalIdpConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder clearExternalIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + externalIdpConfig_ = null; + if (externalIdpConfigBuilder_ != null) { + externalIdpConfigBuilder_.dispose(); + externalIdpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder + getExternalIdpConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExternalIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder() { + if (externalIdpConfigBuilder_ != null) { + return externalIdpConfigBuilder_.getMessageOrBuilder(); + } else { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + } + + /** + * + * + *
+     * External Identity provider config.
+     * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder> + internalGetExternalIdpConfigFieldBuilder() { + if (externalIdpConfigBuilder_ == null) { + externalIdpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder>( + getExternalIdpConfig(), getParentForChildren(), isClean()); + externalIdpConfig_ = null; + } + return externalIdpConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.IdpConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.IdpConfig) + private static final com.google.cloud.discoveryengine.v1.IdpConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.IdpConfig(); + } + + public static com.google.cloud.discoveryengine.v1.IdpConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfigOrBuilder.java new file mode 100644 index 000000000000..e165672f4d23 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdpConfigOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface IdpConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.IdpConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identity provider type configured.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + int getIdpTypeValue(); + + /** + * + * + *
+   * Identity provider type configured.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + com.google.cloud.discoveryengine.v1.IdpConfig.IdpType getIdpType(); + + /** + * + * + *
+   * External Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + boolean hasExternalIdpConfig(); + + /** + * + * + *
+   * External Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig getExternalIdpConfig(); + + /** + * + * + *
+   * External Identity provider config.
+   * 
+ * + * .google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + com.google.cloud.discoveryengine.v1.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java index 71a2ecfe53cb..de041871fffc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportConfigProto.java @@ -280,30 +280,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014error_config\030\002" + " \001(\01322.google.cloud.discoveryengine.v1.ImportErrorConfig\022\033\n" + "\023joined_events_count\030\003 \001(\003\022\035\n" - + "\025unjoined_events_count\030\004 \001(\003\"\252\001\n" + + "\025unjoined_events_count\030\004 \001(\003\"\260\001\n" + "\030ImportUserEventsMetadata\022/\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\0225\n" + + "\013update_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\025\n\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\"\276\001\n" + "\027ImportDocumentsMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n" + + "\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\022\023\n" + "\013total_count\030\005 \001(\003\"\372\t\n" + "\026ImportDocumentsRequest\022]\n\r" - + "inline_source\030\002 \001(\0132D.google.cl" - + "oud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceH\000\022@\n\n" + + "inline_source\030\002 \001(\0132D.goo" + + "gle.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSourceH\000\022@\n\n" + "gcs_source\030\003 \001(\0132*.google.cloud.discoveryengine.v1.GcsSourceH\000\022J\n" - + "\017bigquery_source\030\004 \001(\0132/.google" - + ".cloud.discoveryengine.v1.BigQuerySourceH\000\022M\n" + + "\017bigquery_source\030\004 \001(\0132/." + + "google.cloud.discoveryengine.v1.BigQuerySourceH\000\022M\n" + "\021fhir_store_source\030\n" + " \001(\01320.google.cloud.discoveryengine.v1.FhirStoreSourceH\000\022H\n" - + "\016spanner_source\030\013" - + " \001(\0132..google.cloud.discoveryengine.v1.SpannerSourceH\000\022K\n" - + "\020cloud_sql_source\030\014" - + " \001(\0132/.google.cloud.discoveryengine.v1.CloudSqlSourceH\000\022L\n" + + "\016spanner_source\030\013 \001(\0132..google" + + ".cloud.discoveryengine.v1.SpannerSourceH\000\022K\n" + + "\020cloud_sql_source\030\014 \001(\0132/.google.clo" + + "ud.discoveryengine.v1.CloudSqlSourceH\000\022L\n" + "\020firestore_source\030\r" + " \001(\01320.google.cloud.discoveryengine.v1.FirestoreSourceH\000\022I\n" + "\017alloy_db_source\030\016" @@ -312,17 +314,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.discoveryengine.v1.BigtableSourceH\000\022>\n" + "\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n" + "%discoveryengine.googleapis.com/Branch\022H\n" - + "\014error_config\030\005 \001(\01322.google.clo" - + "ud.discoveryengine.v1.ImportErrorConfig\022g\n" - + "\023reconciliation_mode\030\006 \001(\0162J.google.cl" - + "oud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode\022/\n" + + "\014error_config\030\005 \001(\01322.goog" + + "le.cloud.discoveryengine.v1.ImportErrorConfig\022g\n" + + "\023reconciliation_mode\030\006 \001(\0162J.goo" + + "gle.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode\022/\n" + "\013update_mask\030\007 \001(\0132\032.google.protobuf.FieldMask\022\031\n" + "\021auto_generate_ids\030\010 \001(\010\022\020\n" + "\010id_field\030\t \001(\t\022#\n" + "\025force_refresh_content\030\020 \001(\010B\004\342A\001\001\032R\n" + "\014InlineSource\022B\n" - + "\tdocuments\030\001 \003(\0132).google." - + "cloud.discoveryengine.v1.DocumentB\004\342A\001\002\"T\n" + + "\tdocuments\030\001 \003(\0132).g" + + "oogle.cloud.discoveryengine.v1.DocumentB\004\342A\001\002\"T\n" + "\022ReconciliationMode\022#\n" + "\037RECONCILIATION_MODE_UNSPECIFIED\020\000\022\017\n" + "\013INCREMENTAL\020\001\022\010\n" @@ -330,17 +332,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006source\"\216\001\n" + "\027ImportDocumentsResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022H\n" - + "\014error_config\030\002 \001(\01322.google.cl" - + "oud.discoveryengine.v1.ImportErrorConfig\"\207\003\n" + + "\014error_config\030\002 \001(\01322.goo" + + "gle.cloud.discoveryengine.v1.ImportErrorConfig\"\207\003\n" + "&ImportSuggestionDenyListEntriesRequest\022m\n\r" - + "inline_source\030\002 \001(\0132T.google.clou" - + "d.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest.InlineSourceH\000\022@\n\n" + + "inline_source\030\002 \001(\0132T.google.cloud.discoveryengine.v1.ImportSuggest" + + "ionDenyListEntriesRequest.InlineSourceH\000\022@\n\n" + "gcs_source\030\003 \001(\0132*.google.cloud.discoveryengine.v1.GcsSourceH\000\022A\n" + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\032_\n" + "\014InlineSource\022O\n" - + "\007entries\030\001 \003(\013" - + "28.google.cloud.discoveryengine.v1.SuggestionDenyListEntryB\004\342A\001\002B\010\n" + + "\007entries\030\001" + + " \003(\01328.google.cloud.discoveryengine.v1.SuggestionDenyListEntryB\004\342A\001\002B\010\n" + "\006source\"\222\001\n" + "\'ImportSuggestionDenyListEntriesResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022\036\n" @@ -350,18 +352,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\226\004\n" + "\"ImportCompletionSuggestionsRequest\022i\n\r" - + "inline_source\030\002 \001(\0132P.google.clo" - + "ud.discoveryengine.v1.ImportCompletionSuggestionsRequest.InlineSourceH\000\022@\n\n" + + "inline_source\030\002 \001(\0132P.goog" + + "le.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest.InlineSourceH\000\022@\n" + + "\n" + "gcs_source\030\003 \001(\0132*.google.cloud.discoveryengine.v1.GcsSourceH\000\022J\n" - + "\017bigquery_source\030\004 \001" - + "(\0132/.google.cloud.discoveryengine.v1.BigQuerySourceH\000\022A\n" + + "\017bigquery_source\030\004" + + " \001(\0132/.google.cloud.discoveryengine.v1.BigQuerySourceH\000\022A\n" + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022H\n" - + "\014error_config\030\005" - + " \001(\01322.google.cloud.discoveryengine.v1.ImportErrorConfig\032`\n" + + "\014error_config\030\005 \001(\01322.google.cl" + + "oud.discoveryengine.v1.ImportErrorConfig\032`\n" + "\014InlineSource\022P\n" - + "\013suggestions\030\001 \003(\01325.google" - + ".cloud.discoveryengine.v1.CompletionSuggestionB\004\342A\001\002B\010\n" + + "\013suggestions\030\001 \003(\01325." + + "google.cloud.discoveryengine.v1.CompletionSuggestionB\004\342A\001\002B\010\n" + "\006source\"\232\001\n" + "#ImportCompletionSuggestionsResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022H\n" @@ -369,16 +372,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01322.google.cloud.discoveryengine.v1.ImportErrorConfig\"\265\001\n" + "#ImportCompletionSuggestionsMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n" - + "\r" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003B\204\002\n" - + "#com.google.cloud.discoveryengine.v1B\021ImportConfigProtoP\001ZMcloud.google.c" - + "om/go/discoveryengine/apiv1/discoveryeng" - + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" - + "E\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037Go" - + "ogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::" - + "Cloud::DiscoveryEngine::V1b\006proto3" + + "#com.google.cloud.discoveryengine.v1B\021ImportConfigProtoP\001ZMcloud.go" + + "ogle.com/go/discoveryengine/apiv1/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002\037Google.Cloud.DiscoveryEngine.V" + + "1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Go" + + "ogle::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java index 247f5c74343e..46729e84748f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequest.java @@ -109,6 +109,9 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu *
      * Calculates diff and replaces the entire document dataset. Existing
      * documents may be deleted if they are not present in the source location.
+     * When using this mode, there won't be any downtime on the dataset
+     * targeted. Any document that should remain unchanged or that should be
+     * updated will continue serving while the operation is running.
      * 
* * FULL = 2; @@ -155,6 +158,9 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu *
      * Calculates diff and replaces the entire document dataset. Existing
      * documents may be deleted if they are not present in the source location.
+     * When using this mode, there won't be any downtime on the dataset
+     * targeted. Any document that should remain unchanged or that should be
+     * updated will continue serving while the operation is running.
      * 
* * FULL = 2; @@ -2211,7 +2217,6 @@ public boolean getAutoGenerateIds() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. *
* @@ -2268,7 +2273,6 @@ public java.lang.String getIdField() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * @@ -5944,7 +5948,6 @@ public Builder clearAutoGenerateIds() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * @@ -6000,7 +6003,6 @@ public java.lang.String getIdField() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * @@ -6056,7 +6058,6 @@ public com.google.protobuf.ByteString getIdFieldBytes() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * @@ -6111,7 +6112,6 @@ public Builder setIdField(java.lang.String value) { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * @@ -6162,7 +6162,6 @@ public Builder clearIdField() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java index 32d0930bd5d2..88ff58bdce5a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportDocumentsRequestOrBuilder.java @@ -582,7 +582,6 @@ public interface ImportDocumentsRequestOrBuilder * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * @@ -628,7 +627,6 @@ public interface ImportDocumentsRequestOrBuilder * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java index 6a12f65f7c70..ae05564c2ada 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadata.java @@ -126,11 +126,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Operation last update time. If the operation is done, this is also the
-   * finish time.
+   * Output only. Operation last update time. If the operation is done, this is
+   * also the finish time.
    * 
* - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -143,11 +144,12 @@ public boolean hasUpdateTime() { * * *
-   * Operation last update time. If the operation is done, this is also the
-   * finish time.
+   * Output only. Operation last update time. If the operation is done, this is
+   * also the finish time.
    * 
* - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -160,11 +162,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-   * Operation last update time. If the operation is done, this is also the
-   * finish time.
+   * Output only. Operation last update time. If the operation is done, this is
+   * also the finish time.
    * 
* - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -827,11 +830,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -843,11 +848,13 @@ public boolean hasUpdateTime() { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -865,11 +872,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -889,11 +898,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -910,11 +921,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -939,11 +952,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -960,11 +975,13 @@ public Builder clearUpdateTime() { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000002; @@ -976,11 +993,13 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -996,11 +1015,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Operation last update time. If the operation is done, this is also the
-     * finish time.
+     * Output only. Operation last update time. If the operation is done, this is
+     * also the finish time.
      * 
* - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java index 6e6fc4c9c755..6bcecc522015 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ImportUserEventsMetadataOrBuilder.java @@ -67,11 +67,12 @@ public interface ImportUserEventsMetadataOrBuilder * * *
-   * Operation last update time. If the operation is done, this is also the
-   * finish time.
+   * Output only. Operation last update time. If the operation is done, this is
+   * also the finish time.
    * 
* - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -81,11 +82,12 @@ public interface ImportUserEventsMetadataOrBuilder * * *
-   * Operation last update time. If the operation is done, this is also the
-   * finish time.
+   * Output only. Operation last update time. If the operation is done, this is
+   * also the finish time.
    * 
* - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -95,11 +97,12 @@ public interface ImportUserEventsMetadataOrBuilder * * *
-   * Operation last update time. If the operation is done, this is also the
-   * finish time.
+   * Output only. Operation last update time. If the operation is done, this is
+   * also the finish time.
    * 
* - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfig.java new file mode 100644 index 000000000000..6601ed1487fc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfig.java @@ -0,0 +1,3113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Information about users' licenses.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.LicenseConfig} + */ +@com.google.protobuf.Generated +public final class LicenseConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.LicenseConfig) + LicenseConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LicenseConfig"); + } + + // Use LicenseConfig.newBuilder() to construct. + private LicenseConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LicenseConfig() { + name_ = ""; + subscriptionTier_ = 0; + state_ = 0; + subscriptionTerm_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.LicenseConfig.class, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder.class); + } + + /** + * + * + *
+   * License config state enumeration.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.LicenseConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. The license config does not exist.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The license config is effective and being used.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * The license config has expired.
+     * 
+ * + * EXPIRED = 2; + */ + EXPIRED(2), + /** + * + * + *
+     * The license config has not started yet, and its start date is in the
+     * future.
+     * 
+ * + * NOT_STARTED = 3; + */ + NOT_STARTED(3), + /** + * + * + *
+     * This is when a sub license config has returned all its seats back to
+     * BillingAccountLicenseConfig that it belongs to.
+     * Similar to EXPIRED.
+     * 
+ * + * WITHDRAWN = 4; + */ + WITHDRAWN(4), + /** + * + * + *
+     * The license config is in a grace period. Its subscription has ended,
+     * either through early termination or by reaching its end date, but the
+     * customer keeps access for a limited time. It becomes EXPIRED when the
+     * grace period ends.
+     * 
+ * + * DEACTIVATING = 5; + */ + DEACTIVATING(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Default value. The license config does not exist.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The license config is effective and being used.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
+     * The license config has expired.
+     * 
+ * + * EXPIRED = 2; + */ + public static final int EXPIRED_VALUE = 2; + + /** + * + * + *
+     * The license config has not started yet, and its start date is in the
+     * future.
+     * 
+ * + * NOT_STARTED = 3; + */ + public static final int NOT_STARTED_VALUE = 3; + + /** + * + * + *
+     * This is when a sub license config has returned all its seats back to
+     * BillingAccountLicenseConfig that it belongs to.
+     * Similar to EXPIRED.
+     * 
+ * + * WITHDRAWN = 4; + */ + public static final int WITHDRAWN_VALUE = 4; + + /** + * + * + *
+     * The license config is in a grace period. Its subscription has ended,
+     * either through early termination or by reaching its end date, but the
+     * customer keeps access for a limited time. It becomes EXPIRED when the
+     * grace period ends.
+     * 
+ * + * DEACTIVATING = 5; + */ + public static final int DEACTIVATING_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return EXPIRED; + case 3: + return NOT_STARTED; + case 4: + return WITHDRAWN; + case 5: + return DEACTIVATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.LicenseConfig.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. Identifier. The fully qualified resource name of the license
+   * config. Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. Identifier. The fully qualified resource name of the license
+   * config. Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_COUNT_FIELD_NUMBER = 2; + private long licenseCount_ = 0L; + + /** + * + * + *
+   * Required. Number of licenses purchased.
+   * 
+ * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + public static final int SUBSCRIPTION_TIER_FIELD_NUMBER = 3; + private int subscriptionTier_ = 0; + + /** + * + * + *
+   * Required. Subscription tier information for the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTier. + */ + @java.lang.Override + public int getSubscriptionTierValue() { + return subscriptionTier_; + } + + /** + * + * + *
+   * Required. Subscription tier information for the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTier. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SubscriptionTier getSubscriptionTier() { + com.google.cloud.discoveryengine.v1.SubscriptionTier result = + com.google.cloud.discoveryengine.v1.SubscriptionTier.forNumber(subscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1.SubscriptionTier.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig.State getState() { + com.google.cloud.discoveryengine.v1.LicenseConfig.State result = + com.google.cloud.discoveryengine.v1.LicenseConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.State.UNRECOGNIZED + : result; + } + + public static final int AUTO_RENEW_FIELD_NUMBER = 5; + private boolean autoRenew_ = false; + + /** + * + * + *
+   * Optional. Whether the license config should be auto renewed when it reaches
+   * the end date.
+   * 
+ * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRenew. + */ + @java.lang.Override + public boolean getAutoRenew() { + return autoRenew_; + } + + public static final int START_DATE_FIELD_NUMBER = 6; + private com.google.type.Date startDate_; + + /** + * + * + *
+   * Required. The start date.
+   * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The start date.
+   * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + @java.lang.Override + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + /** + * + * + *
+   * Required. The start date.
+   * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + public static final int END_DATE_FIELD_NUMBER = 7; + private com.google.type.Date endDate_; + + /** + * + * + *
+   * Optional. The planed end date.
+   * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endDate field is set. + */ + @java.lang.Override + public boolean hasEndDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The planed end date.
+   * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endDate. + */ + @java.lang.Override + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + /** + * + * + *
+   * Optional. The planed end date.
+   * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + public static final int SUBSCRIPTION_TERM_FIELD_NUMBER = 8; + private int subscriptionTerm_ = 0; + + /** + * + * + *
+   * Required. Subscription term.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTerm. + */ + @java.lang.Override + public int getSubscriptionTermValue() { + return subscriptionTerm_; + } + + /** + * + * + *
+   * Required. Subscription term.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTerm. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SubscriptionTerm getSubscriptionTerm() { + com.google.cloud.discoveryengine.v1.SubscriptionTerm result = + com.google.cloud.discoveryengine.v1.SubscriptionTerm.forNumber(subscriptionTerm_); + return result == null + ? com.google.cloud.discoveryengine.v1.SubscriptionTerm.UNRECOGNIZED + : result; + } + + public static final int FREE_TRIAL_FIELD_NUMBER = 9; + private boolean freeTrial_ = false; + + /** + * + * + *
+   * Optional. Whether the license config is for free trial.
+   * 
+ * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The freeTrial. + */ + @java.lang.Override + public boolean getFreeTrial() { + return freeTrial_; + } + + public static final int GEMINI_BUNDLE_FIELD_NUMBER = 11; + private boolean geminiBundle_ = false; + + /** + * + * + *
+   * Output only. Whether the license config is for Gemini bundle.
+   * 
+ * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + @java.lang.Override + public boolean getGeminiBundle() { + return geminiBundle_; + } + + public static final int EARLY_TERMINATED_FIELD_NUMBER = 12; + private boolean earlyTerminated_ = false; + + /** + * + * + *
+   * Output only. Indication of whether the subscription is terminated earlier
+   * than the expiration date.
+   * 
+ * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The earlyTerminated. + */ + @java.lang.Override + public boolean getEarlyTerminated() { + return earlyTerminated_; + } + + public static final int EARLY_TERMINATION_DATE_FIELD_NUMBER = 13; + private com.google.type.Date earlyTerminationDate_; + + /** + * + * + *
+   * Output only. The date when the subscription is terminated earlier than the
+   * expiration date.
+   * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earlyTerminationDate field is set. + */ + @java.lang.Override + public boolean hasEarlyTerminationDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The date when the subscription is terminated earlier than the
+   * expiration date.
+   * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earlyTerminationDate. + */ + @java.lang.Override + public com.google.type.Date getEarlyTerminationDate() { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } + + /** + * + * + *
+   * Output only. The date when the subscription is terminated earlier than the
+   * expiration date.
+   * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEarlyTerminationDateOrBuilder() { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } + + public static final int LAST_USER_UPDATE_TIME_FIELD_NUMBER = 16; + private com.google.protobuf.Timestamp lastUserUpdateTime_; + + /** + * + * + *
+   * Optional. Timestamp of the most recent user-initiated update (seat count
+   * change or subscription term change). Unlike `update_time`, this field is
+   * only stamped when a customer explicitly updates the license (e.g. via the
+   * UI), and is not touched by system-driven writes (subscription pipeline,
+   * BALC propagation, etc.).
+   * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the lastUserUpdateTime field is set. + */ + @java.lang.Override + public boolean hasLastUserUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Timestamp of the most recent user-initiated update (seat count
+   * change or subscription term change). Unlike `update_time`, this field is
+   * only stamped when a customer explicitly updates the license (e.g. via the
+   * UI), and is not touched by system-driven writes (subscription pipeline,
+   * BALC propagation, etc.).
+   * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The lastUserUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastUserUpdateTime() { + return lastUserUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUserUpdateTime_; + } + + /** + * + * + *
+   * Optional. Timestamp of the most recent user-initiated update (seat count
+   * change or subscription term change). Unlike `update_time`, this field is
+   * only stamped when a customer explicitly updates the license (e.g. via the
+   * UI), and is not touched by system-driven writes (subscription pipeline,
+   * BALC propagation, etc.).
+   * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUserUpdateTimeOrBuilder() { + return lastUserUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUserUpdateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (licenseCount_ != 0L) { + output.writeInt64(2, licenseCount_); + } + if (subscriptionTier_ + != com.google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, subscriptionTier_); + } + if (state_ + != com.google.cloud.discoveryengine.v1.LicenseConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (autoRenew_ != false) { + output.writeBool(5, autoRenew_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getEndDate()); + } + if (subscriptionTerm_ + != com.google.cloud.discoveryengine.v1.SubscriptionTerm.SUBSCRIPTION_TERM_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, subscriptionTerm_); + } + if (freeTrial_ != false) { + output.writeBool(9, freeTrial_); + } + if (geminiBundle_ != false) { + output.writeBool(11, geminiBundle_); + } + if (earlyTerminated_ != false) { + output.writeBool(12, earlyTerminated_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getEarlyTerminationDate()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(16, getLastUserUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (licenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, licenseCount_); + } + if (subscriptionTier_ + != com.google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, subscriptionTier_); + } + if (state_ + != com.google.cloud.discoveryengine.v1.LicenseConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (autoRenew_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, autoRenew_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndDate()); + } + if (subscriptionTerm_ + != com.google.cloud.discoveryengine.v1.SubscriptionTerm.SUBSCRIPTION_TERM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, subscriptionTerm_); + } + if (freeTrial_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, freeTrial_); + } + if (geminiBundle_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, geminiBundle_); + } + if (earlyTerminated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, earlyTerminated_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getEarlyTerminationDate()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getLastUserUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.LicenseConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.LicenseConfig other = + (com.google.cloud.discoveryengine.v1.LicenseConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (getLicenseCount() != other.getLicenseCount()) return false; + if (subscriptionTier_ != other.subscriptionTier_) return false; + if (state_ != other.state_) return false; + if (getAutoRenew() != other.getAutoRenew()) return false; + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate().equals(other.getStartDate())) return false; + } + if (hasEndDate() != other.hasEndDate()) return false; + if (hasEndDate()) { + if (!getEndDate().equals(other.getEndDate())) return false; + } + if (subscriptionTerm_ != other.subscriptionTerm_) return false; + if (getFreeTrial() != other.getFreeTrial()) return false; + if (getGeminiBundle() != other.getGeminiBundle()) return false; + if (getEarlyTerminated() != other.getEarlyTerminated()) return false; + if (hasEarlyTerminationDate() != other.hasEarlyTerminationDate()) return false; + if (hasEarlyTerminationDate()) { + if (!getEarlyTerminationDate().equals(other.getEarlyTerminationDate())) return false; + } + if (hasLastUserUpdateTime() != other.hasLastUserUpdateTime()) return false; + if (hasLastUserUpdateTime()) { + if (!getLastUserUpdateTime().equals(other.getLastUserUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLicenseCount()); + hash = (37 * hash) + SUBSCRIPTION_TIER_FIELD_NUMBER; + hash = (53 * hash) + subscriptionTier_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + AUTO_RENEW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRenew()); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (37 * hash) + SUBSCRIPTION_TERM_FIELD_NUMBER; + hash = (53 * hash) + subscriptionTerm_; + hash = (37 * hash) + FREE_TRIAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFreeTrial()); + hash = (37 * hash) + GEMINI_BUNDLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGeminiBundle()); + hash = (37 * hash) + EARLY_TERMINATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEarlyTerminated()); + if (hasEarlyTerminationDate()) { + hash = (37 * hash) + EARLY_TERMINATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEarlyTerminationDate().hashCode(); + } + if (hasLastUserUpdateTime()) { + hash = (37 * hash) + LAST_USER_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastUserUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.LicenseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Information about users' licenses.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.LicenseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.LicenseConfig) + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.LicenseConfig.class, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.LicenseConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartDateFieldBuilder(); + internalGetEndDateFieldBuilder(); + internalGetEarlyTerminationDateFieldBuilder(); + internalGetLastUserUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + licenseCount_ = 0L; + subscriptionTier_ = 0; + state_ = 0; + autoRenew_ = false; + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + subscriptionTerm_ = 0; + freeTrial_ = false; + geminiBundle_ = false; + earlyTerminated_ = false; + earlyTerminationDate_ = null; + if (earlyTerminationDateBuilder_ != null) { + earlyTerminationDateBuilder_.dispose(); + earlyTerminationDateBuilder_ = null; + } + lastUserUpdateTime_ = null; + if (lastUserUpdateTimeBuilder_ != null) { + lastUserUpdateTimeBuilder_.dispose(); + lastUserUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig build() { + com.google.cloud.discoveryengine.v1.LicenseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig buildPartial() { + com.google.cloud.discoveryengine.v1.LicenseConfig result = + new com.google.cloud.discoveryengine.v1.LicenseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.LicenseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseCount_ = licenseCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subscriptionTier_ = subscriptionTier_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.autoRenew_ = autoRenew_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.subscriptionTerm_ = subscriptionTerm_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.freeTrial_ = freeTrial_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.geminiBundle_ = geminiBundle_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.earlyTerminated_ = earlyTerminated_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.earlyTerminationDate_ = + earlyTerminationDateBuilder_ == null + ? earlyTerminationDate_ + : earlyTerminationDateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.lastUserUpdateTime_ = + lastUserUpdateTimeBuilder_ == null + ? lastUserUpdateTime_ + : lastUserUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.LicenseConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.LicenseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.LicenseConfig other) { + if (other == com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getLicenseCount() != 0L) { + setLicenseCount(other.getLicenseCount()); + } + if (other.subscriptionTier_ != 0) { + setSubscriptionTierValue(other.getSubscriptionTierValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getAutoRenew() != false) { + setAutoRenew(other.getAutoRenew()); + } + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (other.subscriptionTerm_ != 0) { + setSubscriptionTermValue(other.getSubscriptionTermValue()); + } + if (other.getFreeTrial() != false) { + setFreeTrial(other.getFreeTrial()); + } + if (other.getGeminiBundle() != false) { + setGeminiBundle(other.getGeminiBundle()); + } + if (other.getEarlyTerminated() != false) { + setEarlyTerminated(other.getEarlyTerminated()); + } + if (other.hasEarlyTerminationDate()) { + mergeEarlyTerminationDate(other.getEarlyTerminationDate()); + } + if (other.hasLastUserUpdateTime()) { + mergeLastUserUpdateTime(other.getLastUserUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + licenseCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + subscriptionTier_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + autoRenew_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(internalGetEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + subscriptionTerm_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + freeTrial_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 88: + { + geminiBundle_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + earlyTerminated_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 106: + { + input.readMessage( + internalGetEarlyTerminationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 130: + { + input.readMessage( + internalGetLastUserUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the license
+     * config. Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the license
+     * config. Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the license
+     * config. Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the license
+     * config. Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. Identifier. The fully qualified resource name of the license
+     * config. Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long licenseCount_; + + /** + * + * + *
+     * Required. Number of licenses purchased.
+     * 
+ * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + /** + * + * + *
+     * Required. Number of licenses purchased.
+     * 
+ * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The licenseCount to set. + * @return This builder for chaining. + */ + public Builder setLicenseCount(long value) { + + licenseCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Number of licenses purchased.
+     * 
+ * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000002); + licenseCount_ = 0L; + onChanged(); + return this; + } + + private int subscriptionTier_ = 0; + + /** + * + * + *
+     * Required. Subscription tier information for the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTier. + */ + @java.lang.Override + public int getSubscriptionTierValue() { + return subscriptionTier_; + } + + /** + * + * + *
+     * Required. Subscription tier information for the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for subscriptionTier to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTierValue(int value) { + subscriptionTier_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Subscription tier information for the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTier. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SubscriptionTier getSubscriptionTier() { + com.google.cloud.discoveryengine.v1.SubscriptionTier result = + com.google.cloud.discoveryengine.v1.SubscriptionTier.forNumber(subscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1.SubscriptionTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Subscription tier information for the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The subscriptionTier to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTier(com.google.cloud.discoveryengine.v1.SubscriptionTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + subscriptionTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Subscription tier information for the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionTier() { + bitField0_ = (bitField0_ & ~0x00000004); + subscriptionTier_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig.State getState() { + com.google.cloud.discoveryengine.v1.LicenseConfig.State result = + com.google.cloud.discoveryengine.v1.LicenseConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1.LicenseConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the license config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private boolean autoRenew_; + + /** + * + * + *
+     * Optional. Whether the license config should be auto renewed when it reaches
+     * the end date.
+     * 
+ * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRenew. + */ + @java.lang.Override + public boolean getAutoRenew() { + return autoRenew_; + } + + /** + * + * + *
+     * Optional. Whether the license config should be auto renewed when it reaches
+     * the end date.
+     * 
+ * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoRenew to set. + * @return This builder for chaining. + */ + public Builder setAutoRenew(boolean value) { + + autoRenew_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the license config should be auto renewed when it reaches
+     * the end date.
+     * 
+ * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoRenew() { + bitField0_ = (bitField0_ & ~0x00000010); + autoRenew_ = false; + onChanged(); + return this; + } + + private com.google.type.Date startDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + } else { + startDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { + getStartDateBuilder().mergeFrom(value); + } else { + startDate_ = value; + } + } else { + startDateBuilder_.mergeFrom(value); + } + if (startDate_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStartDate() { + bitField0_ = (bitField0_ & ~0x00000020); + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStartDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + + /** + * + * + *
+     * Required. The start date.
+     * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endDate field is set. + */ + public boolean hasEndDate() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endDate. + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + } else { + endDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endDate_ != null + && endDate_ != com.google.type.Date.getDefaultInstance()) { + getEndDateBuilder().mergeFrom(value); + } else { + endDate_ = value; + } + } else { + endDateBuilder_.mergeFrom(value); + } + if (endDate_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearEndDate() { + bitField0_ = (bitField0_ & ~0x00000040); + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetEndDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + + /** + * + * + *
+     * Optional. The planed end date.
+     * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private int subscriptionTerm_ = 0; + + /** + * + * + *
+     * Required. Subscription term.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTerm. + */ + @java.lang.Override + public int getSubscriptionTermValue() { + return subscriptionTerm_; + } + + /** + * + * + *
+     * Required. Subscription term.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for subscriptionTerm to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTermValue(int value) { + subscriptionTerm_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Subscription term.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTerm. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SubscriptionTerm getSubscriptionTerm() { + com.google.cloud.discoveryengine.v1.SubscriptionTerm result = + com.google.cloud.discoveryengine.v1.SubscriptionTerm.forNumber(subscriptionTerm_); + return result == null + ? com.google.cloud.discoveryengine.v1.SubscriptionTerm.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Subscription term.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The subscriptionTerm to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTerm(com.google.cloud.discoveryengine.v1.SubscriptionTerm value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + subscriptionTerm_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Subscription term.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionTerm() { + bitField0_ = (bitField0_ & ~0x00000080); + subscriptionTerm_ = 0; + onChanged(); + return this; + } + + private boolean freeTrial_; + + /** + * + * + *
+     * Optional. Whether the license config is for free trial.
+     * 
+ * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The freeTrial. + */ + @java.lang.Override + public boolean getFreeTrial() { + return freeTrial_; + } + + /** + * + * + *
+     * Optional. Whether the license config is for free trial.
+     * 
+ * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The freeTrial to set. + * @return This builder for chaining. + */ + public Builder setFreeTrial(boolean value) { + + freeTrial_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the license config is for free trial.
+     * 
+ * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFreeTrial() { + bitField0_ = (bitField0_ & ~0x00000100); + freeTrial_ = false; + onChanged(); + return this; + } + + private boolean geminiBundle_; + + /** + * + * + *
+     * Output only. Whether the license config is for Gemini bundle.
+     * 
+ * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + @java.lang.Override + public boolean getGeminiBundle() { + return geminiBundle_; + } + + /** + * + * + *
+     * Output only. Whether the license config is for Gemini bundle.
+     * 
+ * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The geminiBundle to set. + * @return This builder for chaining. + */ + public Builder setGeminiBundle(boolean value) { + + geminiBundle_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the license config is for Gemini bundle.
+     * 
+ * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGeminiBundle() { + bitField0_ = (bitField0_ & ~0x00000200); + geminiBundle_ = false; + onChanged(); + return this; + } + + private boolean earlyTerminated_; + + /** + * + * + *
+     * Output only. Indication of whether the subscription is terminated earlier
+     * than the expiration date.
+     * 
+ * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The earlyTerminated. + */ + @java.lang.Override + public boolean getEarlyTerminated() { + return earlyTerminated_; + } + + /** + * + * + *
+     * Output only. Indication of whether the subscription is terminated earlier
+     * than the expiration date.
+     * 
+ * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The earlyTerminated to set. + * @return This builder for chaining. + */ + public Builder setEarlyTerminated(boolean value) { + + earlyTerminated_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indication of whether the subscription is terminated earlier
+     * than the expiration date.
+     * 
+ * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEarlyTerminated() { + bitField0_ = (bitField0_ & ~0x00000400); + earlyTerminated_ = false; + onChanged(); + return this; + } + + private com.google.type.Date earlyTerminationDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + earlyTerminationDateBuilder_; + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earlyTerminationDate field is set. + */ + public boolean hasEarlyTerminationDate() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earlyTerminationDate. + */ + public com.google.type.Date getEarlyTerminationDate() { + if (earlyTerminationDateBuilder_ == null) { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } else { + return earlyTerminationDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarlyTerminationDate(com.google.type.Date value) { + if (earlyTerminationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earlyTerminationDate_ = value; + } else { + earlyTerminationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarlyTerminationDate(com.google.type.Date.Builder builderForValue) { + if (earlyTerminationDateBuilder_ == null) { + earlyTerminationDate_ = builderForValue.build(); + } else { + earlyTerminationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEarlyTerminationDate(com.google.type.Date value) { + if (earlyTerminationDateBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && earlyTerminationDate_ != null + && earlyTerminationDate_ != com.google.type.Date.getDefaultInstance()) { + getEarlyTerminationDateBuilder().mergeFrom(value); + } else { + earlyTerminationDate_ = value; + } + } else { + earlyTerminationDateBuilder_.mergeFrom(value); + } + if (earlyTerminationDate_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEarlyTerminationDate() { + bitField0_ = (bitField0_ & ~0x00000800); + earlyTerminationDate_ = null; + if (earlyTerminationDateBuilder_ != null) { + earlyTerminationDateBuilder_.dispose(); + earlyTerminationDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getEarlyTerminationDateBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetEarlyTerminationDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getEarlyTerminationDateOrBuilder() { + if (earlyTerminationDateBuilder_ != null) { + return earlyTerminationDateBuilder_.getMessageOrBuilder(); + } else { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } + } + + /** + * + * + *
+     * Output only. The date when the subscription is terminated earlier than the
+     * expiration date.
+     * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetEarlyTerminationDateFieldBuilder() { + if (earlyTerminationDateBuilder_ == null) { + earlyTerminationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEarlyTerminationDate(), getParentForChildren(), isClean()); + earlyTerminationDate_ = null; + } + return earlyTerminationDateBuilder_; + } + + private com.google.protobuf.Timestamp lastUserUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUserUpdateTimeBuilder_; + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the lastUserUpdateTime field is set. + */ + public boolean hasLastUserUpdateTime() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The lastUserUpdateTime. + */ + public com.google.protobuf.Timestamp getLastUserUpdateTime() { + if (lastUserUpdateTimeBuilder_ == null) { + return lastUserUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUserUpdateTime_; + } else { + return lastUserUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLastUserUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUserUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastUserUpdateTime_ = value; + } else { + lastUserUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLastUserUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastUserUpdateTimeBuilder_ == null) { + lastUserUpdateTime_ = builderForValue.build(); + } else { + lastUserUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLastUserUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUserUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && lastUserUpdateTime_ != null + && lastUserUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUserUpdateTimeBuilder().mergeFrom(value); + } else { + lastUserUpdateTime_ = value; + } + } else { + lastUserUpdateTimeBuilder_.mergeFrom(value); + } + if (lastUserUpdateTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLastUserUpdateTime() { + bitField0_ = (bitField0_ & ~0x00001000); + lastUserUpdateTime_ = null; + if (lastUserUpdateTimeBuilder_ != null) { + lastUserUpdateTimeBuilder_.dispose(); + lastUserUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastUserUpdateTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetLastUserUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastUserUpdateTimeOrBuilder() { + if (lastUserUpdateTimeBuilder_ != null) { + return lastUserUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return lastUserUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUserUpdateTime_; + } + } + + /** + * + * + *
+     * Optional. Timestamp of the most recent user-initiated update (seat count
+     * change or subscription term change). Unlike `update_time`, this field is
+     * only stamped when a customer explicitly updates the license (e.g. via the
+     * UI), and is not touched by system-driven writes (subscription pipeline,
+     * BALC propagation, etc.).
+     * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastUserUpdateTimeFieldBuilder() { + if (lastUserUpdateTimeBuilder_ == null) { + lastUserUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUserUpdateTime(), getParentForChildren(), isClean()); + lastUserUpdateTime_ = null; + } + return lastUserUpdateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.LicenseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.LicenseConfig) + private static final com.google.cloud.discoveryengine.v1.LicenseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.LicenseConfig(); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LicenseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigName.java new file mode 100644 index 000000000000..7cb356567f2a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class LicenseConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_LICENSE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/licenseConfigs/{license_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String licenseConfig; + + @Deprecated + protected LicenseConfigName() { + project = null; + location = null; + licenseConfig = null; + } + + private LicenseConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + licenseConfig = Preconditions.checkNotNull(builder.getLicenseConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getLicenseConfig() { + return licenseConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LicenseConfigName of(String project, String location, String licenseConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setLicenseConfig(licenseConfig) + .build(); + } + + public static String format(String project, String location, String licenseConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setLicenseConfig(licenseConfig) + .build() + .toString(); + } + + public static @Nullable LicenseConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_LICENSE_CONFIG.validatedMatch( + formattedString, "LicenseConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("license_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable LicenseConfigName> values) { + List list = new ArrayList<>(values.size()); + for (LicenseConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_LICENSE_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (licenseConfig != null) { + fieldMapBuilder.put("license_config", licenseConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_LICENSE_CONFIG.instantiate( + "project", project, "location", location, "license_config", licenseConfig); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LicenseConfigName that = ((LicenseConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.licenseConfig, that.licenseConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(licenseConfig); + return h; + } + + /** Builder for projects/{project}/locations/{location}/licenseConfigs/{license_config}. */ + public static class Builder { + private String project; + private String location; + private String licenseConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getLicenseConfig() { + return licenseConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setLicenseConfig(String licenseConfig) { + this.licenseConfig = licenseConfig; + return this; + } + + private Builder(LicenseConfigName licenseConfigName) { + this.project = licenseConfigName.project; + this.location = licenseConfigName.location; + this.licenseConfig = licenseConfigName.licenseConfig; + } + + public LicenseConfigName build() { + return new LicenseConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigOrBuilder.java new file mode 100644 index 000000000000..f7aa148de52f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigOrBuilder.java @@ -0,0 +1,394 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface LicenseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.LicenseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. Identifier. The fully qualified resource name of the license
+   * config. Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Immutable. Identifier. The fully qualified resource name of the license
+   * config. Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Number of licenses purchased.
+   * 
+ * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + long getLicenseCount(); + + /** + * + * + *
+   * Required. Subscription tier information for the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTier. + */ + int getSubscriptionTierValue(); + + /** + * + * + *
+   * Required. Subscription tier information for the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTier. + */ + com.google.cloud.discoveryengine.v1.SubscriptionTier getSubscriptionTier(); + + /** + * + * + *
+   * Output only. The state of the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the license config.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1.LicenseConfig.State getState(); + + /** + * + * + *
+   * Optional. Whether the license config should be auto renewed when it reaches
+   * the end date.
+   * 
+ * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRenew. + */ + boolean getAutoRenew(); + + /** + * + * + *
+   * Required. The start date.
+   * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + + /** + * + * + *
+   * Required. The start date.
+   * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + com.google.type.Date getStartDate(); + + /** + * + * + *
+   * Required. The start date.
+   * 
+ * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
+   * Optional. The planed end date.
+   * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endDate field is set. + */ + boolean hasEndDate(); + + /** + * + * + *
+   * Optional. The planed end date.
+   * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endDate. + */ + com.google.type.Date getEndDate(); + + /** + * + * + *
+   * Optional. The planed end date.
+   * 
+ * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
+   * Required. Subscription term.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTerm. + */ + int getSubscriptionTermValue(); + + /** + * + * + *
+   * Required. Subscription term.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTerm. + */ + com.google.cloud.discoveryengine.v1.SubscriptionTerm getSubscriptionTerm(); + + /** + * + * + *
+   * Optional. Whether the license config is for free trial.
+   * 
+ * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The freeTrial. + */ + boolean getFreeTrial(); + + /** + * + * + *
+   * Output only. Whether the license config is for Gemini bundle.
+   * 
+ * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + boolean getGeminiBundle(); + + /** + * + * + *
+   * Output only. Indication of whether the subscription is terminated earlier
+   * than the expiration date.
+   * 
+ * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The earlyTerminated. + */ + boolean getEarlyTerminated(); + + /** + * + * + *
+   * Output only. The date when the subscription is terminated earlier than the
+   * expiration date.
+   * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earlyTerminationDate field is set. + */ + boolean hasEarlyTerminationDate(); + + /** + * + * + *
+   * Output only. The date when the subscription is terminated earlier than the
+   * expiration date.
+   * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earlyTerminationDate. + */ + com.google.type.Date getEarlyTerminationDate(); + + /** + * + * + *
+   * Output only. The date when the subscription is terminated earlier than the
+   * expiration date.
+   * 
+ * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getEarlyTerminationDateOrBuilder(); + + /** + * + * + *
+   * Optional. Timestamp of the most recent user-initiated update (seat count
+   * change or subscription term change). Unlike `update_time`, this field is
+   * only stamped when a customer explicitly updates the license (e.g. via the
+   * UI), and is not touched by system-driven writes (subscription pipeline,
+   * BALC propagation, etc.).
+   * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the lastUserUpdateTime field is set. + */ + boolean hasLastUserUpdateTime(); + + /** + * + * + *
+   * Optional. Timestamp of the most recent user-initiated update (seat count
+   * change or subscription term change). Unlike `update_time`, this field is
+   * only stamped when a customer explicitly updates the license (e.g. via the
+   * UI), and is not touched by system-driven writes (subscription pipeline,
+   * BALC propagation, etc.).
+   * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The lastUserUpdateTime. + */ + com.google.protobuf.Timestamp getLastUserUpdateTime(); + + /** + * + * + *
+   * Optional. Timestamp of the most recent user-initiated update (seat count
+   * change or subscription term change). Unlike `update_time`, this field is
+   * only stamped when a customer explicitly updates the license (e.g. via the
+   * UI), and is not touched by system-driven writes (subscription pipeline,
+   * BALC propagation, etc.).
+   * 
+ * + * + * .google.protobuf.Timestamp last_user_update_time = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastUserUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigProto.java new file mode 100644 index 000000000000..d7ffb24e3cc9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigProto.java @@ -0,0 +1,144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class LicenseConfigProto extends com.google.protobuf.GeneratedFile { + private LicenseConfigProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LicenseConfigProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_LicenseConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_LicenseConfig_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" + + "4google/cloud/discoveryengine/v1/license_config.proto\022\037google.cloud.discoveryen" + + "gine.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032,google/clou" + + "d/discoveryengine/v1/common.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\026google/type/date.proto\"\377\006\n\r" + + "LicenseConfig\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\005\010\022\033\n\r" + + "license_count\030\002 \001(\003B\004\342A\001\002\022R\n" + + "\021subscription_tier\030\003 \001(\01621.google.cloud" + + ".discoveryengine.v1.SubscriptionTierB\004\342A\001\002\022I\n" + + "\005state\030\004" + + " \001(\01624.google.cloud.discoveryengine.v1.LicenseConfig.StateB\004\342A\001\003\022\030\n" + + "\n" + + "auto_renew\030\005 \001(\010B\004\342A\001\001\022+\n\n" + + "start_date\030\006 \001(\0132\021.google.type.DateB\004\342A\001\002\022)\n" + + "\010end_date\030\007 \001(\0132\021.google.type.DateB\004\342A\001\001\022R\n" + + "\021subscription_term\030\010" + + " \001(\01621.google.cloud.discoveryengine.v1.SubscriptionTermB\004\342A\001\002\022\030\n\n" + + "free_trial\030\t \001(\010B\004\342A\001\001\022\033\n\r" + + "gemini_bundle\030\013 \001(\010B\004\342A\001\003\022\036\n" + + "\020early_terminated\030\014 \001(\010B\004\342A\001\003\0227\n" + + "\026early_termination_date\030\r" + + " \001(\0132\021.google.type.DateB\004\342A\001\003\022?\n" + + "\025last_user_update_time\030\020" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"i\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\013\n" + + "\007EXPIRED\020\002\022\017\n" + + "\013NOT_STARTED\020\003\022\r" + + "\n" + + "\tWITHDRAWN\020\004\022\020\n" + + "\014DEACTIVATING\020\005:\232\001\352A\226\001\n" + + ",discoveryengine.googleapis.com/LicenseConfig\022Gprojects/{project}/locations/{loca" + + "tion}/licenseConfigs/{license_config}*\016licenseConfigs2\r" + + "licenseConfigB\205\002\n" + + "#com.google.cloud.discoveryengine.v1B\022LicenseCon" + + "figProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clo" + + "ud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Dis" + + "coveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_LicenseConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_LicenseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_LicenseConfig_descriptor, + new java.lang.String[] { + "Name", + "LicenseCount", + "SubscriptionTier", + "State", + "AutoRenew", + "StartDate", + "EndDate", + "SubscriptionTerm", + "FreeTrial", + "GeminiBundle", + "EarlyTerminated", + "EarlyTerminationDate", + "LastUserUpdateTime", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceProto.java new file mode 100644 index 000000000000..1e8e4a9b7494 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigServiceProto.java @@ -0,0 +1,287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class LicenseConfigServiceProto extends com.google.protobuf.GeneratedFile { + private LicenseConfigServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LicenseConfigServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DistributeLicenseConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_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" + + " + * Stats about users' licenses. + * + * + * Protobuf type {@code google.cloud.discoveryengine.v1.LicenseConfigUsageStats} + */ +@com.google.protobuf.Generated +public final class LicenseConfigUsageStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.LicenseConfigUsageStats) + LicenseConfigUsageStatsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LicenseConfigUsageStats"); + } + + // Use LicenseConfigUsageStats.newBuilder() to construct. + private LicenseConfigUsageStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LicenseConfigUsageStats() { + licenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.class, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder.class); + } + + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
+   * Required. The LicenseConfig name.
+   * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseConfig. + */ + @java.lang.Override + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The LicenseConfig name.
+   * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for licenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USED_LICENSE_COUNT_FIELD_NUMBER = 2; + private long usedLicenseCount_ = 0L; + + /** + * + * + *
+   * Required. The number of licenses used.
+   * 
+ * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The usedLicenseCount. + */ + @java.lang.Override + public long getUsedLicenseCount() { + return usedLicenseCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, licenseConfig_); + } + if (usedLicenseCount_ != 0L) { + output.writeInt64(2, usedLicenseCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, licenseConfig_); + } + if (usedLicenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, usedLicenseCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats other = + (com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats) obj; + + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + if (getUsedLicenseCount() != other.getUsedLicenseCount()) 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) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + hash = (37 * hash) + USED_LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUsedLicenseCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Stats about users' licenses.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.LicenseConfigUsageStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.LicenseConfigUsageStats) + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.class, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = ""; + usedLicenseCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats build() { + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats buildPartial() { + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats result = + new com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = licenseConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usedLicenseCount_ = usedLicenseCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats) { + return mergeFrom((com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats other) { + if (other == com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.getDefaultInstance()) + return this; + if (!other.getLicenseConfig().isEmpty()) { + licenseConfig_ = other.licenseConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUsedLicenseCount() != 0L) { + setUsedLicenseCount(other.getUsedLicenseCount()); + } + 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: + { + licenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + usedLicenseCount_ = 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 licenseConfig_ = ""; + + /** + * + * + *
+     * Required. The LicenseConfig name.
+     * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseConfig. + */ + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The LicenseConfig name.
+     * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for licenseConfig. + */ + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The LicenseConfig name.
+     * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The LicenseConfig name.
+     * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfig() { + licenseConfig_ = getDefaultInstance().getLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The LicenseConfig name.
+     * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long usedLicenseCount_; + + /** + * + * + *
+     * Required. The number of licenses used.
+     * 
+ * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The usedLicenseCount. + */ + @java.lang.Override + public long getUsedLicenseCount() { + return usedLicenseCount_; + } + + /** + * + * + *
+     * Required. The number of licenses used.
+     * 
+ * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The usedLicenseCount to set. + * @return This builder for chaining. + */ + public Builder setUsedLicenseCount(long value) { + + usedLicenseCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The number of licenses used.
+     * 
+ * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsedLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000002); + usedLicenseCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.LicenseConfigUsageStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.LicenseConfigUsageStats) + private static final com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats(); + } + + public static com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LicenseConfigUsageStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigUsageStatsOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigUsageStatsOrBuilder.java new file mode 100644 index 000000000000..79efbe1335b6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LicenseConfigUsageStatsOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_license.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface LicenseConfigUsageStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.LicenseConfigUsageStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The LicenseConfig name.
+   * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseConfig. + */ + java.lang.String getLicenseConfig(); + + /** + * + * + *
+   * Required. The LicenseConfig name.
+   * 
+ * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for licenseConfig. + */ + com.google.protobuf.ByteString getLicenseConfigBytes(); + + /** + * + * + *
+   * Required. The number of licenses used.
+   * 
+ * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The usedLicenseCount. + */ + long getUsedLicenseCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequest.java new file mode 100644 index 000000000000..fc6085aff768 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequest.java @@ -0,0 +1,979 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for the
+ * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListAssistantsRequest} + */ +@com.google.protobuf.Generated +public final class ListAssistantsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListAssistantsRequest) + ListAssistantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAssistantsRequest"); + } + + // Use ListAssistantsRequest.newBuilder() to construct. + private ListAssistantsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest.class, + com.google.cloud.discoveryengine.v1.ListAssistantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Maximum number of [Assistant][google.cloud.discoveryengine.v1.Assistant]s
+   * to return. If unspecified, defaults to 100. The maximum allowed value is
+   * 1000; anything above that will be coerced down to 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @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_ = ""; + + /** + * + * + *
+   * A page token
+   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+   * received from a previous
+   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A page token
+   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+   * received from a previous
+   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListAssistantsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListAssistantsRequest other = + (com.google.cloud.discoveryengine.v1.ListAssistantsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the
+   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListAssistantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListAssistantsRequest) + com.google.cloud.discoveryengine.v1.ListAssistantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListAssistantsRequest.class, + com.google.cloud.discoveryengine.v1.ListAssistantsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ListAssistantsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListAssistantsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsRequest build() { + com.google.cloud.discoveryengine.v1.ListAssistantsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsRequest buildPartial() { + com.google.cloud.discoveryengine.v1.ListAssistantsRequest result = + new com.google.cloud.discoveryengine.v1.ListAssistantsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.ListAssistantsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ListAssistantsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ListAssistantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListAssistantsRequest other) { + if (other == com.google.cloud.discoveryengine.v1.ListAssistantsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Maximum number of [Assistant][google.cloud.discoveryengine.v1.Assistant]s
+     * to return. If unspecified, defaults to 100. The maximum allowed value is
+     * 1000; anything above that will be coerced down to 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Maximum number of [Assistant][google.cloud.discoveryengine.v1.Assistant]s
+     * to return. If unspecified, defaults to 100. The maximum allowed value is
+     * 1000; anything above that will be coerced down to 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Maximum number of [Assistant][google.cloud.discoveryengine.v1.Assistant]s
+     * to return. If unspecified, defaults to 100. The maximum allowed value is
+     * 1000; anything above that will be coerced down to 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * A page token
+     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+     * received from a previous
+     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A page token
+     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+     * received from a previous
+     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A page token
+     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+     * received from a previous
+     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * A page token
+     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+     * received from a previous
+     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * A page token
+     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+     * received from a previous
+     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListAssistantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListAssistantsRequest) + private static final com.google.cloud.discoveryengine.v1.ListAssistantsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListAssistantsRequest(); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequestOrBuilder.java new file mode 100644 index 000000000000..71de164b74ae --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListAssistantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListAssistantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Maximum number of [Assistant][google.cloud.discoveryengine.v1.Assistant]s
+   * to return. If unspecified, defaults to 100. The maximum allowed value is
+   * 1000; anything above that will be coerced down to 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token
+   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+   * received from a previous
+   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * A page token
+   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token],
+   * received from a previous
+   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponse.java new file mode 100644 index 000000000000..595ab738ac1e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response message for the
+ * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListAssistantsResponse} + */ +@com.google.protobuf.Generated +public final class ListAssistantsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListAssistantsResponse) + ListAssistantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAssistantsResponse"); + } + + // Use ListAssistantsResponse.newBuilder() to construct. + private ListAssistantsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantsResponse() { + assistants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListAssistantsResponse.class, + com.google.cloud.discoveryengine.v1.ListAssistantsResponse.Builder.class); + } + + public static final int ASSISTANTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List assistants_; + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + @java.lang.Override + public java.util.List getAssistantsList() { + return assistants_; + } + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + @java.lang.Override + public java.util.List + getAssistantsOrBuilderList() { + return assistants_; + } + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + @java.lang.Override + public int getAssistantsCount() { + return assistants_.size(); + } + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant getAssistants(int index) { + return assistants_.get(index); + } + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantsOrBuilder(int index) { + return assistants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token that can be sent as
+   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token that can be sent as
+   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < assistants_.size(); i++) { + output.writeMessage(1, assistants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < assistants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, assistants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListAssistantsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListAssistantsResponse other = + (com.google.cloud.discoveryengine.v1.ListAssistantsResponse) obj; + + if (!getAssistantsList().equals(other.getAssistantsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAssistantsCount() > 0) { + hash = (37 * hash) + ASSISTANTS_FIELD_NUMBER; + hash = (53 * hash) + getAssistantsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListAssistantsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for the
+   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListAssistantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListAssistantsResponse) + com.google.cloud.discoveryengine.v1.ListAssistantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListAssistantsResponse.class, + com.google.cloud.discoveryengine.v1.ListAssistantsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ListAssistantsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (assistantsBuilder_ == null) { + assistants_ = java.util.Collections.emptyList(); + } else { + assistants_ = null; + assistantsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListAssistantsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListAssistantsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsResponse build() { + com.google.cloud.discoveryengine.v1.ListAssistantsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsResponse buildPartial() { + com.google.cloud.discoveryengine.v1.ListAssistantsResponse result = + new com.google.cloud.discoveryengine.v1.ListAssistantsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.ListAssistantsResponse result) { + if (assistantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assistants_ = java.util.Collections.unmodifiableList(assistants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assistants_ = assistants_; + } else { + result.assistants_ = assistantsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.ListAssistantsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ListAssistantsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ListAssistantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListAssistantsResponse other) { + if (other == com.google.cloud.discoveryengine.v1.ListAssistantsResponse.getDefaultInstance()) + return this; + if (assistantsBuilder_ == null) { + if (!other.assistants_.isEmpty()) { + if (assistants_.isEmpty()) { + assistants_ = other.assistants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssistantsIsMutable(); + assistants_.addAll(other.assistants_); + } + onChanged(); + } + } else { + if (!other.assistants_.isEmpty()) { + if (assistantsBuilder_.isEmpty()) { + assistantsBuilder_.dispose(); + assistantsBuilder_ = null; + assistants_ = other.assistants_; + bitField0_ = (bitField0_ & ~0x00000001); + assistantsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssistantsFieldBuilder() + : null; + } else { + assistantsBuilder_.addAllMessages(other.assistants_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.Assistant m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Assistant.parser(), extensionRegistry); + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.add(m); + } else { + assistantsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List assistants_ = + java.util.Collections.emptyList(); + + private void ensureAssistantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assistants_ = + new java.util.ArrayList(assistants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder> + assistantsBuilder_; + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public java.util.List getAssistantsList() { + if (assistantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assistants_); + } else { + return assistantsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public int getAssistantsCount() { + if (assistantsBuilder_ == null) { + return assistants_.size(); + } else { + return assistantsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant getAssistants(int index) { + if (assistantsBuilder_ == null) { + return assistants_.get(index); + } else { + return assistantsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder setAssistants(int index, com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantsIsMutable(); + assistants_.set(index, value); + onChanged(); + } else { + assistantsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder setAssistants( + int index, com.google.cloud.discoveryengine.v1.Assistant.Builder builderForValue) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.set(index, builderForValue.build()); + onChanged(); + } else { + assistantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder addAssistants(com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantsIsMutable(); + assistants_.add(value); + onChanged(); + } else { + assistantsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder addAssistants(int index, com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantsIsMutable(); + assistants_.add(index, value); + onChanged(); + } else { + assistantsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder addAssistants( + com.google.cloud.discoveryengine.v1.Assistant.Builder builderForValue) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.add(builderForValue.build()); + onChanged(); + } else { + assistantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder addAssistants( + int index, com.google.cloud.discoveryengine.v1.Assistant.Builder builderForValue) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.add(index, builderForValue.build()); + onChanged(); + } else { + assistantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder addAllAssistants( + java.lang.Iterable values) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assistants_); + onChanged(); + } else { + assistantsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder clearAssistants() { + if (assistantsBuilder_ == null) { + assistants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assistantsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public Builder removeAssistants(int index) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.remove(index); + onChanged(); + } else { + assistantsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.Builder getAssistantsBuilder(int index) { + return internalGetAssistantsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantsOrBuilder( + int index) { + if (assistantsBuilder_ == null) { + return assistants_.get(index); + } else { + return assistantsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public java.util.List + getAssistantsOrBuilderList() { + if (assistantsBuilder_ != null) { + return assistantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assistants_); + } + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.Builder addAssistantsBuilder() { + return internalGetAssistantsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance()); + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1.Assistant.Builder addAssistantsBuilder(int index) { + return internalGetAssistantsFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance()); + } + + /** + * + * + *
+     * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + public java.util.List + getAssistantsBuilderList() { + return internalGetAssistantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder> + internalGetAssistantsFieldBuilder() { + if (assistantsBuilder_ == null) { + assistantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder>( + assistants_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assistants_ = null; + } + return assistantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token that can be sent as
+     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as
+     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token that can be sent as
+     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as
+     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be sent as
+     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+     * to retrieve the next page. If this field is omitted, there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListAssistantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListAssistantsResponse) + private static final com.google.cloud.discoveryengine.v1.ListAssistantsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListAssistantsResponse(); + } + + public static com.google.cloud.discoveryengine.v1.ListAssistantsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListAssistantsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponseOrBuilder.java new file mode 100644 index 000000000000..891c33727d40 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListAssistantsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListAssistantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListAssistantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + java.util.List getAssistantsList(); + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + com.google.cloud.discoveryengine.v1.Assistant getAssistants(int index); + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + int getAssistantsCount(); + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + java.util.List + getAssistantsOrBuilderList(); + + /** + * + * + *
+   * All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.Assistant assistants = 1; + */ + com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be sent as
+   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token that can be sent as
+   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token]
+   * to retrieve the next page. If this field is omitted, there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequest.java new file mode 100644 index 000000000000..af9f0807b836 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequest.java @@ -0,0 +1,1192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1.LicenseConfigService.ListLicenseConfigs]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) + ListLicenseConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListLicenseConfigsRequest"); + } + + // Use ListLicenseConfigsRequest.newBuilder() to construct. + private ListLicenseConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Not supported.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. Not supported.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Not supported.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. The filter to apply to the list results.
+   *
+   * The supported fields are:
+   *
+   * * `subscription_tier`
+   * * `state`
+   *
+   * Examples:
+   *
+   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+   * active search license configs.
+   * * `state=ACTIVE` - Lists all active license configs.
+   *
+   * The filter string should be a comma-separated list of field=value pairs.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The filter to apply to the list results.
+   *
+   * The supported fields are:
+   *
+   * * `subscription_tier`
+   * * `state`
+   *
+   * Examples:
+   *
+   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+   * active search license configs.
+   * * `state=ACTIVE` - Lists all active license configs.
+   *
+   * The filter string should be a comma-separated list of field=value pairs.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest other = + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1.LicenseConfigService.ListLicenseConfigs]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest build() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest buildPartial() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest result = + new com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Not supported.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. The filter to apply to the list results.
+     *
+     * The supported fields are:
+     *
+     * * `subscription_tier`
+     * * `state`
+     *
+     * Examples:
+     *
+     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+     * active search license configs.
+     * * `state=ACTIVE` - Lists all active license configs.
+     *
+     * The filter string should be a comma-separated list of field=value pairs.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The filter to apply to the list results.
+     *
+     * The supported fields are:
+     *
+     * * `subscription_tier`
+     * * `state`
+     *
+     * Examples:
+     *
+     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+     * active search license configs.
+     * * `state=ACTIVE` - Lists all active license configs.
+     *
+     * The filter string should be a comma-separated list of field=value pairs.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The filter to apply to the list results.
+     *
+     * The supported fields are:
+     *
+     * * `subscription_tier`
+     * * `state`
+     *
+     * Examples:
+     *
+     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+     * active search license configs.
+     * * `state=ACTIVE` - Lists all active license configs.
+     *
+     * The filter string should be a comma-separated list of field=value pairs.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The filter to apply to the list results.
+     *
+     * The supported fields are:
+     *
+     * * `subscription_tier`
+     * * `state`
+     *
+     * Examples:
+     *
+     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+     * active search license configs.
+     * * `state=ACTIVE` - Lists all active license configs.
+     *
+     * The filter string should be a comma-separated list of field=value pairs.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The filter to apply to the list results.
+     *
+     * The supported fields are:
+     *
+     * * `subscription_tier`
+     * * `state`
+     *
+     * Examples:
+     *
+     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+     * active search license configs.
+     * * `state=ACTIVE` - Lists all active license configs.
+     *
+     * The filter string should be a comma-separated list of field=value pairs.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) + private static final com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest(); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..9affe462e452 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListLicenseConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Not supported.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Not supported.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. Not supported.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The filter to apply to the list results.
+   *
+   * The supported fields are:
+   *
+   * * `subscription_tier`
+   * * `state`
+   *
+   * Examples:
+   *
+   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+   * active search license configs.
+   * * `state=ACTIVE` - Lists all active license configs.
+   *
+   * The filter string should be a comma-separated list of field=value pairs.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. The filter to apply to the list results.
+   *
+   * The supported fields are:
+   *
+   * * `subscription_tier`
+   * * `state`
+   *
+   * Examples:
+   *
+   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
+   * active search license configs.
+   * * `state=ACTIVE` - Lists all active license configs.
+   *
+   * The filter string should be a comma-separated list of field=value pairs.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponse.java new file mode 100644 index 000000000000..29cbf4cdc0ac --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponse.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response message for
+ * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1.LicenseConfigService.ListLicenseConfigs]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) + ListLicenseConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListLicenseConfigsResponse"); + } + + // Use ListLicenseConfigsResponse.newBuilder() to construct. + private ListLicenseConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsResponse() { + licenseConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.Builder.class); + } + + public static final int LICENSE_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List licenseConfigs_; + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public java.util.List getLicenseConfigsList() { + return licenseConfigs_; + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public java.util.List + getLicenseConfigsOrBuilderList() { + return licenseConfigs_; + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public int getLicenseConfigsCount() { + return licenseConfigs_.size(); + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfigs(int index) { + return licenseConfigs_.get(index); + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigsOrBuilder( + int index) { + return licenseConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Not supported.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Not supported.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < licenseConfigs_.size(); i++) { + output.writeMessage(1, licenseConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < licenseConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, licenseConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse other = + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) obj; + + if (!getLicenseConfigsList().equals(other.getLicenseConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLicenseConfigsCount() > 0) { + hash = (37 * hash) + LICENSE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1.LicenseConfigService.ListLicenseConfigs]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (licenseConfigsBuilder_ == null) { + licenseConfigs_ = java.util.Collections.emptyList(); + } else { + licenseConfigs_ = null; + licenseConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse build() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse buildPartial() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse result = + new com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse result) { + if (licenseConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + licenseConfigs_ = java.util.Collections.unmodifiableList(licenseConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.licenseConfigs_ = licenseConfigs_; + } else { + result.licenseConfigs_ = licenseConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse.getDefaultInstance()) + return this; + if (licenseConfigsBuilder_ == null) { + if (!other.licenseConfigs_.isEmpty()) { + if (licenseConfigs_.isEmpty()) { + licenseConfigs_ = other.licenseConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.addAll(other.licenseConfigs_); + } + onChanged(); + } + } else { + if (!other.licenseConfigs_.isEmpty()) { + if (licenseConfigsBuilder_.isEmpty()) { + licenseConfigsBuilder_.dispose(); + licenseConfigsBuilder_ = null; + licenseConfigs_ = other.licenseConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLicenseConfigsFieldBuilder() + : null; + } else { + licenseConfigsBuilder_.addAllMessages(other.licenseConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.LicenseConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1.LicenseConfig.parser(), + extensionRegistry); + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(m); + } else { + licenseConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List licenseConfigs_ = + java.util.Collections.emptyList(); + + private void ensureLicenseConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + licenseConfigs_ = + new java.util.ArrayList( + licenseConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + licenseConfigsBuilder_; + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public java.util.List + getLicenseConfigsList() { + if (licenseConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(licenseConfigs_); + } else { + return licenseConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public int getLicenseConfigsCount() { + if (licenseConfigsBuilder_ == null) { + return licenseConfigs_.size(); + } else { + return licenseConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfigs(int index) { + if (licenseConfigsBuilder_ == null) { + return licenseConfigs_.get(index); + } else { + return licenseConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder setLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigsIsMutable(); + licenseConfigs_.set(index, value); + onChanged(); + } else { + licenseConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder setLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(value); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(index, value); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs( + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(builderForValue.build()); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder addAllLicenseConfigs( + java.lang.Iterable values) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenseConfigs_); + onChanged(); + } else { + licenseConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder clearLicenseConfigs() { + if (licenseConfigsBuilder_ == null) { + licenseConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + licenseConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public Builder removeLicenseConfigs(int index) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.remove(index); + onChanged(); + } else { + licenseConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder getLicenseConfigsBuilder( + int index) { + return internalGetLicenseConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigsOrBuilder( + int index) { + if (licenseConfigsBuilder_ == null) { + return licenseConfigs_.get(index); + } else { + return licenseConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public java.util.List + getLicenseConfigsOrBuilderList() { + if (licenseConfigsBuilder_ != null) { + return licenseConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(licenseConfigs_); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder addLicenseConfigsBuilder() { + return internalGetLicenseConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder addLicenseConfigsBuilder( + int index) { + return internalGetLicenseConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + public java.util.List + getLicenseConfigsBuilderList() { + return internalGetLicenseConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + internalGetLicenseConfigsFieldBuilder() { + if (licenseConfigsBuilder_ == null) { + licenseConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder>( + licenseConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + licenseConfigs_ = null; + } + return licenseConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Not supported.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Not supported.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Not supported.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Not supported.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Not supported.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) + private static final com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse(); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..14a99cf72c5e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsResponseOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListLicenseConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + java.util.List getLicenseConfigsList(); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfigs(int index); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + int getLicenseConfigsCount(); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + java.util.List + getLicenseConfigsOrBuilderList(); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.LicenseConfig license_configs = 1; + */ + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigsOrBuilder(int index); + + /** + * + * + *
+   * Not supported.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Not supported.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequest.java new file mode 100644 index 000000000000..c94662bf511e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_license_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsUsageStatsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) + ListLicenseConfigsUsageStatsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListLicenseConfigsUsageStatsRequest"); + } + + // Use ListLicenseConfigsUsageStatsRequest.newBuilder() to construct. + private ListLicenseConfigsUsageStatsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsUsageStatsRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest other = + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest build() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest buildPartial() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest result = + new com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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: + { + parent_ = 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 parent_ = ""; + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent branch resource name, such as
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) + private static final com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest(); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsUsageStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequestOrBuilder.java new file mode 100644 index 000000000000..07821a5df01c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_license_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsUsageStatsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent branch resource name, such as
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponse.java new file mode 100644 index 000000000000..a6d50dc779a5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponse.java @@ -0,0 +1,1045 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_license_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response message for
+ * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsUsageStatsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) + ListLicenseConfigsUsageStatsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListLicenseConfigsUsageStatsResponse"); + } + + // Use ListLicenseConfigsUsageStatsResponse.newBuilder() to construct. + private ListLicenseConfigsUsageStatsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsUsageStatsResponse() { + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse.Builder.class); + } + + public static final int LICENSE_CONFIG_USAGE_STATS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + licenseConfigUsageStats_; + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public java.util.List + getLicenseConfigUsageStatsList() { + return licenseConfigUsageStats_; + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder> + getLicenseConfigUsageStatsOrBuilderList() { + return licenseConfigUsageStats_; + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public int getLicenseConfigUsageStatsCount() { + return licenseConfigUsageStats_.size(); + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats getLicenseConfigUsageStats( + int index) { + return licenseConfigUsageStats_.get(index); + } + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder + getLicenseConfigUsageStatsOrBuilder(int index) { + return licenseConfigUsageStats_.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 < licenseConfigUsageStats_.size(); i++) { + output.writeMessage(1, licenseConfigUsageStats_.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 < licenseConfigUsageStats_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, licenseConfigUsageStats_.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.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse other = + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) obj; + + if (!getLicenseConfigUsageStatsList().equals(other.getLicenseConfigUsageStatsList())) + 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 (getLicenseConfigUsageStatsCount() > 0) { + hash = (37 * hash) + LICENSE_CONFIG_USAGE_STATS_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigUsageStatsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse.class, + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (licenseConfigUsageStatsBuilder_ == null) { + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + } else { + licenseConfigUsageStats_ = null; + licenseConfigUsageStatsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse build() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse buildPartial() { + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse result = + new com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse result) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + licenseConfigUsageStats_ = + java.util.Collections.unmodifiableList(licenseConfigUsageStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.licenseConfigUsageStats_ = licenseConfigUsageStats_; + } else { + result.licenseConfigUsageStats_ = licenseConfigUsageStatsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + .getDefaultInstance()) return this; + if (licenseConfigUsageStatsBuilder_ == null) { + if (!other.licenseConfigUsageStats_.isEmpty()) { + if (licenseConfigUsageStats_.isEmpty()) { + licenseConfigUsageStats_ = other.licenseConfigUsageStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.addAll(other.licenseConfigUsageStats_); + } + onChanged(); + } + } else { + if (!other.licenseConfigUsageStats_.isEmpty()) { + if (licenseConfigUsageStatsBuilder_.isEmpty()) { + licenseConfigUsageStatsBuilder_.dispose(); + licenseConfigUsageStatsBuilder_ = null; + licenseConfigUsageStats_ = other.licenseConfigUsageStats_; + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfigUsageStatsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLicenseConfigUsageStatsFieldBuilder() + : null; + } else { + licenseConfigUsageStatsBuilder_.addAllMessages(other.licenseConfigUsageStats_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats m = + input.readMessage( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.parser(), + extensionRegistry); + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(m); + } else { + licenseConfigUsageStatsBuilder_.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 + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + + private void ensureLicenseConfigUsageStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + licenseConfigUsageStats_ = + new java.util.ArrayList( + licenseConfigUsageStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder> + licenseConfigUsageStatsBuilder_; + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public java.util.List + getLicenseConfigUsageStatsList() { + if (licenseConfigUsageStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(licenseConfigUsageStats_); + } else { + return licenseConfigUsageStatsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public int getLicenseConfigUsageStatsCount() { + if (licenseConfigUsageStatsBuilder_ == null) { + return licenseConfigUsageStats_.size(); + } else { + return licenseConfigUsageStatsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats getLicenseConfigUsageStats( + int index) { + if (licenseConfigUsageStatsBuilder_ == null) { + return licenseConfigUsageStats_.get(index); + } else { + return licenseConfigUsageStatsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder setLicenseConfigUsageStats( + int index, com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats value) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.set(index, value); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder setLicenseConfigUsageStats( + int index, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder builderForValue) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.set(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats value) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(value); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + int index, com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats value) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(index, value); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder builderForValue) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(builderForValue.build()); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + int index, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder builderForValue) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addAllLicenseConfigUsageStats( + java.lang.Iterable + values) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenseConfigUsageStats_); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder clearLicenseConfigUsageStats() { + if (licenseConfigUsageStatsBuilder_ == null) { + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder removeLicenseConfigUsageStats(int index) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.remove(index); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder + getLicenseConfigUsageStatsBuilder(int index) { + return internalGetLicenseConfigUsageStatsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder + getLicenseConfigUsageStatsOrBuilder(int index) { + if (licenseConfigUsageStatsBuilder_ == null) { + return licenseConfigUsageStats_.get(index); + } else { + return licenseConfigUsageStatsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder> + getLicenseConfigUsageStatsOrBuilderList() { + if (licenseConfigUsageStatsBuilder_ != null) { + return licenseConfigUsageStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(licenseConfigUsageStats_); + } + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder + addLicenseConfigUsageStatsBuilder() { + return internalGetLicenseConfigUsageStatsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.getDefaultInstance()); + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder + addLicenseConfigUsageStatsBuilder(int index) { + return internalGetLicenseConfigUsageStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.getDefaultInstance()); + } + + /** + * + * + *
+     * All the customer's
+     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public java.util.List + getLicenseConfigUsageStatsBuilderList() { + return internalGetLicenseConfigUsageStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder> + internalGetLicenseConfigUsageStatsFieldBuilder() { + if (licenseConfigUsageStatsBuilder_ == null) { + licenseConfigUsageStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder>( + licenseConfigUsageStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + licenseConfigUsageStats_ = null; + } + return licenseConfigUsageStatsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) + private static final com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse(); + } + + public static com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsUsageStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponseOrBuilder.java new file mode 100644 index 000000000000..46749121ba57 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListLicenseConfigsUsageStatsResponseOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_license_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsUsageStatsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + java.util.List + getLicenseConfigUsageStatsList(); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStats getLicenseConfigUsageStats(int index); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + int getLicenseConfigUsageStatsCount(); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + java.util.List + getLicenseConfigUsageStatsOrBuilderList(); + + /** + * + * + *
+   * All the customer's
+   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats].
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + com.google.cloud.discoveryengine.v1.LicenseConfigUsageStatsOrBuilder + getLicenseConfigUsageStatsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequest.java new file mode 100644 index 000000000000..53840c24cfe4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequest.java @@ -0,0 +1,923 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for ListServingConfigs method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListServingConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListServingConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListServingConfigsRequest) + ListServingConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListServingConfigsRequest"); + } + + // Use ListServingConfigsRequest.newBuilder() to construct. + private ListServingConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListServingConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.class, + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Full resource name of the parent resource. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of the parent resource. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Maximum number of results to return. If unspecified, defaults
+   * to 100. If a value greater than 100 is provided, at most 100 results are
+   * returned.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListServingConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListServingConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListServingConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest other = + (com.google.cloud.discoveryengine.v1.ListServingConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for ListServingConfigs method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListServingConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListServingConfigsRequest) + com.google.cloud.discoveryengine.v1.ListServingConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.class, + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsRequest build() { + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsRequest buildPartial() { + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest result = + new com.google.cloud.discoveryengine.v1.ListServingConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ListServingConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ListServingConfigsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ListServingConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListServingConfigsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.ListServingConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Full resource name of the parent resource. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of the parent resource. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of the parent resource. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of the parent resource. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of the parent resource. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Maximum number of results to return. If unspecified, defaults
+     * to 100. If a value greater than 100 is provided, at most 100 results are
+     * returned.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Maximum number of results to return. If unspecified, defaults
+     * to 100. If a value greater than 100 is provided, at most 100 results are
+     * returned.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Maximum number of results to return. If unspecified, defaults
+     * to 100. If a value greater than 100 is provided, at most 100 results are
+     * returned.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListServingConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListServingConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListServingConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListServingConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListServingConfigs` call.
+     * Provide this to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListServingConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListServingConfigsRequest) + private static final com.google.cloud.discoveryengine.v1.ListServingConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListServingConfigsRequest(); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServingConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..e6ebe3badac1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListServingConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListServingConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of the parent resource. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Full resource name of the parent resource. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of results to return. If unspecified, defaults
+   * to 100. If a value greater than 100 is provided, at most 100 results are
+   * returned.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListServingConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListServingConfigs` call.
+   * Provide this to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponse.java new file mode 100644 index 000000000000..b0b7c638c1ab --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponse.java @@ -0,0 +1,1133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response for ListServingConfigs method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListServingConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListServingConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ListServingConfigsResponse) + ListServingConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListServingConfigsResponse"); + } + + // Use ListServingConfigsResponse.newBuilder() to construct. + private ListServingConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListServingConfigsResponse() { + servingConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.class, + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.Builder.class); + } + + public static final int SERVING_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List servingConfigs_; + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public java.util.List getServingConfigsList() { + return servingConfigs_; + } + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public java.util.List + getServingConfigsOrBuilderList() { + return servingConfigs_; + } + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public int getServingConfigsCount() { + return servingConfigs_.size(); + } + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ServingConfig getServingConfigs(int index) { + return servingConfigs_.get(index); + } + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder getServingConfigsOrBuilder( + int index) { + return servingConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < servingConfigs_.size(); i++) { + output.writeMessage(1, servingConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < servingConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, servingConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ListServingConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse other = + (com.google.cloud.discoveryengine.v1.ListServingConfigsResponse) obj; + + if (!getServingConfigsList().equals(other.getServingConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getServingConfigsCount() > 0) { + hash = (37 * hash) + SERVING_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getServingConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for ListServingConfigs method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ListServingConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ListServingConfigsResponse) + com.google.cloud.discoveryengine.v1.ListServingConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.class, + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (servingConfigsBuilder_ == null) { + servingConfigs_ = java.util.Collections.emptyList(); + } else { + servingConfigs_ = null; + servingConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsResponse build() { + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsResponse buildPartial() { + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse result = + new com.google.cloud.discoveryengine.v1.ListServingConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse result) { + if (servingConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + servingConfigs_ = java.util.Collections.unmodifiableList(servingConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.servingConfigs_ = servingConfigs_; + } else { + result.servingConfigs_ = servingConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ListServingConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ListServingConfigsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ListServingConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListServingConfigsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.ListServingConfigsResponse.getDefaultInstance()) + return this; + if (servingConfigsBuilder_ == null) { + if (!other.servingConfigs_.isEmpty()) { + if (servingConfigs_.isEmpty()) { + servingConfigs_ = other.servingConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServingConfigsIsMutable(); + servingConfigs_.addAll(other.servingConfigs_); + } + onChanged(); + } + } else { + if (!other.servingConfigs_.isEmpty()) { + if (servingConfigsBuilder_.isEmpty()) { + servingConfigsBuilder_.dispose(); + servingConfigsBuilder_ = null; + servingConfigs_ = other.servingConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + servingConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetServingConfigsFieldBuilder() + : null; + } else { + servingConfigsBuilder_.addAllMessages(other.servingConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.ServingConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1.ServingConfig.parser(), + extensionRegistry); + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.add(m); + } else { + servingConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List servingConfigs_ = + java.util.Collections.emptyList(); + + private void ensureServingConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + servingConfigs_ = + new java.util.ArrayList( + servingConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.ServingConfig, + com.google.cloud.discoveryengine.v1.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder> + servingConfigsBuilder_; + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public java.util.List + getServingConfigsList() { + if (servingConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(servingConfigs_); + } else { + return servingConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public int getServingConfigsCount() { + if (servingConfigsBuilder_ == null) { + return servingConfigs_.size(); + } else { + return servingConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.ServingConfig getServingConfigs(int index) { + if (servingConfigsBuilder_ == null) { + return servingConfigs_.get(index); + } else { + return servingConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder setServingConfigs( + int index, com.google.cloud.discoveryengine.v1.ServingConfig value) { + if (servingConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigsIsMutable(); + servingConfigs_.set(index, value); + onChanged(); + } else { + servingConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder setServingConfigs( + int index, com.google.cloud.discoveryengine.v1.ServingConfig.Builder builderForValue) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + servingConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder addServingConfigs(com.google.cloud.discoveryengine.v1.ServingConfig value) { + if (servingConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigsIsMutable(); + servingConfigs_.add(value); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder addServingConfigs( + int index, com.google.cloud.discoveryengine.v1.ServingConfig value) { + if (servingConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigsIsMutable(); + servingConfigs_.add(index, value); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder addServingConfigs( + com.google.cloud.discoveryengine.v1.ServingConfig.Builder builderForValue) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.add(builderForValue.build()); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder addServingConfigs( + int index, com.google.cloud.discoveryengine.v1.ServingConfig.Builder builderForValue) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder addAllServingConfigs( + java.lang.Iterable values) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingConfigs_); + onChanged(); + } else { + servingConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder clearServingConfigs() { + if (servingConfigsBuilder_ == null) { + servingConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + servingConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public Builder removeServingConfigs(int index) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.remove(index); + onChanged(); + } else { + servingConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.ServingConfig.Builder getServingConfigsBuilder( + int index) { + return internalGetServingConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder getServingConfigsOrBuilder( + int index) { + if (servingConfigsBuilder_ == null) { + return servingConfigs_.get(index); + } else { + return servingConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public java.util.List + getServingConfigsOrBuilderList() { + if (servingConfigsBuilder_ != null) { + return servingConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(servingConfigs_); + } + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.ServingConfig.Builder addServingConfigsBuilder() { + return internalGetServingConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public com.google.cloud.discoveryengine.v1.ServingConfig.Builder addServingConfigsBuilder( + int index) { + return internalGetServingConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.ServingConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * All the ServingConfigs for a given dataStore.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + public java.util.List + getServingConfigsBuilderList() { + return internalGetServingConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.ServingConfig, + com.google.cloud.discoveryengine.v1.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder> + internalGetServingConfigsFieldBuilder() { + if (servingConfigsBuilder_ == null) { + servingConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.ServingConfig, + com.google.cloud.discoveryengine.v1.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder>( + servingConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + servingConfigs_ = null; + } + return servingConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Pagination token, if not returned indicates the last page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListServingConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ListServingConfigsResponse) + private static final com.google.cloud.discoveryengine.v1.ListServingConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ListServingConfigsResponse(); + } + + public static com.google.cloud.discoveryengine.v1.ListServingConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServingConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ListServingConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..d57eb868a99f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListServingConfigsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/serving_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ListServingConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ListServingConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + java.util.List getServingConfigsList(); + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + com.google.cloud.discoveryengine.v1.ServingConfig getServingConfigs(int index); + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + int getServingConfigsCount(); + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + java.util.List + getServingConfigsOrBuilderList(); + + /** + * + * + *
+   * All the ServingConfigs for a given dataStore.
+   * 
+ * + * repeated .google.cloud.discoveryengine.v1.ServingConfig serving_configs = 1; + */ + com.google.cloud.discoveryengine.v1.ServingConfigOrBuilder getServingConfigsOrBuilder(int index); + + /** + * + * + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Pagination token, if not returned indicates the last page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java index 49d77b2e0195..b4c531d81f85 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequest.java @@ -217,7 +217,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
    * A comma-separated list of fields to filter by, in EBNF grammar.
+   *
    * The supported fields are:
+   *
    * * `user_pseudo_id`
    * * `state`
    * * `display_name`
@@ -226,13 +228,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * * `labels`
    * * `create_time`
    * * `update_time`
+   * * `collaborative_project`
    *
    * Examples:
-   * "user_pseudo_id = some_id"
-   * "display_name = \"some_name\""
-   * "starred = true"
-   * "is_pinned=true AND (NOT labels:hidden)"
-   * "create_time > \"1970-01-01T12:00:00Z\""
+   *
+   * * `user_pseudo_id = some_id`
+   * * `display_name = "some_name"`
+   * * `starred = true`
+   * * `is_pinned=true AND (NOT labels:hidden)`
+   * * `create_time > "1970-01-01T12:00:00Z"`
+   * * `collaborative_project =
+   * "projects/123/locations/global/collections/default_collection/engines/"
+   * "default_engine/collaborative_projects/cp1"`
    * 
* * string filter = 4; @@ -257,7 +264,9 @@ public java.lang.String getFilter() { * *
    * A comma-separated list of fields to filter by, in EBNF grammar.
+   *
    * The supported fields are:
+   *
    * * `user_pseudo_id`
    * * `state`
    * * `display_name`
@@ -266,13 +275,18 @@ public java.lang.String getFilter() {
    * * `labels`
    * * `create_time`
    * * `update_time`
+   * * `collaborative_project`
    *
    * Examples:
-   * "user_pseudo_id = some_id"
-   * "display_name = \"some_name\""
-   * "starred = true"
-   * "is_pinned=true AND (NOT labels:hidden)"
-   * "create_time > \"1970-01-01T12:00:00Z\""
+   *
+   * * `user_pseudo_id = some_id`
+   * * `display_name = "some_name"`
+   * * `starred = true`
+   * * `is_pinned=true AND (NOT labels:hidden)`
+   * * `create_time > "1970-01-01T12:00:00Z"`
+   * * `collaborative_project =
+   * "projects/123/locations/global/collections/default_collection/engines/"
+   * "default_engine/collaborative_projects/cp1"`
    * 
* * string filter = 4; @@ -303,18 +317,20 @@ public com.google.protobuf.ByteString getFilterBytes() { *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
+   *
    * Supported fields:
    *
    * * `update_time`
    * * `create_time`
    * * `session_name`
    * * `is_pinned`
+   * * `display_name`
    *
    * Example:
    *
-   * * "update_time desc"
-   * * "create_time"
-   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+   * * `update_time desc`
+   * * `create_time`
+   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
    * by update_time.
    * 
* @@ -341,18 +357,20 @@ public java.lang.String getOrderBy() { *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
+   *
    * Supported fields:
    *
    * * `update_time`
    * * `create_time`
    * * `session_name`
    * * `is_pinned`
+   * * `display_name`
    *
    * Example:
    *
-   * * "update_time desc"
-   * * "create_time"
-   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+   * * `update_time desc`
+   * * `create_time`
+   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
    * by update_time.
    * 
* @@ -1086,7 +1104,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
      * A comma-separated list of fields to filter by, in EBNF grammar.
+     *
      * The supported fields are:
+     *
      * * `user_pseudo_id`
      * * `state`
      * * `display_name`
@@ -1095,13 +1115,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * * `labels`
      * * `create_time`
      * * `update_time`
+     * * `collaborative_project`
      *
      * Examples:
-     * "user_pseudo_id = some_id"
-     * "display_name = \"some_name\""
-     * "starred = true"
-     * "is_pinned=true AND (NOT labels:hidden)"
-     * "create_time > \"1970-01-01T12:00:00Z\""
+     *
+     * * `user_pseudo_id = some_id`
+     * * `display_name = "some_name"`
+     * * `starred = true`
+     * * `is_pinned=true AND (NOT labels:hidden)`
+     * * `create_time > "1970-01-01T12:00:00Z"`
+     * * `collaborative_project =
+     * "projects/123/locations/global/collections/default_collection/engines/"
+     * "default_engine/collaborative_projects/cp1"`
      * 
* * string filter = 4; @@ -1125,7 +1150,9 @@ public java.lang.String getFilter() { * *
      * A comma-separated list of fields to filter by, in EBNF grammar.
+     *
      * The supported fields are:
+     *
      * * `user_pseudo_id`
      * * `state`
      * * `display_name`
@@ -1134,13 +1161,18 @@ public java.lang.String getFilter() {
      * * `labels`
      * * `create_time`
      * * `update_time`
+     * * `collaborative_project`
      *
      * Examples:
-     * "user_pseudo_id = some_id"
-     * "display_name = \"some_name\""
-     * "starred = true"
-     * "is_pinned=true AND (NOT labels:hidden)"
-     * "create_time > \"1970-01-01T12:00:00Z\""
+     *
+     * * `user_pseudo_id = some_id`
+     * * `display_name = "some_name"`
+     * * `starred = true`
+     * * `is_pinned=true AND (NOT labels:hidden)`
+     * * `create_time > "1970-01-01T12:00:00Z"`
+     * * `collaborative_project =
+     * "projects/123/locations/global/collections/default_collection/engines/"
+     * "default_engine/collaborative_projects/cp1"`
      * 
* * string filter = 4; @@ -1164,7 +1196,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * A comma-separated list of fields to filter by, in EBNF grammar.
+     *
      * The supported fields are:
+     *
      * * `user_pseudo_id`
      * * `state`
      * * `display_name`
@@ -1173,13 +1207,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * * `labels`
      * * `create_time`
      * * `update_time`
+     * * `collaborative_project`
      *
      * Examples:
-     * "user_pseudo_id = some_id"
-     * "display_name = \"some_name\""
-     * "starred = true"
-     * "is_pinned=true AND (NOT labels:hidden)"
-     * "create_time > \"1970-01-01T12:00:00Z\""
+     *
+     * * `user_pseudo_id = some_id`
+     * * `display_name = "some_name"`
+     * * `starred = true`
+     * * `is_pinned=true AND (NOT labels:hidden)`
+     * * `create_time > "1970-01-01T12:00:00Z"`
+     * * `collaborative_project =
+     * "projects/123/locations/global/collections/default_collection/engines/"
+     * "default_engine/collaborative_projects/cp1"`
      * 
* * string filter = 4; @@ -1202,7 +1241,9 @@ public Builder setFilter(java.lang.String value) { * *
      * A comma-separated list of fields to filter by, in EBNF grammar.
+     *
      * The supported fields are:
+     *
      * * `user_pseudo_id`
      * * `state`
      * * `display_name`
@@ -1211,13 +1252,18 @@ public Builder setFilter(java.lang.String value) {
      * * `labels`
      * * `create_time`
      * * `update_time`
+     * * `collaborative_project`
      *
      * Examples:
-     * "user_pseudo_id = some_id"
-     * "display_name = \"some_name\""
-     * "starred = true"
-     * "is_pinned=true AND (NOT labels:hidden)"
-     * "create_time > \"1970-01-01T12:00:00Z\""
+     *
+     * * `user_pseudo_id = some_id`
+     * * `display_name = "some_name"`
+     * * `starred = true`
+     * * `is_pinned=true AND (NOT labels:hidden)`
+     * * `create_time > "1970-01-01T12:00:00Z"`
+     * * `collaborative_project =
+     * "projects/123/locations/global/collections/default_collection/engines/"
+     * "default_engine/collaborative_projects/cp1"`
      * 
* * string filter = 4; @@ -1236,7 +1282,9 @@ public Builder clearFilter() { * *
      * A comma-separated list of fields to filter by, in EBNF grammar.
+     *
      * The supported fields are:
+     *
      * * `user_pseudo_id`
      * * `state`
      * * `display_name`
@@ -1245,13 +1293,18 @@ public Builder clearFilter() {
      * * `labels`
      * * `create_time`
      * * `update_time`
+     * * `collaborative_project`
      *
      * Examples:
-     * "user_pseudo_id = some_id"
-     * "display_name = \"some_name\""
-     * "starred = true"
-     * "is_pinned=true AND (NOT labels:hidden)"
-     * "create_time > \"1970-01-01T12:00:00Z\""
+     *
+     * * `user_pseudo_id = some_id`
+     * * `display_name = "some_name"`
+     * * `starred = true`
+     * * `is_pinned=true AND (NOT labels:hidden)`
+     * * `create_time > "1970-01-01T12:00:00Z"`
+     * * `collaborative_project =
+     * "projects/123/locations/global/collections/default_collection/engines/"
+     * "default_engine/collaborative_projects/cp1"`
      * 
* * string filter = 4; @@ -1278,18 +1331,20 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
+     *
      * Supported fields:
      *
      * * `update_time`
      * * `create_time`
      * * `session_name`
      * * `is_pinned`
+     * * `display_name`
      *
      * Example:
      *
-     * * "update_time desc"
-     * * "create_time"
-     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+     * * `update_time desc`
+     * * `create_time`
+     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
      * by update_time.
      * 
* @@ -1315,18 +1370,20 @@ public java.lang.String getOrderBy() { *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
+     *
      * Supported fields:
      *
      * * `update_time`
      * * `create_time`
      * * `session_name`
      * * `is_pinned`
+     * * `display_name`
      *
      * Example:
      *
-     * * "update_time desc"
-     * * "create_time"
-     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+     * * `update_time desc`
+     * * `create_time`
+     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
      * by update_time.
      * 
* @@ -1352,18 +1409,20 @@ public com.google.protobuf.ByteString getOrderByBytes() { *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
+     *
      * Supported fields:
      *
      * * `update_time`
      * * `create_time`
      * * `session_name`
      * * `is_pinned`
+     * * `display_name`
      *
      * Example:
      *
-     * * "update_time desc"
-     * * "create_time"
-     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+     * * `update_time desc`
+     * * `create_time`
+     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
      * by update_time.
      * 
* @@ -1388,18 +1447,20 @@ public Builder setOrderBy(java.lang.String value) { *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
+     *
      * Supported fields:
      *
      * * `update_time`
      * * `create_time`
      * * `session_name`
      * * `is_pinned`
+     * * `display_name`
      *
      * Example:
      *
-     * * "update_time desc"
-     * * "create_time"
-     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+     * * `update_time desc`
+     * * `create_time`
+     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
      * by update_time.
      * 
* @@ -1420,18 +1481,20 @@ public Builder clearOrderBy() { *
      * A comma-separated list of fields to order by, sorted in ascending order.
      * Use "desc" after a field name for descending.
+     *
      * Supported fields:
      *
      * * `update_time`
      * * `create_time`
      * * `session_name`
      * * `is_pinned`
+     * * `display_name`
      *
      * Example:
      *
-     * * "update_time desc"
-     * * "create_time"
-     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+     * * `update_time desc`
+     * * `create_time`
+     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
      * by update_time.
      * 
* diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java index 8f6ac7c20746..d889fb4a8975 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListSessionsRequestOrBuilder.java @@ -105,7 +105,9 @@ public interface ListSessionsRequestOrBuilder * *
    * A comma-separated list of fields to filter by, in EBNF grammar.
+   *
    * The supported fields are:
+   *
    * * `user_pseudo_id`
    * * `state`
    * * `display_name`
@@ -114,13 +116,18 @@ public interface ListSessionsRequestOrBuilder
    * * `labels`
    * * `create_time`
    * * `update_time`
+   * * `collaborative_project`
    *
    * Examples:
-   * "user_pseudo_id = some_id"
-   * "display_name = \"some_name\""
-   * "starred = true"
-   * "is_pinned=true AND (NOT labels:hidden)"
-   * "create_time > \"1970-01-01T12:00:00Z\""
+   *
+   * * `user_pseudo_id = some_id`
+   * * `display_name = "some_name"`
+   * * `starred = true`
+   * * `is_pinned=true AND (NOT labels:hidden)`
+   * * `create_time > "1970-01-01T12:00:00Z"`
+   * * `collaborative_project =
+   * "projects/123/locations/global/collections/default_collection/engines/"
+   * "default_engine/collaborative_projects/cp1"`
    * 
* * string filter = 4; @@ -134,7 +141,9 @@ public interface ListSessionsRequestOrBuilder * *
    * A comma-separated list of fields to filter by, in EBNF grammar.
+   *
    * The supported fields are:
+   *
    * * `user_pseudo_id`
    * * `state`
    * * `display_name`
@@ -143,13 +152,18 @@ public interface ListSessionsRequestOrBuilder
    * * `labels`
    * * `create_time`
    * * `update_time`
+   * * `collaborative_project`
    *
    * Examples:
-   * "user_pseudo_id = some_id"
-   * "display_name = \"some_name\""
-   * "starred = true"
-   * "is_pinned=true AND (NOT labels:hidden)"
-   * "create_time > \"1970-01-01T12:00:00Z\""
+   *
+   * * `user_pseudo_id = some_id`
+   * * `display_name = "some_name"`
+   * * `starred = true`
+   * * `is_pinned=true AND (NOT labels:hidden)`
+   * * `create_time > "1970-01-01T12:00:00Z"`
+   * * `collaborative_project =
+   * "projects/123/locations/global/collections/default_collection/engines/"
+   * "default_engine/collaborative_projects/cp1"`
    * 
* * string filter = 4; @@ -164,18 +178,20 @@ public interface ListSessionsRequestOrBuilder *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
+   *
    * Supported fields:
    *
    * * `update_time`
    * * `create_time`
    * * `session_name`
    * * `is_pinned`
+   * * `display_name`
    *
    * Example:
    *
-   * * "update_time desc"
-   * * "create_time"
-   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+   * * `update_time desc`
+   * * `create_time`
+   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
    * by update_time.
    * 
* @@ -191,18 +207,20 @@ public interface ListSessionsRequestOrBuilder *
    * A comma-separated list of fields to order by, sorted in ascending order.
    * Use "desc" after a field name for descending.
+   *
    * Supported fields:
    *
    * * `update_time`
    * * `create_time`
    * * `session_name`
    * * `is_pinned`
+   * * `display_name`
    *
    * Example:
    *
-   * * "update_time desc"
-   * * "create_time"
-   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
+   * * `update_time desc`
+   * * `create_time`
+   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
    * by update_time.
    * 
* diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequest.java index 0cb2653ab5db..03fa9aa75a81 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequest.java @@ -56,6 +56,7 @@ private ListUserLicensesRequest() { parent_ = ""; pageToken_ = ""; filter_ = ""; + orderBy_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -82,7 +83,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -109,7 +111,8 @@ public java.lang.String getParent() { * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -140,8 +143,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. Requested page size. Server may return fewer items than
-   * requested. If unspecified, defaults to 10. The maximum value is 50; values
-   * above 50 will be coerced to 50.
+   * requested. If unspecified, defaults to 100. The maximum value is 1000;
+   * values above 1000 will be coerced to 1000.
    *
    * If this field is negative, an INVALID_ARGUMENT error is returned.
    * 
@@ -230,7 +233,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -239,6 +243,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -267,7 +273,8 @@ public java.lang.String getFilter() { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -276,6 +283,8 @@ public java.lang.String getFilter() { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -295,6 +304,89 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. The order in which the
+   * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+   * value must be a comma-separated list of fields. Default sorting order is
+   * ascending. To specify descending order for a field, append a " desc"
+   * suffix. Redundant space characters in the syntax are insignificant.
+   *
+   * Supported fields (only `user_principal` is supported for now):
+   *
+   * * `user_principal`
+   *
+   * If not set, the default ordering is by `user_principal`.
+   *
+   * Examples:
+   *
+   * * `user_principal` to order by `user_principal` in ascending order.
+   * * `user_principal desc` to order by `user_principal` in descending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The order in which the
+   * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+   * value must be a comma-separated list of fields. Default sorting order is
+   * ascending. To specify descending order for a field, append a " desc"
+   * suffix. Redundant space characters in the syntax are insignificant.
+   *
+   * Supported fields (only `user_principal` is supported for now):
+   *
+   * * `user_principal`
+   *
+   * If not set, the default ordering is by `user_principal`.
+   *
+   * Examples:
+   *
+   * * `user_principal` to order by `user_principal` in ascending order.
+   * * `user_principal desc` to order by `user_principal` in descending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -321,6 +413,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } getUnknownFields().writeTo(output); } @@ -342,6 +437,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -362,6 +460,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,6 +480,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -527,6 +628,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; filter_ = ""; + orderBy_ = ""; return this; } @@ -575,6 +677,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ListUserLicensesR if (((from_bitField0_ & 0x00000008) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } } @java.lang.Override @@ -608,6 +713,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ListUserLicensesReq bitField0_ |= 0x00000008; onChanged(); } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -658,6 +768,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -683,7 +799,8 @@ public Builder mergeFrom( * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -709,7 +826,8 @@ public java.lang.String getParent() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -735,7 +853,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -760,7 +879,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -781,7 +901,8 @@ public Builder clearParent() { * * *
-     * Required. The parent [UserStore][] resource name, format:
+     * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+     * resource name, format:
      * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
      * 
* @@ -810,8 +931,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Optional. Requested page size. Server may return fewer items than
-     * requested. If unspecified, defaults to 10. The maximum value is 50; values
-     * above 50 will be coerced to 50.
+     * requested. If unspecified, defaults to 100. The maximum value is 1000;
+     * values above 1000 will be coerced to 1000.
      *
      * If this field is negative, an INVALID_ARGUMENT error is returned.
      * 
@@ -830,8 +951,8 @@ public int getPageSize() { * *
      * Optional. Requested page size. Server may return fewer items than
-     * requested. If unspecified, defaults to 10. The maximum value is 50; values
-     * above 50 will be coerced to 50.
+     * requested. If unspecified, defaults to 100. The maximum value is 1000;
+     * values above 1000 will be coerced to 1000.
      *
      * If this field is negative, an INVALID_ARGUMENT error is returned.
      * 
@@ -854,8 +975,8 @@ public Builder setPageSize(int value) { * *
      * Optional. Requested page size. Server may return fewer items than
-     * requested. If unspecified, defaults to 10. The maximum value is 50; values
-     * above 50 will be coerced to 50.
+     * requested. If unspecified, defaults to 100. The maximum value is 1000;
+     * values above 1000 will be coerced to 1000.
      *
      * If this field is negative, an INVALID_ARGUMENT error is returned.
      * 
@@ -1013,7 +1134,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -1022,6 +1144,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1049,7 +1173,8 @@ public java.lang.String getFilter() { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -1058,6 +1183,8 @@ public java.lang.String getFilter() { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1085,7 +1212,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -1094,6 +1222,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1120,7 +1250,8 @@ public Builder setFilter(java.lang.String value) { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -1129,6 +1260,8 @@ public Builder setFilter(java.lang.String value) { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1151,7 +1284,8 @@ public Builder clearFilter() { * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -1160,6 +1294,8 @@ public Builder clearFilter() { * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1178,6 +1314,192 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. The order in which the
+     * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+     * value must be a comma-separated list of fields. Default sorting order is
+     * ascending. To specify descending order for a field, append a " desc"
+     * suffix. Redundant space characters in the syntax are insignificant.
+     *
+     * Supported fields (only `user_principal` is supported for now):
+     *
+     * * `user_principal`
+     *
+     * If not set, the default ordering is by `user_principal`.
+     *
+     * Examples:
+     *
+     * * `user_principal` to order by `user_principal` in ascending order.
+     * * `user_principal desc` to order by `user_principal` in descending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The order in which the
+     * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+     * value must be a comma-separated list of fields. Default sorting order is
+     * ascending. To specify descending order for a field, append a " desc"
+     * suffix. Redundant space characters in the syntax are insignificant.
+     *
+     * Supported fields (only `user_principal` is supported for now):
+     *
+     * * `user_principal`
+     *
+     * If not set, the default ordering is by `user_principal`.
+     *
+     * Examples:
+     *
+     * * `user_principal` to order by `user_principal` in ascending order.
+     * * `user_principal desc` to order by `user_principal` in descending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The order in which the
+     * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+     * value must be a comma-separated list of fields. Default sorting order is
+     * ascending. To specify descending order for a field, append a " desc"
+     * suffix. Redundant space characters in the syntax are insignificant.
+     *
+     * Supported fields (only `user_principal` is supported for now):
+     *
+     * * `user_principal`
+     *
+     * If not set, the default ordering is by `user_principal`.
+     *
+     * Examples:
+     *
+     * * `user_principal` to order by `user_principal` in ascending order.
+     * * `user_principal desc` to order by `user_principal` in descending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The order in which the
+     * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+     * value must be a comma-separated list of fields. Default sorting order is
+     * ascending. To specify descending order for a field, append a " desc"
+     * suffix. Redundant space characters in the syntax are insignificant.
+     *
+     * Supported fields (only `user_principal` is supported for now):
+     *
+     * * `user_principal`
+     *
+     * If not set, the default ordering is by `user_principal`.
+     *
+     * Examples:
+     *
+     * * `user_principal` to order by `user_principal` in ascending order.
+     * * `user_principal desc` to order by `user_principal` in descending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The order in which the
+     * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+     * value must be a comma-separated list of fields. Default sorting order is
+     * ascending. To specify descending order for a field, append a " desc"
+     * suffix. Redundant space characters in the syntax are insignificant.
+     *
+     * Supported fields (only `user_principal` is supported for now):
+     *
+     * * `user_principal`
+     *
+     * If not set, the default ordering is by `user_principal`.
+     *
+     * Examples:
+     *
+     * * `user_principal` to order by `user_principal` in ascending order.
+     * * `user_principal desc` to order by `user_principal` in descending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ListUserLicensesRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequestOrBuilder.java index f3362cb234d1..ca11b944ceba 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ListUserLicensesRequestOrBuilder.java @@ -30,7 +30,8 @@ public interface ListUserLicensesRequestOrBuilder * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -46,7 +47,8 @@ public interface ListUserLicensesRequestOrBuilder * * *
-   * Required. The parent [UserStore][] resource name, format:
+   * Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore]
+   * resource name, format:
    * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
    * 
* @@ -63,8 +65,8 @@ public interface ListUserLicensesRequestOrBuilder * *
    * Optional. Requested page size. Server may return fewer items than
-   * requested. If unspecified, defaults to 10. The maximum value is 50; values
-   * above 50 will be coerced to 50.
+   * requested. If unspecified, defaults to 100. The maximum value is 1000;
+   * values above 1000 will be coerced to 1000.
    *
    * If this field is negative, an INVALID_ARGUMENT error is returned.
    * 
@@ -118,7 +120,8 @@ public interface ListUserLicensesRequestOrBuilder * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -127,6 +130,8 @@ public interface ListUserLicensesRequestOrBuilder * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -144,7 +149,8 @@ public interface ListUserLicensesRequestOrBuilder * Supported fields: * * * `license_assignment_state` - * + * * `user_principal` + * * * Examples: * * * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -153,6 +159,8 @@ public interface ListUserLicensesRequestOrBuilder * who attempted login but no license assigned. * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter * out users who attempted login but no license assigned. + * * `user_principal = user1@example.com` to list user license for + * `user1@example.com`. * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -160,4 +168,60 @@ public interface ListUserLicensesRequestOrBuilder * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The order in which the
+   * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+   * value must be a comma-separated list of fields. Default sorting order is
+   * ascending. To specify descending order for a field, append a " desc"
+   * suffix. Redundant space characters in the syntax are insignificant.
+   *
+   * Supported fields (only `user_principal` is supported for now):
+   *
+   * * `user_principal`
+   *
+   * If not set, the default ordering is by `user_principal`.
+   *
+   * Examples:
+   *
+   * * `user_principal` to order by `user_principal` in ascending order.
+   * * `user_principal desc` to order by `user_principal` in descending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. The order in which the
+   * [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The
+   * value must be a comma-separated list of fields. Default sorting order is
+   * ascending. To specify descending order for a field, append a " desc"
+   * suffix. Redundant space characters in the syntax are insignificant.
+   *
+   * Supported fields (only `user_principal` is supported for now):
+   *
+   * * `user_principal`
+   *
+   * If not set, the default ordering is by `user_principal`.
+   *
+   * Examples:
+   *
+   * * `user_principal` to order by `user_principal` in ascending order.
+   * * `user_principal desc` to order by `user_principal` in descending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LoggingProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LoggingProto.java new file mode 100644 index 000000000000..7a3fe65a20ad --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LoggingProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/logging.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class LoggingProto extends com.google.protobuf.GeneratedFile { + private LoggingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LoggingProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/discoveryengine/v1/loggin" + + "g.proto\022\037google.cloud.discoveryengine.v1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\"c\n\023ObservabilityCon" + + "fig\022#\n\025observability_enabled\030\001 \001(\010B\004\342A\001\001" + + "\022\'\n\031sensitive_logging_enabled\030\002 \001(\010B\004\342A\001" + + "\001B\377\001\n#com.google.cloud.discoveryengine.v" + + "1B\014LoggingProtoP\001ZMcloud.google.com/go/d" + + "iscoveryengine/apiv1/discoveryenginepb;d" + + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goo" + + "gle.Cloud.DiscoveryEngine.V1\312\002\037Google\\Cl" + + "oud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::" + + "DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_descriptor, + new java.lang.String[] { + "ObservabilityEnabled", "SensitiveLoggingEnabled", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ModelInfoView.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ModelInfoView.java new file mode 100644 index 000000000000..c0bfc718a3e1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ModelInfoView.java @@ -0,0 +1,228 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Selects which "view" of the model selector configuration the backend
+ * computes for `WidgetConfig.UiSettings.ModelConfigInfo`.
+ *
+ * The end-user views (`END_USER_WEB`, `END_USER_MOBILE`) return the
+ * user-facing model selector for their respective surface; the `ADMIN` view
+ * returns the set surfaced on the Cloud Console admin "Feature Control" page,
+ * with `ModelConfigInfo.ResolvedModel.admin_view` populated on each entry.
+ * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.ModelInfoView} + */ +@com.google.protobuf.Generated +public enum ModelInfoView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Not specified.
+   * 
+ * + * MODEL_INFO_VIEW_UNSPECIFIED = 0; + */ + MODEL_INFO_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * The end-user web model selector view.
+   * 
+ * + * END_USER_WEB = 1; + */ + END_USER_WEB(1), + /** + * + * + *
+   * The Cloud Console admin "Feature Control" view that displays model toggles.
+   * Returns admin-surfaced models with `ResolvedModel.admin_view` populated.
+   * 
+ * + * ADMIN = 2; + */ + ADMIN(2), + /** + * + * + *
+   * The end-user model selector view for the Gemini Enterprise mobile app.
+   * Returns only mobile-surfaced models, with the mobile default selected.
+   * Set explicitly by the mobile client.
+   * 
+ * + * END_USER_MOBILE = 3; + */ + END_USER_MOBILE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelInfoView"); + } + + /** + * + * + *
+   * Not specified.
+   * 
+ * + * MODEL_INFO_VIEW_UNSPECIFIED = 0; + */ + public static final int MODEL_INFO_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The end-user web model selector view.
+   * 
+ * + * END_USER_WEB = 1; + */ + public static final int END_USER_WEB_VALUE = 1; + + /** + * + * + *
+   * The Cloud Console admin "Feature Control" view that displays model toggles.
+   * Returns admin-surfaced models with `ResolvedModel.admin_view` populated.
+   * 
+ * + * ADMIN = 2; + */ + public static final int ADMIN_VALUE = 2; + + /** + * + * + *
+   * The end-user model selector view for the Gemini Enterprise mobile app.
+   * Returns only mobile-surfaced models, with the mobile default selected.
+   * Set explicitly by the mobile client.
+   * 
+ * + * END_USER_MOBILE = 3; + */ + public static final int END_USER_MOBILE_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 ModelInfoView 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 ModelInfoView forNumber(int value) { + switch (value) { + case 0: + return MODEL_INFO_VIEW_UNSPECIFIED; + case 1: + return END_USER_WEB; + case 2: + return ADMIN; + case 3: + return END_USER_MOBILE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelInfoView findValueByNumber(int number) { + return ModelInfoView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ModelInfoView[] VALUES = values(); + + public static ModelInfoView 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 ModelInfoView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.ModelInfoView) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfig.java new file mode 100644 index 000000000000..ad17588607aa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfig.java @@ -0,0 +1,609 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/logging.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Observability config for a resource.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ObservabilityConfig} + */ +@com.google.protobuf.Generated +public final class ObservabilityConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ObservabilityConfig) + ObservabilityConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ObservabilityConfig"); + } + + // Use ObservabilityConfig.newBuilder() to construct. + private ObservabilityConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LoggingProto + .internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LoggingProto + .internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ObservabilityConfig.class, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder.class); + } + + public static final int OBSERVABILITY_ENABLED_FIELD_NUMBER = 1; + private boolean observabilityEnabled_ = false; + + /** + * + * + *
+   * Optional. Enables observability. If `false`, all other flags are ignored.
+   * 
+ * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityEnabled. + */ + @java.lang.Override + public boolean getObservabilityEnabled() { + return observabilityEnabled_; + } + + public static final int SENSITIVE_LOGGING_ENABLED_FIELD_NUMBER = 2; + private boolean sensitiveLoggingEnabled_ = false; + + /** + * + * + *
+   * Optional. Enables sensitive logging. Sensitive logging includes customer
+   * core content (e.g. prompts, responses). If `false`, will sanitize all
+   * sensitive fields.
+   * 
+ * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitiveLoggingEnabled. + */ + @java.lang.Override + public boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled_; + } + + 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 (observabilityEnabled_ != false) { + output.writeBool(1, observabilityEnabled_); + } + if (sensitiveLoggingEnabled_ != false) { + output.writeBool(2, sensitiveLoggingEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (observabilityEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, observabilityEnabled_); + } + if (sensitiveLoggingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, sensitiveLoggingEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.ObservabilityConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ObservabilityConfig other = + (com.google.cloud.discoveryengine.v1.ObservabilityConfig) obj; + + if (getObservabilityEnabled() != other.getObservabilityEnabled()) return false; + if (getSensitiveLoggingEnabled() != other.getSensitiveLoggingEnabled()) 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) + OBSERVABILITY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getObservabilityEnabled()); + hash = (37 * hash) + SENSITIVE_LOGGING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSensitiveLoggingEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ObservabilityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Observability config for a resource.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ObservabilityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ObservabilityConfig) + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LoggingProto + .internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LoggingProto + .internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ObservabilityConfig.class, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.ObservabilityConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + observabilityEnabled_ = false; + sensitiveLoggingEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LoggingProto + .internal_static_google_cloud_discoveryengine_v1_ObservabilityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfig build() { + com.google.cloud.discoveryengine.v1.ObservabilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfig buildPartial() { + com.google.cloud.discoveryengine.v1.ObservabilityConfig result = + new com.google.cloud.discoveryengine.v1.ObservabilityConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.ObservabilityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.observabilityEnabled_ = observabilityEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sensitiveLoggingEnabled_ = sensitiveLoggingEnabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.ObservabilityConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.ObservabilityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ObservabilityConfig other) { + if (other == com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance()) + return this; + if (other.getObservabilityEnabled() != false) { + setObservabilityEnabled(other.getObservabilityEnabled()); + } + if (other.getSensitiveLoggingEnabled() != false) { + setSensitiveLoggingEnabled(other.getSensitiveLoggingEnabled()); + } + 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: + { + observabilityEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sensitiveLoggingEnabled_ = 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 boolean observabilityEnabled_; + + /** + * + * + *
+     * Optional. Enables observability. If `false`, all other flags are ignored.
+     * 
+ * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityEnabled. + */ + @java.lang.Override + public boolean getObservabilityEnabled() { + return observabilityEnabled_; + } + + /** + * + * + *
+     * Optional. Enables observability. If `false`, all other flags are ignored.
+     * 
+ * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The observabilityEnabled to set. + * @return This builder for chaining. + */ + public Builder setObservabilityEnabled(boolean value) { + + observabilityEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Enables observability. If `false`, all other flags are ignored.
+     * 
+ * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObservabilityEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + observabilityEnabled_ = false; + onChanged(); + return this; + } + + private boolean sensitiveLoggingEnabled_; + + /** + * + * + *
+     * Optional. Enables sensitive logging. Sensitive logging includes customer
+     * core content (e.g. prompts, responses). If `false`, will sanitize all
+     * sensitive fields.
+     * 
+ * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitiveLoggingEnabled. + */ + @java.lang.Override + public boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled_; + } + + /** + * + * + *
+     * Optional. Enables sensitive logging. Sensitive logging includes customer
+     * core content (e.g. prompts, responses). If `false`, will sanitize all
+     * sensitive fields.
+     * 
+ * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sensitiveLoggingEnabled to set. + * @return This builder for chaining. + */ + public Builder setSensitiveLoggingEnabled(boolean value) { + + sensitiveLoggingEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Enables sensitive logging. Sensitive logging includes customer
+     * core content (e.g. prompts, responses). If `false`, will sanitize all
+     * sensitive fields.
+     * 
+ * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSensitiveLoggingEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + sensitiveLoggingEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ObservabilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ObservabilityConfig) + private static final com.google.cloud.discoveryengine.v1.ObservabilityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.ObservabilityConfig(); + } + + public static com.google.cloud.discoveryengine.v1.ObservabilityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObservabilityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfigOrBuilder.java new file mode 100644 index 000000000000..90e5f831a5ff --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ObservabilityConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/logging.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface ObservabilityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ObservabilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Enables observability. If `false`, all other flags are ignored.
+   * 
+ * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityEnabled. + */ + boolean getObservabilityEnabled(); + + /** + * + * + *
+   * Optional. Enables sensitive logging. Sensitive logging includes customer
+   * core content (e.g. prompts, responses). If `false`, will sanitize all
+   * sensitive fields.
+   * 
+ * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitiveLoggingEnabled. + */ + boolean getSensitiveLoggingEnabled(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java index d476575b120b..ec9c238127aa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Project.java @@ -2039,848 +2039,13443 @@ public com.google.cloud.discoveryengine.v1.Project.ServiceTerms getDefaultInstan } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface CustomerProvidedConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional. Configuration for NotebookLM settings.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the notebooklmConfig field is set. + */ + boolean hasNotebooklmConfig(); - /** - * - * - *
-   * Output only. Full resource name of the project, for example
-   * `projects/{project}`.
-   * Note that when making requests, project number and project id are both
-   * acceptable, but the server will always respond in project number.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } + /** + * + * + *
+     * Optional. Configuration for NotebookLM settings.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The notebooklmConfig. + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + getNotebooklmConfig(); - /** - * - * - *
-   * Output only. Full resource name of the project, for example
-   * `projects/{project}`.
-   * Note that when making requests, project number and project id are both
-   * acceptable, but the server will always respond in project number.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+     * Optional. Configuration for NotebookLM settings.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder(); - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+     * Optional. Resource-level access control config for Gemini Enterprise
+     * users.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resourceAccessControlConfig field is set. + */ + boolean hasResourceAccessControlConfig(); - /** - * - * - *
-   * Output only. The timestamp when this project is created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
+     * Optional. Resource-level access control config for Gemini Enterprise
+     * users.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resourceAccessControlConfig. + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig + getResourceAccessControlConfig(); - /** - * - * - *
-   * Output only. The timestamp when this project is created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + /** + * + * + *
+     * Optional. Resource-level access control config for Gemini Enterprise
+     * users.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder + getResourceAccessControlConfigOrBuilder(); } /** * * *
-   * Output only. The timestamp when this project is created.
+   * Customer provided configurations.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Protobuf type {@code google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig} */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + public static final class CustomerProvidedConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) + CustomerProvidedConfigOrBuilder { + private static final long serialVersionUID = 0L; - public static final int PROVISION_COMPLETION_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp provisionCompletionTime_; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomerProvidedConfig"); + } - /** - * - * - *
-   * Output only. The timestamp when this project is successfully provisioned.
-   * Empty value means this project is still provisioning and is not ready for
-   * use.
-   * 
- * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the provisionCompletionTime field is set. - */ - @java.lang.Override - public boolean hasProvisionCompletionTime() { - return ((bitField0_ & 0x00000002) != 0); - } + // Use CustomerProvidedConfig.newBuilder() to construct. + private CustomerProvidedConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-   * Output only. The timestamp when this project is successfully provisioned.
-   * Empty value means this project is still provisioning and is not ready for
-   * use.
-   * 
- * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The provisionCompletionTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getProvisionCompletionTime() { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; - } + private CustomerProvidedConfig() {} - /** - * - * - *
-   * Output only. The timestamp when this project is successfully provisioned.
-   * Empty value means this project is still provisioning and is not ready for
-   * use.
-   * 
- * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor; + } - public static final int SERVICE_TERMS_MAP_FIELD_NUMBER = 4; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder.class); + } - private static final class ServiceTermsMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.discoveryengine.v1.ProjectProto - .internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms - .getDefaultInstance()); - } + public interface NotebooklmConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - serviceTermsMap_; + /** + * + * + *
+       * Model Armor configuration to be used for sanitizing user prompts and
+       * LLM responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return Whether the modelArmorConfig field is set. + */ + boolean hasModelArmorConfig(); - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - internalGetServiceTermsMap() { - if (serviceTermsMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ServiceTermsMapDefaultEntryHolder.defaultEntry); - } - return serviceTermsMap_; - } + /** + * + * + *
+       * Model Armor configuration to be used for sanitizing user prompts and
+       * LLM responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return The modelArmorConfig. + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getModelArmorConfig(); - public int getServiceTermsMapCount() { - return internalGetServiceTermsMap().getMap().size(); - } + /** + * + * + *
+       * Model Armor configuration to be used for sanitizing user prompts and
+       * LLM responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder(); - /** - * - * - *
-   * Output only. A map of terms of services. The key is the `id` of
-   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
-   * 
- * - * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsServiceTermsMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetServiceTermsMap().getMap().containsKey(key); - } + /** + * + * + *
+       * Optional. Whether to disable the notebook sharing feature for the
+       * project. Default to false if not specified.
+       * 
+ * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The optOutNotebookSharing. + */ + boolean getOptOutNotebookSharing(); - /** Use {@link #getServiceTermsMapMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getServiceTermsMap() { - return getServiceTermsMapMap(); - } + /** + * + * + *
+       * Optional. Specifies the data protection policy for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + boolean hasDataProtectionPolicy(); - /** - * - * - *
-   * Output only. A map of terms of services. The key is the `id` of
-   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
-   * 
- * - * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map - getServiceTermsMapMap() { - return internalGetServiceTermsMap().getMap(); - } + /** + * + * + *
+       * Optional. Specifies the data protection policy for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDataProtectionPolicy(); - /** - * - * - *
-   * Output only. A map of terms of services. The key is the `id` of
-   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
-   * 
- * - * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1.Project.ServiceTerms - getServiceTermsMapOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1.Project.ServiceTerms defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetServiceTermsMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } + /** + * + * + *
+       * Optional. Specifies the data protection policy for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder(); - /** - * - * - *
-   * Output only. A map of terms of services. The key is the `id` of
-   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
-   * 
- * - * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Project.ServiceTerms getServiceTermsMapOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetServiceTermsMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + /** + * + * + *
+       * Optional. Observability config for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + boolean hasObservabilityConfig(); + + /** + * + * + *
+       * Optional. Observability config for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + com.google.cloud.discoveryengine.v1.ObservabilityConfig getObservabilityConfig(); + + /** + * + * + *
+       * Optional. Observability config for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder(); } - return map.get(key); - } - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Configuration for NotebookLM.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig} + */ + public static final class NotebooklmConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) + NotebooklmConfigOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "NotebooklmConfig"); + } - memoizedIsInitialized = 1; - return true; - } + // Use NotebooklmConfig.newBuilder() to construct. + private NotebooklmConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getProvisionCompletionTime()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetServiceTermsMap(), ServiceTermsMapDefaultEntryHolder.defaultEntry, 4); - getUnknownFields().writeTo(output); - } + private NotebooklmConfig() {} - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProvisionCompletionTime()); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - entry : internalGetServiceTermsMap().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - serviceTermsMap__ = - ServiceTermsMapDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, serviceTermsMap__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder.class); + } + + public interface ModelArmorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing user prompts. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + java.lang.String getUserPromptTemplate(); + + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing user prompts. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + com.google.protobuf.ByteString getUserPromptTemplateBytes(); + + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing LLM responses. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the LLM
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + java.lang.String getResponseTemplate(); + + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing LLM responses. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the LLM
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + com.google.protobuf.ByteString getResponseTemplateBytes(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.Project)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1.Project other = - (com.google.cloud.discoveryengine.v1.Project) obj; + /** + * + * + *
+       * Configuration for customer defined Model Armor templates to be used for
+       * sanitizing user prompts and LLM responses.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig} + */ + public static final class ModelArmorConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + ModelArmorConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelArmorConfig"); + } - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasProvisionCompletionTime() != other.hasProvisionCompletionTime()) return false; - if (hasProvisionCompletionTime()) { - if (!getProvisionCompletionTime().equals(other.getProvisionCompletionTime())) return false; - } - if (!internalGetServiceTermsMap().equals(other.internalGetServiceTermsMap())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // Use ModelArmorConfig.newBuilder() to construct. + private ModelArmorConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasProvisionCompletionTime()) { - hash = (37 * hash) + PROVISION_COMPLETION_TIME_FIELD_NUMBER; - hash = (53 * hash) + getProvisionCompletionTime().hashCode(); - } - if (!internalGetServiceTermsMap().getMap().isEmpty()) { - hash = (37 * hash) + SERVICE_TERMS_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetServiceTermsMap().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private ModelArmorConfig() { + userPromptTemplate_ = ""; + responseTemplate_ = ""; + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder.class); + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int USER_PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPromptTemplate_ = ""; + + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing user prompts. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + @java.lang.Override + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing user prompts. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the user prompt.
+         * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int RESPONSE_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing LLM responses. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the LLM
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + @java.lang.Override + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+         * Optional. The resource name of the Model Armor Template for
+         * sanitizing LLM responses. Format:
+         * projects/{project}/locations/{location}/templates/{template_id}
+         * If not specified, no sanitization will be applied to the LLM
+         * response.
+         * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.discoveryengine.v1.Project parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.discoveryengine.v1.Project parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, responseTemplate_); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.discoveryengine.v1.Project parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, responseTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + other = + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig) + obj; + + if (!getUserPromptTemplate().equals(other.getUserPromptTemplate())) return false; + if (!getResponseTemplate().equals(other.getResponseTemplate())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getUserPromptTemplate().hashCode(); + hash = (37 * hash) + RESPONSE_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getResponseTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Project prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * Metadata and configurations for a Google Cloud project in the service.
-   * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.Project} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project) - com.google.cloud.discoveryengine.v1.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.ProjectProto - .internal_static_google_cloud_discoveryengine_v1_Project_descriptor; - } + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetServiceTermsMap(); - default: - throw new RuntimeException("Invalid map field number: " + number); + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Configuration for customer defined Model Armor templates to be used for
+         * sanitizing user prompts and LLM responses.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userPromptTemplate_ = ""; + responseTemplate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + build() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + result = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userPromptTemplate_ = userPromptTemplate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.responseTemplate_ = responseTemplate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance()) return this; + if (!other.getUserPromptTemplate().isEmpty()) { + userPromptTemplate_ = other.userPromptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResponseTemplate().isEmpty()) { + responseTemplate_ = other.responseTemplate_; + 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: + { + userPromptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + responseTemplate_ = 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 userPromptTemplate_ = ""; + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing user prompts. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the user prompt.
+           * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing user prompts. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the user prompt.
+           * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing user prompts. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the user prompt.
+           * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing user prompts. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the user prompt.
+           * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserPromptTemplate() { + userPromptTemplate_ = getDefaultInstance().getUserPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing user prompts. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the user prompt.
+           * 
+ * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing LLM responses. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the LLM
+           * response.
+           * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing LLM responses. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the LLM
+           * response.
+           * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing LLM responses. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the LLM
+           * response.
+           * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing LLM responses. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the LLM
+           * response.
+           * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResponseTemplate() { + responseTemplate_ = getDefaultInstance().getResponseTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The resource name of the Model Armor Template for
+           * sanitizing LLM responses. Format:
+           * projects/{project}/locations/{location}/templates/{template_id}
+           * If not specified, no sanitization will be applied to the LLM
+           * response.
+           * 
+ * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + private static final com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelArmorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Optional. The sensitive data protection policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + boolean hasSensitiveDataProtectionPolicy(); + + /** + * + * + *
+         * Optional. The sensitive data protection policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy(); + + /** + * + * + *
+         * Optional. The sensitive data protection policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder(); + } + + /** + * + * + *
+       * Data protection policy config for NotebookLM.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy} + */ + public static final class DataProtectionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + DataProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataProtectionPolicy"); + } + + // Use DataProtectionPolicy.newBuilder() to construct. + private DataProtectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataProtectionPolicy() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder.class); + } + + public interface SensitiveDataProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * Optional. The Sensitive Data Protection policy resource name.
+           * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + java.lang.String getPolicy(); + + /** + * + * + *
+           * Optional. The Sensitive Data Protection policy resource name.
+           * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + com.google.protobuf.ByteString getPolicyBytes(); + } + + /** + * + * + *
+         * Specifies a Sensitive Data Protection
+         * (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview)
+         * policy.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy} + */ + public static final class SensitiveDataProtectionPolicy + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + SensitiveDataProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SensitiveDataProtectionPolicy"); + } + + // Use SensitiveDataProtectionPolicy.newBuilder() to construct. + private SensitiveDataProtectionPolicy( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SensitiveDataProtectionPolicy() { + policy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder + .class); + } + + public static final int POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object policy_ = ""; + + /** + * + * + *
+           * Optional. The Sensitive Data Protection policy resource name.
+           * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + @java.lang.Override + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } + } + + /** + * + * + *
+           * Optional. The Sensitive Data Protection policy resource name.
+           * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, policy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, policy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + other = + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + obj; + + 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(); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+           * Specifies a Sensitive Data Protection
+           * (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview)
+           * policy.
+           * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + build() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + buildPartial() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + result = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance()) return this; + if (!other.getPolicy().isEmpty()) { + policy_ = other.policy_; + 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: + { + policy_ = 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 policy_ = ""; + + /** + * + * + *
+             * Optional. The Sensitive Data Protection policy resource name.
+             * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+             * Optional. The Sensitive Data Protection policy resource name.
+             * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+             * Optional. The Sensitive Data Protection policy resource name.
+             * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+             * Optional. The Sensitive Data Protection policy resource name.
+             * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + policy_ = getDefaultInstance().getPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+             * Optional. The Sensitive Data Protection policy resource name.
+             * 
+ * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + private static final com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy(); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SensitiveDataProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SENSITIVE_DATA_PROTECTION_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + sensitiveDataProtectionPolicy_; + + /** + * + * + *
+         * Optional. The sensitive data protection policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasSensitiveDataProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Optional. The sensitive data protection policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy.getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + + /** + * + * + *
+         * Optional. The sensitive data protection policy.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder() { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy.getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + + 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, getSensitiveDataProtectionPolicy()); + } + 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, getSensitiveDataProtectionPolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + other = + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy) + obj; + + if (hasSensitiveDataProtectionPolicy() != other.hasSensitiveDataProtectionPolicy()) + return false; + if (hasSensitiveDataProtectionPolicy()) { + if (!getSensitiveDataProtectionPolicy() + .equals(other.getSensitiveDataProtectionPolicy())) 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 (hasSensitiveDataProtectionPolicy()) { + hash = (37 * hash) + SENSITIVE_DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getSensitiveDataProtectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Data protection policy config for NotebookLM.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSensitiveDataProtectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sensitiveDataProtectionPolicy_ = null; + if (sensitiveDataProtectionPolicyBuilder_ != null) { + sensitiveDataProtectionPolicyBuilder_.dispose(); + sensitiveDataProtectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + build() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + buildPartial() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + result = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sensitiveDataProtectionPolicy_ = + sensitiveDataProtectionPolicyBuilder_ == null + ? sensitiveDataProtectionPolicy_ + : sensitiveDataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance()) return this; + if (other.hasSensitiveDataProtectionPolicy()) { + mergeSensitiveDataProtectionPolicy(other.getSensitiveDataProtectionPolicy()); + } + 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( + internalGetSensitiveDataProtectionPolicyFieldBuilder().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.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + sensitiveDataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder> + sensitiveDataProtectionPolicyBuilder_; + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + public boolean hasSensitiveDataProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy() { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } else { + return sensitiveDataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + value) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sensitiveDataProtectionPolicy_ = value; + } else { + sensitiveDataProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder + builderForValue) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + sensitiveDataProtectionPolicy_ = builderForValue.build(); + } else { + sensitiveDataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + value) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sensitiveDataProtectionPolicy_ != null + && sensitiveDataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance()) { + getSensitiveDataProtectionPolicyBuilder().mergeFrom(value); + } else { + sensitiveDataProtectionPolicy_ = value; + } + } else { + sensitiveDataProtectionPolicyBuilder_.mergeFrom(value); + } + if (sensitiveDataProtectionPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSensitiveDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + sensitiveDataProtectionPolicy_ = null; + if (sensitiveDataProtectionPolicyBuilder_ != null) { + sensitiveDataProtectionPolicyBuilder_.dispose(); + sensitiveDataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder + getSensitiveDataProtectionPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSensitiveDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder() { + if (sensitiveDataProtectionPolicyBuilder_ != null) { + return sensitiveDataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + } + + /** + * + * + *
+           * Optional. The sensitive data protection policy.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder> + internalGetSensitiveDataProtectionPolicyFieldBuilder() { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + sensitiveDataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder>( + getSensitiveDataProtectionPolicy(), getParentForChildren(), isClean()); + sensitiveDataProtectionPolicy_ = null; + } + return sensitiveDataProtectionPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + private static final com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy(); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODEL_ARMOR_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + modelArmorConfig_; + + /** + * + * + *
+       * Model Armor configuration to be used for sanitizing user prompts and
+       * LLM responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return Whether the modelArmorConfig field is set. + */ + @java.lang.Override + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Model Armor configuration to be used for sanitizing user prompts and
+       * LLM responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return The modelArmorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getModelArmorConfig() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + + /** + * + * + *
+       * Model Armor configuration to be used for sanitizing user prompts and
+       * LLM responses.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + + public static final int OPT_OUT_NOTEBOOK_SHARING_FIELD_NUMBER = 2; + private boolean optOutNotebookSharing_ = false; + + /** + * + * + *
+       * Optional. Whether to disable the notebook sharing feature for the
+       * project. Default to false if not specified.
+       * 
+ * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The optOutNotebookSharing. + */ + @java.lang.Override + public boolean getOptOutNotebookSharing() { + return optOutNotebookSharing_; + } + + public static final int DATA_PROTECTION_POLICY_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + dataProtectionPolicy_; + + /** + * + * + *
+       * Optional. Specifies the data protection policy for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Specifies the data protection policy for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDataProtectionPolicy() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + /** + * + * + *
+       * Optional. Specifies the data protection policy for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.ObservabilityConfig observabilityConfig_; + + /** + * + * + *
+       * Optional. Observability config for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + @java.lang.Override + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. Observability config for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfig getObservabilityConfig() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + /** + * + * + *
+       * Optional. Observability config for NotebookLM.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + 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, getModelArmorConfig()); + } + if (optOutNotebookSharing_ != false) { + output.writeBool(2, optOutNotebookSharing_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getDataProtectionPolicy()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getObservabilityConfig()); + } + 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, getModelArmorConfig()); + } + if (optOutNotebookSharing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, optOutNotebookSharing_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getDataProtectionPolicy()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObservabilityConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig other = + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) + obj; + + if (hasModelArmorConfig() != other.hasModelArmorConfig()) return false; + if (hasModelArmorConfig()) { + if (!getModelArmorConfig().equals(other.getModelArmorConfig())) return false; + } + if (getOptOutNotebookSharing() != other.getOptOutNotebookSharing()) return false; + if (hasDataProtectionPolicy() != other.hasDataProtectionPolicy()) return false; + if (hasDataProtectionPolicy()) { + if (!getDataProtectionPolicy().equals(other.getDataProtectionPolicy())) return false; + } + if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; + if (hasObservabilityConfig()) { + if (!getObservabilityConfig().equals(other.getObservabilityConfig())) 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 (hasModelArmorConfig()) { + hash = (37 * hash) + MODEL_ARMOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorConfig().hashCode(); + } + hash = (37 * hash) + OPT_OUT_NOTEBOOK_SHARING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptOutNotebookSharing()); + if (hasDataProtectionPolicy()) { + hash = (37 * hash) + DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataProtectionPolicy().hashCode(); + } + if (hasObservabilityConfig()) { + hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Configuration for NotebookLM.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelArmorConfigFieldBuilder(); + internalGetDataProtectionPolicyFieldBuilder(); + internalGetObservabilityConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + optOutNotebookSharing_ = false; + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + build() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + result = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelArmorConfig_ = + modelArmorConfigBuilder_ == null + ? modelArmorConfig_ + : modelArmorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.optOutNotebookSharing_ = optOutNotebookSharing_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataProtectionPolicy_ = + dataProtectionPolicyBuilder_ == null + ? dataProtectionPolicy_ + : dataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.observabilityConfig_ = + observabilityConfigBuilder_ == null + ? observabilityConfig_ + : observabilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance()) return this; + if (other.hasModelArmorConfig()) { + mergeModelArmorConfig(other.getModelArmorConfig()); + } + if (other.getOptOutNotebookSharing() != false) { + setOptOutNotebookSharing(other.getOptOutNotebookSharing()); + } + if (other.hasDataProtectionPolicy()) { + mergeDataProtectionPolicy(other.getDataProtectionPolicy()); + } + if (other.hasObservabilityConfig()) { + mergeObservabilityConfig(other.getObservabilityConfig()); + } + 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( + internalGetModelArmorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + optOutNotebookSharing_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 42: + { + input.readMessage( + internalGetDataProtectionPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetObservabilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + 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.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + modelArmorConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder> + modelArmorConfigBuilder_; + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return Whether the modelArmorConfig field is set. + */ + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return The modelArmorConfig. + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getModelArmorConfig() { + if (modelArmorConfigBuilder_ == null) { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } else { + return modelArmorConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + value) { + if (modelArmorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelArmorConfig_ = value; + } else { + modelArmorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.Builder + builderForValue) { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfig_ = builderForValue.build(); + } else { + modelArmorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder mergeModelArmorConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + value) { + if (modelArmorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && modelArmorConfig_ != null + && modelArmorConfig_ + != com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance()) { + getModelArmorConfigBuilder().mergeFrom(value); + } else { + modelArmorConfig_ = value; + } + } else { + modelArmorConfigBuilder_.mergeFrom(value); + } + if (modelArmorConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder clearModelArmorConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.Builder + getModelArmorConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetModelArmorConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + if (modelArmorConfigBuilder_ != null) { + return modelArmorConfigBuilder_.getMessageOrBuilder(); + } else { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + } + + /** + * + * + *
+         * Model Armor configuration to be used for sanitizing user prompts and
+         * LLM responses.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder> + internalGetModelArmorConfigFieldBuilder() { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfigOrBuilder>( + getModelArmorConfig(), getParentForChildren(), isClean()); + modelArmorConfig_ = null; + } + return modelArmorConfigBuilder_; + } + + private boolean optOutNotebookSharing_; + + /** + * + * + *
+         * Optional. Whether to disable the notebook sharing feature for the
+         * project. Default to false if not specified.
+         * 
+ * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The optOutNotebookSharing. + */ + @java.lang.Override + public boolean getOptOutNotebookSharing() { + return optOutNotebookSharing_; + } + + /** + * + * + *
+         * Optional. Whether to disable the notebook sharing feature for the
+         * project. Default to false if not specified.
+         * 
+ * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The optOutNotebookSharing to set. + * @return This builder for chaining. + */ + public Builder setOptOutNotebookSharing(boolean value) { + + optOutNotebookSharing_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Whether to disable the notebook sharing feature for the
+         * project. Default to false if not specified.
+         * 
+ * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOptOutNotebookSharing() { + bitField0_ = (bitField0_ & ~0x00000002); + optOutNotebookSharing_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + dataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder> + dataProtectionPolicyBuilder_; + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDataProtectionPolicy() { + if (dataProtectionPolicyBuilder_ == null) { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } else { + return dataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + value) { + if (dataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataProtectionPolicy_ = value; + } else { + dataProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.Builder + builderForValue) { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicy_ = builderForValue.build(); + } else { + dataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataProtectionPolicy( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + value) { + if (dataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dataProtectionPolicy_ != null + && dataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance()) { + getDataProtectionPolicyBuilder().mergeFrom(value); + } else { + dataProtectionPolicy_ = value; + } + } else { + dataProtectionPolicyBuilder_.mergeFrom(value); + } + if (dataProtectionPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.Builder + getDataProtectionPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + if (dataProtectionPolicyBuilder_ != null) { + return dataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + } + + /** + * + * + *
+         * Optional. Specifies the data protection policy for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder> + internalGetDataProtectionPolicyFieldBuilder() { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicyOrBuilder>( + getDataProtectionPolicy(), getParentForChildren(), isClean()); + dataProtectionPolicy_ = null; + } + return dataProtectionPolicyBuilder_; + } + + private com.google.cloud.discoveryengine.v1.ObservabilityConfig observabilityConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ObservabilityConfig, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder> + observabilityConfigBuilder_; + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + public com.google.cloud.discoveryengine.v1.ObservabilityConfig getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } else { + return observabilityConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + observabilityConfig_ = value; + } else { + observabilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder builderForValue) { + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); + } else { + observabilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeObservabilityConfig( + com.google.cloud.discoveryengine.v1.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.discoveryengine.v1.ObservabilityConfig + .getDefaultInstance()) { + getObservabilityConfigBuilder().mergeFrom(value); + } else { + observabilityConfig_ = value; + } + } else { + observabilityConfigBuilder_.mergeFrom(value); + } + if (observabilityConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); + } else { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + } + + /** + * + * + *
+         * Optional. Observability config for NotebookLM.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ObservabilityConfig, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder> + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ObservabilityConfig, + com.google.cloud.discoveryengine.v1.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1.ObservabilityConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; + } + return observabilityConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig) + private static final com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotebooklmConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ResourceAccessControlConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. If `true`, the data stores and data connectors shown to
+       * Gemini Enterprise users are filtered to those the user has the required
+       * resource-level `.get` IAM permission on.
+       * 
+ * + * bool data_store_access_control_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreAccessControlEnabled. + */ + boolean getDataStoreAccessControlEnabled(); + } + + /** + * + * + *
+     * Controls resource-level access control for Gemini Enterprise users.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig} + */ + public static final class ResourceAccessControlConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig) + ResourceAccessControlConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ResourceAccessControlConfig"); + } + + // Use ResourceAccessControlConfig.newBuilder() to construct. + private ResourceAccessControlConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ResourceAccessControlConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder.class); + } + + public static final int DATA_STORE_ACCESS_CONTROL_ENABLED_FIELD_NUMBER = 1; + private boolean dataStoreAccessControlEnabled_ = false; + + /** + * + * + *
+       * Optional. If `true`, the data stores and data connectors shown to
+       * Gemini Enterprise users are filtered to those the user has the required
+       * resource-level `.get` IAM permission on.
+       * 
+ * + * bool data_store_access_control_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreAccessControlEnabled. + */ + @java.lang.Override + public boolean getDataStoreAccessControlEnabled() { + return dataStoreAccessControlEnabled_; + } + + 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 (dataStoreAccessControlEnabled_ != false) { + output.writeBool(1, dataStoreAccessControlEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataStoreAccessControlEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, dataStoreAccessControlEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + other = + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig) + obj; + + if (getDataStoreAccessControlEnabled() != other.getDataStoreAccessControlEnabled()) + 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) + DATA_STORE_ACCESS_CONTROL_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDataStoreAccessControlEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Controls resource-level access control for Gemini Enterprise users.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig) + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStoreAccessControlEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + build() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + result = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStoreAccessControlEnabled_ = dataStoreAccessControlEnabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance()) return this; + if (other.getDataStoreAccessControlEnabled() != false) { + setDataStoreAccessControlEnabled(other.getDataStoreAccessControlEnabled()); + } + 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: + { + dataStoreAccessControlEnabled_ = 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 dataStoreAccessControlEnabled_; + + /** + * + * + *
+         * Optional. If `true`, the data stores and data connectors shown to
+         * Gemini Enterprise users are filtered to those the user has the required
+         * resource-level `.get` IAM permission on.
+         * 
+ * + * + * bool data_store_access_control_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataStoreAccessControlEnabled. + */ + @java.lang.Override + public boolean getDataStoreAccessControlEnabled() { + return dataStoreAccessControlEnabled_; + } + + /** + * + * + *
+         * Optional. If `true`, the data stores and data connectors shown to
+         * Gemini Enterprise users are filtered to those the user has the required
+         * resource-level `.get` IAM permission on.
+         * 
+ * + * + * bool data_store_access_control_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The dataStoreAccessControlEnabled to set. + * @return This builder for chaining. + */ + public Builder setDataStoreAccessControlEnabled(boolean value) { + + dataStoreAccessControlEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If `true`, the data stores and data connectors shown to
+         * Gemini Enterprise users are filtered to those the user has the required
+         * resource-level `.get` IAM permission on.
+         * 
+ * + * + * bool data_store_access_control_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataStoreAccessControlEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + dataStoreAccessControlEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig) + private static final com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceAccessControlConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NOTEBOOKLM_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + notebooklmConfig_; + + /** + * + * + *
+     * Optional. Configuration for NotebookLM settings.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the notebooklmConfig field is set. + */ + @java.lang.Override + public boolean hasNotebooklmConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for NotebookLM settings.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The notebooklmConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + getNotebooklmConfig() { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance() + : notebooklmConfig_; + } + + /** + * + * + *
+     * Optional. Configuration for NotebookLM settings.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance() + : notebooklmConfig_; + } + + public static final int RESOURCE_ACCESS_CONTROL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + resourceAccessControlConfig_; + + /** + * + * + *
+     * Optional. Resource-level access control config for Gemini Enterprise
+     * users.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resourceAccessControlConfig field is set. + */ + @java.lang.Override + public boolean hasResourceAccessControlConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Resource-level access control config for Gemini Enterprise
+     * users.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resourceAccessControlConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + getResourceAccessControlConfig() { + return resourceAccessControlConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance() + : resourceAccessControlConfig_; + } + + /** + * + * + *
+     * Optional. Resource-level access control config for Gemini Enterprise
+     * users.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder + getResourceAccessControlConfigOrBuilder() { + return resourceAccessControlConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance() + : resourceAccessControlConfig_; + } + + 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(3, getNotebooklmConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getResourceAccessControlConfig()); + } + 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(3, getNotebooklmConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getResourceAccessControlConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig other = + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) obj; + + if (hasNotebooklmConfig() != other.hasNotebooklmConfig()) return false; + if (hasNotebooklmConfig()) { + if (!getNotebooklmConfig().equals(other.getNotebooklmConfig())) return false; + } + if (hasResourceAccessControlConfig() != other.hasResourceAccessControlConfig()) return false; + if (hasResourceAccessControlConfig()) { + if (!getResourceAccessControlConfig().equals(other.getResourceAccessControlConfig())) + 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 (hasNotebooklmConfig()) { + hash = (37 * hash) + NOTEBOOKLM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNotebooklmConfig().hashCode(); + } + if (hasResourceAccessControlConfig()) { + hash = (37 * hash) + RESOURCE_ACCESS_CONTROL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResourceAccessControlConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Customer provided configurations.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.class, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetNotebooklmConfigFieldBuilder(); + internalGetResourceAccessControlConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + notebooklmConfig_ = null; + if (notebooklmConfigBuilder_ != null) { + notebooklmConfigBuilder_.dispose(); + notebooklmConfigBuilder_ = null; + } + resourceAccessControlConfig_ = null; + if (resourceAccessControlConfigBuilder_ != null) { + resourceAccessControlConfigBuilder_.dispose(); + resourceAccessControlConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig build() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig buildPartial() { + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig result = + new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.notebooklmConfig_ = + notebooklmConfigBuilder_ == null + ? notebooklmConfig_ + : notebooklmConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceAccessControlConfig_ = + resourceAccessControlConfigBuilder_ == null + ? resourceAccessControlConfig_ + : resourceAccessControlConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .getDefaultInstance()) return this; + if (other.hasNotebooklmConfig()) { + mergeNotebooklmConfig(other.getNotebooklmConfig()); + } + if (other.hasResourceAccessControlConfig()) { + mergeResourceAccessControlConfig(other.getResourceAccessControlConfig()); + } + 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 26: + { + input.readMessage( + internalGetNotebooklmConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 50: + { + input.readMessage( + internalGetResourceAccessControlConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + 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.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + notebooklmConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder> + notebooklmConfigBuilder_; + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the notebooklmConfig field is set. + */ + public boolean hasNotebooklmConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The notebooklmConfig. + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + getNotebooklmConfig() { + if (notebooklmConfigBuilder_ == null) { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance() + : notebooklmConfig_; + } else { + return notebooklmConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notebooklmConfig_ = value; + } else { + notebooklmConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder + builderForValue) { + if (notebooklmConfigBuilder_ == null) { + notebooklmConfig_ = builderForValue.build(); + } else { + notebooklmConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNotebooklmConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && notebooklmConfig_ != null + && notebooklmConfig_ + != com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.getDefaultInstance()) { + getNotebooklmConfigBuilder().mergeFrom(value); + } else { + notebooklmConfig_ = value; + } + } else { + notebooklmConfigBuilder_.mergeFrom(value); + } + if (notebooklmConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNotebooklmConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + notebooklmConfig_ = null; + if (notebooklmConfigBuilder_ != null) { + notebooklmConfigBuilder_.dispose(); + notebooklmConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder + getNotebooklmConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetNotebooklmConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + if (notebooklmConfigBuilder_ != null) { + return notebooklmConfigBuilder_.getMessageOrBuilder(); + } else { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance() + : notebooklmConfig_; + } + } + + /** + * + * + *
+       * Optional. Configuration for NotebookLM settings.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder> + internalGetNotebooklmConfigFieldBuilder() { + if (notebooklmConfigBuilder_ == null) { + notebooklmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder>( + getNotebooklmConfig(), getParentForChildren(), isClean()); + notebooklmConfig_ = null; + } + return notebooklmConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + resourceAccessControlConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder> + resourceAccessControlConfigBuilder_; + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resourceAccessControlConfig field is set. + */ + public boolean hasResourceAccessControlConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resourceAccessControlConfig. + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + getResourceAccessControlConfig() { + if (resourceAccessControlConfigBuilder_ == null) { + return resourceAccessControlConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance() + : resourceAccessControlConfig_; + } else { + return resourceAccessControlConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResourceAccessControlConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + value) { + if (resourceAccessControlConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceAccessControlConfig_ = value; + } else { + resourceAccessControlConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResourceAccessControlConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder + builderForValue) { + if (resourceAccessControlConfigBuilder_ == null) { + resourceAccessControlConfig_ = builderForValue.build(); + } else { + resourceAccessControlConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResourceAccessControlConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig + value) { + if (resourceAccessControlConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && resourceAccessControlConfig_ != null + && resourceAccessControlConfig_ + != com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance()) { + getResourceAccessControlConfigBuilder().mergeFrom(value); + } else { + resourceAccessControlConfig_ = value; + } + } else { + resourceAccessControlConfigBuilder_.mergeFrom(value); + } + if (resourceAccessControlConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResourceAccessControlConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + resourceAccessControlConfig_ = null; + if (resourceAccessControlConfigBuilder_ != null) { + resourceAccessControlConfigBuilder_.dispose(); + resourceAccessControlConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder + getResourceAccessControlConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetResourceAccessControlConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder + getResourceAccessControlConfigOrBuilder() { + if (resourceAccessControlConfigBuilder_ != null) { + return resourceAccessControlConfigBuilder_.getMessageOrBuilder(); + } else { + return resourceAccessControlConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.getDefaultInstance() + : resourceAccessControlConfig_; + } + } + + /** + * + * + *
+       * Optional. Resource-level access control config for Gemini Enterprise
+       * users.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.ResourceAccessControlConfig resource_access_control_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder> + internalGetResourceAccessControlConfigFieldBuilder() { + if (resourceAccessControlConfigBuilder_ == null) { + resourceAccessControlConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .ResourceAccessControlConfigOrBuilder>( + getResourceAccessControlConfig(), getParentForChildren(), isClean()); + resourceAccessControlConfig_ = null; + } + return resourceAccessControlConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig) + private static final com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig(); + } + + public static com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerProvidedConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfigurableBillingStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The currently effective Search QPM threshold in queries per
+     * minute. This is the threshold against which QPM usage is compared for
+     * overage calculations.
+     * 
+ * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveSearchQpmThreshold. + */ + long getEffectiveSearchQpmThreshold(); + + /** + * + * + *
+     * Optional. The currently effective Indexing Core threshold.
+     * This is the threshold against which Indexing Core usage is compared
+     * for overage calculations.
+     * 
+ * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveIndexingCoreThreshold. + */ + long getEffectiveIndexingCoreThreshold(); + + /** + * + * + *
+     * Optional. The start time of the currently active billing subscription.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+     * Optional. The start time of the currently active billing subscription.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+     * Optional. The start time of the currently active billing subscription.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The latest terminate effective time of search qpm and
+     * indexing core subscriptions.
+     * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + boolean hasTerminateTime(); + + /** + * + * + *
+     * Output only. The latest terminate effective time of search qpm and
+     * indexing core subscriptions.
+     * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + com.google.protobuf.Timestamp getTerminateTime(); + + /** + * + * + *
+     * Output only. The latest terminate effective time of search qpm and
+     * indexing core subscriptions.
+     * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The earliest next update time for the search QPM
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update QPM subscription threshold request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the searchQpmThresholdNextUpdateTime field is set. + */ + boolean hasSearchQpmThresholdNextUpdateTime(); + + /** + * + * + *
+     * Output only. The earliest next update time for the search QPM
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update QPM subscription threshold request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The searchQpmThresholdNextUpdateTime. + */ + com.google.protobuf.Timestamp getSearchQpmThresholdNextUpdateTime(); + + /** + * + * + *
+     * Output only. The earliest next update time for the search QPM
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update QPM subscription threshold request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSearchQpmThresholdNextUpdateTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The earliest next update time for the indexing core
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update indexing core subscription threshold
+     * request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexingCoreThresholdNextUpdateTime field is set. + */ + boolean hasIndexingCoreThresholdNextUpdateTime(); + + /** + * + * + *
+     * Output only. The earliest next update time for the indexing core
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update indexing core subscription threshold
+     * request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexingCoreThresholdNextUpdateTime. + */ + com.google.protobuf.Timestamp getIndexingCoreThresholdNextUpdateTime(); + + /** + * + * + *
+     * Output only. The earliest next update time for the indexing core
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update indexing core subscription threshold
+     * request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getIndexingCoreThresholdNextUpdateTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The type of update performed in this operation.
+     * This field is populated in the response of UpdateProject.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + int getUpdateTypeValue(); + + /** + * + * + *
+     * Output only. The type of update performed in this operation.
+     * This field is populated in the response of UpdateProject.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + getUpdateType(); + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + getAgentSearchTokenSubscriptionStatusesList(); + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getAgentSearchTokenSubscriptionStatuses(int index); + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAgentSearchTokenSubscriptionStatusesCount(); + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + getAgentSearchTokenSubscriptionStatusesOrBuilderList(); + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder + getAgentSearchTokenSubscriptionStatusesOrBuilder(int index); + } + + /** + * + * + *
+   * Represents the currently effective configurable billing parameters.
+   * These values are derived from the customer's subscription history stored
+   * internally and reflect the thresholds actively being used for billing
+   * purposes at the time of the GetProject call. This includes the start_time
+   * of the subscription and may differ from the values in
+   * `customer_provided_config` due to billing rules
+   * (e.g., scale-downs taking effect only at the start of a new month).
+   * We also include the update type to indicate the type of update performed on
+   * the configurable billing configuration in the UpdateProject operation.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus} + */ + public static final class ConfigurableBillingStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) + ConfigurableBillingStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConfigurableBillingStatus"); + } + + // Use ConfigurableBillingStatus.newBuilder() to construct. + private ConfigurableBillingStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConfigurableBillingStatus() { + updateType_ = 0; + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.class, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder.class); + } + + /** + * + * + *
+     * The type of update performed on the configurable billing configuration.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType} + */ + public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified update type.
+       * 
+ * + * UPDATE_TYPE_UNSPECIFIED = 0; + */ + UPDATE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Configurable billing was created/enabled.
+       * 
+ * + * CREATE = 1; + */ + CREATE(1), + /** + * + * + *
+       * Configurable billing was deleted/disabled.
+       * 
+ * + * DELETE = 2; + */ + DELETE(2), + /** + * + * + *
+       * Subscription was scaled up (thresholds increased).
+       * 
+ * + * SCALE_UP = 3; + */ + SCALE_UP(3), + /** + * + * + *
+       * Subscription was scaled down (thresholds decreased).
+       * 
+ * + * SCALE_DOWN = 4; + */ + SCALE_DOWN(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateType"); + } + + /** + * + * + *
+       * Unspecified update type.
+       * 
+ * + * UPDATE_TYPE_UNSPECIFIED = 0; + */ + public static final int UPDATE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Configurable billing was created/enabled.
+       * 
+ * + * CREATE = 1; + */ + public static final int CREATE_VALUE = 1; + + /** + * + * + *
+       * Configurable billing was deleted/disabled.
+       * 
+ * + * DELETE = 2; + */ + public static final int DELETE_VALUE = 2; + + /** + * + * + *
+       * Subscription was scaled up (thresholds increased).
+       * 
+ * + * SCALE_UP = 3; + */ + public static final int SCALE_UP_VALUE = 3; + + /** + * + * + *
+       * Subscription was scaled down (thresholds decreased).
+       * 
+ * + * SCALE_DOWN = 4; + */ + public static final int SCALE_DOWN_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UpdateType 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 UpdateType forNumber(int value) { + switch (value) { + case 0: + return UPDATE_TYPE_UNSPECIFIED; + case 1: + return CREATE; + case 2: + return DELETE; + case 3: + return SCALE_UP; + case 4: + return SCALE_DOWN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UpdateType findValueByNumber(int number) { + return UpdateType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UpdateType[] VALUES = values(); + + public static UpdateType 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 UpdateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType) + } + + public interface AgentSearchTokenSubscriptionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Output only. The Gemini model version this status corresponds to.
+       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+       * stable Gemini model version from the Gemini Enterprise Agent Platform
+       * model-versions registry; see
+       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+       * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + + /** + * + * + *
+       * Output only. The Gemini model version this status corresponds to.
+       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+       * stable Gemini model version from the Gemini Enterprise Agent Platform
+       * model-versions registry; see
+       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+       * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString getModelVersionBytes(); + + /** + * + * + *
+       * Output only. The currently effective TPM threshold. Reflects scale-up
+       * immediately and scale-down at the next billing cycle, matching
+       * `effective_search_qpm_threshold` semantics.
+       * 
+ * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTpmThreshold. + */ + long getEffectiveTpmThreshold(); + + /** + * + * + *
+       * Output only. The earliest next update time for the TPM subscription
+       * threshold for this (project, model_version). Populated only after a
+       * successful update.
+       * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tpmThresholdNextUpdateTime field is set. + */ + boolean hasTpmThresholdNextUpdateTime(); + + /** + * + * + *
+       * Output only. The earliest next update time for the TPM subscription
+       * threshold for this (project, model_version). Populated only after a
+       * successful update.
+       * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tpmThresholdNextUpdateTime. + */ + com.google.protobuf.Timestamp getTpmThresholdNextUpdateTime(); + + /** + * + * + *
+       * Output only. The earliest next update time for the TPM subscription
+       * threshold for this (project, model_version). Populated only after a
+       * successful update.
+       * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getTpmThresholdNextUpdateTimeOrBuilder(); + + /** + * + * + *
+       * Output only. When this (project, model_version) Agent Search TPM
+       * subscription was first activated. Set once on first activation of this
+       * model version and never moved by subsequent threshold updates; on
+       * termination + re-activation a new value is recorded. Does NOT move
+       * the whole-relationship `start_time` on the enclosing
+       * ConfigurableBillingStatus, which continues to represent the first
+       * activation of the overall customer-configurable-pricing
+       * relationship.
+       * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+       * Output only. When this (project, model_version) Agent Search TPM
+       * subscription was first activated. Set once on first activation of this
+       * model version and never moved by subsequent threshold updates; on
+       * termination + re-activation a new value is recorded. Does NOT move
+       * the whole-relationship `start_time` on the enclosing
+       * ConfigurableBillingStatus, which continues to represent the first
+       * activation of the overall customer-configurable-pricing
+       * relationship.
+       * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+       * Output only. When this (project, model_version) Agent Search TPM
+       * subscription was first activated. Set once on first activation of this
+       * model version and never moved by subsequent threshold updates; on
+       * termination + re-activation a new value is recorded. Does NOT move
+       * the whole-relationship `start_time` on the enclosing
+       * ConfigurableBillingStatus, which continues to represent the first
+       * activation of the overall customer-configurable-pricing
+       * relationship.
+       * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+       * Output only. If set, the scheduled effective time at which this
+       * (project, model_version) Agent Search TPM subscription will terminate.
+       * Populated when the customer removes this entry from
+       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+       * the whole-relationship `terminate_time` on the enclosing
+       * ConfigurableBillingStatus, which is populated only when the entire
+       * customer-configurable-pricing relationship is being torn down.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + boolean hasTerminateTime(); + + /** + * + * + *
+       * Output only. If set, the scheduled effective time at which this
+       * (project, model_version) Agent Search TPM subscription will terminate.
+       * Populated when the customer removes this entry from
+       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+       * the whole-relationship `terminate_time` on the enclosing
+       * ConfigurableBillingStatus, which is populated only when the entire
+       * customer-configurable-pricing relationship is being torn down.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + com.google.protobuf.Timestamp getTerminateTime(); + + /** + * + * + *
+       * Output only. If set, the scheduled effective time at which this
+       * (project, model_version) Agent Search TPM subscription will terminate.
+       * Populated when the customer removes this entry from
+       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+       * the whole-relationship `terminate_time` on the enclosing
+       * ConfigurableBillingStatus, which is populated only when the entire
+       * customer-configurable-pricing relationship is being torn down.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder(); + + /** + * + * + *
+       * Output only. The type of the most recent update to this (project,
+       * model_version) subscription, as performed by the most recent
+       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+       * model_version was not touched by the most recent UpdateProject (its
+       * `effective_tpm_threshold` reflects an earlier update). The
+       * whole-relationship `update_type` on the enclosing
+       * ConfigurableBillingStatus continues to summarize the direction of
+       * the most recent update across all surfaces in the project (QPM,
+       * IndexingCore, and Agent Search TPM together).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + int getUpdateTypeValue(); + + /** + * + * + *
+       * Output only. The type of the most recent update to this (project,
+       * model_version) subscription, as performed by the most recent
+       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+       * model_version was not touched by the most recent UpdateProject (its
+       * `effective_tpm_threshold` reflects an earlier update). The
+       * whole-relationship `update_type` on the enclosing
+       * ConfigurableBillingStatus continues to summarize the direction of
+       * the most recent update across all surfaces in the project (QPM,
+       * IndexingCore, and Agent Search TPM together).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + getUpdateType(); + } + + /** + * + * + *
+     * Per-model Agent Search TPM subscription status. One entry per active
+     * `core_subscription.agent_search_token_subscriptions[*]` entry in the
+     * customer-provided config; populated by UpdateProject and GetProject.
+     *
+     * The lifecycle scalars on this message (`start_time`, `terminate_time`,
+     * `update_type`, `tpm_threshold_next_update_time`) are per (project,
+     * model_version) — siblings of the whole-relationship `start_time` /
+     * `terminate_time` / `update_type` on the enclosing
+     * ConfigurableBillingStatus, but scoped to this specific Agent Search
+     * TPM subscription instead of to the overall customer-configurable-
+     * pricing relationship. This per-instance granularity is intentional:
+     * the underlying SubV3 storage is per-(project, model_version), so
+     * each model has its own activation, termination, and deferred-update
+     * clock; surfacing that on the response gives customers the granularity
+     * they need to manage per-model commitments independently. QPM /
+     * IndexingCore differ — their storage is one row per (project,
+     * location), so their lifecycle is represented only by the whole-
+     * relationship scalars on ConfigurableBillingStatus.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus} + */ + public static final class AgentSearchTokenSubscriptionStatus + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + AgentSearchTokenSubscriptionStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentSearchTokenSubscriptionStatus"); + } + + // Use AgentSearchTokenSubscriptionStatus.newBuilder() to construct. + private AgentSearchTokenSubscriptionStatus( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentSearchTokenSubscriptionStatus() { + modelVersion_ = ""; + updateType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.class, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder.class); + } + + private int bitField0_; + public static final int MODEL_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + + /** + * + * + *
+       * Output only. The Gemini model version this status corresponds to.
+       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+       * stable Gemini model version from the Gemini Enterprise Agent Platform
+       * model-versions registry; see
+       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+       * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } + } + + /** + * + * + *
+       * Output only. The Gemini model version this status corresponds to.
+       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+       * stable Gemini model version from the Gemini Enterprise Agent Platform
+       * model-versions registry; see
+       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+       * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECTIVE_TPM_THRESHOLD_FIELD_NUMBER = 2; + private long effectiveTpmThreshold_ = 0L; + + /** + * + * + *
+       * Output only. The currently effective TPM threshold. Reflects scale-up
+       * immediately and scale-down at the next billing cycle, matching
+       * `effective_search_qpm_threshold` semantics.
+       * 
+ * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTpmThreshold. + */ + @java.lang.Override + public long getEffectiveTpmThreshold() { + return effectiveTpmThreshold_; + } + + public static final int TPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp tpmThresholdNextUpdateTime_; + + /** + * + * + *
+       * Output only. The earliest next update time for the TPM subscription
+       * threshold for this (project, model_version). Populated only after a
+       * successful update.
+       * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tpmThresholdNextUpdateTime field is set. + */ + @java.lang.Override + public boolean hasTpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. The earliest next update time for the TPM subscription
+       * threshold for this (project, model_version). Populated only after a
+       * successful update.
+       * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tpmThresholdNextUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTpmThresholdNextUpdateTime() { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the TPM subscription
+       * threshold for this (project, model_version). Populated only after a
+       * successful update.
+       * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTpmThresholdNextUpdateTimeOrBuilder() { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+       * Output only. When this (project, model_version) Agent Search TPM
+       * subscription was first activated. Set once on first activation of this
+       * model version and never moved by subsequent threshold updates; on
+       * termination + re-activation a new value is recorded. Does NOT move
+       * the whole-relationship `start_time` on the enclosing
+       * ConfigurableBillingStatus, which continues to represent the first
+       * activation of the overall customer-configurable-pricing
+       * relationship.
+       * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Output only. When this (project, model_version) Agent Search TPM
+       * subscription was first activated. Set once on first activation of this
+       * model version and never moved by subsequent threshold updates; on
+       * termination + re-activation a new value is recorded. Does NOT move
+       * the whole-relationship `start_time` on the enclosing
+       * ConfigurableBillingStatus, which continues to represent the first
+       * activation of the overall customer-configurable-pricing
+       * relationship.
+       * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+       * Output only. When this (project, model_version) Agent Search TPM
+       * subscription was first activated. Set once on first activation of this
+       * model version and never moved by subsequent threshold updates; on
+       * termination + re-activation a new value is recorded. Does NOT move
+       * the whole-relationship `start_time` on the enclosing
+       * ConfigurableBillingStatus, which continues to represent the first
+       * activation of the overall customer-configurable-pricing
+       * relationship.
+       * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int TERMINATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp terminateTime_; + + /** + * + * + *
+       * Output only. If set, the scheduled effective time at which this
+       * (project, model_version) Agent Search TPM subscription will terminate.
+       * Populated when the customer removes this entry from
+       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+       * the whole-relationship `terminate_time` on the enclosing
+       * ConfigurableBillingStatus, which is populated only when the entire
+       * customer-configurable-pricing relationship is being torn down.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + @java.lang.Override + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Output only. If set, the scheduled effective time at which this
+       * (project, model_version) Agent Search TPM subscription will terminate.
+       * Populated when the customer removes this entry from
+       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+       * the whole-relationship `terminate_time` on the enclosing
+       * ConfigurableBillingStatus, which is populated only when the entire
+       * customer-configurable-pricing relationship is being torn down.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTerminateTime() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + /** + * + * + *
+       * Output only. If set, the scheduled effective time at which this
+       * (project, model_version) Agent Search TPM subscription will terminate.
+       * Populated when the customer removes this entry from
+       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+       * the whole-relationship `terminate_time` on the enclosing
+       * ConfigurableBillingStatus, which is populated only when the entire
+       * customer-configurable-pricing relationship is being torn down.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + public static final int UPDATE_TYPE_FIELD_NUMBER = 6; + private int updateType_ = 0; + + /** + * + * + *
+       * Output only. The type of the most recent update to this (project,
+       * model_version) subscription, as performed by the most recent
+       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+       * model_version was not touched by the most recent UpdateProject (its
+       * `effective_tpm_threshold` reflects an earlier update). The
+       * whole-relationship `update_type` on the enclosing
+       * ConfigurableBillingStatus continues to summarize the direction of
+       * the most recent update across all surfaces in the project (QPM,
+       * IndexingCore, and Agent Search TPM together).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
+       * Output only. The type of the most recent update to this (project,
+       * model_version) subscription, as performed by the most recent
+       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+       * model_version was not touched by the most recent UpdateProject (its
+       * `effective_tpm_threshold` reflects an earlier update). The
+       * whole-relationship `update_type` on the enclosing
+       * ConfigurableBillingStatus continues to summarize the direction of
+       * the most recent update across all surfaces in the project (QPM,
+       * IndexingCore, and Agent Search TPM together).
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType result = + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelVersion_); + } + if (effectiveTpmThreshold_ != 0L) { + output.writeInt64(2, effectiveTpmThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getTpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getTerminateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, updateType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelVersion_); + } + if (effectiveTpmThreshold_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, effectiveTpmThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getTpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTerminateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, updateType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + other = + (com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus) + obj; + + if (!getModelVersion().equals(other.getModelVersion())) return false; + if (getEffectiveTpmThreshold() != other.getEffectiveTpmThreshold()) return false; + if (hasTpmThresholdNextUpdateTime() != other.hasTpmThresholdNextUpdateTime()) return false; + if (hasTpmThresholdNextUpdateTime()) { + if (!getTpmThresholdNextUpdateTime().equals(other.getTpmThresholdNextUpdateTime())) + return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasTerminateTime() != other.hasTerminateTime()) return false; + if (hasTerminateTime()) { + if (!getTerminateTime().equals(other.getTerminateTime())) return false; + } + if (updateType_ != other.updateType_) 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) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (37 * hash) + EFFECTIVE_TPM_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEffectiveTpmThreshold()); + if (hasTpmThresholdNextUpdateTime()) { + hash = (37 * hash) + TPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getTpmThresholdNextUpdateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasTerminateTime()) { + hash = (37 * hash) + TERMINATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getTerminateTime().hashCode(); + } + hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + updateType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Per-model Agent Search TPM subscription status. One entry per active
+       * `core_subscription.agent_search_token_subscriptions[*]` entry in the
+       * customer-provided config; populated by UpdateProject and GetProject.
+       *
+       * The lifecycle scalars on this message (`start_time`, `terminate_time`,
+       * `update_type`, `tpm_threshold_next_update_time`) are per (project,
+       * model_version) — siblings of the whole-relationship `start_time` /
+       * `terminate_time` / `update_type` on the enclosing
+       * ConfigurableBillingStatus, but scoped to this specific Agent Search
+       * TPM subscription instead of to the overall customer-configurable-
+       * pricing relationship. This per-instance granularity is intentional:
+       * the underlying SubV3 storage is per-(project, model_version), so
+       * each model has its own activation, termination, and deferred-update
+       * clock; surfacing that on the response gives customers the granularity
+       * they need to manage per-model commitments independently. QPM /
+       * IndexingCore differ — their storage is one row per (project,
+       * location), so their lifecycle is represented only by the whole-
+       * relationship scalars on ConfigurableBillingStatus.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.class, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTpmThresholdNextUpdateTimeFieldBuilder(); + internalGetStartTimeFieldBuilder(); + internalGetTerminateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelVersion_ = ""; + effectiveTpmThreshold_ = 0L; + tpmThresholdNextUpdateTime_ = null; + if (tpmThresholdNextUpdateTimeBuilder_ != null) { + tpmThresholdNextUpdateTimeBuilder_.dispose(); + tpmThresholdNextUpdateTimeBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + updateType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + build() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + buildPartial() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + result = + new com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effectiveTpmThreshold_ = effectiveTpmThreshold_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tpmThresholdNextUpdateTime_ = + tpmThresholdNextUpdateTimeBuilder_ == null + ? tpmThresholdNextUpdateTime_ + : tpmThresholdNextUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.terminateTime_ = + terminateTimeBuilder_ == null ? terminateTime_ : terminateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateType_ = updateType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance()) return this; + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEffectiveTpmThreshold() != 0L) { + setEffectiveTpmThreshold(other.getEffectiveTpmThreshold()); + } + if (other.hasTpmThresholdNextUpdateTime()) { + mergeTpmThresholdNextUpdateTime(other.getTpmThresholdNextUpdateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasTerminateTime()) { + mergeTerminateTime(other.getTerminateTime()); + } + if (other.updateType_ != 0) { + setUpdateTypeValue(other.getUpdateTypeValue()); + } + 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: + { + modelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + effectiveTpmThreshold_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetTpmThresholdNextUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetTerminateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + updateType_ = 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 java.lang.Object modelVersion_ = ""; + + /** + * + * + *
+         * Output only. The Gemini model version this status corresponds to.
+         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+         * stable Gemini model version from the Gemini Enterprise Agent Platform
+         * model-versions registry; see
+         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+         * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Output only. The Gemini model version this status corresponds to.
+         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+         * stable Gemini model version from the Gemini Enterprise Agent Platform
+         * model-versions registry; see
+         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+         * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Output only. The Gemini model version this status corresponds to.
+         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+         * stable Gemini model version from the Gemini Enterprise Agent Platform
+         * model-versions registry; see
+         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+         * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The Gemini model version this status corresponds to.
+         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+         * stable Gemini model version from the Gemini Enterprise Agent Platform
+         * model-versions registry; see
+         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+         * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The Gemini model version this status corresponds to.
+         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
+         * stable Gemini model version from the Gemini Enterprise Agent Platform
+         * model-versions registry; see
+         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
+         * 
+ * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long effectiveTpmThreshold_; + + /** + * + * + *
+         * Output only. The currently effective TPM threshold. Reflects scale-up
+         * immediately and scale-down at the next billing cycle, matching
+         * `effective_search_qpm_threshold` semantics.
+         * 
+ * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTpmThreshold. + */ + @java.lang.Override + public long getEffectiveTpmThreshold() { + return effectiveTpmThreshold_; + } + + /** + * + * + *
+         * Output only. The currently effective TPM threshold. Reflects scale-up
+         * immediately and scale-down at the next billing cycle, matching
+         * `effective_search_qpm_threshold` semantics.
+         * 
+ * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveTpmThreshold to set. + * @return This builder for chaining. + */ + public Builder setEffectiveTpmThreshold(long value) { + + effectiveTpmThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The currently effective TPM threshold. Reflects scale-up
+         * immediately and scale-down at the next billing cycle, matching
+         * `effective_search_qpm_threshold` semantics.
+         * 
+ * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveTpmThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + effectiveTpmThreshold_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp tpmThresholdNextUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + tpmThresholdNextUpdateTimeBuilder_; + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tpmThresholdNextUpdateTime field is set. + */ + public boolean hasTpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tpmThresholdNextUpdateTime. + */ + public com.google.protobuf.Timestamp getTpmThresholdNextUpdateTime() { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } else { + return tpmThresholdNextUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tpmThresholdNextUpdateTime_ = value; + } else { + tpmThresholdNextUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTpmThresholdNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + tpmThresholdNextUpdateTime_ = builderForValue.build(); + } else { + tpmThresholdNextUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tpmThresholdNextUpdateTime_ != null + && tpmThresholdNextUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTpmThresholdNextUpdateTimeBuilder().mergeFrom(value); + } else { + tpmThresholdNextUpdateTime_ = value; + } + } else { + tpmThresholdNextUpdateTimeBuilder_.mergeFrom(value); + } + if (tpmThresholdNextUpdateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTpmThresholdNextUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + tpmThresholdNextUpdateTime_ = null; + if (tpmThresholdNextUpdateTimeBuilder_ != null) { + tpmThresholdNextUpdateTimeBuilder_.dispose(); + tpmThresholdNextUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getTpmThresholdNextUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetTpmThresholdNextUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTpmThresholdNextUpdateTimeOrBuilder() { + if (tpmThresholdNextUpdateTimeBuilder_ != null) { + return tpmThresholdNextUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } + } + + /** + * + * + *
+         * Output only. The earliest next update time for the TPM subscription
+         * threshold for this (project, model_version). Populated only after a
+         * successful update.
+         * 
+ * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTpmThresholdNextUpdateTimeFieldBuilder() { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + tpmThresholdNextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTpmThresholdNextUpdateTime(), getParentForChildren(), isClean()); + tpmThresholdNextUpdateTime_ = null; + } + return tpmThresholdNextUpdateTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
+         * Output only. When this (project, model_version) Agent Search TPM
+         * subscription was first activated. Set once on first activation of this
+         * model version and never moved by subsequent threshold updates; on
+         * termination + re-activation a new value is recorded. Does NOT move
+         * the whole-relationship `start_time` on the enclosing
+         * ConfigurableBillingStatus, which continues to represent the first
+         * activation of the overall customer-configurable-pricing
+         * relationship.
+         * 
+ * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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 terminateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + terminateTimeBuilder_; + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + public com.google.protobuf.Timestamp getTerminateTime() { + if (terminateTimeBuilder_ == null) { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } else { + return terminateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminateTime_ = value; + } else { + terminateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (terminateTimeBuilder_ == null) { + terminateTime_ = builderForValue.build(); + } else { + terminateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && terminateTime_ != null + && terminateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTerminateTimeBuilder().mergeFrom(value); + } else { + terminateTime_ = value; + } + } else { + terminateTimeBuilder_.mergeFrom(value); + } + if (terminateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerminateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getTerminateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTerminateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + if (terminateTimeBuilder_ != null) { + return terminateTimeBuilder_.getMessageOrBuilder(); + } else { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + } + + /** + * + * + *
+         * Output only. If set, the scheduled effective time at which this
+         * (project, model_version) Agent Search TPM subscription will terminate.
+         * Populated when the customer removes this entry from
+         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
+         * the whole-relationship `terminate_time` on the enclosing
+         * ConfigurableBillingStatus, which is populated only when the entire
+         * customer-configurable-pricing relationship is being torn down.
+         * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTerminateTimeFieldBuilder() { + if (terminateTimeBuilder_ == null) { + terminateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTerminateTime(), getParentForChildren(), isClean()); + terminateTime_ = null; + } + return terminateTimeBuilder_; + } + + private int updateType_ = 0; + + /** + * + * + *
+         * Output only. The type of the most recent update to this (project,
+         * model_version) subscription, as performed by the most recent
+         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+         * model_version was not touched by the most recent UpdateProject (its
+         * `effective_tpm_threshold` reflects an earlier update). The
+         * whole-relationship `update_type` on the enclosing
+         * ConfigurableBillingStatus continues to summarize the direction of
+         * the most recent update across all surfaces in the project (QPM,
+         * IndexingCore, and Agent Search TPM together).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
+         * Output only. The type of the most recent update to this (project,
+         * model_version) subscription, as performed by the most recent
+         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+         * model_version was not touched by the most recent UpdateProject (its
+         * `effective_tpm_threshold` reflects an earlier update). The
+         * whole-relationship `update_type` on the enclosing
+         * ConfigurableBillingStatus continues to summarize the direction of
+         * the most recent update across all surfaces in the project (QPM,
+         * IndexingCore, and Agent Search TPM together).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateTypeValue(int value) { + updateType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The type of the most recent update to this (project,
+         * model_version) subscription, as performed by the most recent
+         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+         * model_version was not touched by the most recent UpdateProject (its
+         * `effective_tpm_threshold` reflects an earlier update). The
+         * whole-relationship `update_type` on the enclosing
+         * ConfigurableBillingStatus continues to summarize the direction of
+         * the most recent update across all surfaces in the project (QPM,
+         * IndexingCore, and Agent Search TPM together).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType result = + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Output only. The type of the most recent update to this (project,
+         * model_version) subscription, as performed by the most recent
+         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+         * model_version was not touched by the most recent UpdateProject (its
+         * `effective_tpm_threshold` reflects an earlier update). The
+         * whole-relationship `update_type` on the enclosing
+         * ConfigurableBillingStatus continues to summarize the direction of
+         * the most recent update across all surfaces in the project (QPM,
+         * IndexingCore, and Agent Search TPM together).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateType( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + updateType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The type of the most recent update to this (project,
+         * model_version) subscription, as performed by the most recent
+         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
+         * model_version was not touched by the most recent UpdateProject (its
+         * `effective_tpm_threshold` reflects an earlier update). The
+         * whole-relationship `update_type` on the enclosing
+         * ConfigurableBillingStatus continues to summarize the direction of
+         * the most recent update across all surfaces in the project (QPM,
+         * IndexingCore, and Agent Search TPM together).
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateType() { + bitField0_ = (bitField0_ & ~0x00000020); + updateType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + private static final com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus(); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentSearchTokenSubscriptionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EFFECTIVE_SEARCH_QPM_THRESHOLD_FIELD_NUMBER = 1; + private long effectiveSearchQpmThreshold_ = 0L; + + /** + * + * + *
+     * Optional. The currently effective Search QPM threshold in queries per
+     * minute. This is the threshold against which QPM usage is compared for
+     * overage calculations.
+     * 
+ * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveSearchQpmThreshold. + */ + @java.lang.Override + public long getEffectiveSearchQpmThreshold() { + return effectiveSearchQpmThreshold_; + } + + public static final int EFFECTIVE_INDEXING_CORE_THRESHOLD_FIELD_NUMBER = 2; + private long effectiveIndexingCoreThreshold_ = 0L; + + /** + * + * + *
+     * Optional. The currently effective Indexing Core threshold.
+     * This is the threshold against which Indexing Core usage is compared
+     * for overage calculations.
+     * 
+ * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveIndexingCoreThreshold. + */ + @java.lang.Override + public long getEffectiveIndexingCoreThreshold() { + return effectiveIndexingCoreThreshold_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+     * Optional. The start time of the currently active billing subscription.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The start time of the currently active billing subscription.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+     * Optional. The start time of the currently active billing subscription.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int TERMINATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp terminateTime_; + + /** + * + * + *
+     * Output only. The latest terminate effective time of search qpm and
+     * indexing core subscriptions.
+     * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + @java.lang.Override + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The latest terminate effective time of search qpm and
+     * indexing core subscriptions.
+     * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTerminateTime() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + /** + * + * + *
+     * Output only. The latest terminate effective time of search qpm and
+     * indexing core subscriptions.
+     * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + public static final int SEARCH_QPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp searchQpmThresholdNextUpdateTime_; + + /** + * + * + *
+     * Output only. The earliest next update time for the search QPM
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update QPM subscription threshold request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the searchQpmThresholdNextUpdateTime field is set. + */ + @java.lang.Override + public boolean hasSearchQpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The earliest next update time for the search QPM
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update QPM subscription threshold request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The searchQpmThresholdNextUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSearchQpmThresholdNextUpdateTime() { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } + + /** + * + * + *
+     * Output only. The earliest next update time for the search QPM
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update QPM subscription threshold request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSearchQpmThresholdNextUpdateTimeOrBuilder() { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } + + public static final int INDEXING_CORE_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp indexingCoreThresholdNextUpdateTime_; + + /** + * + * + *
+     * Output only. The earliest next update time for the indexing core
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update indexing core subscription threshold
+     * request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexingCoreThresholdNextUpdateTime field is set. + */ + @java.lang.Override + public boolean hasIndexingCoreThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The earliest next update time for the indexing core
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update indexing core subscription threshold
+     * request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexingCoreThresholdNextUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getIndexingCoreThresholdNextUpdateTime() { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } + + /** + * + * + *
+     * Output only. The earliest next update time for the indexing core
+     * subscription threshold. This is based on the next_update_time returned by
+     * the underlying Cloud Billing Subscription V3 API. This field is populated
+     * only if an update indexing core subscription threshold
+     * request is succeeded.
+     * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder + getIndexingCoreThresholdNextUpdateTimeOrBuilder() { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } + + public static final int UPDATE_TYPE_FIELD_NUMBER = 7; + private int updateType_ = 0; + + /** + * + * + *
+     * Output only. The type of update performed in this operation.
+     * This field is populated in the response of UpdateProject.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
+     * Output only. The type of update performed in this operation.
+     * This field is populated in the response of UpdateProject.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType result = + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + public static final int AGENT_SEARCH_TOKEN_SUBSCRIPTION_STATUSES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + agentSearchTokenSubscriptionStatuses_; + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + getAgentSearchTokenSubscriptionStatusesList() { + return agentSearchTokenSubscriptionStatuses_; + } + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + getAgentSearchTokenSubscriptionStatusesOrBuilderList() { + return agentSearchTokenSubscriptionStatuses_; + } + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAgentSearchTokenSubscriptionStatusesCount() { + return agentSearchTokenSubscriptionStatuses_.size(); + } + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getAgentSearchTokenSubscriptionStatuses(int index) { + return agentSearchTokenSubscriptionStatuses_.get(index); + } + + /** + * + * + *
+     * Output only. Per-model Agent Search TPM subscription status.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder + getAgentSearchTokenSubscriptionStatusesOrBuilder(int index) { + return agentSearchTokenSubscriptionStatuses_.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 (effectiveSearchQpmThreshold_ != 0L) { + output.writeInt64(1, effectiveSearchQpmThreshold_); + } + if (effectiveIndexingCoreThreshold_ != 0L) { + output.writeInt64(2, effectiveIndexingCoreThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getTerminateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getSearchQpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getIndexingCoreThresholdNextUpdateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, updateType_); + } + for (int i = 0; i < agentSearchTokenSubscriptionStatuses_.size(); i++) { + output.writeMessage(8, agentSearchTokenSubscriptionStatuses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (effectiveSearchQpmThreshold_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(1, effectiveSearchQpmThreshold_); + } + if (effectiveIndexingCoreThreshold_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, effectiveIndexingCoreThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTerminateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getSearchQpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getIndexingCoreThresholdNextUpdateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, updateType_); + } + for (int i = 0; i < agentSearchTokenSubscriptionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, agentSearchTokenSubscriptionStatuses_.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.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus other = + (com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) obj; + + if (getEffectiveSearchQpmThreshold() != other.getEffectiveSearchQpmThreshold()) return false; + if (getEffectiveIndexingCoreThreshold() != other.getEffectiveIndexingCoreThreshold()) + return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasTerminateTime() != other.hasTerminateTime()) return false; + if (hasTerminateTime()) { + if (!getTerminateTime().equals(other.getTerminateTime())) return false; + } + if (hasSearchQpmThresholdNextUpdateTime() != other.hasSearchQpmThresholdNextUpdateTime()) + return false; + if (hasSearchQpmThresholdNextUpdateTime()) { + if (!getSearchQpmThresholdNextUpdateTime() + .equals(other.getSearchQpmThresholdNextUpdateTime())) return false; + } + if (hasIndexingCoreThresholdNextUpdateTime() + != other.hasIndexingCoreThresholdNextUpdateTime()) return false; + if (hasIndexingCoreThresholdNextUpdateTime()) { + if (!getIndexingCoreThresholdNextUpdateTime() + .equals(other.getIndexingCoreThresholdNextUpdateTime())) return false; + } + if (updateType_ != other.updateType_) return false; + if (!getAgentSearchTokenSubscriptionStatusesList() + .equals(other.getAgentSearchTokenSubscriptionStatusesList())) 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) + EFFECTIVE_SEARCH_QPM_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEffectiveSearchQpmThreshold()); + hash = (37 * hash) + EFFECTIVE_INDEXING_CORE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashLong(getEffectiveIndexingCoreThreshold()); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasTerminateTime()) { + hash = (37 * hash) + TERMINATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getTerminateTime().hashCode(); + } + if (hasSearchQpmThresholdNextUpdateTime()) { + hash = (37 * hash) + SEARCH_QPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSearchQpmThresholdNextUpdateTime().hashCode(); + } + if (hasIndexingCoreThresholdNextUpdateTime()) { + hash = (37 * hash) + INDEXING_CORE_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getIndexingCoreThresholdNextUpdateTime().hashCode(); + } + hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + updateType_; + if (getAgentSearchTokenSubscriptionStatusesCount() > 0) { + hash = (37 * hash) + AGENT_SEARCH_TOKEN_SUBSCRIPTION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAgentSearchTokenSubscriptionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents the currently effective configurable billing parameters.
+     * These values are derived from the customer's subscription history stored
+     * internally and reflect the thresholds actively being used for billing
+     * purposes at the time of the GetProject call. This includes the start_time
+     * of the subscription and may differ from the values in
+     * `customer_provided_config` due to billing rules
+     * (e.g., scale-downs taking effect only at the start of a new month).
+     * We also include the update type to indicate the type of update performed on
+     * the configurable billing configuration in the UpdateProject operation.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.class, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetTerminateTimeFieldBuilder(); + internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder(); + internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder(); + internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + effectiveSearchQpmThreshold_ = 0L; + effectiveIndexingCoreThreshold_ = 0L; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + searchQpmThresholdNextUpdateTime_ = null; + if (searchQpmThresholdNextUpdateTimeBuilder_ != null) { + searchQpmThresholdNextUpdateTimeBuilder_.dispose(); + searchQpmThresholdNextUpdateTimeBuilder_ = null; + } + indexingCoreThresholdNextUpdateTime_ = null; + if (indexingCoreThresholdNextUpdateTimeBuilder_ != null) { + indexingCoreThresholdNextUpdateTimeBuilder_.dispose(); + indexingCoreThresholdNextUpdateTimeBuilder_ = null; + } + updateType_ = 0; + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + } else { + agentSearchTokenSubscriptionStatuses_ = null; + agentSearchTokenSubscriptionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus build() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus buildPartial() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus result = + new com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus result) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + agentSearchTokenSubscriptionStatuses_ = + java.util.Collections.unmodifiableList(agentSearchTokenSubscriptionStatuses_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.agentSearchTokenSubscriptionStatuses_ = agentSearchTokenSubscriptionStatuses_; + } else { + result.agentSearchTokenSubscriptionStatuses_ = + agentSearchTokenSubscriptionStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.effectiveSearchQpmThreshold_ = effectiveSearchQpmThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effectiveIndexingCoreThreshold_ = effectiveIndexingCoreThreshold_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.terminateTime_ = + terminateTimeBuilder_ == null ? terminateTime_ : terminateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.searchQpmThresholdNextUpdateTime_ = + searchQpmThresholdNextUpdateTimeBuilder_ == null + ? searchQpmThresholdNextUpdateTime_ + : searchQpmThresholdNextUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.indexingCoreThresholdNextUpdateTime_ = + indexingCoreThresholdNextUpdateTimeBuilder_ == null + ? indexingCoreThresholdNextUpdateTime_ + : indexingCoreThresholdNextUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateType_ = updateType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus other) { + if (other + == com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .getDefaultInstance()) return this; + if (other.getEffectiveSearchQpmThreshold() != 0L) { + setEffectiveSearchQpmThreshold(other.getEffectiveSearchQpmThreshold()); + } + if (other.getEffectiveIndexingCoreThreshold() != 0L) { + setEffectiveIndexingCoreThreshold(other.getEffectiveIndexingCoreThreshold()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasTerminateTime()) { + mergeTerminateTime(other.getTerminateTime()); + } + if (other.hasSearchQpmThresholdNextUpdateTime()) { + mergeSearchQpmThresholdNextUpdateTime(other.getSearchQpmThresholdNextUpdateTime()); + } + if (other.hasIndexingCoreThresholdNextUpdateTime()) { + mergeIndexingCoreThresholdNextUpdateTime(other.getIndexingCoreThresholdNextUpdateTime()); + } + if (other.updateType_ != 0) { + setUpdateTypeValue(other.getUpdateTypeValue()); + } + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (!other.agentSearchTokenSubscriptionStatuses_.isEmpty()) { + if (agentSearchTokenSubscriptionStatuses_.isEmpty()) { + agentSearchTokenSubscriptionStatuses_ = other.agentSearchTokenSubscriptionStatuses_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.addAll( + other.agentSearchTokenSubscriptionStatuses_); + } + onChanged(); + } + } else { + if (!other.agentSearchTokenSubscriptionStatuses_.isEmpty()) { + if (agentSearchTokenSubscriptionStatusesBuilder_.isEmpty()) { + agentSearchTokenSubscriptionStatusesBuilder_.dispose(); + agentSearchTokenSubscriptionStatusesBuilder_ = null; + agentSearchTokenSubscriptionStatuses_ = other.agentSearchTokenSubscriptionStatuses_; + bitField0_ = (bitField0_ & ~0x00000080); + agentSearchTokenSubscriptionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() + : null; + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addAllMessages( + other.agentSearchTokenSubscriptionStatuses_); + } + } + } + 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: + { + effectiveSearchQpmThreshold_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + effectiveIndexingCoreThreshold_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetTerminateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + updateType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.parser(), + extensionRegistry); + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(m); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.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 effectiveSearchQpmThreshold_; + + /** + * + * + *
+       * Optional. The currently effective Search QPM threshold in queries per
+       * minute. This is the threshold against which QPM usage is compared for
+       * overage calculations.
+       * 
+ * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveSearchQpmThreshold. + */ + @java.lang.Override + public long getEffectiveSearchQpmThreshold() { + return effectiveSearchQpmThreshold_; + } + + /** + * + * + *
+       * Optional. The currently effective Search QPM threshold in queries per
+       * minute. This is the threshold against which QPM usage is compared for
+       * overage calculations.
+       * 
+ * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The effectiveSearchQpmThreshold to set. + * @return This builder for chaining. + */ + public Builder setEffectiveSearchQpmThreshold(long value) { + + effectiveSearchQpmThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The currently effective Search QPM threshold in queries per
+       * minute. This is the threshold against which QPM usage is compared for
+       * overage calculations.
+       * 
+ * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveSearchQpmThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + effectiveSearchQpmThreshold_ = 0L; + onChanged(); + return this; + } + + private long effectiveIndexingCoreThreshold_; + + /** + * + * + *
+       * Optional. The currently effective Indexing Core threshold.
+       * This is the threshold against which Indexing Core usage is compared
+       * for overage calculations.
+       * 
+ * + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveIndexingCoreThreshold. + */ + @java.lang.Override + public long getEffectiveIndexingCoreThreshold() { + return effectiveIndexingCoreThreshold_; + } + + /** + * + * + *
+       * Optional. The currently effective Indexing Core threshold.
+       * This is the threshold against which Indexing Core usage is compared
+       * for overage calculations.
+       * 
+ * + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The effectiveIndexingCoreThreshold to set. + * @return This builder for chaining. + */ + public Builder setEffectiveIndexingCoreThreshold(long value) { + + effectiveIndexingCoreThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The currently effective Indexing Core threshold.
+       * This is the threshold against which Indexing Core usage is compared
+       * for overage calculations.
+       * 
+ * + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveIndexingCoreThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + effectiveIndexingCoreThreshold_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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(); + } + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
+       * Optional. The start time of the currently active billing subscription.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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 terminateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + terminateTimeBuilder_; + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + public com.google.protobuf.Timestamp getTerminateTime() { + if (terminateTimeBuilder_ == null) { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } else { + return terminateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminateTime_ = value; + } else { + terminateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (terminateTimeBuilder_ == null) { + terminateTime_ = builderForValue.build(); + } else { + terminateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && terminateTime_ != null + && terminateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTerminateTimeBuilder().mergeFrom(value); + } else { + terminateTime_ = value; + } + } else { + terminateTimeBuilder_.mergeFrom(value); + } + if (terminateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerminateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getTerminateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTerminateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + if (terminateTimeBuilder_ != null) { + return terminateTimeBuilder_.getMessageOrBuilder(); + } else { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + } + + /** + * + * + *
+       * Output only. The latest terminate effective time of search qpm and
+       * indexing core subscriptions.
+       * 
+ * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTerminateTimeFieldBuilder() { + if (terminateTimeBuilder_ == null) { + terminateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTerminateTime(), getParentForChildren(), isClean()); + terminateTime_ = null; + } + return terminateTimeBuilder_; + } + + private com.google.protobuf.Timestamp searchQpmThresholdNextUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + searchQpmThresholdNextUpdateTimeBuilder_; + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the searchQpmThresholdNextUpdateTime field is set. + */ + public boolean hasSearchQpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The searchQpmThresholdNextUpdateTime. + */ + public com.google.protobuf.Timestamp getSearchQpmThresholdNextUpdateTime() { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } else { + return searchQpmThresholdNextUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSearchQpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchQpmThresholdNextUpdateTime_ = value; + } else { + searchQpmThresholdNextUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSearchQpmThresholdNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + searchQpmThresholdNextUpdateTime_ = builderForValue.build(); + } else { + searchQpmThresholdNextUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSearchQpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && searchQpmThresholdNextUpdateTime_ != null + && searchQpmThresholdNextUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSearchQpmThresholdNextUpdateTimeBuilder().mergeFrom(value); + } else { + searchQpmThresholdNextUpdateTime_ = value; + } + } else { + searchQpmThresholdNextUpdateTimeBuilder_.mergeFrom(value); + } + if (searchQpmThresholdNextUpdateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSearchQpmThresholdNextUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + searchQpmThresholdNextUpdateTime_ = null; + if (searchQpmThresholdNextUpdateTimeBuilder_ != null) { + searchQpmThresholdNextUpdateTimeBuilder_.dispose(); + searchQpmThresholdNextUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSearchQpmThresholdNextUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSearchQpmThresholdNextUpdateTimeOrBuilder() { + if (searchQpmThresholdNextUpdateTimeBuilder_ != null) { + return searchQpmThresholdNextUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } + } + + /** + * + * + *
+       * Output only. The earliest next update time for the search QPM
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update QPM subscription threshold request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder() { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + searchQpmThresholdNextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSearchQpmThresholdNextUpdateTime(), getParentForChildren(), isClean()); + searchQpmThresholdNextUpdateTime_ = null; + } + return searchQpmThresholdNextUpdateTimeBuilder_; + } + + private com.google.protobuf.Timestamp indexingCoreThresholdNextUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexingCoreThresholdNextUpdateTimeBuilder_; + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexingCoreThresholdNextUpdateTime field is set. + */ + public boolean hasIndexingCoreThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexingCoreThresholdNextUpdateTime. + */ + public com.google.protobuf.Timestamp getIndexingCoreThresholdNextUpdateTime() { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } else { + return indexingCoreThresholdNextUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexingCoreThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexingCoreThresholdNextUpdateTime_ = value; + } else { + indexingCoreThresholdNextUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexingCoreThresholdNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + indexingCoreThresholdNextUpdateTime_ = builderForValue.build(); + } else { + indexingCoreThresholdNextUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIndexingCoreThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && indexingCoreThresholdNextUpdateTime_ != null + && indexingCoreThresholdNextUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getIndexingCoreThresholdNextUpdateTimeBuilder().mergeFrom(value); + } else { + indexingCoreThresholdNextUpdateTime_ = value; + } + } else { + indexingCoreThresholdNextUpdateTimeBuilder_.mergeFrom(value); + } + if (indexingCoreThresholdNextUpdateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIndexingCoreThresholdNextUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + indexingCoreThresholdNextUpdateTime_ = null; + if (indexingCoreThresholdNextUpdateTimeBuilder_ != null) { + indexingCoreThresholdNextUpdateTimeBuilder_.dispose(); + indexingCoreThresholdNextUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getIndexingCoreThresholdNextUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder + getIndexingCoreThresholdNextUpdateTimeOrBuilder() { + if (indexingCoreThresholdNextUpdateTimeBuilder_ != null) { + return indexingCoreThresholdNextUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } + } + + /** + * + * + *
+       * Output only. The earliest next update time for the indexing core
+       * subscription threshold. This is based on the next_update_time returned by
+       * the underlying Cloud Billing Subscription V3 API. This field is populated
+       * only if an update indexing core subscription threshold
+       * request is succeeded.
+       * 
+ * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder() { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + indexingCoreThresholdNextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexingCoreThresholdNextUpdateTime(), getParentForChildren(), isClean()); + indexingCoreThresholdNextUpdateTime_ = null; + } + return indexingCoreThresholdNextUpdateTimeBuilder_; + } + + private int updateType_ = 0; + + /** + * + * + *
+       * Output only. The type of update performed in this operation.
+       * This field is populated in the response of UpdateProject.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
+       * Output only. The type of update performed in this operation.
+       * This field is populated in the response of UpdateProject.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateTypeValue(int value) { + updateType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of update performed in this operation.
+       * This field is populated in the response of UpdateProject.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType result = + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The type of update performed in this operation.
+       * This field is populated in the response of UpdateProject.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateType( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + updateType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of update performed in this operation.
+       * This field is populated in the response of UpdateProject.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateType() { + bitField0_ = (bitField0_ & ~0x00000040); + updateType_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAgentSearchTokenSubscriptionStatusesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + agentSearchTokenSubscriptionStatuses_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus>(agentSearchTokenSubscriptionStatuses_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + agentSearchTokenSubscriptionStatusesBuilder_; + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + getAgentSearchTokenSubscriptionStatusesList() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(agentSearchTokenSubscriptionStatuses_); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAgentSearchTokenSubscriptionStatusesCount() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return agentSearchTokenSubscriptionStatuses_.size(); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getAgentSearchTokenSubscriptionStatuses(int index) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return agentSearchTokenSubscriptionStatuses_.get(index); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + value) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.set(index, value); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + builderForValue) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + value) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(value); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + value) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(index, value); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + builderForValue) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + builderForValue) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAgentSearchTokenSubscriptionStatuses( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + values) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, agentSearchTokenSubscriptionStatuses_); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAgentSearchTokenSubscriptionStatuses() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAgentSearchTokenSubscriptionStatuses(int index) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.remove(index); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + getAgentSearchTokenSubscriptionStatusesBuilder(int index) { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder + getAgentSearchTokenSubscriptionStatusesOrBuilder(int index) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return agentSearchTokenSubscriptionStatuses_.get(index); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + getAgentSearchTokenSubscriptionStatusesOrBuilderList() { + if (agentSearchTokenSubscriptionStatusesBuilder_ != null) { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agentSearchTokenSubscriptionStatuses_); + } + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + addAgentSearchTokenSubscriptionStatusesBuilder() { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance()); + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + addAgentSearchTokenSubscriptionStatusesBuilder(int index) { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance()); + } + + /** + * + * + *
+       * Output only. Per-model Agent Search TPM subscription status.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder> + getAgentSearchTokenSubscriptionStatusesBuilderList() { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + agentSearchTokenSubscriptionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder>( + agentSearchTokenSubscriptionStatuses_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + agentSearchTokenSubscriptionStatuses_ = null; + } + return agentSearchTokenSubscriptionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus) + private static final com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus(); + } + + public static com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigurableBillingStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Full resource name of the project, for example
+   * `projects/{project}`.
+   * Note that when making requests, project number and project id are both
+   * acceptable, but the server will always respond in project number.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Full resource name of the project, for example
+   * `projects/{project}`.
+   * Note that when making requests, project number and project id are both
+   * acceptable, but the server will always respond in project number.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when this project is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when this project is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when this project is created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int PROVISION_COMPLETION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp provisionCompletionTime_; + + /** + * + * + *
+   * Output only. The timestamp when this project is successfully provisioned.
+   * Empty value means this project is still provisioning and is not ready for
+   * use.
+   * 
+ * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionCompletionTime field is set. + */ + @java.lang.Override + public boolean hasProvisionCompletionTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when this project is successfully provisioned.
+   * Empty value means this project is still provisioning and is not ready for
+   * use.
+   * 
+ * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionCompletionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getProvisionCompletionTime() { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when this project is successfully provisioned.
+   * Empty value means this project is still provisioning and is not ready for
+   * use.
+   * 
+ * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; + } + + public static final int SERVICE_TERMS_MAP_FIELD_NUMBER = 4; + + private static final class ServiceTermsMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + serviceTermsMap_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + internalGetServiceTermsMap() { + if (serviceTermsMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ServiceTermsMapDefaultEntryHolder.defaultEntry); + } + return serviceTermsMap_; + } + + public int getServiceTermsMapCount() { + return internalGetServiceTermsMap().getMap().size(); + } + + /** + * + * + *
+   * Output only. A map of terms of services. The key is the `id` of
+   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsServiceTermsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetServiceTermsMap().getMap().containsKey(key); + } + + /** Use {@link #getServiceTermsMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getServiceTermsMap() { + return getServiceTermsMapMap(); + } + + /** + * + * + *
+   * Output only. A map of terms of services. The key is the `id` of
+   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map + getServiceTermsMapMap() { + return internalGetServiceTermsMap().getMap(); + } + + /** + * + * + *
+   * Output only. A map of terms of services. The key is the `id` of
+   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Project.ServiceTerms + getServiceTermsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Project.ServiceTerms defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetServiceTermsMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. A map of terms of services. The key is the `id` of
+   * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+   * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ServiceTerms getServiceTermsMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetServiceTermsMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CUSTOMER_PROVIDED_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + customerProvidedConfig_; + + /** + * + * + *
+   * Optional. Customer provided configurations.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + @java.lang.Override + public boolean hasCustomerProvidedConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Customer provided configurations.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerProvidedConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + getCustomerProvidedConfig() { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.getDefaultInstance() + : customerProvidedConfig_; + } + + /** + * + * + *
+   * Optional. Customer provided configurations.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder() { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.getDefaultInstance() + : customerProvidedConfig_; + } + + public static final int CONFIGURABLE_BILLING_STATUS_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + configurableBillingStatus_; + + /** + * + * + *
+   * Output only. The current status of the project's configurable billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingStatus field is set. + */ + @java.lang.Override + public boolean hasConfigurableBillingStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The current status of the project's configurable billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingStatus. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + getConfigurableBillingStatus() { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.getDefaultInstance() + : configurableBillingStatus_; + } + + /** + * + * + *
+   * Output only. The current status of the project's configurable billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder + getConfigurableBillingStatusOrBuilder() { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.getDefaultInstance() + : configurableBillingStatus_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getProvisionCompletionTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetServiceTermsMap(), ServiceTermsMapDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getCustomerProvidedConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getConfigurableBillingStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProvisionCompletionTime()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + entry : internalGetServiceTermsMap().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + serviceTermsMap__ = + ServiceTermsMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, serviceTermsMap__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCustomerProvidedConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getConfigurableBillingStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Project)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Project other = + (com.google.cloud.discoveryengine.v1.Project) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasProvisionCompletionTime() != other.hasProvisionCompletionTime()) return false; + if (hasProvisionCompletionTime()) { + if (!getProvisionCompletionTime().equals(other.getProvisionCompletionTime())) return false; + } + if (!internalGetServiceTermsMap().equals(other.internalGetServiceTermsMap())) return false; + if (hasCustomerProvidedConfig() != other.hasCustomerProvidedConfig()) return false; + if (hasCustomerProvidedConfig()) { + if (!getCustomerProvidedConfig().equals(other.getCustomerProvidedConfig())) return false; + } + if (hasConfigurableBillingStatus() != other.hasConfigurableBillingStatus()) return false; + if (hasConfigurableBillingStatus()) { + if (!getConfigurableBillingStatus().equals(other.getConfigurableBillingStatus())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasProvisionCompletionTime()) { + hash = (37 * hash) + PROVISION_COMPLETION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getProvisionCompletionTime().hashCode(); + } + if (!internalGetServiceTermsMap().getMap().isEmpty()) { + hash = (37 * hash) + SERVICE_TERMS_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetServiceTermsMap().hashCode(); + } + if (hasCustomerProvidedConfig()) { + hash = (37 * hash) + CUSTOMER_PROVIDED_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomerProvidedConfig().hashCode(); + } + if (hasConfigurableBillingStatus()) { + hash = (37 * hash) + CONFIGURABLE_BILLING_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurableBillingStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Project parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Project prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata and configurations for a Google Cloud project in the service.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Project} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Project) + com.google.cloud.discoveryengine.v1.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetServiceTermsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableServiceTermsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Project.class, + com.google.cloud.discoveryengine.v1.Project.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetProvisionCompletionTimeFieldBuilder(); + internalGetCustomerProvidedConfigFieldBuilder(); + internalGetConfigurableBillingStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + provisionCompletionTime_ = null; + if (provisionCompletionTimeBuilder_ != null) { + provisionCompletionTimeBuilder_.dispose(); + provisionCompletionTimeBuilder_ = null; + } + internalGetMutableServiceTermsMap().clear(); + customerProvidedConfig_ = null; + if (customerProvidedConfigBuilder_ != null) { + customerProvidedConfigBuilder_.dispose(); + customerProvidedConfigBuilder_ = null; + } + configurableBillingStatus_ = null; + if (configurableBillingStatusBuilder_ != null) { + configurableBillingStatusBuilder_.dispose(); + configurableBillingStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectProto + .internal_static_google_cloud_discoveryengine_v1_Project_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Project.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project build() { + com.google.cloud.discoveryengine.v1.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project buildPartial() { + com.google.cloud.discoveryengine.v1.Project result = + new com.google.cloud.discoveryengine.v1.Project(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Project result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.provisionCompletionTime_ = + provisionCompletionTimeBuilder_ == null + ? provisionCompletionTime_ + : provisionCompletionTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceTermsMap_ = + internalGetServiceTermsMap().build(ServiceTermsMapDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customerProvidedConfig_ = + customerProvidedConfigBuilder_ == null + ? customerProvidedConfig_ + : customerProvidedConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.configurableBillingStatus_ = + configurableBillingStatusBuilder_ == null + ? configurableBillingStatus_ + : configurableBillingStatusBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Project) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Project) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Project other) { + if (other == com.google.cloud.discoveryengine.v1.Project.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasProvisionCompletionTime()) { + mergeProvisionCompletionTime(other.getProvisionCompletionTime()); + } + internalGetMutableServiceTermsMap().mergeFrom(other.internalGetServiceTermsMap()); + bitField0_ |= 0x00000008; + if (other.hasCustomerProvidedConfig()) { + mergeCustomerProvidedConfig(other.getCustomerProvidedConfig()); + } + if (other.hasConfigurableBillingStatus()) { + mergeConfigurableBillingStatus(other.getConfigurableBillingStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetProvisionCompletionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + serviceTermsMap__ = + input.readMessage( + ServiceTermsMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableServiceTermsMap() + .ensureBuilderMap() + .put(serviceTermsMap__.getKey(), serviceTermsMap__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetCustomerProvidedConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 82: + { + input.readMessage( + internalGetConfigurableBillingStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + 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 name_ = ""; + + /** + * + * + *
+     * Output only. Full resource name of the project, for example
+     * `projects/{project}`.
+     * Note that when making requests, project number and project id are both
+     * acceptable, but the server will always respond in project number.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Full resource name of the project, for example
+     * `projects/{project}`.
+     * Note that when making requests, project number and project id are both
+     * acceptable, but the server will always respond in project number.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMutableServiceTermsMap(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
+     * Output only. Full resource name of the project, for example
+     * `projects/{project}`.
+     * Note that when making requests, project number and project id are both
+     * acceptable, but the server will always respond in project number.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.ProjectProto - .internal_static_google_cloud_discoveryengine_v1_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.Project.class, - com.google.cloud.discoveryengine.v1.Project.Builder.class); + /** + * + * + *
+     * Output only. Full resource name of the project, for example
+     * `projects/{project}`.
+     * Note that when making requests, project number and project id are both
+     * acceptable, but the server will always respond in project number.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - // Construct using com.google.cloud.discoveryengine.v1.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Output only. Full resource name of the project, for example
+     * `projects/{project}`.
+     * Note that when making requests, project number and project id are both
+     * acceptable, but the server will always respond in project number.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCreateTimeFieldBuilder(); - internalGetProvisionCompletionTimeFieldBuilder(); + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - provisionCompletionTime_ = null; - if (provisionCompletionTimeBuilder_ != null) { - provisionCompletionTimeBuilder_.dispose(); - provisionCompletionTimeBuilder_ = null; + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } - internalGetMutableServiceTermsMap().clear(); + bitField0_ |= 0x00000002; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.ProjectProto - .internal_static_google_cloud_discoveryengine_v1_Project_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Project getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.Project.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Project build() { - com.google.cloud.discoveryengine.v1.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); } - return result; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Project buildPartial() { - com.google.cloud.discoveryengine.v1.Project result = - new com.google.cloud.discoveryengine.v1.Project(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } - onBuilt(); - return result; + return this; } - private void buildPartial0(com.google.cloud.discoveryengine.v1.Project result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.provisionCompletionTime_ = - provisionCompletionTimeBuilder_ == null - ? provisionCompletionTime_ - : provisionCompletionTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.serviceTermsMap_ = - internalGetServiceTermsMap().build(ServiceTermsMapDefaultEntryHolder.defaultEntry); + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - result.bitField0_ |= to_bitField0_; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.Project) { - return mergeFrom((com.google.cloud.discoveryengine.v1.Project) other); + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); } else { - super.mergeFrom(other); - return this; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Project other) { - if (other == com.google.cloud.discoveryengine.v1.Project.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasProvisionCompletionTime()) { - mergeProvisionCompletionTime(other.getProvisionCompletionTime()); + /** + * + * + *
+     * Output only. The timestamp when this project is created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } - internalGetMutableServiceTermsMap().mergeFrom(other.internalGetServiceTermsMap()); - bitField0_ |= 0x00000008; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + return createTimeBuilder_; } - @java.lang.Override - public final boolean isInitialized() { - return true; + private com.google.protobuf.Timestamp provisionCompletionTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + provisionCompletionTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
+     * 
+ * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionCompletionTime field is set. + */ + public boolean hasProvisionCompletionTime() { + return ((bitField0_ & 0x00000004) != 0); } - @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(); + /** + * + * + *
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
+     * 
+ * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionCompletionTime. + */ + public com.google.protobuf.Timestamp getProvisionCompletionTime() { + if (provisionCompletionTimeBuilder_ == null) { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; + } else { + return provisionCompletionTimeBuilder_.getMessage(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetProvisionCompletionTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - serviceTermsMap__ = - input.readMessage( - ServiceTermsMapDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableServiceTermsMap() - .ensureBuilderMap() - .put(serviceTermsMap__.getKey(), serviceTermsMap__.getValue()); - 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 + } + + /** + * + * + *
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
+     * 
+ * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value) { + if (provisionCompletionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provisionCompletionTime_ = value; + } else { + provisionCompletionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** * * *
-     * Output only. Full resource name of the project, for example
-     * `projects/{project}`.
-     * Note that when making requests, project number and project id are both
-     * acceptable, but the server will always respond in project number.
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public Builder setProvisionCompletionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (provisionCompletionTimeBuilder_ == null) { + provisionCompletionTime_ = builderForValue.build(); } else { - return (java.lang.String) ref; + provisionCompletionTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
-     * Output only. Full resource name of the project, for example
-     * `projects/{project}`.
-     * Note that when making requests, project number and project id are both
-     * acceptable, but the server will always respond in project number.
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value) { + if (provisionCompletionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && provisionCompletionTime_ != null + && provisionCompletionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getProvisionCompletionTimeBuilder().mergeFrom(value); + } else { + provisionCompletionTime_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + provisionCompletionTimeBuilder_.mergeFrom(value); + } + if (provisionCompletionTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); } + return this; } /** * * *
-     * Output only. Full resource name of the project, for example
-     * `projects/{project}`.
-     * Note that when making requests, project number and project id are both
-     * acceptable, but the server will always respond in project number.
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearProvisionCompletionTime() { + bitField0_ = (bitField0_ & ~0x00000004); + provisionCompletionTime_ = null; + if (provisionCompletionTimeBuilder_ != null) { + provisionCompletionTimeBuilder_.dispose(); + provisionCompletionTimeBuilder_ = null; } - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2889,170 +15484,240 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Full resource name of the project, for example
-     * `projects/{project}`.
-     * Note that when making requests, project number and project id are both
-     * acceptable, but the server will always respond in project number.
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public com.google.protobuf.Timestamp.Builder getProvisionCompletionTimeBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return this; + return internalGetProvisionCompletionTimeFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Full resource name of the project, for example
-     * `projects/{project}`.
-     * Note that when making requests, project number and project id are both
-     * acceptable, but the server will always respond in project number.
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { + if (provisionCompletionTimeBuilder_ != null) { + return provisionCompletionTimeBuilder_.getMessageOrBuilder(); + } else { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. The timestamp when this project is successfully provisioned.
+     * Empty value means this project is still provisioning and is not ready for
+     * use.
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetProvisionCompletionTimeFieldBuilder() { + if (provisionCompletionTimeBuilder_ == null) { + provisionCompletionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getProvisionCompletionTime(), getParentForChildren(), isClean()); + provisionCompletionTime_ = null; + } + return provisionCompletionTimeBuilder_; + } + + private static final class ServiceTermsMapConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ServiceTerms build( + com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder val) { + if (val instanceof com.google.cloud.discoveryengine.v1.Project.ServiceTerms) { + return (com.google.cloud.discoveryengine.v1.Project.ServiceTerms) val; + } + return ((com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + defaultEntry() { + return ServiceTermsMapDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ServiceTermsMapConverter serviceTermsMapConverter = + new ServiceTermsMapConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder> + serviceTermsMap_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder> + internalGetServiceTermsMap() { + if (serviceTermsMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); + } + return serviceTermsMap_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms, + com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder> + internalGetMutableServiceTermsMap() { + if (serviceTermsMap_ == null) { + serviceTermsMap_ = new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return serviceTermsMap_; + } + + public int getServiceTermsMapCount() { + return internalGetServiceTermsMap().ensureBuilderMap().size(); } /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The createTime. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); + @java.lang.Override + public boolean containsServiceTermsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetServiceTermsMap().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getServiceTermsMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getServiceTermsMap() { + return getServiceTermsMapMap(); } /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public java.util.Map + getServiceTermsMapMap() { + return internalGetServiceTermsMap().getImmutableMap(); } /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.Project.ServiceTerms + getServiceTermsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.Project.ServiceTerms defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000002; - onChanged(); - return this; + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder> + map = internalGetMutableServiceTermsMap().ensureBuilderMap(); + return map.containsKey(key) ? serviceTermsMapConverter.build(map.get(key)) : defaultValue; } /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Project.ServiceTerms getServiceTermsMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder> + map = internalGetMutableServiceTermsMap().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return serviceTermsMapConverter.build(map.get(key)); + } + + public Builder clearServiceTermsMap() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableServiceTermsMap().clear(); return this; } @@ -3060,138 +15725,158 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder removeServiceTermsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableServiceTermsMap().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableServiceTermsMap() { + bitField0_ |= 0x00000008; + return internalGetMutableServiceTermsMap().ensureMessageMap(); + } + /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + public Builder putServiceTermsMap( + java.lang.String key, com.google.cloud.discoveryengine.v1.Project.ServiceTerms value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableServiceTermsMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; } /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder putAllServiceTermsMap( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } + internalGetMutableServiceTermsMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; } /** * * *
-     * Output only. The timestamp when this project is created.
+     * Output only. A map of terms of services. The key is the `id` of
+     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder + putServiceTermsMapBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder> + builderMap = internalGetMutableServiceTermsMap().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.discoveryengine.v1.Project.ServiceTerms.newBuilder(); + builderMap.put(key, entry); } - return createTimeBuilder_; + if (entry instanceof com.google.cloud.discoveryengine.v1.Project.ServiceTerms) { + entry = ((com.google.cloud.discoveryengine.v1.Project.ServiceTerms) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder) entry; } - private com.google.protobuf.Timestamp provisionCompletionTime_; + private com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + customerProvidedConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - provisionCompletionTimeBuilder_; + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder> + customerProvidedConfigBuilder_; /** * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the provisionCompletionTime field is set. + * @return Whether the customerProvidedConfig field is set. */ - public boolean hasProvisionCompletionTime() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasCustomerProvidedConfig() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The provisionCompletionTime. + * @return The customerProvidedConfig. */ - public com.google.protobuf.Timestamp getProvisionCompletionTime() { - if (provisionCompletionTimeBuilder_ == null) { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + getCustomerProvidedConfig() { + if (customerProvidedConfigBuilder_ == null) { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; } else { - return provisionCompletionTimeBuilder_.getMessage(); + return customerProvidedConfigBuilder_.getMessage(); } } @@ -3199,25 +15884,24 @@ public com.google.protobuf.Timestamp getProvisionCompletionTime() { * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value) { - if (provisionCompletionTimeBuilder_ == null) { + public Builder setCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig value) { + if (customerProvidedConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - provisionCompletionTime_ = value; + customerProvidedConfig_ = value; } else { - provisionCompletionTimeBuilder_.setMessage(value); + customerProvidedConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3226,23 +15910,22 @@ public Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setProvisionCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (provisionCompletionTimeBuilder_ == null) { - provisionCompletionTime_ = builderForValue.build(); + public Builder setCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder + builderForValue) { + if (customerProvidedConfigBuilder_ == null) { + customerProvidedConfig_ = builderForValue.build(); } else { - provisionCompletionTimeBuilder_.setMessage(builderForValue.build()); + customerProvidedConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3251,29 +15934,30 @@ public Builder setProvisionCompletionTime( * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value) { - if (provisionCompletionTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && provisionCompletionTime_ != null - && provisionCompletionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getProvisionCompletionTimeBuilder().mergeFrom(value); + public Builder mergeCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig value) { + if (customerProvidedConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customerProvidedConfig_ != null + && customerProvidedConfig_ + != com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .getDefaultInstance()) { + getCustomerProvidedConfigBuilder().mergeFrom(value); } else { - provisionCompletionTime_ = value; + customerProvidedConfig_ = value; } } else { - provisionCompletionTimeBuilder_.mergeFrom(value); + customerProvidedConfigBuilder_.mergeFrom(value); } - if (provisionCompletionTime_ != null) { - bitField0_ |= 0x00000004; + if (customerProvidedConfig_ != null) { + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -3283,21 +15967,19 @@ public Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value) * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearProvisionCompletionTime() { - bitField0_ = (bitField0_ & ~0x00000004); - provisionCompletionTime_ = null; - if (provisionCompletionTimeBuilder_ != null) { - provisionCompletionTimeBuilder_.dispose(); - provisionCompletionTimeBuilder_ = null; + public Builder clearCustomerProvidedConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + customerProvidedConfig_ = null; + if (customerProvidedConfigBuilder_ != null) { + customerProvidedConfigBuilder_.dispose(); + customerProvidedConfigBuilder_ = null; } onChanged(); return this; @@ -3307,41 +15989,40 @@ public Builder clearProvisionCompletionTime() { * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getProvisionCompletionTimeBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder + getCustomerProvidedConfigBuilder() { + bitField0_ |= 0x00000010; onChanged(); - return internalGetProvisionCompletionTimeFieldBuilder().getBuilder(); + return internalGetCustomerProvidedConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { - if (provisionCompletionTimeBuilder_ != null) { - return provisionCompletionTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder() { + if (customerProvidedConfigBuilder_ != null) { + return customerProvidedConfigBuilder_.getMessageOrBuilder(); } else { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; } } @@ -3349,198 +16030,160 @@ public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilde * * *
-     * Output only. The timestamp when this project is successfully provisioned.
-     * Empty value means this project is still provisioning and is not ready for
-     * use.
+     * Optional. Customer provided configurations.
      * 
* * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetProvisionCompletionTimeFieldBuilder() { - if (provisionCompletionTimeBuilder_ == null) { - provisionCompletionTimeBuilder_ = + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder> + internalGetCustomerProvidedConfigFieldBuilder() { + if (customerProvidedConfigBuilder_ == null) { + customerProvidedConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getProvisionCompletionTime(), getParentForChildren(), isClean()); - provisionCompletionTime_ = null; - } - return provisionCompletionTimeBuilder_; - } - - private static final class ServiceTermsMapConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms> { - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Project.ServiceTerms build( - com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder val) { - if (val instanceof com.google.cloud.discoveryengine.v1.Project.ServiceTerms) { - return (com.google.cloud.discoveryengine.v1.Project.ServiceTerms) val; - } - return ((com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - defaultEntry() { - return ServiceTermsMapDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final ServiceTermsMapConverter serviceTermsMapConverter = - new ServiceTermsMapConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder> - serviceTermsMap_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder> - internalGetServiceTermsMap() { - if (serviceTermsMap_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder>( + getCustomerProvidedConfig(), getParentForChildren(), isClean()); + customerProvidedConfig_ = null; } - return serviceTermsMap_; + return customerProvidedConfigBuilder_; } - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms, - com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder> - internalGetMutableServiceTermsMap() { - if (serviceTermsMap_ == null) { - serviceTermsMap_ = new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); - } - bitField0_ |= 0x00000008; - onChanged(); - return serviceTermsMap_; - } + private com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + configurableBillingStatus_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder> + configurableBillingStatusBuilder_; - public int getServiceTermsMapCount() { - return internalGetServiceTermsMap().ensureBuilderMap().size(); + /** + * + * + *
+     * Output only. The current status of the project's configurable billing.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingStatus field is set. + */ + public boolean hasConfigurableBillingStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The configurableBillingStatus. */ - @java.lang.Override - public boolean containsServiceTermsMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + getConfigurableBillingStatus() { + if (configurableBillingStatusBuilder_ == null) { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .getDefaultInstance() + : configurableBillingStatus_; + } else { + return configurableBillingStatusBuilder_.getMessage(); } - return internalGetServiceTermsMap().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getServiceTermsMapMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getServiceTermsMap() { - return getServiceTermsMapMap(); } /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public java.util.Map - getServiceTermsMapMap() { - return internalGetServiceTermsMap().getImmutableMap(); + public Builder setConfigurableBillingStatus( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus value) { + if (configurableBillingStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configurableBillingStatus_ = value; + } else { + configurableBillingStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1.Project.ServiceTerms - getServiceTermsMapOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1.Project.ServiceTerms defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setConfigurableBillingStatus( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder + builderForValue) { + if (configurableBillingStatusBuilder_ == null) { + configurableBillingStatus_ = builderForValue.build(); + } else { + configurableBillingStatusBuilder_.setMessage(builderForValue.build()); } - java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder> - map = internalGetMutableServiceTermsMap().ensureBuilderMap(); - return map.containsKey(key) ? serviceTermsMapConverter.build(map.get(key)) : defaultValue; + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.Project.ServiceTerms getServiceTermsMapOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeConfigurableBillingStatus( + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus value) { + if (configurableBillingStatusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && configurableBillingStatus_ != null + && configurableBillingStatus_ + != com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .getDefaultInstance()) { + getConfigurableBillingStatusBuilder().mergeFrom(value); + } else { + configurableBillingStatus_ = value; + } + } else { + configurableBillingStatusBuilder_.mergeFrom(value); } - java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder> - map = internalGetMutableServiceTermsMap().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (configurableBillingStatus_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } - return serviceTermsMapConverter.build(map.get(key)); - } - - public Builder clearServiceTermsMap() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableServiceTermsMap().clear(); return this; } @@ -3548,109 +16191,91 @@ public Builder clearServiceTermsMap() { * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeServiceTermsMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearConfigurableBillingStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + configurableBillingStatus_ = null; + if (configurableBillingStatusBuilder_ != null) { + configurableBillingStatusBuilder_.dispose(); + configurableBillingStatusBuilder_ = null; } - internalGetMutableServiceTermsMap().ensureBuilderMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableServiceTermsMap() { - bitField0_ |= 0x00000008; - return internalGetMutableServiceTermsMap().ensureMessageMap(); - } - /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putServiceTermsMap( - java.lang.String key, com.google.cloud.discoveryengine.v1.Project.ServiceTerms value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableServiceTermsMap().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000008; - return this; + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder + getConfigurableBillingStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetConfigurableBillingStatusFieldBuilder().getBuilder(); } /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllServiceTermsMap( - java.util.Map - values) { - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTerms> - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder + getConfigurableBillingStatusOrBuilder() { + if (configurableBillingStatusBuilder_ != null) { + return configurableBillingStatusBuilder_.getMessageOrBuilder(); + } else { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + .getDefaultInstance() + : configurableBillingStatus_; } - internalGetMutableServiceTermsMap().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000008; - return this; } /** * * *
-     * Output only. A map of terms of services. The key is the `id` of
-     * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms].
+     * Output only. The current status of the project's configurable billing.
      * 
* * - * map<string, .google.cloud.discoveryengine.v1.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder - putServiceTermsMapBuilderIfAbsent(java.lang.String key) { - java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder> - builderMap = internalGetMutableServiceTermsMap().ensureBuilderMap(); - com.google.cloud.discoveryengine.v1.Project.ServiceTermsOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.discoveryengine.v1.Project.ServiceTerms.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.discoveryengine.v1.Project.ServiceTerms) { - entry = ((com.google.cloud.discoveryengine.v1.Project.ServiceTerms) entry).toBuilder(); - builderMap.put(key, entry); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder> + internalGetConfigurableBillingStatusFieldBuilder() { + if (configurableBillingStatusBuilder_ == null) { + configurableBillingStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Builder, + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder>( + getConfigurableBillingStatus(), getParentForChildren(), isClean()); + configurableBillingStatus_ = null; } - return (com.google.cloud.discoveryengine.v1.Project.ServiceTerms.Builder) entry; + return configurableBillingStatusBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Project) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java index 73e54db089e8..bf9dc0692d89 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectOrBuilder.java @@ -227,4 +227,93 @@ com.google.cloud.discoveryengine.v1.Project.ServiceTerms getServiceTermsMapOrDef */ com.google.cloud.discoveryengine.v1.Project.ServiceTerms getServiceTermsMapOrThrow( java.lang.String key); + + /** + * + * + *
+   * Optional. Customer provided configurations.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + boolean hasCustomerProvidedConfig(); + + /** + * + * + *
+   * Optional. Customer provided configurations.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerProvidedConfig. + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig getCustomerProvidedConfig(); + + /** + * + * + *
+   * Optional. Customer provided configurations.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.Project.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder(); + + /** + * + * + *
+   * Output only. The current status of the project's configurable billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingStatus field is set. + */ + boolean hasConfigurableBillingStatus(); + + /** + * + * + *
+   * Output only. The current status of the project's configurable billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingStatus. + */ + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus + getConfigurableBillingStatus(); + + /** + * + * + *
+   * Output only. The current status of the project's configurable billing.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatusOrBuilder + getConfigurableBillingStatusOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectProto.java index 37d8d2114eb3..54a7ece2d5fb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectProto.java @@ -48,6 +48,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_Project_ServiceTerms_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_Project_ServiceTerms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -61,36 +93,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n-google/cloud/discoveryengine/v1/projec" - + "t.proto\022\037google.cloud.discoveryengine.v1" + "\n" + + "-google/cloud/discoveryengine/v1/project.proto\022\037google.cloud.discoveryengine.v1" + "\032\037google/api/field_behavior.proto\032\031googl" - + "e/api/resource.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\341\005\n\007Project\022\022\n\004name\030\001 \001(\tB" - + "\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.prot" - + "obuf.TimestampB\004\342A\001\003\022C\n\031provision_comple" - + "tion_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\022^\n\021service_terms_map\030\004 \003(\0132=.g" - + "oogle.cloud.discoveryengine.v1.Project.S" - + "erviceTermsMapEntryB\004\342A\001\003\032\265\002\n\014ServiceTer" - + "ms\022\n\n\002id\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022J\n\005state" - + "\030\004 \001(\0162;.google.cloud.discoveryengine.v1" - + ".Project.ServiceTerms.State\022/\n\013accept_ti" - + "me\030\005 \001(\0132\032.google.protobuf.Timestamp\0220\n\014" - + "decline_time\030\006 \001(\0132\032.google.protobuf.Tim" - + "estamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022" - + "\n\016TERMS_ACCEPTED\020\001\022\021\n\rTERMS_PENDING\020\002\022\022\n" - + "\016TERMS_DECLINED\020\003\032m\n\024ServiceTermsMapEntr" - + "y\022\013\n\003key\030\001 \001(\t\022D\n\005value\030\002 \001(\01325.google.c" - + "loud.discoveryengine.v1.Project.ServiceT" - + "erms:\0028\001:?\352A<\n&discoveryengine.googleapi" - + "s.com/Project\022\022projects/{project}B\377\001\n#co" - + "m.google.cloud.discoveryengine.v1B\014Proje" - + "ctProtoP\001ZMcloud.google.com/go/discovery" - + "engine/apiv1/discoveryenginepb;discovery" - + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" - + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" - + "overyEngine\\V1\352\002\"Google::Cloud::Discover" - + "yEngine::V1b\006proto3" + + "e/api/resource.proto\032-google/cloud/disco" + + "veryengine/v1/logging.proto\032\037google/protobuf/timestamp.proto\"\247\032\n" + + "\007Project\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022C\n" + + "\031provision_completion_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022^\n" + + "\021service_terms_map\030\004 " + + "\003(\0132=.google.cloud.discoveryengine.v1.Project.ServiceTermsMapEntryB\004\342A\001\003\022g\n" + + "\030customer_provided_config\030\006 \001(\0132?.google.clou" + + "d.discoveryengine.v1.Project.CustomerProvidedConfigB\004\342A\001\001\022m\n" + + "\033configurable_billing_status\030\n" + + " \001(\0132B.google.cloud.discoverye" + + "ngine.v1.Project.ConfigurableBillingStatusB\004\342A\001\003\032\265\002\n" + + "\014ServiceTerms\022\n\n" + + "\002id\030\001 \001(\t\022\017\n" + + "\007version\030\002 \001(\t\022J\n" + + "\005state\030\004 \001(\0162;.google.c" + + "loud.discoveryengine.v1.Project.ServiceTerms.State\022/\n" + + "\013accept_time\030\005 \001(\0132\032.google.protobuf.Timestamp\0220\n" + + "\014decline_time\030\006 \001(\0132\032.google.protobuf.Timestamp\"Y\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\022\n" + + "\016TERMS_ACCEPTED\020\001\022\021\n\r" + + "TERMS_PENDING\020\002\022\022\n" + + "\016TERMS_DECLINED\020\003\032\337\t\n" + + "\026CustomerProvidedConfig\022q\n" + + "\021notebooklm_config\030\003 \001(\0132P.google.cloud.discoverye" + + "ngine.v1.Project.CustomerProvidedConfig.NotebooklmConfigB\004\342A\001\001\022\211\001\n" + + "\036resource_access_control_config\030\006 \001(\0132[.google.cloud.d" + + "iscoveryengine.v1.Project.CustomerProvid" + + "edConfig.ResourceAccessControlConfigB\004\342A\001\001\032\365\006\n" + + "\020NotebooklmConfig\022}\n" + + "\022model_armor_config\030\001 \001(\0132a.google.cloud.discoveryengi" + + "ne.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig\022&\n" + + "\030opt_out_notebook_sharing\030\002 \001(\010B\004\342A\001\001\022\213\001\n" + + "\026data_protection_policy\030\005 \001(\0132e.google.cloud.d" + + "iscoveryengine.v1.Project.CustomerProvid" + + "edConfig.NotebooklmConfig.DataProtectionPolicyB\004\342A\001\001\022X\n" + + "\024observability_config\030\006 \001" + + "(\01324.google.cloud.discoveryengine.v1.ObservabilityConfigB\004\342A\001\001\032\245\001\n" + + "\020ModelArmorConfig\022I\n" + + "\024user_prompt_template\030\001 \001(\tB+\342A\001\001\372A$\n" + + "\"modelarmor.googleapis.com/Template\022F\n" + + "\021response_template\030\002 \001(\tB+\342A\001\001\372A$\n" + + "\"modelarmor.googleapis.com/Template\032\251\002\n" + + "\024DataProtectionPolicy\022\264\001\n" + + " sensitive_data_protection_policy\030\001 \001(\0132\203\001.google.cloud.disco" + + "veryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPoli" + + "cy.SensitiveDataProtectionPolicyB\004\342A\001\001\032Z\n" + + "\035SensitiveDataProtectionPolicy\0229\n" + + "\006policy\030\001 \001(\tB)\342A\001\001\372A\"\n" + + " dlp.googleapis.com/ContentPolicy\032N\n" + + "\033ResourceAccessControlConfig\022/\n" + + "!data_store_access_control_enabled\030\001 \001(\010B\004\342A\001\001\032\211\t\n" + + "\031ConfigurableBillingStatus\022,\n" + + "\036effective_search_qpm_threshold\030\001 \001(\003B\004\342A\001\001\022/\n" + + "!effective_indexing_core_threshold\030\002 \001(\003B\004\342A\001\001\0224\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\0228\n" + + "\016terminate_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022O\n" + + "%search_qpm_threshold_next_update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022R\n" + + "(indexing_core_threshold_next_update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022h\n" + + "\013update_type\030\007 \001(\0162M.google.cloud.discoveryengine.v1.Project.Conf" + + "igurableBillingStatus.UpdateTypeB\004\342A\001\003\022\235\001\n" + + "(agent_search_token_subscription_statuses\030\010" + + " \003(\0132e.google.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.Ag" + + "entSearchTokenSubscriptionStatusB\004\342A\001\003\032\214\003\n" + + "\"AgentSearchTokenSubscriptionStatus\022\033\n" + + "\r" + + "model_version\030\001 \001(\tB\004\342A\001\003\022%\n" + + "\027effective_tpm_threshold\030\002 \001(\003B\004\342A\001\003\022H\n" + + "\036tpm_threshold_next_update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0224\n\n" + + "start_time\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0228\n" + + "\016terminate_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022h\n" + + "\013update_type\030\006 \001(\0162M.googl" + + "e.cloud.discoveryengine.v1.Project.ConfigurableBillingStatus.UpdateTypeB\004\342A\001\003\"_\n" + + "\n" + + "UpdateType\022\033\n" + + "\027UPDATE_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006CREATE\020\001\022\n\n" + + "\006DELETE\020\002\022\014\n" + + "\010SCALE_UP\020\003\022\016\n\n" + + "SCALE_DOWN\020\004\032m\n" + + "\024ServiceTermsMapEntry\022\013\n" + + "\003key\030\001 \001(\t\022D\n" + + "\005value\030\002 \001(\01325.google.clou" + + "d.discoveryengine.v1.Project.ServiceTerms:\0028\001:?\352A<\n" + + "&discoveryengine.googleapis.com/Project\022\022projects/{project}B\377\001\n" + + "#com.google.cloud.discoveryengine.v1B\014ProjectP" + + "rotoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryeng" + + "inepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.D" + + "iscoveryEngine.V1\312\002\037Google\\Cloud\\Discove" + + "ryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -98,6 +202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.LoggingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1_Project_descriptor = @@ -106,7 +211,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Project_descriptor, new java.lang.String[] { - "Name", "CreateTime", "ProvisionCompletionTime", "ServiceTermsMap", + "Name", + "CreateTime", + "ProvisionCompletionTime", + "ServiceTermsMap", + "CustomerProvidedConfig", + "ConfigurableBillingStatus", }); internal_static_google_cloud_discoveryengine_v1_Project_ServiceTerms_descriptor = internal_static_google_cloud_discoveryengine_v1_Project_descriptor.getNestedType(0); @@ -116,8 +226,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Id", "Version", "State", "AcceptTime", "DeclineTime", }); - internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor = internal_static_google_cloud_discoveryengine_v1_Project_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor, + new java.lang.String[] { + "NotebooklmConfig", "ResourceAccessControlConfig", + }); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor, + new java.lang.String[] { + "ModelArmorConfig", + "OptOutNotebookSharing", + "DataProtectionPolicy", + "ObservabilityConfig", + }); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor, + new java.lang.String[] { + "UserPromptTemplate", "ResponseTemplate", + }); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor, + new java.lang.String[] { + "SensitiveDataProtectionPolicy", + }); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor, + new java.lang.String[] { + "Policy", + }); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_CustomerProvidedConfig_ResourceAccessControlConfig_descriptor, + new java.lang.String[] { + "DataStoreAccessControlEnabled", + }); + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor, + new java.lang.String[] { + "EffectiveSearchQpmThreshold", + "EffectiveIndexingCoreThreshold", + "StartTime", + "TerminateTime", + "SearchQpmThresholdNextUpdateTime", + "IndexingCoreThresholdNextUpdateTime", + "UpdateType", + "AgentSearchTokenSubscriptionStatuses", + }); + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor, + new java.lang.String[] { + "ModelVersion", + "EffectiveTpmThreshold", + "TpmThresholdNextUpdateTime", + "StartTime", + "TerminateTime", + "UpdateType", + }); + internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_Project_descriptor.getNestedType(3); internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Project_ServiceTermsMapEntry_descriptor, @@ -127,11 +322,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.LoggingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java index 6cb1149d3db0..aa8d9e327df6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_ProvisionProjectMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -64,28 +68,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d_behavior.proto\032\031google/api/resource.pr" + "oto\032-google/cloud/discoveryengine/v1/pro" + "ject.proto\032#google/longrunning/operation" - + "s.proto\"\243\001\n\027ProvisionProjectRequest\022=\n\004n" + + "s.proto\"\305\002\n\027ProvisionProjectRequest\022=\n\004n" + "ame\030\001 \001(\tB/\342A\001\002\372A(\n&discoveryengine.goog" + "leapis.com/Project\022#\n\025accept_data_use_te" + "rms\030\002 \001(\010B\004\342A\001\002\022$\n\026data_use_terms_versio" - + "n\030\003 \001(\tB\004\342A\001\002\"\032\n\030ProvisionProjectMetadat" - + "a2\354\002\n\016ProjectService\022\205\002\n\020ProvisionProjec" - + "t\0228.google.cloud.discoveryengine.v1.Prov" - + "isionProjectRequest\032\035.google.longrunning" - + ".Operation\"\227\001\312Ac\n\'google.cloud.discovery" - + "engine.v1.Project\0228google.cloud.discover" - + "yengine.v1.ProvisionProjectMetadata\332A\004na" - + "me\202\323\344\223\002$\"\037/v1/{name=projects/*}:provisio" - + "n:\001*\032R\312A\036discoveryengine.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\206\002\n#com.google.cloud.discoverye" - + "ngine.v1B\023ProjectServiceProtoP\001ZMcloud.g" - + "oogle.com/go/discoveryengine/apiv1/disco" - + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" - + "RYENGINE\252\002\037Google.Cloud.DiscoveryEngine." - + "V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"G" - + "oogle::Cloud::DiscoveryEngine::V1b\006proto" - + "3" + + "n\030\003 \001(\tB\004\342A\001\002\022^\n\013saas_params\030\004 \001(\0132C.goo" + + "gle.cloud.discoveryengine.v1.ProvisionPr" + + "ojectRequest.SaasParamsB\004\342A\001\001\032@\n\nSaasPar" + + "ams\022\034\n\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n\006is_" + + "biz\030\002 \001(\010B\004\342A\001\001\"\032\n\030ProvisionProjectMetad" + + "ata2\234\004\n\016ProjectService\022\267\002\n\020ProvisionProj" + + "ect\0228.google.cloud.discoveryengine.v1.Pr" + + "ovisionProjectRequest\032\035.google.longrunni" + + "ng.Operation\"\311\001\312Ac\n\'google.cloud.discove" + + "ryengine.v1.Project\0228google.cloud.discov" + + "eryengine.v1.ProvisionProjectMetadata\332A\004" + + "name\202\323\344\223\002V\"\037/v1/{name=projects/*}:provis" + + "ion:\001*Z0\"+/v1/{name=projects/*/locations" + + "/*}:provision:\001*\032\317\001\312A\036discoveryengine.go" + + "ogleapis.com\322A\252\001https://www.googleapis.c" + + "om/auth/cloud-platform,https://www.googl" + + "eapis.com/auth/discoveryengine.readwrite" + + ",https://www.googleapis.com/auth/discove" + + "ryengine.serving.readwriteB\206\002\n#com.googl" + + "e.cloud.discoveryengine.v1B\023ProjectServi" + + "ceProtoP\001ZMcloud.google.com/go/discovery" + + "engine/apiv1/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" + + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" + + "overyEngine\\V1\352\002\"Google::Cloud::Discover" + + "yEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -104,7 +116,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor, new java.lang.String[] { - "Name", "AcceptDataUseTerms", "DataUseTermsVersion", + "Name", "AcceptDataUseTerms", "DataUseTermsVersion", "SaasParams", + }); + internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor = + internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor, + new java.lang.String[] { + "AcceptBizQos", "IsBiz", }); internal_static_google_cloud_discoveryengine_v1_ProvisionProjectMetadata_descriptor = getDescriptor().getMessageType(1); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java index e6d1fb3b049c..7ff40d84fdf6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java @@ -73,6 +73,650 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.Builder.class); } + public interface SaasParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Set to `true` to specify that caller has read and would like to
+     * give consent to the [Terms for Agent Space quality of service].
+     * 
+ * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptBizQos. + */ + boolean getAcceptBizQos(); + + /** + * + * + *
+     * Optional. Indicates if the current request is for Biz edition (= true) or
+     * not
+     * (= false).
+     * 
+ * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isBiz. + */ + boolean getIsBiz(); + } + + /** + * + * + *
+   * Parameters for Agentspace.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams} + */ + public static final class SaasParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) + SaasParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SaasParams"); + } + + // Use SaasParams.newBuilder() to construct. + private SaasParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SaasParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.class, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder.class); + } + + public static final int ACCEPT_BIZ_QOS_FIELD_NUMBER = 1; + private boolean acceptBizQos_ = false; + + /** + * + * + *
+     * Optional. Set to `true` to specify that caller has read and would like to
+     * give consent to the [Terms for Agent Space quality of service].
+     * 
+ * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptBizQos. + */ + @java.lang.Override + public boolean getAcceptBizQos() { + return acceptBizQos_; + } + + public static final int IS_BIZ_FIELD_NUMBER = 2; + private boolean isBiz_ = false; + + /** + * + * + *
+     * Optional. Indicates if the current request is for Biz edition (= true) or
+     * not
+     * (= false).
+     * 
+ * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isBiz. + */ + @java.lang.Override + public boolean getIsBiz() { + return isBiz_; + } + + 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 (acceptBizQos_ != false) { + output.writeBool(1, acceptBizQos_); + } + if (isBiz_ != false) { + output.writeBool(2, isBiz_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (acceptBizQos_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, acceptBizQos_); + } + if (isBiz_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isBiz_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams other = + (com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) obj; + + if (getAcceptBizQos() != other.getAcceptBizQos()) return false; + if (getIsBiz() != other.getIsBiz()) 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) + ACCEPT_BIZ_QOS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptBizQos()); + hash = (37 * hash) + IS_BIZ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsBiz()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Parameters for Agentspace.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.class, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + acceptBizQos_ = false; + isBiz_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams build() { + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams buildPartial() { + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams result = + new com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.acceptBizQos_ = acceptBizQos_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isBiz_ = isBiz_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams other) { + if (other + == com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance()) return this; + if (other.getAcceptBizQos() != false) { + setAcceptBizQos(other.getAcceptBizQos()); + } + if (other.getIsBiz() != false) { + setIsBiz(other.getIsBiz()); + } + 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: + { + acceptBizQos_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + isBiz_ = 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 boolean acceptBizQos_; + + /** + * + * + *
+       * Optional. Set to `true` to specify that caller has read and would like to
+       * give consent to the [Terms for Agent Space quality of service].
+       * 
+ * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptBizQos. + */ + @java.lang.Override + public boolean getAcceptBizQos() { + return acceptBizQos_; + } + + /** + * + * + *
+       * Optional. Set to `true` to specify that caller has read and would like to
+       * give consent to the [Terms for Agent Space quality of service].
+       * 
+ * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The acceptBizQos to set. + * @return This builder for chaining. + */ + public Builder setAcceptBizQos(boolean value) { + + acceptBizQos_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Set to `true` to specify that caller has read and would like to
+       * give consent to the [Terms for Agent Space quality of service].
+       * 
+ * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAcceptBizQos() { + bitField0_ = (bitField0_ & ~0x00000001); + acceptBizQos_ = false; + onChanged(); + return this; + } + + private boolean isBiz_; + + /** + * + * + *
+       * Optional. Indicates if the current request is for Biz edition (= true) or
+       * not
+       * (= false).
+       * 
+ * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isBiz. + */ + @java.lang.Override + public boolean getIsBiz() { + return isBiz_; + } + + /** + * + * + *
+       * Optional. Indicates if the current request is for Biz edition (= true) or
+       * not
+       * (= false).
+       * 
+ * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isBiz to set. + * @return This builder for chaining. + */ + public Builder setIsBiz(boolean value) { + + isBiz_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Indicates if the current request is for Biz edition (= true) or
+       * not
+       * (= false).
+       * 
+ * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsBiz() { + bitField0_ = (bitField0_ & ~0x00000002); + isBiz_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) + private static final com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams(); + } + + public static com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaasParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -216,6 +860,68 @@ public com.google.protobuf.ByteString getDataUseTermsVersionBytes() { } } + public static final int SAAS_PARAMS_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saasParams_; + + /** + * + * + *
+   * Optional. Parameters for Agentspace.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasParams field is set. + */ + @java.lang.Override + public boolean hasSaasParams() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Parameters for Agentspace.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasParams. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams getSaasParams() { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } + + /** + * + * + *
+   * Optional. Parameters for Agentspace.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder + getSaasParamsOrBuilder() { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -239,6 +945,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataUseTermsVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, dataUseTermsVersion_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSaasParams()); + } getUnknownFields().writeTo(output); } @@ -257,6 +966,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataUseTermsVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataUseTermsVersion_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSaasParams()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +988,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getAcceptDataUseTerms() != other.getAcceptDataUseTerms()) return false; if (!getDataUseTermsVersion().equals(other.getDataUseTermsVersion())) return false; + if (hasSaasParams() != other.hasSaasParams()) return false; + if (hasSaasParams()) { + if (!getSaasParams().equals(other.getSaasParams())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,6 +1009,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptDataUseTerms()); hash = (37 * hash) + DATA_USE_TERMS_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDataUseTermsVersion().hashCode(); + if (hasSaasParams()) { + hash = (37 * hash) + SAAS_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getSaasParams().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -426,10 +1146,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSaasParamsFieldBuilder(); + } } @java.lang.Override @@ -439,6 +1168,11 @@ public Builder clear() { name_ = ""; acceptDataUseTerms_ = false; dataUseTermsVersion_ = ""; + saasParams_ = null; + if (saasParamsBuilder_ != null) { + saasParamsBuilder_.dispose(); + saasParamsBuilder_ = null; + } return this; } @@ -484,6 +1218,12 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ProvisionProjectR if (((from_bitField0_ & 0x00000004) != 0)) { result.dataUseTermsVersion_ = dataUseTermsVersion_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.saasParams_ = saasParamsBuilder_ == null ? saasParams_ : saasParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -512,6 +1252,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ProvisionProjectReq bitField0_ |= 0x00000004; onChanged(); } + if (other.hasSaasParams()) { + mergeSaasParams(other.getSaasParams()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -556,6 +1299,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetSaasParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -899,6 +1649,228 @@ public Builder setDataUseTermsVersionBytes(com.google.protobuf.ByteString value) return this; } + private com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saasParams_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder> + saasParamsBuilder_; + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasParams field is set. + */ + public boolean hasSaasParams() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasParams. + */ + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams getSaasParams() { + if (saasParamsBuilder_ == null) { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } else { + return saasParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasParams( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams value) { + if (saasParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saasParams_ = value; + } else { + saasParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasParams( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder + builderForValue) { + if (saasParamsBuilder_ == null) { + saasParams_ = builderForValue.build(); + } else { + saasParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSaasParams( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams value) { + if (saasParamsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && saasParams_ != null + && saasParams_ + != com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance()) { + getSaasParamsBuilder().mergeFrom(value); + } else { + saasParams_ = value; + } + } else { + saasParamsBuilder_.mergeFrom(value); + } + if (saasParams_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSaasParams() { + bitField0_ = (bitField0_ & ~0x00000008); + saasParams_ = null; + if (saasParamsBuilder_ != null) { + saasParamsBuilder_.dispose(); + saasParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder + getSaasParamsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSaasParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder + getSaasParamsOrBuilder() { + if (saasParamsBuilder_ != null) { + return saasParamsBuilder_.getMessageOrBuilder(); + } else { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } + } + + /** + * + * + *
+     * Optional. Parameters for Agentspace.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder> + internalGetSaasParamsFieldBuilder() { + if (saasParamsBuilder_ == null) { + saasParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams.Builder, + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder>( + getSaasParams(), getParentForChildren(), isClean()); + saasParams_ = null; + } + return saasParamsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java index f3ee4f41343e..dd3d7a45d60c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java @@ -108,4 +108,48 @@ public interface ProvisionProjectRequestOrBuilder * @return The bytes for dataUseTermsVersion. */ com.google.protobuf.ByteString getDataUseTermsVersionBytes(); + + /** + * + * + *
+   * Optional. Parameters for Agentspace.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasParams field is set. + */ + boolean hasSaasParams(); + + /** + * + * + *
+   * Optional. Parameters for Agentspace.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasParams. + */ + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams getSaasParams(); + + /** + * + * + *
+   * Optional. Parameters for Agentspace.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder + getSaasParamsOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeCompletionSuggestionsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeCompletionSuggestionsResponse.java index c2aa8beca08b..a8a467cd8569 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeCompletionSuggestionsResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeCompletionSuggestionsResponse.java @@ -26,7 +26,8 @@ *
  * Response message for
  * [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions]
- * method.
+ * method. If the long running operation is successfully done, then this
+ * message is returned by the google.longrunning.Operations.response field.
  * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse} @@ -346,7 +347,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
    * Response message for
    * [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions]
-   * method.
+   * method. If the long running operation is successfully done, then this
+   * message is returned by the google.longrunning.Operations.response field.
    * 
* * Protobuf type {@code google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequest.java index 3c19f5e0625f..4d21a369fc6f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequest.java @@ -1340,6 +1340,7 @@ public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { *
    * Filter matching identity mappings to purge.
    * The eligible field for filtering is:
+   *
    * * `update_time`: in ISO 8601 "zulu" format.
    * * `external_id`
    *
@@ -1381,6 +1382,7 @@ public java.lang.String getFilter() {
    * 
    * Filter matching identity mappings to purge.
    * The eligible field for filtering is:
+   *
    * * `update_time`: in ISO 8601 "zulu" format.
    * * `external_id`
    *
@@ -2298,6 +2300,7 @@ public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value
      * 
      * Filter matching identity mappings to purge.
      * The eligible field for filtering is:
+     *
      * * `update_time`: in ISO 8601 "zulu" format.
      * * `external_id`
      *
@@ -2338,6 +2341,7 @@ public java.lang.String getFilter() {
      * 
      * Filter matching identity mappings to purge.
      * The eligible field for filtering is:
+     *
      * * `update_time`: in ISO 8601 "zulu" format.
      * * `external_id`
      *
@@ -2378,6 +2382,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
      * Filter matching identity mappings to purge.
      * The eligible field for filtering is:
+     *
      * * `update_time`: in ISO 8601 "zulu" format.
      * * `external_id`
      *
@@ -2417,6 +2422,7 @@ public Builder setFilter(java.lang.String value) {
      * 
      * Filter matching identity mappings to purge.
      * The eligible field for filtering is:
+     *
      * * `update_time`: in ISO 8601 "zulu" format.
      * * `external_id`
      *
@@ -2452,6 +2458,7 @@ public Builder clearFilter() {
      * 
      * Filter matching identity mappings to purge.
      * The eligible field for filtering is:
+     *
      * * `update_time`: in ISO 8601 "zulu" format.
      * * `external_id`
      *
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequestOrBuilder.java
index dfd7851b5989..44b73509ca09 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequestOrBuilder.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/PurgeIdentityMappingsRequestOrBuilder.java
@@ -110,6 +110,7 @@ public interface PurgeIdentityMappingsRequestOrBuilder
    * 
    * Filter matching identity mappings to purge.
    * The eligible field for filtering is:
+   *
    * * `update_time`: in ISO 8601 "zulu" format.
    * * `external_id`
    *
@@ -140,6 +141,7 @@ public interface PurgeIdentityMappingsRequestOrBuilder
    * 
    * Filter matching identity mappings to purge.
    * The eligible field for filtering is:
+   *
    * * `update_time`: in ISO 8601 "zulu" format.
    * * `external_id`
    *
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java
index 8e8520c05bb0..81e18e37a6d2 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequest.java
@@ -290,7 +290,7 @@ public com.google.protobuf.ByteString getQueryBytes() {
    *
    *
    * 
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -306,7 +306,7 @@ public java.util.List getReco * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -323,7 +323,7 @@ public java.util.List getReco * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -339,7 +339,7 @@ public int getRecordsCount() { * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -355,7 +355,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecord getRecords(int index) { * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -1548,7 +1548,7 @@ private void ensureRecordsIsMutable() { * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1567,7 +1567,7 @@ public java.util.List getReco * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1586,7 +1586,7 @@ public int getRecordsCount() { * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1605,7 +1605,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecord getRecords(int index) { * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1630,7 +1630,7 @@ public Builder setRecords(int index, com.google.cloud.discoveryengine.v1.Ranking * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1653,7 +1653,7 @@ public Builder setRecords( * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1678,7 +1678,7 @@ public Builder addRecords(com.google.cloud.discoveryengine.v1.RankingRecord valu * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1703,7 +1703,7 @@ public Builder addRecords(int index, com.google.cloud.discoveryengine.v1.Ranking * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1726,7 +1726,7 @@ public Builder addRecords( * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1749,7 +1749,7 @@ public Builder addRecords( * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1772,7 +1772,7 @@ public Builder addAllRecords( * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1794,7 +1794,7 @@ public Builder clearRecords() { * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1816,7 +1816,7 @@ public Builder removeRecords(int index) { * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1831,7 +1831,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecord.Builder getRecordsBuild * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1851,7 +1851,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecordOrBuilder getRecordsOrBu * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1871,7 +1871,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecordOrBuilder getRecordsOrBu * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1887,7 +1887,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecord.Builder addRecordsBuild * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * @@ -1904,7 +1904,7 @@ public com.google.cloud.discoveryengine.v1.RankingRecord.Builder addRecordsBuild * * *
-     * Required. A list of records to rank. At most 200 records to rank.
+     * Required. A list of records to rank.
      * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java index 36c30c1f8fbb..d87a59f349c9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankRequestOrBuilder.java @@ -138,7 +138,7 @@ public interface RankRequestOrBuilder * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -151,7 +151,7 @@ public interface RankRequestOrBuilder * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -164,7 +164,7 @@ public interface RankRequestOrBuilder * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -177,7 +177,7 @@ public interface RankRequestOrBuilder * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * @@ -191,7 +191,7 @@ public interface RankRequestOrBuilder * * *
-   * Required. A list of records to rank. At most 200 records to rank.
+   * Required. A list of records to rank.
    * 
* * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceProto.java index 1e67ad8999af..545d050f4ae3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceProto.java @@ -91,18 +91,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"O\n" + "\014RankResponse\022?\n" + "\007records\030\005" - + " \003(\0132..google.cloud.discoveryengine.v1.RankingRecord2\225\002\n" + + " \003(\0132..google.cloud.discoveryengine.v1.RankingRecord2\223\003\n" + "\013RankService\022\261\001\n" + "\004Rank\022,.google.cloud.discoveryengine.v1.RankRequest\032-.google.cloud.discover" + "yengine.v1.RankResponse\"L\202\323\344\223\002F\"A/v1/{ra" + "nking_config=projects/*/locations/*/rank" - + "ingConfigs/*}:rank:\001*\032R\312A\036discoveryengin" - + "e.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\203\002\n" - + "#com.google.cloud.discoveryengine.v1B\020RankServicePr" - + "otoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryengi" - + "nepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Di" - + "scoveryEngine.V1\312\002\037Google\\Cloud\\Discover" - + "yEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "ingConfigs/*}:rank:\001*\032\317\001\312A\036discoveryengi" + + "ne.googleapis.com\322A\252\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.read" + + "write,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\203\002\n" + + "#com.google.cloud.discoveryengine.v1B\020RankSer" + + "viceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discove" + + "ryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cl" + + "oud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Di" + + "scoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecord.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecord.java index a82ca459fd67..f1eeef8f0b1a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecord.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecord.java @@ -256,8 +256,8 @@ public com.google.protobuf.ByteString getContentBytes() { * *
    * The score of this record based on the given query and selected model.
-   * The score will be rounded to 2 decimal places. If the score is close to 0,
-   * it will be rounded to 0.0001 to avoid returning unset.
+   * The score will be rounded to 4 decimal places. If the score is close to 0,
+   * it will be rounded to 0.00001 to avoid returning unset.
    * 
* * float score = 4; @@ -1031,8 +1031,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * *
      * The score of this record based on the given query and selected model.
-     * The score will be rounded to 2 decimal places. If the score is close to 0,
-     * it will be rounded to 0.0001 to avoid returning unset.
+     * The score will be rounded to 4 decimal places. If the score is close to 0,
+     * it will be rounded to 0.00001 to avoid returning unset.
      * 
* * float score = 4; @@ -1049,8 +1049,8 @@ public float getScore() { * *
      * The score of this record based on the given query and selected model.
-     * The score will be rounded to 2 decimal places. If the score is close to 0,
-     * it will be rounded to 0.0001 to avoid returning unset.
+     * The score will be rounded to 4 decimal places. If the score is close to 0,
+     * it will be rounded to 0.00001 to avoid returning unset.
      * 
* * float score = 4; @@ -1071,8 +1071,8 @@ public Builder setScore(float value) { * *
      * The score of this record based on the given query and selected model.
-     * The score will be rounded to 2 decimal places. If the score is close to 0,
-     * it will be rounded to 0.0001 to avoid returning unset.
+     * The score will be rounded to 4 decimal places. If the score is close to 0,
+     * it will be rounded to 0.00001 to avoid returning unset.
      * 
* * float score = 4; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecordOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecordOrBuilder.java index d98c040f36f6..22e9dfc7de62 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecordOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingRecordOrBuilder.java @@ -125,8 +125,8 @@ public interface RankingRecordOrBuilder * *
    * The score of this record based on the given query and selected model.
-   * The score will be rounded to 2 decimal places. If the score is close to 0,
-   * it will be rounded to 0.0001 to avoid returning unset.
+   * The score will be rounded to 4 decimal places. If the score is close to 0,
+   * it will be rounded to 0.00001 to avoid returning unset.
    * 
* * float score = 4; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceProto.java index f6a8a4324b04..ccdc15dff55f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceProto.java @@ -105,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.discoveryengine.v1.RecommendRe" + "sponse.RecommendationResult.MetadataEntr" + "y\032G\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" - + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\217\004\n\025R" + + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\215\005\n\025R" + "ecommendationService\022\241\003\n\tRecommend\0221.goo" + "gle.cloud.discoveryengine.v1.RecommendRe" + "quest\0322.google.cloud.discoveryengine.v1." @@ -117,16 +117,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "igs/*}:recommend:\001*Zc\"^/v1/{serving_conf" + "ig=projects/*/locations/*/collections/*/" + "engines/*/servingConfigs/*}:recommend:\001*" - + "\032R\312A\036discoveryengine.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\215\002\n#com.google.cloud.discoveryengin" - + "e.v1B\032RecommendationServiceProtoP\001ZMclou" - + "d.google.com/go/discoveryengine/apiv1/di" - + "scoveryenginepb;discoveryenginepb\242\002\017DISC" - + "OVERYENGINE\252\002\037Google.Cloud.DiscoveryEngi" - + "ne.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352" - + "\002\"Google::Cloud::DiscoveryEngine::V1b\006pr" - + "oto3" + + "\032\317\001\312A\036discoveryengine.googleapis.com\322A\252\001" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/d" + + "iscoveryengine.readwrite,https://www.goo" + + "gleapis.com/auth/discoveryengine.serving" + + ".readwriteB\215\002\n#com.google.cloud.discover" + + "yengine.v1B\032RecommendationServiceProtoP\001" + + "ZMcloud.google.com/go/discoveryengine/ap" + + "iv1/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discove" + + "ryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEngi" + + "ne\\V1\352\002\"Google::Cloud::DiscoveryEngine::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequest.java new file mode 100644 index 000000000000..cc12f4bbf708 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequest.java @@ -0,0 +1,1078 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.RetractLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.RetractLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class RetractLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) + RetractLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RetractLicenseConfigRequest"); + } + + // Use RetractLicenseConfigRequest.newBuilder() to construct. + private RetractLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetractLicenseConfigRequest() { + billingAccountLicenseConfig_ = ""; + licenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.Builder.class); + } + + public static final int BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingAccountLicenseConfig_ = ""; + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + @java.lang.Override + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_CONFIG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+   * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+   * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_RETRACT_FIELD_NUMBER = 3; + private boolean fullRetract_ = false; + + /** + * + * + *
+   * Optional. If set to true, retract the entire license config. Otherwise,
+   * retract the specified license count.
+   * 
+ * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullRetract. + */ + @java.lang.Override + public boolean getFullRetract() { + return fullRetract_; + } + + public static final int LICENSE_COUNT_FIELD_NUMBER = 4; + private long licenseCount_ = 0L; + + /** + * + * + *
+   * Optional. The number of licenses to retract. Only used when full_retract is
+   * false.
+   * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, billingAccountLicenseConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, licenseConfig_); + } + if (fullRetract_ != false) { + output.writeBool(3, fullRetract_); + } + if (licenseCount_ != 0L) { + output.writeInt64(4, licenseCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(1, billingAccountLicenseConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, licenseConfig_); + } + if (fullRetract_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullRetract_); + } + if (licenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, licenseCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) obj; + + if (!getBillingAccountLicenseConfig().equals(other.getBillingAccountLicenseConfig())) + return false; + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + if (getFullRetract() != other.getFullRetract()) return false; + if (getLicenseCount() != other.getLicenseCount()) 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) + BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBillingAccountLicenseConfig().hashCode(); + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + hash = (37 * hash) + FULL_RETRACT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullRetract()); + hash = (37 * hash) + LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLicenseCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.RetractLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.RetractLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + billingAccountLicenseConfig_ = ""; + licenseConfig_ = ""; + fullRetract_ = false; + licenseCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.billingAccountLicenseConfig_ = billingAccountLicenseConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseConfig_ = licenseConfig_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fullRetract_ = fullRetract_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.licenseCount_ = licenseCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest.getDefaultInstance()) + return this; + if (!other.getBillingAccountLicenseConfig().isEmpty()) { + billingAccountLicenseConfig_ = other.billingAccountLicenseConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLicenseConfig().isEmpty()) { + licenseConfig_ = other.licenseConfig_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getFullRetract() != false) { + setFullRetract(other.getFullRetract()); + } + if (other.getLicenseCount() != 0L) { + setLicenseCount(other.getLicenseCount()); + } + 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: + { + billingAccountLicenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + licenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + fullRetract_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + licenseCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 billingAccountLicenseConfig_ = ""; + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBillingAccountLicenseConfig() { + billingAccountLicenseConfig_ = getDefaultInstance().getBillingAccountLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of [BillingAccountLicenseConfig][].
+     *
+     * Format:
+     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+     * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+     * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+     * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+     * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+     * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfig() { + licenseConfig_ = getDefaultInstance().getLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Full resource name of
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+     *
+     * Format:
+     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+     * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean fullRetract_; + + /** + * + * + *
+     * Optional. If set to true, retract the entire license config. Otherwise,
+     * retract the specified license count.
+     * 
+ * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullRetract. + */ + @java.lang.Override + public boolean getFullRetract() { + return fullRetract_; + } + + /** + * + * + *
+     * Optional. If set to true, retract the entire license config. Otherwise,
+     * retract the specified license count.
+     * 
+ * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fullRetract to set. + * @return This builder for chaining. + */ + public Builder setFullRetract(boolean value) { + + fullRetract_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, retract the entire license config. Otherwise,
+     * retract the specified license count.
+     * 
+ * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFullRetract() { + bitField0_ = (bitField0_ & ~0x00000004); + fullRetract_ = false; + onChanged(); + return this; + } + + private long licenseCount_; + + /** + * + * + *
+     * Optional. The number of licenses to retract. Only used when full_retract is
+     * false.
+     * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + /** + * + * + *
+     * Optional. The number of licenses to retract. Only used when full_retract is
+     * false.
+     * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The licenseCount to set. + * @return This builder for chaining. + */ + public Builder setLicenseCount(long value) { + + licenseCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The number of licenses to retract. Only used when full_retract is
+     * false.
+     * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000008); + licenseCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetractLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..6acd11a75464 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface RetractLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.RetractLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + java.lang.String getBillingAccountLicenseConfig(); + + /** + * + * + *
+   * Required. Full resource name of [BillingAccountLicenseConfig][].
+   *
+   * Format:
+   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
+   * 
+ * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes(); + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+   * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + java.lang.String getLicenseConfig(); + + /** + * + * + *
+   * Required. Full resource name of
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig].
+   *
+   * Format:
+   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
+   * 
+ * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + com.google.protobuf.ByteString getLicenseConfigBytes(); + + /** + * + * + *
+   * Optional. If set to true, retract the entire license config. Otherwise,
+   * retract the specified license count.
+   * 
+ * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullRetract. + */ + boolean getFullRetract(); + + /** + * + * + *
+   * Optional. The number of licenses to retract. Only used when full_retract is
+   * false.
+   * 
+ * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseCount. + */ + long getLicenseCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponse.java new file mode 100644 index 000000000000..2f13909592a8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponse.java @@ -0,0 +1,713 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Response message for
+ * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.RetractLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.RetractLicenseConfigResponse} + */ +@com.google.protobuf.Generated +public final class RetractLicenseConfigResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) + RetractLicenseConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RetractLicenseConfigResponse"); + } + + // Use RetractLicenseConfigResponse.newBuilder() to construct. + private RetractLicenseConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetractLicenseConfigResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + + /** + * + * + *
+   * The updated LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The updated LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
+   * The updated LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + 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, getLicenseConfig()); + } + 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, getLicenseConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse other = + (com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) obj; + + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.RetractLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.RetractLicenseConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_RetractLicenseConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse build() { + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse buildPartial() { + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse result = + new com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse other) { + if (other + == com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse.getDefaultInstance()) + return this; + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + 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( + internalGetLicenseConfigFieldBuilder().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.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
+     * The updated LicenseConfig.
+     * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) + private static final com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse(); + } + + public static com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetractLicenseConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponseOrBuilder.java new file mode 100644 index 000000000000..6f5d824ae4fb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RetractLicenseConfigResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface RetractLicenseConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.RetractLicenseConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The updated LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
+   * The updated LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig(); + + /** + * + * + *
+   * The updated LicenseConfig.
+   * 
+ * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1; + */ + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java index 90b2155e3d38..ec2a82182dca 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceProto.java @@ -120,7 +120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"x\n\024DeleteSchemaMetadata\022/\n\013create_time\030" + "\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp2\261\r\n\rSchemaService\022\374\001\n\tGetSchema\0221.goo" + + "mp2\257\016\n\rSchemaService\022\374\001\n\tGetSchema\0221.goo" + "gle.cloud.discoveryengine.v1.GetSchemaRe" + "quest\032\'.google.cloud.discoveryengine.v1." + "Schema\"\222\001\332A\004name\202\323\344\223\002\204\001\0228/v1/{name=proje" @@ -160,16 +160,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Metadata\332A\004name\202\323\344\223\002\204\001*8/v1/{name=projec" + "ts/*/locations/*/dataStores/*/schemas/*}" + "ZH*F/v1/{name=projects/*/locations/*/col" - + "lections/*/dataStores/*/schemas/*}\032R\312A\036d" - + "iscoveryengine.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\205" - + "\002\n#com.google.cloud.discoveryengine.v1B\022" - + "SchemaServiceProtoP\001ZMcloud.google.com/g" - + "o/discoveryengine/apiv1/discoveryenginep" - + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037" - + "Google.Cloud.DiscoveryEngine.V1\312\002\037Google" - + "\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Clou" - + "d::DiscoveryEngine::V1b\006proto3" + + "lections/*/dataStores/*/schemas/*}\032\317\001\312A\036" + + "discoveryengine.googleapis.com\322A\252\001https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/discove" + + "ryengine.readwrite,https://www.googleapi" + + "s.com/auth/discoveryengine.serving.readw" + + "riteB\205\002\n#com.google.cloud.discoveryengin" + + "e.v1B\022SchemaServiceProtoP\001ZMcloud.google" + + ".com/go/discoveryengine/apiv1/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037" + + "Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Google" + + "::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java index a09e7840c5c7..da2f91b063c4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfo.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The user's search query.
+   * Optional. The user's search query.
    *
    * See
    * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -97,7 +97,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchQuery. */ @@ -118,7 +118,7 @@ public java.lang.String getSearchQuery() { * * *
-   * The user's search query.
+   * Optional. The user's search query.
    *
    * See
    * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -134,7 +134,7 @@ public java.lang.String getSearchQuery() {
    * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchQuery. */ @@ -648,7 +648,7 @@ public Builder mergeFrom( * * *
-     * The user's search query.
+     * Optional. The user's search query.
      *
      * See
      * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -664,7 +664,7 @@ public Builder mergeFrom(
      * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchQuery. */ @@ -684,7 +684,7 @@ public java.lang.String getSearchQuery() { * * *
-     * The user's search query.
+     * Optional. The user's search query.
      *
      * See
      * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -700,7 +700,7 @@ public java.lang.String getSearchQuery() {
      * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchQuery. */ @@ -720,7 +720,7 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { * * *
-     * The user's search query.
+     * Optional. The user's search query.
      *
      * See
      * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -736,7 +736,7 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
      * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The searchQuery to set. * @return This builder for chaining. @@ -755,7 +755,7 @@ public Builder setSearchQuery(java.lang.String value) { * * *
-     * The user's search query.
+     * Optional. The user's search query.
      *
      * See
      * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -771,7 +771,7 @@ public Builder setSearchQuery(java.lang.String value) {
      * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -786,7 +786,7 @@ public Builder clearSearchQuery() { * * *
-     * The user's search query.
+     * Optional. The user's search query.
      *
      * See
      * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -802,7 +802,7 @@ public Builder clearSearchQuery() {
      * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for searchQuery to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java index fc8c6e35315d..958d24b4d21e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchInfoOrBuilder.java @@ -30,7 +30,7 @@ public interface SearchInfoOrBuilder * * *
-   * The user's search query.
+   * Optional. The user's search query.
    *
    * See
    * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -46,7 +46,7 @@ public interface SearchInfoOrBuilder
    * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The searchQuery. */ @@ -56,7 +56,7 @@ public interface SearchInfoOrBuilder * * *
-   * The user's search query.
+   * Optional. The user's search query.
    *
    * See
    * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
@@ -72,7 +72,7 @@ public interface SearchInfoOrBuilder
    * field. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string search_query = 1; + * string search_query = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for searchQuery. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java index 489e719450c5..421c5b74c54a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequest.java @@ -37223,6 +37223,12 @@ public int getOneBoxPageSize() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -37246,6 +37252,12 @@ public int getOneBoxPageSize() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -37270,6 +37282,12 @@ public int getOneBoxPageSize() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -37292,6 +37310,12 @@ public int getDataStoreSpecsCount() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -37315,6 +37339,12 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec getDataSt * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -42596,6 +42626,12 @@ private void ensureDataStoreSpecsIsMutable() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -42622,6 +42658,12 @@ private void ensureDataStoreSpecsIsMutable() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -42647,6 +42689,12 @@ public int getDataStoreSpecsCount() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -42673,6 +42721,12 @@ public com.google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec getDataSt * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. *
* * @@ -42705,6 +42759,12 @@ public Builder setDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42735,6 +42795,12 @@ public Builder setDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42767,6 +42833,12 @@ public Builder addDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42799,6 +42871,12 @@ public Builder addDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42828,6 +42906,12 @@ public Builder addDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42858,6 +42942,12 @@ public Builder addDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42889,6 +42979,12 @@ public Builder addAllDataStoreSpecs( * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42917,6 +43013,12 @@ public Builder clearDataStoreSpecs() { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42945,6 +43047,12 @@ public Builder removeDataStoreSpecs(int index) { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42967,6 +43075,12 @@ public Builder removeDataStoreSpecs(int index) { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -42993,6 +43107,12 @@ public Builder removeDataStoreSpecs(int index) { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -43020,6 +43140,12 @@ public Builder removeDataStoreSpecs(int index) { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -43044,6 +43170,12 @@ public Builder removeDataStoreSpecs(int index) { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -43069,6 +43201,12 @@ public Builder removeDataStoreSpecs(int index) { * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java index 0dfeb94e9fdc..80f4e19f9549 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchRequestOrBuilder.java @@ -390,6 +390,12 @@ public interface SearchRequestOrBuilder * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -410,6 +416,12 @@ public interface SearchRequestOrBuilder * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -429,6 +441,12 @@ public interface SearchRequestOrBuilder * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -448,6 +466,12 @@ public interface SearchRequestOrBuilder * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * @@ -468,6 +492,12 @@ public interface SearchRequestOrBuilder * stores. For engines with a single data store, the specs directly under * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be * used. + * + * On an engine with multiple data stores, this field is optional. If it's + * empty, all of the engine's data stores are searched (blended search). + * Unless it specifies exactly one data store, some request fields, such as + * `order_by` and `query_expansion_spec`, aren't supported and return an + * `INVALID_ARGUMENT` error. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceProto.java index 715eaef27ce5..88bdf7e1507a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceProto.java @@ -114,7 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"|\n\030TrainCu" + "stomModelMetadata\022/\n\013create_time\030\001 \001(\0132\032" + ".google.protobuf.Timestamp\022/\n\013update_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp2\222\005\n\023" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp2\220\006\n\023" + "SearchTuningService\022\303\002\n\020TrainCustomModel" + "\0228.google.cloud.discoveryengine.v1.Train" + "CustomModelRequest\032\035.google.longrunning." @@ -129,16 +129,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "discoveryengine.v1.ListCustomModelsRespo" + "nse\"W\202\323\344\223\002Q\022O/v1/{data_store=projects/*/" + "locations/*/collections/*/dataStores/*}/" - + "customModels\032R\312A\036discoveryengine.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\213\002\n#com.google.cloud.di" - + "scoveryengine.v1B\030SearchTuningServicePro" - + "toP\001ZMcloud.google.com/go/discoveryengin" - + "e/apiv1/discoveryenginepb;discoveryengin" - + "epb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Dis" - + "coveryEngine.V1\312\002\037Google\\Cloud\\Discovery" - + "Engine\\V1\352\002\"Google::Cloud::DiscoveryEngi" - + "ne::V1b\006proto3" + + "customModels\032\317\001\312A\036discoveryengine.google" + + "apis.com\322A\252\001https://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/discoveryengine.readwrite,htt" + + "ps://www.googleapis.com/auth/discoveryen" + + "gine.serving.readwriteB\213\002\n#com.google.cl" + + "oud.discoveryengine.v1B\030SearchTuningServ" + + "iceProtoP\001ZMcloud.google.com/go/discover" + + "yengine/apiv1/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clo" + + "ud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Dis" + + "coveryEngine\\V1\352\002\"Google::Cloud::Discove" + + "ryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfig.java index 42347ec579ef..c693db2363cc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfig.java @@ -3758,6 +3758,66 @@ public com.google.protobuf.ByteString getPromoteControlIdsBytes(int index) { return promoteControlIds_.getByteString(index); } + public static final int ANSWER_GENERATION_SPEC_FIELD_NUMBER = 27; + private com.google.cloud.discoveryengine.v1.AnswerGenerationSpec answerGenerationSpec_; + + /** + * + * + *
+   * Optional. The specification for answer generation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasAnswerGenerationSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The specification for answer generation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec getAnswerGenerationSpec() { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } + + /** + * + * + *
+   * Optional. The specification for answer generation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder + getAnswerGenerationSpecOrBuilder() { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3834,6 +3894,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < promoteControlIds_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 26, promoteControlIds_.getRaw(i)); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(27, getAnswerGenerationSpec()); + } getUnknownFields().writeTo(output); } @@ -3951,6 +4014,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPromoteControlIdsList().size(); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(27, getAnswerGenerationSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3991,6 +4058,10 @@ public boolean equals(final java.lang.Object obj) { if (!getReplacementControlIdsList().equals(other.getReplacementControlIdsList())) return false; if (!getIgnoreControlIdsList().equals(other.getIgnoreControlIdsList())) return false; if (!getPromoteControlIdsList().equals(other.getPromoteControlIdsList())) return false; + if (hasAnswerGenerationSpec() != other.hasAnswerGenerationSpec()) return false; + if (hasAnswerGenerationSpec()) { + if (!getAnswerGenerationSpec().equals(other.getAnswerGenerationSpec())) return false; + } if (!getVerticalConfigCase().equals(other.getVerticalConfigCase())) return false; switch (verticalConfigCase_) { case 7: @@ -4069,6 +4140,10 @@ public int hashCode() { hash = (37 * hash) + PROMOTE_CONTROL_IDS_FIELD_NUMBER; hash = (53 * hash) + getPromoteControlIdsList().hashCode(); } + if (hasAnswerGenerationSpec()) { + hash = (37 * hash) + ANSWER_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getAnswerGenerationSpec().hashCode(); + } switch (verticalConfigCase_) { case 7: hash = (37 * hash) + MEDIA_CONFIG_FIELD_NUMBER; @@ -4227,6 +4302,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); + internalGetAnswerGenerationSpecFieldBuilder(); } } @@ -4265,6 +4341,11 @@ public Builder clear() { replacementControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); ignoreControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); promoteControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + answerGenerationSpec_ = null; + if (answerGenerationSpecBuilder_ != null) { + answerGenerationSpecBuilder_.dispose(); + answerGenerationSpecBuilder_ = null; + } verticalConfigCase_ = 0; verticalConfig_ = null; return this; @@ -4367,6 +4448,13 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ServingConfig res promoteControlIds_.makeImmutable(); result.promoteControlIds_ = promoteControlIds_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.answerGenerationSpec_ = + answerGenerationSpecBuilder_ == null + ? answerGenerationSpec_ + : answerGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -4518,6 +4606,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ServingConfig other } onChanged(); } + if (other.hasAnswerGenerationSpec()) { + mergeAnswerGenerationSpec(other.getAnswerGenerationSpec()); + } switch (other.getVerticalConfigCase()) { case MEDIA_CONFIG: { @@ -4687,6 +4778,13 @@ public Builder mergeFrom( promoteControlIds_.add(s); break; } // case 210 + case 218: + { + input.readMessage( + internalGetAnswerGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 218 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8596,6 +8694,224 @@ public Builder addPromoteControlIdsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1.AnswerGenerationSpec answerGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder> + answerGenerationSpecBuilder_; + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationSpec field is set. + */ + public boolean hasAnswerGenerationSpec() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationSpec. + */ + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec getAnswerGenerationSpec() { + if (answerGenerationSpecBuilder_ == null) { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } else { + return answerGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerGenerationSpec( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec value) { + if (answerGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answerGenerationSpec_ = value; + } else { + answerGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerGenerationSpec( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder builderForValue) { + if (answerGenerationSpecBuilder_ == null) { + answerGenerationSpec_ = builderForValue.build(); + } else { + answerGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAnswerGenerationSpec( + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec value) { + if (answerGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && answerGenerationSpec_ != null + && answerGenerationSpec_ + != com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance()) { + getAnswerGenerationSpecBuilder().mergeFrom(value); + } else { + answerGenerationSpec_ = value; + } + } else { + answerGenerationSpecBuilder_.mergeFrom(value); + } + if (answerGenerationSpec_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAnswerGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00080000); + answerGenerationSpec_ = null; + if (answerGenerationSpecBuilder_ != null) { + answerGenerationSpecBuilder_.dispose(); + answerGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder + getAnswerGenerationSpecBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetAnswerGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder + getAnswerGenerationSpecOrBuilder() { + if (answerGenerationSpecBuilder_ != null) { + return answerGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } + } + + /** + * + * + *
+     * Optional. The specification for answer generation.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder> + internalGetAnswerGenerationSpecFieldBuilder() { + if (answerGenerationSpecBuilder_ == null) { + answerGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder>( + getAnswerGenerationSpec(), getParentForChildren(), isClean()); + answerGenerationSpec_ = null; + } + return answerGenerationSpecBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ServingConfig) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigOrBuilder.java index 4db09e8088e7..9186fe8ea330 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigOrBuilder.java @@ -1117,5 +1117,49 @@ public interface ServingConfigOrBuilder */ com.google.protobuf.ByteString getPromoteControlIdsBytes(int index); + /** + * + * + *
+   * Optional. The specification for answer generation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationSpec field is set. + */ + boolean hasAnswerGenerationSpec(); + + /** + * + * + *
+   * Optional. The specification for answer generation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationSpec. + */ + com.google.cloud.discoveryengine.v1.AnswerGenerationSpec getAnswerGenerationSpec(); + + /** + * + * + *
+   * Optional. The specification for answer generation.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.AnswerGenerationSpecOrBuilder + getAnswerGenerationSpecOrBuilder(); + com.google.cloud.discoveryengine.v1.ServingConfig.VerticalConfigCase getVerticalConfigCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigProto.java index b8d7fc508c7b..30a7947a0535 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1_ServingConfig_GenericConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_ServingConfig_GenericConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -66,7 +74,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gine.v1\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\032,google/clou" + "d/discoveryengine/v1/common.proto\0324google/cloud/discoveryengine/v1/search_servic" - + "e.proto\032\037google/protobuf/timestamp.proto\"\200\014\n\r" + + "e.proto\032\037google/protobuf/timestamp.proto\"\335\014\n\r" + "ServingConfig\022R\n" + "\014media_config\030\007 \001(\013" + "2:.google.cloud.discoveryengine.v1.ServingConfig.MediaConfigH\000\022V\n" @@ -91,7 +99,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026dissociate_control_ids\030\021 \003(\t\022\037\n" + "\027replacement_control_ids\030\022 \003(\t\022\032\n" + "\022ignore_control_ids\030\023 \003(\t\022\033\n" - + "\023promote_control_ids\030\032 \003(\t\032\370\001\n" + + "\023promote_control_ids\030\032 \003(\t\022[\n" + + "\026answer_generation_spec\030\033 \001" + + "(\01325.google.cloud.discoveryengine.v1.AnswerGenerationSpecB\004\342A\001\001\032\370\001\n" + "\013MediaConfig\022.\n" + "$content_watched_percentage_threshold\030\002 \001(\002H\000\022+\n" + "!content_watched_seconds_threshold\030\005 \001(\002H\000\022\033\n" @@ -100,20 +110,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035content_freshness_cutoff_days\030\004 \001(\005B\030\n" + "\026demote_content_watched\032n\n\r" + "GenericConfig\022]\n" - + "\023content_search_spec\030\001 \001(\0132@.google.clo" - + "ud.discoveryengine.v1.SearchRequest.ContentSearchSpec:\200\003\352A\374\002\n" - + ",discoveryengine.googleapis.com/ServingConfig\022_projects/{pr" - + "oject}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_conf" - + "ig}\022xprojects/{project}/locations/{location}/collections/{collection}/dataStores" - + "/{data_store}/servingConfigs/{serving_config}\022qprojects/{project}/locations/{loc" - + "ation}/collections/{collection}/engines/" - + "{engine}/servingConfigs/{serving_config}B\021\n" - + "\017vertical_configB\205\002\n" - + "#com.google.cloud.discoveryengine.v1B\022ServingConfigProtoP" - + "\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb" - + "\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discov" - + "eryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEng" - + "ine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "\023content_search_spec\030\001 \001(\013" + + "2@.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec:\200\003\352A\374\002\n" + + ",discoveryengine.googleapis.com/ServingConfig\022" + + "_projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/" + + "{serving_config}\022xprojects/{project}/locations/{location}/collections/{collectio" + + "n}/dataStores/{data_store}/servingConfigs/{serving_config}\022qprojects/{project}/l" + + "ocations/{location}/collections/{collect" + + "ion}/engines/{engine}/servingConfigs/{serving_config}B\021\n" + + "\017vertical_config\"\203\003\n" + + "\024AnswerGenerationSpec\022{\n" + + "\034user_defined_classifier_spec\030\001 \001(\0132O.google.cloud.discovery" + + "engine.v1.AnswerGenerationSpec.UserDefinedClassifierSpecB\004\342A\001\001\032\355\001\n" + + "\031UserDefinedClassifierSpec\022,\n" + + "\036enable_user_defined_classifier\030\001 \001(\010B\004\342A\001\001\022\026\n" + + "\010preamble\030\002 \001(\tB\004\342A\001\001\022\026\n" + + "\010model_id\030\003 \001(\tB\004\342A\001\001\022\031\n" + + "\013task_marker\030\004 \001(\tB\004\342A\001\001\022\023\n" + + "\005top_p\030\005 \001(\001B\004\342A\001\001\022\023\n" + + "\005top_k\030\006 \001(\003B\004\342A\001\001\022\031\n" + + "\013temperature\030\007 \001(\001B\004\342A\001\001\022\022\n" + + "\004seed\030\010 \001(\005B\004\342A\001\001B\205\002\n" + + "#com.google.cloud.discoveryengine.v1B\022ServingConfigPro" + + "toP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryengin" + + "epb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Dis" + + "coveryEngine.V1\312\002\037Google\\Cloud\\Discovery" + + "Engine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -150,6 +172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReplacementControlIds", "IgnoreControlIds", "PromoteControlIds", + "AnswerGenerationSpec", "VerticalConfig", }); internal_static_google_cloud_discoveryengine_v1_ServingConfig_MediaConfig_descriptor = @@ -173,6 +196,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ContentSearchSpec", }); + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor, + new java.lang.String[] { + "UserDefinedClassifierSpec", + }); + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor, + new java.lang.String[] { + "EnableUserDefinedClassifier", + "Preamble", + "ModelId", + "TaskMarker", + "TopP", + "TopK", + "Temperature", + "Seed", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceProto.java index b7e7378e4994..a39b18cdce4a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceProto.java @@ -40,10 +40,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1_UpdateServingConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1_UpdateServingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -59,34 +79,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\027google/api/client.proto\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\0324google/cloud/discoveryengine" - + "/v1/serving_config.proto\032 google/protobu" - + "f/field_mask.proto\"\233\001\n\032UpdateServingConf" - + "igRequest\022L\n\016serving_config\030\001 \001(\0132..goog" - + "le.cloud.discoveryengine.v1.ServingConfi" - + "gB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMask2\323\004\n\024ServingConfigServic" - + "e\022\346\003\n\023UpdateServingConfig\022;.google.cloud" - + ".discoveryengine.v1.UpdateServingConfigR" - + "equest\032..google.cloud.discoveryengine.v1" - + ".ServingConfig\"\341\002\332A\032serving_config,updat" - + "e_mask\202\323\344\223\002\275\0022N/v1/{serving_config.name=" - + "projects/*/locations/*/dataStores/*/serv" - + "ingConfigs/*}:\016serving_configZn2\\/v1/{se" - + "rving_config.name=projects/*/locations/*" - + "/collections/*/dataStores/*/servingConfi" - + "gs/*}:\016serving_configZk2Y/v1/{serving_co" - + "nfig.name=projects/*/locations/*/collect" - + "ions/*/engines/*/servingConfigs/*}:\016serv" - + "ing_config\032R\312A\036discoveryengine.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\214\002\n#com.google.cloud.disc" - + "overyengine.v1B\031ServingConfigServiceProt" - + "oP\001ZMcloud.google.com/go/discoveryengine" - + "/apiv1/discoveryenginepb;discoveryengine" - + "pb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Disc" - + "overyEngine.V1\312\002\037Google\\Cloud\\DiscoveryE" - + "ngine\\V1\352\002\"Google::Cloud::DiscoveryEngin" - + "e::V1b\006proto3" + + "/v1/serving_config.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\"\322\001\n\032CreateServingConfigRequest\022E" + + "\n\006parent\030\001 \001(\tB5\342A\001\002\372A.\022,discoveryengine" + + ".googleapis.com/ServingConfig\022L\n\016serving" + + "_config\030\002 \001(\0132..google.cloud.discoveryen" + + "gine.v1.ServingConfigB\004\342A\001\002\022\037\n\021serving_c" + + "onfig_id\030\003 \001(\tB\004\342A\001\002\"\233\001\n\032UpdateServingCo" + + "nfigRequest\022L\n\016serving_config\030\001 \001(\0132..go" + + "ogle.cloud.discoveryengine.v1.ServingCon" + + "figB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"a\n\032DeleteServingConfi" + + "gRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,discove" + + "ryengine.googleapis.com/ServingConfig\"^\n" + + "\027GetServingConfigRequest\022C\n\004name\030\001 \001(\tB5" + + "\342A\001\002\372A.\n,discoveryengine.googleapis.com/" + + "ServingConfig\"\225\001\n\031ListServingConfigsRequ" + + "est\022E\n\006parent\030\001 \001(\tB5\342A\001\002\372A.\022,discoverye" + + "ngine.googleapis.com/ServingConfig\022\027\n\tpa" + + "ge_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB" + + "\004\342A\001\001\"~\n\032ListServingConfigsResponse\022G\n\017s" + + "erving_configs\030\001 \003(\0132..google.cloud.disc" + + "overyengine.v1.ServingConfig\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\353\021\n\024ServingConfigService\022\306" + + "\003\n\023CreateServingConfig\022;.google.cloud.di" + + "scoveryengine.v1.CreateServingConfigRequ" + + "est\032..google.cloud.discoveryengine.v1.Se" + + "rvingConfig\"\301\002\332A\'parent,serving_config,s" + + "erving_config_id\202\323\344\223\002\220\002\"?/v1/{parent=pro" + + "jects/*/locations/*/dataStores/*}/servin" + + "gConfigs:\016serving_configZ_\"M/v1/{parent=" + + "projects/*/locations/*/collections/*/dat" + + "aStores/*}/servingConfigs:\016serving_confi" + + "gZ\\\"J/v1/{parent=projects/*/locations/*/" + + "collections/*/engines/*}/servingConfigs:" + + "\016serving_config\022\333\002\n\023DeleteServingConfig\022" + + ";.google.cloud.discoveryengine.v1.Delete" + + "ServingConfigRequest\032\026.google.protobuf.E" + + "mpty\"\356\001\332A\004name\202\323\344\223\002\340\001*?/v1/{name=project" + + "s/*/locations/*/dataStores/*/servingConf" + + "igs/*}ZO*M/v1/{name=projects/*/locations" + + "/*/collections/*/dataStores/*/servingCon" + + "figs/*}ZL*J/v1/{name=projects/*/location" + + "s/*/collections/*/engines/*/servingConfi" + + "gs/*}\022\346\003\n\023UpdateServingConfig\022;.google.c" + + "loud.discoveryengine.v1.UpdateServingCon" + + "figRequest\032..google.cloud.discoveryengin" + + "e.v1.ServingConfig\"\341\002\332A\032serving_config,u" + + "pdate_mask\202\323\344\223\002\275\0022N/v1/{serving_config.n" + + "ame=projects/*/locations/*/dataStores/*/" + + "servingConfigs/*}:\016serving_configZn2\\/v1" + + "/{serving_config.name=projects/*/locatio" + + "ns/*/collections/*/dataStores/*/servingC" + + "onfigs/*}:\016serving_configZk2Y/v1/{servin" + + "g_config.name=projects/*/locations/*/col" + + "lections/*/engines/*/servingConfigs/*}:\016" + + "serving_config\022\355\002\n\020GetServingConfig\0228.go" + + "ogle.cloud.discoveryengine.v1.GetServing" + + "ConfigRequest\032..google.cloud.discoveryen" + + "gine.v1.ServingConfig\"\356\001\332A\004name\202\323\344\223\002\340\001\022?" + + "/v1/{name=projects/*/locations/*/dataSto" + + "res/*/servingConfigs/*}ZO\022M/v1/{name=pro" + + "jects/*/locations/*/collections/*/dataSt" + + "ores/*/servingConfigs/*}ZL\022J/v1/{name=pr" + + "ojects/*/locations/*/collections/*/engin" + + "es/*/servingConfigs/*}\022\200\003\n\022ListServingCo" + + "nfigs\022:.google.cloud.discoveryengine.v1." + + "ListServingConfigsRequest\032;.google.cloud" + + ".discoveryengine.v1.ListServingConfigsRe" + + "sponse\"\360\001\332A\006parent\202\323\344\223\002\340\001\022?/v1/{parent=p" + + "rojects/*/locations/*/dataStores/*}/serv" + + "ingConfigsZO\022M/v1/{parent=projects/*/loc" + + "ations/*/collections/*/dataStores/*}/ser" + + "vingConfigsZL\022J/v1/{parent=projects/*/lo" + + "cations/*/collections/*/engines/*}/servi" + + "ngConfigs\032\317\001\312A\036discoveryengine.googleapi" + + "s.com\322A\252\001https://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/discoveryengine.readwrite,https:" + + "//www.googleapis.com/auth/discoveryengin" + + "e.serving.readwriteB\214\002\n#com.google.cloud" + + ".discoveryengine.v1B\031ServingConfigServic" + + "eProtoP\001ZMcloud.google.com/go/discoverye" + + "ngine/apiv1/discoveryenginepb;discoverye" + + "nginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud" + + ".DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disco" + + "veryEngine\\V1\352\002\"Google::Cloud::Discovery" + + "Engine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -97,22 +177,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.ServingConfigProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }); - internal_static_google_cloud_discoveryengine_v1_UpdateServingConfigRequest_descriptor = + internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_CreateServingConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ServingConfig", "ServingConfigId", + }); + internal_static_google_cloud_discoveryengine_v1_UpdateServingConfigRequest_descriptor = + getDescriptor().getMessageType(1); internal_static_google_cloud_discoveryengine_v1_UpdateServingConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_UpdateServingConfigRequest_descriptor, new java.lang.String[] { "ServingConfig", "UpdateMask", }); + internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_DeleteServingConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetServingConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_ListServingConfigsResponse_descriptor, + new java.lang.String[] { + "ServingConfigs", "NextPageToken", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.ServingConfigProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -121,6 +243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Session.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Session.java index c5a7c5887a49..5e2675726d21 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Session.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Session.java @@ -58,6 +58,7 @@ private Session() { userPseudoId_ = ""; turns_ = java.util.Collections.emptyList(); labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pendingAsyncAssistOperationId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -506,6 +507,19 @@ java.lang.String getQueryConfigOrDefault( *
*/ java.lang.String getQueryConfigOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. Indicates whether this turn is a live turn.
+     * 
+ * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The live. + */ + boolean getLive(); } /** @@ -970,6 +984,25 @@ public java.lang.String getQueryConfigOrThrow(java.lang.String key) { return map.get(key); } + public static final int LIVE_FIELD_NUMBER = 20; + private boolean live_ = false; + + /** + * + * + *
+     * Optional. Indicates whether this turn is a live turn.
+     * 
+ * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The live. + */ + @java.lang.Override + public boolean getLive() { + return live_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -998,6 +1031,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetQueryConfig(), QueryConfigDefaultEntryHolder.defaultEntry, 16); + if (live_ != false) { + output.writeBool(20, live_); + } getUnknownFields().writeTo(output); } @@ -1030,6 +1066,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, queryConfig__); } + if (live_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, live_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1060,6 +1099,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDetailedAssistAnswer().equals(other.getDetailedAssistAnswer())) return false; } if (!internalGetQueryConfig().equals(other.internalGetQueryConfig())) return false; + if (getLive() != other.getLive()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1089,6 +1129,8 @@ public int hashCode() { hash = (37 * hash) + QUERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + internalGetQueryConfig().hashCode(); } + hash = (37 * hash) + LIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLive()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1280,6 +1322,7 @@ public Builder clear() { detailedAssistAnswerBuilder_ = null; } internalGetMutableQueryConfig().clear(); + live_ = false; return this; } @@ -1340,6 +1383,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Session.Turn resu result.queryConfig_ = internalGetQueryConfig(); result.queryConfig_.makeImmutable(); } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.live_ = live_; + } result.bitField0_ |= to_bitField0_; } @@ -1372,6 +1418,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Session.Turn other) } internalGetMutableQueryConfig().mergeFrom(other.internalGetQueryConfig()); bitField0_ |= 0x00000010; + if (other.getLive() != false) { + setLive(other.getLive()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1437,6 +1486,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 130 + case 160: + { + live_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2545,6 +2600,62 @@ public Builder putAllQueryConfig(java.util.Map + * Optional. Indicates whether this turn is a live turn. + * + * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The live. + */ + @java.lang.Override + public boolean getLive() { + return live_; + } + + /** + * + * + *
+       * Optional. Indicates whether this turn is a live turn.
+       * 
+ * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The live to set. + * @return This builder for chaining. + */ + public Builder setLive(boolean value) { + + live_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Indicates whether this turn is a live turn.
+       * 
+ * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLive() { + bitField0_ = (bitField0_ & ~0x00000020); + live_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Session.Turn) } @@ -3074,6 +3185,69 @@ public boolean getIsPinned() { return isPinned_; } + public static final int PENDING_ASYNC_ASSIST_OPERATION_ID_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object pendingAsyncAssistOperationId_ = ""; + + /** + * + * + *
+   * Output only. Full resource name of an in-progress AsyncAssist operation for
+   * this session, e.g.
+   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+   * Set when the operation starts and cleared when it finishes.
+   * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pendingAsyncAssistOperationId. + */ + @java.lang.Override + public java.lang.String getPendingAsyncAssistOperationId() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingAsyncAssistOperationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Full resource name of an in-progress AsyncAssist operation for
+   * this session, e.g.
+   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+   * Set when the operation starts and cleared when it finishes.
+   * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for pendingAsyncAssistOperationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPendingAsyncAssistOperationIdBytes() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pendingAsyncAssistOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3115,6 +3289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < labels_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 9, labels_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pendingAsyncAssistOperationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 22, pendingAsyncAssistOperationId_); + } getUnknownFields().writeTo(output); } @@ -3156,6 +3333,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLabelsList().size(); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pendingAsyncAssistOperationId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 22, pendingAsyncAssistOperationId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3187,6 +3369,8 @@ public boolean equals(final java.lang.Object obj) { if (!getEndTime().equals(other.getEndTime())) return false; } if (getIsPinned() != other.getIsPinned()) return false; + if (!getPendingAsyncAssistOperationId().equals(other.getPendingAsyncAssistOperationId())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3224,6 +3408,8 @@ public int hashCode() { } hash = (37 * hash) + IS_PINNED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPinned()); + hash = (37 * hash) + PENDING_ASYNC_ASSIST_OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPendingAsyncAssistOperationId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3398,6 +3584,7 @@ public Builder clear() { endTimeBuilder_ = null; } isPinned_ = false; + pendingAsyncAssistOperationId_ = ""; return this; } @@ -3475,6 +3662,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.Session result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.isPinned_ = isPinned_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.pendingAsyncAssistOperationId_ = pendingAsyncAssistOperationId_; + } result.bitField0_ |= to_bitField0_; } @@ -3554,6 +3744,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Session other) { if (other.getIsPinned() != false) { setIsPinned(other.getIsPinned()); } + if (!other.getPendingAsyncAssistOperationId().isEmpty()) { + pendingAsyncAssistOperationId_ = other.pendingAsyncAssistOperationId_; + bitField0_ |= 0x00000200; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3644,6 +3839,12 @@ public Builder mergeFrom( labels_.add(s); break; } // case 74 + case 178: + { + pendingAsyncAssistOperationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5129,6 +5330,142 @@ public Builder clearIsPinned() { return this; } + private java.lang.Object pendingAsyncAssistOperationId_ = ""; + + /** + * + * + *
+     * Output only. Full resource name of an in-progress AsyncAssist operation for
+     * this session, e.g.
+     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+     * Set when the operation starts and cleared when it finishes.
+     * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pendingAsyncAssistOperationId. + */ + public java.lang.String getPendingAsyncAssistOperationId() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingAsyncAssistOperationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Full resource name of an in-progress AsyncAssist operation for
+     * this session, e.g.
+     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+     * Set when the operation starts and cleared when it finishes.
+     * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for pendingAsyncAssistOperationId. + */ + public com.google.protobuf.ByteString getPendingAsyncAssistOperationIdBytes() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pendingAsyncAssistOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Full resource name of an in-progress AsyncAssist operation for
+     * this session, e.g.
+     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+     * Set when the operation starts and cleared when it finishes.
+     * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pendingAsyncAssistOperationId to set. + * @return This builder for chaining. + */ + public Builder setPendingAsyncAssistOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pendingAsyncAssistOperationId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Full resource name of an in-progress AsyncAssist operation for
+     * this session, e.g.
+     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+     * Set when the operation starts and cleared when it finishes.
+     * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPendingAsyncAssistOperationId() { + pendingAsyncAssistOperationId_ = getDefaultInstance().getPendingAsyncAssistOperationId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Full resource name of an in-progress AsyncAssist operation for
+     * this session, e.g.
+     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+     * Set when the operation starts and cleared when it finishes.
+     * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for pendingAsyncAssistOperationId to set. + * @return This builder for chaining. + */ + public Builder setPendingAsyncAssistOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pendingAsyncAssistOperationId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Session) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfig.java new file mode 100644 index 000000000000..1ca667d2f7ba --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfig.java @@ -0,0 +1,1746 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Configuration for the session.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SessionConfig} + */ +@com.google.protobuf.Generated +public final class SessionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SessionConfig) + SessionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SessionConfig"); + } + + // Use SessionConfig.newBuilder() to construct. + private SessionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionConfig() { + sessionManagementPolicy_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SessionConfig.class, + com.google.cloud.discoveryengine.v1.SessionConfig.Builder.class); + } + + /** + * + * + *
+   * Session management policy that defines who will manage the
+   * session.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy} + */ + public enum SessionManagementPolicy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * SESSION_MANAGEMENT_POLICY_UNSPECIFIED = 0; + */ + SESSION_MANAGEMENT_POLICY_UNSPECIFIED(0), + /** + * + * + *
+     * The session will be managed by the customer.
+     * 
+ * + * NOT_MANAGED = 1; + */ + NOT_MANAGED(1), + /** + * + * + *
+     * Sessions multi-tenancy will be controlled by Google using 1P or 3P
+     * identity providers.
+     * 
+ * + * VERTEX_AI_MANAGED = 2; + */ + VERTEX_AI_MANAGED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SessionManagementPolicy"); + } + + /** + * + * + *
+     * Default value.
+     * 
+ * + * SESSION_MANAGEMENT_POLICY_UNSPECIFIED = 0; + */ + public static final int SESSION_MANAGEMENT_POLICY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The session will be managed by the customer.
+     * 
+ * + * NOT_MANAGED = 1; + */ + public static final int NOT_MANAGED_VALUE = 1; + + /** + * + * + *
+     * Sessions multi-tenancy will be controlled by Google using 1P or 3P
+     * identity providers.
+     * 
+ * + * VERTEX_AI_MANAGED = 2; + */ + public static final int VERTEX_AI_MANAGED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SessionManagementPolicy 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 SessionManagementPolicy forNumber(int value) { + switch (value) { + case 0: + return SESSION_MANAGEMENT_POLICY_UNSPECIFIED; + case 1: + return NOT_MANAGED; + case 2: + return VERTEX_AI_MANAGED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SessionManagementPolicy findValueByNumber(int number) { + return SessionManagementPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.SessionConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SessionManagementPolicy[] VALUES = values(); + + public static SessionManagementPolicy 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 SessionManagementPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy) + } + + public interface SessionTtlOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Defines the number of days for session TTL.
+     * 
+ * + * int32 days = 1; + * + * @return Whether the days field is set. + */ + boolean hasDays(); + + /** + * + * + *
+     * Defines the number of days for session TTL.
+     * 
+ * + * int32 days = 1; + * + * @return The days. + */ + int getDays(); + + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.TimeInfoCase getTimeInfoCase(); + } + + /** + * + * + *
+   * Defines the TTL for sessions.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SessionConfig.SessionTtl} + */ + public static final class SessionTtl extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) + SessionTtlOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SessionTtl"); + } + + // Use SessionTtl.newBuilder() to construct. + private SessionTtl(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionTtl() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.class, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder.class); + } + + private int timeInfoCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object timeInfo_; + + public enum TimeInfoCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DAYS(1), + TIMEINFO_NOT_SET(0); + private final int value; + + private TimeInfoCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TimeInfoCase valueOf(int value) { + return forNumber(value); + } + + public static TimeInfoCase forNumber(int value) { + switch (value) { + case 1: + return DAYS; + case 0: + return TIMEINFO_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TimeInfoCase getTimeInfoCase() { + return TimeInfoCase.forNumber(timeInfoCase_); + } + + public static final int DAYS_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Defines the number of days for session TTL.
+     * 
+ * + * int32 days = 1; + * + * @return Whether the days field is set. + */ + @java.lang.Override + public boolean hasDays() { + return timeInfoCase_ == 1; + } + + /** + * + * + *
+     * Defines the number of days for session TTL.
+     * 
+ * + * int32 days = 1; + * + * @return The days. + */ + @java.lang.Override + public int getDays() { + if (timeInfoCase_ == 1) { + return (java.lang.Integer) timeInfo_; + } + return 0; + } + + 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 (timeInfoCase_ == 1) { + output.writeInt32(1, (int) ((java.lang.Integer) timeInfo_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeInfoCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 1, (int) ((java.lang.Integer) timeInfo_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl other = + (com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) obj; + + if (!getTimeInfoCase().equals(other.getTimeInfoCase())) return false; + switch (timeInfoCase_) { + case 1: + if (getDays() != other.getDays()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (timeInfoCase_) { + case 1: + hash = (37 * hash) + DAYS_FIELD_NUMBER; + hash = (53 * hash) + getDays(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Defines the TTL for sessions.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SessionConfig.SessionTtl} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.class, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeInfoCase_ = 0; + timeInfo_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_SessionTtl_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl build() { + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl buildPartial() { + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl result = + new com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl result) { + result.timeInfoCase_ = timeInfoCase_; + result.timeInfo_ = this.timeInfo_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl other) { + if (other + == com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.getDefaultInstance()) + return this; + switch (other.getTimeInfoCase()) { + case DAYS: + { + setDays(other.getDays()); + break; + } + case TIMEINFO_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + timeInfo_ = input.readInt32(); + timeInfoCase_ = 1; + 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 timeInfoCase_ = 0; + private java.lang.Object timeInfo_; + + public TimeInfoCase getTimeInfoCase() { + return TimeInfoCase.forNumber(timeInfoCase_); + } + + public Builder clearTimeInfo() { + timeInfoCase_ = 0; + timeInfo_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Defines the number of days for session TTL.
+       * 
+ * + * int32 days = 1; + * + * @return Whether the days field is set. + */ + public boolean hasDays() { + return timeInfoCase_ == 1; + } + + /** + * + * + *
+       * Defines the number of days for session TTL.
+       * 
+ * + * int32 days = 1; + * + * @return The days. + */ + public int getDays() { + if (timeInfoCase_ == 1) { + return (java.lang.Integer) timeInfo_; + } + return 0; + } + + /** + * + * + *
+       * Defines the number of days for session TTL.
+       * 
+ * + * int32 days = 1; + * + * @param value The days to set. + * @return This builder for chaining. + */ + public Builder setDays(int value) { + + timeInfoCase_ = 1; + timeInfo_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Defines the number of days for session TTL.
+       * 
+ * + * int32 days = 1; + * + * @return This builder for chaining. + */ + public Builder clearDays() { + if (timeInfoCase_ == 1) { + timeInfoCase_ = 0; + timeInfo_ = null; + onChanged(); + } + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SessionConfig.SessionTtl) + private static final com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl(); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionTtl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SESSION_MANAGEMENT_POLICY_FIELD_NUMBER = 1; + private int sessionManagementPolicy_ = 0; + + /** + * + * + *
+   * Optional. Session management policy that defines who will manage the
+   * session.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sessionManagementPolicy. + */ + @java.lang.Override + public int getSessionManagementPolicyValue() { + return sessionManagementPolicy_; + } + + /** + * + * + *
+   * Optional. Session management policy that defines who will manage the
+   * session.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionManagementPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy + getSessionManagementPolicy() { + com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy result = + com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy.forNumber( + sessionManagementPolicy_); + return result == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy.UNRECOGNIZED + : result; + } + + public static final int SESSION_TTL_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl sessionTtl_; + + /** + * + * + *
+   * Optional. The TTL for the session. If unset, the default value is 60 days.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sessionTtl field is set. + */ + @java.lang.Override + public boolean hasSessionTtl() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The TTL for the session. If unset, the default value is 60 days.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionTtl. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl getSessionTtl() { + return sessionTtl_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.getDefaultInstance() + : sessionTtl_; + } + + /** + * + * + *
+   * Optional. The TTL for the session. If unset, the default value is 60 days.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder + getSessionTtlOrBuilder() { + return sessionTtl_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.getDefaultInstance() + : sessionTtl_; + } + + 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 (sessionManagementPolicy_ + != com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy + .SESSION_MANAGEMENT_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, sessionManagementPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSessionTtl()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sessionManagementPolicy_ + != com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy + .SESSION_MANAGEMENT_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sessionManagementPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionTtl()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SessionConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SessionConfig other = + (com.google.cloud.discoveryengine.v1.SessionConfig) obj; + + if (sessionManagementPolicy_ != other.sessionManagementPolicy_) return false; + if (hasSessionTtl() != other.hasSessionTtl()) return false; + if (hasSessionTtl()) { + if (!getSessionTtl().equals(other.getSessionTtl())) 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) + SESSION_MANAGEMENT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + sessionManagementPolicy_; + if (hasSessionTtl()) { + hash = (37 * hash) + SESSION_TTL_FIELD_NUMBER; + hash = (53 * hash) + getSessionTtl().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.SessionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for the session.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SessionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SessionConfig) + com.google.cloud.discoveryengine.v1.SessionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SessionConfig.class, + com.google.cloud.discoveryengine.v1.SessionConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.SessionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSessionTtlFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionManagementPolicy_ = 0; + sessionTtl_ = null; + if (sessionTtlBuilder_ != null) { + sessionTtlBuilder_.dispose(); + sessionTtlBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_SessionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig build() { + com.google.cloud.discoveryengine.v1.SessionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig buildPartial() { + com.google.cloud.discoveryengine.v1.SessionConfig result = + new com.google.cloud.discoveryengine.v1.SessionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.SessionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionManagementPolicy_ = sessionManagementPolicy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sessionTtl_ = sessionTtlBuilder_ == null ? sessionTtl_ : sessionTtlBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.SessionConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SessionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SessionConfig other) { + if (other == com.google.cloud.discoveryengine.v1.SessionConfig.getDefaultInstance()) + return this; + if (other.sessionManagementPolicy_ != 0) { + setSessionManagementPolicyValue(other.getSessionManagementPolicyValue()); + } + if (other.hasSessionTtl()) { + mergeSessionTtl(other.getSessionTtl()); + } + 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: + { + sessionManagementPolicy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetSessionTtlFieldBuilder().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 int sessionManagementPolicy_ = 0; + + /** + * + * + *
+     * Optional. Session management policy that defines who will manage the
+     * session.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sessionManagementPolicy. + */ + @java.lang.Override + public int getSessionManagementPolicyValue() { + return sessionManagementPolicy_; + } + + /** + * + * + *
+     * Optional. Session management policy that defines who will manage the
+     * session.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for sessionManagementPolicy to set. + * @return This builder for chaining. + */ + public Builder setSessionManagementPolicyValue(int value) { + sessionManagementPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Session management policy that defines who will manage the
+     * session.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionManagementPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy + getSessionManagementPolicy() { + com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy result = + com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy.forNumber( + sessionManagementPolicy_); + return result == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Session management policy that defines who will manage the
+     * session.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sessionManagementPolicy to set. + * @return This builder for chaining. + */ + public Builder setSessionManagementPolicy( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + sessionManagementPolicy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Session management policy that defines who will manage the
+     * session.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSessionManagementPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + sessionManagementPolicy_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl sessionTtl_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder> + sessionTtlBuilder_; + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sessionTtl field is set. + */ + public boolean hasSessionTtl() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionTtl. + */ + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl getSessionTtl() { + if (sessionTtlBuilder_ == null) { + return sessionTtl_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.getDefaultInstance() + : sessionTtl_; + } else { + return sessionTtlBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSessionTtl( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl value) { + if (sessionTtlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionTtl_ = value; + } else { + sessionTtlBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSessionTtl( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder builderForValue) { + if (sessionTtlBuilder_ == null) { + sessionTtl_ = builderForValue.build(); + } else { + sessionTtlBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSessionTtl( + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl value) { + if (sessionTtlBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sessionTtl_ != null + && sessionTtl_ + != com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl + .getDefaultInstance()) { + getSessionTtlBuilder().mergeFrom(value); + } else { + sessionTtl_ = value; + } + } else { + sessionTtlBuilder_.mergeFrom(value); + } + if (sessionTtl_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSessionTtl() { + bitField0_ = (bitField0_ & ~0x00000002); + sessionTtl_ = null; + if (sessionTtlBuilder_ != null) { + sessionTtlBuilder_.dispose(); + sessionTtlBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder + getSessionTtlBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSessionTtlFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder + getSessionTtlOrBuilder() { + if (sessionTtlBuilder_ != null) { + return sessionTtlBuilder_.getMessageOrBuilder(); + } else { + return sessionTtl_ == null + ? com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.getDefaultInstance() + : sessionTtl_; + } + } + + /** + * + * + *
+     * Optional. The TTL for the session. If unset, the default value is 60 days.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder> + internalGetSessionTtlFieldBuilder() { + if (sessionTtlBuilder_ == null) { + sessionTtlBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl.Builder, + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder>( + getSessionTtl(), getParentForChildren(), isClean()); + sessionTtl_ = null; + } + return sessionTtlBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SessionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SessionConfig) + private static final com.google.cloud.discoveryengine.v1.SessionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SessionConfig(); + } + + public static com.google.cloud.discoveryengine.v1.SessionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SessionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfigOrBuilder.java new file mode 100644 index 000000000000..87d291d4ab7f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionConfigOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface SessionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SessionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Session management policy that defines who will manage the
+   * session.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sessionManagementPolicy. + */ + int getSessionManagementPolicyValue(); + + /** + * + * + *
+   * Optional. Session management policy that defines who will manage the
+   * session.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy session_management_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionManagementPolicy. + */ + com.google.cloud.discoveryengine.v1.SessionConfig.SessionManagementPolicy + getSessionManagementPolicy(); + + /** + * + * + *
+   * Optional. The TTL for the session. If unset, the default value is 60 days.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sessionTtl field is set. + */ + boolean hasSessionTtl(); + + /** + * + * + *
+   * Optional. The TTL for the session. If unset, the default value is 60 days.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sessionTtl. + */ + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtl getSessionTtl(); + + /** + * + * + *
+   * Optional. The TTL for the session. If unset, the default value is 60 days.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SessionConfig.SessionTtl session_ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.SessionConfig.SessionTtlOrBuilder getSessionTtlOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java index 0959c0688b0e..4e38559d7fd4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java @@ -42,6 +42,10 @@ public class SessionName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_COLLECTION_ENGINE_SESSION = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}"); + private static final PathTemplate + PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}"); private volatile Map fieldValuesMap; private PathTemplate pathTemplate; private String fixedValue; @@ -51,6 +55,7 @@ public class SessionName implements ResourceName { private final String session; private final String collection; private final String engine; + private final String collaborativeProject; @Deprecated protected SessionName() { @@ -60,6 +65,7 @@ protected SessionName() { session = null; collection = null; engine = null; + collaborativeProject = null; } private SessionName(Builder builder) { @@ -69,6 +75,7 @@ private SessionName(Builder builder) { session = Preconditions.checkNotNull(builder.getSession()); collection = null; engine = null; + collaborativeProject = null; pathTemplate = PROJECT_LOCATION_DATA_STORE_SESSION; } @@ -79,6 +86,7 @@ private SessionName(ProjectLocationCollectionDataStoreSessionBuilder builder) { dataStore = Preconditions.checkNotNull(builder.getDataStore()); session = Preconditions.checkNotNull(builder.getSession()); engine = null; + collaborativeProject = null; pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_SESSION; } @@ -89,9 +97,21 @@ private SessionName(ProjectLocationCollectionEngineSessionBuilder builder) { engine = Preconditions.checkNotNull(builder.getEngine()); session = Preconditions.checkNotNull(builder.getSession()); dataStore = null; + collaborativeProject = null; pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE_SESSION; } + private SessionName(ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + engine = Preconditions.checkNotNull(builder.getEngine()); + collaborativeProject = Preconditions.checkNotNull(builder.getCollaborativeProject()); + session = Preconditions.checkNotNull(builder.getSession()); + dataStore = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION; + } + public String getProject() { return project; } @@ -116,6 +136,10 @@ public String getEngine() { return engine; } + public String getCollaborativeProject() { + return collaborativeProject; + } + public static Builder newBuilder() { return new Builder(); } @@ -134,6 +158,11 @@ public static Builder newProjectLocationDataStoreSessionBuilder() { return new ProjectLocationCollectionEngineSessionBuilder(); } + public static ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder + newProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() { + return new ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -179,6 +208,23 @@ public static SessionName ofProjectLocationCollectionEngineSessionName( .build(); } + public static SessionName ofProjectLocationCollectionEngineCollaborativeProjectSessionName( + String project, + String location, + String collection, + String engine, + String collaborativeProject, + String session) { + return newProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setCollaborativeProject(collaborativeProject) + .setSession(session) + .build(); + } + public static String format(String project, String location, String dataStore, String session) { return newBuilder() .setProject(project) @@ -224,6 +270,24 @@ public static String formatProjectLocationCollectionEngineSessionName( .toString(); } + public static String formatProjectLocationCollectionEngineCollaborativeProjectSessionName( + String project, + String location, + String collection, + String engine, + String collaborativeProject, + String session) { + return newProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setCollaborativeProject(collaborativeProject) + .setSession(session) + .build() + .toString(); + } + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; @@ -253,6 +317,17 @@ public static String formatProjectLocationCollectionEngineSessionName( matchMap.get("collection"), matchMap.get("engine"), matchMap.get("session")); + } else if (PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION.matches( + formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION.match(formattedString); + return ofProjectLocationCollectionEngineCollaborativeProjectSessionName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("engine"), + matchMap.get("collaborative_project"), + matchMap.get("session")); } throw new ValidationException("SessionName.parse: formattedString not in valid format"); } @@ -280,7 +355,9 @@ public static List toStringList(List<@Nullable SessionName> values) { public static boolean isParsableFrom(String formattedString) { return PROJECT_LOCATION_DATA_STORE_SESSION.matches(formattedString) || PROJECT_LOCATION_COLLECTION_DATA_STORE_SESSION.matches(formattedString) - || PROJECT_LOCATION_COLLECTION_ENGINE_SESSION.matches(formattedString); + || PROJECT_LOCATION_COLLECTION_ENGINE_SESSION.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION.matches( + formattedString); } @Override @@ -307,6 +384,9 @@ public Map getFieldValuesMap() { if (engine != null) { fieldMapBuilder.put("engine", engine); } + if (collaborativeProject != null) { + fieldMapBuilder.put("collaborative_project", collaborativeProject); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -335,7 +415,8 @@ public boolean equals(@Nullable Object o) { && Objects.equals(this.dataStore, that.dataStore) && Objects.equals(this.session, that.session) && Objects.equals(this.collection, that.collection) - && Objects.equals(this.engine, that.engine); + && Objects.equals(this.engine, that.engine) + && Objects.equals(this.collaborativeProject, that.collaborativeProject); } return false; } @@ -357,6 +438,8 @@ public int hashCode() { h ^= Objects.hashCode(collection); h *= 1000003; h ^= Objects.hashCode(engine); + h *= 1000003; + h ^= Objects.hashCode(collaborativeProject); return h; } @@ -548,4 +631,83 @@ public SessionName build() { return new SessionName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}. + */ + public static class ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder { + private String project; + private String location; + private String collection; + private String engine; + private String collaborativeProject; + private String session; + + protected ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public String getCollaborativeProject() { + return collaborativeProject; + } + + public String getSession() { + return session; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setProject( + String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setLocation( + String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setCollection( + String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setEngine( + String engine) { + this.engine = engine; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder + setCollaborativeProject(String collaborativeProject) { + this.collaborativeProject = collaborativeProject; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setSession( + String session) { + this.session = session; + return this; + } + + public SessionName build() { + return new SessionName(this); + } + } } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionOrBuilder.java index 242b4a647283..73af558ab44b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionOrBuilder.java @@ -345,4 +345,40 @@ public interface SessionOrBuilder * @return The isPinned. */ boolean getIsPinned(); + + /** + * + * + *
+   * Output only. Full resource name of an in-progress AsyncAssist operation for
+   * this session, e.g.
+   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+   * Set when the operation starts and cleared when it finishes.
+   * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pendingAsyncAssistOperationId. + */ + java.lang.String getPendingAsyncAssistOperationId(); + + /** + * + * + *
+   * Output only. Full resource name of an in-progress AsyncAssist operation for
+   * this session, e.g.
+   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
+   * Set when the operation starts and cleared when it finishes.
+   * 
+ * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for pendingAsyncAssistOperationId. + */ + com.google.protobuf.ByteString getPendingAsyncAssistOperationIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionProto.java index b5f7dafee9e4..03af507debfd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionProto.java @@ -69,8 +69,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/discoveryengine/v1/session.proto\022\037google.cloud.discoveryengine.v1" + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032,google/cloud/discoveryengine/v1/answer.proto\0323google/cloud" - + "/discoveryengine/v1/assist_answer.proto\032\037google/protobuf/timestamp.proto\"\264" - + "\t\n" + + "/discoveryengine/v1/assist_answer.proto\032\037google/protobuf/timestamp.proto\"\216\013\n" + "\007Session\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\005\022\032\n" + "\014display_name\030\007 \001(\tB\004\342A\001\001\022=\n" @@ -81,39 +80,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "start_time\030\005 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" + "\010end_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\027\n" - + "\tis_pinned\030\010 \001(\010B\004\342A\001\001\032\260\003\n" + + "\tis_pinned\030\010 \001(\010B\004\342A\001\001\022/\n" + + "!pending_async_assist_operation_id\030\026 \001(\tB\004\342A\001\003\032\304\003\n" + "\004Turn\022;\n" + "\005query\030\001" + " \001(\0132&.google.cloud.discoveryengine.v1.QueryB\004\342A\001\001\022>\n" + "\006answer\030\002 \001(\tB.\342A\001\001\372A\'\n" + "%discoveryengine.googleapis.com/Answer\022F\n" - + "\017detailed_answer\030\007 \001(\0132\'.goog" - + "le.cloud.discoveryengine.v1.AnswerB\004\342A\001\003\022S\n" - + "\026detailed_assist_answer\030\010 \001(\0132-.googl" - + "e.cloud.discoveryengine.v1.AssistAnswerB\004\342A\001\003\022Z\n" - + "\014query_config\030\020 \003(\0132>.google.clo" - + "ud.discoveryengine.v1.Session.Turn.QueryConfigEntryB\004\342A\001\001\0322\n" + + "\017detailed_answer\030\007 \001" + + "(\0132\'.google.cloud.discoveryengine.v1.AnswerB\004\342A\001\003\022S\n" + + "\026detailed_assist_answer\030\010 \001(" + + "\0132-.google.cloud.discoveryengine.v1.AssistAnswerB\004\342A\001\003\022Z\n" + + "\014query_config\030\020 \003(\0132>.g" + + "oogle.cloud.discoveryengine.v1.Session.Turn.QueryConfigEntryB\004\342A\001\001\022\022\n" + + "\004live\030\024 \001(\010B\004\342A\001\001\0322\n" + "\020QueryConfigEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"/\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" - + "\013IN_PROGRESS\020\001:\346\002\352A\342\002\n" - + "&discoveryengine.googleapis.com/Session\022Rprojects/{project}/locations/{loc" - + "ation}/dataStores/{data_store}/sessions/{session}\022kprojects/{project}/locations/" - + "{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}\022d" - + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine" - + "}/sessions/{session}*\010sessions2\007session\":\n" + + "\013IN_PROGRESS\020\001:\373\003\352A\367\003\n" + + "&discoveryengine.googleapis.com/Session\022Rproj" + + "ects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}\022k" + + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{dat" + + "a_store}/sessions/{session}\022dprojects/{project}/locations/{location}/collections" + + "/{collection}/engines/{engine}/sessions/" + + "{session}\022\222\001projects/{project}/locations" + + "/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{col" + + "laborative_project}/sessions/{session}*\010sessions2\007session\":\n" + "\005Query\022\016\n" + "\004text\030\002 \001(\tH\000\022\026\n" + "\010query_id\030\001 \001(\tB\004\342A\001\003B\t\n" + "\007contentB\377\001\n" - + "#com.google.cloud.discoveryengine.v1B\014SessionProtoP\001ZMclo" - + "ud.google.com/go/discoveryengine/apiv1/d" - + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" - + "COVERYENGINE\252\002\037Google.Cloud.DiscoveryEng" - + "ine.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1" - + "\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "#com.google.cloud.discoveryengine.v1B\014SessionProtoP\001ZMcloud.google.com/go/disco" + + "veryengine/apiv1/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002\037Google." + + "Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud\\" + + "DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -140,6 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", "IsPinned", + "PendingAsyncAssistOperationId", }); internal_static_google_cloud_discoveryengine_v1_Session_Turn_descriptor = internal_static_google_cloud_discoveryengine_v1_Session_descriptor.getNestedType(0); @@ -147,7 +151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_Session_Turn_descriptor, new java.lang.String[] { - "Query", "Answer", "DetailedAnswer", "DetailedAssistAnswer", "QueryConfig", + "Query", "Answer", "DetailedAnswer", "DetailedAssistAnswer", "QueryConfig", "Live", }); internal_static_google_cloud_discoveryengine_v1_Session_Turn_QueryConfigEntry_descriptor = internal_static_google_cloud_discoveryengine_v1_Session_Turn_descriptor.getNestedType(0); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceProto.java index 4e57ef47edbb..9f9194df5556 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceProto.java @@ -56,7 +56,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032Cgoogle/cloud/discoveryengine/v1/con" + "versational_search_service.proto\032-google" + "/cloud/discoveryengine/v1/session.proto\032" - + "\033google/protobuf/empty.proto2\332\016\n\016Session" + + "\033google/protobuf/empty.proto2\231\020\n\016Session" + "Service\022\364\002\n\rCreateSession\0225.google.cloud" + ".discoveryengine.v1.CreateSessionRequest" + "\032(.google.cloud.discoveryengine.v1.Sessi" @@ -101,16 +101,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nsZI\022G/v1/{parent=projects/*/locations/*" + "/collections/*/dataStores/*}/sessionsZF\022" + "D/v1/{parent=projects/*/locations/*/coll" - + "ections/*/engines/*}/sessions\032R\312A\036discov" - + "eryengine.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\206\002\n#co" - + "m.google.cloud.discoveryengine.v1B\023Sessi" - + "onServiceProtoP\001ZMcloud.google.com/go/di" - + "scoveryengine/apiv1/discoveryenginepb;di" - + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goog" - + "le.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clo" - + "ud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::D" - + "iscoveryEngine::V1b\006proto3" + + "ections/*/engines/*}/sessions\032\220\002\312A\036disco" + + "veryengine.googleapis.com\322A\353\001https://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/discoveryeng" + + "ine.assist.readwrite,https://www.googlea" + + "pis.com/auth/discoveryengine.readwrite,h" + + "ttps://www.googleapis.com/auth/discovery" + + "engine.serving.readwriteB\206\002\n#com.google." + + "cloud.discoveryengine.v1B\023SessionService" + + "ProtoP\001ZMcloud.google.com/go/discoveryen" + + "gine/apiv1/discoveryenginepb;discoveryen" + + "ginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud." + + "DiscoveryEngine.V1\312\002\037Google\\Cloud\\Discov" + + "eryEngine\\V1\352\002\"Google::Cloud::DiscoveryE" + + "ngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadata.java new file mode 100644 index 000000000000..ae82470a7cbb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadata.java @@ -0,0 +1,406 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Metadata for
+ * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata} + */ +@com.google.protobuf.Generated +public final class SetUpDataConnectorMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) + SetUpDataConnectorMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SetUpDataConnectorMetadata"); + } + + // Use SetUpDataConnectorMetadata.newBuilder() to construct. + private SetUpDataConnectorMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetUpDataConnectorMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.class, + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata other = + (com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Metadata for
+   * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.class, + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata build() { + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata buildPartial() { + com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata result = + new com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) + private static final com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata(); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetUpDataConnectorMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadataOrBuilder.java new file mode 100644 index 000000000000..aaec73e58431 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorMetadataOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface SetUpDataConnectorMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequest.java new file mode 100644 index 000000000000..e534034ca684 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequest.java @@ -0,0 +1,1492 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for
+ * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SetUpDataConnectorRequest} + */ +@com.google.protobuf.Generated +public final class SetUpDataConnectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) + SetUpDataConnectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SetUpDataConnectorRequest"); + } + + // Use SetUpDataConnectorRequest.newBuilder() to construct. + private SetUpDataConnectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SetUpDataConnectorRequest() { + parent_ = ""; + collectionId_ = ""; + collectionDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.class, + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of
+   * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The parent of
+   * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLECTION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object collectionId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+   * the final component of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+   * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+   * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+   * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+   * singleton resource under
+   * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The collectionId. + */ + @java.lang.Override + public java.lang.String getCollectionId() { + java.lang.Object ref = collectionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+   * the final component of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+   * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+   * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+   * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+   * singleton resource under
+   * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for collectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollectionIdBytes() { + java.lang.Object ref = collectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLLECTION_DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object collectionDisplayName_ = ""; + + /** + * + * + *
+   * Required. The display name of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should be human readable, used to display collections in the Console
+   * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+   * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The collectionDisplayName. + */ + @java.lang.Override + public java.lang.String getCollectionDisplayName() { + java.lang.Object ref = collectionDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The display name of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should be human readable, used to display collections in the Console
+   * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+   * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for collectionDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollectionDisplayNameBytes() { + java.lang.Object ref = collectionDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_CONNECTOR_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.DataConnector dataConnector_; + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+   * initialize in the newly created
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataConnector field is set. + */ + @java.lang.Override + public boolean hasDataConnector() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+   * initialize in the newly created
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataConnector. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector getDataConnector() { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+   * initialize in the newly created
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder getDataConnectorOrBuilder() { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collectionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, collectionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collectionDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, collectionDisplayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDataConnector()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collectionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, collectionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(collectionDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, collectionDisplayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataConnector()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest other = + (com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCollectionId().equals(other.getCollectionId())) return false; + if (!getCollectionDisplayName().equals(other.getCollectionDisplayName())) return false; + if (hasDataConnector() != other.hasDataConnector()) return false; + if (hasDataConnector()) { + if (!getDataConnector().equals(other.getDataConnector())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + COLLECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getCollectionId().hashCode(); + hash = (37 * hash) + COLLECTION_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCollectionDisplayName().hashCode(); + if (hasDataConnector()) { + hash = (37 * hash) + DATA_CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getDataConnector().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for
+   * [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.SetUpDataConnectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.class, + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataConnectorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + collectionId_ = ""; + collectionDisplayName_ = ""; + dataConnector_ = null; + if (dataConnectorBuilder_ != null) { + dataConnectorBuilder_.dispose(); + dataConnectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_SetUpDataConnectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest build() { + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest buildPartial() { + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest result = + new com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.collectionId_ = collectionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.collectionDisplayName_ = collectionDisplayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataConnector_ = + dataConnectorBuilder_ == null ? dataConnector_ : dataConnectorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCollectionId().isEmpty()) { + collectionId_ = other.collectionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCollectionDisplayName().isEmpty()) { + collectionDisplayName_ = other.collectionDisplayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDataConnector()) { + mergeDataConnector(other.getDataConnector()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + collectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + collectionDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDataConnectorFieldBuilder().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 parent_ = ""; + + /** + * + * + *
+     * Required. The parent of
+     * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The parent of
+     * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The parent of
+     * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of
+     * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of
+     * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object collectionId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+     * the final component of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+     * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+     * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+     * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource under
+     * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The collectionId. + */ + public java.lang.String getCollectionId() { + java.lang.Object ref = collectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+     * the final component of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+     * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+     * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+     * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource under
+     * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for collectionId. + */ + public com.google.protobuf.ByteString getCollectionIdBytes() { + java.lang.Object ref = collectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+     * the final component of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+     * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+     * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+     * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource under
+     * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The collectionId to set. + * @return This builder for chaining. + */ + public Builder setCollectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+     * the final component of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+     * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+     * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+     * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource under
+     * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCollectionId() { + collectionId_ = getDefaultInstance().getCollectionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the
+     * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+     * the final component of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+     * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+     * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+     * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+     * singleton resource under
+     * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+     * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should conform to
+     * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+     * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+     * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for collectionId to set. + * @return This builder for chaining. + */ + public Builder setCollectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collectionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object collectionDisplayName_ = ""; + + /** + * + * + *
+     * Required. The display name of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should be human readable, used to display collections in the Console
+     * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+     * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The collectionDisplayName. + */ + public java.lang.String getCollectionDisplayName() { + java.lang.Object ref = collectionDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The display name of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should be human readable, used to display collections in the Console
+     * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+     * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for collectionDisplayName. + */ + public com.google.protobuf.ByteString getCollectionDisplayNameBytes() { + java.lang.Object ref = collectionDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The display name of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should be human readable, used to display collections in the Console
+     * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+     * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The collectionDisplayName to set. + * @return This builder for chaining. + */ + public Builder setCollectionDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collectionDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The display name of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should be human readable, used to display collections in the Console
+     * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+     * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCollectionDisplayName() { + collectionDisplayName_ = getDefaultInstance().getCollectionDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The display name of the
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     *
+     * Should be human readable, used to display collections in the Console
+     * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+     * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for collectionDisplayName to set. + * @return This builder for chaining. + */ + public Builder setCollectionDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collectionDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.DataConnector dataConnector_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector, + com.google.cloud.discoveryengine.v1.DataConnector.Builder, + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder> + dataConnectorBuilder_; + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataConnector field is set. + */ + public boolean hasDataConnector() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataConnector. + */ + public com.google.cloud.discoveryengine.v1.DataConnector getDataConnector() { + if (dataConnectorBuilder_ == null) { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } else { + return dataConnectorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataConnector(com.google.cloud.discoveryengine.v1.DataConnector value) { + if (dataConnectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConnector_ = value; + } else { + dataConnectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataConnector( + com.google.cloud.discoveryengine.v1.DataConnector.Builder builderForValue) { + if (dataConnectorBuilder_ == null) { + dataConnector_ = builderForValue.build(); + } else { + dataConnectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataConnector(com.google.cloud.discoveryengine.v1.DataConnector value) { + if (dataConnectorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && dataConnector_ != null + && dataConnector_ + != com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance()) { + getDataConnectorBuilder().mergeFrom(value); + } else { + dataConnector_ = value; + } + } else { + dataConnectorBuilder_.mergeFrom(value); + } + if (dataConnector_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataConnector() { + bitField0_ = (bitField0_ & ~0x00000008); + dataConnector_ = null; + if (dataConnectorBuilder_ != null) { + dataConnectorBuilder_.dispose(); + dataConnectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.Builder getDataConnectorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDataConnectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder getDataConnectorOrBuilder() { + if (dataConnectorBuilder_ != null) { + return dataConnectorBuilder_.getMessageOrBuilder(); + } else { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+     * initialize in the newly created
+     * [Collection][google.cloud.discoveryengine.v1.Collection].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector, + com.google.cloud.discoveryengine.v1.DataConnector.Builder, + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder> + internalGetDataConnectorFieldBuilder() { + if (dataConnectorBuilder_ == null) { + dataConnectorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector, + com.google.cloud.discoveryengine.v1.DataConnector.Builder, + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder>( + getDataConnector(), getParentForChildren(), isClean()); + dataConnector_ = null; + } + return dataConnectorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) + private static final com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest(); + } + + public static com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetUpDataConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequestOrBuilder.java new file mode 100644 index 000000000000..796761f600af --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SetUpDataConnectorRequestOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface SetUpDataConnectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.SetUpDataConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of
+   * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of
+   * [Collection][google.cloud.discoveryengine.v1.Collection], in the format of
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+   * the final component of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+   * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+   * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+   * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+   * singleton resource under
+   * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The collectionId. + */ + java.lang.String getCollectionId(); + + /** + * + * + *
+   * Required. The ID to use for the
+   * [Collection][google.cloud.discoveryengine.v1.Collection], which will become
+   * the final component of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A
+   * new [Collection][google.cloud.discoveryengine.v1.Collection] is created as
+   * part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]
+   * setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a
+   * singleton resource under
+   * [Collection][google.cloud.discoveryengine.v1.Collection], managing all
+   * [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should conform to
+   * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length
+   * limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
+   * 
+ * + * string collection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for collectionId. + */ + com.google.protobuf.ByteString getCollectionIdBytes(); + + /** + * + * + *
+   * Required. The display name of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should be human readable, used to display collections in the Console
+   * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+   * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The collectionDisplayName. + */ + java.lang.String getCollectionDisplayName(); + + /** + * + * + *
+   * Required. The display name of the
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   *
+   * Should be human readable, used to display collections in the Console
+   * Dashboard. UTF-8 encoded string with limit of 1024 characters.
+   * 
+ * + * string collection_display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for collectionDisplayName. + */ + com.google.protobuf.ByteString getCollectionDisplayNameBytes(); + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+   * initialize in the newly created
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataConnector field is set. + */ + boolean hasDataConnector(); + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+   * initialize in the newly created
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataConnector. + */ + com.google.cloud.discoveryengine.v1.DataConnector getDataConnector(); + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to
+   * initialize in the newly created
+   * [Collection][google.cloud.discoveryengine.v1.Collection].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder getDataConnectorOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java index ddb2bf13f8ae..a137bb6eca05 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceProto.java @@ -352,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014target_sites\030\001" + " \003(\0132+.google.cloud.discoveryengine.v1.TargetSite\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\217/\n" + + "total_size\030\003 \001(\0052\2150\n" + "\027SiteSearchEngineService\022\250\002\n" + "\023GetSiteSearchEngine\022;.google.cloud.discoveryengi" + "ne.v1.GetSiteSearchEngineRequest\0321.google.cloud.discoveryengine.v1.SiteSearchEng" @@ -456,14 +456,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "VerificationStatusRequest\032F.google.cloud.discoveryengine.v1.FetchDomainVerificat" + "ionStatusResponse\"\201\001\202\323\344\223\002{\022y/v1/{site_se" + "arch_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:" - + "fetchDomainVerificationStatus\032R\312A\036discov" - + "eryengine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\217\002\n" - + "#com.google.cloud.discoveryengine.v1B\034SiteS" - + "earchEngineServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryen" - + "ginepb;discoveryenginepb\242\002\017DISCOVERYENGI" - + "NE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037G" - + "oogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google:" - + ":Cloud::DiscoveryEngine::V1b\006proto3" + + "fetchDomainVerificationStatus\032\317\001\312A\036disco" + + "veryengine.googleapis.com\322A\252\001https://www" + + ".googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryeng" + + "ine.readwrite,https://www.googleapis.com" + + "/auth/discoveryengine.serving.readwriteB\217\002\n" + + "#com.google.cloud.discoveryengine.v1B\034SiteSearchEngineServiceProtoP\001ZMcloud.g" + + "oogle.com/go/discoveryengine/apiv1/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002\037Google.Cloud.DiscoveryEngine." + + "V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"G" + + "oogle::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SolutionType.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SolutionType.java index bcd04a7c6fc1..d5fd3410fd31 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SolutionType.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SolutionType.java @@ -83,6 +83,16 @@ public enum SolutionType implements com.google.protobuf.ProtocolMessageEnum { * SOLUTION_TYPE_GENERATIVE_CHAT = 4; */ SOLUTION_TYPE_GENERATIVE_CHAT(4), + /** + * + * + *
+   * Used for AI Mode.
+   * 
+ * + * SOLUTION_TYPE_AI_MODE = 5; + */ + SOLUTION_TYPE_AI_MODE(5), UNRECOGNIZED(-1), ; @@ -153,6 +163,17 @@ public enum SolutionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SOLUTION_TYPE_GENERATIVE_CHAT_VALUE = 4; + /** + * + * + *
+   * Used for AI Mode.
+   * 
+ * + * SOLUTION_TYPE_AI_MODE = 5; + */ + public static final int SOLUTION_TYPE_AI_MODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,6 +208,8 @@ public static SolutionType forNumber(int value) { return SOLUTION_TYPE_CHAT; case 4: return SOLUTION_TYPE_GENERATIVE_CHAT; + case 5: + return SOLUTION_TYPE_AI_MODE; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistRequest.java index 60d356b72471..8169505d41bf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistRequest.java @@ -1894,8 +1894,10 @@ public interface ToolsSpecOrBuilder * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -1913,8 +1915,10 @@ public interface ToolsSpecOrBuilder * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -1933,8 +1937,10 @@ public interface ToolsSpecOrBuilder * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -5051,8 +5057,10 @@ public boolean hasVertexAiSearchSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -5073,8 +5081,10 @@ public boolean hasWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -5099,8 +5109,10 @@ public boolean hasWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -5956,8 +5968,10 @@ public Builder clearVertexAiSearchSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -5977,8 +5991,10 @@ public boolean hasWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6006,8 +6022,10 @@ public boolean hasWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6037,8 +6055,10 @@ public Builder setWebGroundingSpec( * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6065,8 +6085,10 @@ public Builder setWebGroundingSpec( * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6103,8 +6125,10 @@ public Builder mergeWebGroundingSpec( * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6129,8 +6153,10 @@ public Builder clearWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6152,8 +6178,10 @@ public Builder clearWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * @@ -6180,8 +6208,10 @@ public Builder clearWebGroundingSpec() { * Optional. Specification of the web grounding tool. * If field is present, enables grounding with web search. Works only if * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - * is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + * is + * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + * or + * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponse.java index 82db39cc158b..d888910b7673 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponse.java @@ -55,6 +55,9 @@ private StreamAssistResponse(com.google.protobuf.GeneratedMessage.Builder bui private StreamAssistResponse() { assistToken_ = ""; + invocationTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + invokedSkills_ = java.util.Collections.emptyList(); + connectorAuthErrors_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -719,363 +722,2361 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int ANSWER_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1.AssistAnswer answer_; - - /** - * - * - *
-   * Assist answer resource object containing parts of the assistant's final
-   * answer for the user's query.
-   *
-   * Not present if the current response doesn't add anything to previously
-   * sent
-   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
-   *
-   * Observe
-   * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
-   * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
-   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
-   * field in each response will contain replies (reply fragments) to be
-   * appended to the ones received in previous responses. [AssistAnswer.name][]
-   * won't be filled.
-   *
-   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
-   * is the last response and [AssistAnswer.name][] will have a value.
-   * 
- * - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; - * - * @return Whether the answer field is set. - */ - @java.lang.Override - public boolean hasAnswer() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Assist answer resource object containing parts of the assistant's final
-   * answer for the user's query.
-   *
-   * Not present if the current response doesn't add anything to previously
-   * sent
-   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
-   *
-   * Observe
-   * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
-   * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
-   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
-   * field in each response will contain replies (reply fragments) to be
-   * appended to the ones received in previous responses. [AssistAnswer.name][]
-   * won't be filled.
-   *
-   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
-   * is the last response and [AssistAnswer.name][] will have a value.
-   * 
- * - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; - * - * @return The answer. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistAnswer getAnswer() { - return answer_ == null - ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() - : answer_; - } + public interface InvokedSkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * Assist answer resource object containing parts of the assistant's final
-   * answer for the user's query.
-   *
-   * Not present if the current response doesn't add anything to previously
-   * sent
-   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
-   *
-   * Observe
-   * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
-   * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
-   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
-   * field in each response will contain replies (reply fragments) to be
-   * appended to the ones received in previous responses. [AssistAnswer.name][]
-   * won't be filled.
-   *
-   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
-   * is the last response and [AssistAnswer.name][] will have a value.
-   * 
- * - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder getAnswerOrBuilder() { - return answer_ == null - ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() - : answer_; - } + /** + * + * + *
+     * The resource name of the skill.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); - public static final int SESSION_INFO_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo sessionInfo_; + /** + * + * + *
+     * The resource name of the skill.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); - /** - * - * - *
-   * Session information.
-   * 
- * - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; - * - * - * @return Whether the sessionInfo field is set. - */ - @java.lang.Override - public boolean hasSessionInfo() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * + * + *
+     * The display name of the skill.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); - /** - * - * - *
-   * Session information.
-   * 
- * - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; - * - * - * @return The sessionInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo getSessionInfo() { - return sessionInfo_ == null - ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.getDefaultInstance() - : sessionInfo_; + /** + * + * + *
+     * The display name of the skill.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); } /** * * *
-   * Session information.
+   * Represents a skill used during the assist call.
    * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; - * + * Protobuf type {@code google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder - getSessionInfoOrBuilder() { - return sessionInfo_ == null - ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.getDefaultInstance() - : sessionInfo_; - } + public static final class InvokedSkill extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) + InvokedSkillOrBuilder { + private static final long serialVersionUID = 0L; - public static final int ASSIST_TOKEN_FIELD_NUMBER = 4; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InvokedSkill"); + } - @SuppressWarnings("serial") - private volatile java.lang.Object assistToken_ = ""; + // Use InvokedSkill.newBuilder() to construct. + private InvokedSkill(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-   * A global unique ID that identifies the current pair of request and stream
-   * of responses. Used for feedback and support.
-   * 
- * - * string assist_token = 4; - * - * @return The assistToken. - */ - @java.lang.Override - public java.lang.String getAssistToken() { - java.lang.Object ref = assistToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assistToken_ = s; - return s; + private InvokedSkill() { + name_ = ""; + displayName_ = ""; } - } - /** - * - * - *
-   * A global unique ID that identifies the current pair of request and stream
-   * of responses. Used for feedback and support.
-   * 
- * - * string assist_token = 4; - * - * @return The bytes for assistToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAssistTokenBytes() { - java.lang.Object ref = assistToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - assistToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_descriptor; } - } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.class, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int NAME_FIELD_NUMBER = 1; - memoizedIsInitialized = 1; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getAnswer()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getSessionInfo()); + /** + * + * + *
+     * The resource name of the skill.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, assistToken_); + + /** + * + * + *
+     * The resource name of the skill.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnswer()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionInfo()); + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The display name of the skill.
+     * 
+ * + * string display_name = 2; + * + * @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; + } } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, assistToken_); + + /** + * + * + *
+     * The display name of the skill.
+     * 
+ * + * string display_name = 2; + * + * @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; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + 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; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1.StreamAssistResponse)) { - return super.equals(obj); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); } - com.google.cloud.discoveryengine.v1.StreamAssistResponse other = - (com.google.cloud.discoveryengine.v1.StreamAssistResponse) obj; - if (hasAnswer() != other.hasAnswer()) return false; - if (hasAnswer()) { - if (!getAnswer().equals(other.getAnswer())) return false; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - if (hasSessionInfo() != other.hasSessionInfo()) return false; - if (hasSessionInfo()) { - if (!getSessionInfo().equals(other.getSessionInfo())) return false; + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill other = + (com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - if (!getAssistToken().equals(other.getAssistToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAnswer()) { - hash = (37 * hash) + ANSWER_FIELD_NUMBER; - hash = (53 * hash) + getAnswer().hashCode(); + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (hasSessionInfo()) { - hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; - hash = (53 * hash) + getSessionInfo().hashCode(); + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - hash = (37 * hash) + ASSIST_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getAssistToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents a skill used during the assist call.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.class, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_InvokedSkill_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill build() { + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill buildPartial() { + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill result = + new com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill other) { + if (other + == com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * The resource name of the skill.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The resource name of the skill.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The resource name of the skill.
+       * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The resource name of the skill.
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The resource name of the skill.
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+       * The display name of the skill.
+       * 
+ * + * string display_name = 2; + * + * @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; + } + } + + /** + * + * + *
+       * The display name of the skill.
+       * 
+ * + * string display_name = 2; + * + * @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; + } + } + + /** + * + * + *
+       * The display name of the skill.
+       * 
+ * + * string display_name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the skill.
+       * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the skill.
+       * 
+ * + * string display_name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill) + private static final com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill(); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvokedSkill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConnectorAuthErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Resource name of the data connector that failed authentication.
+     * 
+ * + * string data_connector = 1; + * + * @return The dataConnector. + */ + java.lang.String getDataConnector(); + + /** + * + * + *
+     * Resource name of the data connector that failed authentication.
+     * 
+ * + * string data_connector = 1; + * + * @return The bytes for dataConnector. + */ + com.google.protobuf.ByteString getDataConnectorBytes(); + + /** + * + * + *
+     * Human-readable error message describing the auth failure.
+     * 
+ * + * string error_message = 2; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
+     * Human-readable error message describing the auth failure.
+     * 
+ * + * string error_message = 2; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); + } + + /** + * + * + *
+   * Describes an authentication error for a specific data connector.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError} + */ + public static final class ConnectorAuthError extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) + ConnectorAuthErrorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectorAuthError"); + } + + // Use ConnectorAuthError.newBuilder() to construct. + private ConnectorAuthError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectorAuthError() { + dataConnector_ = ""; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.class, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + .class); + } + + public static final int DATA_CONNECTOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataConnector_ = ""; + + /** + * + * + *
+     * Resource name of the data connector that failed authentication.
+     * 
+ * + * string data_connector = 1; + * + * @return The dataConnector. + */ + @java.lang.Override + public java.lang.String getDataConnector() { + java.lang.Object ref = dataConnector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataConnector_ = s; + return s; + } + } + + /** + * + * + *
+     * Resource name of the data connector that failed authentication.
+     * 
+ * + * string data_connector = 1; + * + * @return The bytes for dataConnector. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataConnectorBytes() { + java.lang.Object ref = dataConnector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataConnector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+     * Human-readable error message describing the auth failure.
+     * 
+ * + * string error_message = 2; + * + * @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; + } + } + + /** + * + * + *
+     * Human-readable error message describing the auth failure.
+     * 
+ * + * string error_message = 2; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataConnector_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, dataConnector_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataConnector_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dataConnector_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError other = + (com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) obj; + + if (!getDataConnector().equals(other.getDataConnector())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + DATA_CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getDataConnector().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes an authentication error for a specific data connector.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.class, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataConnector_ = ""; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_ConnectorAuthError_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError build() { + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + buildPartial() { + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError result = + new com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataConnector_ = dataConnector_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError other) { + if (other + == com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + .getDefaultInstance()) return this; + if (!other.getDataConnector().isEmpty()) { + dataConnector_ = other.dataConnector_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + 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: + { + dataConnector_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorMessage_ = 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 dataConnector_ = ""; + + /** + * + * + *
+       * Resource name of the data connector that failed authentication.
+       * 
+ * + * string data_connector = 1; + * + * @return The dataConnector. + */ + public java.lang.String getDataConnector() { + java.lang.Object ref = dataConnector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataConnector_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Resource name of the data connector that failed authentication.
+       * 
+ * + * string data_connector = 1; + * + * @return The bytes for dataConnector. + */ + public com.google.protobuf.ByteString getDataConnectorBytes() { + java.lang.Object ref = dataConnector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataConnector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Resource name of the data connector that failed authentication.
+       * 
+ * + * string data_connector = 1; + * + * @param value The dataConnector to set. + * @return This builder for chaining. + */ + public Builder setDataConnector(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataConnector_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Resource name of the data connector that failed authentication.
+       * 
+ * + * string data_connector = 1; + * + * @return This builder for chaining. + */ + public Builder clearDataConnector() { + dataConnector_ = getDefaultInstance().getDataConnector(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Resource name of the data connector that failed authentication.
+       * 
+ * + * string data_connector = 1; + * + * @param value The bytes for dataConnector to set. + * @return This builder for chaining. + */ + public Builder setDataConnectorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataConnector_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
+       * Human-readable error message describing the auth failure.
+       * 
+ * + * string error_message = 2; + * + * @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; + } + } + + /** + * + * + *
+       * Human-readable error message describing the auth failure.
+       * 
+ * + * string error_message = 2; + * + * @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; + } + } + + /** + * + * + *
+       * Human-readable error message describing the auth failure.
+       * 
+ * + * string error_message = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Human-readable error message describing the auth failure.
+       * 
+ * + * string error_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Human-readable error message describing the auth failure.
+       * 
+ * + * string error_message = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError) + private static final com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError(); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorAuthError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ANSWER_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.AssistAnswer answer_; + + /** + * + * + *
+   * Assist answer resource object containing parts of the assistant's final
+   * answer for the user's query.
+   *
+   * Not present if the current response doesn't add anything to previously
+   * sent
+   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+   *
+   * Observe
+   * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+   * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+   * field in each response will contain replies (reply fragments) to be
+   * appended to the ones received in previous responses.
+   * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+   * won't be filled.
+   *
+   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+   * is the last response and
+   * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+   * have a value.
+   * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * @return Whether the answer field is set. + */ + @java.lang.Override + public boolean hasAnswer() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Assist answer resource object containing parts of the assistant's final
+   * answer for the user's query.
+   *
+   * Not present if the current response doesn't add anything to previously
+   * sent
+   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+   *
+   * Observe
+   * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+   * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+   * field in each response will contain replies (reply fragments) to be
+   * appended to the ones received in previous responses.
+   * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+   * won't be filled.
+   *
+   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+   * is the last response and
+   * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+   * have a value.
+   * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * @return The answer. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswer getAnswer() { + return answer_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() + : answer_; + } + + /** + * + * + *
+   * Assist answer resource object containing parts of the assistant's final
+   * answer for the user's query.
+   *
+   * Not present if the current response doesn't add anything to previously
+   * sent
+   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+   *
+   * Observe
+   * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+   * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+   * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+   * field in each response will contain replies (reply fragments) to be
+   * appended to the ones received in previous responses.
+   * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+   * won't be filled.
+   *
+   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+   * is the last response and
+   * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+   * have a value.
+   * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder getAnswerOrBuilder() { + return answer_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() + : answer_; + } + + public static final int SESSION_INFO_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo sessionInfo_; + + /** + * + * + *
+   * Session information. Only included in the final StreamAssistResponse of the
+   * response stream.
+   * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return Whether the sessionInfo field is set. + */ + @java.lang.Override + public boolean hasSessionInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Session information. Only included in the final StreamAssistResponse of the
+   * response stream.
+   * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return The sessionInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo getSessionInfo() { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.getDefaultInstance() + : sessionInfo_; + } + + /** + * + * + *
+   * Session information. Only included in the final StreamAssistResponse of the
+   * response stream.
+   * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder() { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.getDefaultInstance() + : sessionInfo_; + } + + public static final int ASSIST_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistToken_ = ""; + + /** + * + * + *
+   * A global unique ID that identifies the current pair of request and stream
+   * of responses. Used for feedback and support.
+   * 
+ * + * string assist_token = 4; + * + * @return The assistToken. + */ + @java.lang.Override + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A global unique ID that identifies the current pair of request and stream
+   * of responses. Used for feedback and support.
+   * 
+ * + * string assist_token = 4; + * + * @return The bytes for assistToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVOCATION_TOOLS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList invocationTools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @return A list containing the invocationTools. + */ + public com.google.protobuf.ProtocolStringList getInvocationToolsList() { + return invocationTools_; + } + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @return The count of invocationTools. + */ + public int getInvocationToolsCount() { + return invocationTools_.size(); + } + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index of the element to return. + * @return The invocationTools at the given index. + */ + public java.lang.String getInvocationTools(int index) { + return invocationTools_.get(index); + } + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index of the value to return. + * @return The bytes of the invocationTools at the given index. + */ + public com.google.protobuf.ByteString getInvocationToolsBytes(int index) { + return invocationTools_.getByteString(index); + } + + public static final int INVOKED_SKILLS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + invokedSkills_; + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public java.util.List + getInvokedSkillsList() { + return invokedSkills_; + } + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder> + getInvokedSkillsOrBuilderList() { + return invokedSkills_; + } + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public int getInvokedSkillsCount() { + return invokedSkills_.size(); + } + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill getInvokedSkills( + int index) { + return invokedSkills_.get(index); + } + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder + getInvokedSkillsOrBuilder(int index) { + return invokedSkills_.get(index); + } + + public static final int CONNECTOR_AUTH_ERRORS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError> + connectorAuthErrors_; + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + @java.lang.Override + public java.util.List + getConnectorAuthErrorsList() { + return connectorAuthErrors_; + } + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder> + getConnectorAuthErrorsOrBuilderList() { + return connectorAuthErrors_; + } + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + @java.lang.Override + public int getConnectorAuthErrorsCount() { + return connectorAuthErrors_.size(); + } + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + getConnectorAuthErrors(int index) { + return connectorAuthErrors_.get(index); + } + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder + getConnectorAuthErrorsOrBuilder(int index) { + return connectorAuthErrors_.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, getAnswer()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSessionInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, assistToken_); + } + for (int i = 0; i < invocationTools_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, invocationTools_.getRaw(i)); + } + for (int i = 0; i < invokedSkills_.size(); i++) { + output.writeMessage(10, invokedSkills_.get(i)); + } + for (int i = 0; i < connectorAuthErrors_.size(); i++) { + output.writeMessage(11, connectorAuthErrors_.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, getAnswer()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, assistToken_); + } + { + int dataSize = 0; + for (int i = 0; i < invocationTools_.size(); i++) { + dataSize += computeStringSizeNoTag(invocationTools_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvocationToolsList().size(); + } + for (int i = 0; i < invokedSkills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, invokedSkills_.get(i)); + } + for (int i = 0; i < connectorAuthErrors_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, connectorAuthErrors_.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.google.cloud.discoveryengine.v1.StreamAssistResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.StreamAssistResponse other = + (com.google.cloud.discoveryengine.v1.StreamAssistResponse) obj; + + if (hasAnswer() != other.hasAnswer()) return false; + if (hasAnswer()) { + if (!getAnswer().equals(other.getAnswer())) return false; + } + if (hasSessionInfo() != other.hasSessionInfo()) return false; + if (hasSessionInfo()) { + if (!getSessionInfo().equals(other.getSessionInfo())) return false; + } + if (!getAssistToken().equals(other.getAssistToken())) return false; + if (!getInvocationToolsList().equals(other.getInvocationToolsList())) return false; + if (!getInvokedSkillsList().equals(other.getInvokedSkillsList())) return false; + if (!getConnectorAuthErrorsList().equals(other.getConnectorAuthErrorsList())) 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 (hasAnswer()) { + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + } + if (hasSessionInfo()) { + hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSessionInfo().hashCode(); + } + hash = (37 * hash) + ASSIST_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAssistToken().hashCode(); + if (getInvocationToolsCount() > 0) { + hash = (37 * hash) + INVOCATION_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getInvocationToolsList().hashCode(); + } + if (getInvokedSkillsCount() > 0) { + hash = (37 * hash) + INVOKED_SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getInvokedSkillsList().hashCode(); + } + if (getConnectorAuthErrorsCount() > 0) { + hash = (37 * hash) + CONNECTOR_AUTH_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getConnectorAuthErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1084,357 +3085,1530 @@ public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseDeli PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.StreamAssistResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for the
+   * [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.StreamAssistResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.StreamAssistResponse) + com.google.cloud.discoveryengine.v1.StreamAssistResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.class, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.StreamAssistResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnswerFieldBuilder(); + internalGetSessionInfoFieldBuilder(); + internalGetInvokedSkillsFieldBuilder(); + internalGetConnectorAuthErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answer_ = null; + if (answerBuilder_ != null) { + answerBuilder_.dispose(); + answerBuilder_ = null; + } + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); + sessionInfoBuilder_ = null; + } + assistToken_ = ""; + invocationTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (invokedSkillsBuilder_ == null) { + invokedSkills_ = java.util.Collections.emptyList(); + } else { + invokedSkills_ = null; + invokedSkillsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (connectorAuthErrorsBuilder_ == null) { + connectorAuthErrors_ = java.util.Collections.emptyList(); + } else { + connectorAuthErrors_ = null; + connectorAuthErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.StreamAssistResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse build() { + com.google.cloud.discoveryengine.v1.StreamAssistResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.StreamAssistResponse buildPartial() { + com.google.cloud.discoveryengine.v1.StreamAssistResponse result = + new com.google.cloud.discoveryengine.v1.StreamAssistResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.StreamAssistResponse result) { + if (invokedSkillsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + invokedSkills_ = java.util.Collections.unmodifiableList(invokedSkills_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.invokedSkills_ = invokedSkills_; + } else { + result.invokedSkills_ = invokedSkillsBuilder_.build(); + } + if (connectorAuthErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + connectorAuthErrors_ = java.util.Collections.unmodifiableList(connectorAuthErrors_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.connectorAuthErrors_ = connectorAuthErrors_; + } else { + result.connectorAuthErrors_ = connectorAuthErrorsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.StreamAssistResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answer_ = answerBuilder_ == null ? answer_ : answerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.assistToken_ = assistToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + invocationTools_.makeImmutable(); + result.invocationTools_ = invocationTools_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.StreamAssistResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1.StreamAssistResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.StreamAssistResponse other) { + if (other == com.google.cloud.discoveryengine.v1.StreamAssistResponse.getDefaultInstance()) + return this; + if (other.hasAnswer()) { + mergeAnswer(other.getAnswer()); + } + if (other.hasSessionInfo()) { + mergeSessionInfo(other.getSessionInfo()); + } + if (!other.getAssistToken().isEmpty()) { + assistToken_ = other.assistToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.invocationTools_.isEmpty()) { + if (invocationTools_.isEmpty()) { + invocationTools_ = other.invocationTools_; + bitField0_ |= 0x00000008; + } else { + ensureInvocationToolsIsMutable(); + invocationTools_.addAll(other.invocationTools_); + } + onChanged(); + } + if (invokedSkillsBuilder_ == null) { + if (!other.invokedSkills_.isEmpty()) { + if (invokedSkills_.isEmpty()) { + invokedSkills_ = other.invokedSkills_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInvokedSkillsIsMutable(); + invokedSkills_.addAll(other.invokedSkills_); + } + onChanged(); + } + } else { + if (!other.invokedSkills_.isEmpty()) { + if (invokedSkillsBuilder_.isEmpty()) { + invokedSkillsBuilder_.dispose(); + invokedSkillsBuilder_ = null; + invokedSkills_ = other.invokedSkills_; + bitField0_ = (bitField0_ & ~0x00000010); + invokedSkillsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInvokedSkillsFieldBuilder() + : null; + } else { + invokedSkillsBuilder_.addAllMessages(other.invokedSkills_); + } + } + } + if (connectorAuthErrorsBuilder_ == null) { + if (!other.connectorAuthErrors_.isEmpty()) { + if (connectorAuthErrors_.isEmpty()) { + connectorAuthErrors_ = other.connectorAuthErrors_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.addAll(other.connectorAuthErrors_); + } + onChanged(); + } + } else { + if (!other.connectorAuthErrors_.isEmpty()) { + if (connectorAuthErrorsBuilder_.isEmpty()) { + connectorAuthErrorsBuilder_.dispose(); + connectorAuthErrorsBuilder_ = null; + connectorAuthErrors_ = other.connectorAuthErrors_; + bitField0_ = (bitField0_ & ~0x00000020); + connectorAuthErrorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetConnectorAuthErrorsFieldBuilder() + : null; + } else { + connectorAuthErrorsBuilder_.addAllMessages(other.connectorAuthErrors_); + } + } + } + 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(internalGetAnswerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSessionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + assistToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInvocationToolsIsMutable(); + invocationTools_.add(s); + break; + } // case 66 + case 82: + { + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill m = + input.readMessage( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + .parser(), + extensionRegistry); + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(m); + } else { + invokedSkillsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError m = + input.readMessage( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + .parser(), + extensionRegistry); + if (connectorAuthErrorsBuilder_ == null) { + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.add(m); + } else { + connectorAuthErrorsBuilder_.addMessage(m); + } + 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.cloud.discoveryengine.v1.AssistAnswer answer_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer, + com.google.cloud.discoveryengine.v1.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder> + answerBuilder_; + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * @return Whether the answer field is set. + */ + public boolean hasAnswer() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * @return The answer. + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer getAnswer() { + if (answerBuilder_ == null) { + return answer_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() + : answer_; + } else { + return answerBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + public Builder setAnswer(com.google.cloud.discoveryengine.v1.AssistAnswer value) { + if (answerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answer_ = value; + } else { + answerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + public Builder setAnswer( + com.google.cloud.discoveryengine.v1.AssistAnswer.Builder builderForValue) { + if (answerBuilder_ == null) { + answer_ = builderForValue.build(); + } else { + answerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + public Builder mergeAnswer(com.google.cloud.discoveryengine.v1.AssistAnswer value) { + if (answerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && answer_ != null + && answer_ != com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance()) { + getAnswerBuilder().mergeFrom(value); + } else { + answer_ = value; + } + } else { + answerBuilder_.mergeFrom(value); + } + if (answer_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + public Builder clearAnswer() { + bitField0_ = (bitField0_ & ~0x00000001); + answer_ = null; + if (answerBuilder_ != null) { + answerBuilder_.dispose(); + answerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + public com.google.cloud.discoveryengine.v1.AssistAnswer.Builder getAnswerBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + public com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder getAnswerOrBuilder() { + if (answerBuilder_ != null) { + return answerBuilder_.getMessageOrBuilder(); + } else { + return answer_ == null + ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() + : answer_; + } + } + + /** + * + * + *
+     * Assist answer resource object containing parts of the assistant's final
+     * answer for the user's query.
+     *
+     * Not present if the current response doesn't add anything to previously
+     * sent
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
+     *
+     * Observe
+     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
+     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
+     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
+     * field in each response will contain replies (reply fragments) to be
+     * appended to the ones received in previous responses.
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name]
+     * won't be filled.
+     *
+     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
+     * is the last response and
+     * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will
+     * have a value.
+     * 
+ * + * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer, + com.google.cloud.discoveryengine.v1.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder> + internalGetAnswerFieldBuilder() { + if (answerBuilder_ == null) { + answerBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AssistAnswer, + com.google.cloud.discoveryengine.v1.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder>( + getAnswer(), getParentForChildren(), isClean()); + answer_ = null; + } + return answerBuilder_; + } + + private com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo sessionInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder> + sessionInfoBuilder_; + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return Whether the sessionInfo field is set. + */ + public boolean hasSessionInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return The sessionInfo. + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo getSessionInfo() { + if (sessionInfoBuilder_ == null) { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } else { + return sessionInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder setSessionInfo( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionInfo_ = value; + } else { + sessionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder setSessionInfo( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder + builderForValue) { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = builderForValue.build(); + } else { + sessionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder mergeSessionInfo( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sessionInfo_ != null + && sessionInfo_ + != com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo + .getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); + } else { + sessionInfo_ = value; + } + } else { + sessionInfoBuilder_.mergeFrom(value); + } + if (sessionInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder clearSessionInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); + sessionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder + getSessionInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSessionInfoFieldBuilder().getBuilder(); + } - public static com.google.cloud.discoveryengine.v1.StreamAssistResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder() { + if (sessionInfoBuilder_ != null) { + return sessionInfoBuilder_.getMessageOrBuilder(); + } else { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
+     * Session information. Only included in the final StreamAssistResponse of the
+     * response stream.
+     * 
+ * + * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder> + internalGetSessionInfoFieldBuilder() { + if (sessionInfoBuilder_ == null) { + sessionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder>( + getSessionInfo(), getParentForChildren(), isClean()); + sessionInfo_ = null; + } + return sessionInfoBuilder_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private java.lang.Object assistToken_ = ""; - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1.StreamAssistResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+     * A global unique ID that identifies the current pair of request and stream
+     * of responses. Used for feedback and support.
+     * 
+ * + * string assist_token = 4; + * + * @return The assistToken. + */ + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+     * A global unique ID that identifies the current pair of request and stream
+     * of responses. Used for feedback and support.
+     * 
+ * + * string assist_token = 4; + * + * @return The bytes for assistToken. + */ + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+     * A global unique ID that identifies the current pair of request and stream
+     * of responses. Used for feedback and support.
+     * 
+ * + * string assist_token = 4; + * + * @param value The assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
-   * Response for the
-   * [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
-   * method.
-   * 
- * - * Protobuf type {@code google.cloud.discoveryengine.v1.StreamAssistResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.StreamAssistResponse) - com.google.cloud.discoveryengine.v1.StreamAssistResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1.AssistantServiceProto - .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor; + /** + * + * + *
+     * A global unique ID that identifies the current pair of request and stream
+     * of responses. Used for feedback and support.
+     * 
+ * + * string assist_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearAssistToken() { + assistToken_ = getDefaultInstance().getAssistToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1.AssistantServiceProto - .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1.StreamAssistResponse.class, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.Builder.class); + /** + * + * + *
+     * A global unique ID that identifies the current pair of request and stream
+     * of responses. Used for feedback and support.
+     * 
+ * + * string assist_token = 4; + * + * @param value The bytes for assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - // Construct using com.google.cloud.discoveryengine.v1.StreamAssistResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + private com.google.protobuf.LazyStringArrayList invocationTools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInvocationToolsIsMutable() { + if (!invocationTools_.isModifiable()) { + invocationTools_ = new com.google.protobuf.LazyStringArrayList(invocationTools_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @return A list containing the invocationTools. + */ + public com.google.protobuf.ProtocolStringList getInvocationToolsList() { + invocationTools_.makeImmutable(); + return invocationTools_; + } + + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @return The count of invocationTools. + */ + public int getInvocationToolsCount() { + return invocationTools_.size(); + } + + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index of the element to return. + * @return The invocationTools at the given index. + */ + public java.lang.String getInvocationTools(int index) { + return invocationTools_.get(index); } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index of the value to return. + * @return The bytes of the invocationTools at the given index. + */ + public com.google.protobuf.ByteString getInvocationToolsBytes(int index) { + return invocationTools_.getByteString(index); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetAnswerFieldBuilder(); - internalGetSessionInfoFieldBuilder(); + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index to set the value at. + * @param value The invocationTools to set. + * @return This builder for chaining. + */ + public Builder setInvocationTools(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureInvocationToolsIsMutable(); + invocationTools_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - answer_ = null; - if (answerBuilder_ != null) { - answerBuilder_.dispose(); - answerBuilder_ = null; - } - sessionInfo_ = null; - if (sessionInfoBuilder_ != null) { - sessionInfoBuilder_.dispose(); - sessionInfoBuilder_ = null; + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @param value The invocationTools to add. + * @return This builder for chaining. + */ + public Builder addInvocationTools(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - assistToken_ = ""; + ensureInvocationToolsIsMutable(); + invocationTools_.add(value); + bitField0_ |= 0x00000008; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1.AssistantServiceProto - .internal_static_google_cloud_discoveryengine_v1_StreamAssistResponse_descriptor; + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @param values The invocationTools to add. + * @return This builder for chaining. + */ + public Builder addAllInvocationTools(java.lang.Iterable values) { + ensureInvocationToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invocationTools_); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.StreamAssistResponse getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1.StreamAssistResponse.getDefaultInstance(); + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @return This builder for chaining. + */ + public Builder clearInvocationTools() { + invocationTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.StreamAssistResponse build() { - com.google.cloud.discoveryengine.v1.StreamAssistResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * The tool names of the tools that were invoked.
+     * 
+ * + * repeated string invocation_tools = 8; + * + * @param value The bytes of the invocationTools to add. + * @return This builder for chaining. + */ + public Builder addInvocationToolsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return result; + checkByteStringIsUtf8(value); + ensureInvocationToolsIsMutable(); + invocationTools_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1.StreamAssistResponse buildPartial() { - com.google.cloud.discoveryengine.v1.StreamAssistResponse result = - new com.google.cloud.discoveryengine.v1.StreamAssistResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private java.util.List + invokedSkills_ = java.util.Collections.emptyList(); - private void buildPartial0(com.google.cloud.discoveryengine.v1.StreamAssistResponse result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.answer_ = answerBuilder_ == null ? answer_ : answerBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.sessionInfo_ = - sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); - to_bitField0_ |= 0x00000002; + private void ensureInvokedSkillsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + invokedSkills_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill>( + invokedSkills_); + bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.assistToken_ = assistToken_; - } - result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1.StreamAssistResponse) { - return mergeFrom((com.google.cloud.discoveryengine.v1.StreamAssistResponse) other); + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder> + invokedSkillsBuilder_; + + /** + * + * + *
+     * The skills executed during the turn.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public java.util.List + getInvokedSkillsList() { + if (invokedSkillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(invokedSkills_); } else { - super.mergeFrom(other); - return this; + return invokedSkillsBuilder_.getMessageList(); } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1.StreamAssistResponse other) { - if (other == com.google.cloud.discoveryengine.v1.StreamAssistResponse.getDefaultInstance()) - return this; - if (other.hasAnswer()) { - mergeAnswer(other.getAnswer()); - } - if (other.hasSessionInfo()) { - mergeSessionInfo(other.getSessionInfo()); - } - if (!other.getAssistToken().isEmpty()) { - assistToken_ = other.assistToken_; - bitField0_ |= 0x00000004; - onChanged(); + /** + * + * + *
+     * The skills executed during the turn.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public int getInvokedSkillsCount() { + if (invokedSkillsBuilder_ == null) { + return invokedSkills_.size(); + } else { + return invokedSkillsBuilder_.getCount(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * The skills executed during the turn.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill getInvokedSkills( + int index) { + if (invokedSkillsBuilder_ == null) { + return invokedSkills_.get(index); + } else { + return invokedSkillsBuilder_.getMessage(index); + } } - @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(internalGetAnswerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - assistToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - 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 { + /** + * + * + *
+     * The skills executed during the turn.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder setInvokedSkills( + int index, com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill value) { + if (invokedSkillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvokedSkillsIsMutable(); + invokedSkills_.set(index, value); onChanged(); - } // finally + } else { + invokedSkillsBuilder_.setMessage(index, value); + } return this; - } - - private int bitField0_; - - private com.google.cloud.discoveryengine.v1.AssistAnswer answer_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AssistAnswer, - com.google.cloud.discoveryengine.v1.AssistAnswer.Builder, - com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder> - answerBuilder_; + } /** * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder setInvokedSkills( + int index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + builderForValue) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.set(index, builderForValue.build()); + onChanged(); + } else { + invokedSkillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * The skills executed during the turn.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; - * - * @return Whether the answer field is set. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * */ - public boolean hasAnswer() { - return ((bitField0_ & 0x00000001) != 0); + public Builder addInvokedSkills( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill value) { + if (invokedSkillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(value); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(value); + } + return this; } /** * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addInvokedSkills( + int index, com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill value) { + if (invokedSkillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(index, value); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(index, value); + } + return this; + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * The skills executed during the turn.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; - * - * @return The answer. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * */ - public com.google.cloud.discoveryengine.v1.AssistAnswer getAnswer() { - if (answerBuilder_ == null) { - return answer_ == null - ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() - : answer_; + public Builder addInvokedSkills( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + builderForValue) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(builderForValue.build()); + onChanged(); } else { - return answerBuilder_.getMessage(); + invokedSkillsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addInvokedSkills( + int index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + builderForValue) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(index, builderForValue.build()); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * The skills executed during the turn.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * */ - public Builder setAnswer(com.google.cloud.discoveryengine.v1.AssistAnswer value) { - if (answerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - answer_ = value; + public Builder addAllInvokedSkills( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill> + values) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invokedSkills_); + onChanged(); } else { - answerBuilder_.setMessage(value); + invokedSkillsBuilder_.addAllMessages(values); } - bitField0_ |= 0x00000001; - onChanged(); return this; } @@ -1442,36 +4616,43 @@ public Builder setAnswer(com.google.cloud.discoveryengine.v1.AssistAnswer value) * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder clearInvokedSkills() { + if (invokedSkillsBuilder_ == null) { + invokedSkills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + invokedSkillsBuilder_.clear(); + } + return this; + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * The skills executed during the turn.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * */ - public Builder setAnswer( - com.google.cloud.discoveryengine.v1.AssistAnswer.Builder builderForValue) { - if (answerBuilder_ == null) { - answer_ = builderForValue.build(); + public Builder removeInvokedSkills(int index) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.remove(index); + onChanged(); } else { - answerBuilder_.setMessage(builderForValue.build()); + invokedSkillsBuilder_.remove(index); } - bitField0_ |= 0x00000001; - onChanged(); return this; } @@ -1479,145 +4660,197 @@ public Builder setAnswer( * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + getInvokedSkillsBuilder(int index) { + return internalGetInvokedSkillsFieldBuilder().getBuilder(index); + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * The skills executed during the turn.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * */ - public Builder mergeAnswer(com.google.cloud.discoveryengine.v1.AssistAnswer value) { - if (answerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && answer_ != null - && answer_ != com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance()) { - getAnswerBuilder().mergeFrom(value); - } else { - answer_ = value; - } + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder + getInvokedSkillsOrBuilder(int index) { + if (invokedSkillsBuilder_ == null) { + return invokedSkills_.get(index); } else { - answerBuilder_.mergeFrom(value); + return invokedSkillsBuilder_.getMessageOrBuilder(index); } - if (answer_ != null) { - bitField0_ |= 0x00000001; - onChanged(); + } + + /** + * + * + *
+     * The skills executed during the turn.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder> + getInvokedSkillsOrBuilderList() { + if (invokedSkillsBuilder_ != null) { + return invokedSkillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invokedSkills_); } - return this; } /** * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + addInvokedSkillsBuilder() { + return internalGetInvokedSkillsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + .getDefaultInstance()); + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * The skills executed during the turn.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * */ - public Builder clearAnswer() { - bitField0_ = (bitField0_ & ~0x00000001); - answer_ = null; - if (answerBuilder_ != null) { - answerBuilder_.dispose(); - answerBuilder_ = null; - } - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder + addInvokedSkillsBuilder(int index) { + return internalGetInvokedSkillsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill + .getDefaultInstance()); } /** * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * The skills executed during the turn.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder> + getInvokedSkillsBuilderList() { + return internalGetInvokedSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder> + internalGetInvokedSkillsFieldBuilder() { + if (invokedSkillsBuilder_ == null) { + invokedSkillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder>( + invokedSkills_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + invokedSkills_ = null; + } + return invokedSkillsBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError> + connectorAuthErrors_ = java.util.Collections.emptyList(); + + private void ensureConnectorAuthErrorsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + connectorAuthErrors_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError>( + connectorAuthErrors_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder> + connectorAuthErrorsBuilder_; + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public com.google.cloud.discoveryengine.v1.AssistAnswer.Builder getAnswerBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetAnswerFieldBuilder().getBuilder(); + public java.util.List< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError> + getConnectorAuthErrorsList() { + if (connectorAuthErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectorAuthErrors_); + } else { + return connectorAuthErrorsBuilder_.getMessageList(); + } } /** * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
-     *
-     * Not present if the current response doesn't add anything to previously
-     * sent
-     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies].
-     *
-     * Observe
-     * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
-     * see if more parts are to be expected. While the state is `IN_PROGRESS`, the
-     * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
-     * field in each response will contain replies (reply fragments) to be
-     * appended to the ones received in previous responses. [AssistAnswer.name][]
-     * won't be filled.
-     *
-     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
-     * is the last response and [AssistAnswer.name][] will have a value.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder getAnswerOrBuilder() { - if (answerBuilder_ != null) { - return answerBuilder_.getMessageOrBuilder(); + public int getConnectorAuthErrorsCount() { + if (connectorAuthErrorsBuilder_ == null) { + return connectorAuthErrors_.size(); } else { - return answer_ == null - ? com.google.cloud.discoveryengine.v1.AssistAnswer.getDefaultInstance() - : answer_; + return connectorAuthErrorsBuilder_.getCount(); } } @@ -1625,112 +4858,134 @@ public com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder getAnswerOrBuil * * *
-     * Assist answer resource object containing parts of the assistant's final
-     * answer for the user's query.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
+     * 
* - * Not present if the current response doesn't add anything to previously - * sent - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + getConnectorAuthErrors(int index) { + if (connectorAuthErrorsBuilder_ == null) { + return connectorAuthErrors_.get(index); + } else { + return connectorAuthErrorsBuilder_.getMessage(index); + } + } + + /** * - * Observe - * [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to - * see if more parts are to be expected. While the state is `IN_PROGRESS`, the - * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] - * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] - * won't be filled. * - * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + *
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AssistAnswer, - com.google.cloud.discoveryengine.v1.AssistAnswer.Builder, - com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder> - internalGetAnswerFieldBuilder() { - if (answerBuilder_ == null) { - answerBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.AssistAnswer, - com.google.cloud.discoveryengine.v1.AssistAnswer.Builder, - com.google.cloud.discoveryengine.v1.AssistAnswerOrBuilder>( - getAnswer(), getParentForChildren(), isClean()); - answer_ = null; + public Builder setConnectorAuthErrors( + int index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError value) { + if (connectorAuthErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.set(index, value); + onChanged(); + } else { + connectorAuthErrorsBuilder_.setMessage(index, value); } - return answerBuilder_; + return this; } - private com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo sessionInfo_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder> - sessionInfoBuilder_; - /** * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * - * - * @return Whether the sessionInfo field is set. */ - public boolean hasSessionInfo() { - return ((bitField0_ & 0x00000002) != 0); + public Builder setConnectorAuthErrors( + int index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + builderForValue) { + if (connectorAuthErrorsBuilder_ == null) { + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + connectorAuthErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * - * - * @return The sessionInfo. */ - public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo getSessionInfo() { - if (sessionInfoBuilder_ == null) { - return sessionInfo_ == null - ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo - .getDefaultInstance() - : sessionInfo_; + public Builder addConnectorAuthErrors( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError value) { + if (connectorAuthErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.add(value); + onChanged(); } else { - return sessionInfoBuilder_.getMessage(); + connectorAuthErrorsBuilder_.addMessage(value); } + return this; } /** * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - public Builder setSessionInfo( - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo value) { - if (sessionInfoBuilder_ == null) { + public Builder addConnectorAuthErrors( + int index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError value) { + if (connectorAuthErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sessionInfo_ = value; + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.add(index, value); + onChanged(); } else { - sessionInfoBuilder_.setMessage(value); + connectorAuthErrorsBuilder_.addMessage(index, value); } - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -1738,22 +4993,25 @@ public Builder setSessionInfo( * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - public Builder setSessionInfo( - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder + public Builder addConnectorAuthErrors( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder builderForValue) { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = builderForValue.build(); + if (connectorAuthErrorsBuilder_ == null) { + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.add(builderForValue.build()); + onChanged(); } else { - sessionInfoBuilder_.setMessage(builderForValue.build()); + connectorAuthErrorsBuilder_.addMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -1761,30 +5019,25 @@ public Builder setSessionInfo( * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - public Builder mergeSessionInfo( - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo value) { - if (sessionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && sessionInfo_ != null - && sessionInfo_ - != com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo - .getDefaultInstance()) { - getSessionInfoBuilder().mergeFrom(value); - } else { - sessionInfo_ = value; - } - } else { - sessionInfoBuilder_.mergeFrom(value); - } - if (sessionInfo_ != null) { - bitField0_ |= 0x00000002; + public Builder addConnectorAuthErrors( + int index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + builderForValue) { + if (connectorAuthErrorsBuilder_ == null) { + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.add(index, builderForValue.build()); onChanged(); + } else { + connectorAuthErrorsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -1793,20 +5046,27 @@ public Builder mergeSessionInfo( * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - public Builder clearSessionInfo() { - bitField0_ = (bitField0_ & ~0x00000002); - sessionInfo_ = null; - if (sessionInfoBuilder_ != null) { - sessionInfoBuilder_.dispose(); - sessionInfoBuilder_ = null; + public Builder addAllConnectorAuthErrors( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError> + values) { + if (connectorAuthErrorsBuilder_ == null) { + ensureConnectorAuthErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectorAuthErrors_); + onChanged(); + } else { + connectorAuthErrorsBuilder_.addAllMessages(values); } - onChanged(); return this; } @@ -1814,91 +5074,87 @@ public Builder clearSessionInfo() { * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder - getSessionInfoBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetSessionInfoFieldBuilder().getBuilder(); + public Builder clearConnectorAuthErrors() { + if (connectorAuthErrorsBuilder_ == null) { + connectorAuthErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + connectorAuthErrorsBuilder_.clear(); + } + return this; } /** * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - public com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder - getSessionInfoOrBuilder() { - if (sessionInfoBuilder_ != null) { - return sessionInfoBuilder_.getMessageOrBuilder(); + public Builder removeConnectorAuthErrors(int index) { + if (connectorAuthErrorsBuilder_ == null) { + ensureConnectorAuthErrorsIsMutable(); + connectorAuthErrors_.remove(index); + onChanged(); } else { - return sessionInfo_ == null - ? com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo - .getDefaultInstance() - : sessionInfo_; + connectorAuthErrorsBuilder_.remove(index); } + return this; } /** * * *
-     * Session information.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder> - internalGetSessionInfoFieldBuilder() { - if (sessionInfoBuilder_ == null) { - sessionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo.Builder, - com.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfoOrBuilder>( - getSessionInfo(), getParentForChildren(), isClean()); - sessionInfo_ = null; - } - return sessionInfoBuilder_; + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + getConnectorAuthErrorsBuilder(int index) { + return internalGetConnectorAuthErrorsFieldBuilder().getBuilder(index); } - private java.lang.Object assistToken_ = ""; - /** * * *
-     * A global unique ID that identifies the current pair of request and stream
-     * of responses. Used for feedback and support.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * string assist_token = 4; - * - * @return The assistToken. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public java.lang.String getAssistToken() { - java.lang.Object ref = assistToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assistToken_ = s; - return s; + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder + getConnectorAuthErrorsOrBuilder(int index) { + if (connectorAuthErrorsBuilder_ == null) { + return connectorAuthErrors_.get(index); } else { - return (java.lang.String) ref; + return connectorAuthErrorsBuilder_.getMessageOrBuilder(index); } } @@ -1906,23 +5162,24 @@ public java.lang.String getAssistToken() { * * *
-     * A global unique ID that identifies the current pair of request and stream
-     * of responses. Used for feedback and support.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * string assist_token = 4; - * - * @return The bytes for assistToken. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public com.google.protobuf.ByteString getAssistTokenBytes() { - java.lang.Object ref = assistToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - assistToken_ = b; - return b; + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.StreamAssistResponse + .ConnectorAuthErrorOrBuilder> + getConnectorAuthErrorsOrBuilderList() { + if (connectorAuthErrorsBuilder_ != null) { + return connectorAuthErrorsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(connectorAuthErrors_); } } @@ -1930,66 +5187,83 @@ public com.google.protobuf.ByteString getAssistTokenBytes() { * * *
-     * A global unique ID that identifies the current pair of request and stream
-     * of responses. Used for feedback and support.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * string assist_token = 4; - * - * @param value The assistToken to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public Builder setAssistToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - assistToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + addConnectorAuthErrorsBuilder() { + return internalGetConnectorAuthErrorsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + .getDefaultInstance()); } /** * * *
-     * A global unique ID that identifies the current pair of request and stream
-     * of responses. Used for feedback and support.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * string assist_token = 4; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public Builder clearAssistToken() { - assistToken_ = getDefaultInstance().getAssistToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder + addConnectorAuthErrorsBuilder(int index) { + return internalGetConnectorAuthErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + .getDefaultInstance()); } /** * * *
-     * A global unique ID that identifies the current pair of request and stream
-     * of responses. Used for feedback and support.
+     * Per-connector authentication errors encountered during the request.
+     * Present when one or more connectors failed authentication but the
+     * request proceeded with the remaining connectors.
      * 
* - * string assist_token = 4; - * - * @param value The bytes for assistToken to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * */ - public Builder setAssistTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder> + getConnectorAuthErrorsBuilderList() { + return internalGetConnectorAuthErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder> + internalGetConnectorAuthErrorsFieldBuilder() { + if (connectorAuthErrorsBuilder_ == null) { + connectorAuthErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError, + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError.Builder, + com.google.cloud.discoveryengine.v1.StreamAssistResponse + .ConnectorAuthErrorOrBuilder>( + connectorAuthErrors_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + connectorAuthErrors_ = null; } - checkByteStringIsUtf8(value); - assistToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return connectorAuthErrorsBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.StreamAssistResponse) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponseOrBuilder.java index 858fb2ecb113..500fa9547145 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponseOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/StreamAssistResponseOrBuilder.java @@ -42,11 +42,14 @@ public interface StreamAssistResponseOrBuilder * see if more parts are to be expected. While the state is `IN_PROGRESS`, the * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] + * appended to the ones received in previous responses. + * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] * won't be filled. * * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + * is the last response and + * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will + * have a value. * * * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; @@ -71,11 +74,14 @@ public interface StreamAssistResponseOrBuilder * see if more parts are to be expected. While the state is `IN_PROGRESS`, the * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] + * appended to the ones received in previous responses. + * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] * won't be filled. * * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + * is the last response and + * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will + * have a value. * * * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; @@ -100,11 +106,14 @@ public interface StreamAssistResponseOrBuilder * see if more parts are to be expected. While the state is `IN_PROGRESS`, the * [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] * field in each response will contain replies (reply fragments) to be - * appended to the ones received in previous responses. [AssistAnswer.name][] + * appended to the ones received in previous responses. + * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] * won't be filled. * * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - * is the last response and [AssistAnswer.name][] will have a value. + * is the last response and + * [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will + * have a value. * * * .google.cloud.discoveryengine.v1.AssistAnswer answer = 1; @@ -115,7 +124,8 @@ public interface StreamAssistResponseOrBuilder * * *
-   * Session information.
+   * Session information. Only included in the final StreamAssistResponse of the
+   * response stream.
    * 
* * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; @@ -129,7 +139,8 @@ public interface StreamAssistResponseOrBuilder * * *
-   * Session information.
+   * Session information. Only included in the final StreamAssistResponse of the
+   * response stream.
    * 
* * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; @@ -143,7 +154,8 @@ public interface StreamAssistResponseOrBuilder * * *
-   * Session information.
+   * Session information. Only included in the final StreamAssistResponse of the
+   * response stream.
    * 
* * .google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; @@ -179,4 +191,208 @@ public interface StreamAssistResponseOrBuilder * @return The bytes for assistToken. */ com.google.protobuf.ByteString getAssistTokenBytes(); + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @return A list containing the invocationTools. + */ + java.util.List getInvocationToolsList(); + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @return The count of invocationTools. + */ + int getInvocationToolsCount(); + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index of the element to return. + * @return The invocationTools at the given index. + */ + java.lang.String getInvocationTools(int index); + + /** + * + * + *
+   * The tool names of the tools that were invoked.
+   * 
+ * + * repeated string invocation_tools = 8; + * + * @param index The index of the value to return. + * @return The bytes of the invocationTools at the given index. + */ + com.google.protobuf.ByteString getInvocationToolsBytes(int index); + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + java.util.List + getInvokedSkillsList(); + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill getInvokedSkills(int index); + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + int getInvokedSkillsCount(); + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder> + getInvokedSkillsOrBuilderList(); + + /** + * + * + *
+   * The skills executed during the turn.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + com.google.cloud.discoveryengine.v1.StreamAssistResponse.InvokedSkillOrBuilder + getInvokedSkillsOrBuilder(int index); + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + java.util.List + getConnectorAuthErrorsList(); + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError + getConnectorAuthErrors(int index); + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + int getConnectorAuthErrorsCount(); + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder> + getConnectorAuthErrorsOrBuilderList(); + + /** + * + * + *
+   * Per-connector authentication errors encountered during the request.
+   * Present when one or more connectors failed authentication but the
+   * request proceeded with the remaining connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthError connector_auth_errors = 11; + * + */ + com.google.cloud.discoveryengine.v1.StreamAssistResponse.ConnectorAuthErrorOrBuilder + getConnectorAuthErrorsOrBuilder(int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTerm.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTerm.java new file mode 100644 index 000000000000..884328b4de41 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTerm.java @@ -0,0 +1,237 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Subscription term.
+ * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.SubscriptionTerm} + */ +@com.google.protobuf.Generated +public enum SubscriptionTerm implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value, do not use.
+   * 
+ * + * SUBSCRIPTION_TERM_UNSPECIFIED = 0; + */ + SUBSCRIPTION_TERM_UNSPECIFIED(0), + /** + * + * + *
+   * 1 month.
+   * 
+ * + * SUBSCRIPTION_TERM_ONE_MONTH = 1; + */ + SUBSCRIPTION_TERM_ONE_MONTH(1), + /** + * + * + *
+   * 1 year.
+   * 
+ * + * SUBSCRIPTION_TERM_ONE_YEAR = 2; + */ + SUBSCRIPTION_TERM_ONE_YEAR(2), + /** + * + * + *
+   * 3 years.
+   * 
+ * + * SUBSCRIPTION_TERM_THREE_YEARS = 3; + */ + SUBSCRIPTION_TERM_THREE_YEARS(3), + /** + * + * + *
+   * Custom term. Must set the end_date.
+   * 
+ * + * SUBSCRIPTION_TERM_CUSTOM = 6; + */ + SUBSCRIPTION_TERM_CUSTOM(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SubscriptionTerm"); + } + + /** + * + * + *
+   * Default value, do not use.
+   * 
+ * + * SUBSCRIPTION_TERM_UNSPECIFIED = 0; + */ + public static final int SUBSCRIPTION_TERM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * 1 month.
+   * 
+ * + * SUBSCRIPTION_TERM_ONE_MONTH = 1; + */ + public static final int SUBSCRIPTION_TERM_ONE_MONTH_VALUE = 1; + + /** + * + * + *
+   * 1 year.
+   * 
+ * + * SUBSCRIPTION_TERM_ONE_YEAR = 2; + */ + public static final int SUBSCRIPTION_TERM_ONE_YEAR_VALUE = 2; + + /** + * + * + *
+   * 3 years.
+   * 
+ * + * SUBSCRIPTION_TERM_THREE_YEARS = 3; + */ + public static final int SUBSCRIPTION_TERM_THREE_YEARS_VALUE = 3; + + /** + * + * + *
+   * Custom term. Must set the end_date.
+   * 
+ * + * SUBSCRIPTION_TERM_CUSTOM = 6; + */ + public static final int SUBSCRIPTION_TERM_CUSTOM_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SubscriptionTerm 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 SubscriptionTerm forNumber(int value) { + switch (value) { + case 0: + return SUBSCRIPTION_TERM_UNSPECIFIED; + case 1: + return SUBSCRIPTION_TERM_ONE_MONTH; + case 2: + return SUBSCRIPTION_TERM_ONE_YEAR; + case 3: + return SUBSCRIPTION_TERM_THREE_YEARS; + case 6: + return SUBSCRIPTION_TERM_CUSTOM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SubscriptionTerm findValueByNumber(int number) { + return SubscriptionTerm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor().getEnumTypes().get(6); + } + + private static final SubscriptionTerm[] VALUES = values(); + + public static SubscriptionTerm 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 SubscriptionTerm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SubscriptionTerm) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTier.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTier.java new file mode 100644 index 000000000000..a86d9016206c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SubscriptionTier.java @@ -0,0 +1,496 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/common.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Subscription tier information.
+ * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.SubscriptionTier} + */ +@com.google.protobuf.Generated +public enum SubscriptionTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * SUBSCRIPTION_TIER_UNSPECIFIED = 0; + */ + SUBSCRIPTION_TIER_UNSPECIFIED(0), + /** + * + * + *
+   * Search tier.
+   * Search tier can access Vertex AI Search features and NotebookLM features.
+   * 
+ * + * SUBSCRIPTION_TIER_SEARCH = 1; + */ + SUBSCRIPTION_TIER_SEARCH(1), + /** + * + * + *
+   * Gemini Enterprise Plus tier.
+   * 
+ * + * SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT = 2; + */ + SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT(2), + /** + * + * + *
+   * NotebookLM tier.
+   * NotebookLM is a subscription tier can only access NotebookLM features.
+   * 
+ * + * SUBSCRIPTION_TIER_NOTEBOOK_LM = 3; + */ + SUBSCRIPTION_TIER_NOTEBOOK_LM(3), + /** + * + * + *
+   * Gemini Frontline worker tier.
+   * 
+ * + * SUBSCRIPTION_TIER_FRONTLINE_WORKER = 4; + */ + SUBSCRIPTION_TIER_FRONTLINE_WORKER(4), + /** + * + * + *
+   * Gemini Business Starter tier.
+   * 
+ * + * SUBSCRIPTION_TIER_AGENTSPACE_STARTER = 10; + */ + SUBSCRIPTION_TIER_AGENTSPACE_STARTER(10), + /** + * + * + *
+   * Gemini Business tier.
+   * 
+ * + * SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS = 6; + */ + SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS(6), + /** + * + * + *
+   * Gemini Enterprise Standard tier.
+   * 
+ * + * SUBSCRIPTION_TIER_ENTERPRISE = 7; + */ + SUBSCRIPTION_TIER_ENTERPRISE(7), + /** + * + * + *
+   * Gemini Enterprise Standard tier for emerging markets.
+   * 
+ * + * SUBSCRIPTION_TIER_ENTERPRISE_EMERGING = 15; + */ + SUBSCRIPTION_TIER_ENTERPRISE_EMERGING(15), + /** + * + * + *
+   * Gemini Enterprise EDU tier.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU = 8; + */ + SUBSCRIPTION_TIER_EDU(8), + /** + * + * + *
+   * Gemini Enterprise EDU Pro tier.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_PRO = 9; + */ + SUBSCRIPTION_TIER_EDU_PRO(9), + /** + * + * + *
+   * Gemini Enterprise EDU tier for emerging market only.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_EMERGING = 11; + */ + SUBSCRIPTION_TIER_EDU_EMERGING(11), + /** + * + * + *
+   * Gemini Enterprise EDU Pro tier for emerging market.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_PRO_EMERGING = 12; + */ + SUBSCRIPTION_TIER_EDU_PRO_EMERGING(12), + /** + * + * + *
+   * Gemini Frontline Starter tier.
+   * 
+ * + * SUBSCRIPTION_TIER_FRONTLINE_STARTER = 13; + */ + SUBSCRIPTION_TIER_FRONTLINE_STARTER(13), + /** + * + * + *
+   * Represents the Gemini Enterprise Consumption-only tier: $0 subscription
+   * billed purely on usage (PAYG).
+   * 
+ * + * SUBSCRIPTION_TIER_CONSUMPTION_ONLY = 16; + */ + SUBSCRIPTION_TIER_CONSUMPTION_ONLY(16), + /** + * + * + *
+   * Gemini Enterprise EDU tier for government in emerging markets.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_GOV_EMERGING = 17; + */ + SUBSCRIPTION_TIER_EDU_GOV_EMERGING(17), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SubscriptionTier"); + } + + /** + * + * + *
+   * Default value.
+   * 
+ * + * SUBSCRIPTION_TIER_UNSPECIFIED = 0; + */ + public static final int SUBSCRIPTION_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Search tier.
+   * Search tier can access Vertex AI Search features and NotebookLM features.
+   * 
+ * + * SUBSCRIPTION_TIER_SEARCH = 1; + */ + public static final int SUBSCRIPTION_TIER_SEARCH_VALUE = 1; + + /** + * + * + *
+   * Gemini Enterprise Plus tier.
+   * 
+ * + * SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT = 2; + */ + public static final int SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT_VALUE = 2; + + /** + * + * + *
+   * NotebookLM tier.
+   * NotebookLM is a subscription tier can only access NotebookLM features.
+   * 
+ * + * SUBSCRIPTION_TIER_NOTEBOOK_LM = 3; + */ + public static final int SUBSCRIPTION_TIER_NOTEBOOK_LM_VALUE = 3; + + /** + * + * + *
+   * Gemini Frontline worker tier.
+   * 
+ * + * SUBSCRIPTION_TIER_FRONTLINE_WORKER = 4; + */ + public static final int SUBSCRIPTION_TIER_FRONTLINE_WORKER_VALUE = 4; + + /** + * + * + *
+   * Gemini Business Starter tier.
+   * 
+ * + * SUBSCRIPTION_TIER_AGENTSPACE_STARTER = 10; + */ + public static final int SUBSCRIPTION_TIER_AGENTSPACE_STARTER_VALUE = 10; + + /** + * + * + *
+   * Gemini Business tier.
+   * 
+ * + * SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS = 6; + */ + public static final int SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS_VALUE = 6; + + /** + * + * + *
+   * Gemini Enterprise Standard tier.
+   * 
+ * + * SUBSCRIPTION_TIER_ENTERPRISE = 7; + */ + public static final int SUBSCRIPTION_TIER_ENTERPRISE_VALUE = 7; + + /** + * + * + *
+   * Gemini Enterprise Standard tier for emerging markets.
+   * 
+ * + * SUBSCRIPTION_TIER_ENTERPRISE_EMERGING = 15; + */ + public static final int SUBSCRIPTION_TIER_ENTERPRISE_EMERGING_VALUE = 15; + + /** + * + * + *
+   * Gemini Enterprise EDU tier.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU = 8; + */ + public static final int SUBSCRIPTION_TIER_EDU_VALUE = 8; + + /** + * + * + *
+   * Gemini Enterprise EDU Pro tier.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_PRO = 9; + */ + public static final int SUBSCRIPTION_TIER_EDU_PRO_VALUE = 9; + + /** + * + * + *
+   * Gemini Enterprise EDU tier for emerging market only.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_EMERGING = 11; + */ + public static final int SUBSCRIPTION_TIER_EDU_EMERGING_VALUE = 11; + + /** + * + * + *
+   * Gemini Enterprise EDU Pro tier for emerging market.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_PRO_EMERGING = 12; + */ + public static final int SUBSCRIPTION_TIER_EDU_PRO_EMERGING_VALUE = 12; + + /** + * + * + *
+   * Gemini Frontline Starter tier.
+   * 
+ * + * SUBSCRIPTION_TIER_FRONTLINE_STARTER = 13; + */ + public static final int SUBSCRIPTION_TIER_FRONTLINE_STARTER_VALUE = 13; + + /** + * + * + *
+   * Represents the Gemini Enterprise Consumption-only tier: $0 subscription
+   * billed purely on usage (PAYG).
+   * 
+ * + * SUBSCRIPTION_TIER_CONSUMPTION_ONLY = 16; + */ + public static final int SUBSCRIPTION_TIER_CONSUMPTION_ONLY_VALUE = 16; + + /** + * + * + *
+   * Gemini Enterprise EDU tier for government in emerging markets.
+   * 
+ * + * SUBSCRIPTION_TIER_EDU_GOV_EMERGING = 17; + */ + public static final int SUBSCRIPTION_TIER_EDU_GOV_EMERGING_VALUE = 17; + + 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 SubscriptionTier 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 SubscriptionTier forNumber(int value) { + switch (value) { + case 0: + return SUBSCRIPTION_TIER_UNSPECIFIED; + case 1: + return SUBSCRIPTION_TIER_SEARCH; + case 2: + return SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT; + case 3: + return SUBSCRIPTION_TIER_NOTEBOOK_LM; + case 4: + return SUBSCRIPTION_TIER_FRONTLINE_WORKER; + case 10: + return SUBSCRIPTION_TIER_AGENTSPACE_STARTER; + case 6: + return SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS; + case 7: + return SUBSCRIPTION_TIER_ENTERPRISE; + case 15: + return SUBSCRIPTION_TIER_ENTERPRISE_EMERGING; + case 8: + return SUBSCRIPTION_TIER_EDU; + case 9: + return SUBSCRIPTION_TIER_EDU_PRO; + case 11: + return SUBSCRIPTION_TIER_EDU_EMERGING; + case 12: + return SUBSCRIPTION_TIER_EDU_PRO_EMERGING; + case 13: + return SUBSCRIPTION_TIER_FRONTLINE_STARTER; + case 16: + return SUBSCRIPTION_TIER_CONSUMPTION_ONLY; + case 17: + return SUBSCRIPTION_TIER_EDU_GOV_EMERGING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SubscriptionTier findValueByNumber(int number) { + return SubscriptionTier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor().getEnumTypes().get(5); + } + + private static final SubscriptionTier[] VALUES = values(); + + public static SubscriptionTier 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 SubscriptionTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.SubscriptionTier) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Tenant.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Tenant.java new file mode 100644 index 000000000000..d60743deaadf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/Tenant.java @@ -0,0 +1,998 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Tenant information for a connector source. This includes some of the same
+ * information stored in the Credential message, but is limited to only what is
+ * needed to provide a list of accessible tenants to the user.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Tenant} + */ +@com.google.protobuf.Generated +public final class Tenant extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.Tenant) + TenantOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Tenant"); + } + + // Use Tenant.newBuilder() to construct. + private Tenant(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tenant() { + id_ = ""; + uri_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Tenant.class, + com.google.cloud.discoveryengine.v1.Tenant.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * The tenant's instance ID. Examples: Jira
+   * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+   * 
+ * + * string id = 1; + * + * @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; + } + } + + /** + * + * + *
+   * The tenant's instance ID. Examples: Jira
+   * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+   * 
+ * + * string id = 1; + * + * @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 URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * The URI of the tenant, if applicable. For example, the URI of a Jira
+   * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+   * not have a URI.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * The URI of the tenant, if applicable. For example, the URI of a Jira
+   * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+   * not have a URI.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional display name for the tenant, e.g. "My Slack Team".
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional display name for the tenant, e.g. "My Slack Team".
+   * 
+ * + * string display_name = 3; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.Tenant)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.Tenant other = + (com.google.cloud.discoveryengine.v1.Tenant) obj; + + if (!getId().equals(other.getId())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.Tenant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Tenant information for a connector source. This includes some of the same
+   * information stored in the Credential message, but is limited to only what is
+   * needed to provide a list of accessible tenants to the user.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.Tenant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.Tenant) + com.google.cloud.discoveryengine.v1.TenantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_Tenant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.Tenant.class, + com.google.cloud.discoveryengine.v1.Tenant.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.Tenant.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + uri_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorProto + .internal_static_google_cloud_discoveryengine_v1_Tenant_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Tenant getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Tenant build() { + com.google.cloud.discoveryengine.v1.Tenant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Tenant buildPartial() { + com.google.cloud.discoveryengine.v1.Tenant result = + new com.google.cloud.discoveryengine.v1.Tenant(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.Tenant result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.Tenant) { + return mergeFrom((com.google.cloud.discoveryengine.v1.Tenant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.Tenant other) { + if (other == com.google.cloud.discoveryengine.v1.Tenant.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = 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 id_ = ""; + + /** + * + * + *
+     * The tenant's instance ID. Examples: Jira
+     * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+     * 
+ * + * string id = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The tenant's instance ID. Examples: Jira
+     * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+     * 
+ * + * string id = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The tenant's instance ID. Examples: Jira
+     * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+     * 
+ * + * string id = 1; + * + * @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; + } + + /** + * + * + *
+     * The tenant's instance ID. Examples: Jira
+     * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The tenant's instance ID. Examples: Jira
+     * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+     * 
+ * + * string id = 1; + * + * @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 uri_ = ""; + + /** + * + * + *
+     * The URI of the tenant, if applicable. For example, the URI of a Jira
+     * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+     * not have a URI.
+     * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The URI of the tenant, if applicable. For example, the URI of a Jira
+     * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+     * not have a URI.
+     * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The URI of the tenant, if applicable. For example, the URI of a Jira
+     * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+     * not have a URI.
+     * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the tenant, if applicable. For example, the URI of a Jira
+     * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+     * not have a URI.
+     * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The URI of the tenant, if applicable. For example, the URI of a Jira
+     * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+     * not have a URI.
+     * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional display name for the tenant, e.g. "My Slack Team".
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional display name for the tenant, e.g. "My Slack Team".
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional display name for the tenant, e.g. "My Slack Team".
+     * 
+ * + * string display_name = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional display name for the tenant, e.g. "My Slack Team".
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional display name for the tenant, e.g. "My Slack Team".
+     * 
+ * + * string display_name = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.Tenant) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.Tenant) + private static final com.google.cloud.discoveryengine.v1.Tenant DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.Tenant(); + } + + public static com.google.cloud.discoveryengine.v1.Tenant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tenant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Tenant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TenantOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TenantOrBuilder.java new file mode 100644 index 000000000000..60d95513641f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TenantOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface TenantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.Tenant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The tenant's instance ID. Examples: Jira
+   * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * The tenant's instance ID. Examples: Jira
+   * ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456").
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * The URI of the tenant, if applicable. For example, the URI of a Jira
+   * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+   * not have a URI.
+   * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * The URI of the tenant, if applicable. For example, the URI of a Jira
+   * instance is https://my-jira-instance.atlassian.net, and a Slack tenant does
+   * not have a URI.
+   * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * Optional display name for the tenant, e.g. "My Slack Team".
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional display name for the tenant, e.g. "My Slack Team".
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequest.java new file mode 100644 index 000000000000..e99d9d924cf0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequest.java @@ -0,0 +1,652 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for UpdateAclConfig method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateAclConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAclConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateAclConfigRequest) + UpdateAclConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateAclConfigRequest"); + } + + // Use UpdateAclConfigRequest.newBuilder() to construct. + private UpdateAclConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAclConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.class, + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.AclConfig aclConfig_; + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + @java.lang.Override + public boolean hasAclConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AclConfig getAclConfig() { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance() + : aclConfig_; + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AclConfigOrBuilder getAclConfigOrBuilder() { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance() + : aclConfig_; + } + + 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, getAclConfig()); + } + 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, getAclConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest other = + (com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest) obj; + + if (hasAclConfig() != other.hasAclConfig()) return false; + if (hasAclConfig()) { + if (!getAclConfig().equals(other.getAclConfig())) 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 (hasAclConfig()) { + hash = (37 * hash) + ACL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAclConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for UpdateAclConfig method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateAclConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UpdateAclConfigRequest) + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.class, + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclConfig_ = null; + if (aclConfigBuilder_ != null) { + aclConfigBuilder_.dispose(); + aclConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest build() { + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest result = + new com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclConfig_ = aclConfigBuilder_ == null ? aclConfig_ : aclConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest other) { + if (other == com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest.getDefaultInstance()) + return this; + if (other.hasAclConfig()) { + mergeAclConfig(other.getAclConfig()); + } + 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( + internalGetAclConfigFieldBuilder().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.cloud.discoveryengine.v1.AclConfig aclConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AclConfig, + com.google.cloud.discoveryengine.v1.AclConfig.Builder, + com.google.cloud.discoveryengine.v1.AclConfigOrBuilder> + aclConfigBuilder_; + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + public boolean hasAclConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + public com.google.cloud.discoveryengine.v1.AclConfig getAclConfig() { + if (aclConfigBuilder_ == null) { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance() + : aclConfig_; + } else { + return aclConfigBuilder_.getMessage(); + } + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclConfig(com.google.cloud.discoveryengine.v1.AclConfig value) { + if (aclConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclConfig_ = value; + } else { + aclConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclConfig( + com.google.cloud.discoveryengine.v1.AclConfig.Builder builderForValue) { + if (aclConfigBuilder_ == null) { + aclConfig_ = builderForValue.build(); + } else { + aclConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclConfig(com.google.cloud.discoveryengine.v1.AclConfig value) { + if (aclConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclConfig_ != null + && aclConfig_ != com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance()) { + getAclConfigBuilder().mergeFrom(value); + } else { + aclConfig_ = value; + } + } else { + aclConfigBuilder_.mergeFrom(value); + } + if (aclConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + aclConfig_ = null; + if (aclConfigBuilder_ != null) { + aclConfigBuilder_.dispose(); + aclConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.AclConfig.Builder getAclConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAclConfigFieldBuilder().getBuilder(); + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.AclConfigOrBuilder getAclConfigOrBuilder() { + if (aclConfigBuilder_ != null) { + return aclConfigBuilder_.getMessageOrBuilder(); + } else { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1.AclConfig.getDefaultInstance() + : aclConfig_; + } + } + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AclConfig, + com.google.cloud.discoveryengine.v1.AclConfig.Builder, + com.google.cloud.discoveryengine.v1.AclConfigOrBuilder> + internalGetAclConfigFieldBuilder() { + if (aclConfigBuilder_ == null) { + aclConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.AclConfig, + com.google.cloud.discoveryengine.v1.AclConfig.Builder, + com.google.cloud.discoveryengine.v1.AclConfigOrBuilder>( + getAclConfig(), getParentForChildren(), isClean()); + aclConfig_ = null; + } + return aclConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateAclConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateAclConfigRequest) + private static final com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequestOrBuilder.java new file mode 100644 index 000000000000..c90fe5b6d5e2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAclConfigRequestOrBuilder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/acl_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UpdateAclConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateAclConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + boolean hasAclConfig(); + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + com.google.cloud.discoveryengine.v1.AclConfig getAclConfig(); + + /** + * + * .google.cloud.discoveryengine.v1.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.AclConfigOrBuilder getAclConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequest.java new file mode 100644 index 000000000000..bb8ad5e3252c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequest.java @@ -0,0 +1,1161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for the
+ * [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1.AssistantService.UpdateAssistant]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateAssistantRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateAssistantRequest) + UpdateAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateAssistantRequest"); + } + + // Use UpdateAssistantRequest.newBuilder() to construct. + private UpdateAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAssistantRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.class, + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.Builder.class); + } + + private int bitField0_; + public static final int ASSISTANT_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.Assistant assistant_; + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * update.
+   *
+   * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+   * is used to identify the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to update the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + @java.lang.Override + public boolean hasAssistant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * update.
+   *
+   * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+   * is used to identify the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to update the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Assistant getAssistant() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * update.
+   *
+   * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+   * is used to identify the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to update the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantOrBuilder() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getAssistant()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getAssistant()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UpdateAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest other = + (com.google.cloud.discoveryengine.v1.UpdateAssistantRequest) obj; + + if (hasAssistant() != other.hasAssistant()) return false; + if (hasAssistant()) { + if (!getAssistant().equals(other.getAssistant())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasAssistant()) { + hash = (37 * hash) + ASSISTANT_FIELD_NUMBER; + hash = (53 * hash) + getAssistant().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for the
+   * [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1.AssistantService.UpdateAssistant]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UpdateAssistantRequest) + com.google.cloud.discoveryengine.v1.UpdateAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.class, + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssistantFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAssistantRequest build() { + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1.UpdateAssistantRequest result = + new com.google.cloud.discoveryengine.v1.UpdateAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateAssistantRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assistant_ = assistantBuilder_ == null ? assistant_ : assistantBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UpdateAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateAssistantRequest other) { + if (other == com.google.cloud.discoveryengine.v1.UpdateAssistantRequest.getDefaultInstance()) + return this; + if (other.hasAssistant()) { + mergeAssistant(other.getAssistant()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + internalGetAssistantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.cloud.discoveryengine.v1.Assistant assistant_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder> + assistantBuilder_; + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + public boolean hasAssistant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + public com.google.cloud.discoveryengine.v1.Assistant getAssistant() { + if (assistantBuilder_ == null) { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } else { + return assistantBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant(com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistant_ = value; + } else { + assistantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant( + com.google.cloud.discoveryengine.v1.Assistant.Builder builderForValue) { + if (assistantBuilder_ == null) { + assistant_ = builderForValue.build(); + } else { + assistantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAssistant(com.google.cloud.discoveryengine.v1.Assistant value) { + if (assistantBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assistant_ != null + && assistant_ != com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance()) { + getAssistantBuilder().mergeFrom(value); + } else { + assistant_ = value; + } + } else { + assistantBuilder_.mergeFrom(value); + } + if (assistant_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAssistant() { + bitField0_ = (bitField0_ & ~0x00000001); + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.Assistant.Builder getAssistantBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssistantFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantOrBuilder() { + if (assistantBuilder_ != null) { + return assistantBuilder_.getMessageOrBuilder(); + } else { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1.Assistant.getDefaultInstance() + : assistant_; + } + } + + /** + * + * + *
+     * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+     * update.
+     *
+     * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+     * is used to identify the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+     *
+     * If the caller does not have permission to update the
+     * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+     * whether or not it exists, a PERMISSION_DENIED error is returned.
+     *
+     * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder> + internalGetAssistantFieldBuilder() { + if (assistantBuilder_ == null) { + assistantBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Assistant, + com.google.cloud.discoveryengine.v1.Assistant.Builder, + com.google.cloud.discoveryengine.v1.AssistantOrBuilder>( + getAssistant(), getParentForChildren(), isClean()); + assistant_ = null; + } + return assistantBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateAssistantRequest) + private static final com.google.cloud.discoveryengine.v1.UpdateAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1.UpdateAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..fea1b76d2733 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateAssistantRequestOrBuilder.java @@ -0,0 +1,147 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UpdateAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * update.
+   *
+   * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+   * is used to identify the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to update the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + boolean hasAssistant(); + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * update.
+   *
+   * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+   * is used to identify the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to update the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + com.google.cloud.discoveryengine.v1.Assistant getAssistant(); + + /** + * + * + *
+   * Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to
+   * update.
+   *
+   * The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field
+   * is used to identify the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format:
+   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
+   *
+   * If the caller does not have permission to update the
+   * [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of
+   * whether or not it exists, a PERMISSION_DENIED error is returned.
+   *
+   * If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.AssistantOrBuilder getAssistantOrBuilder(); + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequest.java new file mode 100644 index 000000000000..90cf767d88d8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequest.java @@ -0,0 +1,1373 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [DataConnectorService.UpdateDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.UpdateDataConnector]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateDataConnectorRequest} + */ +@com.google.protobuf.Generated +public final class UpdateDataConnectorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) + UpdateDataConnectorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateDataConnectorRequest"); + } + + // Use UpdateDataConnectorRequest.newBuilder() to construct. + private UpdateDataConnectorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDataConnectorRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.class, + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.Builder.class); + } + + private int bitField0_; + public static final int DATA_CONNECTOR_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.DataConnector dataConnector_; + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * If the caller does not have permission to update the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+   * not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataConnector field is set. + */ + @java.lang.Override + public boolean hasDataConnector() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * If the caller does not have permission to update the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+   * not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataConnector. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector getDataConnector() { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * If the caller does not have permission to update the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+   * not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder getDataConnectorOrBuilder() { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * Supported field paths include:
+   *
+   * - `refresh_interval`
+   * - `params`
+   * - `auto_run_disabled`
+   * - `action_config`
+   * - `action_config.action_params`
+   * - `action_config.service_name`
+   * - `destination_configs`
+   * - `blocking_reasons`
+   * - `sync_mode`
+   * - `incremental_sync_disabled`
+   * - `incremental_refresh_interval`
+   * - `data_protection_policy`
+   *
+   * Note:  Support for these fields may vary depending on the connector type.
+   * For example, not all connectors support `destination_configs`.
+   *
+   * If an unsupported or unknown field path is provided, the request will
+   * return an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * Supported field paths include:
+   *
+   * - `refresh_interval`
+   * - `params`
+   * - `auto_run_disabled`
+   * - `action_config`
+   * - `action_config.action_params`
+   * - `action_config.service_name`
+   * - `destination_configs`
+   * - `blocking_reasons`
+   * - `sync_mode`
+   * - `incremental_sync_disabled`
+   * - `incremental_refresh_interval`
+   * - `data_protection_policy`
+   *
+   * Note:  Support for these fields may vary depending on the connector type.
+   * For example, not all connectors support `destination_configs`.
+   *
+   * If an unsupported or unknown field path is provided, the request will
+   * return an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * Supported field paths include:
+   *
+   * - `refresh_interval`
+   * - `params`
+   * - `auto_run_disabled`
+   * - `action_config`
+   * - `action_config.action_params`
+   * - `action_config.service_name`
+   * - `destination_configs`
+   * - `blocking_reasons`
+   * - `sync_mode`
+   * - `incremental_sync_disabled`
+   * - `incremental_refresh_interval`
+   * - `data_protection_policy`
+   *
+   * Note:  Support for these fields may vary depending on the connector type.
+   * For example, not all connectors support `destination_configs`.
+   *
+   * If an unsupported or unknown field path is provided, the request will
+   * return an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getDataConnector()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getDataConnector()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest other = + (com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) obj; + + if (hasDataConnector() != other.hasDataConnector()) return false; + if (hasDataConnector()) { + if (!getDataConnector().equals(other.getDataConnector())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDataConnector()) { + hash = (37 * hash) + DATA_CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getDataConnector().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [DataConnectorService.UpdateDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.UpdateDataConnector]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateDataConnectorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.class, + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataConnectorFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataConnector_ = null; + if (dataConnectorBuilder_ != null) { + dataConnectorBuilder_.dispose(); + dataConnectorBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.DataConnectorServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateDataConnectorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest build() { + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest buildPartial() { + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest result = + new com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataConnector_ = + dataConnectorBuilder_ == null ? dataConnector_ : dataConnectorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest.getDefaultInstance()) + return this; + if (other.hasDataConnector()) { + mergeDataConnector(other.getDataConnector()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + internalGetDataConnectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.cloud.discoveryengine.v1.DataConnector dataConnector_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector, + com.google.cloud.discoveryengine.v1.DataConnector.Builder, + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder> + dataConnectorBuilder_; + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataConnector field is set. + */ + public boolean hasDataConnector() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataConnector. + */ + public com.google.cloud.discoveryengine.v1.DataConnector getDataConnector() { + if (dataConnectorBuilder_ == null) { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } else { + return dataConnectorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataConnector(com.google.cloud.discoveryengine.v1.DataConnector value) { + if (dataConnectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConnector_ = value; + } else { + dataConnectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataConnector( + com.google.cloud.discoveryengine.v1.DataConnector.Builder builderForValue) { + if (dataConnectorBuilder_ == null) { + dataConnector_ = builderForValue.build(); + } else { + dataConnectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataConnector(com.google.cloud.discoveryengine.v1.DataConnector value) { + if (dataConnectorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataConnector_ != null + && dataConnector_ + != com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance()) { + getDataConnectorBuilder().mergeFrom(value); + } else { + dataConnector_ = value; + } + } else { + dataConnectorBuilder_.mergeFrom(value); + } + if (dataConnector_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataConnector() { + bitField0_ = (bitField0_ & ~0x00000001); + dataConnector_ = null; + if (dataConnectorBuilder_ != null) { + dataConnectorBuilder_.dispose(); + dataConnectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.Builder getDataConnectorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDataConnectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder getDataConnectorOrBuilder() { + if (dataConnectorBuilder_ != null) { + return dataConnectorBuilder_.getMessageOrBuilder(); + } else { + return dataConnector_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.getDefaultInstance() + : dataConnector_; + } + } + + /** + * + * + *
+     * Required. The
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * If the caller does not have permission to update the
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+     * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+     *
+     * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+     * not exist, a `NOT_FOUND` error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector, + com.google.cloud.discoveryengine.v1.DataConnector.Builder, + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder> + internalGetDataConnectorFieldBuilder() { + if (dataConnectorBuilder_ == null) { + dataConnectorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector, + com.google.cloud.discoveryengine.v1.DataConnector.Builder, + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder>( + getDataConnector(), getParentForChildren(), isClean()); + dataConnector_ = null; + } + return dataConnectorBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+     *
+     * Supported field paths include:
+     *
+     * - `refresh_interval`
+     * - `params`
+     * - `auto_run_disabled`
+     * - `action_config`
+     * - `action_config.action_params`
+     * - `action_config.service_name`
+     * - `destination_configs`
+     * - `blocking_reasons`
+     * - `sync_mode`
+     * - `incremental_sync_disabled`
+     * - `incremental_refresh_interval`
+     * - `data_protection_policy`
+     *
+     * Note:  Support for these fields may vary depending on the connector type.
+     * For example, not all connectors support `destination_configs`.
+     *
+     * If an unsupported or unknown field path is provided, the request will
+     * return an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) + private static final com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest(); + } + + public static com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequestOrBuilder.java new file mode 100644 index 000000000000..048377ec4159 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateDataConnectorRequestOrBuilder.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/data_connector_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UpdateDataConnectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateDataConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * If the caller does not have permission to update the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+   * not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataConnector field is set. + */ + boolean hasDataConnector(); + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * If the caller does not have permission to update the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+   * not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataConnector. + */ + com.google.cloud.discoveryengine.v1.DataConnector getDataConnector(); + + /** + * + * + *
+   * Required. The
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * If the caller does not have permission to update the
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless
+   * of whether or not it exists, a `PERMISSION_DENIED` error is returned.
+   *
+   * If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does
+   * not exist, a `NOT_FOUND` error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector data_connector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnectorOrBuilder getDataConnectorOrBuilder(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * Supported field paths include:
+   *
+   * - `refresh_interval`
+   * - `params`
+   * - `auto_run_disabled`
+   * - `action_config`
+   * - `action_config.action_params`
+   * - `action_config.service_name`
+   * - `destination_configs`
+   * - `blocking_reasons`
+   * - `sync_mode`
+   * - `incremental_sync_disabled`
+   * - `incremental_refresh_interval`
+   * - `data_protection_policy`
+   *
+   * Note:  Support for these fields may vary depending on the connector type.
+   * For example, not all connectors support `destination_configs`.
+   *
+   * If an unsupported or unknown field path is provided, the request will
+   * return an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * Supported field paths include:
+   *
+   * - `refresh_interval`
+   * - `params`
+   * - `auto_run_disabled`
+   * - `action_config`
+   * - `action_config.action_params`
+   * - `action_config.service_name`
+   * - `destination_configs`
+   * - `blocking_reasons`
+   * - `sync_mode`
+   * - `incremental_sync_disabled`
+   * - `incremental_refresh_interval`
+   * - `data_protection_policy`
+   *
+   * Note:  Support for these fields may vary depending on the connector type.
+   * For example, not all connectors support `destination_configs`.
+   *
+   * If an unsupported or unknown field path is provided, the request will
+   * return an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update.
+   *
+   * Supported field paths include:
+   *
+   * - `refresh_interval`
+   * - `params`
+   * - `auto_run_disabled`
+   * - `action_config`
+   * - `action_config.action_params`
+   * - `action_config.service_name`
+   * - `destination_configs`
+   * - `blocking_reasons`
+   * - `sync_mode`
+   * - `incremental_sync_disabled`
+   * - `incremental_refresh_interval`
+   * - `data_protection_policy`
+   *
+   * Note:  Support for these fields may vary depending on the connector type.
+   * For example, not all connectors support `destination_configs`.
+   *
+   * If an unsupported or unknown field path is provided, the request will
+   * return an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequest.java new file mode 100644 index 000000000000..b3d1795bdea9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequest.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [LicenseConfigService.UpdateLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.UpdateLicenseConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) + UpdateLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateLicenseConfigRequest"); + } + + // Use UpdateLicenseConfigRequest.newBuilder() to construct. + private UpdateLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateLicenseConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Indicates which fields in the provided
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   *
+   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+   * is returned.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Indicates which fields in the provided
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   *
+   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+   * is returned.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Indicates which fields in the provided
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   *
+   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+   * is returned.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getLicenseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getLicenseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) obj; + + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [LicenseConfigService.UpdateLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.UpdateLicenseConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest.getDefaultInstance()) + return this; + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + internalGetLicenseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.cloud.discoveryengine.v1.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
+     * Required. The
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.LicenseConfig, + com.google.cloud.discoveryengine.v1.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Indicates which fields in the provided
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+     *
+     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+     * is returned.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..7c24333c5854 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateLicenseConfigRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/license_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UpdateLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1.LicenseConfig getLicenseConfig(); + + /** + * + * + *
+   * Required. The
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Indicates which fields in the provided
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   *
+   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+   * is returned.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Indicates which fields in the provided
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   *
+   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+   * is returned.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Indicates which fields in the provided
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update.
+   *
+   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
+   * is returned.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequest.java new file mode 100644 index 000000000000..96d60bb55fc4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequest.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request message for
+ * [UserStoreService.UpdateUserStore][google.cloud.discoveryengine.v1.UserStoreService.UpdateUserStore]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateUserStoreRequest} + */ +@com.google.protobuf.Generated +public final class UpdateUserStoreRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateUserStoreRequest) + UpdateUserStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateUserStoreRequest"); + } + + // Use UpdateUserStoreRequest.newBuilder() to construct. + private UpdateUserStoreRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateUserStoreRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.class, + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.Builder.class); + } + + private int bitField0_; + public static final int USER_STORE_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.UserStore userStore_; + + /** + * + * + *
+   * Required. The User Store to update.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userStore field is set. + */ + @java.lang.Override + public boolean hasUserStore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The User Store to update.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userStore. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserStore getUserStore() { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance() + : userStore_; + } + + /** + * + * + *
+   * Required. The User Store to update.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserStoreOrBuilder getUserStoreOrBuilder() { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance() + : userStore_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getUserStore()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getUserStore()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest other = + (com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest) obj; + + if (hasUserStore() != other.hasUserStore()) return false; + if (hasUserStore()) { + if (!getUserStore().equals(other.getUserStore())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasUserStore()) { + hash = (37 * hash) + USER_STORE_FIELD_NUMBER; + hash = (53 * hash) + getUserStore().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [UserStoreService.UpdateUserStore][google.cloud.discoveryengine.v1.UserStoreService.UpdateUserStore]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateUserStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UpdateUserStoreRequest) + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.class, + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserStoreFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userStore_ = null; + if (userStoreBuilder_ != null) { + userStoreBuilder_.dispose(); + userStoreBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest build() { + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest buildPartial() { + com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest result = + new com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userStore_ = userStoreBuilder_ == null ? userStore_ : userStoreBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest other) { + if (other == com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest.getDefaultInstance()) + return this; + if (other.hasUserStore()) { + mergeUserStore(other.getUserStore()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + internalGetUserStoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.cloud.discoveryengine.v1.UserStore userStore_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserStore, + com.google.cloud.discoveryengine.v1.UserStore.Builder, + com.google.cloud.discoveryengine.v1.UserStoreOrBuilder> + userStoreBuilder_; + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userStore field is set. + */ + public boolean hasUserStore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userStore. + */ + public com.google.cloud.discoveryengine.v1.UserStore getUserStore() { + if (userStoreBuilder_ == null) { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance() + : userStore_; + } else { + return userStoreBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserStore(com.google.cloud.discoveryengine.v1.UserStore value) { + if (userStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userStore_ = value; + } else { + userStoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserStore( + com.google.cloud.discoveryengine.v1.UserStore.Builder builderForValue) { + if (userStoreBuilder_ == null) { + userStore_ = builderForValue.build(); + } else { + userStoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUserStore(com.google.cloud.discoveryengine.v1.UserStore value) { + if (userStoreBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && userStore_ != null + && userStore_ != com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance()) { + getUserStoreBuilder().mergeFrom(value); + } else { + userStore_ = value; + } + } else { + userStoreBuilder_.mergeFrom(value); + } + if (userStore_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUserStore() { + bitField0_ = (bitField0_ & ~0x00000001); + userStore_ = null; + if (userStoreBuilder_ != null) { + userStoreBuilder_.dispose(); + userStoreBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.UserStore.Builder getUserStoreBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUserStoreFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.UserStoreOrBuilder getUserStoreOrBuilder() { + if (userStoreBuilder_ != null) { + return userStoreBuilder_.getMessageOrBuilder(); + } else { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance() + : userStore_; + } + } + + /** + * + * + *
+     * Required. The User Store to update.
+     * Format:
+     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserStore, + com.google.cloud.discoveryengine.v1.UserStore.Builder, + com.google.cloud.discoveryengine.v1.UserStoreOrBuilder> + internalGetUserStoreFieldBuilder() { + if (userStoreBuilder_ == null) { + userStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserStore, + com.google.cloud.discoveryengine.v1.UserStore.Builder, + com.google.cloud.discoveryengine.v1.UserStoreOrBuilder>( + getUserStore(), getParentForChildren(), isClean()); + userStore_ = null; + } + return userStoreBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateUserStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateUserStoreRequest) + private static final com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest(); + } + + public static com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequestOrBuilder.java new file mode 100644 index 000000000000..f86b00fd7e5b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateUserStoreRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UpdateUserStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateUserStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The User Store to update.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userStore field is set. + */ + boolean hasUserStore(); + + /** + * + * + *
+   * Required. The User Store to update.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userStore. + */ + com.google.cloud.discoveryengine.v1.UserStore getUserStore(); + + /** + * + * + *
+   * Required. The User Store to update.
+   * Format:
+   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.UserStoreOrBuilder getUserStoreOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequest.java new file mode 100644 index 000000000000..a43e8af24d6d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequest.java @@ -0,0 +1,1179 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * Request for
+ * [WidgetConfigService.UpdateWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.UpdateWidgetConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateWidgetConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) + UpdateWidgetConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateWidgetConfigRequest"); + } + + // Use UpdateWidgetConfigRequest.newBuilder() to construct. + private UpdateWidgetConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateWidgetConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.class, + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int WIDGET_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.WidgetConfig widgetConfig_; + + /** + * + * + *
+   * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+   * to update.
+   *
+   * If the caller does not have permission to update the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+   * update does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the widgetConfig field is set. + */ + @java.lang.Override + public boolean hasWidgetConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+   * to update.
+   *
+   * If the caller does not have permission to update the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+   * update does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The widgetConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig getWidgetConfig() { + return widgetConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance() + : widgetConfig_; + } + + /** + * + * + *
+   * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+   * to update.
+   *
+   * If the caller does not have permission to update the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+   * update does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder getWidgetConfigOrBuilder() { + return widgetConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance() + : widgetConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getWidgetConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getWidgetConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest other = + (com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) obj; + + if (hasWidgetConfig() != other.hasWidgetConfig()) return false; + if (hasWidgetConfig()) { + if (!getWidgetConfig().equals(other.getWidgetConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasWidgetConfig()) { + hash = (37 * hash) + WIDGET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWidgetConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request for
+   * [WidgetConfigService.UpdateWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.UpdateWidgetConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.class, + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetWidgetConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + widgetConfig_ = null; + if (widgetConfigBuilder_ != null) { + widgetConfigBuilder_.dispose(); + widgetConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest build() { + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest result = + new com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.widgetConfig_ = + widgetConfigBuilder_ == null ? widgetConfig_ : widgetConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest.getDefaultInstance()) + return this; + if (other.hasWidgetConfig()) { + mergeWidgetConfig(other.getWidgetConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + internalGetWidgetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.cloud.discoveryengine.v1.WidgetConfig widgetConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder> + widgetConfigBuilder_; + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the widgetConfig field is set. + */ + public boolean hasWidgetConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The widgetConfig. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig getWidgetConfig() { + if (widgetConfigBuilder_ == null) { + return widgetConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance() + : widgetConfig_; + } else { + return widgetConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWidgetConfig(com.google.cloud.discoveryengine.v1.WidgetConfig value) { + if (widgetConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + widgetConfig_ = value; + } else { + widgetConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setWidgetConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.Builder builderForValue) { + if (widgetConfigBuilder_ == null) { + widgetConfig_ = builderForValue.build(); + } else { + widgetConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeWidgetConfig(com.google.cloud.discoveryengine.v1.WidgetConfig value) { + if (widgetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && widgetConfig_ != null + && widgetConfig_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance()) { + getWidgetConfigBuilder().mergeFrom(value); + } else { + widgetConfig_ = value; + } + } else { + widgetConfigBuilder_.mergeFrom(value); + } + if (widgetConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearWidgetConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + widgetConfig_ = null; + if (widgetConfigBuilder_ != null) { + widgetConfigBuilder_.dispose(); + widgetConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Builder getWidgetConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetWidgetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder getWidgetConfigOrBuilder() { + if (widgetConfigBuilder_ != null) { + return widgetConfigBuilder_.getMessageOrBuilder(); + } else { + return widgetConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance() + : widgetConfig_; + } + } + + /** + * + * + *
+     * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+     * to update.
+     *
+     * If the caller does not have permission to update the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+     * update does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder> + internalGetWidgetConfigFieldBuilder() { + if (widgetConfigBuilder_ == null) { + widgetConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder>( + getWidgetConfig(), getParentForChildren(), isClean()); + widgetConfig_ = null; + } + return widgetConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Indicates which fields in the provided
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) + private static final com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWidgetConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..831bc4615c35 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UpdateWidgetConfigRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UpdateWidgetConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+   * to update.
+   *
+   * If the caller does not have permission to update the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+   * update does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the widgetConfig field is set. + */ + boolean hasWidgetConfig(); + + /** + * + * + *
+   * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+   * to update.
+   *
+   * If the caller does not have permission to update the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+   * update does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The widgetConfig. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig getWidgetConfig(); + + /** + * + * + *
+   * Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]
+   * to update.
+   *
+   * If the caller does not have permission to update the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to
+   * update does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder getWidgetConfigOrBuilder(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java index 1eeb473dfdf1..58d54c65f6ea 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEvent.java @@ -65,6 +65,7 @@ private UserEvent() { tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); panels_ = java.util.Collections.emptyList(); + entity_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -113,7 +114,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -160,7 +160,6 @@ public java.lang.String getEventType() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -858,8 +857,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * The filter syntax consists of an expression language for constructing a
-   * predicate from one or more fields of the documents being filtered.
+   * Optional. The filter syntax consists of an expression language for
+   * constructing a predicate from one or more fields of the documents being
+   * filtered.
    *
    * One example is for `search` events, the associated
    * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -877,7 +877,7 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -898,8 +898,9 @@ public java.lang.String getFilter() { * * *
-   * The filter syntax consists of an expression language for constructing a
-   * predicate from one or more fields of the documents being filtered.
+   * Optional. The filter syntax consists of an expression language for
+   * constructing a predicate from one or more fields of the documents being
+   * filtered.
    *
    * One example is for `search` events, the associated
    * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -917,7 +918,7 @@ public java.lang.String getFilter() {
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1517,7 +1518,7 @@ public int getAttributesCount() { * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1545,7 +1546,8 @@ public int getAttributesCount() {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1568,7 +1570,7 @@ public boolean containsAttributes(java.lang.String key) { * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1596,7 +1598,8 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1609,7 +1612,7 @@ public boolean containsAttributes(java.lang.String key) { * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1637,7 +1640,8 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1657,7 +1661,7 @@ public boolean containsAttributes(java.lang.String key) { * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1685,7 +1689,8 @@ public boolean containsAttributes(java.lang.String key) {
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1846,6 +1851,126 @@ public com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelsOrBuilder return panels_.get(index); } + public static final int FEEDBACK_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1.Feedback feedback_; + + /** + * + * + *
+   * Optional. This field is optional except for the `add-feedback` event types.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the feedback field is set. + */ + @java.lang.Override + public boolean hasFeedback() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Optional. This field is optional except for the `add-feedback` event types.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedback. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.Feedback getFeedback() { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance() + : feedback_; + } + + /** + * + * + *
+   * Optional. This field is optional except for the `add-feedback` event types.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.FeedbackOrBuilder getFeedbackOrBuilder() { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance() + : feedback_; + } + + public static final int ENTITY_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object entity_ = ""; + + /** + * + * + *
+   * Optional. Represents the entity for customers that may run multiple
+   * different entities, domains, sites or regions, for example, `Google US`,
+   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+   * you set `entity` to get better per-entity search, completion, and
+   * prediction results.
+   * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Represents the entity for customers that may run multiple
+   * different entities, domains, sites or regions, for example, `Google US`,
+   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+   * you set `entity` to get better per-entity search, completion, and
+   * prediction results.
+   * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1925,6 +2050,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < panels_.size(); i++) { output.writeMessage(22, panels_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(23, getFeedback()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 25, entity_); + } getUnknownFields().writeTo(output); } @@ -2019,6 +2150,12 @@ public int getSerializedSize() { for (int i = 0; i < panels_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, panels_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getFeedback()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(25, entity_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2081,6 +2218,11 @@ public boolean equals(final java.lang.Object obj) { if (!getMediaInfo().equals(other.getMediaInfo())) return false; } if (!getPanelsList().equals(other.getPanelsList())) return false; + if (hasFeedback() != other.hasFeedback()) return false; + if (hasFeedback()) { + if (!getFeedback().equals(other.getFeedback())) return false; + } + if (!getEntity().equals(other.getEntity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2162,6 +2304,12 @@ public int hashCode() { hash = (37 * hash) + PANELS_FIELD_NUMBER; hash = (53 * hash) + getPanelsList().hashCode(); } + if (hasFeedback()) { + hash = (37 * hash) + FEEDBACK_FIELD_NUMBER; + hash = (53 * hash) + getFeedback().hashCode(); + } + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2336,6 +2484,7 @@ private void maybeForceBuilderInitialization() { internalGetTransactionInfoFieldBuilder(); internalGetMediaInfoFieldBuilder(); internalGetPanelsFieldBuilder(); + internalGetFeedbackFieldBuilder(); } } @@ -2409,6 +2558,12 @@ public Builder clear() { panelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); + feedback_ = null; + if (feedbackBuilder_ != null) { + feedbackBuilder_.dispose(); + feedbackBuilder_ = null; + } + entity_ = ""; return this; } @@ -2541,6 +2696,13 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserEvent result) result.mediaInfo_ = mediaInfoBuilder_ == null ? mediaInfo_ : mediaInfoBuilder_.build(); to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.feedback_ = feedbackBuilder_ == null ? feedback_ : feedbackBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.entity_ = entity_; + } result.bitField0_ |= to_bitField0_; } @@ -2699,6 +2861,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UserEvent other) { } } } + if (other.hasFeedback()) { + mergeFeedback(other.getFeedback()); + } + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + bitField0_ |= 0x00800000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2889,6 +3059,19 @@ public Builder mergeFrom( } break; } // case 178 + case 186: + { + input.readMessage( + internalGetFeedbackFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 202: + { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00800000; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2923,7 +3106,6 @@ public Builder mergeFrom( * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -2969,7 +3151,6 @@ public java.lang.String getEventType() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -3015,7 +3196,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -3060,7 +3240,6 @@ public Builder setEventType(java.lang.String value) { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -3101,7 +3280,6 @@ public Builder clearEventType() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -4859,8 +5037,9 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * The filter syntax consists of an expression language for constructing a
-     * predicate from one or more fields of the documents being filtered.
+     * Optional. The filter syntax consists of an expression language for
+     * constructing a predicate from one or more fields of the documents being
+     * filtered.
      *
      * One example is for `search` events, the associated
      * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -4878,7 +5057,7 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -4898,8 +5077,9 @@ public java.lang.String getFilter() { * * *
-     * The filter syntax consists of an expression language for constructing a
-     * predicate from one or more fields of the documents being filtered.
+     * Optional. The filter syntax consists of an expression language for
+     * constructing a predicate from one or more fields of the documents being
+     * filtered.
      *
      * One example is for `search` events, the associated
      * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -4917,7 +5097,7 @@ public java.lang.String getFilter() {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -4937,8 +5117,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The filter syntax consists of an expression language for constructing a
-     * predicate from one or more fields of the documents being filtered.
+     * Optional. The filter syntax consists of an expression language for
+     * constructing a predicate from one or more fields of the documents being
+     * filtered.
      *
      * One example is for `search` events, the associated
      * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -4956,7 +5137,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -4975,8 +5156,9 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The filter syntax consists of an expression language for constructing a
-     * predicate from one or more fields of the documents being filtered.
+     * Optional. The filter syntax consists of an expression language for
+     * constructing a predicate from one or more fields of the documents being
+     * filtered.
      *
      * One example is for `search` events, the associated
      * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -4994,7 +5176,7 @@ public Builder setFilter(java.lang.String value) {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -5009,8 +5191,9 @@ public Builder clearFilter() { * * *
-     * The filter syntax consists of an expression language for constructing a
-     * predicate from one or more fields of the documents being filtered.
+     * Optional. The filter syntax consists of an expression language for
+     * constructing a predicate from one or more fields of the documents being
+     * filtered.
      *
      * One example is for `search` events, the associated
      * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -5028,7 +5211,7 @@ public Builder clearFilter() {
      * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
      * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -7024,7 +7207,7 @@ public int getAttributesCount() { * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7052,7 +7235,8 @@ public int getAttributesCount() {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -7075,7 +7259,7 @@ public boolean containsAttributes(java.lang.String key) { * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7103,7 +7287,8 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -7116,7 +7301,7 @@ public boolean containsAttributes(java.lang.String key) { * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7144,7 +7329,8 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -7165,7 +7351,7 @@ public boolean containsAttributes(java.lang.String key) { * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7193,7 +7379,8 @@ public boolean containsAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -7220,7 +7407,7 @@ public Builder clearAttributes() { * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7248,7 +7435,8 @@ public Builder clearAttributes() {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeAttributes(java.lang.String key) { @@ -7271,7 +7459,7 @@ public Builder removeAttributes(java.lang.String key) { * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7299,7 +7487,8 @@ public Builder removeAttributes(java.lang.String key) {
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putAttributes( @@ -7319,7 +7508,7 @@ public Builder putAttributes( * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7347,7 +7536,8 @@ public Builder putAttributes(
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putAllAttributes( @@ -7369,7 +7559,7 @@ public Builder putAllAttributes( * * *
-     * Extra user event features to include in the recommendation model.
+     * Optional. Extra user event features to include in the recommendation model.
      * These attributes must NOT contain data that needs to be parsed or processed
      * further, e.g. JSON or other encodings.
      *
@@ -7397,7 +7587,8 @@ public Builder putAllAttributes(
      * search, or in other ways.
      * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.discoveryengine.v1.CustomAttribute.Builder putAttributesBuilderIfAbsent( @@ -8032,6 +8223,350 @@ public com.google.cloud.discoveryengine.v1.PanelInfo.Builder addPanelsBuilder(in return panelsBuilder_; } + private com.google.cloud.discoveryengine.v1.Feedback feedback_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Feedback, + com.google.cloud.discoveryengine.v1.Feedback.Builder, + com.google.cloud.discoveryengine.v1.FeedbackOrBuilder> + feedbackBuilder_; + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the feedback field is set. + */ + public boolean hasFeedback() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedback. + */ + public com.google.cloud.discoveryengine.v1.Feedback getFeedback() { + if (feedbackBuilder_ == null) { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance() + : feedback_; + } else { + return feedbackBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeedback(com.google.cloud.discoveryengine.v1.Feedback value) { + if (feedbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feedback_ = value; + } else { + feedbackBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeedback( + com.google.cloud.discoveryengine.v1.Feedback.Builder builderForValue) { + if (feedbackBuilder_ == null) { + feedback_ = builderForValue.build(); + } else { + feedbackBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFeedback(com.google.cloud.discoveryengine.v1.Feedback value) { + if (feedbackBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && feedback_ != null + && feedback_ != com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance()) { + getFeedbackBuilder().mergeFrom(value); + } else { + feedback_ = value; + } + } else { + feedbackBuilder_.mergeFrom(value); + } + if (feedback_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFeedback() { + bitField0_ = (bitField0_ & ~0x00400000); + feedback_ = null; + if (feedbackBuilder_ != null) { + feedbackBuilder_.dispose(); + feedbackBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.Feedback.Builder getFeedbackBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return internalGetFeedbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.FeedbackOrBuilder getFeedbackOrBuilder() { + if (feedbackBuilder_ != null) { + return feedbackBuilder_.getMessageOrBuilder(); + } else { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1.Feedback.getDefaultInstance() + : feedback_; + } + } + + /** + * + * + *
+     * Optional. This field is optional except for the `add-feedback` event types.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Feedback, + com.google.cloud.discoveryengine.v1.Feedback.Builder, + com.google.cloud.discoveryengine.v1.FeedbackOrBuilder> + internalGetFeedbackFieldBuilder() { + if (feedbackBuilder_ == null) { + feedbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.Feedback, + com.google.cloud.discoveryengine.v1.Feedback.Builder, + com.google.cloud.discoveryengine.v1.FeedbackOrBuilder>( + getFeedback(), getParentForChildren(), isClean()); + feedback_ = null; + } + return feedbackBuilder_; + } + + private java.lang.Object entity_ = ""; + + /** + * + * + *
+     * Optional. Represents the entity for customers that may run multiple
+     * different entities, domains, sites or regions, for example, `Google US`,
+     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+     * you set `entity` to get better per-entity search, completion, and
+     * prediction results.
+     * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Represents the entity for customers that may run multiple
+     * different entities, domains, sites or regions, for example, `Google US`,
+     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+     * you set `entity` to get better per-entity search, completion, and
+     * prediction results.
+     * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Represents the entity for customers that may run multiple
+     * different entities, domains, sites or regions, for example, `Google US`,
+     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+     * you set `entity` to get better per-entity search, completion, and
+     * prediction results.
+     * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents the entity for customers that may run multiple
+     * different entities, domains, sites or regions, for example, `Google US`,
+     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+     * you set `entity` to get better per-entity search, completion, and
+     * prediction results.
+     * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + entity_ = getDefaultInstance().getEntity(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents the entity for customers that may run multiple
+     * different entities, domains, sites or regions, for example, `Google US`,
+     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+     * you set `entity` to get better per-entity search, completion, and
+     * prediction results.
+     * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entity_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UserEvent) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java index e75c1d3b79aa..23de28e2a4f6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventOrBuilder.java @@ -39,7 +39,6 @@ public interface UserEventOrBuilder * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -75,7 +74,6 @@ public interface UserEventOrBuilder * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -545,8 +543,9 @@ public interface UserEventOrBuilder * * *
-   * The filter syntax consists of an expression language for constructing a
-   * predicate from one or more fields of the documents being filtered.
+   * Optional. The filter syntax consists of an expression language for
+   * constructing a predicate from one or more fields of the documents being
+   * filtered.
    *
    * One example is for `search` events, the associated
    * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -564,7 +563,7 @@ public interface UserEventOrBuilder
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -574,8 +573,9 @@ public interface UserEventOrBuilder * * *
-   * The filter syntax consists of an expression language for constructing a
-   * predicate from one or more fields of the documents being filtered.
+   * Optional. The filter syntax consists of an expression language for
+   * constructing a predicate from one or more fields of the documents being
+   * filtered.
    *
    * One example is for `search` events, the associated
    * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain
@@ -593,7 +593,7 @@ public interface UserEventOrBuilder
    * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
    * 
* - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1033,7 +1033,7 @@ public interface UserEventOrBuilder * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1061,7 +1061,8 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ int getAttributesCount(); @@ -1070,7 +1071,7 @@ public interface UserEventOrBuilder * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1098,7 +1099,8 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ boolean containsAttributes(java.lang.String key); @@ -1112,7 +1114,7 @@ public interface UserEventOrBuilder * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1140,7 +1142,8 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.Map @@ -1150,7 +1153,7 @@ public interface UserEventOrBuilder * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1178,7 +1181,8 @@ public interface UserEventOrBuilder
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ /* nullable */ @@ -1191,7 +1195,7 @@ com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( * * *
-   * Extra user event features to include in the recommendation model.
+   * Optional. Extra user event features to include in the recommendation model.
    * These attributes must NOT contain data that needs to be parsed or processed
    * further, e.g. JSON or other encodings.
    *
@@ -1219,7 +1223,8 @@ com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault(
    * search, or in other ways.
    * 
* - * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17; + * + * map<string, .google.cloud.discoveryengine.v1.CustomAttribute> attributes = 17 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrThrow(java.lang.String key); @@ -1331,4 +1336,81 @@ com.google.cloud.discoveryengine.v1.CustomAttribute getAttributesOrDefault( * */ com.google.cloud.discoveryengine.v1.PanelInfoOrBuilder getPanelsOrBuilder(int index); + + /** + * + * + *
+   * Optional. This field is optional except for the `add-feedback` event types.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the feedback field is set. + */ + boolean hasFeedback(); + + /** + * + * + *
+   * Optional. This field is optional except for the `add-feedback` event types.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedback. + */ + com.google.cloud.discoveryengine.v1.Feedback getFeedback(); + + /** + * + * + *
+   * Optional. This field is optional except for the `add-feedback` event types.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.FeedbackOrBuilder getFeedbackOrBuilder(); + + /** + * + * + *
+   * Optional. Represents the entity for customers that may run multiple
+   * different entities, domains, sites or regions, for example, `Google US`,
+   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+   * you set `entity` to get better per-entity search, completion, and
+   * prediction results.
+   * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + java.lang.String getEntity(); + + /** + * + * + *
+   * Optional. Represents the entity for customers that may run multiple
+   * different entities, domains, sites or regions, for example, `Google US`,
+   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
+   * you set `entity` to get better per-entity search, completion, and
+   * prediction results.
+   * 
+ * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java index f2c21f692dec..74bb9f0236a8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventProto.java @@ -88,9 +88,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "0google/cloud/discoveryengine/v1/user_event.proto\022\037google.cloud.discoveryengine" + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032,google/cloud/di" - + "scoveryengine/v1/common.proto\032\036google/pr" - + "otobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\235\t\n" + + "ogle/api/resource.proto\032,google/cloud/discoveryengine/v1/common.proto\032.google/cl" + + "oud/discoveryengine/v1/feedback.proto\032\036g" + + "oogle/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\202\n\n" + "\tUserEvent\022\030\n\n" + "event_type\030\001 \001(\tB\004\342A\001\002\022\035\n" + "\017conversion_type\030\025 \001(\tB\004\342A\001\001\022\034\n" @@ -104,39 +104,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023direct_user_request\030\005 \001(\010\022\022\n\n" + "session_id\030\006 \001(\t\022<\n" + "\tpage_info\030\007 \001(\0132).google.cloud.discoveryengine.v1.PageInfo\022\031\n" - + "\021attribution_token\030\010 \001(\t\022\016\n" - + "\006filter\030\t \001(\t\022@\n" + + "\021attribution_token\030\010 \001(\t\022\024\n" + + "\006filter\030\t \001(\tB\004\342A\001\001\022@\n" + "\tdocuments\030\n" + " \003(\0132-.google.cloud.discoveryengine.v1.DocumentInfo\0229\n" + "\005panel\030\013 \001(\0132*.google.cloud.discoveryengine.v1.PanelInfo\022@\n" + "\013search_info\030\014 \001(\0132+.google.cloud.discoveryengine.v1.SearchInfo\022H\n" + "\017completion_info\030\r" + " \001(\0132/.google.cloud.discoveryengine.v1.CompletionInfo\022J\n" - + "\020transaction_info\030\016 \001(\01320." - + "google.cloud.discoveryengine.v1.TransactionInfo\022\017\n" + + "\020transaction_info\030\016" + + " \001(\01320.google.cloud.discoveryengine.v1.TransactionInfo\022\017\n" + "\007tag_ids\030\017 \003(\t\022\025\n\r" - + "promotion_ids\030\020 \003(\t\022N\n\n" - + "attributes\030\021 \003(\0132:.google.clo" - + "ud.discoveryengine.v1.UserEvent.AttributesEntry\022>\n\n" + + "promotion_ids\030\020 \003(\t\022T\n\n" + + "attributes\030\021 \003(" + + "\0132:.google.cloud.discoveryengine.v1.UserEvent.AttributesEntryB\004\342A\001\001\022>\n\n" + "media_info\030\022 \001(\0132*.google.cloud.discoveryengine.v1.MediaInfo\022@\n" + "\006panels\030\026" - + " \003(\0132*.google.cloud.discoveryengine.v1.PanelInfoB\004\342A\001\001\032c\n" + + " \003(\0132*.google.cloud.discoveryengine.v1.PanelInfoB\004\342A\001\001\022A\n" + + "\010feedback\030\027" + + " \001(\0132).google.cloud.discoveryengine.v1.FeedbackB\004\342A\001\001\022\024\n" + + "\006entity\030\031 \001(\tB\004\342A\001\001\032c\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002 \001(\01320.google.cloud." - + "discoveryengine.v1.CustomAttribute:\0028\001\"Y\n" + + "\005value\030\002" + + " \001(\01320.google.cloud.discoveryengine.v1.CustomAttribute:\0028\001\"Y\n" + "\010PageInfo\022\023\n" + "\013pageview_id\030\001 \001(\t\022\025\n\r" + "page_category\030\002 \001(\t\022\013\n" + "\003uri\030\003 \001(\t\022\024\n" - + "\014referrer_uri\030\004 \001(\t\"T\n\n" - + "SearchInfo\022\024\n" - + "\014search_query\030\001 \001(\t\022\020\n" + + "\014referrer_uri\030\004 \001(\t\"Z\n\n" + + "SearchInfo\022\032\n" + + "\014search_query\030\001 \001(\tB\004\342A\001\001\022\020\n" + "\010order_by\030\002 \001(\t\022\023\n" + "\006offset\030\003 \001(\005H\000\210\001\001B\t\n" - + "\007_offset\"H\n" - + "\016CompletionInfo\022\033\n" - + "\023selected_suggestion\030\001 \001(\t\022\031\n" + + "\007_offset\"N\n" + + "\016CompletionInfo\022!\n" + + "\023selected_suggestion\030\001 \001(\tB\004\342A\001\001\022\031\n" + "\021selected_position\030\002 \001(\005\"\313\001\n" + "\017TransactionInfo\022\030\n" + "\005value\030\001 \001(\002B\004\342A\001\002H\000\210\001\001\022\026\n" @@ -174,12 +177,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027media_progress_duration\030\001 \001(\0132\031.google.protobuf.Duration\022&\n" + "\031media_progress_percentage\030\002 \001(\002H\000\210\001\001B\034\n" + "\032_media_progress_percentageB\201\002\n" - + "#com.google.cloud.discoveryengine.v1B\016UserEventProtoP\001ZMcloud.g" - + "oogle.com/go/discoveryengine/apiv1/disco" - + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" - + "RYENGINE\252\002\037Google.Cloud.DiscoveryEngine." - + "V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"G" - + "oogle::Cloud::DiscoveryEngine::V1b\006proto3" + + "#com.google.cloud.discoveryengine.v1B\016UserEventProtoP\001ZMcloud." + + "google.com/go/discoveryengine/apiv1/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002\037Google.Cloud.DiscoveryEngine" + + ".V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"" + + "Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -188,6 +191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.FeedbackProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -219,6 +223,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Attributes", "MediaInfo", "Panels", + "Feedback", + "Entity", }); internal_static_google_cloud_discoveryengine_v1_UserEvent_AttributesEntry_descriptor = internal_static_google_cloud_discoveryengine_v1_UserEvent_descriptor.getNestedType(0); @@ -295,6 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.FeedbackProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java index 33b392f80797..4d91a1f54b3a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceProto.java @@ -80,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\003 \001(\tH\000\210\001\001\022\020\n" + "\003ets\030\004 \001(\003H\001\210\001\001B\006\n" + "\004_uriB\006\n" - + "\004_ets2\354\014\n" + + "\004_ets2\253\016\n" + "\020UserEventService\022\360\002\n" + "\016WriteUserEvent\0226.google.cloud.discoveryengine.v1.Wri" + "teUserEventRequest\032*.google.cloud.discov" @@ -111,14 +111,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "=projects/*/locations/*/dataStores/*}/userEvents:import:\001*ZU\"P/v1/{parent=projec" + "ts/*/locations/*/collections/*/dataStores/*}/userEvents:import:\001*Z:\"5/v1/{parent" + "=projects/*/locations/*}/userEvents:impo" - + "rt:\001*\032R\312A\036discoveryengine.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud-platformB\210\002\n" - + "#com.google.cloud.discoveryengine.v1B\025UserEventServiceProtoP\001ZMclou" - + "d.google.com/go/discoveryengine/apiv1/di" - + "scoveryenginepb;discoveryenginepb\242\002\017DISC" - + "OVERYENGINE\252\002\037Google.Cloud.DiscoveryEngi" - + "ne.V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352" - + "\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + + "rt:\001*\032\220\002\312A\036discoveryengine.googleapis.co" + + "m\322A\353\001https://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/auth/discoveryengine.assist.readwrite,htt" + + "ps://www.googleapis.com/auth/discoveryengine.readwrite,https://www.googleapis.co" + + "m/auth/discoveryengine.serving.readwriteB\210\002\n" + + "#com.google.cloud.discoveryengine.v1B\025UserEventServiceProtoP\001ZMcloud.google." + + "com/go/discoveryengine/apiv1/discoveryen" + + "ginepb;discoveryenginepb\242\002\017DISCOVERYENGI" + + "NE\252\002\037Google.Cloud.DiscoveryEngine.V1\312\002\037G" + + "oogle\\Cloud\\DiscoveryEngine\\V1\352\002\"Google:" + + ":Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java index b491047a585d..6b8e02497b45 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfo.java @@ -72,6 +72,1121 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.UserInfo.Builder.class); } + public interface PreciseLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Location represented by a latitude/longitude point.
+     * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the point field is set. + */ + boolean hasPoint(); + + /** + * + * + *
+     * Optional. Location represented by a latitude/longitude point.
+     * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The point. + */ + com.google.type.LatLng getPoint(); + + /** + * + * + *
+     * Optional. Location represented by a latitude/longitude point.
+     * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.LatLngOrBuilder getPointOrBuilder(); + + /** + * + * + *
+     * Location represented by a natural language address. Will later be
+     * geocoded and converted to either a point or a polygon.
+     * 
+ * + * string address = 2; + * + * @return Whether the address field is set. + */ + boolean hasAddress(); + + /** + * + * + *
+     * Location represented by a natural language address. Will later be
+     * geocoded and converted to either a point or a polygon.
+     * 
+ * + * string address = 2; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * + * + *
+     * Location represented by a natural language address. Will later be
+     * geocoded and converted to either a point or a polygon.
+     * 
+ * + * string address = 2; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.LocationCase getLocationCase(); + } + + /** + * + * + *
+   * Precise location info with multiple representation options.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UserInfo.PreciseLocation} + */ + public static final class PreciseLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) + PreciseLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PreciseLocation"); + } + + // Use PreciseLocation.newBuilder() to construct. + private PreciseLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PreciseLocation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.class, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder.class); + } + + private int locationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object location_; + + public enum LocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + POINT(1), + ADDRESS(2), + LOCATION_NOT_SET(0); + private final int value; + + private LocationCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LocationCase valueOf(int value) { + return forNumber(value); + } + + public static LocationCase forNumber(int value) { + switch (value) { + case 1: + return POINT; + case 2: + return ADDRESS; + case 0: + return LOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public static final int POINT_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Optional. Location represented by a latitude/longitude point.
+     * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the point field is set. + */ + @java.lang.Override + public boolean hasPoint() { + return locationCase_ == 1; + } + + /** + * + * + *
+     * Optional. Location represented by a latitude/longitude point.
+     * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The point. + */ + @java.lang.Override + public com.google.type.LatLng getPoint() { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } + + /** + * + * + *
+     * Optional. Location represented by a latitude/longitude point.
+     * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getPointOrBuilder() { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Location represented by a natural language address. Will later be
+     * geocoded and converted to either a point or a polygon.
+     * 
+ * + * string address = 2; + * + * @return Whether the address field is set. + */ + public boolean hasAddress() { + return locationCase_ == 2; + } + + /** + * + * + *
+     * Location represented by a natural language address. Will later be
+     * geocoded and converted to either a point or a polygon.
+     * 
+ * + * string address = 2; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Location represented by a natural language address. Will later be
+     * geocoded and converted to either a point or a polygon.
+     * 
+ * + * string address = 2; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = 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 (locationCase_ == 1) { + output.writeMessage(1, (com.google.type.LatLng) location_); + } + if (locationCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.type.LatLng) location_); + } + if (locationCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, location_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation other = + (com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) obj; + + if (!getLocationCase().equals(other.getLocationCase())) return false; + switch (locationCase_) { + case 1: + if (!getPoint().equals(other.getPoint())) return false; + break; + case 2: + if (!getAddress().equals(other.getAddress())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (locationCase_) { + case 1: + hash = (37 * hash) + POINT_FIELD_NUMBER; + hash = (53 * hash) + getPoint().hashCode(); + break; + case 2: + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Precise location info with multiple representation options.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UserInfo.PreciseLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.class, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pointBuilder_ != null) { + pointBuilder_.clear(); + } + locationCase_ = 0; + location_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.CommonProto + .internal_static_google_cloud_discoveryengine_v1_UserInfo_PreciseLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation build() { + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation buildPartial() { + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation result = + new com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation result) { + result.locationCase_ = locationCase_; + result.location_ = this.location_; + if (locationCase_ == 1 && pointBuilder_ != null) { + result.location_ = pointBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation other) { + if (other + == com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.getDefaultInstance()) + return this; + switch (other.getLocationCase()) { + case POINT: + { + mergePoint(other.getPoint()); + break; + } + case ADDRESS: + { + locationCase_ = 2; + location_ = other.location_; + onChanged(); + break; + } + case LOCATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetPointFieldBuilder().getBuilder(), extensionRegistry); + locationCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + locationCase_ = 2; + location_ = s; + 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 locationCase_ = 0; + private java.lang.Object location_; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public Builder clearLocation() { + locationCase_ = 0; + location_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder> + pointBuilder_; + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the point field is set. + */ + @java.lang.Override + public boolean hasPoint() { + return locationCase_ == 1; + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The point. + */ + @java.lang.Override + public com.google.type.LatLng getPoint() { + if (pointBuilder_ == null) { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } else { + if (locationCase_ == 1) { + return pointBuilder_.getMessage(); + } + return com.google.type.LatLng.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPoint(com.google.type.LatLng value) { + if (pointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + pointBuilder_.setMessage(value); + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPoint(com.google.type.LatLng.Builder builderForValue) { + if (pointBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + pointBuilder_.setMessage(builderForValue.build()); + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergePoint(com.google.type.LatLng value) { + if (pointBuilder_ == null) { + if (locationCase_ == 1 && location_ != com.google.type.LatLng.getDefaultInstance()) { + location_ = + com.google.type.LatLng.newBuilder((com.google.type.LatLng) location_) + .mergeFrom(value) + .buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + if (locationCase_ == 1) { + pointBuilder_.mergeFrom(value); + } else { + pointBuilder_.setMessage(value); + } + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPoint() { + if (pointBuilder_ == null) { + if (locationCase_ == 1) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + } else { + if (locationCase_ == 1) { + locationCase_ = 0; + location_ = null; + } + pointBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.LatLng.Builder getPointBuilder() { + return internalGetPointFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getPointOrBuilder() { + if ((locationCase_ == 1) && (pointBuilder_ != null)) { + return pointBuilder_.getMessageOrBuilder(); + } else { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Optional. Location represented by a latitude/longitude point.
+       * 
+ * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder> + internalGetPointFieldBuilder() { + if (pointBuilder_ == null) { + if (!(locationCase_ == 1)) { + location_ = com.google.type.LatLng.getDefaultInstance(); + } + pointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + (com.google.type.LatLng) location_, getParentForChildren(), isClean()); + location_ = null; + } + locationCase_ = 1; + onChanged(); + return pointBuilder_; + } + + /** + * + * + *
+       * Location represented by a natural language address. Will later be
+       * geocoded and converted to either a point or a polygon.
+       * 
+ * + * string address = 2; + * + * @return Whether the address field is set. + */ + @java.lang.Override + public boolean hasAddress() { + return locationCase_ == 2; + } + + /** + * + * + *
+       * Location represented by a natural language address. Will later be
+       * geocoded and converted to either a point or a polygon.
+       * 
+ * + * string address = 2; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Location represented by a natural language address. Will later be
+       * geocoded and converted to either a point or a polygon.
+       * 
+ * + * string address = 2; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Location represented by a natural language address. Will later be
+       * geocoded and converted to either a point or a polygon.
+       * 
+ * + * string address = 2; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Location represented by a natural language address. Will later be
+       * geocoded and converted to either a point or a polygon.
+       * 
+ * + * string address = 2; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + if (locationCase_ == 2) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Location represented by a natural language address. Will later be
+       * geocoded and converted to either a point or a polygon.
+       * 
+ * + * string address = 2; + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UserInfo.PreciseLocation) + private static final com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation(); + } + + public static com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreciseLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int USER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -92,6 +1207,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -126,6 +1245,10 @@ public java.lang.String getUserId() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -271,6 +1394,72 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } } + public static final int PRECISE_LOCATION_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation preciseLocation_; + + /** + * + * + *
+   * Optional. Input only. Precise location of the user.
+   * It is used in Custom Ranking to calculate the distance between the user and
+   * the relevant documents.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the preciseLocation field is set. + */ + @java.lang.Override + public boolean hasPreciseLocation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Input only. Precise location of the user.
+   * It is used in Custom Ranking to calculate the distance between the user and
+   * the relevant documents.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preciseLocation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation getPreciseLocation() { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } + + /** + * + * + *
+   * Optional. Input only. Precise location of the user.
+   * It is used in Custom Ranking to calculate the distance between the user and
+   * the relevant documents.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder + getPreciseLocationOrBuilder() { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +1483,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, timeZone_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getPreciseLocation()); + } getUnknownFields().writeTo(output); } @@ -312,6 +1504,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeZone_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPreciseLocation()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -331,6 +1526,10 @@ public boolean equals(final java.lang.Object obj) { if (!getUserId().equals(other.getUserId())) return false; if (!getUserAgent().equals(other.getUserAgent())) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; + if (hasPreciseLocation() != other.hasPreciseLocation()) return false; + if (hasPreciseLocation()) { + if (!getPreciseLocation().equals(other.getPreciseLocation())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,6 +1547,10 @@ public int hashCode() { hash = (53 * hash) + getUserAgent().hashCode(); hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); + if (hasPreciseLocation()) { + hash = (37 * hash) + PRECISE_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getPreciseLocation().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -478,10 +1681,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1.UserInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPreciseLocationFieldBuilder(); + } } @java.lang.Override @@ -491,6 +1703,11 @@ public Builder clear() { userId_ = ""; userAgent_ = ""; timeZone_ = ""; + preciseLocation_ = null; + if (preciseLocationBuilder_ != null) { + preciseLocationBuilder_.dispose(); + preciseLocationBuilder_ = null; + } return this; } @@ -536,6 +1753,13 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.UserInfo result) if (((from_bitField0_ & 0x00000004) != 0)) { result.timeZone_ = timeZone_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.preciseLocation_ = + preciseLocationBuilder_ == null ? preciseLocation_ : preciseLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -565,6 +1789,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UserInfo other) { bitField0_ |= 0x00000004; onChanged(); } + if (other.hasPreciseLocation()) { + mergePreciseLocation(other.getPreciseLocation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -609,6 +1836,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetPreciseLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -645,6 +1879,10 @@ public Builder mergeFrom( * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -678,6 +1916,10 @@ public java.lang.String getUserId() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -711,6 +1953,10 @@ public com.google.protobuf.ByteString getUserIdBytes() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -743,6 +1989,10 @@ public Builder setUserId(java.lang.String value) { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -771,6 +2021,10 @@ public Builder clearUserId() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -1061,6 +2315,243 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation preciseLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder> + preciseLocationBuilder_; + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the preciseLocation field is set. + */ + public boolean hasPreciseLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preciseLocation. + */ + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation getPreciseLocation() { + if (preciseLocationBuilder_ == null) { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } else { + return preciseLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreciseLocation( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation value) { + if (preciseLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + preciseLocation_ = value; + } else { + preciseLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreciseLocation( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder builderForValue) { + if (preciseLocationBuilder_ == null) { + preciseLocation_ = builderForValue.build(); + } else { + preciseLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreciseLocation( + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation value) { + if (preciseLocationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && preciseLocation_ != null + && preciseLocation_ + != com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation + .getDefaultInstance()) { + getPreciseLocationBuilder().mergeFrom(value); + } else { + preciseLocation_ = value; + } + } else { + preciseLocationBuilder_.mergeFrom(value); + } + if (preciseLocation_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreciseLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + preciseLocation_ = null; + if (preciseLocationBuilder_ != null) { + preciseLocationBuilder_.dispose(); + preciseLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder + getPreciseLocationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetPreciseLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder + getPreciseLocationOrBuilder() { + if (preciseLocationBuilder_ != null) { + return preciseLocationBuilder_.getMessageOrBuilder(); + } else { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } + } + + /** + * + * + *
+     * Optional. Input only. Precise location of the user.
+     * It is used in Custom Ranking to calculate the distance between the user and
+     * the relevant documents.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder> + internalGetPreciseLocationFieldBuilder() { + if (preciseLocationBuilder_ == null) { + preciseLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation.Builder, + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder>( + getPreciseLocation(), getParentForChildren(), isClean()); + preciseLocation_ = null; + } + return preciseLocationBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UserInfo) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java index 9ba28e895a13..f03b98531201 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserInfoOrBuilder.java @@ -41,6 +41,10 @@ public interface UserInfoOrBuilder * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -64,6 +68,10 @@ public interface UserInfoOrBuilder * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -143,4 +151,54 @@ public interface UserInfoOrBuilder * @return The bytes for timeZone. */ com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * Optional. Input only. Precise location of the user.
+   * It is used in Custom Ranking to calculate the distance between the user and
+   * the relevant documents.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the preciseLocation field is set. + */ + boolean hasPreciseLocation(); + + /** + * + * + *
+   * Optional. Input only. Precise location of the user.
+   * It is used in Custom Ranking to calculate the distance between the user and
+   * the relevant documents.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preciseLocation. + */ + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocation getPreciseLocation(); + + /** + * + * + *
+   * Optional. Input only. Precise location of the user.
+   * It is used in Custom Ranking to calculate the distance between the user and
+   * the relevant documents.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.UserInfo.PreciseLocationOrBuilder + getPreciseLocationOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicense.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicense.java index 249143e1516c..60931671ff69 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicense.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicense.java @@ -138,6 +138,16 @@ public enum LicenseAssignmentState implements com.google.protobuf.ProtocolMessag * NO_LICENSE_ATTEMPTED_LOGIN = 4; */ NO_LICENSE_ATTEMPTED_LOGIN(4), + /** + * + * + *
+     * User is blocked from assigning a license.
+     * 
+ * + * BLOCKED = 5; + */ + BLOCKED(5), UNRECOGNIZED(-1), ; @@ -211,6 +221,17 @@ public enum LicenseAssignmentState implements com.google.protobuf.ProtocolMessag */ public static final int NO_LICENSE_ATTEMPTED_LOGIN_VALUE = 4; + /** + * + * + *
+     * User is blocked from assigning a license.
+     * 
+ * + * BLOCKED = 5; + */ + public static final int BLOCKED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -245,6 +266,8 @@ public static LicenseAssignmentState forNumber(int value) { return NO_LICENSE; case 4: return NO_LICENSE_ATTEMPTED_LOGIN; + case 5: + return BLOCKED; default: return null; } @@ -426,7 +449,7 @@ public com.google.protobuf.ByteString getUserProfileBytes() { * *
    * Output only. License assignment state of the user.
-   * If the user is assigned with a license config, the user loggin will be
+   * If the user is assigned with a license config, the user login will be
    * assigned with the license;
    * If the user's license assignment state is unassigned or unspecified, no
    * license config will be associated to the user;
@@ -448,7 +471,7 @@ public int getLicenseAssignmentStateValue() {
    *
    * 
    * Output only. License assignment state of the user.
-   * If the user is assigned with a license config, the user loggin will be
+   * If the user is assigned with a license config, the user login will be
    * assigned with the license;
    * If the user's license assignment state is unassigned or unspecified, no
    * license config will be associated to the user;
@@ -1449,7 +1472,7 @@ public Builder setUserProfileBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Output only. License assignment state of the user.
-     * If the user is assigned with a license config, the user loggin will be
+     * If the user is assigned with a license config, the user login will be
      * assigned with the license;
      * If the user's license assignment state is unassigned or unspecified, no
      * license config will be associated to the user;
@@ -1471,7 +1494,7 @@ public int getLicenseAssignmentStateValue() {
      *
      * 
      * Output only. License assignment state of the user.
-     * If the user is assigned with a license config, the user loggin will be
+     * If the user is assigned with a license config, the user login will be
      * assigned with the license;
      * If the user's license assignment state is unassigned or unspecified, no
      * license config will be associated to the user;
@@ -1496,7 +1519,7 @@ public Builder setLicenseAssignmentStateValue(int value) {
      *
      * 
      * Output only. License assignment state of the user.
-     * If the user is assigned with a license config, the user loggin will be
+     * If the user is assigned with a license config, the user login will be
      * assigned with the license;
      * If the user's license assignment state is unassigned or unspecified, no
      * license config will be associated to the user;
@@ -1524,7 +1547,7 @@ public Builder setLicenseAssignmentStateValue(int value) {
      *
      * 
      * Output only. License assignment state of the user.
-     * If the user is assigned with a license config, the user loggin will be
+     * If the user is assigned with a license config, the user login will be
      * assigned with the license;
      * If the user's license assignment state is unassigned or unspecified, no
      * license config will be associated to the user;
@@ -1553,7 +1576,7 @@ public Builder setLicenseAssignmentState(
      *
      * 
      * Output only. License assignment state of the user.
-     * If the user is assigned with a license config, the user loggin will be
+     * If the user is assigned with a license config, the user login will be
      * assigned with the license;
      * If the user's license assignment state is unassigned or unspecified, no
      * license config will be associated to the user;
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseOrBuilder.java
index 6b5218b31a2f..993860f3518f 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseOrBuilder.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseOrBuilder.java
@@ -93,7 +93,7 @@ public interface UserLicenseOrBuilder
    *
    * 
    * Output only. License assignment state of the user.
-   * If the user is assigned with a license config, the user loggin will be
+   * If the user is assigned with a license config, the user login will be
    * assigned with the license;
    * If the user's license assignment state is unassigned or unspecified, no
    * license config will be associated to the user;
@@ -112,7 +112,7 @@ public interface UserLicenseOrBuilder
    *
    * 
    * Output only. License assignment state of the user.
-   * If the user is assigned with a license config, the user loggin will be
+   * If the user is assigned with a license config, the user login will be
    * assigned with the license;
    * If the user's license assignment state is unassigned or unspecified, no
    * license config will be associated to the user;
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseProto.java
index 146bdd8cb316..8314cad2015f 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseProto.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseProto.java
@@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
       internal_static_google_cloud_discoveryengine_v1_UserLicense_descriptor;
   static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internal_static_google_cloud_discoveryengine_v1_UserLicense_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_descriptor;
+  static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+      internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_fieldAccessorTable;
 
   public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
@@ -57,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "icense.proto\022\037google.cloud.discoveryengi"
           + "ne.v1\032\037google/api/field_behavior.proto\032\031"
           + "google/api/resource.proto\032\037google/protob"
-          + "uf/timestamp.proto\"\300\004\n\013UserLicense\022\035\n\016us"
+          + "uf/timestamp.proto\"\315\004\n\013UserLicense\022\035\n\016us"
           + "er_principal\030\001 \001(\tB\005\342A\002\005\002\022\032\n\014user_profil"
           + "e\030\003 \001(\tB\004\342A\001\001\022k\n\030license_assignment_stat"
           + "e\030\004 \001(\0162C.google.cloud.discoveryengine.v"
@@ -68,17 +72,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + ".TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\0132\032."
           + "google.protobuf.TimestampB\004\342A\001\003\0229\n\017last_"
           + "login_time\030\010 \001(\0132\032.google.protobuf.Times"
-          + "tampB\004\342A\001\003\"\220\001\n\026LicenseAssignmentState\022(\n"
+          + "tampB\004\342A\001\003\"\235\001\n\026LicenseAssignmentState\022(\n"
           + "$LICENSE_ASSIGNMENT_STATE_UNSPECIFIED\020\000\022"
           + "\014\n\010ASSIGNED\020\001\022\016\n\nUNASSIGNED\020\002\022\016\n\nNO_LICE"
-          + "NSE\020\003\022\036\n\032NO_LICENSE_ATTEMPTED_LOGIN\020\004B\203\002"
-          + "\n#com.google.cloud.discoveryengine.v1B\020U"
-          + "serLicenseProtoP\001ZMcloud.google.com/go/d"
-          + "iscoveryengine/apiv1/discoveryenginepb;d"
-          + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goo"
-          + "gle.Cloud.DiscoveryEngine.V1\312\002\037Google\\Cl"
-          + "oud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::"
-          + "DiscoveryEngine::V1b\006proto3"
+          + "NSE\020\003\022\036\n\032NO_LICENSE_ATTEMPTED_LOGIN\020\004\022\013\n"
+          + "\007BLOCKED\020\005\"Y\n\027LicenseConfigUsageStats\022\034\n"
+          + "\016license_config\030\001 \001(\tB\004\342A\001\002\022 \n\022used_lice"
+          + "nse_count\030\002 \001(\003B\004\342A\001\002B\203\002\n#com.google.clo"
+          + "ud.discoveryengine.v1B\020UserLicenseProtoP"
+          + "\001ZMcloud.google.com/go/discoveryengine/a"
+          + "piv1/discoveryenginepb;discoveryenginepb"
+          + "\242\002\017DISCOVERYENGINE\252\002\037Google.Cloud.Discov"
+          + "eryEngine.V1\312\002\037Google\\Cloud\\DiscoveryEng"
+          + "ine\\V1\352\002\"Google::Cloud::DiscoveryEngine:"
+          + ":V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -102,6 +109,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "UpdateTime",
               "LastLoginTime",
             });
+    internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_descriptor =
+        getDescriptor().getMessageType(1);
+    internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+            internal_static_google_cloud_discoveryengine_v1_LicenseConfigUsageStats_descriptor,
+            new java.lang.String[] {
+              "LicenseConfig", "UsedLicenseCount",
+            });
     descriptor.resolveAllFeaturesImmutable();
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.api.ResourceProto.getDescriptor();
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceProto.java
index 429e5084f783..4c390eb02cf0 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceProto.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceProto.java
@@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
       internal_static_google_cloud_discoveryengine_v1_ListUserLicensesResponse_descriptor;
   static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
       internal_static_google_cloud_discoveryengine_v1_ListUserLicensesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+      internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+      internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
       internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesRequest_descriptor;
   static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -80,26 +88,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "/field_behavior.proto\032\031google/api/resour"
           + "ce.proto\0322google/cloud/discoveryengine/v"
           + "1/user_license.proto\032#google/longrunning/operations.proto\032 google/protobuf/field"
-          + "_mask.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\245\001\n"
+          + "_mask.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\275\001\n"
           + "\027ListUserLicensesRequest\022A\n"
           + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n"
           + "(discoveryengine.googleapis.com/UserStore\022\027\n"
           + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n"
           + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n"
-          + "\006filter\030\004 \001(\tB\004\342A\001\001\"x\n"
+          + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n"
+          + "\010order_by\030\005 \001(\tB\004\342A\001\001\"x\n"
           + "\030ListUserLicensesResponse\022C\n\r"
-          + "user_licenses\030\001"
-          + " \003(\0132,.google.cloud.discoveryengine.v1.UserLicense\022\027\n"
-          + "\017next_page_token\030\002 \001(\t\"\226\003\n"
+          + "user_licenses\030\001 \003(\0132,.googl"
+          + "e.cloud.discoveryengine.v1.UserLicense\022\027\n"
+          + "\017next_page_token\030\002 \001(\t\"h\n"
+          + "#ListLicenseConfigsUsageStatsRequest\022A\n"
+          + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n"
+          + "(discoveryengine.googleapis.com/UserStore\"\204\001\n"
+          + "$ListLicenseConfigsUsageStatsResponse\022\\\n"
+          + "\032license_config_usage_stats\030\001"
+          + " \003(\01328.google.cloud.discoveryengine.v1.LicenseConfigUsageStats\"\226\003\n"
           + "\036BatchUpdateUserLicensesRequest\022e\n\r"
-          + "inline_source\030\002 \001(\0132L.google.cloud.discove"
-          + "ryengine.v1.BatchUpdateUserLicensesRequest.InlineSourceH\000\022A\n"
+          + "inline_source\030\002 \001(\0132L.google.cloud.discoveryengine.v1.Bat"
+          + "chUpdateUserLicensesRequest.InlineSourceH\000\022A\n"
           + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\n"
           + "(discoveryengine.googleapis.com/UserStore\022-\n"
           + "\037delete_unassigned_user_licenses\030\004 \001(\010B\004\342A\001\001\032\220\001\n"
           + "\014InlineSource\022I\n\r"
-          + "user_licenses\030\001"
-          + " \003(\0132,.google.cloud.discoveryengine.v1.UserLicenseB\004\342A\001\002\0225\n"
+          + "user_licenses\030\001 \003(\0132,.g"
+          + "oogle.cloud.discoveryengine.v1.UserLicenseB\004\342A\001\002\0225\n"
           + "\013update_mask\030\002"
           + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001B\010\n"
           + "\006source\"\261\001\n"
@@ -110,27 +125,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "failure_count\030\004 \001(\003\"\221\001\n"
           + "\037BatchUpdateUserLicensesResponse\022C\n\r"
           + "user_licenses\030\001 \003(\0132,.google.cloud.discoveryengine.v1.UserLicense\022)\n\r"
-          + "error_samples\030\002 \003(\0132\022.google.rpc.Status2\232\005\n"
+          + "error_samples\030\002 \003(\0132\022.google.rpc.Status2\242\010\n"
           + "\022UserLicenseService\022\327\001\n"
-          + "\020ListUserLicenses\0228.google.cloud.discoveryengine.v1.ListUserLicensesRequest\0329"
-          + ".google.cloud.discoveryengine.v1.ListUse"
-          + "rLicensesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/"
-          + "{parent=projects/*/locations/*/userStores/*}/userLicenses\022\325\002\n"
-          + "\027BatchUpdateUserLicenses\022?.google.cloud.discoveryengine.v1."
-          + "BatchUpdateUserLicensesRequest\032\035.google.longrunning.Operation\"\331\001\312A\202\001\n"
-          + "?google.cloud.discoveryengine.v1.BatchUpdateUserLic"
-          + "ensesResponse\022?google.cloud.discoveryeng"
-          + "ine.v1.BatchUpdateUserLicensesMetadata\202\323"
-          + "\344\223\002M\"H/v1/{parent=projects/*/locations/*"
-          + "/userStores/*}:batchUpdateUserLicenses:\001"
-          + "*\032R\312A\036discoveryengine.googleapis.com\322A.h"
-          + "ttps://www.googleapis.com/auth/cloud-platformB\212\002\n"
-          + "#com.google.cloud.discoveryengine.v1B\027UserLicenseServiceProtoP\001ZMcloud."
-          + "google.com/go/discoveryengine/apiv1/disc"
-          + "overyenginepb;discoveryenginepb\242\002\017DISCOV"
-          + "ERYENGINE\252\002\037Google.Cloud.DiscoveryEngine"
-          + ".V1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\""
-          + "Google::Cloud::DiscoveryEngine::V1b\006proto3"
+          + "\020ListUserLicenses\0228.google.cloud.discoveryengine.v1."
+          + "ListUserLicensesRequest\0329.google.cloud.discoveryengine.v1.ListUserLicensesRespon"
+          + "se\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=project"
+          + "s/*/locations/*/userStores/*}/userLicenses\022\207\002\n"
+          + "\034ListLicenseConfigsUsageStats\022D.google.cloud.discoveryengine.v1.ListLicens"
+          + "eConfigsUsageStatsRequest\032E.google.cloud.discoveryengine.v1.ListLicenseConfigsUs"
+          + "ageStatsResponse\"Z\332A\006parent\202\323\344\223\002K\022I/v1/{"
+          + "parent=projects/*/locations/*/userStores/*}/licenseConfigsUsageStats\022\325\002\n"
+          + "\027BatchUpdateUserLicenses\022?.google.cloud.discover"
+          + "yengine.v1.BatchUpdateUserLicensesRequest\032\035.google.longrunning.Operation\"\331\001\312A\202\001\n"
+          + "?google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse\022?google.cloud.d"
+          + "iscoveryengine.v1.BatchUpdateUserLicense"
+          + "sMetadata\202\323\344\223\002M\"H/v1/{parent=projects/*/"
+          + "locations/*/userStores/*}:batchUpdateUse"
+          + "rLicenses:\001*\032\317\001\312A\036discoveryengine.google"
+          + "apis.com\322A\252\001https://www.googleapis.com/a"
+          + "uth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwrite,htt"
+          + "ps://www.googleapis.com/auth/discoveryengine.serving.readwriteB\212\002\n"
+          + "#com.google.cloud.discoveryengine.v1B\027UserLicenseServi"
+          + "ceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discovery"
+          + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou"
+          + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc"
+          + "overyEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -152,7 +171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
             internal_static_google_cloud_discoveryengine_v1_ListUserLicensesRequest_descriptor,
             new java.lang.String[] {
-              "Parent", "PageSize", "PageToken", "Filter",
+              "Parent", "PageSize", "PageToken", "Filter", "OrderBy",
             });
     internal_static_google_cloud_discoveryengine_v1_ListUserLicensesResponse_descriptor =
         getDescriptor().getMessageType(1);
@@ -162,8 +181,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new java.lang.String[] {
               "UserLicenses", "NextPageToken",
             });
-    internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesRequest_descriptor =
+    internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_descriptor =
         getDescriptor().getMessageType(2);
+    internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+            internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent",
+            });
+    internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_descriptor =
+        getDescriptor().getMessageType(3);
+    internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+            internal_static_google_cloud_discoveryengine_v1_ListLicenseConfigsUsageStatsResponse_descriptor,
+            new java.lang.String[] {
+              "LicenseConfigUsageStats",
+            });
+    internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesRequest_descriptor =
+        getDescriptor().getMessageType(4);
     internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesRequest_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
             internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesRequest_descriptor,
@@ -180,7 +215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "UserLicenses", "UpdateMask",
             });
     internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesMetadata_descriptor =
-        getDescriptor().getMessageType(3);
+        getDescriptor().getMessageType(5);
     internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesMetadata_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
             internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesMetadata_descriptor,
@@ -188,7 +223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "CreateTime", "UpdateTime", "SuccessCount", "FailureCount",
             });
     internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesResponse_descriptor =
-        getDescriptor().getMessageType(4);
+        getDescriptor().getMessageType(6);
     internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesResponse_fieldAccessorTable =
         new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
             internal_static_google_cloud_discoveryengine_v1_BatchUpdateUserLicensesResponse_descriptor,
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStore.java
new file mode 100644
index 000000000000..d7543fb02eb5
--- /dev/null
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStore.java
@@ -0,0 +1,1306 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/discoveryengine/v1/user_store.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.discoveryengine.v1;
+
+/**
+ *
+ *
+ * 
+ * Configures metadata that is used for End User entities.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UserStore} + */ +@com.google.protobuf.Generated +public final class UserStore extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.UserStore) + UserStoreOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UserStore"); + } + + // Use UserStore.newBuilder() to construct. + private UserStore(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserStore() { + name_ = ""; + displayName_ = ""; + defaultLicenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1_UserStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1_UserStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UserStore.class, + com.google.cloud.discoveryengine.v1.UserStore.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. The full resource name of the User Store, in the format of
+   * `projects/{project}/locations/{location}/userStores/{user_store}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. The full resource name of the User Store, in the format of
+   * `projects/{project}/locations/{location}/userStores/{user_store}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * The display name of the User Store.
+   * 
+ * + * string display_name = 2; + * + * @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; + } + } + + /** + * + * + *
+   * The display name of the User Store.
+   * 
+ * + * string display_name = 2; + * + * @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 DEFAULT_LICENSE_CONFIG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLicenseConfig_ = ""; + + /** + * + * + *
+   * Optional. The default subscription
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+   * UserStore, if
+   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+   * is true, new users will automatically register under the default
+   * subscription.
+   *
+   * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+   * doesn't have remaining license seats left, new users will not be assigned
+   * with license and will be blocked for Vertex AI Search features. This is
+   * used if `license_assignment_tier_rules` is not configured.
+   * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultLicenseConfig. + */ + @java.lang.Override + public java.lang.String getDefaultLicenseConfig() { + java.lang.Object ref = defaultLicenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLicenseConfig_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The default subscription
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+   * UserStore, if
+   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+   * is true, new users will automatically register under the default
+   * subscription.
+   *
+   * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+   * doesn't have remaining license seats left, new users will not be assigned
+   * with license and will be blocked for Vertex AI Search features. This is
+   * used if `license_assignment_tier_rules` is not configured.
+   * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultLicenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLicenseConfigBytes() { + java.lang.Object ref = defaultLicenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_LICENSE_AUTO_REGISTER_FIELD_NUMBER = 6; + private boolean enableLicenseAutoRegister_ = false; + + /** + * + * + *
+   * Optional. Whether to enable license auto register for users in this User
+   * Store. If true, new users will automatically register under the default
+   * license config as long as the default license config has seats left.
+   * 
+ * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLicenseAutoRegister. + */ + @java.lang.Override + public boolean getEnableLicenseAutoRegister() { + return enableLicenseAutoRegister_; + } + + public static final int ENABLE_EXPIRED_LICENSE_AUTO_UPDATE_FIELD_NUMBER = 7; + private boolean enableExpiredLicenseAutoUpdate_ = false; + + /** + * + * + *
+   * Optional. Whether to enable license auto update for users in this User
+   * Store. If true, users with expired licenses will automatically be updated
+   * to use the default license config as long as the default license config has
+   * seats left.
+   * 
+ * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableExpiredLicenseAutoUpdate. + */ + @java.lang.Override + public boolean getEnableExpiredLicenseAutoUpdate() { + return enableExpiredLicenseAutoUpdate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLicenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, defaultLicenseConfig_); + } + if (enableLicenseAutoRegister_ != false) { + output.writeBool(6, enableLicenseAutoRegister_); + } + if (enableExpiredLicenseAutoUpdate_ != false) { + output.writeBool(7, enableExpiredLicenseAutoUpdate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLicenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, defaultLicenseConfig_); + } + if (enableLicenseAutoRegister_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enableLicenseAutoRegister_); + } + if (enableExpiredLicenseAutoUpdate_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableExpiredLicenseAutoUpdate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.UserStore)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.UserStore other = + (com.google.cloud.discoveryengine.v1.UserStore) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDefaultLicenseConfig().equals(other.getDefaultLicenseConfig())) return false; + if (getEnableLicenseAutoRegister() != other.getEnableLicenseAutoRegister()) return false; + if (getEnableExpiredLicenseAutoUpdate() != other.getEnableExpiredLicenseAutoUpdate()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DEFAULT_LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLicenseConfig().hashCode(); + hash = (37 * hash) + ENABLE_LICENSE_AUTO_REGISTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLicenseAutoRegister()); + hash = (37 * hash) + ENABLE_EXPIRED_LICENSE_AUTO_UPDATE_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExpiredLicenseAutoUpdate()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.UserStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.UserStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configures metadata that is used for End User entities.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.UserStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.UserStore) + com.google.cloud.discoveryengine.v1.UserStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1_UserStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1_UserStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.UserStore.class, + com.google.cloud.discoveryengine.v1.UserStore.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.UserStore.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + defaultLicenseConfig_ = ""; + enableLicenseAutoRegister_ = false; + enableExpiredLicenseAutoUpdate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1_UserStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserStore getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserStore build() { + com.google.cloud.discoveryengine.v1.UserStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserStore buildPartial() { + com.google.cloud.discoveryengine.v1.UserStore result = + new com.google.cloud.discoveryengine.v1.UserStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.UserStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultLicenseConfig_ = defaultLicenseConfig_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableLicenseAutoRegister_ = enableLicenseAutoRegister_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableExpiredLicenseAutoUpdate_ = enableExpiredLicenseAutoUpdate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.UserStore) { + return mergeFrom((com.google.cloud.discoveryengine.v1.UserStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.UserStore other) { + if (other == com.google.cloud.discoveryengine.v1.UserStore.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDefaultLicenseConfig().isEmpty()) { + defaultLicenseConfig_ = other.defaultLicenseConfig_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getEnableLicenseAutoRegister() != false) { + setEnableLicenseAutoRegister(other.getEnableLicenseAutoRegister()); + } + if (other.getEnableExpiredLicenseAutoUpdate() != false) { + setEnableExpiredLicenseAutoUpdate(other.getEnableExpiredLicenseAutoUpdate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 42: + { + defaultLicenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + enableLicenseAutoRegister_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 56: + { + enableExpiredLicenseAutoUpdate_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Immutable. The full resource name of the User Store, in the format of
+     * `projects/{project}/locations/{location}/userStores/{user_store}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the User Store, in the format of
+     * `projects/{project}/locations/{location}/userStores/{user_store}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the User Store, in the format of
+     * `projects/{project}/locations/{location}/userStores/{user_store}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the User Store, in the format of
+     * `projects/{project}/locations/{location}/userStores/{user_store}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the User Store, in the format of
+     * `projects/{project}/locations/{location}/userStores/{user_store}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The display name of the User Store.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The display name of the User Store.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + + /** + * + * + *
+     * The display name of the User Store.
+     * 
+ * + * string display_name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The display name of the User Store.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The display name of the User Store.
+     * 
+ * + * string display_name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object defaultLicenseConfig_ = ""; + + /** + * + * + *
+     * Optional. The default subscription
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+     * UserStore, if
+     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+     * is true, new users will automatically register under the default
+     * subscription.
+     *
+     * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * doesn't have remaining license seats left, new users will not be assigned
+     * with license and will be blocked for Vertex AI Search features. This is
+     * used if `license_assignment_tier_rules` is not configured.
+     * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultLicenseConfig. + */ + public java.lang.String getDefaultLicenseConfig() { + java.lang.Object ref = defaultLicenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLicenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The default subscription
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+     * UserStore, if
+     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+     * is true, new users will automatically register under the default
+     * subscription.
+     *
+     * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * doesn't have remaining license seats left, new users will not be assigned
+     * with license and will be blocked for Vertex AI Search features. This is
+     * used if `license_assignment_tier_rules` is not configured.
+     * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultLicenseConfig. + */ + public com.google.protobuf.ByteString getDefaultLicenseConfigBytes() { + java.lang.Object ref = defaultLicenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The default subscription
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+     * UserStore, if
+     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+     * is true, new users will automatically register under the default
+     * subscription.
+     *
+     * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * doesn't have remaining license seats left, new users will not be assigned
+     * with license and will be blocked for Vertex AI Search features. This is
+     * used if `license_assignment_tier_rules` is not configured.
+     * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The defaultLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setDefaultLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLicenseConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default subscription
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+     * UserStore, if
+     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+     * is true, new users will automatically register under the default
+     * subscription.
+     *
+     * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * doesn't have remaining license seats left, new users will not be assigned
+     * with license and will be blocked for Vertex AI Search features. This is
+     * used if `license_assignment_tier_rules` is not configured.
+     * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultLicenseConfig() { + defaultLicenseConfig_ = getDefaultInstance().getDefaultLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default subscription
+     * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+     * UserStore, if
+     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+     * is true, new users will automatically register under the default
+     * subscription.
+     *
+     * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+     * doesn't have remaining license seats left, new users will not be assigned
+     * with license and will be blocked for Vertex AI Search features. This is
+     * used if `license_assignment_tier_rules` is not configured.
+     * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for defaultLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setDefaultLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLicenseConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean enableLicenseAutoRegister_; + + /** + * + * + *
+     * Optional. Whether to enable license auto register for users in this User
+     * Store. If true, new users will automatically register under the default
+     * license config as long as the default license config has seats left.
+     * 
+ * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLicenseAutoRegister. + */ + @java.lang.Override + public boolean getEnableLicenseAutoRegister() { + return enableLicenseAutoRegister_; + } + + /** + * + * + *
+     * Optional. Whether to enable license auto register for users in this User
+     * Store. If true, new users will automatically register under the default
+     * license config as long as the default license config has seats left.
+     * 
+ * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableLicenseAutoRegister to set. + * @return This builder for chaining. + */ + public Builder setEnableLicenseAutoRegister(boolean value) { + + enableLicenseAutoRegister_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to enable license auto register for users in this User
+     * Store. If true, new users will automatically register under the default
+     * license config as long as the default license config has seats left.
+     * 
+ * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableLicenseAutoRegister() { + bitField0_ = (bitField0_ & ~0x00000008); + enableLicenseAutoRegister_ = false; + onChanged(); + return this; + } + + private boolean enableExpiredLicenseAutoUpdate_; + + /** + * + * + *
+     * Optional. Whether to enable license auto update for users in this User
+     * Store. If true, users with expired licenses will automatically be updated
+     * to use the default license config as long as the default license config has
+     * seats left.
+     * 
+ * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableExpiredLicenseAutoUpdate. + */ + @java.lang.Override + public boolean getEnableExpiredLicenseAutoUpdate() { + return enableExpiredLicenseAutoUpdate_; + } + + /** + * + * + *
+     * Optional. Whether to enable license auto update for users in this User
+     * Store. If true, users with expired licenses will automatically be updated
+     * to use the default license config as long as the default license config has
+     * seats left.
+     * 
+ * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableExpiredLicenseAutoUpdate to set. + * @return This builder for chaining. + */ + public Builder setEnableExpiredLicenseAutoUpdate(boolean value) { + + enableExpiredLicenseAutoUpdate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether to enable license auto update for users in this User
+     * Store. If true, users with expired licenses will automatically be updated
+     * to use the default license config as long as the default license config has
+     * seats left.
+     * 
+ * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableExpiredLicenseAutoUpdate() { + bitField0_ = (bitField0_ & ~0x00000010); + enableExpiredLicenseAutoUpdate_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.UserStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.UserStore) + private static final com.google.cloud.discoveryengine.v1.UserStore DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.UserStore(); + } + + public static com.google.cloud.discoveryengine.v1.UserStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserStore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.UserStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreOrBuilder.java new file mode 100644 index 000000000000..9769fa6ba838 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface UserStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.UserStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The full resource name of the User Store, in the format of
+   * `projects/{project}/locations/{location}/userStores/{user_store}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Immutable. The full resource name of the User Store, in the format of
+   * `projects/{project}/locations/{location}/userStores/{user_store}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The display name of the User Store.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * The display name of the User Store.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The default subscription
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+   * UserStore, if
+   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+   * is true, new users will automatically register under the default
+   * subscription.
+   *
+   * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+   * doesn't have remaining license seats left, new users will not be assigned
+   * with license and will be blocked for Vertex AI Search features. This is
+   * used if `license_assignment_tier_rules` is not configured.
+   * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultLicenseConfig. + */ + java.lang.String getDefaultLicenseConfig(); + + /** + * + * + *
+   * Optional. The default subscription
+   * [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the
+   * UserStore, if
+   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register]
+   * is true, new users will automatically register under the default
+   * subscription.
+   *
+   * If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]
+   * doesn't have remaining license seats left, new users will not be assigned
+   * with license and will be blocked for Vertex AI Search features. This is
+   * used if `license_assignment_tier_rules` is not configured.
+   * 
+ * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultLicenseConfig. + */ + com.google.protobuf.ByteString getDefaultLicenseConfigBytes(); + + /** + * + * + *
+   * Optional. Whether to enable license auto register for users in this User
+   * Store. If true, new users will automatically register under the default
+   * license config as long as the default license config has seats left.
+   * 
+ * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLicenseAutoRegister. + */ + boolean getEnableLicenseAutoRegister(); + + /** + * + * + *
+   * Optional. Whether to enable license auto update for users in this User
+   * Store. If true, users with expired licenses will automatically be updated
+   * to use the default license config as long as the default license config has
+   * seats left.
+   * 
+ * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableExpiredLicenseAutoUpdate. + */ + boolean getEnableExpiredLicenseAutoUpdate(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreProto.java new file mode 100644 index 000000000000..37b983b2832e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class UserStoreProto extends com.google.protobuf.GeneratedFile { + private UserStoreProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UserStoreProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UserStore_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UserStore_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" + + "0google/cloud/discoveryengine/v1/user_store.proto\022\037google.cloud.discoveryengine" + + ".v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\332\002\n" + + "\tUserStore\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\005\022\024\n" + + "\014display_name\030\002 \001(\t\022U\n" + + "\026default_license_config\030\005 \001(\tB5\342A\001\001\372A.\n" + + ",discoveryengine.googleapis.com/LicenseConfig\022*\n" + + "\034enable_license_auto_register\030\006 \001(\010B\004\342A\001\001\0220\n" + + "\"enable_expired_license_auto_update\030\007 \001(\010B\004\342A\001\001:n\352Ak\n" + + "(discoveryengine.googleapis.com/UserStore\022?projects/{p" + + "roject}/locations/{location}/userStores/{user_store}B\201\002\n" + + "#com.google.cloud.discoveryengine.v1B\016UserStoreProtoP\001ZMcloud.go" + + "ogle.com/go/discoveryengine/apiv1/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002\037Google.Cloud.DiscoveryEngine.V" + + "1\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Go" + + "ogle::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_UserStore_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_UserStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UserStore_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "DefaultLicenseConfig", + "EnableLicenseAutoRegister", + "EnableExpiredLicenseAutoUpdate", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceProto.java new file mode 100644 index 000000000000..ec6a03c9a46f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreServiceProto.java @@ -0,0 +1,144 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/user_store_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class UserStoreServiceProto extends com.google.protobuf.GeneratedFile { + private UserStoreServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UserStoreServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1/user_s" + + "tore_service.proto\022\037google.cloud.discove" + + "ryengine.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\0320google/cloud/discoveryengine/v1/" + + "user_store.proto\032 google/protobuf/field_" + + "mask.proto\"V\n\023GetUserStoreRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.google" + + "apis.com/UserStore\"\225\001\n\026UpdateUserStoreRe" + + "quest\022D\n\nuser_store\030\001 \001(\0132*.google.cloud" + + ".discoveryengine.v1.UserStoreB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\0012\367\004\n\020UserStoreService\022\257\001\n\014GetU" + + "serStore\0224.google.cloud.discoveryengine." + + "v1.GetUserStoreRequest\032*.google.cloud.di" + + "scoveryengine.v1.UserStore\"=\332A\004name\202\323\344\223\002" + + "0\022./v1/{name=projects/*/locations/*/user" + + "Stores/*}\022\336\001\n\017UpdateUserStore\0227.google.c" + + "loud.discoveryengine.v1.UpdateUserStoreR" + + "equest\032*.google.cloud.discoveryengine.v1" + + ".UserStore\"f\332A\026user_store,update_mask\202\323\344" + + "\223\002G29/v1/{user_store.name=projects/*/loc" + + "ations/*/userStores/*}:\nuser_store\032\317\001\312A\036" + + "discoveryengine.googleapis.com\322A\252\001https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/discove" + + "ryengine.readwrite,https://www.googleapi" + + "s.com/auth/discoveryengine.serving.readw" + + "riteB\210\002\n#com.google.cloud.discoveryengin" + + "e.v1B\025UserStoreServiceProtoP\001ZMcloud.goo" + + "gle.com/go/discoveryengine/apiv1/discove" + + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" + + "ENGINE\252\002\037Google.Cloud.DiscoveryEngine.V1" + + "\312\002\037Google\\Cloud\\DiscoveryEngine\\V1\352\002\"Goo" + + "gle::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.UserStoreProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetUserStoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateUserStoreRequest_descriptor, + new java.lang.String[] { + "UserStore", "UpdateMask", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.UserStoreProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfig.java new file mode 100644 index 000000000000..372a57258b9e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfig.java @@ -0,0 +1,46632 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +/** + * + * + *
+ * WidgetConfig captures configs at the Widget level.
+ * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig} + */ +@com.google.protobuf.Generated +public final class WidgetConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig) + WidgetConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WidgetConfig"); + } + + // Use WidgetConfig.newBuilder() to construct. + private WidgetConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WidgetConfig() { + name_ = ""; + displayName_ = ""; + dataStoreType_ = 0; + configId_ = ""; + solutionType_ = 0; + industryVertical_ = 0; + collectionComponents_ = java.util.Collections.emptyList(); + batchAuthStatuses_ = java.util.Collections.emptyList(); + nodes_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.Builder.class); + } + + /** + * + * + *
+   * The type of the widget's parent data store.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType} + */ + public enum DataStoreType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified data store type.
+     * 
+ * + * DATA_STORE_TYPE_UNSPECIFIED = 0; + */ + DATA_STORE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The parent data store contains a site search engine.
+     * 
+ * + * SITE_SEARCH = 1; + */ + SITE_SEARCH(1), + /** + * + * + *
+     * The parent data store contains a search engine for structured data.
+     * 
+ * + * STRUCTURED = 2; + */ + STRUCTURED(2), + /** + * + * + *
+     * The parent data store contains a search engine for unstructured data.
+     * 
+ * + * UNSTRUCTURED = 3; + */ + UNSTRUCTURED(3), + /** + * + * + *
+     * The parent data store is served for blended search with multiple data
+     * stores.
+     * 
+ * + * BLENDED = 4; + */ + BLENDED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataStoreType"); + } + + /** + * + * + *
+     * Unspecified data store type.
+     * 
+ * + * DATA_STORE_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_STORE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The parent data store contains a site search engine.
+     * 
+ * + * SITE_SEARCH = 1; + */ + public static final int SITE_SEARCH_VALUE = 1; + + /** + * + * + *
+     * The parent data store contains a search engine for structured data.
+     * 
+ * + * STRUCTURED = 2; + */ + public static final int STRUCTURED_VALUE = 2; + + /** + * + * + *
+     * The parent data store contains a search engine for unstructured data.
+     * 
+ * + * UNSTRUCTURED = 3; + */ + public static final int UNSTRUCTURED_VALUE = 3; + + /** + * + * + *
+     * The parent data store is served for blended search with multiple data
+     * stores.
+     * 
+ * + * BLENDED = 4; + */ + public static final int BLENDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataStoreType 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 DataStoreType forNumber(int value) { + switch (value) { + case 0: + return DATA_STORE_TYPE_UNSPECIFIED; + case 1: + return SITE_SEARCH; + case 2: + return STRUCTURED; + case 3: + return UNSTRUCTURED; + case 4: + return BLENDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataStoreType findValueByNumber(int number) { + return DataStoreType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final DataStoreType[] VALUES = values(); + + public static DataStoreType 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 DataStoreType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType) + } + + /** + * + * + *
+   * The type of result to display in the ucs widget.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType} + */ + public enum ResultDisplayType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified display type (default to showing snippet).
+     * 
+ * + * RESULT_DISPLAY_TYPE_UNSPECIFIED = 0; + */ + RESULT_DISPLAY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Display results from the snippet field.
+     * 
+ * + * SNIPPET = 1; + */ + SNIPPET(1), + /** + * + * + *
+     * Display results from extractive answers field.
+     * 
+ * + * EXTRACTIVE_ANSWER = 2; + */ + EXTRACTIVE_ANSWER(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ResultDisplayType"); + } + + /** + * + * + *
+     * Unspecified display type (default to showing snippet).
+     * 
+ * + * RESULT_DISPLAY_TYPE_UNSPECIFIED = 0; + */ + public static final int RESULT_DISPLAY_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Display results from the snippet field.
+     * 
+ * + * SNIPPET = 1; + */ + public static final int SNIPPET_VALUE = 1; + + /** + * + * + *
+     * Display results from extractive answers field.
+     * 
+ * + * EXTRACTIVE_ANSWER = 2; + */ + public static final int EXTRACTIVE_ANSWER_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 ResultDisplayType 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 ResultDisplayType forNumber(int value) { + switch (value) { + case 0: + return RESULT_DISPLAY_TYPE_UNSPECIFIED; + case 1: + return SNIPPET; + case 2: + return EXTRACTIVE_ANSWER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultDisplayType findValueByNumber(int number) { + return ResultDisplayType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final ResultDisplayType[] VALUES = values(); + + public static ResultDisplayType 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 ResultDisplayType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType) + } + + public interface UIComponentFieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + java.lang.String getField(); + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return A list containing the deviceVisibility. + */ + java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility> + getDeviceVisibilityList(); + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return The count of deviceVisibility. + */ + int getDeviceVisibilityCount(); + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index of the element to return. + * @return The deviceVisibility at the given index. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + getDeviceVisibility(int index); + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return A list containing the enum numeric values on the wire for deviceVisibility. + */ + java.util.List getDeviceVisibilityValueList(); + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of deviceVisibility at the given index. + */ + int getDeviceVisibilityValue(int index); + + /** + * + * + *
+     * The template to customize how the field is displayed. An example value
+     * would be a string that looks like: "Price: {value}".
+     * 
+ * + * string display_template = 3; + * + * @return The displayTemplate. + */ + java.lang.String getDisplayTemplate(); + + /** + * + * + *
+     * The template to customize how the field is displayed. An example value
+     * would be a string that looks like: "Price: {value}".
+     * 
+ * + * string display_template = 3; + * + * @return The bytes for displayTemplate. + */ + com.google.protobuf.ByteString getDisplayTemplateBytes(); + } + + /** + * + * + *
+   * Facet field that maps to a UI Component.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField} + */ + public static final class UIComponentField extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) + UIComponentFieldOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UIComponentField"); + } + + // Use UIComponentField.newBuilder() to construct. + private UIComponentField(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UIComponentField() { + field_ = ""; + deviceVisibility_ = emptyIntList(); + displayTemplate_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder.class); + } + + /** + * + * + *
+     * The visibility of the field on different type of devices.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility} + */ + public enum DeviceVisibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value when not specified. Server returns INVALID_ARGUMENT if
+       * used in requests.
+       * 
+ * + * DEVICE_VISIBILITY_UNSPECIFIED = 0; + */ + DEVICE_VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
+       * The UI component is visible on Mobile devices.
+       * 
+ * + * MOBILE = 1; + */ + MOBILE(1), + /** + * + * + *
+       * The UI component is visible on Browser-based client.
+       * 
+ * + * DESKTOP = 2; + */ + DESKTOP(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeviceVisibility"); + } + + /** + * + * + *
+       * Default value when not specified. Server returns INVALID_ARGUMENT if
+       * used in requests.
+       * 
+ * + * DEVICE_VISIBILITY_UNSPECIFIED = 0; + */ + public static final int DEVICE_VISIBILITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The UI component is visible on Mobile devices.
+       * 
+ * + * MOBILE = 1; + */ + public static final int MOBILE_VALUE = 1; + + /** + * + * + *
+       * The UI component is visible on Browser-based client.
+       * 
+ * + * DESKTOP = 2; + */ + public static final int DESKTOP_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 DeviceVisibility 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 DeviceVisibility forNumber(int value) { + switch (value) { + case 0: + return DEVICE_VISIBILITY_UNSPECIFIED; + case 1: + return MOBILE; + case 2: + return DESKTOP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceVisibility findValueByNumber(int number) { + return DeviceVisibility.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DeviceVisibility[] VALUES = values(); + + public static DeviceVisibility 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 DeviceVisibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility) + } + + public static final int FIELD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_VISIBILITY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList deviceVisibility_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility> + deviceVisibility_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .DeviceVisibility>() { + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .DeviceVisibility + convert(int from) { + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .DeviceVisibility.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .DeviceVisibility.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return A list containing the deviceVisibility. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility> + getDeviceVisibilityList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility>( + deviceVisibility_, deviceVisibility_converter_); + } + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return The count of deviceVisibility. + */ + @java.lang.Override + public int getDeviceVisibilityCount() { + return deviceVisibility_.size(); + } + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index of the element to return. + * @return The deviceVisibility at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + getDeviceVisibility(int index) { + return deviceVisibility_converter_.convert(deviceVisibility_.getInt(index)); + } + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return A list containing the enum numeric values on the wire for deviceVisibility. + */ + @java.lang.Override + public java.util.List getDeviceVisibilityValueList() { + return deviceVisibility_; + } + + /** + * + * + *
+     * The field visibility on different types of devices.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of deviceVisibility at the given index. + */ + @java.lang.Override + public int getDeviceVisibilityValue(int index) { + return deviceVisibility_.getInt(index); + } + + private int deviceVisibilityMemoizedSerializedSize; + + public static final int DISPLAY_TEMPLATE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayTemplate_ = ""; + + /** + * + * + *
+     * The template to customize how the field is displayed. An example value
+     * would be a string that looks like: "Price: {value}".
+     * 
+ * + * string display_template = 3; + * + * @return The displayTemplate. + */ + @java.lang.Override + public java.lang.String getDisplayTemplate() { + java.lang.Object ref = displayTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayTemplate_ = s; + return s; + } + } + + /** + * + * + *
+     * The template to customize how the field is displayed. An example value
+     * would be a string that looks like: "Price: {value}".
+     * 
+ * + * string display_template = 3; + * + * @return The bytes for displayTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayTemplateBytes() { + java.lang.Object ref = displayTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayTemplate_ = 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, field_); + } + if (getDeviceVisibilityList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(deviceVisibilityMemoizedSerializedSize); + } + for (int i = 0; i < deviceVisibility_.size(); i++) { + output.writeEnumNoTag(deviceVisibility_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayTemplate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, field_); + } + { + int dataSize = 0; + for (int i = 0; i < deviceVisibility_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + deviceVisibility_.getInt(i)); + } + size += dataSize; + if (!getDeviceVisibilityList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + deviceVisibilityMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) obj; + + if (!getField().equals(other.getField())) return false; + if (!deviceVisibility_.equals(other.deviceVisibility_)) return false; + if (!getDisplayTemplate().equals(other.getDisplayTemplate())) 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) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + if (getDeviceVisibilityCount() > 0) { + hash = (37 * hash) + DEVICE_VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + deviceVisibility_.hashCode(); + } + hash = (37 * hash) + DISPLAY_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getDisplayTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Facet field that maps to a UI Component.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + deviceVisibility_ = emptyIntList(); + displayTemplate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + deviceVisibility_.makeImmutable(); + result.deviceVisibility_ = deviceVisibility_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayTemplate_ = displayTemplate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .getDefaultInstance()) return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.deviceVisibility_.isEmpty()) { + if (deviceVisibility_.isEmpty()) { + deviceVisibility_ = other.deviceVisibility_; + deviceVisibility_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureDeviceVisibilityIsMutable(); + deviceVisibility_.addAll(other.deviceVisibility_); + } + onChanged(); + } + if (!other.getDisplayTemplate().isEmpty()) { + displayTemplate_ = other.displayTemplate_; + 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: + { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureDeviceVisibilityIsMutable(); + deviceVisibility_.addInt(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDeviceVisibilityIsMutable(); + while (input.getBytesUntilLimit() > 0) { + deviceVisibility_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 18 + case 26: + { + displayTemplate_ = 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 field_ = ""; + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList deviceVisibility_ = emptyIntList(); + + private void ensureDeviceVisibilityIsMutable() { + if (!deviceVisibility_.isModifiable()) { + deviceVisibility_ = makeMutableCopy(deviceVisibility_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return A list containing the deviceVisibility. + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility> + getDeviceVisibilityList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility>( + deviceVisibility_, deviceVisibility_converter_); + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return The count of deviceVisibility. + */ + public int getDeviceVisibilityCount() { + return deviceVisibility_.size(); + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index of the element to return. + * @return The deviceVisibility at the given index. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + getDeviceVisibility(int index) { + return deviceVisibility_converter_.convert(deviceVisibility_.getInt(index)); + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index to set the value at. + * @param value The deviceVisibility to set. + * @return This builder for chaining. + */ + public Builder setDeviceVisibility( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceVisibilityIsMutable(); + deviceVisibility_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param value The deviceVisibility to add. + * @return This builder for chaining. + */ + public Builder addDeviceVisibility( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceVisibilityIsMutable(); + deviceVisibility_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param values The deviceVisibility to add. + * @return This builder for chaining. + */ + public Builder addAllDeviceVisibility( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .DeviceVisibility> + values) { + ensureDeviceVisibilityIsMutable(); + for (com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility + value : values) { + deviceVisibility_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearDeviceVisibility() { + deviceVisibility_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @return A list containing the enum numeric values on the wire for deviceVisibility. + */ + public java.util.List getDeviceVisibilityValueList() { + deviceVisibility_.makeImmutable(); + return deviceVisibility_; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of deviceVisibility at the given index. + */ + public int getDeviceVisibilityValue(int index) { + return deviceVisibility_.getInt(index); + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for deviceVisibility to set. + * @return This builder for chaining. + */ + public Builder setDeviceVisibilityValue(int index, int value) { + ensureDeviceVisibilityIsMutable(); + deviceVisibility_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param value The enum numeric value on the wire for deviceVisibility to add. + * @return This builder for chaining. + */ + public Builder addDeviceVisibilityValue(int value) { + ensureDeviceVisibilityIsMutable(); + deviceVisibility_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+       * The field visibility on different types of devices.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.DeviceVisibility device_visibility = 2; + * + * + * @param values The enum numeric values on the wire for deviceVisibility to add. + * @return This builder for chaining. + */ + public Builder addAllDeviceVisibilityValue(java.lang.Iterable values) { + ensureDeviceVisibilityIsMutable(); + for (int value : values) { + deviceVisibility_.addInt(value); + } + onChanged(); + return this; + } + + private java.lang.Object displayTemplate_ = ""; + + /** + * + * + *
+       * The template to customize how the field is displayed. An example value
+       * would be a string that looks like: "Price: {value}".
+       * 
+ * + * string display_template = 3; + * + * @return The displayTemplate. + */ + public java.lang.String getDisplayTemplate() { + java.lang.Object ref = displayTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The template to customize how the field is displayed. An example value
+       * would be a string that looks like: "Price: {value}".
+       * 
+ * + * string display_template = 3; + * + * @return The bytes for displayTemplate. + */ + public com.google.protobuf.ByteString getDisplayTemplateBytes() { + java.lang.Object ref = displayTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The template to customize how the field is displayed. An example value
+       * would be a string that looks like: "Price: {value}".
+       * 
+ * + * string display_template = 3; + * + * @param value The displayTemplate to set. + * @return This builder for chaining. + */ + public Builder setDisplayTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayTemplate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The template to customize how the field is displayed. An example value
+       * would be a string that looks like: "Price: {value}".
+       * 
+ * + * string display_template = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayTemplate() { + displayTemplate_ = getDefaultInstance().getDisplayTemplate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * The template to customize how the field is displayed. An example value
+       * would be a string that looks like: "Price: {value}".
+       * 
+ * + * string display_template = 3; + * + * @param value The bytes for displayTemplate to set. + * @return This builder for chaining. + */ + public Builder setDisplayTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayTemplate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UIComponentField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FacetFieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.FacetField) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + java.lang.String getField(); + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
+     * Optional. The field name that end users will see.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+     * Optional. The field name that end users will see.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + } + + /** + * + * + *
+   * Facet fields that store the mapping of fields to end user widget
+   * appearance.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.FacetField} + */ + public static final class FacetField extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.FacetField) + FacetFieldOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FacetField"); + } + + // Use FacetField.newBuilder() to construct. + private FacetField(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FacetField() { + field_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. Registered field name. The format is `field.abc`.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The field name that end users will see.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The field name that end users will see.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, field_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, field_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField) obj; + + if (!getField().equals(other.getField())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.FacetField} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.FacetField) + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.getDefaultInstance()) + return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = 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 field_ = ""; + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. Registered field name. The format is `field.abc`.
+       * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+       * Optional. The field name that end users will see.
+       * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The field name that end users will see.
+       * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The field name that end users will see.
+       * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The field name that end users will see.
+       * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The field name that end users will see.
+       * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.FacetField) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.FacetField) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataStoreUiConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + java.util.List getFacetFieldList(); + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField getFacetField(int index); + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + int getFacetFieldCount(); + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + java.util.List + getFacetFieldOrBuilderList(); + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder getFacetFieldOrBuilder( + int index); + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + int getFieldsUiComponentsMapCount(); + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + boolean containsFieldsUiComponentsMap(java.lang.String key); + + /** Use {@link #getFieldsUiComponentsMapMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getFieldsUiComponentsMap(); + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getFieldsUiComponentsMapMap(); + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getFieldsUiComponentsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField defaultValue); + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getFieldsUiComponentsMapOrThrow(java.lang.String key); + } + + /** + * + * + *
+   * UI component configuration for data store.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig} + */ + public static final class DataStoreUiConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) + DataStoreUiConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataStoreUiConfig"); + } + + // Use DataStoreUiConfig.newBuilder() to construct. + private DataStoreUiConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataStoreUiConfig() { + name_ = ""; + id_ = ""; + facetField_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetFieldsUiComponentsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 FACET_FIELD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List facetField_; + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + @java.lang.Override + public java.util.List + getFacetFieldList() { + return facetField_; + } + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder> + getFacetFieldOrBuilderList() { + return facetField_; + } + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + @java.lang.Override + public int getFacetFieldCount() { + return facetField_.size(); + } + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField getFacetField(int index) { + return facetField_.get(index); + } + + /** + * + * + *
+     * Facet fields that store the mapping of fields to end user widget
+     * appearance.
+     * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder + getFacetFieldOrBuilder(int index) { + return facetField_.get(index); + } + + public static final int FIELDS_UI_COMPONENTS_MAP_FIELD_NUMBER = 4; + + private static final class FieldsUiComponentsMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_FieldsUiComponentsMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + fieldsUiComponentsMap_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + internalGetFieldsUiComponentsMap() { + if (fieldsUiComponentsMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldsUiComponentsMapDefaultEntryHolder.defaultEntry); + } + return fieldsUiComponentsMap_; + } + + public int getFieldsUiComponentsMapCount() { + return internalGetFieldsUiComponentsMap().getMap().size(); + } + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public boolean containsFieldsUiComponentsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFieldsUiComponentsMap().getMap().containsKey(key); + } + + /** Use {@link #getFieldsUiComponentsMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getFieldsUiComponentsMap() { + return getFieldsUiComponentsMapMap(); + } + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getFieldsUiComponentsMapMap() { + return internalGetFieldsUiComponentsMap().getMap(); + } + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getFieldsUiComponentsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + map = internalGetFieldsUiComponentsMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * The key is the UI component. Mock. Currently supported `title`,
+     * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+     *
+     * The value is the name of the field along with its device visibility.
+     *
+     * The 3 custom fields are optional and can be added or removed. `title`,
+     * `thumbnail`, `url` are required UI components that cannot be removed.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getFieldsUiComponentsMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + map = internalGetFieldsUiComponentsMap().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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + for (int i = 0; i < facetField_.size(); i++) { + output.writeMessage(3, facetField_.get(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetFieldsUiComponentsMap(), + FieldsUiComponentsMapDefaultEntryHolder.defaultEntry, + 4); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + for (int i = 0; i < facetField_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, facetField_.get(i)); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + entry : internalGetFieldsUiComponentsMap().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + fieldsUiComponentsMap__ = + FieldsUiComponentsMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, fieldsUiComponentsMap__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getFacetFieldList().equals(other.getFacetFieldList())) return false; + if (!internalGetFieldsUiComponentsMap().equals(other.internalGetFieldsUiComponentsMap())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (getFacetFieldCount() > 0) { + hash = (37 * hash) + FACET_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getFacetFieldList().hashCode(); + } + if (!internalGetFieldsUiComponentsMap().getMap().isEmpty()) { + hash = (37 * hash) + FIELDS_UI_COMPONENTS_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetFieldsUiComponentsMap().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * UI component configuration for data store.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetFieldsUiComponentsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableFieldsUiComponentsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + id_ = ""; + if (facetFieldBuilder_ == null) { + facetField_ = java.util.Collections.emptyList(); + } else { + facetField_ = null; + facetFieldBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableFieldsUiComponentsMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig result) { + if (facetFieldBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + facetField_ = java.util.Collections.unmodifiableList(facetField_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.facetField_ = facetField_; + } else { + result.facetField_ = facetFieldBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fieldsUiComponentsMap_ = + internalGetFieldsUiComponentsMap() + .build(FieldsUiComponentsMapDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (facetFieldBuilder_ == null) { + if (!other.facetField_.isEmpty()) { + if (facetField_.isEmpty()) { + facetField_ = other.facetField_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFacetFieldIsMutable(); + facetField_.addAll(other.facetField_); + } + onChanged(); + } + } else { + if (!other.facetField_.isEmpty()) { + if (facetFieldBuilder_.isEmpty()) { + facetFieldBuilder_.dispose(); + facetFieldBuilder_ = null; + facetField_ = other.facetField_; + bitField0_ = (bitField0_ & ~0x00000004); + facetFieldBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFacetFieldFieldBuilder() + : null; + } else { + facetFieldBuilder_.addAllMessages(other.facetField_); + } + } + } + internalGetMutableFieldsUiComponentsMap() + .mergeFrom(other.internalGetFieldsUiComponentsMap()); + bitField0_ |= 0x00000008; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.parser(), + extensionRegistry); + if (facetFieldBuilder_ == null) { + ensureFacetFieldIsMutable(); + facetField_.add(m); + } else { + facetFieldBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + fieldsUiComponentsMap__ = + input.readMessage( + FieldsUiComponentsMapDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableFieldsUiComponentsMap() + .ensureBuilderMap() + .put(fieldsUiComponentsMap__.getKey(), fieldsUiComponentsMap__.getValue()); + 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 name_ = ""; + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + facetField_ = java.util.Collections.emptyList(); + + private void ensureFacetFieldIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + facetField_ = + new java.util.ArrayList( + facetField_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder> + facetFieldBuilder_; + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public java.util.List + getFacetFieldList() { + if (facetFieldBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetField_); + } else { + return facetFieldBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public int getFacetFieldCount() { + if (facetFieldBuilder_ == null) { + return facetField_.size(); + } else { + return facetFieldBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField getFacetField(int index) { + if (facetFieldBuilder_ == null) { + return facetField_.get(index); + } else { + return facetFieldBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder setFacetField( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField value) { + if (facetFieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetFieldIsMutable(); + facetField_.set(index, value); + onChanged(); + } else { + facetFieldBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder setFacetField( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder builderForValue) { + if (facetFieldBuilder_ == null) { + ensureFacetFieldIsMutable(); + facetField_.set(index, builderForValue.build()); + onChanged(); + } else { + facetFieldBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder addFacetField( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField value) { + if (facetFieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetFieldIsMutable(); + facetField_.add(value); + onChanged(); + } else { + facetFieldBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder addFacetField( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField value) { + if (facetFieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetFieldIsMutable(); + facetField_.add(index, value); + onChanged(); + } else { + facetFieldBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder addFacetField( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder builderForValue) { + if (facetFieldBuilder_ == null) { + ensureFacetFieldIsMutable(); + facetField_.add(builderForValue.build()); + onChanged(); + } else { + facetFieldBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder addFacetField( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder builderForValue) { + if (facetFieldBuilder_ == null) { + ensureFacetFieldIsMutable(); + facetField_.add(index, builderForValue.build()); + onChanged(); + } else { + facetFieldBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder addAllFacetField( + java.lang.Iterable + values) { + if (facetFieldBuilder_ == null) { + ensureFacetFieldIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetField_); + onChanged(); + } else { + facetFieldBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder clearFacetField() { + if (facetFieldBuilder_ == null) { + facetField_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + facetFieldBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public Builder removeFacetField(int index) { + if (facetFieldBuilder_ == null) { + ensureFacetFieldIsMutable(); + facetField_.remove(index); + onChanged(); + } else { + facetFieldBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder + getFacetFieldBuilder(int index) { + return internalGetFacetFieldFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder + getFacetFieldOrBuilder(int index) { + if (facetFieldBuilder_ == null) { + return facetField_.get(index); + } else { + return facetFieldBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder> + getFacetFieldOrBuilderList() { + if (facetFieldBuilder_ != null) { + return facetFieldBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetField_); + } + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder + addFacetFieldBuilder() { + return internalGetFacetFieldFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.getDefaultInstance()); + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder + addFacetFieldBuilder(int index) { + return internalGetFacetFieldFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.getDefaultInstance()); + } + + /** + * + * + *
+       * Facet fields that store the mapping of fields to end user widget
+       * appearance.
+       * 
+ * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3; + * + */ + public java.util.List + getFacetFieldBuilderList() { + return internalGetFacetFieldFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder> + internalGetFacetFieldFieldBuilder() { + if (facetFieldBuilder_ == null) { + facetFieldBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder>( + facetField_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + facetField_ = null; + } + return facetFieldBuilder_; + } + + private static final class FieldsUiComponentsMapConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField build( + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder val) { + if (val instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) { + return (com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) val; + } + return ((com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + defaultEntry() { + return FieldsUiComponentsMapDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final FieldsUiComponentsMapConverter fieldsUiComponentsMapConverter = + new FieldsUiComponentsMapConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder> + fieldsUiComponentsMap_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder> + internalGetFieldsUiComponentsMap() { + if (fieldsUiComponentsMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(fieldsUiComponentsMapConverter); + } + return fieldsUiComponentsMap_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder> + internalGetMutableFieldsUiComponentsMap() { + if (fieldsUiComponentsMap_ == null) { + fieldsUiComponentsMap_ = + new com.google.protobuf.MapFieldBuilder<>(fieldsUiComponentsMapConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return fieldsUiComponentsMap_; + } + + public int getFieldsUiComponentsMapCount() { + return internalGetFieldsUiComponentsMap().ensureBuilderMap().size(); + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public boolean containsFieldsUiComponentsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFieldsUiComponentsMap().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getFieldsUiComponentsMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getFieldsUiComponentsMap() { + return getFieldsUiComponentsMapMap(); + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getFieldsUiComponentsMapMap() { + return internalGetFieldsUiComponentsMap().getImmutableMap(); + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getFieldsUiComponentsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder> + map = internalGetMutableFieldsUiComponentsMap().ensureBuilderMap(); + return map.containsKey(key) + ? fieldsUiComponentsMapConverter.build(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField + getFieldsUiComponentsMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder> + map = internalGetMutableFieldsUiComponentsMap().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return fieldsUiComponentsMapConverter.build(map.get(key)); + } + + public Builder clearFieldsUiComponentsMap() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableFieldsUiComponentsMap().clear(); + return this; + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + public Builder removeFieldsUiComponentsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFieldsUiComponentsMap().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + getMutableFieldsUiComponentsMap() { + bitField0_ |= 0x00000008; + return internalGetMutableFieldsUiComponentsMap().ensureMessageMap(); + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + public Builder putFieldsUiComponentsMap( + java.lang.String key, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFieldsUiComponentsMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + public Builder putAllFieldsUiComponentsMap( + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableFieldsUiComponentsMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+       * The key is the UI component. Mock. Currently supported `title`,
+       * `thumbnail`, `url`, `custom1`, `custom2`, `custom3`.
+       *
+       * The value is the name of the field along with its device visibility.
+       *
+       * The 3 custom fields are optional and can be added or removed. `title`,
+       * `thumbnail`, `url` are required UI components that cannot be removed.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder + putFieldsUiComponentsMapBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder> + builderMap = internalGetMutableFieldsUiComponentsMap().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentFieldOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) { + entry = + ((com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreUiConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataStoreComponentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * The display name of the data store.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+     * The display name of the data store.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * The name of the entity, retrieved from
+     * `Collection.data_connector.entities.entityName`.
+     * 
+ * + * string entity_name = 4; + * + * @return The entityName. + */ + java.lang.String getEntityName(); + + /** + * + * + *
+     * The name of the entity, retrieved from
+     * `Collection.data_connector.entities.entityName`.
+     * 
+ * + * string entity_name = 4; + * + * @return The bytes for entityName. + */ + com.google.protobuf.ByteString getEntityNameBytes(); + + /** + * + * + *
+     * Output only. The type of the data store config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataStoreConfigType. + */ + int getDataStoreConfigTypeValue(); + + /** + * + * + *
+     * Output only. The type of the data store config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataStoreConfigType. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + getDataStoreConfigType(); + } + + /** + * + * + *
+   * Read-only data store component that contains data stores fields that may be
+   * used for filtering, it's the child of `CollectionComponent`.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent} + */ + public static final class DataStoreComponent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) + DataStoreComponentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataStoreComponent"); + } + + // Use DataStoreComponent.newBuilder() to construct. + private DataStoreComponent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataStoreComponent() { + name_ = ""; + id_ = ""; + displayName_ = ""; + entityName_ = ""; + dataStoreConfigType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder.class); + } + + /** + * + * + *
+     * The type of the data store config.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType} + */ + public enum DataStoreConfigType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * DATA_STORE_CONFIG_TYPE_UNSPECIFIED = 0; + */ + DATA_STORE_CONFIG_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The data store is connected to AlloyDB
+       * 
+ * + * ALLOW_DB_CONFIG = 1; + */ + ALLOW_DB_CONFIG(1), + /** + * + * + *
+       * The data store is a connected to a third party data source.
+       * 
+ * + * THIRD_PARTY_OAUTH_CONFIG = 2; + */ + THIRD_PARTY_OAUTH_CONFIG(2), + /** + * + * + *
+       * The data store is a connected to NotebookLM Enterprise.
+       * 
+ * + * NOTEBOOKLM_CONFIG = 3; + */ + NOTEBOOKLM_CONFIG(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DataStoreConfigType"); + } + + /** + * + * + *
+       * Default value. This value is unused.
+       * 
+ * + * DATA_STORE_CONFIG_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_STORE_CONFIG_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The data store is connected to AlloyDB
+       * 
+ * + * ALLOW_DB_CONFIG = 1; + */ + public static final int ALLOW_DB_CONFIG_VALUE = 1; + + /** + * + * + *
+       * The data store is a connected to a third party data source.
+       * 
+ * + * THIRD_PARTY_OAUTH_CONFIG = 2; + */ + public static final int THIRD_PARTY_OAUTH_CONFIG_VALUE = 2; + + /** + * + * + *
+       * The data store is a connected to NotebookLM Enterprise.
+       * 
+ * + * NOTEBOOKLM_CONFIG = 3; + */ + public static final int NOTEBOOKLM_CONFIG_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 DataStoreConfigType 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 DataStoreConfigType forNumber(int value) { + switch (value) { + case 0: + return DATA_STORE_CONFIG_TYPE_UNSPECIFIED; + case 1: + return ALLOW_DB_CONFIG; + case 2: + return THIRD_PARTY_OAUTH_CONFIG; + case 3: + return NOTEBOOKLM_CONFIG; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataStoreConfigType findValueByNumber(int number) { + return DataStoreConfigType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DataStoreConfigType[] VALUES = values(); + + public static DataStoreConfigType 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 DataStoreConfigType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the data store. It should be data store resource name
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. the identifier of the data store, used for widget service.
+     * For now it refers to data_store_id, in the future we will migrate the
+     * field to encrypted data store name UUID.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The display name of the data store.
+     * 
+ * + * string display_name = 3; + * + * @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; + } + } + + /** + * + * + *
+     * The display name of the data store.
+     * 
+ * + * string display_name = 3; + * + * @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 ENTITY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityName_ = ""; + + /** + * + * + *
+     * The name of the entity, retrieved from
+     * `Collection.data_connector.entities.entityName`.
+     * 
+ * + * string entity_name = 4; + * + * @return The entityName. + */ + @java.lang.Override + public java.lang.String getEntityName() { + java.lang.Object ref = entityName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityName_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the entity, retrieved from
+     * `Collection.data_connector.entities.entityName`.
+     * 
+ * + * string entity_name = 4; + * + * @return The bytes for entityName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityNameBytes() { + java.lang.Object ref = entityName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STORE_CONFIG_TYPE_FIELD_NUMBER = 8; + private int dataStoreConfigType_ = 0; + + /** + * + * + *
+     * Output only. The type of the data store config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataStoreConfigType. + */ + @java.lang.Override + public int getDataStoreConfigTypeValue() { + return dataStoreConfigType_; + } + + /** + * + * + *
+     * Output only. The type of the data store config.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataStoreConfigType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + getDataStoreConfigType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .DataStoreConfigType.forNumber(dataStoreConfigType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entityName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, entityName_); + } + if (dataStoreConfigType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + .DATA_STORE_CONFIG_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, dataStoreConfigType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entityName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, entityName_); + } + if (dataStoreConfigType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + .DATA_STORE_CONFIG_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, dataStoreConfigType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getEntityName().equals(other.getEntityName())) return false; + if (dataStoreConfigType_ != other.dataStoreConfigType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ENTITY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEntityName().hashCode(); + hash = (37 * hash) + DATA_STORE_CONFIG_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dataStoreConfigType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Read-only data store component that contains data stores fields that may be
+     * used for filtering, it's the child of `CollectionComponent`.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + id_ = ""; + displayName_ = ""; + entityName_ = ""; + dataStoreConfigType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.entityName_ = entityName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataStoreConfigType_ = dataStoreConfigType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEntityName().isEmpty()) { + entityName_ = other.entityName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.dataStoreConfigType_ != 0) { + setDataStoreConfigTypeValue(other.getDataStoreConfigTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + entityName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 64: + { + dataStoreConfigType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the data store. It should be data store resource name
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. the identifier of the data store, used for widget service.
+       * For now it refers to data_store_id, in the future we will migrate the
+       * field to encrypted data store name UUID.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+       * The display name of the data store.
+       * 
+ * + * string display_name = 3; + * + * @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; + } + } + + /** + * + * + *
+       * The display name of the data store.
+       * 
+ * + * string display_name = 3; + * + * @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; + } + } + + /** + * + * + *
+       * The display name of the data store.
+       * 
+ * + * string display_name = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the data store.
+       * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the data store.
+       * 
+ * + * string display_name = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object entityName_ = ""; + + /** + * + * + *
+       * The name of the entity, retrieved from
+       * `Collection.data_connector.entities.entityName`.
+       * 
+ * + * string entity_name = 4; + * + * @return The entityName. + */ + public java.lang.String getEntityName() { + java.lang.Object ref = entityName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the entity, retrieved from
+       * `Collection.data_connector.entities.entityName`.
+       * 
+ * + * string entity_name = 4; + * + * @return The bytes for entityName. + */ + public com.google.protobuf.ByteString getEntityNameBytes() { + java.lang.Object ref = entityName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the entity, retrieved from
+       * `Collection.data_connector.entities.entityName`.
+       * 
+ * + * string entity_name = 4; + * + * @param value The entityName to set. + * @return This builder for chaining. + */ + public Builder setEntityName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the entity, retrieved from
+       * `Collection.data_connector.entities.entityName`.
+       * 
+ * + * string entity_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearEntityName() { + entityName_ = getDefaultInstance().getEntityName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the entity, retrieved from
+       * `Collection.data_connector.entities.entityName`.
+       * 
+ * + * string entity_name = 4; + * + * @param value The bytes for entityName to set. + * @return This builder for chaining. + */ + public Builder setEntityNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int dataStoreConfigType_ = 0; + + /** + * + * + *
+       * Output only. The type of the data store config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataStoreConfigType. + */ + @java.lang.Override + public int getDataStoreConfigTypeValue() { + return dataStoreConfigType_; + } + + /** + * + * + *
+       * Output only. The type of the data store config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dataStoreConfigType to set. + * @return This builder for chaining. + */ + public Builder setDataStoreConfigTypeValue(int value) { + dataStoreConfigType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the data store config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataStoreConfigType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + getDataStoreConfigType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .DataStoreConfigType.forNumber(dataStoreConfigType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .DataStoreConfigType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The type of the data store config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataStoreConfigType to set. + * @return This builder for chaining. + */ + public Builder setDataStoreConfigType( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + dataStoreConfigType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the data store config.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataStoreConfigType() { + bitField0_ = (bitField0_ & ~0x00000010); + dataStoreConfigType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreComponent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConnectorAuthStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The authorization state of the data connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authState. + */ + int getAuthStateValue(); + + /** + * + * + *
+     * Output only. The authorization state of the data connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authState. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState getAuthState(); + + /** + * + * + *
+     * Output only. The authorization uri for the data connector.
+     *
+     * For synthetic placeholder `CollectionComponent` entries (returned by
+     * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+     * Business engines), this field is left empty. The widget should call
+     * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+     * click to obtain a freshly-built authorization URL.
+     * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The authorizationUri. + */ + java.lang.String getAuthorizationUri(); + + /** + * + * + *
+     * Output only. The authorization uri for the data connector.
+     *
+     * For synthetic placeholder `CollectionComponent` entries (returned by
+     * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+     * Business engines), this field is left empty. The widget should call
+     * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+     * click to obtain a freshly-built authorization URL.
+     * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for authorizationUri. + */ + com.google.protobuf.ByteString getAuthorizationUriBytes(); + + /** + * + * + *
+     * Output only. The authorization state update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+     * Output only. The authorization state update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+     * Output only. The authorization state update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + } + + /** + * + * + *
+   * Read-only connector in CollectionComponent auth state.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState} + */ + public static final class ConnectorAuthState extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) + ConnectorAuthStateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ConnectorAuthState"); + } + + // Use ConnectorAuthState.newBuilder() to construct. + private ConnectorAuthState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConnectorAuthState() { + authState_ = 0; + authorizationUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder.class); + } + + /** + * + * + *
+     * The authorization state of the data connector.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState} + */ + public enum AuthState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. Also returned for synthetic placeholder
+       * `CollectionComponent` entries surfaced by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` (SaaS /
+       * Business only) — those entries represent connectors the caller may
+       * attach but has not yet attached.
+       * 
+ * + * AUTH_STATE_UNSPECIFIED = 0; + */ + AUTH_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * The user has authorized the data connector.
+       * 
+ * + * AUTHORIZED = 1; + */ + AUTHORIZED(1), + /** + * + * + *
+       * The user authorization for the data connector has expired.
+       * 
+ * + * EXPIRED = 2; + */ + EXPIRED(2), + /** + * + * + *
+       * The user can still make search requests but actions need to be enabled.
+       * 
+ * + * ACTIONS_DISABLED = 3; + */ + ACTIONS_DISABLED(3), + /** + * + * + *
+       * The data connector does not require any authorization. Also used for
+       * placeholder entries whose underlying connector does not require user
+       * OAuth.
+       * 
+ * + * NO_AUTH = 4; + */ + NO_AUTH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AuthState"); + } + + /** + * + * + *
+       * Default value. Also returned for synthetic placeholder
+       * `CollectionComponent` entries surfaced by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` (SaaS /
+       * Business only) — those entries represent connectors the caller may
+       * attach but has not yet attached.
+       * 
+ * + * AUTH_STATE_UNSPECIFIED = 0; + */ + public static final int AUTH_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The user has authorized the data connector.
+       * 
+ * + * AUTHORIZED = 1; + */ + public static final int AUTHORIZED_VALUE = 1; + + /** + * + * + *
+       * The user authorization for the data connector has expired.
+       * 
+ * + * EXPIRED = 2; + */ + public static final int EXPIRED_VALUE = 2; + + /** + * + * + *
+       * The user can still make search requests but actions need to be enabled.
+       * 
+ * + * ACTIONS_DISABLED = 3; + */ + public static final int ACTIONS_DISABLED_VALUE = 3; + + /** + * + * + *
+       * The data connector does not require any authorization. Also used for
+       * placeholder entries whose underlying connector does not require user
+       * OAuth.
+       * 
+ * + * NO_AUTH = 4; + */ + public static final int NO_AUTH_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthState 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 AuthState forNumber(int value) { + switch (value) { + case 0: + return AUTH_STATE_UNSPECIFIED; + case 1: + return AUTHORIZED; + case 2: + return EXPIRED; + case 3: + return ACTIONS_DISABLED; + case 4: + return NO_AUTH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthState findValueByNumber(int number) { + return AuthState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AuthState[] VALUES = values(); + + public static AuthState 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 AuthState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState) + } + + private int bitField0_; + public static final int AUTH_STATE_FIELD_NUMBER = 1; + private int authState_ = 0; + + /** + * + * + *
+     * Output only. The authorization state of the data connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authState. + */ + @java.lang.Override + public int getAuthStateValue() { + return authState_; + } + + /** + * + * + *
+     * Output only. The authorization state of the data connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState + getAuthState() { + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState result = + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState.forNumber( + authState_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState + .UNRECOGNIZED + : result; + } + + public static final int AUTHORIZATION_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object authorizationUri_ = ""; + + /** + * + * + *
+     * Output only. The authorization uri for the data connector.
+     *
+     * For synthetic placeholder `CollectionComponent` entries (returned by
+     * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+     * Business engines), this field is left empty. The widget should call
+     * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+     * click to obtain a freshly-built authorization URL.
+     * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The authorizationUri. + */ + @java.lang.Override + public java.lang.String getAuthorizationUri() { + java.lang.Object ref = authorizationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationUri_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The authorization uri for the data connector.
+     *
+     * For synthetic placeholder `CollectionComponent` entries (returned by
+     * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+     * Business engines), this field is left empty. The widget should call
+     * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+     * click to obtain a freshly-built authorization URL.
+     * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for authorizationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorizationUriBytes() { + java.lang.Object ref = authorizationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+     * Output only. The authorization state update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The authorization state update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+     * Output only. The authorization state update timestamp.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (authState_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState + .AUTH_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, authState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, authorizationUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (authState_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState + .AUTH_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, authState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, authorizationUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) obj; + + if (authState_ != other.authState_) return false; + if (!getAuthorizationUri().equals(other.getAuthorizationUri())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) 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_STATE_FIELD_NUMBER; + hash = (53 * hash) + authState_; + hash = (37 * hash) + AUTHORIZATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationUri().hashCode(); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Read-only connector in CollectionComponent auth state.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authState_ = 0; + authorizationUri_ = ""; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authState_ = authState_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authorizationUri_ = authorizationUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = + updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance()) return this; + if (other.authState_ != 0) { + setAuthStateValue(other.getAuthStateValue()); + } + if (!other.getAuthorizationUri().isEmpty()) { + authorizationUri_ = other.authorizationUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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: + { + authState_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + authorizationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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 int authState_ = 0; + + /** + * + * + *
+       * Output only. The authorization state of the data connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authState. + */ + @java.lang.Override + public int getAuthStateValue() { + return authState_; + } + + /** + * + * + *
+       * Output only. The authorization state of the data connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for authState to set. + * @return This builder for chaining. + */ + public Builder setAuthStateValue(int value) { + authState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization state of the data connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState + getAuthState() { + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState result = + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState.forNumber( + authState_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The authorization state of the data connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The authState to set. + * @return This builder for chaining. + */ + public Builder setAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + authState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization state of the data connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.AuthState auth_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthState() { + bitField0_ = (bitField0_ & ~0x00000001); + authState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object authorizationUri_ = ""; + + /** + * + * + *
+       * Output only. The authorization uri for the data connector.
+       *
+       * For synthetic placeholder `CollectionComponent` entries (returned by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+       * Business engines), this field is left empty. The widget should call
+       * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+       * click to obtain a freshly-built authorization URL.
+       * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The authorizationUri. + */ + public java.lang.String getAuthorizationUri() { + java.lang.Object ref = authorizationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The authorization uri for the data connector.
+       *
+       * For synthetic placeholder `CollectionComponent` entries (returned by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+       * Business engines), this field is left empty. The widget should call
+       * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+       * click to obtain a freshly-built authorization URL.
+       * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for authorizationUri. + */ + public com.google.protobuf.ByteString getAuthorizationUriBytes() { + java.lang.Object ref = authorizationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The authorization uri for the data connector.
+       *
+       * For synthetic placeholder `CollectionComponent` entries (returned by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+       * Business engines), this field is left empty. The widget should call
+       * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+       * click to obtain a freshly-built authorization URL.
+       * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The authorizationUri to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authorizationUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization uri for the data connector.
+       *
+       * For synthetic placeholder `CollectionComponent` entries (returned by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+       * Business engines), this field is left empty. The widget should call
+       * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+       * click to obtain a freshly-built authorization URL.
+       * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAuthorizationUri() { + authorizationUri_ = getDefaultInstance().getAuthorizationUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization uri for the data connector.
+       *
+       * For synthetic placeholder `CollectionComponent` entries (returned by
+       * `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS /
+       * Business engines), this field is left empty. The widget should call
+       * `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect"
+       * click to obtain a freshly-built authorization URL.
+       * 
+ * + * string authorization_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for authorizationUri to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+       * Output only. The authorization state update timestamp.
+       * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorAuthState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BatchAuthStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. It is the batch authorization group placeholder full
+     * resource name. This is not a real data connector resource. E.g.
+     * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+     * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The placeholder. + */ + java.lang.String getPlaceholder(); + + /** + * + * + *
+     * Output only. It is the batch authorization group placeholder full
+     * resource name. This is not a real data connector resource. E.g.
+     * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+     * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for placeholder. + */ + com.google.protobuf.ByteString getPlaceholderBytes(); + + /** + * + * + *
+     * Output only. The batch authorization group the placeholder belongs to.
+     * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The batchAuthorizationGroup. + */ + java.lang.String getBatchAuthorizationGroup(); + + /** + * + * + *
+     * Output only. The batch authorization group the placeholder belongs to.
+     * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for batchAuthorizationGroup. + */ + com.google.protobuf.ByteString getBatchAuthorizationGroupBytes(); + + /** + * + * + *
+     * Output only. The current authorization state for this connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorAuthState field is set. + */ + boolean hasConnectorAuthState(); + + /** + * + * + *
+     * Output only. The current authorization state for this connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorAuthState. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState getConnectorAuthState(); + + /** + * + * + *
+     * Output only. The current authorization state for this connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder + getConnectorAuthStateOrBuilder(); + } + + /** + * + * + *
+   * Describes the batch authorization status for a batch_authorization_group.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus} + */ + public static final class BatchAuthStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) + BatchAuthStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "BatchAuthStatus"); + } + + // Use BatchAuthStatus.newBuilder() to construct. + private BatchAuthStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchAuthStatus() { + placeholder_ = ""; + batchAuthorizationGroup_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder.class); + } + + private int bitField0_; + public static final int PLACEHOLDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object placeholder_ = ""; + + /** + * + * + *
+     * Output only. It is the batch authorization group placeholder full
+     * resource name. This is not a real data connector resource. E.g.
+     * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+     * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The placeholder. + */ + @java.lang.Override + public java.lang.String getPlaceholder() { + java.lang.Object ref = placeholder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeholder_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. It is the batch authorization group placeholder full
+     * resource name. This is not a real data connector resource. E.g.
+     * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+     * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for placeholder. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlaceholderBytes() { + java.lang.Object ref = placeholder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeholder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BATCH_AUTHORIZATION_GROUP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object batchAuthorizationGroup_ = ""; + + /** + * + * + *
+     * Output only. The batch authorization group the placeholder belongs to.
+     * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The batchAuthorizationGroup. + */ + @java.lang.Override + public java.lang.String getBatchAuthorizationGroup() { + java.lang.Object ref = batchAuthorizationGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batchAuthorizationGroup_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The batch authorization group the placeholder belongs to.
+     * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for batchAuthorizationGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBatchAuthorizationGroupBytes() { + java.lang.Object ref = batchAuthorizationGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batchAuthorizationGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTOR_AUTH_STATE_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connectorAuthState_; + + /** + * + * + *
+     * Output only. The current authorization state for this connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorAuthState field is set. + */ + @java.lang.Override + public boolean hasConnectorAuthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The current authorization state for this connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorAuthState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getConnectorAuthState() { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.getDefaultInstance() + : connectorAuthState_; + } + + /** + * + * + *
+     * Output only. The current authorization state for this connector.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder + getConnectorAuthStateOrBuilder() { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.getDefaultInstance() + : connectorAuthState_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(placeholder_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, placeholder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(batchAuthorizationGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, batchAuthorizationGroup_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getConnectorAuthState()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(placeholder_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, placeholder_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(batchAuthorizationGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, batchAuthorizationGroup_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectorAuthState()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) obj; + + if (!getPlaceholder().equals(other.getPlaceholder())) return false; + if (!getBatchAuthorizationGroup().equals(other.getBatchAuthorizationGroup())) return false; + if (hasConnectorAuthState() != other.hasConnectorAuthState()) return false; + if (hasConnectorAuthState()) { + if (!getConnectorAuthState().equals(other.getConnectorAuthState())) 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) + PLACEHOLDER_FIELD_NUMBER; + hash = (53 * hash) + getPlaceholder().hashCode(); + hash = (37 * hash) + BATCH_AUTHORIZATION_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getBatchAuthorizationGroup().hashCode(); + if (hasConnectorAuthState()) { + hash = (37 * hash) + CONNECTOR_AUTH_STATE_FIELD_NUMBER; + hash = (53 * hash) + getConnectorAuthState().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes the batch authorization status for a batch_authorization_group.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConnectorAuthStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + placeholder_ = ""; + batchAuthorizationGroup_ = ""; + connectorAuthState_ = null; + if (connectorAuthStateBuilder_ != null) { + connectorAuthStateBuilder_.dispose(); + connectorAuthStateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.placeholder_ = placeholder_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.batchAuthorizationGroup_ = batchAuthorizationGroup_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.connectorAuthState_ = + connectorAuthStateBuilder_ == null + ? connectorAuthState_ + : connectorAuthStateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + .getDefaultInstance()) return this; + if (!other.getPlaceholder().isEmpty()) { + placeholder_ = other.placeholder_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBatchAuthorizationGroup().isEmpty()) { + batchAuthorizationGroup_ = other.batchAuthorizationGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasConnectorAuthState()) { + mergeConnectorAuthState(other.getConnectorAuthState()); + } + 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: + { + placeholder_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + batchAuthorizationGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetConnectorAuthStateFieldBuilder().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 placeholder_ = ""; + + /** + * + * + *
+       * Output only. It is the batch authorization group placeholder full
+       * resource name. This is not a real data connector resource. E.g.
+       * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+       * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The placeholder. + */ + public java.lang.String getPlaceholder() { + java.lang.Object ref = placeholder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeholder_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. It is the batch authorization group placeholder full
+       * resource name. This is not a real data connector resource. E.g.
+       * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+       * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for placeholder. + */ + public com.google.protobuf.ByteString getPlaceholderBytes() { + java.lang.Object ref = placeholder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeholder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. It is the batch authorization group placeholder full
+       * resource name. This is not a real data connector resource. E.g.
+       * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+       * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The placeholder to set. + * @return This builder for chaining. + */ + public Builder setPlaceholder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + placeholder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. It is the batch authorization group placeholder full
+       * resource name. This is not a real data connector resource. E.g.
+       * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+       * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPlaceholder() { + placeholder_ = getDefaultInstance().getPlaceholder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. It is the batch authorization group placeholder full
+       * resource name. This is not a real data connector resource. E.g.
+       * projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector.
+       * 
+ * + * string placeholder = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for placeholder to set. + * @return This builder for chaining. + */ + public Builder setPlaceholderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + placeholder_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object batchAuthorizationGroup_ = ""; + + /** + * + * + *
+       * Output only. The batch authorization group the placeholder belongs to.
+       * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The batchAuthorizationGroup. + */ + public java.lang.String getBatchAuthorizationGroup() { + java.lang.Object ref = batchAuthorizationGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batchAuthorizationGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The batch authorization group the placeholder belongs to.
+       * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for batchAuthorizationGroup. + */ + public com.google.protobuf.ByteString getBatchAuthorizationGroupBytes() { + java.lang.Object ref = batchAuthorizationGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batchAuthorizationGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The batch authorization group the placeholder belongs to.
+       * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The batchAuthorizationGroup to set. + * @return This builder for chaining. + */ + public Builder setBatchAuthorizationGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + batchAuthorizationGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The batch authorization group the placeholder belongs to.
+       * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBatchAuthorizationGroup() { + batchAuthorizationGroup_ = getDefaultInstance().getBatchAuthorizationGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The batch authorization group the placeholder belongs to.
+       * 
+ * + * string batch_authorization_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for batchAuthorizationGroup to set. + * @return This builder for chaining. + */ + public Builder setBatchAuthorizationGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + batchAuthorizationGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + connectorAuthState_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder> + connectorAuthStateBuilder_; + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorAuthState field is set. + */ + public boolean hasConnectorAuthState() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorAuthState. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getConnectorAuthState() { + if (connectorAuthStateBuilder_ == null) { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance() + : connectorAuthState_; + } else { + return connectorAuthStateBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectorAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState value) { + if (connectorAuthStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectorAuthState_ = value; + } else { + connectorAuthStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectorAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder + builderForValue) { + if (connectorAuthStateBuilder_ == null) { + connectorAuthState_ = builderForValue.build(); + } else { + connectorAuthStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConnectorAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState value) { + if (connectorAuthStateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && connectorAuthState_ != null + && connectorAuthState_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance()) { + getConnectorAuthStateBuilder().mergeFrom(value); + } else { + connectorAuthState_ = value; + } + } else { + connectorAuthStateBuilder_.mergeFrom(value); + } + if (connectorAuthState_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectorAuthState() { + bitField0_ = (bitField0_ & ~0x00000004); + connectorAuthState_ = null; + if (connectorAuthStateBuilder_ != null) { + connectorAuthStateBuilder_.dispose(); + connectorAuthStateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder + getConnectorAuthStateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetConnectorAuthStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder + getConnectorAuthStateOrBuilder() { + if (connectorAuthStateBuilder_ != null) { + return connectorAuthStateBuilder_.getMessageOrBuilder(); + } else { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance() + : connectorAuthState_; + } + } + + /** + * + * + *
+       * Output only. The current authorization state for this connector.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder> + internalGetConnectorAuthStateFieldBuilder() { + if (connectorAuthStateBuilder_ == null) { + connectorAuthStateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder>( + getConnectorAuthState(), getParentForChildren(), isClean()); + connectorAuthState_ = null; + } + return connectorAuthStateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchAuthStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CollectionComponentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the collection. It should be collection resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     *
+     * For synthetic placeholder entries (see message-level comment) this
+     * carries a synthetic placeholder collection id that does not correspond
+     * to a real collection. Callers must not attempt to resolve / GET this
+     * resource until the user authorizes the connector.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * The name of the collection. It should be collection resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     *
+     * For synthetic placeholder entries (see message-level comment) this
+     * carries a synthetic placeholder collection id that does not correspond
+     * to a real collection. Callers must not attempt to resolve / GET this
+     * resource until the user authorizes the connector.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Output only. the identifier of the collection, used for widget service.
+     * For now it refers to collection_id, in the future we will migrate the
+     * field to encrypted collection name UUID.
+     *
+     * For synthetic placeholder entries (see message-level comment) this is a
+     * synthetic placeholder id, not a real collection_id.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+     * Output only. the identifier of the collection, used for widget service.
+     * For now it refers to collection_id, in the future we will migrate the
+     * field to encrypted collection name UUID.
+     *
+     * For synthetic placeholder entries (see message-level comment) this is a
+     * synthetic placeholder id, not a real collection_id.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * The display name of the collection.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+     * The display name of the collection.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + java.util.List + getDataStoreComponentsList(); + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent getDataStoreComponents( + int index); + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + int getDataStoreComponentsCount(); + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder> + getDataStoreComponentsOrBuilderList(); + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder + getDataStoreComponentsOrBuilder(int index); + + /** + * + * + *
+     * The name of the data source, retrieved from
+     * `Collection.data_connector.data_source`.
+     * 
+ * + * string data_source = 5; + * + * @return The dataSource. + */ + java.lang.String getDataSource(); + + /** + * + * + *
+     * The name of the data source, retrieved from
+     * `Collection.data_connector.data_source`.
+     * 
+ * + * string data_source = 5; + * + * @return The bytes for dataSource. + */ + com.google.protobuf.ByteString getDataSourceBytes(); + + /** + * + * + *
+     * Output only. The version of the connector definition backing this
+     * collection, mirroring `DataConnector.data_source_version`.
+     * 
+ * + * double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataSourceVersion. + */ + double getDataSourceVersion(); + + /** + * + * + *
+     * Output only. The display name of the data source.
+     * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSourceDisplayName. + */ + java.lang.String getDataSourceDisplayName(); + + /** + * + * + *
+     * Output only. The display name of the data source.
+     * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataSourceDisplayName. + */ + com.google.protobuf.ByteString getDataSourceDisplayNameBytes(); + + /** + * + * + *
+     * Output only. The end-user-facing display name of the data source, sourced
+     * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+     * back to `data_source_display_name`.
+     * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSourceEndUserDisplayName. + */ + java.lang.String getDataSourceEndUserDisplayName(); + + /** + * + * + *
+     * Output only. The end-user-facing display name of the data source, sourced
+     * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+     * back to `data_source_display_name`.
+     * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataSourceEndUserDisplayName. + */ + com.google.protobuf.ByteString getDataSourceEndUserDisplayNameBytes(); + + /** + * + * + *
+     * Output only. The icon link of the connector source.
+     * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The connectorIconLink. + */ + java.lang.String getConnectorIconLink(); + + /** + * + * + *
+     * Output only. The icon link of the connector source.
+     * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for connectorIconLink. + */ + com.google.protobuf.ByteString getConnectorIconLinkBytes(); + + /** + * + * + *
+     * Output only. The auth uri of the connector source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorAuthState field is set. + */ + boolean hasConnectorAuthState(); + + /** + * + * + *
+     * Output only. The auth uri of the connector source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorAuthState. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState getConnectorAuthState(); + + /** + * + * + *
+     * Output only. The auth uri of the connector source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder + getConnectorAuthStateOrBuilder(); + + /** + * + * + *
+     * Output only. User-facing connector metadata (`title`, `description`,
+     * `short_description`, `author`, `note`), retrieved from the registry
+     * `ConnectorSource.metadata` (joined by data source). Shown on the
+     * connector detail page.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+     * Output only. User-facing connector metadata (`title`, `description`,
+     * `short_description`, `author`, `note`), retrieved from the registry
+     * `ConnectorSource.metadata` (joined by data source). Shown on the
+     * connector detail page.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata getMetadata(); + + /** + * + * + *
+     * Output only. User-facing connector metadata (`title`, `description`,
+     * `short_description`, `author`, `note`), retrieved from the registry
+     * `ConnectorSource.metadata` (joined by data source). Shown on the
+     * connector detail page.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder + getMetadataOrBuilder(); + + /** + * + * + *
+     * Output only. Whether this is a first-party (Google-owned) connector, as
+     * opposed to a third-party connector.
+     * 
+ * + * bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isFirstParty. + */ + boolean getIsFirstParty(); + + /** + * + * + *
+     * Output only. The version-independent label of the connector backing this
+     * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+     * store id it survives a connector version upgrade, so an upgraded
+     * connector keeps the same tag.
+     *
+     * Not a unique key. As `DataConnector.tag` documents, several connectors
+     * may share a tag under the same (project, location, collection,
+     * data_source), and tag-based lookup resolves to the one with the greatest
+     * create_time. Clients must not treat this as a connector identifier.
+     *
+     * Empty when the connector was created before the tag-write launch, and
+     * for synthetic placeholder entries, which have no underlying
+     * `DataConnector`. Populated only when
+     * `ConnectorsFeature.enable_connector_tag` is on.
+     * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tag. + */ + java.lang.String getTag(); + + /** + * + * + *
+     * Output only. The version-independent label of the connector backing this
+     * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+     * store id it survives a connector version upgrade, so an upgraded
+     * connector keeps the same tag.
+     *
+     * Not a unique key. As `DataConnector.tag` documents, several connectors
+     * may share a tag under the same (project, location, collection,
+     * data_source), and tag-based lookup resolves to the one with the greatest
+     * create_time. Clients must not treat this as a connector identifier.
+     *
+     * Empty when the connector was created before the tag-write launch, and
+     * for synthetic placeholder entries, which have no underlying
+     * `DataConnector`. Populated only when
+     * `ConnectorsFeature.enable_connector_tag` is on.
+     * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tag. + */ + com.google.protobuf.ByteString getTagBytes(); + } + + /** + * + * + *
+   * Read-only collection component that contains data store collections fields
+   * that may be used for filtering.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, instances of this message are also
+   * used to represent synthetic placeholder entries for connectors the caller
+   * may attach but has not yet attached. Placeholder entries have
+   * `connector_auth_state.auth_state == AUTH_STATE_UNSPECIFIED` (or
+   * `NO_AUTH`), an empty `connector_auth_state.authorization_uri` (the
+   * widget calls `WidgetBuildAuthorizationUrl` on the user's "Connect"
+   * click), and synthetic placeholder values in `name` / `id` (see field
+   * comments). Fields that only make sense for materialized connectors
+   * (`data_store_components`, `tenant`, `action_connector`) are left unset
+   * for placeholder entries.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent} + */ + public static final class CollectionComponent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) + CollectionComponentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CollectionComponent"); + } + + // Use CollectionComponent.newBuilder() to construct. + private CollectionComponent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CollectionComponent() { + name_ = ""; + id_ = ""; + displayName_ = ""; + dataStoreComponents_ = java.util.Collections.emptyList(); + dataSource_ = ""; + dataSourceDisplayName_ = ""; + dataSourceEndUserDisplayName_ = ""; + connectorIconLink_ = ""; + tag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * The name of the collection. It should be collection resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     *
+     * For synthetic placeholder entries (see message-level comment) this
+     * carries a synthetic placeholder collection id that does not correspond
+     * to a real collection. Callers must not attempt to resolve / GET this
+     * resource until the user authorizes the connector.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the collection. It should be collection resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`.
+     * For APIs under
+     * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+     * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+     * the project number and location part is erased in this field.
+     *
+     * For synthetic placeholder entries (see message-level comment) this
+     * carries a synthetic placeholder collection id that does not correspond
+     * to a real collection. Callers must not attempt to resolve / GET this
+     * resource until the user authorizes the connector.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. the identifier of the collection, used for widget service.
+     * For now it refers to collection_id, in the future we will migrate the
+     * field to encrypted collection name UUID.
+     *
+     * For synthetic placeholder entries (see message-level comment) this is a
+     * synthetic placeholder id, not a real collection_id.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. the identifier of the collection, used for widget service.
+     * For now it refers to collection_id, in the future we will migrate the
+     * field to encrypted collection name UUID.
+     *
+     * For synthetic placeholder entries (see message-level comment) this is a
+     * synthetic placeholder id, not a real collection_id.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The display name of the collection.
+     * 
+ * + * string display_name = 3; + * + * @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; + } + } + + /** + * + * + *
+     * The display name of the collection.
+     * 
+ * + * string display_name = 3; + * + * @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 DATA_STORE_COMPONENTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + dataStoreComponents_; + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + @java.lang.Override + public java.util.List + getDataStoreComponentsList() { + return dataStoreComponents_; + } + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder> + getDataStoreComponentsOrBuilderList() { + return dataStoreComponents_; + } + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + @java.lang.Override + public int getDataStoreComponentsCount() { + return dataStoreComponents_.size(); + } + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + getDataStoreComponents(int index) { + return dataStoreComponents_.get(index); + } + + /** + * + * + *
+     * For the data store collection, list of the children data stores.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder + getDataStoreComponentsOrBuilder(int index) { + return dataStoreComponents_.get(index); + } + + public static final int DATA_SOURCE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSource_ = ""; + + /** + * + * + *
+     * The name of the data source, retrieved from
+     * `Collection.data_connector.data_source`.
+     * 
+ * + * string data_source = 5; + * + * @return The dataSource. + */ + @java.lang.Override + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the data source, retrieved from
+     * `Collection.data_connector.data_source`.
+     * 
+ * + * string data_source = 5; + * + * @return The bytes for dataSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SOURCE_VERSION_FIELD_NUMBER = 16; + private double dataSourceVersion_ = 0D; + + /** + * + * + *
+     * Output only. The version of the connector definition backing this
+     * collection, mirroring `DataConnector.data_source_version`.
+     * 
+ * + * double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataSourceVersion. + */ + @java.lang.Override + public double getDataSourceVersion() { + return dataSourceVersion_; + } + + public static final int DATA_SOURCE_DISPLAY_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSourceDisplayName_ = ""; + + /** + * + * + *
+     * Output only. The display name of the data source.
+     * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSourceDisplayName. + */ + @java.lang.Override + public java.lang.String getDataSourceDisplayName() { + java.lang.Object ref = dataSourceDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSourceDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The display name of the data source.
+     * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataSourceDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceDisplayNameBytes() { + java.lang.Object ref = dataSourceDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_SOURCE_END_USER_DISPLAY_NAME_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSourceEndUserDisplayName_ = ""; + + /** + * + * + *
+     * Output only. The end-user-facing display name of the data source, sourced
+     * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+     * back to `data_source_display_name`.
+     * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSourceEndUserDisplayName. + */ + @java.lang.Override + public java.lang.String getDataSourceEndUserDisplayName() { + java.lang.Object ref = dataSourceEndUserDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSourceEndUserDisplayName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The end-user-facing display name of the data source, sourced
+     * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+     * back to `data_source_display_name`.
+     * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataSourceEndUserDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceEndUserDisplayNameBytes() { + java.lang.Object ref = dataSourceEndUserDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSourceEndUserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTOR_ICON_LINK_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object connectorIconLink_ = ""; + + /** + * + * + *
+     * Output only. The icon link of the connector source.
+     * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The connectorIconLink. + */ + @java.lang.Override + public java.lang.String getConnectorIconLink() { + java.lang.Object ref = connectorIconLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectorIconLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The icon link of the connector source.
+     * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for connectorIconLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConnectorIconLinkBytes() { + java.lang.Object ref = connectorIconLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectorIconLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTOR_AUTH_STATE_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connectorAuthState_; + + /** + * + * + *
+     * Output only. The auth uri of the connector source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorAuthState field is set. + */ + @java.lang.Override + public boolean hasConnectorAuthState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The auth uri of the connector source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorAuthState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getConnectorAuthState() { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.getDefaultInstance() + : connectorAuthState_; + } + + /** + * + * + *
+     * Output only. The auth uri of the connector source.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder + getConnectorAuthStateOrBuilder() { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.getDefaultInstance() + : connectorAuthState_; + } + + public static final int METADATA_FIELD_NUMBER = 13; + private com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata_; + + /** + * + * + *
+     * Output only. User-facing connector metadata (`title`, `description`,
+     * `short_description`, `author`, `note`), retrieved from the registry
+     * `ConnectorSource.metadata` (joined by data source). Shown on the
+     * connector detail page.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. User-facing connector metadata (`title`, `description`,
+     * `short_description`, `author`, `note`), retrieved from the registry
+     * `ConnectorSource.metadata` (joined by data source). Shown on the
+     * connector detail page.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
+     * Output only. User-facing connector metadata (`title`, `description`,
+     * `short_description`, `author`, `note`), retrieved from the registry
+     * `ConnectorSource.metadata` (joined by data source). Shown on the
+     * connector detail page.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder + getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.getDefaultInstance() + : metadata_; + } + + public static final int IS_FIRST_PARTY_FIELD_NUMBER = 14; + private boolean isFirstParty_ = false; + + /** + * + * + *
+     * Output only. Whether this is a first-party (Google-owned) connector, as
+     * opposed to a third-party connector.
+     * 
+ * + * bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isFirstParty. + */ + @java.lang.Override + public boolean getIsFirstParty() { + return isFirstParty_; + } + + public static final int TAG_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; + + /** + * + * + *
+     * Output only. The version-independent label of the connector backing this
+     * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+     * store id it survives a connector version upgrade, so an upgraded
+     * connector keeps the same tag.
+     *
+     * Not a unique key. As `DataConnector.tag` documents, several connectors
+     * may share a tag under the same (project, location, collection,
+     * data_source), and tag-based lookup resolves to the one with the greatest
+     * create_time. Clients must not treat this as a connector identifier.
+     *
+     * Empty when the connector was created before the tag-write launch, and
+     * for synthetic placeholder entries, which have no underlying
+     * `DataConnector`. Populated only when
+     * `ConnectorsFeature.enable_connector_tag` is on.
+     * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tag. + */ + @java.lang.Override + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The version-independent label of the connector backing this
+     * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+     * store id it survives a connector version upgrade, so an upgraded
+     * connector keeps the same tag.
+     *
+     * Not a unique key. As `DataConnector.tag` documents, several connectors
+     * may share a tag under the same (project, location, collection,
+     * data_source), and tag-based lookup resolves to the one with the greatest
+     * create_time. Clients must not treat this as a connector identifier.
+     *
+     * Empty when the connector was created before the tag-write launch, and
+     * for synthetic placeholder entries, which have no underlying
+     * `DataConnector`. Populated only when
+     * `ConnectorsFeature.enable_connector_tag` is on.
+     * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + for (int i = 0; i < dataStoreComponents_.size(); i++) { + output.writeMessage(4, dataStoreComponents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, dataSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connectorIconLink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, connectorIconLink_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getConnectorAuthState()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSourceDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, dataSourceDisplayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getMetadata()); + } + if (isFirstParty_ != false) { + output.writeBool(14, isFirstParty_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSourceEndUserDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, dataSourceEndUserDisplayName_); + } + if (java.lang.Double.doubleToRawLongBits(dataSourceVersion_) != 0) { + output.writeDouble(16, dataSourceVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, tag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + for (int i = 0; i < dataStoreComponents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, dataStoreComponents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, dataSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(connectorIconLink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, connectorIconLink_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConnectorAuthState()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSourceDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, dataSourceDisplayName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getMetadata()); + } + if (isFirstParty_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, isFirstParty_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataSourceEndUserDisplayName_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 15, dataSourceEndUserDisplayName_); + } + if (java.lang.Double.doubleToRawLongBits(dataSourceVersion_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, dataSourceVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, tag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDataStoreComponentsList().equals(other.getDataStoreComponentsList())) return false; + if (!getDataSource().equals(other.getDataSource())) return false; + if (java.lang.Double.doubleToLongBits(getDataSourceVersion()) + != java.lang.Double.doubleToLongBits(other.getDataSourceVersion())) return false; + if (!getDataSourceDisplayName().equals(other.getDataSourceDisplayName())) return false; + if (!getDataSourceEndUserDisplayName().equals(other.getDataSourceEndUserDisplayName())) + return false; + if (!getConnectorIconLink().equals(other.getConnectorIconLink())) return false; + if (hasConnectorAuthState() != other.hasConnectorAuthState()) return false; + if (hasConnectorAuthState()) { + if (!getConnectorAuthState().equals(other.getConnectorAuthState())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (getIsFirstParty() != other.getIsFirstParty()) return false; + if (!getTag().equals(other.getTag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getDataStoreComponentsCount() > 0) { + hash = (37 * hash) + DATA_STORE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreComponentsList().hashCode(); + } + hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataSource().hashCode(); + hash = (37 * hash) + DATA_SOURCE_VERSION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDataSourceVersion())); + hash = (37 * hash) + DATA_SOURCE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDataSourceDisplayName().hashCode(); + hash = (37 * hash) + DATA_SOURCE_END_USER_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDataSourceEndUserDisplayName().hashCode(); + hash = (37 * hash) + CONNECTOR_ICON_LINK_FIELD_NUMBER; + hash = (53 * hash) + getConnectorIconLink().hashCode(); + if (hasConnectorAuthState()) { + hash = (37 * hash) + CONNECTOR_AUTH_STATE_FIELD_NUMBER; + hash = (53 * hash) + getConnectorAuthState().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + IS_FIRST_PARTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFirstParty()); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Read-only collection component that contains data store collections fields
+     * that may be used for filtering.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, instances of this message are also
+     * used to represent synthetic placeholder entries for connectors the caller
+     * may attach but has not yet attached. Placeholder entries have
+     * `connector_auth_state.auth_state == AUTH_STATE_UNSPECIFIED` (or
+     * `NO_AUTH`), an empty `connector_auth_state.authorization_uri` (the
+     * widget calls `WidgetBuildAuthorizationUrl` on the user's "Connect"
+     * click), and synthetic placeholder values in `name` / `id` (see field
+     * comments). Fields that only make sense for materialized connectors
+     * (`data_store_components`, `tenant`, `action_connector`) are left unset
+     * for placeholder entries.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataStoreComponentsFieldBuilder(); + internalGetConnectorAuthStateFieldBuilder(); + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + id_ = ""; + displayName_ = ""; + if (dataStoreComponentsBuilder_ == null) { + dataStoreComponents_ = java.util.Collections.emptyList(); + } else { + dataStoreComponents_ = null; + dataStoreComponentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + dataSource_ = ""; + dataSourceVersion_ = 0D; + dataSourceDisplayName_ = ""; + dataSourceEndUserDisplayName_ = ""; + connectorIconLink_ = ""; + connectorAuthState_ = null; + if (connectorAuthStateBuilder_ != null) { + connectorAuthStateBuilder_.dispose(); + connectorAuthStateBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + isFirstParty_ = false; + tag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent result) { + if (dataStoreComponentsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + dataStoreComponents_ = java.util.Collections.unmodifiableList(dataStoreComponents_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.dataStoreComponents_ = dataStoreComponents_; + } else { + result.dataStoreComponents_ = dataStoreComponentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataSource_ = dataSource_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataSourceVersion_ = dataSourceVersion_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dataSourceDisplayName_ = dataSourceDisplayName_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dataSourceEndUserDisplayName_ = dataSourceEndUserDisplayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.connectorIconLink_ = connectorIconLink_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.connectorAuthState_ = + connectorAuthStateBuilder_ == null + ? connectorAuthState_ + : connectorAuthStateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.isFirstParty_ = isFirstParty_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.tag_ = tag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (dataStoreComponentsBuilder_ == null) { + if (!other.dataStoreComponents_.isEmpty()) { + if (dataStoreComponents_.isEmpty()) { + dataStoreComponents_ = other.dataStoreComponents_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.addAll(other.dataStoreComponents_); + } + onChanged(); + } + } else { + if (!other.dataStoreComponents_.isEmpty()) { + if (dataStoreComponentsBuilder_.isEmpty()) { + dataStoreComponentsBuilder_.dispose(); + dataStoreComponentsBuilder_ = null; + dataStoreComponents_ = other.dataStoreComponents_; + bitField0_ = (bitField0_ & ~0x00000008); + dataStoreComponentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataStoreComponentsFieldBuilder() + : null; + } else { + dataStoreComponentsBuilder_.addAllMessages(other.dataStoreComponents_); + } + } + } + if (!other.getDataSource().isEmpty()) { + dataSource_ = other.dataSource_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getDataSourceVersion()) != 0) { + setDataSourceVersion(other.getDataSourceVersion()); + } + if (!other.getDataSourceDisplayName().isEmpty()) { + dataSourceDisplayName_ = other.dataSourceDisplayName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getDataSourceEndUserDisplayName().isEmpty()) { + dataSourceEndUserDisplayName_ = other.dataSourceEndUserDisplayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getConnectorIconLink().isEmpty()) { + connectorIconLink_ = other.connectorIconLink_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasConnectorAuthState()) { + mergeConnectorAuthState(other.getConnectorAuthState()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getIsFirstParty() != false) { + setIsFirstParty(other.getIsFirstParty()); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + bitField0_ |= 0x00001000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .parser(), + extensionRegistry); + if (dataStoreComponentsBuilder_ == null) { + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.add(m); + } else { + dataStoreComponentsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + dataSource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + connectorIconLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 66: + { + input.readMessage( + internalGetConnectorAuthStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 74: + { + dataSourceDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 106: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 106 + case 112: + { + isFirstParty_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 122: + { + dataSourceEndUserDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 122 + case 129: + { + dataSourceVersion_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 129 + case 154: + { + tag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 154 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * The name of the collection. It should be collection resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       *
+       * For synthetic placeholder entries (see message-level comment) this
+       * carries a synthetic placeholder collection id that does not correspond
+       * to a real collection. Callers must not attempt to resolve / GET this
+       * resource until the user authorizes the connector.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the collection. It should be collection resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       *
+       * For synthetic placeholder entries (see message-level comment) this
+       * carries a synthetic placeholder collection id that does not correspond
+       * to a real collection. Callers must not attempt to resolve / GET this
+       * resource until the user authorizes the connector.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the collection. It should be collection resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       *
+       * For synthetic placeholder entries (see message-level comment) this
+       * carries a synthetic placeholder collection id that does not correspond
+       * to a real collection. Callers must not attempt to resolve / GET this
+       * resource until the user authorizes the connector.
+       * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the collection. It should be collection resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       *
+       * For synthetic placeholder entries (see message-level comment) this
+       * carries a synthetic placeholder collection id that does not correspond
+       * to a real collection. Callers must not attempt to resolve / GET this
+       * resource until the user authorizes the connector.
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the collection. It should be collection resource name.
+       * Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`.
+       * For APIs under
+       * [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as
+       * [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig],
+       * the project number and location part is erased in this field.
+       *
+       * For synthetic placeholder entries (see message-level comment) this
+       * carries a synthetic placeholder collection id that does not correspond
+       * to a real collection. Callers must not attempt to resolve / GET this
+       * resource until the user authorizes the connector.
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+       * Output only. the identifier of the collection, used for widget service.
+       * For now it refers to collection_id, in the future we will migrate the
+       * field to encrypted collection name UUID.
+       *
+       * For synthetic placeholder entries (see message-level comment) this is a
+       * synthetic placeholder id, not a real collection_id.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. the identifier of the collection, used for widget service.
+       * For now it refers to collection_id, in the future we will migrate the
+       * field to encrypted collection name UUID.
+       *
+       * For synthetic placeholder entries (see message-level comment) this is a
+       * synthetic placeholder id, not a real collection_id.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. the identifier of the collection, used for widget service.
+       * For now it refers to collection_id, in the future we will migrate the
+       * field to encrypted collection name UUID.
+       *
+       * For synthetic placeholder entries (see message-level comment) this is a
+       * synthetic placeholder id, not a real collection_id.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. the identifier of the collection, used for widget service.
+       * For now it refers to collection_id, in the future we will migrate the
+       * field to encrypted collection name UUID.
+       *
+       * For synthetic placeholder entries (see message-level comment) this is a
+       * synthetic placeholder id, not a real collection_id.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. the identifier of the collection, used for widget service.
+       * For now it refers to collection_id, in the future we will migrate the
+       * field to encrypted collection name UUID.
+       *
+       * For synthetic placeholder entries (see message-level comment) this is a
+       * synthetic placeholder id, not a real collection_id.
+       * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+       * The display name of the collection.
+       * 
+ * + * string display_name = 3; + * + * @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; + } + } + + /** + * + * + *
+       * The display name of the collection.
+       * 
+ * + * string display_name = 3; + * + * @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; + } + } + + /** + * + * + *
+       * The display name of the collection.
+       * 
+ * + * string display_name = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the collection.
+       * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * The display name of the collection.
+       * 
+ * + * string display_name = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List + dataStoreComponents_ = java.util.Collections.emptyList(); + + private void ensureDataStoreComponentsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + dataStoreComponents_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent>( + dataStoreComponents_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder> + dataStoreComponentsBuilder_; + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public java.util.List + getDataStoreComponentsList() { + if (dataStoreComponentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreComponents_); + } else { + return dataStoreComponentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public int getDataStoreComponentsCount() { + if (dataStoreComponentsBuilder_ == null) { + return dataStoreComponents_.size(); + } else { + return dataStoreComponentsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + getDataStoreComponents(int index) { + if (dataStoreComponentsBuilder_ == null) { + return dataStoreComponents_.get(index); + } else { + return dataStoreComponentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder setDataStoreComponents( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent value) { + if (dataStoreComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.set(index, value); + onChanged(); + } else { + dataStoreComponentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder setDataStoreComponents( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder + builderForValue) { + if (dataStoreComponentsBuilder_ == null) { + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStoreComponentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder addDataStoreComponents( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent value) { + if (dataStoreComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.add(value); + onChanged(); + } else { + dataStoreComponentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder addDataStoreComponents( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent value) { + if (dataStoreComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.add(index, value); + onChanged(); + } else { + dataStoreComponentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder addDataStoreComponents( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder + builderForValue) { + if (dataStoreComponentsBuilder_ == null) { + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreComponentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder addDataStoreComponents( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder + builderForValue) { + if (dataStoreComponentsBuilder_ == null) { + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreComponentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder addAllDataStoreComponents( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent> + values) { + if (dataStoreComponentsBuilder_ == null) { + ensureDataStoreComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreComponents_); + onChanged(); + } else { + dataStoreComponentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder clearDataStoreComponents() { + if (dataStoreComponentsBuilder_ == null) { + dataStoreComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dataStoreComponentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public Builder removeDataStoreComponents(int index) { + if (dataStoreComponentsBuilder_ == null) { + ensureDataStoreComponentsIsMutable(); + dataStoreComponents_.remove(index); + onChanged(); + } else { + dataStoreComponentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder + getDataStoreComponentsBuilder(int index) { + return internalGetDataStoreComponentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder + getDataStoreComponentsOrBuilder(int index) { + if (dataStoreComponentsBuilder_ == null) { + return dataStoreComponents_.get(index); + } else { + return dataStoreComponentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder> + getDataStoreComponentsOrBuilderList() { + if (dataStoreComponentsBuilder_ != null) { + return dataStoreComponentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreComponents_); + } + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder + addDataStoreComponentsBuilder() { + return internalGetDataStoreComponentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .getDefaultInstance()); + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder + addDataStoreComponentsBuilder(int index) { + return internalGetDataStoreComponentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent + .getDefaultInstance()); + } + + /** + * + * + *
+       * For the data store collection, list of the children data stores.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder> + getDataStoreComponentsBuilderList() { + return internalGetDataStoreComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder> + internalGetDataStoreComponentsFieldBuilder() { + if (dataStoreComponentsBuilder_ == null) { + dataStoreComponentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponentOrBuilder>( + dataStoreComponents_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + dataStoreComponents_ = null; + } + return dataStoreComponentsBuilder_; + } + + private java.lang.Object dataSource_ = ""; + + /** + * + * + *
+       * The name of the data source, retrieved from
+       * `Collection.data_connector.data_source`.
+       * 
+ * + * string data_source = 5; + * + * @return The dataSource. + */ + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the data source, retrieved from
+       * `Collection.data_connector.data_source`.
+       * 
+ * + * string data_source = 5; + * + * @return The bytes for dataSource. + */ + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the data source, retrieved from
+       * `Collection.data_connector.data_source`.
+       * 
+ * + * string data_source = 5; + * + * @param value The dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the data source, retrieved from
+       * `Collection.data_connector.data_source`.
+       * 
+ * + * string data_source = 5; + * + * @return This builder for chaining. + */ + public Builder clearDataSource() { + dataSource_ = getDefaultInstance().getDataSource(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the data source, retrieved from
+       * `Collection.data_connector.data_source`.
+       * 
+ * + * string data_source = 5; + * + * @param value The bytes for dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSource_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private double dataSourceVersion_; + + /** + * + * + *
+       * Output only. The version of the connector definition backing this
+       * collection, mirroring `DataConnector.data_source_version`.
+       * 
+ * + * double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataSourceVersion. + */ + @java.lang.Override + public double getDataSourceVersion() { + return dataSourceVersion_; + } + + /** + * + * + *
+       * Output only. The version of the connector definition backing this
+       * collection, mirroring `DataConnector.data_source_version`.
+       * 
+ * + * double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataSourceVersion to set. + * @return This builder for chaining. + */ + public Builder setDataSourceVersion(double value) { + + dataSourceVersion_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The version of the connector definition backing this
+       * collection, mirroring `DataConnector.data_source_version`.
+       * 
+ * + * double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataSourceVersion() { + bitField0_ = (bitField0_ & ~0x00000020); + dataSourceVersion_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object dataSourceDisplayName_ = ""; + + /** + * + * + *
+       * Output only. The display name of the data source.
+       * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSourceDisplayName. + */ + public java.lang.String getDataSourceDisplayName() { + java.lang.Object ref = dataSourceDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSourceDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The display name of the data source.
+       * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataSourceDisplayName. + */ + public com.google.protobuf.ByteString getDataSourceDisplayNameBytes() { + java.lang.Object ref = dataSourceDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSourceDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The display name of the data source.
+       * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataSourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setDataSourceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceDisplayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The display name of the data source.
+       * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataSourceDisplayName() { + dataSourceDisplayName_ = getDefaultInstance().getDataSourceDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The display name of the data source.
+       * 
+ * + * string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for dataSourceDisplayName to set. + * @return This builder for chaining. + */ + public Builder setDataSourceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceDisplayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object dataSourceEndUserDisplayName_ = ""; + + /** + * + * + *
+       * Output only. The end-user-facing display name of the data source, sourced
+       * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+       * back to `data_source_display_name`.
+       * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataSourceEndUserDisplayName. + */ + public java.lang.String getDataSourceEndUserDisplayName() { + java.lang.Object ref = dataSourceEndUserDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSourceEndUserDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The end-user-facing display name of the data source, sourced
+       * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+       * back to `data_source_display_name`.
+       * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for dataSourceEndUserDisplayName. + */ + public com.google.protobuf.ByteString getDataSourceEndUserDisplayNameBytes() { + java.lang.Object ref = dataSourceEndUserDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSourceEndUserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The end-user-facing display name of the data source, sourced
+       * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+       * back to `data_source_display_name`.
+       * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataSourceEndUserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setDataSourceEndUserDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceEndUserDisplayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The end-user-facing display name of the data source, sourced
+       * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+       * back to `data_source_display_name`.
+       * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataSourceEndUserDisplayName() { + dataSourceEndUserDisplayName_ = getDefaultInstance().getDataSourceEndUserDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The end-user-facing display name of the data source, sourced
+       * from `ConnectorSource.end_user_display_name`. When unset, clients fall
+       * back to `data_source_display_name`.
+       * 
+ * + * + * string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for dataSourceEndUserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setDataSourceEndUserDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSourceEndUserDisplayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object connectorIconLink_ = ""; + + /** + * + * + *
+       * Output only. The icon link of the connector source.
+       * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The connectorIconLink. + */ + public java.lang.String getConnectorIconLink() { + java.lang.Object ref = connectorIconLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectorIconLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The icon link of the connector source.
+       * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for connectorIconLink. + */ + public com.google.protobuf.ByteString getConnectorIconLinkBytes() { + java.lang.Object ref = connectorIconLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + connectorIconLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The icon link of the connector source.
+       * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The connectorIconLink to set. + * @return This builder for chaining. + */ + public Builder setConnectorIconLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + connectorIconLink_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The icon link of the connector source.
+       * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearConnectorIconLink() { + connectorIconLink_ = getDefaultInstance().getConnectorIconLink(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The icon link of the connector source.
+       * 
+ * + * string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for connectorIconLink to set. + * @return This builder for chaining. + */ + public Builder setConnectorIconLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectorIconLink_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + connectorAuthState_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder> + connectorAuthStateBuilder_; + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the connectorAuthState field is set. + */ + public boolean hasConnectorAuthState() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectorAuthState. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + getConnectorAuthState() { + if (connectorAuthStateBuilder_ == null) { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance() + : connectorAuthState_; + } else { + return connectorAuthStateBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectorAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState value) { + if (connectorAuthStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectorAuthState_ = value; + } else { + connectorAuthStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConnectorAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder + builderForValue) { + if (connectorAuthStateBuilder_ == null) { + connectorAuthState_ = builderForValue.build(); + } else { + connectorAuthStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConnectorAuthState( + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState value) { + if (connectorAuthStateBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && connectorAuthState_ != null + && connectorAuthState_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance()) { + getConnectorAuthStateBuilder().mergeFrom(value); + } else { + connectorAuthState_ = value; + } + } else { + connectorAuthStateBuilder_.mergeFrom(value); + } + if (connectorAuthState_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConnectorAuthState() { + bitField0_ = (bitField0_ & ~0x00000200); + connectorAuthState_ = null; + if (connectorAuthStateBuilder_ != null) { + connectorAuthStateBuilder_.dispose(); + connectorAuthStateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder + getConnectorAuthStateBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetConnectorAuthStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder + getConnectorAuthStateOrBuilder() { + if (connectorAuthStateBuilder_ != null) { + return connectorAuthStateBuilder_.getMessageOrBuilder(); + } else { + return connectorAuthState_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState + .getDefaultInstance() + : connectorAuthState_; + } + } + + /** + * + * + *
+       * Output only. The auth uri of the connector source.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder> + internalGetConnectorAuthStateFieldBuilder() { + if (connectorAuthStateBuilder_ == null) { + connectorAuthStateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateOrBuilder>( + getConnectorAuthState(), getParentForChildren(), isClean()); + connectorAuthState_ = null; + } + return connectorAuthStateBuilder_; + } + + private com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder + builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMetadata( + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder + getMetadataBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder + getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata + .getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
+       * Output only. User-facing connector metadata (`title`, `description`,
+       * `short_description`, `author`, `note`), retrieved from the registry
+       * `ConnectorSource.metadata` (joined by data source). Shown on the
+       * connector detail page.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata.Builder, + com.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private boolean isFirstParty_; + + /** + * + * + *
+       * Output only. Whether this is a first-party (Google-owned) connector, as
+       * opposed to a third-party connector.
+       * 
+ * + * bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isFirstParty. + */ + @java.lang.Override + public boolean getIsFirstParty() { + return isFirstParty_; + } + + /** + * + * + *
+       * Output only. Whether this is a first-party (Google-owned) connector, as
+       * opposed to a third-party connector.
+       * 
+ * + * bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isFirstParty to set. + * @return This builder for chaining. + */ + public Builder setIsFirstParty(boolean value) { + + isFirstParty_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether this is a first-party (Google-owned) connector, as
+       * opposed to a third-party connector.
+       * 
+ * + * bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsFirstParty() { + bitField0_ = (bitField0_ & ~0x00000800); + isFirstParty_ = false; + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + + /** + * + * + *
+       * Output only. The version-independent label of the connector backing this
+       * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+       * store id it survives a connector version upgrade, so an upgraded
+       * connector keeps the same tag.
+       *
+       * Not a unique key. As `DataConnector.tag` documents, several connectors
+       * may share a tag under the same (project, location, collection,
+       * data_source), and tag-based lookup resolves to the one with the greatest
+       * create_time. Clients must not treat this as a connector identifier.
+       *
+       * Empty when the connector was created before the tag-write launch, and
+       * for synthetic placeholder entries, which have no underlying
+       * `DataConnector`. Populated only when
+       * `ConnectorsFeature.enable_connector_tag` is on.
+       * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tag. + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The version-independent label of the connector backing this
+       * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+       * store id it survives a connector version upgrade, so an upgraded
+       * connector keeps the same tag.
+       *
+       * Not a unique key. As `DataConnector.tag` documents, several connectors
+       * may share a tag under the same (project, location, collection,
+       * data_source), and tag-based lookup resolves to the one with the greatest
+       * create_time. Clients must not treat this as a connector identifier.
+       *
+       * Empty when the connector was created before the tag-write launch, and
+       * for synthetic placeholder entries, which have no underlying
+       * `DataConnector`. Populated only when
+       * `ConnectorsFeature.enable_connector_tag` is on.
+       * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tag. + */ + public com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The version-independent label of the connector backing this
+       * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+       * store id it survives a connector version upgrade, so an upgraded
+       * connector keeps the same tag.
+       *
+       * Not a unique key. As `DataConnector.tag` documents, several connectors
+       * may share a tag under the same (project, location, collection,
+       * data_source), and tag-based lookup resolves to the one with the greatest
+       * create_time. Clients must not treat this as a connector identifier.
+       *
+       * Empty when the connector was created before the tag-write launch, and
+       * for synthetic placeholder entries, which have no underlying
+       * `DataConnector`. Populated only when
+       * `ConnectorsFeature.enable_connector_tag` is on.
+       * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tag to set. + * @return This builder for chaining. + */ + public Builder setTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tag_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The version-independent label of the connector backing this
+       * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+       * store id it survives a connector version upgrade, so an upgraded
+       * connector keeps the same tag.
+       *
+       * Not a unique key. As `DataConnector.tag` documents, several connectors
+       * may share a tag under the same (project, location, collection,
+       * data_source), and tag-based lookup resolves to the one with the greatest
+       * create_time. Clients must not treat this as a connector identifier.
+       *
+       * Empty when the connector was created before the tag-write launch, and
+       * for synthetic placeholder entries, which have no underlying
+       * `DataConnector`. Populated only when
+       * `ConnectorsFeature.enable_connector_tag` is on.
+       * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTag() { + tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The version-independent label of the connector backing this
+       * collection, mirroring `DataConnector.tag`. Unlike the version-pinned data
+       * store id it survives a connector version upgrade, so an upgraded
+       * connector keeps the same tag.
+       *
+       * Not a unique key. As `DataConnector.tag` documents, several connectors
+       * may share a tag under the same (project, location, collection,
+       * data_source), and tag-based lookup resolves to the one with the greatest
+       * create_time. Clients must not treat this as a connector identifier.
+       *
+       * Empty when the connector was created before the tag-write launch, and
+       * for synthetic placeholder entries, which have no underlying
+       * `DataConnector`. Populated only when
+       * `ConnectorsFeature.enable_connector_tag` is on.
+       * 
+ * + * string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tag to set. + * @return This builder for chaining. + */ + public Builder setTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectionComponent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UiSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Describes widget (or web app) interaction type
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return The enum numeric value on the wire for interactionType. + */ + int getInteractionTypeValue(); + + /** + * + * + *
+     * Describes widget (or web app) interaction type
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return The interactionType. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType + getInteractionType(); + + /** + * + * + *
+     * Describes generative answer configuration.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + * + * @return Whether the generativeAnswerConfig field is set. + */ + boolean hasGenerativeAnswerConfig(); + + /** + * + * + *
+     * Describes generative answer configuration.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + * + * @return The generativeAnswerConfig. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + getGenerativeAnswerConfig(); + + /** + * + * + *
+     * Describes generative answer configuration.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfigOrBuilder + getGenerativeAnswerConfigOrBuilder(); + + /** + * + * + *
+     * Controls whether result extract is display and how (snippet or
+     * extractive answer). Default to no result if unspecified.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return The enum numeric value on the wire for resultDescriptionType. + */ + int getResultDescriptionTypeValue(); + + /** + * + * + *
+     * Controls whether result extract is display and how (snippet or
+     * extractive answer). Default to no result if unspecified.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return The resultDescriptionType. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType getResultDescriptionType(); + + /** + * + * + *
+     * Whether or not to enable autocomplete.
+     * 
+ * + * bool enable_autocomplete = 4; + * + * @return The enableAutocomplete. + */ + boolean getEnableAutocomplete(); + + /** + * + * + *
+     * Whether to enable safe search.
+     * 
+ * + * bool enable_safe_search = 5; + * + * @return The enableSafeSearch. + */ + boolean getEnableSafeSearch(); + + /** + * + * + *
+     * Turn on or off collecting the search result quality feedback from end
+     * users.
+     * 
+ * + * bool enable_quality_feedback = 6; + * + * @return The enableQualityFeedback. + */ + boolean getEnableQualityFeedback(); + + /** + * + * + *
+     * Whether to enable search-as-you-type behavior for the search widget.
+     * 
+ * + * bool enable_search_as_you_type = 7; + * + * @return The enableSearchAsYouType. + */ + boolean getEnableSearchAsYouType(); + + /** + * + * + *
+     * The default ordering for search results if specified.
+     *
+     * Used to set SearchRequest#order_by on applicable requests.
+     * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+     * 
+ * + * string default_search_request_order_by = 8; + * + * @return The defaultSearchRequestOrderBy. + */ + java.lang.String getDefaultSearchRequestOrderBy(); + + /** + * + * + *
+     * The default ordering for search results if specified.
+     *
+     * Used to set SearchRequest#order_by on applicable requests.
+     * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+     * 
+ * + * string default_search_request_order_by = 8; + * + * @return The bytes for defaultSearchRequestOrderBy. + */ + com.google.protobuf.ByteString getDefaultSearchRequestOrderByBytes(); + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + java.util.List + getDataStoreUiConfigsList(); + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig getDataStoreUiConfigs( + int index); + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + int getDataStoreUiConfigsCount(); + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder> + getDataStoreUiConfigsOrBuilderList(); + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder + getDataStoreUiConfigsOrBuilder(int index); + + /** + * + * + *
+     * If set to true, the widget will not collect user events.
+     * 
+ * + * bool disable_user_events_collection = 10; + * + * @return The disableUserEventsCollection. + */ + boolean getDisableUserEventsCollection(); + + /** + * + * + *
+     * If set to true, the widget will enable visual content summary on
+     * applicable search requests. Only used by healthcare search.
+     * 
+ * + * bool enable_visual_content_summary = 11; + * + * @return The enableVisualContentSummary. + */ + boolean getEnableVisualContentSummary(); + + /** + * + * + *
+     * Optional. If set to true, the widget will enable people search.
+     * 
+ * + * bool enable_people_search = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePeopleSearch. + */ + boolean getEnablePeopleSearch(); + + /** + * + * + *
+     * Optional. If set to true, the widget will enable the create agent button.
+     * 
+ * + * bool enable_create_agent_button = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCreateAgentButton. + */ + boolean getEnableCreateAgentButton(); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFeaturesCount(); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsFeatures(java.lang.String key); + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getFeatures(); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getFeaturesMap(); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState defaultValue); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState getFeaturesOrThrow( + java.lang.String key); + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFeaturesValue(); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getFeaturesValueMap(); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFeaturesValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFeaturesValueOrThrow(java.lang.String key); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getModelConfigsCount(); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsModelConfigs(java.lang.String key); + + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getModelConfigs(); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getModelConfigsMap(); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState defaultValue); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState getModelConfigsOrThrow( + java.lang.String key); + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getModelConfigsValue(); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getModelConfigsValueMap(); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getModelConfigsValueOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. SearchAddonSpec is used to disable add-ons for search.
+     * This field is only supported for search requests.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchAddonSpec field is set. + */ + boolean hasSearchAddonSpec(); + + /** + * + * + *
+     * Optional. SearchAddonSpec is used to disable add-ons for search.
+     * This field is only supported for search requests.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchAddonSpec. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + getSearchAddonSpec(); + + /** + * + * + *
+     * Optional. SearchAddonSpec is used to disable add-ons for search.
+     * This field is only supported for search requests.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecOrBuilder + getSearchAddonSpecOrBuilder(); + + /** + * + * + *
+     * Output only. Whether the OneDrive file picker is available to end-users.
+     * Computed by the backend from admin connector enablement (Business
+     * edition) or attached OneDrive connectors (Enterprise edition), combined
+     * with the existing `disable-onedrive-upload` admin feature.
+     *
+     * Declared `optional` so an explicitly-computed `false` is serialized with
+     * field presence. A plain proto3 `bool` drops a default `false` on the
+     * wire, which prevented clients from distinguishing "picker disabled"
+     * (`false`) from "field not populated" (unset).
+     * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the onedrivePickerEnabled field is set. + */ + boolean hasOnedrivePickerEnabled(); + + /** + * + * + *
+     * Output only. Whether the OneDrive file picker is available to end-users.
+     * Computed by the backend from admin connector enablement (Business
+     * edition) or attached OneDrive connectors (Enterprise edition), combined
+     * with the existing `disable-onedrive-upload` admin feature.
+     *
+     * Declared `optional` so an explicitly-computed `false` is serialized with
+     * field presence. A plain proto3 `bool` drops a default `false` on the
+     * wire, which prevented clients from distinguishing "picker disabled"
+     * (`false`) from "field not populated" (unset).
+     * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The onedrivePickerEnabled. + */ + boolean getOnedrivePickerEnabled(); + + /** + * + * + *
+     * Output only. Whether the Google Drive file picker is available to
+     * end-users. Declared `optional` for the same field-presence reason as
+     * `onedrive_picker_enabled` above.
+     * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the googleDrivePickerEnabled field is set. + */ + boolean hasGoogleDrivePickerEnabled(); + + /** + * + * + *
+     * Output only. Whether the Google Drive file picker is available to
+     * end-users. Declared `optional` for the same field-presence reason as
+     * `onedrive_picker_enabled` above.
+     * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleDrivePickerEnabled. + */ + boolean getGoogleDrivePickerEnabled(); + + /** + * + * + *
+     * Output only. The resolved, server-side view of model selector
+     * configuration. Holds both the ordered list of models that should appear
+     * in the model selector dropdown and the model that should be selected by
+     * default.
+     *
+     * Clients should render this directly without applying their own
+     * filtering, ordering, or localization. The legacy `model_configs` map
+     * above is retained for backward compatibility with clients that have not
+     * yet migrated to consuming this field.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the modelConfigInfo field is set. + */ + boolean hasModelConfigInfo(); + + /** + * + * + *
+     * Output only. The resolved, server-side view of model selector
+     * configuration. Holds both the ordered list of models that should appear
+     * in the model selector dropdown and the model that should be selected by
+     * default.
+     *
+     * Clients should render this directly without applying their own
+     * filtering, ordering, or localization. The legacy `model_configs` map
+     * above is retained for backward compatibility with clients that have not
+     * yet migrated to consuming this field.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelConfigInfo. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + getModelConfigInfo(); + + /** + * + * + *
+     * Output only. The resolved, server-side view of model selector
+     * configuration. Holds both the ordered list of models that should appear
+     * in the model selector dropdown and the model that should be selected by
+     * default.
+     *
+     * Clients should render this directly without applying their own
+     * filtering, ordering, or localization. The legacy `model_configs` map
+     * above is retained for backward compatibility with clients that have not
+     * yet migrated to consuming this field.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoOrBuilder + getModelConfigInfoOrBuilder(); + + /** + * + * + *
+     * Optional. Whether to show the admin-configured display name for data
+     * connectors in the widget sources UI (instead of the connector kind).
+     * Opt-in; defaults to false.
+     * 
+ * + * bool source_admin_display_name_enabled = 51 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceAdminDisplayNameEnabled. + */ + boolean getSourceAdminDisplayNameEnabled(); + } + + /** + * + * + *
+   * Describes general widget (or web app) UI settings as seen
+   * in the cloud console UI configuration page.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings} + */ + public static final class UiSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) + UiSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UiSettings"); + } + + // Use UiSettings.newBuilder() to construct. + private UiSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UiSettings() { + interactionType_ = 0; + resultDescriptionType_ = 0; + defaultSearchRequestOrderBy_ = ""; + dataStoreUiConfigs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetFeatures(); + case 45: + return internalGetModelConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder.class); + } + + /** + * + * + *
+     * Describes interaction type.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType} + */ + public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Not specified. Defaults to SEARCH_ONLY.
+       * 
+ * + * INTERACTION_TYPE_UNSPECIFIED = 0; + */ + INTERACTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Search without a generative answer.
+       * 
+ * + * SEARCH_ONLY = 1; + */ + SEARCH_ONLY(1), + /** + * + * + *
+       * Search with the generative answer.
+       * 
+ * + * SEARCH_WITH_ANSWER = 2; + */ + SEARCH_WITH_ANSWER(2), + /** + * + * + *
+       * Search with the generative answer that supports follow up questions.
+       * Also known as multi-turn search.
+       * 
+ * + * SEARCH_WITH_FOLLOW_UPS = 3; + */ + SEARCH_WITH_FOLLOW_UPS(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InteractionType"); + } + + /** + * + * + *
+       * Not specified. Defaults to SEARCH_ONLY.
+       * 
+ * + * INTERACTION_TYPE_UNSPECIFIED = 0; + */ + public static final int INTERACTION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Search without a generative answer.
+       * 
+ * + * SEARCH_ONLY = 1; + */ + public static final int SEARCH_ONLY_VALUE = 1; + + /** + * + * + *
+       * Search with the generative answer.
+       * 
+ * + * SEARCH_WITH_ANSWER = 2; + */ + public static final int SEARCH_WITH_ANSWER_VALUE = 2; + + /** + * + * + *
+       * Search with the generative answer that supports follow up questions.
+       * Also known as multi-turn search.
+       * 
+ * + * SEARCH_WITH_FOLLOW_UPS = 3; + */ + public static final int SEARCH_WITH_FOLLOW_UPS_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 InteractionType 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 InteractionType forNumber(int value) { + switch (value) { + case 0: + return INTERACTION_TYPE_UNSPECIFIED; + case 1: + return SEARCH_ONLY; + case 2: + return SEARCH_WITH_ANSWER; + case 3: + return SEARCH_WITH_FOLLOW_UPS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InteractionType findValueByNumber(int number) { + return InteractionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final InteractionType[] VALUES = values(); + + public static InteractionType 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 InteractionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType) + } + + /** + * + * + *
+     * The state of the feature for the engine.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState} + */ + public enum FeatureState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The feature state is unspecified.
+       * 
+ * + * FEATURE_STATE_UNSPECIFIED = 0; + */ + FEATURE_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * The feature is turned on to be accessible.
+       * 
+ * + * FEATURE_STATE_ON = 1; + */ + FEATURE_STATE_ON(1), + /** + * + * + *
+       * The feature is turned off to be inaccessible.
+       * 
+ * + * FEATURE_STATE_OFF = 2; + */ + FEATURE_STATE_OFF(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FeatureState"); + } + + /** + * + * + *
+       * The feature state is unspecified.
+       * 
+ * + * FEATURE_STATE_UNSPECIFIED = 0; + */ + public static final int FEATURE_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The feature is turned on to be accessible.
+       * 
+ * + * FEATURE_STATE_ON = 1; + */ + public static final int FEATURE_STATE_ON_VALUE = 1; + + /** + * + * + *
+       * The feature is turned off to be inaccessible.
+       * 
+ * + * FEATURE_STATE_OFF = 2; + */ + public static final int FEATURE_STATE_OFF_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 FeatureState 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 FeatureState forNumber(int value) { + switch (value) { + case 0: + return FEATURE_STATE_UNSPECIFIED; + case 1: + return FEATURE_STATE_ON; + case 2: + return FEATURE_STATE_OFF; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeatureState findValueByNumber(int number) { + return FeatureState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final FeatureState[] VALUES = values(); + + public static FeatureState 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 FeatureState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState) + } + + /** + * + * + *
+     * The state of the model for the engine.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState} + */ + public enum ModelState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The model state is unspecified.
+       * 
+ * + * MODEL_STATE_UNSPECIFIED = 0; + */ + MODEL_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * The model is enabled by admin.
+       * 
+ * + * MODEL_ENABLED = 1; + */ + MODEL_ENABLED(1), + /** + * + * + *
+       * The model is disabled by admin.
+       * 
+ * + * MODEL_DISABLED = 2; + */ + MODEL_DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelState"); + } + + /** + * + * + *
+       * The model state is unspecified.
+       * 
+ * + * MODEL_STATE_UNSPECIFIED = 0; + */ + public static final int MODEL_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The model is enabled by admin.
+       * 
+ * + * MODEL_ENABLED = 1; + */ + public static final int MODEL_ENABLED_VALUE = 1; + + /** + * + * + *
+       * The model is disabled by admin.
+       * 
+ * + * MODEL_DISABLED = 2; + */ + public static final int MODEL_DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModelState 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 ModelState forNumber(int value) { + switch (value) { + case 0: + return MODEL_STATE_UNSPECIFIED; + case 1: + return MODEL_ENABLED; + case 2: + return MODEL_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelState findValueByNumber(int number) { + return ModelState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ModelState[] VALUES = values(); + + public static ModelState 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 ModelState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState) + } + + public interface GenerativeAnswerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The number of top results to generate the answer from. Up to 10.
+       * 
+ * + * int32 result_count = 3; + * + * @return The resultCount. + */ + int getResultCount(); + + /** + * + * + *
+       * The model version used to generate the answer.
+       * 
+ * + * string model_version = 4; + * + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + + /** + * + * + *
+       * The model version used to generate the answer.
+       * 
+ * + * string model_version = 4; + * + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString getModelVersionBytes(); + + /** + * + * + *
+       * Text at the beginning of the prompt that instructs the model that
+       * generates the answer.
+       * 
+ * + * string model_prompt_preamble = 5; + * + * @return The modelPromptPreamble. + */ + java.lang.String getModelPromptPreamble(); + + /** + * + * + *
+       * Text at the beginning of the prompt that instructs the model that
+       * generates the answer.
+       * 
+ * + * string model_prompt_preamble = 5; + * + * @return The bytes for modelPromptPreamble. + */ + com.google.protobuf.ByteString getModelPromptPreambleBytes(); + + /** + * + * + *
+       * Max rephrase steps.
+       * The max number is 5 steps.
+       * If not set or set to < 1, it will be set to 1 by default.
+       * 
+ * + * int32 max_rephrase_steps = 6; + * + * @return The maxRephraseSteps. + */ + int getMaxRephraseSteps(); + + /** + * + * + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 7; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 7; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+       * Whether generated answer contains suggested related questions.
+       * 
+ * + * bool disable_related_questions = 8; + * + * @return The disableRelatedQuestions. + */ + boolean getDisableRelatedQuestions(); + + /** + * + * + *
+       * Optional. Specifies whether to filter out queries that are not
+       * answer-seeking. The default value is `false`.
+       *
+       * No answer is returned if the search query is classified as a
+       * non-answer seeking query. If this field is set to `true`, we skip
+       * generating answers for non-answer seeking queries and return
+       * fallback messages instead.
+       * 
+ * + * bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreNonAnswerSeekingQuery. + */ + boolean getIgnoreNonAnswerSeekingQuery(); + + /** + * + * + *
+       * Optional. Specifies whether to filter out queries that are adversarial.
+       * 
+ * + * bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreAdversarialQuery. + */ + boolean getIgnoreAdversarialQuery(); + + /** + * + * + *
+       * Optional. Specifies whether to filter out queries that are not relevant
+       * to the content.
+       * 
+ * + * bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreLowRelevantContent. + */ + boolean getIgnoreLowRelevantContent(); + + /** + * + * + *
+       * Optional. Source of image returned in the answer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for imageSource. + */ + int getImageSourceValue(); + + /** + * + * + *
+       * Optional. Source of image returned in the answer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageSource. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource + getImageSource(); + } + + /** + * + * + *
+     * Describes configuration for generative answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig} + */ + public static final class GenerativeAnswerConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + GenerativeAnswerConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerativeAnswerConfig"); + } + + // Use GenerativeAnswerConfig.newBuilder() to construct. + private GenerativeAnswerConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerativeAnswerConfig() { + modelVersion_ = ""; + modelPromptPreamble_ = ""; + languageCode_ = ""; + imageSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .Builder.class); + } + + /** + * + * + *
+       * Source of image returned in the answer.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource} + */ + public enum ImageSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Unspecified image source (multimodal feature is disabled by default)
+         * 
+ * + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + IMAGE_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+         * Behavior when service determines the pick from all available sources.
+         * 
+ * + * ALL_AVAILABLE_SOURCES = 1; + */ + ALL_AVAILABLE_SOURCES(1), + /** + * + * + *
+         * Include image from corpus in the answer.
+         * 
+ * + * CORPUS_IMAGE_ONLY = 2; + */ + CORPUS_IMAGE_ONLY(2), + /** + * + * + *
+         * Triggers figure generation in the answer.
+         * 
+ * + * FIGURE_GENERATION_ONLY = 3; + */ + FIGURE_GENERATION_ONLY(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ImageSource"); + } + + /** + * + * + *
+         * Unspecified image source (multimodal feature is disabled by default)
+         * 
+ * + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + public static final int IMAGE_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+         * Behavior when service determines the pick from all available sources.
+         * 
+ * + * ALL_AVAILABLE_SOURCES = 1; + */ + public static final int ALL_AVAILABLE_SOURCES_VALUE = 1; + + /** + * + * + *
+         * Include image from corpus in the answer.
+         * 
+ * + * CORPUS_IMAGE_ONLY = 2; + */ + public static final int CORPUS_IMAGE_ONLY_VALUE = 2; + + /** + * + * + *
+         * Triggers figure generation in the answer.
+         * 
+ * + * FIGURE_GENERATION_ONLY = 3; + */ + public static final int FIGURE_GENERATION_ONLY_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 ImageSource 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 ImageSource forNumber(int value) { + switch (value) { + case 0: + return IMAGE_SOURCE_UNSPECIFIED; + case 1: + return ALL_AVAILABLE_SOURCES; + case 2: + return CORPUS_IMAGE_ONLY; + case 3: + return FIGURE_GENERATION_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ImageSource findValueByNumber(int number) { + return ImageSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImageSource[] VALUES = values(); + + public static ImageSource 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 ImageSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource) + } + + public static final int RESULT_COUNT_FIELD_NUMBER = 3; + private int resultCount_ = 0; + + /** + * + * + *
+       * The number of top results to generate the answer from. Up to 10.
+       * 
+ * + * int32 result_count = 3; + * + * @return The resultCount. + */ + @java.lang.Override + public int getResultCount() { + return resultCount_; + } + + public static final int MODEL_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + + /** + * + * + *
+       * The model version used to generate the answer.
+       * 
+ * + * string model_version = 4; + * + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } + } + + /** + * + * + *
+       * The model version used to generate the answer.
+       * 
+ * + * string model_version = 4; + * + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_PROMPT_PREAMBLE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelPromptPreamble_ = ""; + + /** + * + * + *
+       * Text at the beginning of the prompt that instructs the model that
+       * generates the answer.
+       * 
+ * + * string model_prompt_preamble = 5; + * + * @return The modelPromptPreamble. + */ + @java.lang.Override + public java.lang.String getModelPromptPreamble() { + java.lang.Object ref = modelPromptPreamble_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelPromptPreamble_ = s; + return s; + } + } + + /** + * + * + *
+       * Text at the beginning of the prompt that instructs the model that
+       * generates the answer.
+       * 
+ * + * string model_prompt_preamble = 5; + * + * @return The bytes for modelPromptPreamble. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelPromptPreambleBytes() { + java.lang.Object ref = modelPromptPreamble_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelPromptPreamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_REPHRASE_STEPS_FIELD_NUMBER = 6; + private int maxRephraseSteps_ = 0; + + /** + * + * + *
+       * Max rephrase steps.
+       * The max number is 5 steps.
+       * If not set or set to < 1, it will be set to 1 by default.
+       * 
+ * + * int32 max_rephrase_steps = 6; + * + * @return The maxRephraseSteps. + */ + @java.lang.Override + public int getMaxRephraseSteps() { + return maxRephraseSteps_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 7; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
+       * Language code for Summary. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * Note: This is an experimental feature.
+       * 
+ * + * string language_code = 7; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_RELATED_QUESTIONS_FIELD_NUMBER = 8; + private boolean disableRelatedQuestions_ = false; + + /** + * + * + *
+       * Whether generated answer contains suggested related questions.
+       * 
+ * + * bool disable_related_questions = 8; + * + * @return The disableRelatedQuestions. + */ + @java.lang.Override + public boolean getDisableRelatedQuestions() { + return disableRelatedQuestions_; + } + + public static final int IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER = 9; + private boolean ignoreNonAnswerSeekingQuery_ = false; + + /** + * + * + *
+       * Optional. Specifies whether to filter out queries that are not
+       * answer-seeking. The default value is `false`.
+       *
+       * No answer is returned if the search query is classified as a
+       * non-answer seeking query. If this field is set to `true`, we skip
+       * generating answers for non-answer seeking queries and return
+       * fallback messages instead.
+       * 
+ * + * bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreNonAnswerSeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonAnswerSeekingQuery() { + return ignoreNonAnswerSeekingQuery_; + } + + public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 10; + private boolean ignoreAdversarialQuery_ = false; + + /** + * + * + *
+       * Optional. Specifies whether to filter out queries that are adversarial.
+       * 
+ * + * bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } + + public static final int IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER = 11; + private boolean ignoreLowRelevantContent_ = false; + + /** + * + * + *
+       * Optional. Specifies whether to filter out queries that are not relevant
+       * to the content.
+       * 
+ * + * bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreLowRelevantContent. + */ + @java.lang.Override + public boolean getIgnoreLowRelevantContent() { + return ignoreLowRelevantContent_; + } + + public static final int IMAGE_SOURCE_FIELD_NUMBER = 12; + private int imageSource_ = 0; + + /** + * + * + *
+       * Optional. Source of image returned in the answer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for imageSource. + */ + @java.lang.Override + public int getImageSourceValue() { + return imageSource_; + } + + /** + * + * + *
+       * Optional. Source of image returned in the answer.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource + getImageSource() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource.forNumber(imageSource_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource.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 (resultCount_ != 0) { + output.writeInt32(3, resultCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, modelVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelPromptPreamble_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, modelPromptPreamble_); + } + if (maxRephraseSteps_ != 0) { + output.writeInt32(6, maxRephraseSteps_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, languageCode_); + } + if (disableRelatedQuestions_ != false) { + output.writeBool(8, disableRelatedQuestions_); + } + if (ignoreNonAnswerSeekingQuery_ != false) { + output.writeBool(9, ignoreNonAnswerSeekingQuery_); + } + if (ignoreAdversarialQuery_ != false) { + output.writeBool(10, ignoreAdversarialQuery_); + } + if (ignoreLowRelevantContent_ != false) { + output.writeBool(11, ignoreLowRelevantContent_); + } + if (imageSource_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource.IMAGE_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, imageSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, resultCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, modelVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelPromptPreamble_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, modelPromptPreamble_); + } + if (maxRephraseSteps_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxRephraseSteps_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, languageCode_); + } + if (disableRelatedQuestions_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(8, disableRelatedQuestions_); + } + if (ignoreNonAnswerSeekingQuery_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 9, ignoreNonAnswerSeekingQuery_); + } + if (ignoreAdversarialQuery_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, ignoreAdversarialQuery_); + } + if (ignoreLowRelevantContent_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(11, ignoreLowRelevantContent_); + } + if (imageSource_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource.IMAGE_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, imageSource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + obj; + + if (getResultCount() != other.getResultCount()) return false; + if (!getModelVersion().equals(other.getModelVersion())) return false; + if (!getModelPromptPreamble().equals(other.getModelPromptPreamble())) return false; + if (getMaxRephraseSteps() != other.getMaxRephraseSteps()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getDisableRelatedQuestions() != other.getDisableRelatedQuestions()) return false; + if (getIgnoreNonAnswerSeekingQuery() != other.getIgnoreNonAnswerSeekingQuery()) + return false; + if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; + if (getIgnoreLowRelevantContent() != other.getIgnoreLowRelevantContent()) return false; + if (imageSource_ != other.imageSource_) 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) + RESULT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getResultCount(); + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (37 * hash) + MODEL_PROMPT_PREAMBLE_FIELD_NUMBER; + hash = (53 * hash) + getModelPromptPreamble().hashCode(); + hash = (37 * hash) + MAX_REPHRASE_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getMaxRephraseSteps(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + DISABLE_RELATED_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableRelatedQuestions()); + hash = (37 * hash) + IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getIgnoreNonAnswerSeekingQuery()); + hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); + hash = (37 * hash) + IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreLowRelevantContent()); + hash = (37 * hash) + IMAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + imageSource_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Describes configuration for generative answer.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resultCount_ = 0; + modelVersion_ = ""; + modelPromptPreamble_ = ""; + maxRephraseSteps_ = 0; + languageCode_ = ""; + disableRelatedQuestions_ = false; + ignoreNonAnswerSeekingQuery_ = false; + ignoreAdversarialQuery_ = false; + ignoreLowRelevantContent_ = false; + imageSource_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resultCount_ = resultCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelPromptPreamble_ = modelPromptPreamble_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxRephraseSteps_ = maxRephraseSteps_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disableRelatedQuestions_ = disableRelatedQuestions_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreNonAnswerSeekingQuery_ = ignoreNonAnswerSeekingQuery_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ignoreAdversarialQuery_ = ignoreAdversarialQuery_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.imageSource_ = imageSource_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDefaultInstance()) return this; + if (other.getResultCount() != 0) { + setResultCount(other.getResultCount()); + } + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModelPromptPreamble().isEmpty()) { + modelPromptPreamble_ = other.modelPromptPreamble_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getMaxRephraseSteps() != 0) { + setMaxRephraseSteps(other.getMaxRephraseSteps()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDisableRelatedQuestions() != false) { + setDisableRelatedQuestions(other.getDisableRelatedQuestions()); + } + if (other.getIgnoreNonAnswerSeekingQuery() != false) { + setIgnoreNonAnswerSeekingQuery(other.getIgnoreNonAnswerSeekingQuery()); + } + if (other.getIgnoreAdversarialQuery() != false) { + setIgnoreAdversarialQuery(other.getIgnoreAdversarialQuery()); + } + if (other.getIgnoreLowRelevantContent() != false) { + setIgnoreLowRelevantContent(other.getIgnoreLowRelevantContent()); + } + if (other.imageSource_ != 0) { + setImageSourceValue(other.getImageSourceValue()); + } + 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 24: + { + resultCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 34: + { + modelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + modelPromptPreamble_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + maxRephraseSteps_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 58: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 64: + { + disableRelatedQuestions_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 72: + { + ignoreNonAnswerSeekingQuery_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 80: + { + ignoreAdversarialQuery_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 80 + case 88: + { + ignoreLowRelevantContent_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 88 + case 96: + { + imageSource_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 96 + 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 resultCount_; + + /** + * + * + *
+         * The number of top results to generate the answer from. Up to 10.
+         * 
+ * + * int32 result_count = 3; + * + * @return The resultCount. + */ + @java.lang.Override + public int getResultCount() { + return resultCount_; + } + + /** + * + * + *
+         * The number of top results to generate the answer from. Up to 10.
+         * 
+ * + * int32 result_count = 3; + * + * @param value The resultCount to set. + * @return This builder for chaining. + */ + public Builder setResultCount(int value) { + + resultCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The number of top results to generate the answer from. Up to 10.
+         * 
+ * + * int32 result_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearResultCount() { + bitField0_ = (bitField0_ & ~0x00000001); + resultCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object modelVersion_ = ""; + + /** + * + * + *
+         * The model version used to generate the answer.
+         * 
+ * + * string model_version = 4; + * + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The model version used to generate the answer.
+         * 
+ * + * string model_version = 4; + * + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The model version used to generate the answer.
+         * 
+ * + * string model_version = 4; + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * The model version used to generate the answer.
+         * 
+ * + * string model_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * The model version used to generate the answer.
+         * 
+ * + * string model_version = 4; + * + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object modelPromptPreamble_ = ""; + + /** + * + * + *
+         * Text at the beginning of the prompt that instructs the model that
+         * generates the answer.
+         * 
+ * + * string model_prompt_preamble = 5; + * + * @return The modelPromptPreamble. + */ + public java.lang.String getModelPromptPreamble() { + java.lang.Object ref = modelPromptPreamble_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelPromptPreamble_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Text at the beginning of the prompt that instructs the model that
+         * generates the answer.
+         * 
+ * + * string model_prompt_preamble = 5; + * + * @return The bytes for modelPromptPreamble. + */ + public com.google.protobuf.ByteString getModelPromptPreambleBytes() { + java.lang.Object ref = modelPromptPreamble_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelPromptPreamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Text at the beginning of the prompt that instructs the model that
+         * generates the answer.
+         * 
+ * + * string model_prompt_preamble = 5; + * + * @param value The modelPromptPreamble to set. + * @return This builder for chaining. + */ + public Builder setModelPromptPreamble(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelPromptPreamble_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Text at the beginning of the prompt that instructs the model that
+         * generates the answer.
+         * 
+ * + * string model_prompt_preamble = 5; + * + * @return This builder for chaining. + */ + public Builder clearModelPromptPreamble() { + modelPromptPreamble_ = getDefaultInstance().getModelPromptPreamble(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Text at the beginning of the prompt that instructs the model that
+         * generates the answer.
+         * 
+ * + * string model_prompt_preamble = 5; + * + * @param value The bytes for modelPromptPreamble to set. + * @return This builder for chaining. + */ + public Builder setModelPromptPreambleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelPromptPreamble_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int maxRephraseSteps_; + + /** + * + * + *
+         * Max rephrase steps.
+         * The max number is 5 steps.
+         * If not set or set to < 1, it will be set to 1 by default.
+         * 
+ * + * int32 max_rephrase_steps = 6; + * + * @return The maxRephraseSteps. + */ + @java.lang.Override + public int getMaxRephraseSteps() { + return maxRephraseSteps_; + } + + /** + * + * + *
+         * Max rephrase steps.
+         * The max number is 5 steps.
+         * If not set or set to < 1, it will be set to 1 by default.
+         * 
+ * + * int32 max_rephrase_steps = 6; + * + * @param value The maxRephraseSteps to set. + * @return This builder for chaining. + */ + public Builder setMaxRephraseSteps(int value) { + + maxRephraseSteps_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Max rephrase steps.
+         * The max number is 5 steps.
+         * If not set or set to < 1, it will be set to 1 by default.
+         * 
+ * + * int32 max_rephrase_steps = 6; + * + * @return This builder for chaining. + */ + public Builder clearMaxRephraseSteps() { + bitField0_ = (bitField0_ & ~0x00000008); + maxRephraseSteps_ = 0; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 7; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 7; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 7; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 7; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+         * Language code for Summary. Use language tags defined by
+         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+         * Note: This is an experimental feature.
+         * 
+ * + * string language_code = 7; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean disableRelatedQuestions_; + + /** + * + * + *
+         * Whether generated answer contains suggested related questions.
+         * 
+ * + * bool disable_related_questions = 8; + * + * @return The disableRelatedQuestions. + */ + @java.lang.Override + public boolean getDisableRelatedQuestions() { + return disableRelatedQuestions_; + } + + /** + * + * + *
+         * Whether generated answer contains suggested related questions.
+         * 
+ * + * bool disable_related_questions = 8; + * + * @param value The disableRelatedQuestions to set. + * @return This builder for chaining. + */ + public Builder setDisableRelatedQuestions(boolean value) { + + disableRelatedQuestions_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+         * Whether generated answer contains suggested related questions.
+         * 
+ * + * bool disable_related_questions = 8; + * + * @return This builder for chaining. + */ + public Builder clearDisableRelatedQuestions() { + bitField0_ = (bitField0_ & ~0x00000020); + disableRelatedQuestions_ = false; + onChanged(); + return this; + } + + private boolean ignoreNonAnswerSeekingQuery_; + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are not
+         * answer-seeking. The default value is `false`.
+         *
+         * No answer is returned if the search query is classified as a
+         * non-answer seeking query. If this field is set to `true`, we skip
+         * generating answers for non-answer seeking queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreNonAnswerSeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonAnswerSeekingQuery() { + return ignoreNonAnswerSeekingQuery_; + } + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are not
+         * answer-seeking. The default value is `false`.
+         *
+         * No answer is returned if the search query is classified as a
+         * non-answer seeking query. If this field is set to `true`, we skip
+         * generating answers for non-answer seeking queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ignoreNonAnswerSeekingQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreNonAnswerSeekingQuery(boolean value) { + + ignoreNonAnswerSeekingQuery_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are not
+         * answer-seeking. The default value is `false`.
+         *
+         * No answer is returned if the search query is classified as a
+         * non-answer seeking query. If this field is set to `true`, we skip
+         * generating answers for non-answer seeking queries and return
+         * fallback messages instead.
+         * 
+ * + * bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIgnoreNonAnswerSeekingQuery() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreNonAnswerSeekingQuery_ = false; + onChanged(); + return this; + } + + private boolean ignoreAdversarialQuery_; + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are adversarial.
+         * 
+ * + * bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are adversarial.
+         * 
+ * + * bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ignoreAdversarialQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreAdversarialQuery(boolean value) { + + ignoreAdversarialQuery_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are adversarial.
+         * 
+ * + * bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIgnoreAdversarialQuery() { + bitField0_ = (bitField0_ & ~0x00000080); + ignoreAdversarialQuery_ = false; + onChanged(); + return this; + } + + private boolean ignoreLowRelevantContent_; + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are not relevant
+         * to the content.
+         * 
+ * + * bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreLowRelevantContent. + */ + @java.lang.Override + public boolean getIgnoreLowRelevantContent() { + return ignoreLowRelevantContent_; + } + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are not relevant
+         * to the content.
+         * 
+ * + * bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ignoreLowRelevantContent to set. + * @return This builder for chaining. + */ + public Builder setIgnoreLowRelevantContent(boolean value) { + + ignoreLowRelevantContent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Specifies whether to filter out queries that are not relevant
+         * to the content.
+         * 
+ * + * bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIgnoreLowRelevantContent() { + bitField0_ = (bitField0_ & ~0x00000100); + ignoreLowRelevantContent_ = false; + onChanged(); + return this; + } + + private int imageSource_ = 0; + + /** + * + * + *
+         * Optional. Source of image returned in the answer.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for imageSource. + */ + @java.lang.Override + public int getImageSourceValue() { + return imageSource_; + } + + /** + * + * + *
+         * Optional. Source of image returned in the answer.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for imageSource to set. + * @return This builder for chaining. + */ + public Builder setImageSourceValue(int value) { + imageSource_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Source of image returned in the answer.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource + getImageSource() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource.forNumber(imageSource_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Optional. Source of image returned in the answer.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The imageSource to set. + * @return This builder for chaining. + */ + public Builder setImageSource( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .ImageSource + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + imageSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Source of image returned in the answer.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearImageSource() { + bitField0_ = (bitField0_ & ~0x00000200); + imageSource_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAnswerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelConfigInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel> + getResolvedModelsList(); + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel + getResolvedModels(int index); + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getResolvedModelsCount(); + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder> + getResolvedModelsOrBuilderList(); + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder + getResolvedModelsOrBuilder(int index); + + /** + * + * + *
+       * Output only. The `model_id` of the model that should be selected by
+       * default in the model selector when the end-user has not made an
+       * explicit choice. The value is always one of the `model_id`s present in
+       * `resolved_models`.
+       * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultModelId. + */ + java.lang.String getDefaultModelId(); + + /** + * + * + *
+       * Output only. The `model_id` of the model that should be selected by
+       * default in the model selector when the end-user has not made an
+       * explicit choice. The value is always one of the `model_id`s present in
+       * `resolved_models`.
+       * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultModelId. + */ + com.google.protobuf.ByteString getDefaultModelIdBytes(); + + /** + * + * + *
+       * Output only. The `model_id` a client must send when the end-user picks
+       * the "Auto" entry (the empty `model_id`).
+       *
+       * Populated only for surfaces known to have no true "Auto" mode, where
+       * leaving the model unset would fall back to a platform default rather
+       * than a backend-chosen model. Empty on every other surface, where
+       * "Auto" is resolved server-side, and when none of the surface's ranked
+       * models is available. When set, it is always one of the non-empty
+       * `model_id`s present in `resolved_models`.
+       * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The autoModelId. + */ + java.lang.String getAutoModelId(); + + /** + * + * + *
+       * Output only. The `model_id` a client must send when the end-user picks
+       * the "Auto" entry (the empty `model_id`).
+       *
+       * Populated only for surfaces known to have no true "Auto" mode, where
+       * leaving the model unset would fall back to a platform default rather
+       * than a backend-chosen model. Empty on every other surface, where
+       * "Auto" is resolved server-side, and when none of the surface's ranked
+       * models is available. When set, it is always one of the non-empty
+       * `model_id`s present in `resolved_models`.
+       * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for autoModelId. + */ + com.google.protobuf.ByteString getAutoModelIdBytes(); + } + + /** + * + * + *
+     * The resolved, server-side view of model selector configuration for the
+     * end-user. The backend computes this per-request by applying, in order:
+     * Mendel flag evaluation, regional availability rules based on the
+     * engine's location, and admin-panel overrides from `model_configs`.
+     *
+     * The backend is the single source of truth for this configuration;
+     * clients should render `resolved_models` directly in the model selector
+     * dropdown, in the order provided, without applying their own filtering,
+     * ordering, or localization.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo} + */ + public static final class ModelConfigInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) + ModelConfigInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ModelConfigInfo"); + } + + // Use ModelConfigInfo.newBuilder() to construct. + private ModelConfigInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelConfigInfo() { + resolvedModels_ = java.util.Collections.emptyList(); + defaultModelId_ = ""; + autoModelId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.Builder + .class); + } + + public interface ResolvedModelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Output only. Unique identifier of the model
+         * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+         *
+         * This is the same identifier that clients pass back to the assistant
+         * service to select this model. Virtual / "pseudo" models (e.g.
+         * `gemini-fast`) are also valid values here; they are resolved to the
+         * underlying concrete model on the backend.
+         * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + + /** + * + * + *
+         * Output only. Unique identifier of the model
+         * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+         *
+         * This is the same identifier that clients pass back to the assistant
+         * service to select this model. Virtual / "pseudo" models (e.g.
+         * `gemini-fast`) are also valid values here; they are resolved to the
+         * underlying concrete model on the backend.
+         * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
+         * Output only. Localized display name of the model (e.g. `Gemini 3.1
+         * Pro`). Localized server-side based on the
+         * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+         * and
+         * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+         * of the request.
+         * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+         * Output only. Localized display name of the model (e.g. `Gemini 3.1
+         * Pro`). Localized server-side based on the
+         * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+         * and
+         * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+         * of the request.
+         * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+         * Output only. GM3-compatible icon token associated with the model
+         * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+         * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The icon. + */ + java.lang.String getIcon(); + + /** + * + * + *
+         * Output only. GM3-compatible icon token associated with the model
+         * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+         * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for icon. + */ + com.google.protobuf.ByteString getIconBytes(); + + /** + * + * + *
+         * Output only. Localized description text (e.g. `State-of-the-art
+         * reasoning`). Localized using the same locale as `display_name`.
+         * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+         * Output only. Localized description text (e.g. `State-of-the-art
+         * reasoning`). Localized using the same locale as `display_name`.
+         * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+         * Output only. Whether the model is currently in preview. Clients
+         * should surface this via a "Preview" badge in the selector UI.
+         * 
+ * + * bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isPreview. + */ + boolean getIsPreview(); + + /** + * + * + *
+         * Output only. Short label shown in the compact selector bar chip (e.g.
+         * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+         * Flash`). Falls back to `display_name` when the backend registry does
+         * not specify a distinct short label.
+         * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
+         * Output only. Short label shown in the compact selector bar chip (e.g.
+         * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+         * Flash`). Falls back to `display_name` when the backend registry does
+         * not specify a distinct short label.
+         * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * + * + *
+         * Output only. Admin-surface metadata; populated only for the Console
+         * admin Feature Control page (see `AdminView`). Unset for end-user
+         * surfaces.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adminView field is set. + */ + boolean hasAdminView(); + + /** + * + * + *
+         * Output only. Admin-surface metadata; populated only for the Console
+         * admin Feature Control page (see `AdminView`). Unset for end-user
+         * surfaces.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adminView. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel + .AdminView + getAdminView(); + + /** + * + * + *
+         * Output only. Admin-surface metadata; populated only for the Console
+         * admin Feature Control page (see `AdminView`). Unset for end-user
+         * surfaces.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel + .AdminViewOrBuilder + getAdminViewOrBuilder(); + + /** + * + * + *
+         * Output only. Whether this model should be promoted in the GE chat
+         * homepage banner.
+         * 
+ * + * bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The promoted. + */ + boolean getPromoted(); + + /** + * + * + *
+         * Output only. Absolute URL of a brand mark to render instead of
+         * `icon`, for models whose vendor logo is not a GM3 glyph.
+         *
+         * `icon` stays populated as the fallback, so a client that does not
+         * render images, or that fails to fetch this one, shows the glyph
+         * instead of nothing.
+         * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUrl. + */ + java.lang.String getIconUrl(); + + /** + * + * + *
+         * Output only. Absolute URL of a brand mark to render instead of
+         * `icon`, for models whose vendor logo is not a GM3 glyph.
+         *
+         * `icon` stays populated as the fallback, so a client that does not
+         * render images, or that fails to fetch this one, shows the glyph
+         * instead of nothing.
+         * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUrl. + */ + com.google.protobuf.ByteString getIconUrlBytes(); + + /** + * + * + *
+         * Output only. Groups models that render together in the selector.
+         * Models sharing a value form one group; empty means the model belongs
+         * to no group.
+         *
+         * Compared for equality only -- never parsed, and never shown to a
+         * user, so it is not localized.
+         * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The family. + */ + java.lang.String getFamily(); + + /** + * + * + *
+         * Output only. Groups models that render together in the selector.
+         * Models sharing a value form one group; empty means the model belongs
+         * to no group.
+         *
+         * Compared for equality only -- never parsed, and never shown to a
+         * user, so it is not localized.
+         * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for family. + */ + com.google.protobuf.ByteString getFamilyBytes(); + } + + /** + * + * + *
+       * A single model that is resolved to be available to the end-user in the
+       * model selector, with all of its localized display metadata.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel} + */ + public static final class ResolvedModel extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel) + ResolvedModelOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ResolvedModel"); + } + + // Use ResolvedModel.newBuilder() to construct. + private ResolvedModel(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ResolvedModel() { + modelId_ = ""; + displayName_ = ""; + icon_ = ""; + description_ = ""; + label_ = ""; + iconUrl_ = ""; + family_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder.class); + } + + public interface AdminViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * Output only. Whether the admin can toggle this model's
+           * enabled/disabled state via `UiSettings.model_configs`. Derived from
+           * `MODEL_TAG_ADMIN_OVERRIDABLE`. When false, the model is "forced"
+           * and its state is governed by `enabled_by_default`.
+           * 
+ * + * bool admin_overridable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adminOverridable. + */ + boolean getAdminOverridable(); + + /** + * + * + *
+           * Output only. Whether the model is enabled when the admin has set no
+           * explicit override in `UiSettings.model_configs`. Derived from
+           * `MODEL_TAG_ENABLED_BY_DEFAULT`.
+           * 
+ * + * bool enabled_by_default = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabledByDefault. + */ + boolean getEnabledByDefault(); + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the regions. + */ + java.util.List getRegionsList(); + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of regions. + */ + int getRegionsCount(); + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The regions at the given index. + */ + java.lang.String getRegions(int index); + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the regions at the given index. + */ + com.google.protobuf.ByteString getRegionsBytes(int index); + } + + /** + * + * + *
+         * Admin-surface metadata. Populated only when the request originates
+         * from the Cloud Console admin "Feature Control" page; left unset for
+         * end-user surfaces (Web, Mobile). Lets the admin page render its
+         * toggle table directly from the backend instead of a hardcoded
+         * client-side registry.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView} + */ + public static final class AdminView extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView) + AdminViewOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AdminView"); + } + + // Use AdminView.newBuilder() to construct. + private AdminView(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdminView() { + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder.class); + } + + public static final int ADMIN_OVERRIDABLE_FIELD_NUMBER = 1; + private boolean adminOverridable_ = false; + + /** + * + * + *
+           * Output only. Whether the admin can toggle this model's
+           * enabled/disabled state via `UiSettings.model_configs`. Derived from
+           * `MODEL_TAG_ADMIN_OVERRIDABLE`. When false, the model is "forced"
+           * and its state is governed by `enabled_by_default`.
+           * 
+ * + * bool admin_overridable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adminOverridable. + */ + @java.lang.Override + public boolean getAdminOverridable() { + return adminOverridable_; + } + + public static final int ENABLED_BY_DEFAULT_FIELD_NUMBER = 2; + private boolean enabledByDefault_ = false; + + /** + * + * + *
+           * Output only. Whether the model is enabled when the admin has set no
+           * explicit override in `UiSettings.model_configs`. Derived from
+           * `MODEL_TAG_ENABLED_BY_DEFAULT`.
+           * 
+ * + * bool enabled_by_default = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The enabledByDefault. + */ + @java.lang.Override + public boolean getEnabledByDefault() { + return enabledByDefault_; + } + + public static final int REGIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the regions. + */ + public com.google.protobuf.ProtocolStringList getRegionsList() { + return regions_; + } + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of regions. + */ + public int getRegionsCount() { + return regions_.size(); + } + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The regions at the given index. + */ + public java.lang.String getRegions(int index) { + return regions_.get(index); + } + + /** + * + * + *
+           * Output only. Regions where this model is launched.
+           * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the regions at the given index. + */ + public com.google.protobuf.ByteString getRegionsBytes(int index) { + return regions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (adminOverridable_ != false) { + output.writeBool(1, adminOverridable_); + } + if (enabledByDefault_ != false) { + output.writeBool(2, enabledByDefault_); + } + for (int i = 0; i < regions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, regions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (adminOverridable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adminOverridable_); + } + if (enabledByDefault_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabledByDefault_); + } + { + int dataSize = 0; + for (int i = 0; i < regions_.size(); i++) { + dataSize += computeStringSizeNoTag(regions_.getRaw(i)); + } + size += dataSize; + size += 1 * getRegionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView) + obj; + + if (getAdminOverridable() != other.getAdminOverridable()) return false; + if (getEnabledByDefault() != other.getEnabledByDefault()) return false; + if (!getRegionsList().equals(other.getRegionsList())) 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) + ADMIN_OVERRIDABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminOverridable()); + hash = (37 * hash) + ENABLED_BY_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabledByDefault()); + if (getRegionsCount() > 0) { + hash = (37 * hash) + REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getRegionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+           * Admin-surface metadata. Populated only when the request originates
+           * from the Cloud Console admin "Feature Control" page; left unset for
+           * end-user surfaces (Web, Mobile). Lets the admin page render its
+           * toggle table directly from the backend instead of a hardcoded
+           * client-side registry.
+           * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + adminOverridable_ = false; + enabledByDefault_ = false; + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .ModelConfigInfo.ResolvedModel.AdminView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.adminOverridable_ = adminOverridable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enabledByDefault_ = enabledByDefault_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + regions_.makeImmutable(); + result.regions_ = regions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance()) return this; + if (other.getAdminOverridable() != false) { + setAdminOverridable(other.getAdminOverridable()); + } + if (other.getEnabledByDefault() != false) { + setEnabledByDefault(other.getEnabledByDefault()); + } + if (!other.regions_.isEmpty()) { + if (regions_.isEmpty()) { + regions_ = other.regions_; + bitField0_ |= 0x00000004; + } else { + ensureRegionsIsMutable(); + regions_.addAll(other.regions_); + } + 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: + { + adminOverridable_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enabledByDefault_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegionsIsMutable(); + regions_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean adminOverridable_; + + /** + * + * + *
+             * Output only. Whether the admin can toggle this model's
+             * enabled/disabled state via `UiSettings.model_configs`. Derived from
+             * `MODEL_TAG_ADMIN_OVERRIDABLE`. When false, the model is "forced"
+             * and its state is governed by `enabled_by_default`.
+             * 
+ * + * bool admin_overridable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adminOverridable. + */ + @java.lang.Override + public boolean getAdminOverridable() { + return adminOverridable_; + } + + /** + * + * + *
+             * Output only. Whether the admin can toggle this model's
+             * enabled/disabled state via `UiSettings.model_configs`. Derived from
+             * `MODEL_TAG_ADMIN_OVERRIDABLE`. When false, the model is "forced"
+             * and its state is governed by `enabled_by_default`.
+             * 
+ * + * bool admin_overridable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The adminOverridable to set. + * @return This builder for chaining. + */ + public Builder setAdminOverridable(boolean value) { + + adminOverridable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+             * Output only. Whether the admin can toggle this model's
+             * enabled/disabled state via `UiSettings.model_configs`. Derived from
+             * `MODEL_TAG_ADMIN_OVERRIDABLE`. When false, the model is "forced"
+             * and its state is governed by `enabled_by_default`.
+             * 
+ * + * bool admin_overridable = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdminOverridable() { + bitField0_ = (bitField0_ & ~0x00000001); + adminOverridable_ = false; + onChanged(); + return this; + } + + private boolean enabledByDefault_; + + /** + * + * + *
+             * Output only. Whether the model is enabled when the admin has set no
+             * explicit override in `UiSettings.model_configs`. Derived from
+             * `MODEL_TAG_ENABLED_BY_DEFAULT`.
+             * 
+ * + * bool enabled_by_default = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enabledByDefault. + */ + @java.lang.Override + public boolean getEnabledByDefault() { + return enabledByDefault_; + } + + /** + * + * + *
+             * Output only. Whether the model is enabled when the admin has set no
+             * explicit override in `UiSettings.model_configs`. Derived from
+             * `MODEL_TAG_ENABLED_BY_DEFAULT`.
+             * 
+ * + * bool enabled_by_default = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enabledByDefault to set. + * @return This builder for chaining. + */ + public Builder setEnabledByDefault(boolean value) { + + enabledByDefault_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+             * Output only. Whether the model is enabled when the admin has set no
+             * explicit override in `UiSettings.model_configs`. Derived from
+             * `MODEL_TAG_ENABLED_BY_DEFAULT`.
+             * 
+ * + * bool enabled_by_default = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnabledByDefault() { + bitField0_ = (bitField0_ & ~0x00000002); + enabledByDefault_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRegionsIsMutable() { + if (!regions_.isModifiable()) { + regions_ = new com.google.protobuf.LazyStringArrayList(regions_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the regions. + */ + public com.google.protobuf.ProtocolStringList getRegionsList() { + regions_.makeImmutable(); + return regions_; + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of regions. + */ + public int getRegionsCount() { + return regions_.size(); + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The regions at the given index. + */ + public java.lang.String getRegions(int index) { + return regions_.get(index); + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the regions at the given index. + */ + public com.google.protobuf.ByteString getRegionsBytes(int index) { + return regions_.getByteString(index); + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The regions to set. + * @return This builder for chaining. + */ + public Builder setRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The regions to add. + * @return This builder for chaining. + */ + public Builder addRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The regions to add. + * @return This builder for chaining. + */ + public Builder addAllRegions(java.lang.Iterable values) { + ensureRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regions_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRegions() { + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+             * Output only. Regions where this model is launched.
+             * 
+ * + * repeated string regions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the regions to add. + * @return This builder for chaining. + */ + public Builder addRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRegionsIsMutable(); + regions_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .ModelConfigInfo.ResolvedModel.AdminView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdminView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODEL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; + + /** + * + * + *
+         * Output only. Unique identifier of the model
+         * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+         *
+         * This is the same identifier that clients pass back to the assistant
+         * service to select this model. Virtual / "pseudo" models (e.g.
+         * `gemini-fast`) are also valid values here; they are resolved to the
+         * underlying concrete model on the backend.
+         * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } + } + + /** + * + * + *
+         * Output only. Unique identifier of the model
+         * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+         *
+         * This is the same identifier that clients pass back to the assistant
+         * service to select this model. Virtual / "pseudo" models (e.g.
+         * `gemini-fast`) are also valid values here; they are resolved to the
+         * underlying concrete model on the backend.
+         * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+         * Output only. Localized display name of the model (e.g. `Gemini 3.1
+         * Pro`). Localized server-side based on the
+         * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+         * and
+         * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+         * of the request.
+         * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+         * Output only. Localized display name of the model (e.g. `Gemini 3.1
+         * Pro`). Localized server-side based on the
+         * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+         * and
+         * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+         * of the request.
+         * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 ICON_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object icon_ = ""; + + /** + * + * + *
+         * Output only. GM3-compatible icon token associated with the model
+         * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+         * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The icon. + */ + @java.lang.Override + public java.lang.String getIcon() { + java.lang.Object ref = icon_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icon_ = s; + return s; + } + } + + /** + * + * + *
+         * Output only. GM3-compatible icon token associated with the model
+         * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+         * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for icon. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconBytes() { + java.lang.Object ref = icon_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + icon_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+         * Output only. Localized description text (e.g. `State-of-the-art
+         * reasoning`). Localized using the same locale as `display_name`.
+         * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+         * Output only. Localized description text (e.g. `State-of-the-art
+         * reasoning`). Localized using the same locale as `display_name`.
+         * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 IS_PREVIEW_FIELD_NUMBER = 5; + private boolean isPreview_ = false; + + /** + * + * + *
+         * Output only. Whether the model is currently in preview. Clients
+         * should surface this via a "Preview" badge in the selector UI.
+         * 
+ * + * bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isPreview. + */ + @java.lang.Override + public boolean getIsPreview() { + return isPreview_; + } + + public static final int LABEL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
+         * Output only. Short label shown in the compact selector bar chip (e.g.
+         * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+         * Flash`). Falls back to `display_name` when the backend registry does
+         * not specify a distinct short label.
+         * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * + * + *
+         * Output only. Short label shown in the compact selector bar chip (e.g.
+         * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+         * Flash`). Falls back to `display_name` when the backend registry does
+         * not specify a distinct short label.
+         * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMIN_VIEW_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + adminView_; + + /** + * + * + *
+         * Output only. Admin-surface metadata; populated only for the Console
+         * admin Feature Control page (see `AdminView`). Unset for end-user
+         * surfaces.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adminView field is set. + */ + @java.lang.Override + public boolean hasAdminView() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Output only. Admin-surface metadata; populated only for the Console
+         * admin Feature Control page (see `AdminView`). Unset for end-user
+         * surfaces.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adminView. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + getAdminView() { + return adminView_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance() + : adminView_; + } + + /** + * + * + *
+         * Output only. Admin-surface metadata; populated only for the Console
+         * admin Feature Control page (see `AdminView`). Unset for end-user
+         * surfaces.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminViewOrBuilder + getAdminViewOrBuilder() { + return adminView_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance() + : adminView_; + } + + public static final int PROMOTED_FIELD_NUMBER = 8; + private boolean promoted_ = false; + + /** + * + * + *
+         * Output only. Whether this model should be promoted in the GE chat
+         * homepage banner.
+         * 
+ * + * bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The promoted. + */ + @java.lang.Override + public boolean getPromoted() { + return promoted_; + } + + public static final int ICON_URL_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconUrl_ = ""; + + /** + * + * + *
+         * Output only. Absolute URL of a brand mark to render instead of
+         * `icon`, for models whose vendor logo is not a GM3 glyph.
+         *
+         * `icon` stays populated as the fallback, so a client that does not
+         * render images, or that fails to fetch this one, shows the glyph
+         * instead of nothing.
+         * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUrl. + */ + @java.lang.Override + public java.lang.String getIconUrl() { + java.lang.Object ref = iconUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUrl_ = s; + return s; + } + } + + /** + * + * + *
+         * Output only. Absolute URL of a brand mark to render instead of
+         * `icon`, for models whose vendor logo is not a GM3 glyph.
+         *
+         * `icon` stays populated as the fallback, so a client that does not
+         * render images, or that fails to fetch this one, shows the glyph
+         * instead of nothing.
+         * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconUrlBytes() { + java.lang.Object ref = iconUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object family_ = ""; + + /** + * + * + *
+         * Output only. Groups models that render together in the selector.
+         * Models sharing a value form one group; empty means the model belongs
+         * to no group.
+         *
+         * Compared for equality only -- never parsed, and never shown to a
+         * user, so it is not localized.
+         * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The family. + */ + @java.lang.Override + public java.lang.String getFamily() { + java.lang.Object ref = family_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + family_ = s; + return s; + } + } + + /** + * + * + *
+         * Output only. Groups models that render together in the selector.
+         * Models sharing a value form one group; empty means the model belongs
+         * to no group.
+         *
+         * Compared for equality only -- never parsed, and never shown to a
+         * user, so it is not localized.
+         * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for family. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFamilyBytes() { + java.lang.Object ref = family_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + family_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icon_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, icon_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (isPreview_ != false) { + output.writeBool(5, isPreview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getAdminView()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, label_); + } + if (promoted_ != false) { + output.writeBool(8, promoted_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, iconUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(family_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, family_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(icon_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, icon_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (isPreview_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isPreview_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAdminView()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, label_); + } + if (promoted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, promoted_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, iconUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(family_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, family_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel + other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel) + obj; + + if (!getModelId().equals(other.getModelId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getIcon().equals(other.getIcon())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getIsPreview() != other.getIsPreview()) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (hasAdminView() != other.hasAdminView()) return false; + if (hasAdminView()) { + if (!getAdminView().equals(other.getAdminView())) return false; + } + if (getPromoted() != other.getPromoted()) return false; + if (!getIconUrl().equals(other.getIconUrl())) return false; + if (!getFamily().equals(other.getFamily())) 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) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + getIcon().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + IS_PREVIEW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreview()); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + if (hasAdminView()) { + hash = (37 * hash) + ADMIN_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getAdminView().hashCode(); + } + hash = (37 * hash) + PROMOTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPromoted()); + hash = (37 * hash) + ICON_URL_FIELD_NUMBER; + hash = (53 * hash) + getIconUrl().hashCode(); + hash = (37 * hash) + FAMILY_FIELD_NUMBER; + hash = (53 * hash) + getFamily().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * A single model that is resolved to be available to the end-user in the
+         * model selector, with all of its localized display metadata.
+         * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAdminViewFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelId_ = ""; + displayName_ = ""; + icon_ = ""; + description_ = ""; + isPreview_ = false; + label_ = ""; + adminView_ = null; + if (adminViewBuilder_ != null) { + adminViewBuilder_.dispose(); + adminViewBuilder_ = null; + } + promoted_ = false; + iconUrl_ = ""; + family_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.icon_ = icon_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isPreview_ = isPreview_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.label_ = label_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.adminView_ = + adminViewBuilder_ == null ? adminView_ : adminViewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.promoted_ = promoted_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.iconUrl_ = iconUrl_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.family_ = family_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.getDefaultInstance()) return this; + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIcon().isEmpty()) { + icon_ = other.icon_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getIsPreview() != false) { + setIsPreview(other.getIsPreview()); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasAdminView()) { + mergeAdminView(other.getAdminView()); + } + if (other.getPromoted() != false) { + setPromoted(other.getPromoted()); + } + if (!other.getIconUrl().isEmpty()) { + iconUrl_ = other.iconUrl_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getFamily().isEmpty()) { + family_ = other.family_; + bitField0_ |= 0x00000200; + 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: + { + modelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + icon_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + isPreview_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetAdminViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 64: + { + promoted_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + iconUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + family_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + 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 modelId_ = ""; + + /** + * + * + *
+           * Output only. Unique identifier of the model
+           * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+           *
+           * This is the same identifier that clients pass back to the assistant
+           * service to select this model. Virtual / "pseudo" models (e.g.
+           * `gemini-fast`) are also valid values here; they are resolved to the
+           * underlying concrete model on the backend.
+           * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Output only. Unique identifier of the model
+           * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+           *
+           * This is the same identifier that clients pass back to the assistant
+           * service to select this model. Virtual / "pseudo" models (e.g.
+           * `gemini-fast`) are also valid values here; they are resolved to the
+           * underlying concrete model on the backend.
+           * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Output only. Unique identifier of the model
+           * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+           *
+           * This is the same identifier that clients pass back to the assistant
+           * service to select this model. Virtual / "pseudo" models (e.g.
+           * `gemini-fast`) are also valid values here; they are resolved to the
+           * underlying concrete model on the backend.
+           * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Unique identifier of the model
+           * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+           *
+           * This is the same identifier that clients pass back to the assistant
+           * service to select this model. Virtual / "pseudo" models (e.g.
+           * `gemini-fast`) are also valid values here; they are resolved to the
+           * underlying concrete model on the backend.
+           * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Unique identifier of the model
+           * (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`).
+           *
+           * This is the same identifier that clients pass back to the assistant
+           * service to select this model. Virtual / "pseudo" models (e.g.
+           * `gemini-fast`) are also valid values here; they are resolved to the
+           * underlying concrete model on the backend.
+           * 
+ * + * string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+           * Output only. Localized display name of the model (e.g. `Gemini 3.1
+           * Pro`). Localized server-side based on the
+           * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+           * and
+           * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+           * of the request.
+           * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+           * Output only. Localized display name of the model (e.g. `Gemini 3.1
+           * Pro`). Localized server-side based on the
+           * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+           * and
+           * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+           * of the request.
+           * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+           * Output only. Localized display name of the model (e.g. `Gemini 3.1
+           * Pro`). Localized server-side based on the
+           * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+           * and
+           * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+           * of the request.
+           * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Localized display name of the model (e.g. `Gemini 3.1
+           * Pro`). Localized server-side based on the
+           * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+           * and
+           * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+           * of the request.
+           * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Localized display name of the model (e.g. `Gemini 3.1
+           * Pro`). Localized server-side based on the
+           * [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code]
+           * and
+           * [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code]
+           * of the request.
+           * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object icon_ = ""; + + /** + * + * + *
+           * Output only. GM3-compatible icon token associated with the model
+           * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+           * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The icon. + */ + public java.lang.String getIcon() { + java.lang.Object ref = icon_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + icon_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Output only. GM3-compatible icon token associated with the model
+           * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+           * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for icon. + */ + public com.google.protobuf.ByteString getIconBytes() { + java.lang.Object ref = icon_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + icon_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Output only. GM3-compatible icon token associated with the model
+           * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+           * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + icon_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. GM3-compatible icon token associated with the model
+           * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+           * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIcon() { + icon_ = getDefaultInstance().getIcon(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. GM3-compatible icon token associated with the model
+           * (e.g. `rocket_launch`, `bolt`, `graph_5`).
+           * 
+ * + * string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for icon to set. + * @return This builder for chaining. + */ + public Builder setIconBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + icon_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+           * Output only. Localized description text (e.g. `State-of-the-art
+           * reasoning`). Localized using the same locale as `display_name`.
+           * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+           * Output only. Localized description text (e.g. `State-of-the-art
+           * reasoning`). Localized using the same locale as `display_name`.
+           * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+           * Output only. Localized description text (e.g. `State-of-the-art
+           * reasoning`). Localized using the same locale as `display_name`.
+           * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Localized description text (e.g. `State-of-the-art
+           * reasoning`). Localized using the same locale as `display_name`.
+           * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Localized description text (e.g. `State-of-the-art
+           * reasoning`). Localized using the same locale as `display_name`.
+           * 
+ * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean isPreview_; + + /** + * + * + *
+           * Output only. Whether the model is currently in preview. Clients
+           * should surface this via a "Preview" badge in the selector UI.
+           * 
+ * + * bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isPreview. + */ + @java.lang.Override + public boolean getIsPreview() { + return isPreview_; + } + + /** + * + * + *
+           * Output only. Whether the model is currently in preview. Clients
+           * should surface this via a "Preview" badge in the selector UI.
+           * 
+ * + * bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isPreview to set. + * @return This builder for chaining. + */ + public Builder setIsPreview(boolean value) { + + isPreview_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Whether the model is currently in preview. Clients
+           * should surface this via a "Preview" badge in the selector UI.
+           * 
+ * + * bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsPreview() { + bitField0_ = (bitField0_ & ~0x00000010); + isPreview_ = false; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
+           * Output only. Short label shown in the compact selector bar chip (e.g.
+           * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+           * Flash`). Falls back to `display_name` when the backend registry does
+           * not specify a distinct short label.
+           * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Output only. Short label shown in the compact selector bar chip (e.g.
+           * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+           * Flash`). Falls back to `display_name` when the backend registry does
+           * not specify a distinct short label.
+           * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Output only. Short label shown in the compact selector bar chip (e.g.
+           * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+           * Flash`). Falls back to `display_name` when the backend registry does
+           * not specify a distinct short label.
+           * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Short label shown in the compact selector bar chip (e.g.
+           * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+           * Flash`). Falls back to `display_name` when the backend registry does
+           * not specify a distinct short label.
+           * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Short label shown in the compact selector bar chip (e.g.
+           * `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x
+           * Flash`). Falls back to `display_name` when the backend registry does
+           * not specify a distinct short label.
+           * 
+ * + * string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + adminView_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminViewOrBuilder> + adminViewBuilder_; + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the adminView field is set. + */ + public boolean hasAdminView() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adminView. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + getAdminView() { + if (adminViewBuilder_ == null) { + return adminView_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance() + : adminView_; + } else { + return adminViewBuilder_.getMessage(); + } + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAdminView( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + value) { + if (adminViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adminView_ = value; + } else { + adminViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAdminView( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder + builderForValue) { + if (adminViewBuilder_ == null) { + adminView_ = builderForValue.build(); + } else { + adminViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAdminView( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView + value) { + if (adminViewBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && adminView_ != null + && adminView_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance()) { + getAdminViewBuilder().mergeFrom(value); + } else { + adminView_ = value; + } + } else { + adminViewBuilder_.mergeFrom(value); + } + if (adminView_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAdminView() { + bitField0_ = (bitField0_ & ~0x00000040); + adminView_ = null; + if (adminViewBuilder_ != null) { + adminViewBuilder_.dispose(); + adminViewBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder + getAdminViewBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetAdminViewFieldBuilder().getBuilder(); + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminViewOrBuilder + getAdminViewOrBuilder() { + if (adminViewBuilder_ != null) { + return adminViewBuilder_.getMessageOrBuilder(); + } else { + return adminView_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.getDefaultInstance() + : adminView_; + } + } + + /** + * + * + *
+           * Output only. Admin-surface metadata; populated only for the Console
+           * admin Feature Control page (see `AdminView`). Unset for end-user
+           * surfaces.
+           * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminViewOrBuilder> + internalGetAdminViewFieldBuilder() { + if (adminViewBuilder_ == null) { + adminViewBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminView.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.AdminViewOrBuilder>( + getAdminView(), getParentForChildren(), isClean()); + adminView_ = null; + } + return adminViewBuilder_; + } + + private boolean promoted_; + + /** + * + * + *
+           * Output only. Whether this model should be promoted in the GE chat
+           * homepage banner.
+           * 
+ * + * bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The promoted. + */ + @java.lang.Override + public boolean getPromoted() { + return promoted_; + } + + /** + * + * + *
+           * Output only. Whether this model should be promoted in the GE chat
+           * homepage banner.
+           * 
+ * + * bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The promoted to set. + * @return This builder for chaining. + */ + public Builder setPromoted(boolean value) { + + promoted_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Whether this model should be promoted in the GE chat
+           * homepage banner.
+           * 
+ * + * bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPromoted() { + bitField0_ = (bitField0_ & ~0x00000080); + promoted_ = false; + onChanged(); + return this; + } + + private java.lang.Object iconUrl_ = ""; + + /** + * + * + *
+           * Output only. Absolute URL of a brand mark to render instead of
+           * `icon`, for models whose vendor logo is not a GM3 glyph.
+           *
+           * `icon` stays populated as the fallback, so a client that does not
+           * render images, or that fails to fetch this one, shows the glyph
+           * instead of nothing.
+           * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUrl. + */ + public java.lang.String getIconUrl() { + java.lang.Object ref = iconUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Output only. Absolute URL of a brand mark to render instead of
+           * `icon`, for models whose vendor logo is not a GM3 glyph.
+           *
+           * `icon` stays populated as the fallback, so a client that does not
+           * render images, or that fails to fetch this one, shows the glyph
+           * instead of nothing.
+           * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUrl. + */ + public com.google.protobuf.ByteString getIconUrlBytes() { + java.lang.Object ref = iconUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Output only. Absolute URL of a brand mark to render instead of
+           * `icon`, for models whose vendor logo is not a GM3 glyph.
+           *
+           * `icon` stays populated as the fallback, so a client that does not
+           * render images, or that fails to fetch this one, shows the glyph
+           * instead of nothing.
+           * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The iconUrl to set. + * @return This builder for chaining. + */ + public Builder setIconUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + iconUrl_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Absolute URL of a brand mark to render instead of
+           * `icon`, for models whose vendor logo is not a GM3 glyph.
+           *
+           * `icon` stays populated as the fallback, so a client that does not
+           * render images, or that fails to fetch this one, shows the glyph
+           * instead of nothing.
+           * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIconUrl() { + iconUrl_ = getDefaultInstance().getIconUrl(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Absolute URL of a brand mark to render instead of
+           * `icon`, for models whose vendor logo is not a GM3 glyph.
+           *
+           * `icon` stays populated as the fallback, so a client that does not
+           * render images, or that fails to fetch this one, shows the glyph
+           * instead of nothing.
+           * 
+ * + * string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for iconUrl to set. + * @return This builder for chaining. + */ + public Builder setIconUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iconUrl_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object family_ = ""; + + /** + * + * + *
+           * Output only. Groups models that render together in the selector.
+           * Models sharing a value form one group; empty means the model belongs
+           * to no group.
+           *
+           * Compared for equality only -- never parsed, and never shown to a
+           * user, so it is not localized.
+           * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The family. + */ + public java.lang.String getFamily() { + java.lang.Object ref = family_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + family_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Output only. Groups models that render together in the selector.
+           * Models sharing a value form one group; empty means the model belongs
+           * to no group.
+           *
+           * Compared for equality only -- never parsed, and never shown to a
+           * user, so it is not localized.
+           * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for family. + */ + public com.google.protobuf.ByteString getFamilyBytes() { + java.lang.Object ref = family_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + family_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Output only. Groups models that render together in the selector.
+           * Models sharing a value form one group; empty means the model belongs
+           * to no group.
+           *
+           * Compared for equality only -- never parsed, and never shown to a
+           * user, so it is not localized.
+           * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The family to set. + * @return This builder for chaining. + */ + public Builder setFamily(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + family_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Groups models that render together in the selector.
+           * Models sharing a value form one group; empty means the model belongs
+           * to no group.
+           *
+           * Compared for equality only -- never parsed, and never shown to a
+           * user, so it is not localized.
+           * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFamily() { + family_ = getDefaultInstance().getFamily(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+           * Output only. Groups models that render together in the selector.
+           * Models sharing a value form one group; empty means the model belongs
+           * to no group.
+           *
+           * Compared for equality only -- never parsed, and never shown to a
+           * user, so it is not localized.
+           * 
+ * + * string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for family to set. + * @return This builder for chaining. + */ + public Builder setFamilyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + family_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .ModelConfigInfo.ResolvedModel + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResolvedModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOLVED_MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel> + resolvedModels_; + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel> + getResolvedModelsList() { + return resolvedModels_; + } + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder> + getResolvedModelsOrBuilderList() { + return resolvedModels_; + } + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getResolvedModelsCount() { + return resolvedModels_.size(); + } + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + getResolvedModels(int index) { + return resolvedModels_.get(index); + } + + /** + * + * + *
+       * Output only. The list of models that are available to the end-user in
+       * the model selector, in the order in which they should be displayed.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder + getResolvedModelsOrBuilder(int index) { + return resolvedModels_.get(index); + } + + public static final int DEFAULT_MODEL_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultModelId_ = ""; + + /** + * + * + *
+       * Output only. The `model_id` of the model that should be selected by
+       * default in the model selector when the end-user has not made an
+       * explicit choice. The value is always one of the `model_id`s present in
+       * `resolved_models`.
+       * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultModelId. + */ + @java.lang.Override + public java.lang.String getDefaultModelId() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultModelId_ = s; + return s; + } + } + + /** + * + * + *
+       * Output only. The `model_id` of the model that should be selected by
+       * default in the model selector when the end-user has not made an
+       * explicit choice. The value is always one of the `model_id`s present in
+       * `resolved_models`.
+       * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultModelIdBytes() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTO_MODEL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoModelId_ = ""; + + /** + * + * + *
+       * Output only. The `model_id` a client must send when the end-user picks
+       * the "Auto" entry (the empty `model_id`).
+       *
+       * Populated only for surfaces known to have no true "Auto" mode, where
+       * leaving the model unset would fall back to a platform default rather
+       * than a backend-chosen model. Empty on every other surface, where
+       * "Auto" is resolved server-side, and when none of the surface's ranked
+       * models is available. When set, it is always one of the non-empty
+       * `model_id`s present in `resolved_models`.
+       * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The autoModelId. + */ + @java.lang.Override + public java.lang.String getAutoModelId() { + java.lang.Object ref = autoModelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoModelId_ = s; + return s; + } + } + + /** + * + * + *
+       * Output only. The `model_id` a client must send when the end-user picks
+       * the "Auto" entry (the empty `model_id`).
+       *
+       * Populated only for surfaces known to have no true "Auto" mode, where
+       * leaving the model unset would fall back to a platform default rather
+       * than a backend-chosen model. Empty on every other surface, where
+       * "Auto" is resolved server-side, and when none of the surface's ranked
+       * models is available. When set, it is always one of the non-empty
+       * `model_id`s present in `resolved_models`.
+       * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for autoModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoModelIdBytes() { + java.lang.Object ref = autoModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoModelId_ = 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 < resolvedModels_.size(); i++) { + output.writeMessage(1, resolvedModels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultModelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultModelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoModelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, autoModelId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < resolvedModels_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, resolvedModels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultModelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultModelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoModelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, autoModelId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) obj; + + if (!getResolvedModelsList().equals(other.getResolvedModelsList())) return false; + if (!getDefaultModelId().equals(other.getDefaultModelId())) return false; + if (!getAutoModelId().equals(other.getAutoModelId())) 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 (getResolvedModelsCount() > 0) { + hash = (37 * hash) + RESOLVED_MODELS_FIELD_NUMBER; + hash = (53 * hash) + getResolvedModelsList().hashCode(); + } + hash = (37 * hash) + DEFAULT_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultModelId().hashCode(); + hash = (37 * hash) + AUTO_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getAutoModelId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * The resolved, server-side view of model selector configuration for the
+       * end-user. The backend computes this per-request by applying, in order:
+       * Mendel flag evaluation, regional availability rules based on the
+       * engine's location, and admin-panel overrides from `model_configs`.
+       *
+       * The backend is the single source of truth for this configuration;
+       * clients should render `resolved_models` directly in the model selector
+       * dropdown, in the order provided, without applying their own filtering,
+       * ordering, or localization.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resolvedModelsBuilder_ == null) { + resolvedModels_ = java.util.Collections.emptyList(); + } else { + resolvedModels_ = null; + resolvedModelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + defaultModelId_ = ""; + autoModelId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo result) { + if (resolvedModelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resolvedModels_ = java.util.Collections.unmodifiableList(resolvedModels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resolvedModels_ = resolvedModels_; + } else { + result.resolvedModels_ = resolvedModelsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultModelId_ = defaultModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoModelId_ = autoModelId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance()) return this; + if (resolvedModelsBuilder_ == null) { + if (!other.resolvedModels_.isEmpty()) { + if (resolvedModels_.isEmpty()) { + resolvedModels_ = other.resolvedModels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResolvedModelsIsMutable(); + resolvedModels_.addAll(other.resolvedModels_); + } + onChanged(); + } + } else { + if (!other.resolvedModels_.isEmpty()) { + if (resolvedModelsBuilder_.isEmpty()) { + resolvedModelsBuilder_.dispose(); + resolvedModelsBuilder_ = null; + resolvedModels_ = other.resolvedModels_; + bitField0_ = (bitField0_ & ~0x00000001); + resolvedModelsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResolvedModelsFieldBuilder() + : null; + } else { + resolvedModelsBuilder_.addAllMessages(other.resolvedModels_); + } + } + } + if (!other.getDefaultModelId().isEmpty()) { + defaultModelId_ = other.defaultModelId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAutoModelId().isEmpty()) { + autoModelId_ = other.autoModelId_; + 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: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .ModelConfigInfo.ResolvedModel.parser(), + extensionRegistry); + if (resolvedModelsBuilder_ == null) { + ensureResolvedModelsIsMutable(); + resolvedModels_.add(m); + } else { + resolvedModelsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + defaultModelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + autoModelId_ = 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.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel> + resolvedModels_ = java.util.Collections.emptyList(); + + private void ensureResolvedModelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resolvedModels_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel>(resolvedModels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder> + resolvedModelsBuilder_; + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel> + getResolvedModelsList() { + if (resolvedModelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resolvedModels_); + } else { + return resolvedModelsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getResolvedModelsCount() { + if (resolvedModelsBuilder_ == null) { + return resolvedModels_.size(); + } else { + return resolvedModelsBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + getResolvedModels(int index) { + if (resolvedModelsBuilder_ == null) { + return resolvedModels_.get(index); + } else { + return resolvedModelsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResolvedModels( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + value) { + if (resolvedModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResolvedModelsIsMutable(); + resolvedModels_.set(index, value); + onChanged(); + } else { + resolvedModelsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResolvedModels( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder + builderForValue) { + if (resolvedModelsBuilder_ == null) { + ensureResolvedModelsIsMutable(); + resolvedModels_.set(index, builderForValue.build()); + onChanged(); + } else { + resolvedModelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResolvedModels( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + value) { + if (resolvedModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResolvedModelsIsMutable(); + resolvedModels_.add(value); + onChanged(); + } else { + resolvedModelsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResolvedModels( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel + value) { + if (resolvedModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResolvedModelsIsMutable(); + resolvedModels_.add(index, value); + onChanged(); + } else { + resolvedModelsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResolvedModels( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder + builderForValue) { + if (resolvedModelsBuilder_ == null) { + ensureResolvedModelsIsMutable(); + resolvedModels_.add(builderForValue.build()); + onChanged(); + } else { + resolvedModelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addResolvedModels( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder + builderForValue) { + if (resolvedModelsBuilder_ == null) { + ensureResolvedModelsIsMutable(); + resolvedModels_.add(index, builderForValue.build()); + onChanged(); + } else { + resolvedModelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllResolvedModels( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel> + values) { + if (resolvedModelsBuilder_ == null) { + ensureResolvedModelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resolvedModels_); + onChanged(); + } else { + resolvedModelsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResolvedModels() { + if (resolvedModelsBuilder_ == null) { + resolvedModels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resolvedModelsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeResolvedModels(int index) { + if (resolvedModelsBuilder_ == null) { + ensureResolvedModelsIsMutable(); + resolvedModels_.remove(index); + onChanged(); + } else { + resolvedModelsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder + getResolvedModelsBuilder(int index) { + return internalGetResolvedModelsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder + getResolvedModelsOrBuilder(int index) { + if (resolvedModelsBuilder_ == null) { + return resolvedModels_.get(index); + } else { + return resolvedModelsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder> + getResolvedModelsOrBuilderList() { + if (resolvedModelsBuilder_ != null) { + return resolvedModelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resolvedModels_); + } + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder + addResolvedModelsBuilder() { + return internalGetResolvedModelsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.getDefaultInstance()); + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder + addResolvedModelsBuilder(int index) { + return internalGetResolvedModelsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.getDefaultInstance()); + } + + /** + * + * + *
+         * Output only. The list of models that are available to the end-user in
+         * the model selector, in the order in which they should be displayed.
+         * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder> + getResolvedModelsBuilderList() { + return internalGetResolvedModelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder> + internalGetResolvedModelsFieldBuilder() { + if (resolvedModelsBuilder_ == null) { + resolvedModelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModel.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .ResolvedModelOrBuilder>( + resolvedModels_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + resolvedModels_ = null; + } + return resolvedModelsBuilder_; + } + + private java.lang.Object defaultModelId_ = ""; + + /** + * + * + *
+         * Output only. The `model_id` of the model that should be selected by
+         * default in the model selector when the end-user has not made an
+         * explicit choice. The value is always one of the `model_id`s present in
+         * `resolved_models`.
+         * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultModelId. + */ + public java.lang.String getDefaultModelId() { + java.lang.Object ref = defaultModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Output only. The `model_id` of the model that should be selected by
+         * default in the model selector when the end-user has not made an
+         * explicit choice. The value is always one of the `model_id`s present in
+         * `resolved_models`.
+         * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultModelId. + */ + public com.google.protobuf.ByteString getDefaultModelIdBytes() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Output only. The `model_id` of the model that should be selected by
+         * default in the model selector when the end-user has not made an
+         * explicit choice. The value is always one of the `model_id`s present in
+         * `resolved_models`.
+         * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The defaultModelId to set. + * @return This builder for chaining. + */ + public Builder setDefaultModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultModelId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The `model_id` of the model that should be selected by
+         * default in the model selector when the end-user has not made an
+         * explicit choice. The value is always one of the `model_id`s present in
+         * `resolved_models`.
+         * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultModelId() { + defaultModelId_ = getDefaultInstance().getDefaultModelId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The `model_id` of the model that should be selected by
+         * default in the model selector when the end-user has not made an
+         * explicit choice. The value is always one of the `model_id`s present in
+         * `resolved_models`.
+         * 
+ * + * string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for defaultModelId to set. + * @return This builder for chaining. + */ + public Builder setDefaultModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultModelId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object autoModelId_ = ""; + + /** + * + * + *
+         * Output only. The `model_id` a client must send when the end-user picks
+         * the "Auto" entry (the empty `model_id`).
+         *
+         * Populated only for surfaces known to have no true "Auto" mode, where
+         * leaving the model unset would fall back to a platform default rather
+         * than a backend-chosen model. Empty on every other surface, where
+         * "Auto" is resolved server-side, and when none of the surface's ranked
+         * models is available. When set, it is always one of the non-empty
+         * `model_id`s present in `resolved_models`.
+         * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The autoModelId. + */ + public java.lang.String getAutoModelId() { + java.lang.Object ref = autoModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Output only. The `model_id` a client must send when the end-user picks
+         * the "Auto" entry (the empty `model_id`).
+         *
+         * Populated only for surfaces known to have no true "Auto" mode, where
+         * leaving the model unset would fall back to a platform default rather
+         * than a backend-chosen model. Empty on every other surface, where
+         * "Auto" is resolved server-side, and when none of the surface's ranked
+         * models is available. When set, it is always one of the non-empty
+         * `model_id`s present in `resolved_models`.
+         * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for autoModelId. + */ + public com.google.protobuf.ByteString getAutoModelIdBytes() { + java.lang.Object ref = autoModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Output only. The `model_id` a client must send when the end-user picks
+         * the "Auto" entry (the empty `model_id`).
+         *
+         * Populated only for surfaces known to have no true "Auto" mode, where
+         * leaving the model unset would fall back to a platform default rather
+         * than a backend-chosen model. Empty on every other surface, where
+         * "Auto" is resolved server-side, and when none of the surface's ranked
+         * models is available. When set, it is always one of the non-empty
+         * `model_id`s present in `resolved_models`.
+         * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The autoModelId to set. + * @return This builder for chaining. + */ + public Builder setAutoModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoModelId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The `model_id` a client must send when the end-user picks
+         * the "Auto" entry (the empty `model_id`).
+         *
+         * Populated only for surfaces known to have no true "Auto" mode, where
+         * leaving the model unset would fall back to a platform default rather
+         * than a backend-chosen model. Empty on every other surface, where
+         * "Auto" is resolved server-side, and when none of the surface's ranked
+         * models is available. When set, it is always one of the non-empty
+         * `model_id`s present in `resolved_models`.
+         * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAutoModelId() { + autoModelId_ = getDefaultInstance().getAutoModelId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The `model_id` a client must send when the end-user picks
+         * the "Auto" entry (the empty `model_id`).
+         *
+         * Populated only for surfaces known to have no true "Auto" mode, where
+         * leaving the model unset would fall back to a platform default rather
+         * than a backend-chosen model. Empty on every other surface, where
+         * "Auto" is resolved server-side, and when none of the surface's ranked
+         * models is available. When set, it is always one of the non-empty
+         * `model_id`s present in `resolved_models`.
+         * 
+ * + * string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for autoModelId to set. + * @return This builder for chaining. + */ + public Builder setAutoModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoModelId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .ModelConfigInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelConfigInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchAddonSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. If true, semantic add-on is disabled. Semantic add-on
+       * includes embeddings and jetstream.
+       * 
+ * + * bool semantic_add_on_disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The semanticAddOnDisabled. + */ + boolean getSemanticAddOnDisabled(); + + /** + * + * + *
+       * Optional. If true, disables event re-ranking and personalization to
+       * optimize KPIs & personalize results.
+       * 
+ * + * + * bool kpi_personalization_add_on_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kpiPersonalizationAddOnDisabled. + */ + boolean getKpiPersonalizationAddOnDisabled(); + + /** + * + * + *
+       * Optional. If true, generative answer add-on is disabled. Generative
+       * answer add-on includes natural language to filters and simple answers.
+       * 
+ * + * bool generative_answer_add_on_disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generativeAnswerAddOnDisabled. + */ + boolean getGenerativeAnswerAddOnDisabled(); + } + + /** + * + * + *
+     * SearchAddonSpec is used to disable add-ons for search. By default, if
+     * this field is not specified, add-ons are enabled wherever applicable.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec} + */ + public static final class SearchAddonSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) + SearchAddonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchAddonSpec"); + } + + // Use SearchAddonSpec.newBuilder() to construct. + private SearchAddonSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAddonSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.Builder + .class); + } + + public static final int SEMANTIC_ADD_ON_DISABLED_FIELD_NUMBER = 1; + private boolean semanticAddOnDisabled_ = false; + + /** + * + * + *
+       * Optional. If true, semantic add-on is disabled. Semantic add-on
+       * includes embeddings and jetstream.
+       * 
+ * + * bool semantic_add_on_disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The semanticAddOnDisabled. + */ + @java.lang.Override + public boolean getSemanticAddOnDisabled() { + return semanticAddOnDisabled_; + } + + public static final int KPI_PERSONALIZATION_ADD_ON_DISABLED_FIELD_NUMBER = 2; + private boolean kpiPersonalizationAddOnDisabled_ = false; + + /** + * + * + *
+       * Optional. If true, disables event re-ranking and personalization to
+       * optimize KPIs & personalize results.
+       * 
+ * + * + * bool kpi_personalization_add_on_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kpiPersonalizationAddOnDisabled. + */ + @java.lang.Override + public boolean getKpiPersonalizationAddOnDisabled() { + return kpiPersonalizationAddOnDisabled_; + } + + public static final int GENERATIVE_ANSWER_ADD_ON_DISABLED_FIELD_NUMBER = 3; + private boolean generativeAnswerAddOnDisabled_ = false; + + /** + * + * + *
+       * Optional. If true, generative answer add-on is disabled. Generative
+       * answer add-on includes natural language to filters and simple answers.
+       * 
+ * + * bool generative_answer_add_on_disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generativeAnswerAddOnDisabled. + */ + @java.lang.Override + public boolean getGenerativeAnswerAddOnDisabled() { + return generativeAnswerAddOnDisabled_; + } + + 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 (semanticAddOnDisabled_ != false) { + output.writeBool(1, semanticAddOnDisabled_); + } + if (kpiPersonalizationAddOnDisabled_ != false) { + output.writeBool(2, kpiPersonalizationAddOnDisabled_); + } + if (generativeAnswerAddOnDisabled_ != false) { + output.writeBool(3, generativeAnswerAddOnDisabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (semanticAddOnDisabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, semanticAddOnDisabled_); + } + if (kpiPersonalizationAddOnDisabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, kpiPersonalizationAddOnDisabled_); + } + if (generativeAnswerAddOnDisabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, generativeAnswerAddOnDisabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) obj; + + if (getSemanticAddOnDisabled() != other.getSemanticAddOnDisabled()) return false; + if (getKpiPersonalizationAddOnDisabled() != other.getKpiPersonalizationAddOnDisabled()) + return false; + if (getGenerativeAnswerAddOnDisabled() != other.getGenerativeAnswerAddOnDisabled()) + 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) + SEMANTIC_ADD_ON_DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSemanticAddOnDisabled()); + hash = (37 * hash) + KPI_PERSONALIZATION_ADD_ON_DISABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getKpiPersonalizationAddOnDisabled()); + hash = (37 * hash) + GENERATIVE_ANSWER_ADD_ON_DISABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getGenerativeAnswerAddOnDisabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * SearchAddonSpec is used to disable add-ons for search. By default, if
+       * this field is not specified, add-ons are enabled wherever applicable.
+       * 
+ * + * Protobuf type {@code + * google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + semanticAddOnDisabled_ = false; + kpiPersonalizationAddOnDisabled_ = false; + generativeAnswerAddOnDisabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.semanticAddOnDisabled_ = semanticAddOnDisabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kpiPersonalizationAddOnDisabled_ = kpiPersonalizationAddOnDisabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.generativeAnswerAddOnDisabled_ = generativeAnswerAddOnDisabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance()) return this; + if (other.getSemanticAddOnDisabled() != false) { + setSemanticAddOnDisabled(other.getSemanticAddOnDisabled()); + } + if (other.getKpiPersonalizationAddOnDisabled() != false) { + setKpiPersonalizationAddOnDisabled(other.getKpiPersonalizationAddOnDisabled()); + } + if (other.getGenerativeAnswerAddOnDisabled() != false) { + setGenerativeAnswerAddOnDisabled(other.getGenerativeAnswerAddOnDisabled()); + } + 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: + { + semanticAddOnDisabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + kpiPersonalizationAddOnDisabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + generativeAnswerAddOnDisabled_ = input.readBool(); + 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 boolean semanticAddOnDisabled_; + + /** + * + * + *
+         * Optional. If true, semantic add-on is disabled. Semantic add-on
+         * includes embeddings and jetstream.
+         * 
+ * + * bool semantic_add_on_disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The semanticAddOnDisabled. + */ + @java.lang.Override + public boolean getSemanticAddOnDisabled() { + return semanticAddOnDisabled_; + } + + /** + * + * + *
+         * Optional. If true, semantic add-on is disabled. Semantic add-on
+         * includes embeddings and jetstream.
+         * 
+ * + * bool semantic_add_on_disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The semanticAddOnDisabled to set. + * @return This builder for chaining. + */ + public Builder setSemanticAddOnDisabled(boolean value) { + + semanticAddOnDisabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If true, semantic add-on is disabled. Semantic add-on
+         * includes embeddings and jetstream.
+         * 
+ * + * bool semantic_add_on_disabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSemanticAddOnDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + semanticAddOnDisabled_ = false; + onChanged(); + return this; + } + + private boolean kpiPersonalizationAddOnDisabled_; + + /** + * + * + *
+         * Optional. If true, disables event re-ranking and personalization to
+         * optimize KPIs & personalize results.
+         * 
+ * + * + * bool kpi_personalization_add_on_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kpiPersonalizationAddOnDisabled. + */ + @java.lang.Override + public boolean getKpiPersonalizationAddOnDisabled() { + return kpiPersonalizationAddOnDisabled_; + } + + /** + * + * + *
+         * Optional. If true, disables event re-ranking and personalization to
+         * optimize KPIs & personalize results.
+         * 
+ * + * + * bool kpi_personalization_add_on_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The kpiPersonalizationAddOnDisabled to set. + * @return This builder for chaining. + */ + public Builder setKpiPersonalizationAddOnDisabled(boolean value) { + + kpiPersonalizationAddOnDisabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If true, disables event re-ranking and personalization to
+         * optimize KPIs & personalize results.
+         * 
+ * + * + * bool kpi_personalization_add_on_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearKpiPersonalizationAddOnDisabled() { + bitField0_ = (bitField0_ & ~0x00000002); + kpiPersonalizationAddOnDisabled_ = false; + onChanged(); + return this; + } + + private boolean generativeAnswerAddOnDisabled_; + + /** + * + * + *
+         * Optional. If true, generative answer add-on is disabled. Generative
+         * answer add-on includes natural language to filters and simple answers.
+         * 
+ * + * + * bool generative_answer_add_on_disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generativeAnswerAddOnDisabled. + */ + @java.lang.Override + public boolean getGenerativeAnswerAddOnDisabled() { + return generativeAnswerAddOnDisabled_; + } + + /** + * + * + *
+         * Optional. If true, generative answer add-on is disabled. Generative
+         * answer add-on includes natural language to filters and simple answers.
+         * 
+ * + * + * bool generative_answer_add_on_disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The generativeAnswerAddOnDisabled to set. + * @return This builder for chaining. + */ + public Builder setGenerativeAnswerAddOnDisabled(boolean value) { + + generativeAnswerAddOnDisabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. If true, generative answer add-on is disabled. Generative
+         * answer add-on includes natural language to filters and simple answers.
+         * 
+ * + * + * bool generative_answer_add_on_disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGenerativeAnswerAddOnDisabled() { + bitField0_ = (bitField0_ & ~0x00000004); + generativeAnswerAddOnDisabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .SearchAddonSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAddonSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; + private int interactionType_ = 0; + + /** + * + * + *
+     * Describes widget (or web app) interaction type
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return The enum numeric value on the wire for interactionType. + */ + @java.lang.Override + public int getInteractionTypeValue() { + return interactionType_; + } + + /** + * + * + *
+     * Describes widget (or web app) interaction type
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return The interactionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType + getInteractionType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType.forNumber( + interactionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType.UNRECOGNIZED + : result; + } + + public static final int GENERATIVE_ANSWER_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + generativeAnswerConfig_; + + /** + * + * + *
+     * Describes generative answer configuration.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + * + * @return Whether the generativeAnswerConfig field is set. + */ + @java.lang.Override + public boolean hasGenerativeAnswerConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Describes generative answer configuration.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + * + * @return The generativeAnswerConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + getGenerativeAnswerConfig() { + return generativeAnswerConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDefaultInstance() + : generativeAnswerConfig_; + } + + /** + * + * + *
+     * Describes generative answer configuration.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfigOrBuilder + getGenerativeAnswerConfigOrBuilder() { + return generativeAnswerConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDefaultInstance() + : generativeAnswerConfig_; + } + + public static final int RESULT_DESCRIPTION_TYPE_FIELD_NUMBER = 3; + private int resultDescriptionType_ = 0; + + /** + * + * + *
+     * Controls whether result extract is display and how (snippet or
+     * extractive answer). Default to no result if unspecified.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return The enum numeric value on the wire for resultDescriptionType. + */ + @java.lang.Override + public int getResultDescriptionTypeValue() { + return resultDescriptionType_; + } + + /** + * + * + *
+     * Controls whether result extract is display and how (snippet or
+     * extractive answer). Default to no result if unspecified.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return The resultDescriptionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType + getResultDescriptionType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType.forNumber( + resultDescriptionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType.UNRECOGNIZED + : result; + } + + public static final int ENABLE_AUTOCOMPLETE_FIELD_NUMBER = 4; + private boolean enableAutocomplete_ = false; + + /** + * + * + *
+     * Whether or not to enable autocomplete.
+     * 
+ * + * bool enable_autocomplete = 4; + * + * @return The enableAutocomplete. + */ + @java.lang.Override + public boolean getEnableAutocomplete() { + return enableAutocomplete_; + } + + public static final int ENABLE_SAFE_SEARCH_FIELD_NUMBER = 5; + private boolean enableSafeSearch_ = false; + + /** + * + * + *
+     * Whether to enable safe search.
+     * 
+ * + * bool enable_safe_search = 5; + * + * @return The enableSafeSearch. + */ + @java.lang.Override + public boolean getEnableSafeSearch() { + return enableSafeSearch_; + } + + public static final int ENABLE_QUALITY_FEEDBACK_FIELD_NUMBER = 6; + private boolean enableQualityFeedback_ = false; + + /** + * + * + *
+     * Turn on or off collecting the search result quality feedback from end
+     * users.
+     * 
+ * + * bool enable_quality_feedback = 6; + * + * @return The enableQualityFeedback. + */ + @java.lang.Override + public boolean getEnableQualityFeedback() { + return enableQualityFeedback_; + } + + public static final int ENABLE_SEARCH_AS_YOU_TYPE_FIELD_NUMBER = 7; + private boolean enableSearchAsYouType_ = false; + + /** + * + * + *
+     * Whether to enable search-as-you-type behavior for the search widget.
+     * 
+ * + * bool enable_search_as_you_type = 7; + * + * @return The enableSearchAsYouType. + */ + @java.lang.Override + public boolean getEnableSearchAsYouType() { + return enableSearchAsYouType_; + } + + public static final int DEFAULT_SEARCH_REQUEST_ORDER_BY_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultSearchRequestOrderBy_ = ""; + + /** + * + * + *
+     * The default ordering for search results if specified.
+     *
+     * Used to set SearchRequest#order_by on applicable requests.
+     * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+     * 
+ * + * string default_search_request_order_by = 8; + * + * @return The defaultSearchRequestOrderBy. + */ + @java.lang.Override + public java.lang.String getDefaultSearchRequestOrderBy() { + java.lang.Object ref = defaultSearchRequestOrderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSearchRequestOrderBy_ = s; + return s; + } + } + + /** + * + * + *
+     * The default ordering for search results if specified.
+     *
+     * Used to set SearchRequest#order_by on applicable requests.
+     * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+     * 
+ * + * string default_search_request_order_by = 8; + * + * @return The bytes for defaultSearchRequestOrderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultSearchRequestOrderByBytes() { + java.lang.Object ref = defaultSearchRequestOrderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultSearchRequestOrderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STORE_UI_CONFIGS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + dataStoreUiConfigs_; + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + @java.lang.Override + public java.util.List + getDataStoreUiConfigsList() { + return dataStoreUiConfigs_; + } + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder> + getDataStoreUiConfigsOrBuilderList() { + return dataStoreUiConfigs_; + } + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + @java.lang.Override + public int getDataStoreUiConfigsCount() { + return dataStoreUiConfigs_.size(); + } + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig getDataStoreUiConfigs( + int index) { + return dataStoreUiConfigs_.get(index); + } + + /** + * + * + *
+     * Per data store configuration.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder + getDataStoreUiConfigsOrBuilder(int index) { + return dataStoreUiConfigs_.get(index); + } + + public static final int DISABLE_USER_EVENTS_COLLECTION_FIELD_NUMBER = 10; + private boolean disableUserEventsCollection_ = false; + + /** + * + * + *
+     * If set to true, the widget will not collect user events.
+     * 
+ * + * bool disable_user_events_collection = 10; + * + * @return The disableUserEventsCollection. + */ + @java.lang.Override + public boolean getDisableUserEventsCollection() { + return disableUserEventsCollection_; + } + + public static final int ENABLE_VISUAL_CONTENT_SUMMARY_FIELD_NUMBER = 11; + private boolean enableVisualContentSummary_ = false; + + /** + * + * + *
+     * If set to true, the widget will enable visual content summary on
+     * applicable search requests. Only used by healthcare search.
+     * 
+ * + * bool enable_visual_content_summary = 11; + * + * @return The enableVisualContentSummary. + */ + @java.lang.Override + public boolean getEnableVisualContentSummary() { + return enableVisualContentSummary_; + } + + public static final int ENABLE_PEOPLE_SEARCH_FIELD_NUMBER = 12; + private boolean enablePeopleSearch_ = false; + + /** + * + * + *
+     * Optional. If set to true, the widget will enable people search.
+     * 
+ * + * bool enable_people_search = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePeopleSearch. + */ + @java.lang.Override + public boolean getEnablePeopleSearch() { + return enablePeopleSearch_; + } + + public static final int ENABLE_CREATE_AGENT_BUTTON_FIELD_NUMBER = 13; + private boolean enableCreateAgentButton_ = false; + + /** + * + * + *
+     * Optional. If set to true, the widget will enable the create agent button.
+     * 
+ * + * bool enable_create_agent_button = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCreateAgentButton. + */ + @java.lang.Override + public boolean getEnableCreateAgentButton() { + return enableCreateAgentButton_; + } + + public static final int FEATURES_FIELD_NUMBER = 30; + + private static final class FeaturesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_FeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + .FEATURE_STATE_UNSPECIFIED + .getNumber()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField features_; + + private com.google.protobuf.MapField + internalGetFeatures() { + if (features_ == null) { + return com.google.protobuf.MapField.emptyMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + return features_; + } + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + featuresValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + .internalGetValueMap(), + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + .UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + internalGetAdaptedFeaturesMap(java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState, + java.lang.Integer>(map, featuresValueConverter); + } + + public int getFeaturesCount() { + return internalGetFeatures().getMap().size(); + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatures().getMap().containsKey(key); + } + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getFeatures() { + return getFeaturesMap(); + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getFeaturesMap() { + return internalGetAdaptedFeaturesMap(internalGetFeatures().getMap()); + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? featuresValueConverter.doForward(map.get(key)) : defaultValue; + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + getFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return featuresValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeaturesValue() { + return getFeaturesValueMap(); + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getFeaturesValueMap() { + return internalGetFeatures().getMap(); + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFeaturesValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Feature config for the engine to opt in or opt out of
+     * features. Supported keys:
+     *
+     * * `agent-gallery`
+     * * `no-code-agent-builder`
+     * * `prompt-gallery`
+     * * `model-selector`
+     * * `notebook-lm`
+     * * `people-search`
+     * * `people-search-org-chart`
+     * * `bi-directional-audio`
+     * * `speech-to-text`
+     * * `feedback`
+     * * `session-sharing`
+     * * `personalization-memory`
+     * * `personalization-suggested-highlights`
+     * * `mobile-app-access`
+     * * `disable-agent-sharing`
+     * * `disable-image-generation`
+     * * `disable-video-generation`
+     * * `disable-onedrive-upload`
+     * * `disable-talk-to-content`
+     * * `disable-google-drive-upload`
+     * * `disable-welcome-emails`
+     * * `disable-canvas`
+     * * `canvas-workspace`
+     * * `canvas-app-builder`
+     * * `skills`
+     * * `skill-sharing`
+     * * `skill-sharing-without-admin-approval`
+     * * `disable-projects`
+     * * `sobi`
+     * * `enable-end-user-sharing-with-groups`
+     * * `single-agent-orchestration`
+     * * `multi-agent-orchestration`
+     * * `cross-product-intelligence`
+     * * `workflow-agents`
+     * * `in-app-notifications`
+     * * `code-extraction`
+     * * `remote-vm`
+     * * `license-tier-badge`
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFeaturesValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MODEL_CONFIGS_FIELD_NUMBER = 45; + + private static final class ModelConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + .MODEL_STATE_UNSPECIFIED + .getNumber()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField modelConfigs_; + + private com.google.protobuf.MapField + internalGetModelConfigs() { + if (modelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelConfigsDefaultEntryHolder.defaultEntry); + } + return modelConfigs_; + } + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + modelConfigsValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + .internalGetValueMap(), + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + .UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + internalGetAdaptedModelConfigsMap(java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState, + java.lang.Integer>(map, modelConfigsValueConverter); + } + + public int getModelConfigsCount() { + return internalGetModelConfigs().getMap().size(); + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModelConfigs().getMap().containsKey(key); + } + + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getModelConfigs() { + return getModelConfigsMap(); + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getModelConfigsMap() { + return internalGetAdaptedModelConfigsMap(internalGetModelConfigs().getMap()); + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) + ? modelConfigsValueConverter.doForward(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + getModelConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelConfigsValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelConfigsValue() { + return getModelConfigsValueMap(); + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getModelConfigsValueMap() { + return internalGetModelConfigs().getMap(); + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. Maps a model name to its specific configuration for this
+     * engine. This allows admin users to turn on/off individual models. This
+     * only stores models whose states are overridden by the admin.
+     *
+     * When the state is unspecified, or model_configs is empty for this
+     * model, the system will decide if this model should be available or not
+     * based on the default configuration. For example, a preview model
+     * should be disabled by default if the admin has not chosen to enable it.
+     * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SEARCH_ADDON_SPEC_FIELD_NUMBER = 31; + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + searchAddonSpec_; + + /** + * + * + *
+     * Optional. SearchAddonSpec is used to disable add-ons for search.
+     * This field is only supported for search requests.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchAddonSpec field is set. + */ + @java.lang.Override + public boolean hasSearchAddonSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. SearchAddonSpec is used to disable add-ons for search.
+     * This field is only supported for search requests.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchAddonSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + getSearchAddonSpec() { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance() + : searchAddonSpec_; + } + + /** + * + * + *
+     * Optional. SearchAddonSpec is used to disable add-ons for search.
+     * This field is only supported for search requests.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecOrBuilder + getSearchAddonSpecOrBuilder() { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance() + : searchAddonSpec_; + } + + public static final int ONEDRIVE_PICKER_ENABLED_FIELD_NUMBER = 48; + private boolean onedrivePickerEnabled_ = false; + + /** + * + * + *
+     * Output only. Whether the OneDrive file picker is available to end-users.
+     * Computed by the backend from admin connector enablement (Business
+     * edition) or attached OneDrive connectors (Enterprise edition), combined
+     * with the existing `disable-onedrive-upload` admin feature.
+     *
+     * Declared `optional` so an explicitly-computed `false` is serialized with
+     * field presence. A plain proto3 `bool` drops a default `false` on the
+     * wire, which prevented clients from distinguishing "picker disabled"
+     * (`false`) from "field not populated" (unset).
+     * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the onedrivePickerEnabled field is set. + */ + @java.lang.Override + public boolean hasOnedrivePickerEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Whether the OneDrive file picker is available to end-users.
+     * Computed by the backend from admin connector enablement (Business
+     * edition) or attached OneDrive connectors (Enterprise edition), combined
+     * with the existing `disable-onedrive-upload` admin feature.
+     *
+     * Declared `optional` so an explicitly-computed `false` is serialized with
+     * field presence. A plain proto3 `bool` drops a default `false` on the
+     * wire, which prevented clients from distinguishing "picker disabled"
+     * (`false`) from "field not populated" (unset).
+     * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The onedrivePickerEnabled. + */ + @java.lang.Override + public boolean getOnedrivePickerEnabled() { + return onedrivePickerEnabled_; + } + + public static final int GOOGLE_DRIVE_PICKER_ENABLED_FIELD_NUMBER = 49; + private boolean googleDrivePickerEnabled_ = false; + + /** + * + * + *
+     * Output only. Whether the Google Drive file picker is available to
+     * end-users. Declared `optional` for the same field-presence reason as
+     * `onedrive_picker_enabled` above.
+     * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the googleDrivePickerEnabled field is set. + */ + @java.lang.Override + public boolean hasGoogleDrivePickerEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Whether the Google Drive file picker is available to
+     * end-users. Declared `optional` for the same field-presence reason as
+     * `onedrive_picker_enabled` above.
+     * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleDrivePickerEnabled. + */ + @java.lang.Override + public boolean getGoogleDrivePickerEnabled() { + return googleDrivePickerEnabled_; + } + + public static final int MODEL_CONFIG_INFO_FIELD_NUMBER = 50; + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + modelConfigInfo_; + + /** + * + * + *
+     * Output only. The resolved, server-side view of model selector
+     * configuration. Holds both the ordered list of models that should appear
+     * in the model selector dropdown and the model that should be selected by
+     * default.
+     *
+     * Clients should render this directly without applying their own
+     * filtering, ordering, or localization. The legacy `model_configs` map
+     * above is retained for backward compatibility with clients that have not
+     * yet migrated to consuming this field.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the modelConfigInfo field is set. + */ + @java.lang.Override + public boolean hasModelConfigInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The resolved, server-side view of model selector
+     * configuration. Holds both the ordered list of models that should appear
+     * in the model selector dropdown and the model that should be selected by
+     * default.
+     *
+     * Clients should render this directly without applying their own
+     * filtering, ordering, or localization. The legacy `model_configs` map
+     * above is retained for backward compatibility with clients that have not
+     * yet migrated to consuming this field.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelConfigInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + getModelConfigInfo() { + return modelConfigInfo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance() + : modelConfigInfo_; + } + + /** + * + * + *
+     * Output only. The resolved, server-side view of model selector
+     * configuration. Holds both the ordered list of models that should appear
+     * in the model selector dropdown and the model that should be selected by
+     * default.
+     *
+     * Clients should render this directly without applying their own
+     * filtering, ordering, or localization. The legacy `model_configs` map
+     * above is retained for backward compatibility with clients that have not
+     * yet migrated to consuming this field.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoOrBuilder + getModelConfigInfoOrBuilder() { + return modelConfigInfo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance() + : modelConfigInfo_; + } + + public static final int SOURCE_ADMIN_DISPLAY_NAME_ENABLED_FIELD_NUMBER = 51; + private boolean sourceAdminDisplayNameEnabled_ = false; + + /** + * + * + *
+     * Optional. Whether to show the admin-configured display name for data
+     * connectors in the widget sources UI (instead of the connector kind).
+     * Opt-in; defaults to false.
+     * 
+ * + * bool source_admin_display_name_enabled = 51 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceAdminDisplayNameEnabled. + */ + @java.lang.Override + public boolean getSourceAdminDisplayNameEnabled() { + return sourceAdminDisplayNameEnabled_; + } + + 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 (interactionType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType + .INTERACTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, interactionType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getGenerativeAnswerConfig()); + } + if (resultDescriptionType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType + .RESULT_DISPLAY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, resultDescriptionType_); + } + if (enableAutocomplete_ != false) { + output.writeBool(4, enableAutocomplete_); + } + if (enableSafeSearch_ != false) { + output.writeBool(5, enableSafeSearch_); + } + if (enableQualityFeedback_ != false) { + output.writeBool(6, enableQualityFeedback_); + } + if (enableSearchAsYouType_ != false) { + output.writeBool(7, enableSearchAsYouType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSearchRequestOrderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, defaultSearchRequestOrderBy_); + } + for (int i = 0; i < dataStoreUiConfigs_.size(); i++) { + output.writeMessage(9, dataStoreUiConfigs_.get(i)); + } + if (disableUserEventsCollection_ != false) { + output.writeBool(10, disableUserEventsCollection_); + } + if (enableVisualContentSummary_ != false) { + output.writeBool(11, enableVisualContentSummary_); + } + if (enablePeopleSearch_ != false) { + output.writeBool(12, enablePeopleSearch_); + } + if (enableCreateAgentButton_ != false) { + output.writeBool(13, enableCreateAgentButton_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetFeatures(), FeaturesDefaultEntryHolder.defaultEntry, 30); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(31, getSearchAddonSpec()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetModelConfigs(), ModelConfigsDefaultEntryHolder.defaultEntry, 45); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(48, onedrivePickerEnabled_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(49, googleDrivePickerEnabled_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(50, getModelConfigInfo()); + } + if (sourceAdminDisplayNameEnabled_ != false) { + output.writeBool(51, sourceAdminDisplayNameEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (interactionType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType + .INTERACTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, interactionType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getGenerativeAnswerConfig()); + } + if (resultDescriptionType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType + .RESULT_DISPLAY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultDescriptionType_); + } + if (enableAutocomplete_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableAutocomplete_); + } + if (enableSafeSearch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableSafeSearch_); + } + if (enableQualityFeedback_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enableQualityFeedback_); + } + if (enableSearchAsYouType_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableSearchAsYouType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSearchRequestOrderBy_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(8, defaultSearchRequestOrderBy_); + } + for (int i = 0; i < dataStoreUiConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, dataStoreUiConfigs_.get(i)); + } + if (disableUserEventsCollection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, disableUserEventsCollection_); + } + if (enableVisualContentSummary_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableVisualContentSummary_); + } + if (enablePeopleSearch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, enablePeopleSearch_); + } + if (enableCreateAgentButton_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableCreateAgentButton_); + } + for (java.util.Map.Entry entry : + internalGetFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry features__ = + FeaturesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, features__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSearchAddonSpec()); + } + for (java.util.Map.Entry entry : + internalGetModelConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry modelConfigs__ = + ModelConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, modelConfigs__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(48, onedrivePickerEnabled_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(49, googleDrivePickerEnabled_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getModelConfigInfo()); + } + if (sourceAdminDisplayNameEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 51, sourceAdminDisplayNameEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) obj; + + if (interactionType_ != other.interactionType_) return false; + if (hasGenerativeAnswerConfig() != other.hasGenerativeAnswerConfig()) return false; + if (hasGenerativeAnswerConfig()) { + if (!getGenerativeAnswerConfig().equals(other.getGenerativeAnswerConfig())) return false; + } + if (resultDescriptionType_ != other.resultDescriptionType_) return false; + if (getEnableAutocomplete() != other.getEnableAutocomplete()) return false; + if (getEnableSafeSearch() != other.getEnableSafeSearch()) return false; + if (getEnableQualityFeedback() != other.getEnableQualityFeedback()) return false; + if (getEnableSearchAsYouType() != other.getEnableSearchAsYouType()) return false; + if (!getDefaultSearchRequestOrderBy().equals(other.getDefaultSearchRequestOrderBy())) + return false; + if (!getDataStoreUiConfigsList().equals(other.getDataStoreUiConfigsList())) return false; + if (getDisableUserEventsCollection() != other.getDisableUserEventsCollection()) return false; + if (getEnableVisualContentSummary() != other.getEnableVisualContentSummary()) return false; + if (getEnablePeopleSearch() != other.getEnablePeopleSearch()) return false; + if (getEnableCreateAgentButton() != other.getEnableCreateAgentButton()) return false; + if (!internalGetFeatures().equals(other.internalGetFeatures())) return false; + if (!internalGetModelConfigs().equals(other.internalGetModelConfigs())) return false; + if (hasSearchAddonSpec() != other.hasSearchAddonSpec()) return false; + if (hasSearchAddonSpec()) { + if (!getSearchAddonSpec().equals(other.getSearchAddonSpec())) return false; + } + if (hasOnedrivePickerEnabled() != other.hasOnedrivePickerEnabled()) return false; + if (hasOnedrivePickerEnabled()) { + if (getOnedrivePickerEnabled() != other.getOnedrivePickerEnabled()) return false; + } + if (hasGoogleDrivePickerEnabled() != other.hasGoogleDrivePickerEnabled()) return false; + if (hasGoogleDrivePickerEnabled()) { + if (getGoogleDrivePickerEnabled() != other.getGoogleDrivePickerEnabled()) return false; + } + if (hasModelConfigInfo() != other.hasModelConfigInfo()) return false; + if (hasModelConfigInfo()) { + if (!getModelConfigInfo().equals(other.getModelConfigInfo())) return false; + } + if (getSourceAdminDisplayNameEnabled() != other.getSourceAdminDisplayNameEnabled()) + 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) + INTERACTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + interactionType_; + if (hasGenerativeAnswerConfig()) { + hash = (37 * hash) + GENERATIVE_ANSWER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeAnswerConfig().hashCode(); + } + hash = (37 * hash) + RESULT_DESCRIPTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resultDescriptionType_; + hash = (37 * hash) + ENABLE_AUTOCOMPLETE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutocomplete()); + hash = (37 * hash) + ENABLE_SAFE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSafeSearch()); + hash = (37 * hash) + ENABLE_QUALITY_FEEDBACK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableQualityFeedback()); + hash = (37 * hash) + ENABLE_SEARCH_AS_YOU_TYPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSearchAsYouType()); + hash = (37 * hash) + DEFAULT_SEARCH_REQUEST_ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSearchRequestOrderBy().hashCode(); + if (getDataStoreUiConfigsCount() > 0) { + hash = (37 * hash) + DATA_STORE_UI_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreUiConfigsList().hashCode(); + } + hash = (37 * hash) + DISABLE_USER_EVENTS_COLLECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableUserEventsCollection()); + hash = (37 * hash) + ENABLE_VISUAL_CONTENT_SUMMARY_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVisualContentSummary()); + hash = (37 * hash) + ENABLE_PEOPLE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePeopleSearch()); + hash = (37 * hash) + ENABLE_CREATE_AGENT_BUTTON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCreateAgentButton()); + if (!internalGetFeatures().getMap().isEmpty()) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeatures().hashCode(); + } + if (!internalGetModelConfigs().getMap().isEmpty()) { + hash = (37 * hash) + MODEL_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetModelConfigs().hashCode(); + } + if (hasSearchAddonSpec()) { + hash = (37 * hash) + SEARCH_ADDON_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSearchAddonSpec().hashCode(); + } + if (hasOnedrivePickerEnabled()) { + hash = (37 * hash) + ONEDRIVE_PICKER_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOnedrivePickerEnabled()); + } + if (hasGoogleDrivePickerEnabled()) { + hash = (37 * hash) + GOOGLE_DRIVE_PICKER_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoogleDrivePickerEnabled()); + } + if (hasModelConfigInfo()) { + hash = (37 * hash) + MODEL_CONFIG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getModelConfigInfo().hashCode(); + } + hash = (37 * hash) + SOURCE_ADMIN_DISPLAY_NAME_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSourceAdminDisplayNameEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes general widget (or web app) UI settings as seen
+     * in the cloud console UI configuration page.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UiSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetFeatures(); + case 45: + return internalGetModelConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetMutableFeatures(); + case 45: + return internalGetMutableModelConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenerativeAnswerConfigFieldBuilder(); + internalGetDataStoreUiConfigsFieldBuilder(); + internalGetSearchAddonSpecFieldBuilder(); + internalGetModelConfigInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + interactionType_ = 0; + generativeAnswerConfig_ = null; + if (generativeAnswerConfigBuilder_ != null) { + generativeAnswerConfigBuilder_.dispose(); + generativeAnswerConfigBuilder_ = null; + } + resultDescriptionType_ = 0; + enableAutocomplete_ = false; + enableSafeSearch_ = false; + enableQualityFeedback_ = false; + enableSearchAsYouType_ = false; + defaultSearchRequestOrderBy_ = ""; + if (dataStoreUiConfigsBuilder_ == null) { + dataStoreUiConfigs_ = java.util.Collections.emptyList(); + } else { + dataStoreUiConfigs_ = null; + dataStoreUiConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + disableUserEventsCollection_ = false; + enableVisualContentSummary_ = false; + enablePeopleSearch_ = false; + enableCreateAgentButton_ = false; + internalGetMutableFeatures().clear(); + internalGetMutableModelConfigs().clear(); + searchAddonSpec_ = null; + if (searchAddonSpecBuilder_ != null) { + searchAddonSpecBuilder_.dispose(); + searchAddonSpecBuilder_ = null; + } + onedrivePickerEnabled_ = false; + googleDrivePickerEnabled_ = false; + modelConfigInfo_ = null; + if (modelConfigInfoBuilder_ != null) { + modelConfigInfoBuilder_.dispose(); + modelConfigInfoBuilder_ = null; + } + sourceAdminDisplayNameEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings result) { + if (dataStoreUiConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + dataStoreUiConfigs_ = java.util.Collections.unmodifiableList(dataStoreUiConfigs_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.dataStoreUiConfigs_ = dataStoreUiConfigs_; + } else { + result.dataStoreUiConfigs_ = dataStoreUiConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.interactionType_ = interactionType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.generativeAnswerConfig_ = + generativeAnswerConfigBuilder_ == null + ? generativeAnswerConfig_ + : generativeAnswerConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resultDescriptionType_ = resultDescriptionType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableAutocomplete_ = enableAutocomplete_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableSafeSearch_ = enableSafeSearch_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enableQualityFeedback_ = enableQualityFeedback_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.enableSearchAsYouType_ = enableSearchAsYouType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.defaultSearchRequestOrderBy_ = defaultSearchRequestOrderBy_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableUserEventsCollection_ = disableUserEventsCollection_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableVisualContentSummary_ = enableVisualContentSummary_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enablePeopleSearch_ = enablePeopleSearch_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.enableCreateAgentButton_ = enableCreateAgentButton_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.features_ = internalGetFeatures(); + result.features_.makeImmutable(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.modelConfigs_ = internalGetModelConfigs(); + result.modelConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.searchAddonSpec_ = + searchAddonSpecBuilder_ == null ? searchAddonSpec_ : searchAddonSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.onedrivePickerEnabled_ = onedrivePickerEnabled_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.googleDrivePickerEnabled_ = googleDrivePickerEnabled_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.modelConfigInfo_ = + modelConfigInfoBuilder_ == null ? modelConfigInfo_ : modelConfigInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.sourceAdminDisplayNameEnabled_ = sourceAdminDisplayNameEnabled_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDefaultInstance()) + return this; + if (other.interactionType_ != 0) { + setInteractionTypeValue(other.getInteractionTypeValue()); + } + if (other.hasGenerativeAnswerConfig()) { + mergeGenerativeAnswerConfig(other.getGenerativeAnswerConfig()); + } + if (other.resultDescriptionType_ != 0) { + setResultDescriptionTypeValue(other.getResultDescriptionTypeValue()); + } + if (other.getEnableAutocomplete() != false) { + setEnableAutocomplete(other.getEnableAutocomplete()); + } + if (other.getEnableSafeSearch() != false) { + setEnableSafeSearch(other.getEnableSafeSearch()); + } + if (other.getEnableQualityFeedback() != false) { + setEnableQualityFeedback(other.getEnableQualityFeedback()); + } + if (other.getEnableSearchAsYouType() != false) { + setEnableSearchAsYouType(other.getEnableSearchAsYouType()); + } + if (!other.getDefaultSearchRequestOrderBy().isEmpty()) { + defaultSearchRequestOrderBy_ = other.defaultSearchRequestOrderBy_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (dataStoreUiConfigsBuilder_ == null) { + if (!other.dataStoreUiConfigs_.isEmpty()) { + if (dataStoreUiConfigs_.isEmpty()) { + dataStoreUiConfigs_ = other.dataStoreUiConfigs_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.addAll(other.dataStoreUiConfigs_); + } + onChanged(); + } + } else { + if (!other.dataStoreUiConfigs_.isEmpty()) { + if (dataStoreUiConfigsBuilder_.isEmpty()) { + dataStoreUiConfigsBuilder_.dispose(); + dataStoreUiConfigsBuilder_ = null; + dataStoreUiConfigs_ = other.dataStoreUiConfigs_; + bitField0_ = (bitField0_ & ~0x00000100); + dataStoreUiConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataStoreUiConfigsFieldBuilder() + : null; + } else { + dataStoreUiConfigsBuilder_.addAllMessages(other.dataStoreUiConfigs_); + } + } + } + if (other.getDisableUserEventsCollection() != false) { + setDisableUserEventsCollection(other.getDisableUserEventsCollection()); + } + if (other.getEnableVisualContentSummary() != false) { + setEnableVisualContentSummary(other.getEnableVisualContentSummary()); + } + if (other.getEnablePeopleSearch() != false) { + setEnablePeopleSearch(other.getEnablePeopleSearch()); + } + if (other.getEnableCreateAgentButton() != false) { + setEnableCreateAgentButton(other.getEnableCreateAgentButton()); + } + internalGetMutableFeatures().mergeFrom(other.internalGetFeatures()); + bitField0_ |= 0x00002000; + internalGetMutableModelConfigs().mergeFrom(other.internalGetModelConfigs()); + bitField0_ |= 0x00004000; + if (other.hasSearchAddonSpec()) { + mergeSearchAddonSpec(other.getSearchAddonSpec()); + } + if (other.hasOnedrivePickerEnabled()) { + setOnedrivePickerEnabled(other.getOnedrivePickerEnabled()); + } + if (other.hasGoogleDrivePickerEnabled()) { + setGoogleDrivePickerEnabled(other.getGoogleDrivePickerEnabled()); + } + if (other.hasModelConfigInfo()) { + mergeModelConfigInfo(other.getModelConfigInfo()); + } + if (other.getSourceAdminDisplayNameEnabled() != false) { + setSourceAdminDisplayNameEnabled(other.getSourceAdminDisplayNameEnabled()); + } + 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: + { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetGenerativeAnswerConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + resultDescriptionType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + enableAutocomplete_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + enableSafeSearch_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + enableQualityFeedback_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + enableSearchAsYouType_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + defaultSearchRequestOrderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + .parser(), + extensionRegistry); + if (dataStoreUiConfigsBuilder_ == null) { + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.add(m); + } else { + dataStoreUiConfigsBuilder_.addMessage(m); + } + break; + } // case 74 + case 80: + { + disableUserEventsCollection_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + enableVisualContentSummary_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + enablePeopleSearch_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + enableCreateAgentButton_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 242: + { + com.google.protobuf.MapEntry features__ = + input.readMessage( + FeaturesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFeatures() + .getMutableMap() + .put(features__.getKey(), features__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 242 + case 250: + { + input.readMessage( + internalGetSearchAddonSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 250 + case 362: + { + com.google.protobuf.MapEntry modelConfigs__ = + input.readMessage( + ModelConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModelConfigs() + .getMutableMap() + .put(modelConfigs__.getKey(), modelConfigs__.getValue()); + bitField0_ |= 0x00004000; + break; + } // case 362 + case 384: + { + onedrivePickerEnabled_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 384 + case 392: + { + googleDrivePickerEnabled_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 392 + case 402: + { + input.readMessage( + internalGetModelConfigInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 402 + case 408: + { + sourceAdminDisplayNameEnabled_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 408 + 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 interactionType_ = 0; + + /** + * + * + *
+       * Describes widget (or web app) interaction type
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return The enum numeric value on the wire for interactionType. + */ + @java.lang.Override + public int getInteractionTypeValue() { + return interactionType_; + } + + /** + * + * + *
+       * Describes widget (or web app) interaction type
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @param value The enum numeric value on the wire for interactionType to set. + * @return This builder for chaining. + */ + public Builder setInteractionTypeValue(int value) { + interactionType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Describes widget (or web app) interaction type
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return The interactionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType + getInteractionType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType.forNumber( + interactionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Describes widget (or web app) interaction type
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @param value The interactionType to set. + * @return This builder for chaining. + */ + public Builder setInteractionType( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + interactionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Describes widget (or web app) interaction type
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.InteractionType interaction_type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearInteractionType() { + bitField0_ = (bitField0_ & ~0x00000001); + interactionType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + generativeAnswerConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfigOrBuilder> + generativeAnswerConfigBuilder_; + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + * + * @return Whether the generativeAnswerConfig field is set. + */ + public boolean hasGenerativeAnswerConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + * + * @return The generativeAnswerConfig. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + getGenerativeAnswerConfig() { + if (generativeAnswerConfigBuilder_ == null) { + return generativeAnswerConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDefaultInstance() + : generativeAnswerConfig_; + } else { + return generativeAnswerConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + public Builder setGenerativeAnswerConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + value) { + if (generativeAnswerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generativeAnswerConfig_ = value; + } else { + generativeAnswerConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + public Builder setGenerativeAnswerConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.Builder + builderForValue) { + if (generativeAnswerConfigBuilder_ == null) { + generativeAnswerConfig_ = builderForValue.build(); + } else { + generativeAnswerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + public Builder mergeGenerativeAnswerConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + value) { + if (generativeAnswerConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && generativeAnswerConfig_ != null + && generativeAnswerConfig_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig.getDefaultInstance()) { + getGenerativeAnswerConfigBuilder().mergeFrom(value); + } else { + generativeAnswerConfig_ = value; + } + } else { + generativeAnswerConfigBuilder_.mergeFrom(value); + } + if (generativeAnswerConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + public Builder clearGenerativeAnswerConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + generativeAnswerConfig_ = null; + if (generativeAnswerConfigBuilder_ != null) { + generativeAnswerConfigBuilder_.dispose(); + generativeAnswerConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .Builder + getGenerativeAnswerConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetGenerativeAnswerConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfigOrBuilder + getGenerativeAnswerConfigOrBuilder() { + if (generativeAnswerConfigBuilder_ != null) { + return generativeAnswerConfigBuilder_.getMessageOrBuilder(); + } else { + return generativeAnswerConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .getDefaultInstance() + : generativeAnswerConfig_; + } + } + + /** + * + * + *
+       * Describes generative answer configuration.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig generative_answer_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfigOrBuilder> + internalGetGenerativeAnswerConfigFieldBuilder() { + if (generativeAnswerConfigBuilder_ == null) { + generativeAnswerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig + .Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .GenerativeAnswerConfigOrBuilder>( + getGenerativeAnswerConfig(), getParentForChildren(), isClean()); + generativeAnswerConfig_ = null; + } + return generativeAnswerConfigBuilder_; + } + + private int resultDescriptionType_ = 0; + + /** + * + * + *
+       * Controls whether result extract is display and how (snippet or
+       * extractive answer). Default to no result if unspecified.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return The enum numeric value on the wire for resultDescriptionType. + */ + @java.lang.Override + public int getResultDescriptionTypeValue() { + return resultDescriptionType_; + } + + /** + * + * + *
+       * Controls whether result extract is display and how (snippet or
+       * extractive answer). Default to no result if unspecified.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @param value The enum numeric value on the wire for resultDescriptionType to set. + * @return This builder for chaining. + */ + public Builder setResultDescriptionTypeValue(int value) { + resultDescriptionType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Controls whether result extract is display and how (snippet or
+       * extractive answer). Default to no result if unspecified.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return The resultDescriptionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType + getResultDescriptionType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType.forNumber( + resultDescriptionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Controls whether result extract is display and how (snippet or
+       * extractive answer). Default to no result if unspecified.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @param value The resultDescriptionType to set. + * @return This builder for chaining. + */ + public Builder setResultDescriptionType( + com.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + resultDescriptionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Controls whether result extract is display and how (snippet or
+       * extractive answer). Default to no result if unspecified.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType result_description_type = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearResultDescriptionType() { + bitField0_ = (bitField0_ & ~0x00000004); + resultDescriptionType_ = 0; + onChanged(); + return this; + } + + private boolean enableAutocomplete_; + + /** + * + * + *
+       * Whether or not to enable autocomplete.
+       * 
+ * + * bool enable_autocomplete = 4; + * + * @return The enableAutocomplete. + */ + @java.lang.Override + public boolean getEnableAutocomplete() { + return enableAutocomplete_; + } + + /** + * + * + *
+       * Whether or not to enable autocomplete.
+       * 
+ * + * bool enable_autocomplete = 4; + * + * @param value The enableAutocomplete to set. + * @return This builder for chaining. + */ + public Builder setEnableAutocomplete(boolean value) { + + enableAutocomplete_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether or not to enable autocomplete.
+       * 
+ * + * bool enable_autocomplete = 4; + * + * @return This builder for chaining. + */ + public Builder clearEnableAutocomplete() { + bitField0_ = (bitField0_ & ~0x00000008); + enableAutocomplete_ = false; + onChanged(); + return this; + } + + private boolean enableSafeSearch_; + + /** + * + * + *
+       * Whether to enable safe search.
+       * 
+ * + * bool enable_safe_search = 5; + * + * @return The enableSafeSearch. + */ + @java.lang.Override + public boolean getEnableSafeSearch() { + return enableSafeSearch_; + } + + /** + * + * + *
+       * Whether to enable safe search.
+       * 
+ * + * bool enable_safe_search = 5; + * + * @param value The enableSafeSearch to set. + * @return This builder for chaining. + */ + public Builder setEnableSafeSearch(boolean value) { + + enableSafeSearch_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether to enable safe search.
+       * 
+ * + * bool enable_safe_search = 5; + * + * @return This builder for chaining. + */ + public Builder clearEnableSafeSearch() { + bitField0_ = (bitField0_ & ~0x00000010); + enableSafeSearch_ = false; + onChanged(); + return this; + } + + private boolean enableQualityFeedback_; + + /** + * + * + *
+       * Turn on or off collecting the search result quality feedback from end
+       * users.
+       * 
+ * + * bool enable_quality_feedback = 6; + * + * @return The enableQualityFeedback. + */ + @java.lang.Override + public boolean getEnableQualityFeedback() { + return enableQualityFeedback_; + } + + /** + * + * + *
+       * Turn on or off collecting the search result quality feedback from end
+       * users.
+       * 
+ * + * bool enable_quality_feedback = 6; + * + * @param value The enableQualityFeedback to set. + * @return This builder for chaining. + */ + public Builder setEnableQualityFeedback(boolean value) { + + enableQualityFeedback_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Turn on or off collecting the search result quality feedback from end
+       * users.
+       * 
+ * + * bool enable_quality_feedback = 6; + * + * @return This builder for chaining. + */ + public Builder clearEnableQualityFeedback() { + bitField0_ = (bitField0_ & ~0x00000020); + enableQualityFeedback_ = false; + onChanged(); + return this; + } + + private boolean enableSearchAsYouType_; + + /** + * + * + *
+       * Whether to enable search-as-you-type behavior for the search widget.
+       * 
+ * + * bool enable_search_as_you_type = 7; + * + * @return The enableSearchAsYouType. + */ + @java.lang.Override + public boolean getEnableSearchAsYouType() { + return enableSearchAsYouType_; + } + + /** + * + * + *
+       * Whether to enable search-as-you-type behavior for the search widget.
+       * 
+ * + * bool enable_search_as_you_type = 7; + * + * @param value The enableSearchAsYouType to set. + * @return This builder for chaining. + */ + public Builder setEnableSearchAsYouType(boolean value) { + + enableSearchAsYouType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether to enable search-as-you-type behavior for the search widget.
+       * 
+ * + * bool enable_search_as_you_type = 7; + * + * @return This builder for chaining. + */ + public Builder clearEnableSearchAsYouType() { + bitField0_ = (bitField0_ & ~0x00000040); + enableSearchAsYouType_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultSearchRequestOrderBy_ = ""; + + /** + * + * + *
+       * The default ordering for search results if specified.
+       *
+       * Used to set SearchRequest#order_by on applicable requests.
+       * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+       * 
+ * + * string default_search_request_order_by = 8; + * + * @return The defaultSearchRequestOrderBy. + */ + public java.lang.String getDefaultSearchRequestOrderBy() { + java.lang.Object ref = defaultSearchRequestOrderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSearchRequestOrderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The default ordering for search results if specified.
+       *
+       * Used to set SearchRequest#order_by on applicable requests.
+       * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+       * 
+ * + * string default_search_request_order_by = 8; + * + * @return The bytes for defaultSearchRequestOrderBy. + */ + public com.google.protobuf.ByteString getDefaultSearchRequestOrderByBytes() { + java.lang.Object ref = defaultSearchRequestOrderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultSearchRequestOrderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The default ordering for search results if specified.
+       *
+       * Used to set SearchRequest#order_by on applicable requests.
+       * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+       * 
+ * + * string default_search_request_order_by = 8; + * + * @param value The defaultSearchRequestOrderBy to set. + * @return This builder for chaining. + */ + public Builder setDefaultSearchRequestOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultSearchRequestOrderBy_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * The default ordering for search results if specified.
+       *
+       * Used to set SearchRequest#order_by on applicable requests.
+       * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+       * 
+ * + * string default_search_request_order_by = 8; + * + * @return This builder for chaining. + */ + public Builder clearDefaultSearchRequestOrderBy() { + defaultSearchRequestOrderBy_ = getDefaultInstance().getDefaultSearchRequestOrderBy(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+       * The default ordering for search results if specified.
+       *
+       * Used to set SearchRequest#order_by on applicable requests.
+       * https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body
+       * 
+ * + * string default_search_request_order_by = 8; + * + * @param value The bytes for defaultSearchRequestOrderBy to set. + * @return This builder for chaining. + */ + public Builder setDefaultSearchRequestOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultSearchRequestOrderBy_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.util.List + dataStoreUiConfigs_ = java.util.Collections.emptyList(); + + private void ensureDataStoreUiConfigsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + dataStoreUiConfigs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig>( + dataStoreUiConfigs_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder> + dataStoreUiConfigsBuilder_; + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public java.util.List + getDataStoreUiConfigsList() { + if (dataStoreUiConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreUiConfigs_); + } else { + return dataStoreUiConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public int getDataStoreUiConfigsCount() { + if (dataStoreUiConfigsBuilder_ == null) { + return dataStoreUiConfigs_.size(); + } else { + return dataStoreUiConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + getDataStoreUiConfigs(int index) { + if (dataStoreUiConfigsBuilder_ == null) { + return dataStoreUiConfigs_.get(index); + } else { + return dataStoreUiConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder setDataStoreUiConfigs( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig value) { + if (dataStoreUiConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.set(index, value); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder setDataStoreUiConfigs( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder + builderForValue) { + if (dataStoreUiConfigsBuilder_ == null) { + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder addDataStoreUiConfigs( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig value) { + if (dataStoreUiConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.add(value); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder addDataStoreUiConfigs( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig value) { + if (dataStoreUiConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.add(index, value); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder addDataStoreUiConfigs( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder + builderForValue) { + if (dataStoreUiConfigsBuilder_ == null) { + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder addDataStoreUiConfigs( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder + builderForValue) { + if (dataStoreUiConfigsBuilder_ == null) { + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder addAllDataStoreUiConfigs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig> + values) { + if (dataStoreUiConfigsBuilder_ == null) { + ensureDataStoreUiConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreUiConfigs_); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder clearDataStoreUiConfigs() { + if (dataStoreUiConfigsBuilder_ == null) { + dataStoreUiConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public Builder removeDataStoreUiConfigs(int index) { + if (dataStoreUiConfigsBuilder_ == null) { + ensureDataStoreUiConfigsIsMutable(); + dataStoreUiConfigs_.remove(index); + onChanged(); + } else { + dataStoreUiConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder + getDataStoreUiConfigsBuilder(int index) { + return internalGetDataStoreUiConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder + getDataStoreUiConfigsOrBuilder(int index) { + if (dataStoreUiConfigsBuilder_ == null) { + return dataStoreUiConfigs_.get(index); + } else { + return dataStoreUiConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder> + getDataStoreUiConfigsOrBuilderList() { + if (dataStoreUiConfigsBuilder_ != null) { + return dataStoreUiConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreUiConfigs_); + } + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder + addDataStoreUiConfigsBuilder() { + return internalGetDataStoreUiConfigsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder + addDataStoreUiConfigsBuilder(int index) { + return internalGetDataStoreUiConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Per data store configuration.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig data_store_ui_configs = 9; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder> + getDataStoreUiConfigsBuilderList() { + return internalGetDataStoreUiConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder> + internalGetDataStoreUiConfigsFieldBuilder() { + if (dataStoreUiConfigsBuilder_ == null) { + dataStoreUiConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreUiConfigOrBuilder>( + dataStoreUiConfigs_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + dataStoreUiConfigs_ = null; + } + return dataStoreUiConfigsBuilder_; + } + + private boolean disableUserEventsCollection_; + + /** + * + * + *
+       * If set to true, the widget will not collect user events.
+       * 
+ * + * bool disable_user_events_collection = 10; + * + * @return The disableUserEventsCollection. + */ + @java.lang.Override + public boolean getDisableUserEventsCollection() { + return disableUserEventsCollection_; + } + + /** + * + * + *
+       * If set to true, the widget will not collect user events.
+       * 
+ * + * bool disable_user_events_collection = 10; + * + * @param value The disableUserEventsCollection to set. + * @return This builder for chaining. + */ + public Builder setDisableUserEventsCollection(boolean value) { + + disableUserEventsCollection_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * If set to true, the widget will not collect user events.
+       * 
+ * + * bool disable_user_events_collection = 10; + * + * @return This builder for chaining. + */ + public Builder clearDisableUserEventsCollection() { + bitField0_ = (bitField0_ & ~0x00000200); + disableUserEventsCollection_ = false; + onChanged(); + return this; + } + + private boolean enableVisualContentSummary_; + + /** + * + * + *
+       * If set to true, the widget will enable visual content summary on
+       * applicable search requests. Only used by healthcare search.
+       * 
+ * + * bool enable_visual_content_summary = 11; + * + * @return The enableVisualContentSummary. + */ + @java.lang.Override + public boolean getEnableVisualContentSummary() { + return enableVisualContentSummary_; + } + + /** + * + * + *
+       * If set to true, the widget will enable visual content summary on
+       * applicable search requests. Only used by healthcare search.
+       * 
+ * + * bool enable_visual_content_summary = 11; + * + * @param value The enableVisualContentSummary to set. + * @return This builder for chaining. + */ + public Builder setEnableVisualContentSummary(boolean value) { + + enableVisualContentSummary_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+       * If set to true, the widget will enable visual content summary on
+       * applicable search requests. Only used by healthcare search.
+       * 
+ * + * bool enable_visual_content_summary = 11; + * + * @return This builder for chaining. + */ + public Builder clearEnableVisualContentSummary() { + bitField0_ = (bitField0_ & ~0x00000400); + enableVisualContentSummary_ = false; + onChanged(); + return this; + } + + private boolean enablePeopleSearch_; + + /** + * + * + *
+       * Optional. If set to true, the widget will enable people search.
+       * 
+ * + * bool enable_people_search = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePeopleSearch. + */ + @java.lang.Override + public boolean getEnablePeopleSearch() { + return enablePeopleSearch_; + } + + /** + * + * + *
+       * Optional. If set to true, the widget will enable people search.
+       * 
+ * + * bool enable_people_search = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePeopleSearch to set. + * @return This builder for chaining. + */ + public Builder setEnablePeopleSearch(boolean value) { + + enablePeopleSearch_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If set to true, the widget will enable people search.
+       * 
+ * + * bool enable_people_search = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePeopleSearch() { + bitField0_ = (bitField0_ & ~0x00000800); + enablePeopleSearch_ = false; + onChanged(); + return this; + } + + private boolean enableCreateAgentButton_; + + /** + * + * + *
+       * Optional. If set to true, the widget will enable the create agent button.
+       * 
+ * + * bool enable_create_agent_button = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableCreateAgentButton. + */ + @java.lang.Override + public boolean getEnableCreateAgentButton() { + return enableCreateAgentButton_; + } + + /** + * + * + *
+       * Optional. If set to true, the widget will enable the create agent button.
+       * 
+ * + * bool enable_create_agent_button = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableCreateAgentButton to set. + * @return This builder for chaining. + */ + public Builder setEnableCreateAgentButton(boolean value) { + + enableCreateAgentButton_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If set to true, the widget will enable the create agent button.
+       * 
+ * + * bool enable_create_agent_button = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableCreateAgentButton() { + bitField0_ = (bitField0_ & ~0x00001000); + enableCreateAgentButton_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField features_; + + private com.google.protobuf.MapField + internalGetFeatures() { + if (features_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeaturesDefaultEntryHolder.defaultEntry); + } + return features_; + } + + private com.google.protobuf.MapField + internalGetMutableFeatures() { + if (features_ == null) { + features_ = + com.google.protobuf.MapField.newMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + if (!features_.isMutable()) { + features_ = features_.copy(); + } + bitField0_ |= 0x00002000; + onChanged(); + return features_; + } + + public int getFeaturesCount() { + return internalGetFeatures().getMap().size(); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatures().getMap().containsKey(key); + } + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getFeatures() { + return getFeaturesMap(); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getFeaturesMap() { + return internalGetAdaptedFeaturesMap(internalGetFeatures().getMap()); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? featuresValueConverter.doForward(map.get(key)) : defaultValue; + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState + getFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return featuresValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeaturesValue() { + return getFeaturesValueMap(); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getFeaturesValueMap() { + return internalGetFeatures().getMap(); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFeaturesValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getFeaturesValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeatures() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableFeatures().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFeatures().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + getMutableFeatures() { + bitField0_ |= 0x00002000; + return internalGetAdaptedFeaturesMap(internalGetMutableFeatures().getMutableMap()); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putFeatures( + java.lang.String key, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableFeatures() + .getMutableMap() + .put(key, featuresValueConverter.doBackward(value)); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllFeatures( + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> + values) { + internalGetAdaptedFeaturesMap(internalGetMutableFeatures().getMutableMap()).putAll(values); + bitField0_ |= 0x00002000; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFeaturesValue() { + bitField0_ |= 0x00002000; + return internalGetMutableFeatures().getMutableMap(); + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putFeaturesValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableFeatures().getMutableMap().put(key, value); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
+       * Output only. Feature config for the engine to opt in or opt out of
+       * features. Supported keys:
+       *
+       * * `agent-gallery`
+       * * `no-code-agent-builder`
+       * * `prompt-gallery`
+       * * `model-selector`
+       * * `notebook-lm`
+       * * `people-search`
+       * * `people-search-org-chart`
+       * * `bi-directional-audio`
+       * * `speech-to-text`
+       * * `feedback`
+       * * `session-sharing`
+       * * `personalization-memory`
+       * * `personalization-suggested-highlights`
+       * * `mobile-app-access`
+       * * `disable-agent-sharing`
+       * * `disable-image-generation`
+       * * `disable-video-generation`
+       * * `disable-onedrive-upload`
+       * * `disable-talk-to-content`
+       * * `disable-google-drive-upload`
+       * * `disable-welcome-emails`
+       * * `disable-canvas`
+       * * `canvas-workspace`
+       * * `canvas-app-builder`
+       * * `skills`
+       * * `skill-sharing`
+       * * `skill-sharing-without-admin-approval`
+       * * `disable-projects`
+       * * `sobi`
+       * * `enable-end-user-sharing-with-groups`
+       * * `single-agent-orchestration`
+       * * `multi-agent-orchestration`
+       * * `cross-product-intelligence`
+       * * `workflow-agents`
+       * * `in-app-notifications`
+       * * `code-extraction`
+       * * `remote-vm`
+       * * `license-tier-badge`
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState> features = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllFeaturesValue( + java.util.Map values) { + internalGetMutableFeatures().getMutableMap().putAll(values); + bitField0_ |= 0x00002000; + return this; + } + + private com.google.protobuf.MapField modelConfigs_; + + private com.google.protobuf.MapField + internalGetModelConfigs() { + if (modelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelConfigsDefaultEntryHolder.defaultEntry); + } + return modelConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableModelConfigs() { + if (modelConfigs_ == null) { + modelConfigs_ = + com.google.protobuf.MapField.newMapField(ModelConfigsDefaultEntryHolder.defaultEntry); + } + if (!modelConfigs_.isMutable()) { + modelConfigs_ = modelConfigs_.copy(); + } + bitField0_ |= 0x00004000; + onChanged(); + return modelConfigs_; + } + + public int getModelConfigsCount() { + return internalGetModelConfigs().getMap().size(); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModelConfigs().getMap().containsKey(key); + } + + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getModelConfigs() { + return getModelConfigsMap(); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getModelConfigsMap() { + return internalGetAdaptedModelConfigsMap(internalGetModelConfigs().getMap()); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) + ? modelConfigsValueConverter.doForward(map.get(key)) + : defaultValue; + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState + getModelConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelConfigsValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelConfigsValue() { + return getModelConfigsValueMap(); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getModelConfigsValueMap() { + return internalGetModelConfigs().getMap(); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearModelConfigs() { + bitField0_ = (bitField0_ & ~0x00004000); + internalGetMutableModelConfigs().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableModelConfigs().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + getMutableModelConfigs() { + bitField0_ |= 0x00004000; + return internalGetAdaptedModelConfigsMap(internalGetMutableModelConfigs().getMutableMap()); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putModelConfigs( + java.lang.String key, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableModelConfigs() + .getMutableMap() + .put(key, modelConfigsValueConverter.doBackward(value)); + bitField0_ |= 0x00004000; + return this; + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllModelConfigs( + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> + values) { + internalGetAdaptedModelConfigsMap(internalGetMutableModelConfigs().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00004000; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableModelConfigsValue() { + bitField0_ |= 0x00004000; + return internalGetMutableModelConfigs().getMutableMap(); + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putModelConfigsValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableModelConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; + return this; + } + + /** + * + * + *
+       * Output only. Maps a model name to its specific configuration for this
+       * engine. This allows admin users to turn on/off individual models. This
+       * only stores models whose states are overridden by the admin.
+       *
+       * When the state is unspecified, or model_configs is empty for this
+       * model, the system will decide if this model should be available or not
+       * based on the default configuration. For example, a preview model
+       * should be disabled by default if the admin has not chosen to enable it.
+       * 
+ * + * + * map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState> model_configs = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllModelConfigsValue( + java.util.Map values) { + internalGetMutableModelConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + searchAddonSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecOrBuilder> + searchAddonSpecBuilder_; + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchAddonSpec field is set. + */ + public boolean hasSearchAddonSpec() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchAddonSpec. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + getSearchAddonSpec() { + if (searchAddonSpecBuilder_ == null) { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance() + : searchAddonSpec_; + } else { + return searchAddonSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchAddonSpec( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec value) { + if (searchAddonSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchAddonSpec_ = value; + } else { + searchAddonSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchAddonSpec( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.Builder + builderForValue) { + if (searchAddonSpecBuilder_ == null) { + searchAddonSpec_ = builderForValue.build(); + } else { + searchAddonSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchAddonSpec( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec value) { + if (searchAddonSpecBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && searchAddonSpec_ != null + && searchAddonSpec_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance()) { + getSearchAddonSpecBuilder().mergeFrom(value); + } else { + searchAddonSpec_ = value; + } + } else { + searchAddonSpecBuilder_.mergeFrom(value); + } + if (searchAddonSpec_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchAddonSpec() { + bitField0_ = (bitField0_ & ~0x00008000); + searchAddonSpec_ = null; + if (searchAddonSpecBuilder_ != null) { + searchAddonSpecBuilder_.dispose(); + searchAddonSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.Builder + getSearchAddonSpecBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetSearchAddonSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecOrBuilder + getSearchAddonSpecOrBuilder() { + if (searchAddonSpecBuilder_ != null) { + return searchAddonSpecBuilder_.getMessageOrBuilder(); + } else { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .getDefaultInstance() + : searchAddonSpec_; + } + } + + /** + * + * + *
+       * Optional. SearchAddonSpec is used to disable add-ons for search.
+       * This field is only supported for search requests.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec search_addon_spec = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecOrBuilder> + internalGetSearchAddonSpecFieldBuilder() { + if (searchAddonSpecBuilder_ == null) { + searchAddonSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpec + .Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .SearchAddonSpecOrBuilder>( + getSearchAddonSpec(), getParentForChildren(), isClean()); + searchAddonSpec_ = null; + } + return searchAddonSpecBuilder_; + } + + private boolean onedrivePickerEnabled_; + + /** + * + * + *
+       * Output only. Whether the OneDrive file picker is available to end-users.
+       * Computed by the backend from admin connector enablement (Business
+       * edition) or attached OneDrive connectors (Enterprise edition), combined
+       * with the existing `disable-onedrive-upload` admin feature.
+       *
+       * Declared `optional` so an explicitly-computed `false` is serialized with
+       * field presence. A plain proto3 `bool` drops a default `false` on the
+       * wire, which prevented clients from distinguishing "picker disabled"
+       * (`false`) from "field not populated" (unset).
+       * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the onedrivePickerEnabled field is set. + */ + @java.lang.Override + public boolean hasOnedrivePickerEnabled() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+       * Output only. Whether the OneDrive file picker is available to end-users.
+       * Computed by the backend from admin connector enablement (Business
+       * edition) or attached OneDrive connectors (Enterprise edition), combined
+       * with the existing `disable-onedrive-upload` admin feature.
+       *
+       * Declared `optional` so an explicitly-computed `false` is serialized with
+       * field presence. A plain proto3 `bool` drops a default `false` on the
+       * wire, which prevented clients from distinguishing "picker disabled"
+       * (`false`) from "field not populated" (unset).
+       * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The onedrivePickerEnabled. + */ + @java.lang.Override + public boolean getOnedrivePickerEnabled() { + return onedrivePickerEnabled_; + } + + /** + * + * + *
+       * Output only. Whether the OneDrive file picker is available to end-users.
+       * Computed by the backend from admin connector enablement (Business
+       * edition) or attached OneDrive connectors (Enterprise edition), combined
+       * with the existing `disable-onedrive-upload` admin feature.
+       *
+       * Declared `optional` so an explicitly-computed `false` is serialized with
+       * field presence. A plain proto3 `bool` drops a default `false` on the
+       * wire, which prevented clients from distinguishing "picker disabled"
+       * (`false`) from "field not populated" (unset).
+       * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The onedrivePickerEnabled to set. + * @return This builder for chaining. + */ + public Builder setOnedrivePickerEnabled(boolean value) { + + onedrivePickerEnabled_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether the OneDrive file picker is available to end-users.
+       * Computed by the backend from admin connector enablement (Business
+       * edition) or attached OneDrive connectors (Enterprise edition), combined
+       * with the existing `disable-onedrive-upload` admin feature.
+       *
+       * Declared `optional` so an explicitly-computed `false` is serialized with
+       * field presence. A plain proto3 `bool` drops a default `false` on the
+       * wire, which prevented clients from distinguishing "picker disabled"
+       * (`false`) from "field not populated" (unset).
+       * 
+ * + * + * optional bool onedrive_picker_enabled = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOnedrivePickerEnabled() { + bitField0_ = (bitField0_ & ~0x00010000); + onedrivePickerEnabled_ = false; + onChanged(); + return this; + } + + private boolean googleDrivePickerEnabled_; + + /** + * + * + *
+       * Output only. Whether the Google Drive file picker is available to
+       * end-users. Declared `optional` for the same field-presence reason as
+       * `onedrive_picker_enabled` above.
+       * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the googleDrivePickerEnabled field is set. + */ + @java.lang.Override + public boolean hasGoogleDrivePickerEnabled() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+       * Output only. Whether the Google Drive file picker is available to
+       * end-users. Declared `optional` for the same field-presence reason as
+       * `onedrive_picker_enabled` above.
+       * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleDrivePickerEnabled. + */ + @java.lang.Override + public boolean getGoogleDrivePickerEnabled() { + return googleDrivePickerEnabled_; + } + + /** + * + * + *
+       * Output only. Whether the Google Drive file picker is available to
+       * end-users. Declared `optional` for the same field-presence reason as
+       * `onedrive_picker_enabled` above.
+       * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The googleDrivePickerEnabled to set. + * @return This builder for chaining. + */ + public Builder setGoogleDrivePickerEnabled(boolean value) { + + googleDrivePickerEnabled_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Whether the Google Drive file picker is available to
+       * end-users. Declared `optional` for the same field-presence reason as
+       * `onedrive_picker_enabled` above.
+       * 
+ * + * + * optional bool google_drive_picker_enabled = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleDrivePickerEnabled() { + bitField0_ = (bitField0_ & ~0x00020000); + googleDrivePickerEnabled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + modelConfigInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoOrBuilder> + modelConfigInfoBuilder_; + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the modelConfigInfo field is set. + */ + public boolean hasModelConfigInfo() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelConfigInfo. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + getModelConfigInfo() { + if (modelConfigInfoBuilder_ == null) { + return modelConfigInfo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance() + : modelConfigInfo_; + } else { + return modelConfigInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setModelConfigInfo( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo value) { + if (modelConfigInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelConfigInfo_ = value; + } else { + modelConfigInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setModelConfigInfo( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.Builder + builderForValue) { + if (modelConfigInfoBuilder_ == null) { + modelConfigInfo_ = builderForValue.build(); + } else { + modelConfigInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeModelConfigInfo( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo value) { + if (modelConfigInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && modelConfigInfo_ != null + && modelConfigInfo_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance()) { + getModelConfigInfoBuilder().mergeFrom(value); + } else { + modelConfigInfo_ = value; + } + } else { + modelConfigInfoBuilder_.mergeFrom(value); + } + if (modelConfigInfo_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearModelConfigInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + modelConfigInfo_ = null; + if (modelConfigInfoBuilder_ != null) { + modelConfigInfoBuilder_.dispose(); + modelConfigInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.Builder + getModelConfigInfoBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return internalGetModelConfigInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoOrBuilder + getModelConfigInfoOrBuilder() { + if (modelConfigInfoBuilder_ != null) { + return modelConfigInfoBuilder_.getMessageOrBuilder(); + } else { + return modelConfigInfo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .getDefaultInstance() + : modelConfigInfo_; + } + } + + /** + * + * + *
+       * Output only. The resolved, server-side view of model selector
+       * configuration. Holds both the ordered list of models that should appear
+       * in the model selector dropdown and the model that should be selected by
+       * default.
+       *
+       * Clients should render this directly without applying their own
+       * filtering, ordering, or localization. The legacy `model_configs` map
+       * above is retained for backward compatibility with clients that have not
+       * yet migrated to consuming this field.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo model_config_info = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoOrBuilder> + internalGetModelConfigInfoFieldBuilder() { + if (modelConfigInfoBuilder_ == null) { + modelConfigInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo + .Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .ModelConfigInfoOrBuilder>( + getModelConfigInfo(), getParentForChildren(), isClean()); + modelConfigInfo_ = null; + } + return modelConfigInfoBuilder_; + } + + private boolean sourceAdminDisplayNameEnabled_; + + /** + * + * + *
+       * Optional. Whether to show the admin-configured display name for data
+       * connectors in the widget sources UI (instead of the connector kind).
+       * Opt-in; defaults to false.
+       * 
+ * + * + * bool source_admin_display_name_enabled = 51 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceAdminDisplayNameEnabled. + */ + @java.lang.Override + public boolean getSourceAdminDisplayNameEnabled() { + return sourceAdminDisplayNameEnabled_; + } + + /** + * + * + *
+       * Optional. Whether to show the admin-configured display name for data
+       * connectors in the widget sources UI (instead of the connector kind).
+       * Opt-in; defaults to false.
+       * 
+ * + * + * bool source_admin_display_name_enabled = 51 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sourceAdminDisplayNameEnabled to set. + * @return This builder for chaining. + */ + public Builder setSourceAdminDisplayNameEnabled(boolean value) { + + sourceAdminDisplayNameEnabled_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether to show the admin-configured display name for data
+       * connectors in the widget sources UI (instead of the connector kind).
+       * Opt-in; defaults to false.
+       * 
+ * + * + * bool source_admin_display_name_enabled = 51 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceAdminDisplayNameEnabled() { + bitField0_ = (bitField0_ & ~0x00080000); + sourceAdminDisplayNameEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiSettings) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UiSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AccessSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Whether public unauthenticated access is allowed.
+     * 
+ * + * bool allow_public_access = 1; + * + * @return The allowPublicAccess. + */ + boolean getAllowPublicAccess(); + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return A list containing the allowlistedDomains. + */ + java.util.List getAllowlistedDomainsList(); + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return The count of allowlistedDomains. + */ + int getAllowlistedDomainsCount(); + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index of the element to return. + * @return The allowlistedDomains at the given index. + */ + java.lang.String getAllowlistedDomains(int index); + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedDomains at the given index. + */ + com.google.protobuf.ByteString getAllowlistedDomainsBytes(int index); + + /** + * + * + *
+     * Whether web app access is enabled.
+     * 
+ * + * bool enable_web_app = 3; + * + * @return The enableWebApp. + */ + boolean getEnableWebApp(); + + /** + * + * + *
+     * Optional. The workforce identity pool provider used to access the widget.
+     * 
+ * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workforceIdentityPoolProvider. + */ + java.lang.String getWorkforceIdentityPoolProvider(); + + /** + * + * + *
+     * Optional. The workforce identity pool provider used to access the widget.
+     * 
+ * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for workforceIdentityPoolProvider. + */ + com.google.protobuf.ByteString getWorkforceIdentityPoolProviderBytes(); + + /** + * + * + *
+     * Optional. Language code for user interface. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * If unset, the default language code is "en-US".
+     * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
+     * Optional. Language code for user interface. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * If unset, the default language code is "en-US".
+     * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + } + + /** + * + * + *
+   * Describes widget access settings.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings} + */ + public static final class AccessSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) + AccessSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AccessSettings"); + } + + // Use AccessSettings.newBuilder() to construct. + private AccessSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessSettings() { + allowlistedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + workforceIdentityPoolProvider_ = ""; + languageCode_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder.class); + } + + public static final int ALLOW_PUBLIC_ACCESS_FIELD_NUMBER = 1; + private boolean allowPublicAccess_ = false; + + /** + * + * + *
+     * Whether public unauthenticated access is allowed.
+     * 
+ * + * bool allow_public_access = 1; + * + * @return The allowPublicAccess. + */ + @java.lang.Override + public boolean getAllowPublicAccess() { + return allowPublicAccess_; + } + + public static final int ALLOWLISTED_DOMAINS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowlistedDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return A list containing the allowlistedDomains. + */ + public com.google.protobuf.ProtocolStringList getAllowlistedDomainsList() { + return allowlistedDomains_; + } + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return The count of allowlistedDomains. + */ + public int getAllowlistedDomainsCount() { + return allowlistedDomains_.size(); + } + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index of the element to return. + * @return The allowlistedDomains at the given index. + */ + public java.lang.String getAllowlistedDomains(int index) { + return allowlistedDomains_.get(index); + } + + /** + * + * + *
+     * List of domains that are allowed to integrate the search widget.
+     * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedDomains at the given index. + */ + public com.google.protobuf.ByteString getAllowlistedDomainsBytes(int index) { + return allowlistedDomains_.getByteString(index); + } + + public static final int ENABLE_WEB_APP_FIELD_NUMBER = 3; + private boolean enableWebApp_ = false; + + /** + * + * + *
+     * Whether web app access is enabled.
+     * 
+ * + * bool enable_web_app = 3; + * + * @return The enableWebApp. + */ + @java.lang.Override + public boolean getEnableWebApp() { + return enableWebApp_; + } + + public static final int WORKFORCE_IDENTITY_POOL_PROVIDER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object workforceIdentityPoolProvider_ = ""; + + /** + * + * + *
+     * Optional. The workforce identity pool provider used to access the widget.
+     * 
+ * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workforceIdentityPoolProvider. + */ + @java.lang.Override + public java.lang.String getWorkforceIdentityPoolProvider() { + java.lang.Object ref = workforceIdentityPoolProvider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforceIdentityPoolProvider_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The workforce identity pool provider used to access the widget.
+     * 
+ * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for workforceIdentityPoolProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkforceIdentityPoolProviderBytes() { + java.lang.Object ref = workforceIdentityPoolProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforceIdentityPoolProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
+     * Optional. Language code for user interface. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * If unset, the default language code is "en-US".
+     * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Language code for user interface. Use language tags defined by
+     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+     * If unset, the default language code is "en-US".
+     * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = 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 (allowPublicAccess_ != false) { + output.writeBool(1, allowPublicAccess_); + } + for (int i = 0; i < allowlistedDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowlistedDomains_.getRaw(i)); + } + if (enableWebApp_ != false) { + output.writeBool(3, enableWebApp_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workforceIdentityPoolProvider_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, workforceIdentityPoolProvider_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, languageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (allowPublicAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowPublicAccess_); + } + { + int dataSize = 0; + for (int i = 0; i < allowlistedDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(allowlistedDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowlistedDomainsList().size(); + } + if (enableWebApp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableWebApp_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workforceIdentityPoolProvider_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 4, workforceIdentityPoolProvider_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, languageCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) obj; + + if (getAllowPublicAccess() != other.getAllowPublicAccess()) return false; + if (!getAllowlistedDomainsList().equals(other.getAllowlistedDomainsList())) return false; + if (getEnableWebApp() != other.getEnableWebApp()) return false; + if (!getWorkforceIdentityPoolProvider().equals(other.getWorkforceIdentityPoolProvider())) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) 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) + ALLOW_PUBLIC_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPublicAccess()); + if (getAllowlistedDomainsCount() > 0) { + hash = (37 * hash) + ALLOWLISTED_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getAllowlistedDomainsList().hashCode(); + } + hash = (37 * hash) + ENABLE_WEB_APP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWebApp()); + hash = (37 * hash) + WORKFORCE_IDENTITY_POOL_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getWorkforceIdentityPoolProvider().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes widget access settings.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowPublicAccess_ = false; + allowlistedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enableWebApp_ = false; + workforceIdentityPoolProvider_ = ""; + languageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowPublicAccess_ = allowPublicAccess_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowlistedDomains_.makeImmutable(); + result.allowlistedDomains_ = allowlistedDomains_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableWebApp_ = enableWebApp_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.workforceIdentityPoolProvider_ = workforceIdentityPoolProvider_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.languageCode_ = languageCode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.getDefaultInstance()) + return this; + if (other.getAllowPublicAccess() != false) { + setAllowPublicAccess(other.getAllowPublicAccess()); + } + if (!other.allowlistedDomains_.isEmpty()) { + if (allowlistedDomains_.isEmpty()) { + allowlistedDomains_ = other.allowlistedDomains_; + bitField0_ |= 0x00000002; + } else { + ensureAllowlistedDomainsIsMutable(); + allowlistedDomains_.addAll(other.allowlistedDomains_); + } + onChanged(); + } + if (other.getEnableWebApp() != false) { + setEnableWebApp(other.getEnableWebApp()); + } + if (!other.getWorkforceIdentityPoolProvider().isEmpty()) { + workforceIdentityPoolProvider_ = other.workforceIdentityPoolProvider_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + 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 8: + { + allowPublicAccess_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowlistedDomainsIsMutable(); + allowlistedDomains_.add(s); + break; + } // case 18 + case 24: + { + enableWebApp_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + workforceIdentityPoolProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + languageCode_ = 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 boolean allowPublicAccess_; + + /** + * + * + *
+       * Whether public unauthenticated access is allowed.
+       * 
+ * + * bool allow_public_access = 1; + * + * @return The allowPublicAccess. + */ + @java.lang.Override + public boolean getAllowPublicAccess() { + return allowPublicAccess_; + } + + /** + * + * + *
+       * Whether public unauthenticated access is allowed.
+       * 
+ * + * bool allow_public_access = 1; + * + * @param value The allowPublicAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowPublicAccess(boolean value) { + + allowPublicAccess_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether public unauthenticated access is allowed.
+       * 
+ * + * bool allow_public_access = 1; + * + * @return This builder for chaining. + */ + public Builder clearAllowPublicAccess() { + bitField0_ = (bitField0_ & ~0x00000001); + allowPublicAccess_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowlistedDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowlistedDomainsIsMutable() { + if (!allowlistedDomains_.isModifiable()) { + allowlistedDomains_ = new com.google.protobuf.LazyStringArrayList(allowlistedDomains_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return A list containing the allowlistedDomains. + */ + public com.google.protobuf.ProtocolStringList getAllowlistedDomainsList() { + allowlistedDomains_.makeImmutable(); + return allowlistedDomains_; + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return The count of allowlistedDomains. + */ + public int getAllowlistedDomainsCount() { + return allowlistedDomains_.size(); + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index of the element to return. + * @return The allowlistedDomains at the given index. + */ + public java.lang.String getAllowlistedDomains(int index) { + return allowlistedDomains_.get(index); + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allowlistedDomains at the given index. + */ + public com.google.protobuf.ByteString getAllowlistedDomainsBytes(int index) { + return allowlistedDomains_.getByteString(index); + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param index The index to set the value at. + * @param value The allowlistedDomains to set. + * @return This builder for chaining. + */ + public Builder setAllowlistedDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistedDomainsIsMutable(); + allowlistedDomains_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param value The allowlistedDomains to add. + * @return This builder for chaining. + */ + public Builder addAllowlistedDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowlistedDomainsIsMutable(); + allowlistedDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param values The allowlistedDomains to add. + * @return This builder for chaining. + */ + public Builder addAllAllowlistedDomains(java.lang.Iterable values) { + ensureAllowlistedDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowlistedDomains_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllowlistedDomains() { + allowlistedDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * List of domains that are allowed to integrate the search widget.
+       * 
+ * + * repeated string allowlisted_domains = 2; + * + * @param value The bytes of the allowlistedDomains to add. + * @return This builder for chaining. + */ + public Builder addAllowlistedDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowlistedDomainsIsMutable(); + allowlistedDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean enableWebApp_; + + /** + * + * + *
+       * Whether web app access is enabled.
+       * 
+ * + * bool enable_web_app = 3; + * + * @return The enableWebApp. + */ + @java.lang.Override + public boolean getEnableWebApp() { + return enableWebApp_; + } + + /** + * + * + *
+       * Whether web app access is enabled.
+       * 
+ * + * bool enable_web_app = 3; + * + * @param value The enableWebApp to set. + * @return This builder for chaining. + */ + public Builder setEnableWebApp(boolean value) { + + enableWebApp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Whether web app access is enabled.
+       * 
+ * + * bool enable_web_app = 3; + * + * @return This builder for chaining. + */ + public Builder clearEnableWebApp() { + bitField0_ = (bitField0_ & ~0x00000004); + enableWebApp_ = false; + onChanged(); + return this; + } + + private java.lang.Object workforceIdentityPoolProvider_ = ""; + + /** + * + * + *
+       * Optional. The workforce identity pool provider used to access the widget.
+       * 
+ * + * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workforceIdentityPoolProvider. + */ + public java.lang.String getWorkforceIdentityPoolProvider() { + java.lang.Object ref = workforceIdentityPoolProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforceIdentityPoolProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The workforce identity pool provider used to access the widget.
+       * 
+ * + * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for workforceIdentityPoolProvider. + */ + public com.google.protobuf.ByteString getWorkforceIdentityPoolProviderBytes() { + java.lang.Object ref = workforceIdentityPoolProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforceIdentityPoolProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The workforce identity pool provider used to access the widget.
+       * 
+ * + * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The workforceIdentityPoolProvider to set. + * @return This builder for chaining. + */ + public Builder setWorkforceIdentityPoolProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workforceIdentityPoolProvider_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The workforce identity pool provider used to access the widget.
+       * 
+ * + * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkforceIdentityPoolProvider() { + workforceIdentityPoolProvider_ = getDefaultInstance().getWorkforceIdentityPoolProvider(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The workforce identity pool provider used to access the widget.
+       * 
+ * + * + * string workforce_identity_pool_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for workforceIdentityPoolProvider to set. + * @return This builder for chaining. + */ + public Builder setWorkforceIdentityPoolProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workforceIdentityPoolProvider_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
+       * Optional. Language code for user interface. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * If unset, the default language code is "en-US".
+       * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Language code for user interface. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * If unset, the default language code is "en-US".
+       * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Language code for user interface. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * If unset, the default language code is "en-US".
+       * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Language code for user interface. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * If unset, the default language code is "en-US".
+       * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Language code for user interface. Use language tags defined by
+       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
+       * If unset, the default language code is "en-US".
+       * 
+ * + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.Image) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Image URL.
+     * 
+ * + * string url = 1; + * + * @return Whether the url field is set. + */ + boolean hasUrl(); + + /** + * + * + *
+     * Image URL.
+     * 
+ * + * string url = 1; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
+     * Image URL.
+     * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.StorageMethodCase getStorageMethodCase(); + } + + /** + * + * + *
+   * Options to store an image.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.Image} + */ + public static final class Image extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.Image) + ImageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Image"); + } + + // Use Image.newBuilder() to construct. + private Image(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Image() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder.class); + } + + private int storageMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object storageMethod_; + + public enum StorageMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + URL(1), + STORAGEMETHOD_NOT_SET(0); + private final int value; + + private StorageMethodCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StorageMethodCase valueOf(int value) { + return forNumber(value); + } + + public static StorageMethodCase forNumber(int value) { + switch (value) { + case 1: + return URL; + case 0: + return STORAGEMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StorageMethodCase getStorageMethodCase() { + return StorageMethodCase.forNumber(storageMethodCase_); + } + + public static final int URL_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Image URL.
+     * 
+ * + * string url = 1; + * + * @return Whether the url field is set. + */ + public boolean hasUrl() { + return storageMethodCase_ == 1; + } + + /** + * + * + *
+     * Image URL.
+     * 
+ * + * string url = 1; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = ""; + if (storageMethodCase_ == 1) { + ref = storageMethod_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (storageMethodCase_ == 1) { + storageMethod_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Image URL.
+     * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = ""; + if (storageMethodCase_ == 1) { + ref = storageMethod_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (storageMethodCase_ == 1) { + storageMethod_ = 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 (storageMethodCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, storageMethod_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (storageMethodCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, storageMethod_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.Image)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.Image other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.Image) obj; + + if (!getStorageMethodCase().equals(other.getStorageMethodCase())) return false; + switch (storageMethodCase_) { + case 1: + if (!getUrl().equals(other.getUrl())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (storageMethodCase_) { + case 1: + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.Image prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options to store an image.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.Image} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.Image) + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.WidgetConfig.Image.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + storageMethodCase_ = 0; + storageMethod_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.Image result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.Image result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.Image(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.WidgetConfig.Image result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1.WidgetConfig.Image result) { + result.storageMethodCase_ = storageMethodCase_; + result.storageMethod_ = this.storageMethod_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.Image) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WidgetConfig.Image) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WidgetConfig.Image other) { + if (other == com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance()) + return this; + switch (other.getStorageMethodCase()) { + case URL: + { + storageMethodCase_ = 1; + storageMethod_ = other.storageMethod_; + onChanged(); + break; + } + case STORAGEMETHOD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + storageMethodCase_ = 1; + storageMethod_ = 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 storageMethodCase_ = 0; + private java.lang.Object storageMethod_; + + public StorageMethodCase getStorageMethodCase() { + return StorageMethodCase.forNumber(storageMethodCase_); + } + + public Builder clearStorageMethod() { + storageMethodCase_ = 0; + storageMethod_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Image URL.
+       * 
+ * + * string url = 1; + * + * @return Whether the url field is set. + */ + @java.lang.Override + public boolean hasUrl() { + return storageMethodCase_ == 1; + } + + /** + * + * + *
+       * Image URL.
+       * 
+ * + * string url = 1; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = ""; + if (storageMethodCase_ == 1) { + ref = storageMethod_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (storageMethodCase_ == 1) { + storageMethod_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Image URL.
+       * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = ""; + if (storageMethodCase_ == 1) { + ref = storageMethod_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (storageMethodCase_ == 1) { + storageMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Image URL.
+       * 
+ * + * string url = 1; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storageMethodCase_ = 1; + storageMethod_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Image URL.
+       * 
+ * + * string url = 1; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + if (storageMethodCase_ == 1) { + storageMethodCase_ = 0; + storageMethod_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Image URL.
+       * 
+ * + * string url = 1; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageMethodCase_ = 1; + storageMethod_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.Image) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.Image) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.Image DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.Image(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Image getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UiBrandingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Logo image.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + * + * @return Whether the logo field is set. + */ + boolean hasLogo(); + + /** + * + * + *
+     * Logo image.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + * + * @return The logo. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.Image getLogo(); + + /** + * + * + *
+     * Logo image.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder getLogoOrBuilder(); + } + + /** + * + * + *
+   * Describes widget UI branding settings.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings} + */ + public static final class UiBrandingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) + UiBrandingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UiBrandingSettings"); + } + + // Use UiBrandingSettings.newBuilder() to construct. + private UiBrandingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UiBrandingSettings() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder.class); + } + + private int bitField0_; + public static final int LOGO_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1.WidgetConfig.Image logo_; + + /** + * + * + *
+     * Logo image.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + * + * @return Whether the logo field is set. + */ + @java.lang.Override + public boolean hasLogo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Logo image.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + * + * @return The logo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image getLogo() { + return logo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : logo_; + } + + /** + * + * + *
+     * Logo image.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder getLogoOrBuilder() { + return logo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : logo_; + } + + 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, getLogo()); + } + 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, getLogo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) obj; + + if (hasLogo() != other.hasLogo()) return false; + if (hasLogo()) { + if (!getLogo().equals(other.getLogo())) 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 (hasLogo()) { + hash = (37 * hash) + LOGO_FIELD_NUMBER; + hash = (53 * hash) + getLogo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes widget UI branding settings.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLogoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + logo_ = null; + if (logoBuilder_ != null) { + logoBuilder_.dispose(); + logoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.logo_ = logoBuilder_ == null ? logo_ : logoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + .getDefaultInstance()) return this; + if (other.hasLogo()) { + mergeLogo(other.getLogo()); + } + 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(internalGetLogoFieldBuilder().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.cloud.discoveryengine.v1.WidgetConfig.Image logo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Image, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder> + logoBuilder_; + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + * + * @return Whether the logo field is set. + */ + public boolean hasLogo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + * + * @return The logo. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image getLogo() { + if (logoBuilder_ == null) { + return logo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : logo_; + } else { + return logoBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + public Builder setLogo(com.google.cloud.discoveryengine.v1.WidgetConfig.Image value) { + if (logoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logo_ = value; + } else { + logoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + public Builder setLogo( + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder builderForValue) { + if (logoBuilder_ == null) { + logo_ = builderForValue.build(); + } else { + logoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + public Builder mergeLogo(com.google.cloud.discoveryengine.v1.WidgetConfig.Image value) { + if (logoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && logo_ != null + && logo_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance()) { + getLogoBuilder().mergeFrom(value); + } else { + logo_ = value; + } + } else { + logoBuilder_.mergeFrom(value); + } + if (logo_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + public Builder clearLogo() { + bitField0_ = (bitField0_ & ~0x00000001); + logo_ = null; + if (logoBuilder_ != null) { + logoBuilder_.dispose(); + logoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder getLogoBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLogoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder getLogoOrBuilder() { + if (logoBuilder_ != null) { + return logoBuilder_.getMessageOrBuilder(); + } else { + return logo_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : logo_; + } + } + + /** + * + * + *
+       * Logo image.
+       * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image logo = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Image, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder> + internalGetLogoFieldBuilder() { + if (logoBuilder_ == null) { + logoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Image, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder>( + getLogo(), getParentForChildren(), isClean()); + logo_ = null; + } + return logoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UiBrandingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface HomepageSettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getShortcutsList(); + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut getShortcuts( + int index); + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getShortcutsCount(); + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder> + getShortcutsOrBuilderList(); + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder + getShortcutsOrBuilder(int index); + } + + /** + * + * + *
+   * Describes the homepage setting of the widget. It includes all homepage
+   * related settings and configurations, such as shortcuts.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting} + */ + public static final class HomepageSetting extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) + HomepageSettingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "HomepageSetting"); + } + + // Use HomepageSetting.newBuilder() to construct. + private HomepageSetting(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HomepageSetting() { + shortcuts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder.class); + } + + public interface ShortcutOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. Title of the shortcut.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+       * Optional. Title of the shortcut.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+       * Optional. Icon URL of shortcut.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the icon field is set. + */ + boolean hasIcon(); + + /** + * + * + *
+       * Optional. Icon URL of shortcut.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The icon. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.Image getIcon(); + + /** + * + * + *
+       * Optional. Icon URL of shortcut.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder getIconOrBuilder(); + + /** + * + * + *
+       * Optional. Destination URL of shortcut.
+       * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationUri. + */ + java.lang.String getDestinationUri(); + + /** + * + * + *
+       * Optional. Destination URL of shortcut.
+       * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationUri. + */ + com.google.protobuf.ByteString getDestinationUriBytes(); + } + + /** + * + * + *
+     * Describes an entity of shortcut (aka pinned content) on the homepage.
+     * The home page will render these shortcuts in the same order as what the
+     * API returns. If a customer wants to reorder or remove a shortcut, the UI
+     * should always provide the new full list of shortcuts.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut} + */ + public static final class Shortcut extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) + ShortcutOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Shortcut"); + } + + // Use Shortcut.newBuilder() to construct. + private Shortcut(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Shortcut() { + title_ = ""; + destinationUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + .class); + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+       * Optional. Title of the shortcut.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. Title of the shortcut.
+       * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1.WidgetConfig.Image icon_; + + /** + * + * + *
+       * Optional. Icon URL of shortcut.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the icon field is set. + */ + @java.lang.Override + public boolean hasIcon() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Icon URL of shortcut.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The icon. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image getIcon() { + return icon_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : icon_; + } + + /** + * + * + *
+       * Optional. Icon URL of shortcut.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder getIconOrBuilder() { + return icon_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : icon_; + } + + public static final int DESTINATION_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationUri_ = ""; + + /** + * + * + *
+       * Optional. Destination URL of shortcut.
+       * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationUri. + */ + @java.lang.Override + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. Destination URL of shortcut.
+       * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIcon()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, destinationUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIcon()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, destinationUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (hasIcon() != other.hasIcon()) return false; + if (hasIcon()) { + if (!getIcon().equals(other.getIcon())) return false; + } + if (!getDestinationUri().equals(other.getDestinationUri())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (hasIcon()) { + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + getIcon().hashCode(); + } + hash = (37 * hash) + DESTINATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Describes an entity of shortcut (aka pinned content) on the homepage.
+       * The home page will render these shortcuts in the same order as what the
+       * API returns. If a customer wants to reorder or remove a shortcut, the UI
+       * should always provide the new full list of shortcuts.
+       * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIconFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + icon_ = null; + if (iconBuilder_ != null) { + iconBuilder_.dispose(); + iconBuilder_ = null; + } + destinationUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.icon_ = iconBuilder_ == null ? icon_ : iconBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.destinationUri_ = destinationUri_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + .getDefaultInstance()) return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIcon()) { + mergeIcon(other.getIcon()); + } + if (!other.getDestinationUri().isEmpty()) { + destinationUri_ = other.destinationUri_; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetIconFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + destinationUri_ = 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 title_ = ""; + + /** + * + * + *
+         * Optional. Title of the shortcut.
+         * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. Title of the shortcut.
+         * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. Title of the shortcut.
+         * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Title of the shortcut.
+         * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Title of the shortcut.
+         * 
+ * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.Image icon_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Image, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder> + iconBuilder_; + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the icon field is set. + */ + public boolean hasIcon() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The icon. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image getIcon() { + if (iconBuilder_ == null) { + return icon_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : icon_; + } else { + return iconBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIcon(com.google.cloud.discoveryengine.v1.WidgetConfig.Image value) { + if (iconBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + icon_ = value; + } else { + iconBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIcon( + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder builderForValue) { + if (iconBuilder_ == null) { + icon_ = builderForValue.build(); + } else { + iconBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIcon(com.google.cloud.discoveryengine.v1.WidgetConfig.Image value) { + if (iconBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && icon_ != null + && icon_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.Image + .getDefaultInstance()) { + getIconBuilder().mergeFrom(value); + } else { + icon_ = value; + } + } else { + iconBuilder_.mergeFrom(value); + } + if (icon_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIcon() { + bitField0_ = (bitField0_ & ~0x00000002); + icon_ = null; + if (iconBuilder_ != null) { + iconBuilder_.dispose(); + iconBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder getIconBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetIconFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder getIconOrBuilder() { + if (iconBuilder_ != null) { + return iconBuilder_.getMessageOrBuilder(); + } else { + return icon_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Image.getDefaultInstance() + : icon_; + } + } + + /** + * + * + *
+         * Optional. Icon URL of shortcut.
+         * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Image icon = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Image, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder> + internalGetIconFieldBuilder() { + if (iconBuilder_ == null) { + iconBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Image, + com.google.cloud.discoveryengine.v1.WidgetConfig.Image.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.ImageOrBuilder>( + getIcon(), getParentForChildren(), isClean()); + icon_ = null; + } + return iconBuilder_; + } + + private java.lang.Object destinationUri_ = ""; + + /** + * + * + *
+         * Optional. Destination URL of shortcut.
+         * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The destinationUri. + */ + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. Destination URL of shortcut.
+         * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for destinationUri. + */ + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. Destination URL of shortcut.
+         * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Destination URL of shortcut.
+         * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationUri() { + destinationUri_ = getDefaultInstance().getDestinationUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Destination URL of shortcut.
+         * 
+ * + * string destination_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Shortcut parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SHORTCUTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut> + shortcuts_; + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getShortcutsList() { + return shortcuts_; + } + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder> + getShortcutsOrBuilderList() { + return shortcuts_; + } + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getShortcutsCount() { + return shortcuts_.size(); + } + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut getShortcuts( + int index) { + return shortcuts_.get(index); + } + + /** + * + * + *
+     * Optional. The shortcuts to display on the homepage.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder + getShortcutsOrBuilder(int index) { + return shortcuts_.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 < shortcuts_.size(); i++) { + output.writeMessage(1, shortcuts_.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 < shortcuts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shortcuts_.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.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) obj; + + if (!getShortcutsList().equals(other.getShortcutsList())) 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 (getShortcutsCount() > 0) { + hash = (37 * hash) + SHORTCUTS_FIELD_NUMBER; + hash = (53 * hash) + getShortcutsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes the homepage setting of the widget. It includes all homepage
+     * related settings and configurations, such as shortcuts.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (shortcutsBuilder_ == null) { + shortcuts_ = java.util.Collections.emptyList(); + } else { + shortcuts_ = null; + shortcutsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting result) { + if (shortcutsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + shortcuts_ = java.util.Collections.unmodifiableList(shortcuts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.shortcuts_ = shortcuts_; + } else { + result.shortcuts_ = shortcutsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + .getDefaultInstance()) return this; + if (shortcutsBuilder_ == null) { + if (!other.shortcuts_.isEmpty()) { + if (shortcuts_.isEmpty()) { + shortcuts_ = other.shortcuts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureShortcutsIsMutable(); + shortcuts_.addAll(other.shortcuts_); + } + onChanged(); + } + } else { + if (!other.shortcuts_.isEmpty()) { + if (shortcutsBuilder_.isEmpty()) { + shortcutsBuilder_.dispose(); + shortcutsBuilder_ = null; + shortcuts_ = other.shortcuts_; + bitField0_ = (bitField0_ & ~0x00000001); + shortcutsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetShortcutsFieldBuilder() + : null; + } else { + shortcutsBuilder_.addAllMessages(other.shortcuts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + .parser(), + extensionRegistry); + if (shortcutsBuilder_ == null) { + ensureShortcutsIsMutable(); + shortcuts_.add(m); + } else { + shortcutsBuilder_.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< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut> + shortcuts_ = java.util.Collections.emptyList(); + + private void ensureShortcutsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + shortcuts_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut>( + shortcuts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder> + shortcutsBuilder_; + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut> + getShortcutsList() { + if (shortcutsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shortcuts_); + } else { + return shortcutsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getShortcutsCount() { + if (shortcutsBuilder_ == null) { + return shortcuts_.size(); + } else { + return shortcutsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut getShortcuts( + int index) { + if (shortcutsBuilder_ == null) { + return shortcuts_.get(index); + } else { + return shortcutsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setShortcuts( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut value) { + if (shortcutsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortcutsIsMutable(); + shortcuts_.set(index, value); + onChanged(); + } else { + shortcutsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setShortcuts( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + builderForValue) { + if (shortcutsBuilder_ == null) { + ensureShortcutsIsMutable(); + shortcuts_.set(index, builderForValue.build()); + onChanged(); + } else { + shortcutsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addShortcuts( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut value) { + if (shortcutsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortcutsIsMutable(); + shortcuts_.add(value); + onChanged(); + } else { + shortcutsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addShortcuts( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut value) { + if (shortcutsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortcutsIsMutable(); + shortcuts_.add(index, value); + onChanged(); + } else { + shortcutsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addShortcuts( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + builderForValue) { + if (shortcutsBuilder_ == null) { + ensureShortcutsIsMutable(); + shortcuts_.add(builderForValue.build()); + onChanged(); + } else { + shortcutsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addShortcuts( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + builderForValue) { + if (shortcutsBuilder_ == null) { + ensureShortcutsIsMutable(); + shortcuts_.add(index, builderForValue.build()); + onChanged(); + } else { + shortcutsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllShortcuts( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut> + values) { + if (shortcutsBuilder_ == null) { + ensureShortcutsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shortcuts_); + onChanged(); + } else { + shortcutsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearShortcuts() { + if (shortcutsBuilder_ == null) { + shortcuts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + shortcutsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeShortcuts(int index) { + if (shortcutsBuilder_ == null) { + ensureShortcutsIsMutable(); + shortcuts_.remove(index); + onChanged(); + } else { + shortcutsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + getShortcutsBuilder(int index) { + return internalGetShortcutsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder + getShortcutsOrBuilder(int index) { + if (shortcutsBuilder_ == null) { + return shortcuts_.get(index); + } else { + return shortcutsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + .ShortcutOrBuilder> + getShortcutsOrBuilderList() { + if (shortcutsBuilder_ != null) { + return shortcutsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shortcuts_); + } + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + addShortcutsBuilder() { + return internalGetShortcutsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder + addShortcutsBuilder(int index) { + return internalGetShortcutsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. The shortcuts to display on the homepage.
+       * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut shortcuts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder> + getShortcutsBuilderList() { + return internalGetShortcutsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.ShortcutOrBuilder> + internalGetShortcutsFieldBuilder() { + if (shortcutsBuilder_ == null) { + shortcutsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Shortcut.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + .ShortcutOrBuilder>( + shortcuts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + shortcuts_ = null; + } + return shortcutsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HomepageSetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AssistantSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + int getWebGroundingTypeValue(); + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + getWebGroundingType(); + + /** + * + * + *
+     * Output only. This field controls the default web grounding toggle for end
+     * users if `web_grounding_type` is set to
+     * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+     * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`.
+     * By default, this field is set to false. If `web_grounding_type` is
+     * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+     * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+     * grounding enabled by default on UI. If true, grounding toggle will be
+     * disabled by default on UI. End users can still enable web grounding in
+     * the UI if web grounding is enabled.
+     * 
+ * + * bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + boolean getDefaultWebGroundingToggleOff(); + + /** + * + * + *
+     * Optional. Output only. Whether to disable user location context.
+     * 
+ * + * + * bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disableLocationContext. + */ + boolean getDisableLocationContext(); + } + + /** + * + * + *
+   * Describes the assistant settings of the widget.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings} + */ + public static final class AssistantSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) + AssistantSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSettings"); + } + + // Use AssistantSettings.newBuilder() to construct. + private AssistantSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSettings() { + webGroundingType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder.class); + } + + /** + * + * + *
+     * The type of web grounding to use.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType} + */ + public enum WebGroundingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default, unspecified setting. This is the same as disabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + */ + WEB_GROUNDING_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Web grounding is disabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_DISABLED = 1; + */ + WEB_GROUNDING_TYPE_DISABLED(1), + /** + * + * + *
+       * Grounding with Google Search is enabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + */ + WEB_GROUNDING_TYPE_GOOGLE_SEARCH(2), + /** + * + * + *
+       * Grounding with Enterprise Web Search is enabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + */ + WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WebGroundingType"); + } + + /** + * + * + *
+       * Default, unspecified setting. This is the same as disabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + */ + public static final int WEB_GROUNDING_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Web grounding is disabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_DISABLED = 1; + */ + public static final int WEB_GROUNDING_TYPE_DISABLED_VALUE = 1; + + /** + * + * + *
+       * Grounding with Google Search is enabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + */ + public static final int WEB_GROUNDING_TYPE_GOOGLE_SEARCH_VALUE = 2; + + /** + * + * + *
+       * Grounding with Enterprise Web Search is enabled.
+       * 
+ * + * WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + */ + public static final int WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH_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 WebGroundingType 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 WebGroundingType forNumber(int value) { + switch (value) { + case 0: + return WEB_GROUNDING_TYPE_UNSPECIFIED; + case 1: + return WEB_GROUNDING_TYPE_DISABLED; + case 2: + return WEB_GROUNDING_TYPE_GOOGLE_SEARCH; + case 3: + return WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WebGroundingType findValueByNumber(int number) { + return WebGroundingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final WebGroundingType[] VALUES = values(); + + public static WebGroundingType 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 WebGroundingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType) + } + + public static final int WEB_GROUNDING_TYPE_FIELD_NUMBER = 2; + private int webGroundingType_ = 0; + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + @java.lang.Override + public int getWebGroundingTypeValue() { + return webGroundingType_; + } + + /** + * + * + *
+     * Optional. The type of web grounding to use.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + getWebGroundingType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + .forNumber(webGroundingType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + .UNRECOGNIZED + : result; + } + + public static final int DEFAULT_WEB_GROUNDING_TOGGLE_OFF_FIELD_NUMBER = 3; + private boolean defaultWebGroundingToggleOff_ = false; + + /** + * + * + *
+     * Output only. This field controls the default web grounding toggle for end
+     * users if `web_grounding_type` is set to
+     * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+     * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`.
+     * By default, this field is set to false. If `web_grounding_type` is
+     * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+     * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+     * grounding enabled by default on UI. If true, grounding toggle will be
+     * disabled by default on UI. End users can still enable web grounding in
+     * the UI if web grounding is enabled.
+     * 
+ * + * bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + @java.lang.Override + public boolean getDefaultWebGroundingToggleOff() { + return defaultWebGroundingToggleOff_; + } + + public static final int DISABLE_LOCATION_CONTEXT_FIELD_NUMBER = 5; + private boolean disableLocationContext_ = false; + + /** + * + * + *
+     * Optional. Output only. Whether to disable user location context.
+     * 
+ * + * + * bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disableLocationContext. + */ + @java.lang.Override + public boolean getDisableLocationContext() { + return disableLocationContext_; + } + + 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 (webGroundingType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + .WEB_GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, webGroundingType_); + } + if (defaultWebGroundingToggleOff_ != false) { + output.writeBool(3, defaultWebGroundingToggleOff_); + } + if (disableLocationContext_ != false) { + output.writeBool(5, disableLocationContext_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (webGroundingType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + .WEB_GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, webGroundingType_); + } + if (defaultWebGroundingToggleOff_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, defaultWebGroundingToggleOff_); + } + if (disableLocationContext_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableLocationContext_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) obj; + + if (webGroundingType_ != other.webGroundingType_) return false; + if (getDefaultWebGroundingToggleOff() != other.getDefaultWebGroundingToggleOff()) + return false; + if (getDisableLocationContext() != other.getDisableLocationContext()) 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) + WEB_GROUNDING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + webGroundingType_; + hash = (37 * hash) + DEFAULT_WEB_GROUNDING_TOGGLE_OFF_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultWebGroundingToggleOff()); + hash = (37 * hash) + DISABLE_LOCATION_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableLocationContext()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes the assistant settings of the widget.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + webGroundingType_ = 0; + defaultWebGroundingToggleOff_ = false; + disableLocationContext_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webGroundingType_ = webGroundingType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultWebGroundingToggleOff_ = defaultWebGroundingToggleOff_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableLocationContext_ = disableLocationContext_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + .getDefaultInstance()) return this; + if (other.webGroundingType_ != 0) { + setWebGroundingTypeValue(other.getWebGroundingTypeValue()); + } + if (other.getDefaultWebGroundingToggleOff() != false) { + setDefaultWebGroundingToggleOff(other.getDefaultWebGroundingToggleOff()); + } + if (other.getDisableLocationContext() != false) { + setDisableLocationContext(other.getDisableLocationContext()); + } + 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 16: + { + webGroundingType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + defaultWebGroundingToggleOff_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 40: + { + disableLocationContext_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 + 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 webGroundingType_ = 0; + + /** + * + * + *
+       * Optional. The type of web grounding to use.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + @java.lang.Override + public int getWebGroundingTypeValue() { + return webGroundingType_; + } + + /** + * + * + *
+       * Optional. The type of web grounding to use.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for webGroundingType to set. + * @return This builder for chaining. + */ + public Builder setWebGroundingTypeValue(int value) { + webGroundingType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type of web grounding to use.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + getWebGroundingType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + .forNumber(webGroundingType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The type of web grounding to use.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The webGroundingType to set. + * @return This builder for chaining. + */ + public Builder setWebGroundingType( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + webGroundingType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type of web grounding to use.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWebGroundingType() { + bitField0_ = (bitField0_ & ~0x00000001); + webGroundingType_ = 0; + onChanged(); + return this; + } + + private boolean defaultWebGroundingToggleOff_; + + /** + * + * + *
+       * Output only. This field controls the default web grounding toggle for end
+       * users if `web_grounding_type` is set to
+       * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+       * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`.
+       * By default, this field is set to false. If `web_grounding_type` is
+       * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+       * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+       * grounding enabled by default on UI. If true, grounding toggle will be
+       * disabled by default on UI. End users can still enable web grounding in
+       * the UI if web grounding is enabled.
+       * 
+ * + * + * bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + @java.lang.Override + public boolean getDefaultWebGroundingToggleOff() { + return defaultWebGroundingToggleOff_; + } + + /** + * + * + *
+       * Output only. This field controls the default web grounding toggle for end
+       * users if `web_grounding_type` is set to
+       * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+       * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`.
+       * By default, this field is set to false. If `web_grounding_type` is
+       * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+       * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+       * grounding enabled by default on UI. If true, grounding toggle will be
+       * disabled by default on UI. End users can still enable web grounding in
+       * the UI if web grounding is enabled.
+       * 
+ * + * + * bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The defaultWebGroundingToggleOff to set. + * @return This builder for chaining. + */ + public Builder setDefaultWebGroundingToggleOff(boolean value) { + + defaultWebGroundingToggleOff_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. This field controls the default web grounding toggle for end
+       * users if `web_grounding_type` is set to
+       * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+       * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`.
+       * By default, this field is set to false. If `web_grounding_type` is
+       * `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or
+       * `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
+       * grounding enabled by default on UI. If true, grounding toggle will be
+       * disabled by default on UI. End users can still enable web grounding in
+       * the UI if web grounding is enabled.
+       * 
+ * + * + * bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultWebGroundingToggleOff() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultWebGroundingToggleOff_ = false; + onChanged(); + return this; + } + + private boolean disableLocationContext_; + + /** + * + * + *
+       * Optional. Output only. Whether to disable user location context.
+       * 
+ * + * + * bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The disableLocationContext. + */ + @java.lang.Override + public boolean getDisableLocationContext() { + return disableLocationContext_; + } + + /** + * + * + *
+       * Optional. Output only. Whether to disable user location context.
+       * 
+ * + * + * bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The disableLocationContext to set. + * @return This builder for chaining. + */ + public Builder setDisableLocationContext(boolean value) { + + disableLocationContext_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Output only. Whether to disable user location context.
+       * 
+ * + * + * bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableLocationContext() { + bitField0_ = (bitField0_ & ~0x00000004); + disableLocationContext_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomerProvidedConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Customer type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return The enum numeric value on the wire for customerType. + */ + int getCustomerTypeValue(); + + /** + * + * + *
+     * Customer type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return The customerType. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + getCustomerType(); + + /** + * + * + *
+     * Output only. The customer's Assured Workloads compliance level.
+     *
+     * `customer_type` collapses every compliance level into a single
+     * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+     * specific level rather than on government status as a whole must read
+     * this field instead.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceLevel. + */ + int getComplianceLevelValue(); + + /** + * + * + *
+     * Output only. The customer's Assured Workloads compliance level.
+     *
+     * `customer_type` collapses every compliance level into a single
+     * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+     * specific level rather than on government status as a whole must read
+     * this field instead.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceLevel. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + getComplianceLevel(); + } + + /** + * + * + *
+   * Customer provided configurations.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig} + */ + public static final class CustomerProvidedConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) + CustomerProvidedConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomerProvidedConfig"); + } + + // Use CustomerProvidedConfig.newBuilder() to construct. + private CustomerProvidedConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomerProvidedConfig() { + customerType_ = 0; + complianceLevel_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder + .class); + } + + /** + * + * + *
+     * Customer type.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType} + */ + public enum CustomerType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default customer type.
+       * 
+ * + * DEFAULT_CUSTOMER = 0; + */ + DEFAULT_CUSTOMER(0), + /** + * + * + *
+       * Government customer type. Some features are disabled for government
+       * customers due to legal requirements.
+       * 
+ * + * GOVERNMENT_CUSTOMER = 1; + */ + GOVERNMENT_CUSTOMER(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomerType"); + } + + /** + * + * + *
+       * Default customer type.
+       * 
+ * + * DEFAULT_CUSTOMER = 0; + */ + public static final int DEFAULT_CUSTOMER_VALUE = 0; + + /** + * + * + *
+       * Government customer type. Some features are disabled for government
+       * customers due to legal requirements.
+       * 
+ * + * GOVERNMENT_CUSTOMER = 1; + */ + public static final int GOVERNMENT_CUSTOMER_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CustomerType 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 CustomerType forNumber(int value) { + switch (value) { + case 0: + return DEFAULT_CUSTOMER; + case 1: + return GOVERNMENT_CUSTOMER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CustomerType findValueByNumber(int number) { + return CustomerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CustomerType[] VALUES = values(); + + public static CustomerType 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 CustomerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType) + } + + /** + * + * + *
+     * Assured Workloads compliance level of the customer's project.
+     *
+     * Not frozen: further levels may be added as more compliance regimes are
+     * supported, so a client must treat an unrecognized value as
+     * government-restricted rather than as unrestricted.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel} + */ + public enum ComplianceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The project has no Assured Workloads compliance level, or reports one
+       * that this API version does not model.
+       * 
+ * + * COMPLIANCE_LEVEL_UNSPECIFIED = 0; + */ + COMPLIANCE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+       * FedRAMP High compliance level.
+       * 
+ * + * COMPLIANCE_LEVEL_FEDRAMP_HIGH = 1; + */ + COMPLIANCE_LEVEL_FEDRAMP_HIGH(1), + /** + * + * + *
+       * Impact Level 4 (IL4) compliance level.
+       * 
+ * + * COMPLIANCE_LEVEL_IL4 = 2; + */ + COMPLIANCE_LEVEL_IL4(2), + /** + * + * + *
+       * Impact Level 5 (IL5) compliance level.
+       * 
+ * + * COMPLIANCE_LEVEL_IL5 = 3; + */ + COMPLIANCE_LEVEL_IL5(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ComplianceLevel"); + } + + /** + * + * + *
+       * The project has no Assured Workloads compliance level, or reports one
+       * that this API version does not model.
+       * 
+ * + * COMPLIANCE_LEVEL_UNSPECIFIED = 0; + */ + public static final int COMPLIANCE_LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * FedRAMP High compliance level.
+       * 
+ * + * COMPLIANCE_LEVEL_FEDRAMP_HIGH = 1; + */ + public static final int COMPLIANCE_LEVEL_FEDRAMP_HIGH_VALUE = 1; + + /** + * + * + *
+       * Impact Level 4 (IL4) compliance level.
+       * 
+ * + * COMPLIANCE_LEVEL_IL4 = 2; + */ + public static final int COMPLIANCE_LEVEL_IL4_VALUE = 2; + + /** + * + * + *
+       * Impact Level 5 (IL5) compliance level.
+       * 
+ * + * COMPLIANCE_LEVEL_IL5 = 3; + */ + public static final int COMPLIANCE_LEVEL_IL5_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 ComplianceLevel 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 ComplianceLevel forNumber(int value) { + switch (value) { + case 0: + return COMPLIANCE_LEVEL_UNSPECIFIED; + case 1: + return COMPLIANCE_LEVEL_FEDRAMP_HIGH; + case 2: + return COMPLIANCE_LEVEL_IL4; + case 3: + return COMPLIANCE_LEVEL_IL5; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComplianceLevel findValueByNumber(int number) { + return ComplianceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ComplianceLevel[] VALUES = values(); + + public static ComplianceLevel 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 ComplianceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel) + } + + public static final int CUSTOMER_TYPE_FIELD_NUMBER = 1; + private int customerType_ = 0; + + /** + * + * + *
+     * Customer type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return The enum numeric value on the wire for customerType. + */ + @java.lang.Override + public int getCustomerTypeValue() { + return customerType_; + } + + /** + * + * + *
+     * Customer type.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return The customerType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + getCustomerType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + .forNumber(customerType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + .UNRECOGNIZED + : result; + } + + public static final int COMPLIANCE_LEVEL_FIELD_NUMBER = 2; + private int complianceLevel_ = 0; + + /** + * + * + *
+     * Output only. The customer's Assured Workloads compliance level.
+     *
+     * `customer_type` collapses every compliance level into a single
+     * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+     * specific level rather than on government status as a whole must read
+     * this field instead.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceLevel. + */ + @java.lang.Override + public int getComplianceLevelValue() { + return complianceLevel_; + } + + /** + * + * + *
+     * Output only. The customer's Assured Workloads compliance level.
+     *
+     * `customer_type` collapses every compliance level into a single
+     * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+     * specific level rather than on government status as a whole must read
+     * this field instead.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceLevel. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + getComplianceLevel() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .ComplianceLevel.forNumber(complianceLevel_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + .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 (customerType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + .DEFAULT_CUSTOMER + .getNumber()) { + output.writeEnum(1, customerType_); + } + if (complianceLevel_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + .COMPLIANCE_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, complianceLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customerType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + .DEFAULT_CUSTOMER + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, customerType_); + } + if (complianceLevel_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + .COMPLIANCE_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, complianceLevel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) obj; + + if (customerType_ != other.customerType_) return false; + if (complianceLevel_ != other.complianceLevel_) 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) + CUSTOMER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + customerType_; + hash = (37 * hash) + COMPLIANCE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + complianceLevel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Customer provided configurations.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customerType_ = 0; + complianceLevel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customerType_ = customerType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.complianceLevel_ = complianceLevel_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig other) { + if (other + == com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance()) return this; + if (other.customerType_ != 0) { + setCustomerTypeValue(other.getCustomerTypeValue()); + } + if (other.complianceLevel_ != 0) { + setComplianceLevelValue(other.getComplianceLevelValue()); + } + 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: + { + customerType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + complianceLevel_ = input.readEnum(); + 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 customerType_ = 0; + + /** + * + * + *
+       * Customer type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return The enum numeric value on the wire for customerType. + */ + @java.lang.Override + public int getCustomerTypeValue() { + return customerType_; + } + + /** + * + * + *
+       * Customer type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @param value The enum numeric value on the wire for customerType to set. + * @return This builder for chaining. + */ + public Builder setCustomerTypeValue(int value) { + customerType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Customer type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return The customerType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + getCustomerType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + .forNumber(customerType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Customer type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @param value The customerType to set. + * @return This builder for chaining. + */ + public Builder setCustomerType( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + customerType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Customer type.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.CustomerType customer_type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomerType() { + bitField0_ = (bitField0_ & ~0x00000001); + customerType_ = 0; + onChanged(); + return this; + } + + private int complianceLevel_ = 0; + + /** + * + * + *
+       * Output only. The customer's Assured Workloads compliance level.
+       *
+       * `customer_type` collapses every compliance level into a single
+       * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+       * specific level rather than on government status as a whole must read
+       * this field instead.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for complianceLevel. + */ + @java.lang.Override + public int getComplianceLevelValue() { + return complianceLevel_; + } + + /** + * + * + *
+       * Output only. The customer's Assured Workloads compliance level.
+       *
+       * `customer_type` collapses every compliance level into a single
+       * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+       * specific level rather than on government status as a whole must read
+       * this field instead.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for complianceLevel to set. + * @return This builder for chaining. + */ + public Builder setComplianceLevelValue(int value) { + complianceLevel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The customer's Assured Workloads compliance level.
+       *
+       * `customer_type` collapses every compliance level into a single
+       * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+       * specific level rather than on government status as a whole must read
+       * this field instead.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The complianceLevel. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + getComplianceLevel() { + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + result = + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .ComplianceLevel.forNumber(complianceLevel_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .ComplianceLevel.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The customer's Assured Workloads compliance level.
+       *
+       * `customer_type` collapses every compliance level into a single
+       * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+       * specific level rather than on government status as a whole must read
+       * this field instead.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The complianceLevel to set. + * @return This builder for chaining. + */ + public Builder setComplianceLevel( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + complianceLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The customer's Assured Workloads compliance level.
+       *
+       * `customer_type` collapses every compliance level into a single
+       * `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one
+       * specific level rather than on government status as a whole must read
+       * this field instead.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.ComplianceLevel compliance_level = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearComplianceLevel() { + bitField0_ = (bitField0_ & ~0x00000002); + complianceLevel_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerProvidedConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig.Node) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. A human readable name for the node.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+     * Output only. A human readable name for the node.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * Output only. An identifier or URL pointing to an icon representing this
+     * node type.
+     * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUrl. + */ + java.lang.String getIconUrl(); + + /** + * + * + *
+     * Output only. An identifier or URL pointing to an icon representing this
+     * node type.
+     * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUrl. + */ + com.google.protobuf.ByteString getIconUrlBytes(); + + /** + * + * + *
+     * Output only. A detailed description of what the node does.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+     * Output only. A detailed description of what the node does.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+     * Output only. The parameter schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+     * expected structure of the parameters that this node accepts.
+     * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parameterSchema field is set. + */ + boolean hasParameterSchema(); + + /** + * + * + *
+     * Output only. The parameter schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+     * expected structure of the parameters that this node accepts.
+     * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The parameterSchema. + */ + com.google.protobuf.Struct getParameterSchema(); + + /** + * + * + *
+     * Output only. The parameter schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+     * expected structure of the parameters that this node accepts.
+     * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getParameterSchemaOrBuilder(); + + /** + * + * + *
+     * Output only. The output schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+     * structure of the output produced by this node.
+     * 
+ * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the outputSchema field is set. + */ + boolean hasOutputSchema(); + + /** + * + * + *
+     * Output only. The output schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+     * structure of the output produced by this node.
+     * 
+ * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outputSchema. + */ + com.google.protobuf.Struct getOutputSchema(); + + /** + * + * + *
+     * Output only. The output schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+     * structure of the output produced by this node.
+     * 
+ * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder(); + + /** + * + * + *
+     * Output only. The type of the node.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+     * Output only. The type of the node.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type getType(); + } + + /** + * + * + *
+   * Represents a single reusable computational or logical unit.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.Node} + */ + public static final class Node extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1.WidgetConfig.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Node"); + } + + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Node() { + displayName_ = ""; + iconUrl_ = ""; + description_ = ""; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder.class); + } + + /** + * + * + *
+     * Identifies the type of the node in the agent flow.
+     * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.WidgetConfig.Node.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified type.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Trigger type.
+       * 
+ * + * TRIGGER = 1; + */ + TRIGGER(1), + /** + * + * + *
+       * Flow type.
+       * 
+ * + * FLOW = 2; + */ + FLOW(2), + /** + * + * + *
+       * Connector type.
+       * 
+ * + * CONNECTOR = 3; + */ + CONNECTOR(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+       * Unspecified type.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Trigger type.
+       * 
+ * + * TRIGGER = 1; + */ + public static final int TRIGGER_VALUE = 1; + + /** + * + * + *
+       * Flow type.
+       * 
+ * + * FLOW = 2; + */ + public static final int FLOW_VALUE = 2; + + /** + * + * + *
+       * Connector type.
+       * 
+ * + * CONNECTOR = 3; + */ + public static final int CONNECTOR_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return TRIGGER; + case 2: + return FLOW; + case 3: + return CONNECTOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.Node.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.WidgetConfig.Node.Type) + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Output only. A human readable name for the node.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A human readable name for the node.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 ICON_URL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconUrl_ = ""; + + /** + * + * + *
+     * Output only. An identifier or URL pointing to an icon representing this
+     * node type.
+     * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUrl. + */ + @java.lang.Override + public java.lang.String getIconUrl() { + java.lang.Object ref = iconUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUrl_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. An identifier or URL pointing to an icon representing this
+     * node type.
+     * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconUrlBytes() { + java.lang.Object ref = iconUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+     * Output only. A detailed description of what the node does.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A detailed description of what the node does.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 PARAMETER_SCHEMA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct parameterSchema_; + + /** + * + * + *
+     * Output only. The parameter schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+     * expected structure of the parameters that this node accepts.
+     * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parameterSchema field is set. + */ + @java.lang.Override + public boolean hasParameterSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The parameter schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+     * expected structure of the parameters that this node accepts.
+     * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The parameterSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getParameterSchema() { + return parameterSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : parameterSchema_; + } + + /** + * + * + *
+     * Output only. The parameter schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+     * expected structure of the parameters that this node accepts.
+     * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParameterSchemaOrBuilder() { + return parameterSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : parameterSchema_; + } + + public static final int OUTPUT_SCHEMA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct outputSchema_; + + /** + * + * + *
+     * Output only. The output schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+     * structure of the output produced by this node.
+     * 
+ * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the outputSchema field is set. + */ + @java.lang.Override + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The output schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+     * structure of the output produced by this node.
+     * 
+ * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outputSchema. + */ + @java.lang.Override + public com.google.protobuf.Struct getOutputSchema() { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } + + /** + * + * + *
+     * Output only. The output schema of the tool.
+     *
+     * This schema is expected to conform to the OpenAPI Schema standard (see
+     * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+     * structure of the output produced by this node.
+     * 
+ * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder() { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + + /** + * + * + *
+     * Output only. The type of the node.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Output only. The type of the node.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type getType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type result = + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type.forNumber(type_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, iconUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getParameterSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getOutputSchema()); + } + if (type_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, iconUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParameterSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputSchema()); + } + if (type_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.Node)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig.Node other = + (com.google.cloud.discoveryengine.v1.WidgetConfig.Node) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getIconUrl().equals(other.getIconUrl())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasParameterSchema() != other.hasParameterSchema()) return false; + if (hasParameterSchema()) { + if (!getParameterSchema().equals(other.getParameterSchema())) return false; + } + if (hasOutputSchema() != other.hasOutputSchema()) return false; + if (hasOutputSchema()) { + if (!getOutputSchema().equals(other.getOutputSchema())) return false; + } + if (type_ != other.type_) 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) + ICON_URL_FIELD_NUMBER; + hash = (53 * hash) + getIconUrl().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasParameterSchema()) { + hash = (37 * hash) + PARAMETER_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getParameterSchema().hashCode(); + } + if (hasOutputSchema()) { + hash = (37 * hash) + OUTPUT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getOutputSchema().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.Node prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents a single reusable computational or logical unit.
+     * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig.Node} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig.Node) + com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.WidgetConfig.Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParameterSchemaFieldBuilder(); + internalGetOutputSchemaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + iconUrl_ = ""; + description_ = ""; + parameterSchema_ = null; + if (parameterSchemaBuilder_ != null) { + parameterSchemaBuilder_.dispose(); + parameterSchemaBuilder_ = null; + } + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.Node.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node build() { + com.google.cloud.discoveryengine.v1.WidgetConfig.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig.Node result = + new com.google.cloud.discoveryengine.v1.WidgetConfig.Node(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.WidgetConfig.Node result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.iconUrl_ = iconUrl_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameterSchema_ = + parameterSchemaBuilder_ == null ? parameterSchema_ : parameterSchemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputSchema_ = + outputSchemaBuilder_ == null ? outputSchema_ : outputSchemaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig.Node) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WidgetConfig.Node) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WidgetConfig.Node other) { + if (other == com.google.cloud.discoveryengine.v1.WidgetConfig.Node.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIconUrl().isEmpty()) { + iconUrl_ = other.iconUrl_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasParameterSchema()) { + mergeParameterSchema(other.getParameterSchema()); + } + if (other.hasOutputSchema()) { + mergeOutputSchema(other.getOutputSchema()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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: + { + iconUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetParameterSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetOutputSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + type_ = 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 java.lang.Object displayName_ = ""; + + /** + * + * + *
+       * Output only. A human readable name for the node.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. A human readable name for the node.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. A human readable name for the node.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+       * Output only. A human readable name for the node.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. A human readable name for the node.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 iconUrl_ = ""; + + /** + * + * + *
+       * Output only. An identifier or URL pointing to an icon representing this
+       * node type.
+       * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The iconUrl. + */ + public java.lang.String getIconUrl() { + java.lang.Object ref = iconUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. An identifier or URL pointing to an icon representing this
+       * node type.
+       * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for iconUrl. + */ + public com.google.protobuf.ByteString getIconUrlBytes() { + java.lang.Object ref = iconUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. An identifier or URL pointing to an icon representing this
+       * node type.
+       * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The iconUrl to set. + * @return This builder for chaining. + */ + public Builder setIconUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + iconUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An identifier or URL pointing to an icon representing this
+       * node type.
+       * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIconUrl() { + iconUrl_ = getDefaultInstance().getIconUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. An identifier or URL pointing to an icon representing this
+       * node type.
+       * 
+ * + * string icon_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for iconUrl to set. + * @return This builder for chaining. + */ + public Builder setIconUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iconUrl_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+       * Output only. A detailed description of what the node does.
+       * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. A detailed description of what the node does.
+       * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. A detailed description of what the node does.
+       * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. A detailed description of what the node does.
+       * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. A detailed description of what the node does.
+       * 
+ * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct parameterSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + parameterSchemaBuilder_; + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the parameterSchema field is set. + */ + public boolean hasParameterSchema() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The parameterSchema. + */ + public com.google.protobuf.Struct getParameterSchema() { + if (parameterSchemaBuilder_ == null) { + return parameterSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : parameterSchema_; + } else { + return parameterSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setParameterSchema(com.google.protobuf.Struct value) { + if (parameterSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterSchema_ = value; + } else { + parameterSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setParameterSchema(com.google.protobuf.Struct.Builder builderForValue) { + if (parameterSchemaBuilder_ == null) { + parameterSchema_ = builderForValue.build(); + } else { + parameterSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeParameterSchema(com.google.protobuf.Struct value) { + if (parameterSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && parameterSchema_ != null + && parameterSchema_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParameterSchemaBuilder().mergeFrom(value); + } else { + parameterSchema_ = value; + } + } else { + parameterSchemaBuilder_.mergeFrom(value); + } + if (parameterSchema_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearParameterSchema() { + bitField0_ = (bitField0_ & ~0x00000008); + parameterSchema_ = null; + if (parameterSchemaBuilder_ != null) { + parameterSchemaBuilder_.dispose(); + parameterSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getParameterSchemaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetParameterSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getParameterSchemaOrBuilder() { + if (parameterSchemaBuilder_ != null) { + return parameterSchemaBuilder_.getMessageOrBuilder(); + } else { + return parameterSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : parameterSchema_; + } + } + + /** + * + * + *
+       * Output only. The parameter schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the
+       * expected structure of the parameters that this node accepts.
+       * 
+ * + * + * .google.protobuf.Struct parameter_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetParameterSchemaFieldBuilder() { + if (parameterSchemaBuilder_ == null) { + parameterSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParameterSchema(), getParentForChildren(), isClean()); + parameterSchema_ = null; + } + return parameterSchemaBuilder_; + } + + private com.google.protobuf.Struct outputSchema_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + outputSchemaBuilder_; + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the outputSchema field is set. + */ + public boolean hasOutputSchema() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outputSchema. + */ + public com.google.protobuf.Struct getOutputSchema() { + if (outputSchemaBuilder_ == null) { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } else { + return outputSchemaBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputSchema(com.google.protobuf.Struct value) { + if (outputSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputSchema_ = value; + } else { + outputSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputSchema(com.google.protobuf.Struct.Builder builderForValue) { + if (outputSchemaBuilder_ == null) { + outputSchema_ = builderForValue.build(); + } else { + outputSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeOutputSchema(com.google.protobuf.Struct value) { + if (outputSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && outputSchema_ != null + && outputSchema_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOutputSchemaBuilder().mergeFrom(value); + } else { + outputSchema_ = value; + } + } else { + outputSchemaBuilder_.mergeFrom(value); + } + if (outputSchema_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOutputSchema() { + bitField0_ = (bitField0_ & ~0x00000010); + outputSchema_ = null; + if (outputSchemaBuilder_ != null) { + outputSchemaBuilder_.dispose(); + outputSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getOutputSchemaBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOutputSchemaFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder() { + if (outputSchemaBuilder_ != null) { + return outputSchemaBuilder_.getMessageOrBuilder(); + } else { + return outputSchema_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputSchema_; + } + } + + /** + * + * + *
+       * Output only. The output schema of the tool.
+       *
+       * This schema is expected to conform to the OpenAPI Schema standard (see
+       * https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the
+       * structure of the output produced by this node.
+       * 
+ * + * + * .google.protobuf.Struct output_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetOutputSchemaFieldBuilder() { + if (outputSchemaBuilder_ == null) { + outputSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOutputSchema(), getParentForChildren(), isClean()); + outputSchema_ = null; + } + return outputSchemaBuilder_; + } + + private int type_ = 0; + + /** + * + * + *
+       * Output only. The type of the node.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+       * Output only. The type of the node.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the node.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type getType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type result = + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type.forNumber(type_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The type of the node.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the node.
+       * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.Node.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig.Node) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig.Node) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig.Node DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig.Node(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Immutable. The full resource name of the widget config.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Immutable. The full resource name of the widget config.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The human readable widget config display name. Used in Discovery
+   * UI.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The human readable widget config display name. Used in Discovery
+   * UI.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 15; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DATA_STORE_TYPE_FIELD_NUMBER = 8; + private int dataStoreType_ = 0; + + /** + * + * + *
+   * Output only. The type of the parent data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataStoreType. + */ + @java.lang.Override + public int getDataStoreTypeValue() { + return dataStoreType_; + } + + /** + * + * + *
+   * Output only. The type of the parent data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataStoreType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType getDataStoreType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType.forNumber(dataStoreType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType.UNRECOGNIZED + : result; + } + + public static final int CONFIG_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object configId_ = ""; + + /** + * + * + *
+   * Output only. Unique obfuscated identifier of a
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+   * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The configId. + */ + @java.lang.Override + public java.lang.String getConfigId() { + java.lang.Object ref = configId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Unique obfuscated identifier of a
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+   * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for configId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfigIdBytes() { + java.lang.Object ref = configId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + configId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOLUTION_TYPE_FIELD_NUMBER = 14; + private int solutionType_ = 0; + + /** + * + * + *
+   * Required. Immutable. Specifies the solution type that this WidgetConfig can
+   * be used for.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + @java.lang.Override + public int getSolutionTypeValue() { + return solutionType_; + } + + /** + * + * + *
+   * Required. Immutable. Specifies the solution type that this WidgetConfig can
+   * be used for.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1.SolutionType result = + com.google.cloud.discoveryengine.v1.SolutionType.forNumber(solutionType_); + return result == null ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED : result; + } + + public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 26; + private int industryVertical_ = 0; + + /** + * + * + *
+   * Output only. The industry vertical that the WidgetConfig registers.
+   * The WidgetConfig industry vertical is based on the associated
+   * [Engine][google.cloud.discoveryengine.v1.Engine].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } + + /** + * + * + *
+   * Output only. The industry vertical that the WidgetConfig registers.
+   * The WidgetConfig industry vertical is based on the associated
+   * [Engine][google.cloud.discoveryengine.v1.Engine].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; + } + + public static final int LLM_ENABLED_FIELD_NUMBER = 20; + private boolean llmEnabled_ = false; + + /** + * + * + *
+   * Output only. Whether LLM is enabled in the corresponding data store.
+   * 
+ * + * bool llm_enabled = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The llmEnabled. + */ + @java.lang.Override + public boolean getLlmEnabled() { + return llmEnabled_; + } + + public static final int ENABLE_RESULT_SCORE_FIELD_NUMBER = 21; + private boolean enableResultScore_ = false; + + /** + * + * + *
+   * Whether to show the result score.
+   * 
+ * + * bool enable_result_score = 21; + * + * @return The enableResultScore. + */ + @java.lang.Override + public boolean getEnableResultScore() { + return enableResultScore_; + } + + public static final int MINIMUM_DATA_TERM_ACCEPTED_FIELD_NUMBER = 25; + private boolean minimumDataTermAccepted_ = false; + + /** + * + * + *
+   * Output only. Whether the customer accepted data use terms.
+   * 
+ * + * bool minimum_data_term_accepted = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minimumDataTermAccepted. + */ + @java.lang.Override + public boolean getMinimumDataTermAccepted() { + return minimumDataTermAccepted_; + } + + public static final int COLLECTION_COMPONENTS_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private java.util.List + collectionComponents_; + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCollectionComponentsList() { + return collectionComponents_; + } + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder> + getCollectionComponentsOrBuilderList() { + return collectionComponents_; + } + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCollectionComponentsCount() { + return collectionComponents_.size(); + } + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + getCollectionComponents(int index) { + return collectionComponents_.get(index); + } + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder + getCollectionComponentsOrBuilder(int index) { + return collectionComponents_.get(index); + } + + public static final int UI_SETTINGS_FIELD_NUMBER = 33; + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings uiSettings_; + + /** + * + * + *
+   * Describes general widget search settings as seen in cloud console
+   * widget configuration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + * + * @return Whether the uiSettings field is set. + */ + @java.lang.Override + public boolean hasUiSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Describes general widget search settings as seen in cloud console
+   * widget configuration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + * + * @return The uiSettings. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings getUiSettings() { + return uiSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDefaultInstance() + : uiSettings_; + } + + /** + * + * + *
+   * Describes general widget search settings as seen in cloud console
+   * widget configuration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder + getUiSettingsOrBuilder() { + return uiSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDefaultInstance() + : uiSettings_; + } + + public static final int ACCESS_SETTINGS_FIELD_NUMBER = 34; + private com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings accessSettings_; + + /** + * + * + *
+   * Will be used for all widget access settings seen in cloud console
+   * integration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + * @return Whether the accessSettings field is set. + */ + @java.lang.Override + public boolean hasAccessSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Will be used for all widget access settings seen in cloud console
+   * integration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + * @return The accessSettings. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings getAccessSettings() { + return accessSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.getDefaultInstance() + : accessSettings_; + } + + /** + * + * + *
+   * Will be used for all widget access settings seen in cloud console
+   * integration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder + getAccessSettingsOrBuilder() { + return accessSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.getDefaultInstance() + : accessSettings_; + } + + public static final int UI_BRANDING_FIELD_NUMBER = 35; + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings uiBranding_; + + /** + * + * + *
+   * Describes search widget UI branding settings, such as the widget title,
+   * logo, favicons, and colors.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + * @return Whether the uiBranding field is set. + */ + @java.lang.Override + public boolean hasUiBranding() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Describes search widget UI branding settings, such as the widget title,
+   * logo, favicons, and colors.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + * @return The uiBranding. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings getUiBranding() { + return uiBranding_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.getDefaultInstance() + : uiBranding_; + } + + /** + * + * + *
+   * Describes search widget UI branding settings, such as the widget title,
+   * logo, favicons, and colors.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder + getUiBrandingOrBuilder() { + return uiBranding_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.getDefaultInstance() + : uiBranding_; + } + + public static final int HOMEPAGE_SETTING_FIELD_NUMBER = 38; + private com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepageSetting_; + + /** + * + * + *
+   * Optional. Describes the homepage settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the homepageSetting field is set. + */ + @java.lang.Override + public boolean hasHomepageSetting() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. Describes the homepage settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The homepageSetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting getHomepageSetting() { + return homepageSetting_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.getDefaultInstance() + : homepageSetting_; + } + + /** + * + * + *
+   * Optional. Describes the homepage settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder + getHomepageSettingOrBuilder() { + return homepageSetting_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.getDefaultInstance() + : homepageSetting_; + } + + public static final int ASSISTANT_SETTINGS_FIELD_NUMBER = 39; + private com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistantSettings_; + + /** + * + * + *
+   * Optional. Output only. Describes the assistant settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the assistantSettings field is set. + */ + @java.lang.Override + public boolean hasAssistantSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Output only. Describes the assistant settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assistantSettings. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings getAssistantSettings() { + return assistantSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.getDefaultInstance() + : assistantSettings_; + } + + /** + * + * + *
+   * Optional. Output only. Describes the assistant settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder + getAssistantSettingsOrBuilder() { + return assistantSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.getDefaultInstance() + : assistantSettings_; + } + + public static final int CUSTOMER_PROVIDED_CONFIG_FIELD_NUMBER = 40; + private com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + customerProvidedConfig_; + + /** + * + * + *
+   * Optional. Output only. Describes the customer related configurations,
+   * currently only used for government customers. This field cannot be modified
+   * after project onboarding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + @java.lang.Override + public boolean hasCustomerProvidedConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Output only. Describes the customer related configurations,
+   * currently only used for government customers. This field cannot be modified
+   * after project onboarding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerProvidedConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + getCustomerProvidedConfig() { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; + } + + /** + * + * + *
+   * Optional. Output only. Describes the customer related configurations,
+   * currently only used for government customers. This field cannot be modified
+   * after project onboarding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder() { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; + } + + public static final int ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER = 42; + private boolean enablePrivateKnowledgeGraph_ = false; + + /** + * + * + *
+   * Optional. Output only. Whether to enable private knowledge graph.
+   * 
+ * + * + * bool enable_private_knowledge_graph = 42 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablePrivateKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnablePrivateKnowledgeGraph() { + return enablePrivateKnowledgeGraph_; + } + + public static final int GEMINI_BUNDLE_FIELD_NUMBER = 44; + private boolean geminiBundle_ = false; + + /** + * + * + *
+   * Output only. Whether the subscription is gemini bundle or not.
+   * 
+ * + * bool gemini_bundle = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + @java.lang.Override + public boolean getGeminiBundle() { + return geminiBundle_; + } + + public static final int BATCH_AUTH_STATUSES_FIELD_NUMBER = 48; + + @SuppressWarnings("serial") + private java.util.List + batchAuthStatuses_; + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBatchAuthStatusesList() { + return batchAuthStatuses_; + } + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder> + getBatchAuthStatusesOrBuilderList() { + return batchAuthStatuses_; + } + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBatchAuthStatusesCount() { + return batchAuthStatuses_.size(); + } + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus getBatchAuthStatuses( + int index) { + return batchAuthStatuses_.get(index); + } + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder + getBatchAuthStatusesOrBuilder(int index) { + return batchAuthStatuses_.get(index); + } + + public static final int NODES_FIELD_NUMBER = 46; + + @SuppressWarnings("serial") + private java.util.List nodes_; + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getNodesList() { + return nodes_; + } + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getNodesCount() { + return nodes_.size(); + } + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node getNodes(int index) { + return nodes_.get(index); + } + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (dataStoreType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType + .DATA_STORE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, dataStoreType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, configId_); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(14, solutionType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getUpdateTime()); + } + if (llmEnabled_ != false) { + output.writeBool(20, llmEnabled_); + } + if (enableResultScore_ != false) { + output.writeBool(21, enableResultScore_); + } + if (minimumDataTermAccepted_ != false) { + output.writeBool(25, minimumDataTermAccepted_); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(26, industryVertical_); + } + for (int i = 0; i < collectionComponents_.size(); i++) { + output.writeMessage(29, collectionComponents_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(33, getUiSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(34, getAccessSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(35, getUiBranding()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(38, getHomepageSetting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(39, getAssistantSettings()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(40, getCustomerProvidedConfig()); + } + if (enablePrivateKnowledgeGraph_ != false) { + output.writeBool(42, enablePrivateKnowledgeGraph_); + } + if (geminiBundle_ != false) { + output.writeBool(44, geminiBundle_); + } + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(46, nodes_.get(i)); + } + for (int i = 0; i < batchAuthStatuses_.size(); i++) { + output.writeMessage(48, batchAuthStatuses_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (dataStoreType_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType + .DATA_STORE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, dataStoreType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(configId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, configId_); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, solutionType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpdateTime()); + } + if (llmEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, llmEnabled_); + } + if (enableResultScore_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, enableResultScore_); + } + if (minimumDataTermAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, minimumDataTermAccepted_); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, industryVertical_); + } + for (int i = 0; i < collectionComponents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, collectionComponents_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getUiSettings()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getAccessSettings()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getUiBranding()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getHomepageSetting()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, getAssistantSettings()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(40, getCustomerProvidedConfig()); + } + if (enablePrivateKnowledgeGraph_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(42, enablePrivateKnowledgeGraph_); + } + if (geminiBundle_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(44, geminiBundle_); + } + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, nodes_.get(i)); + } + for (int i = 0; i < batchAuthStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, batchAuthStatuses_.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.google.cloud.discoveryengine.v1.WidgetConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1.WidgetConfig other = + (com.google.cloud.discoveryengine.v1.WidgetConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (dataStoreType_ != other.dataStoreType_) return false; + if (!getConfigId().equals(other.getConfigId())) return false; + if (solutionType_ != other.solutionType_) return false; + if (industryVertical_ != other.industryVertical_) return false; + if (getLlmEnabled() != other.getLlmEnabled()) return false; + if (getEnableResultScore() != other.getEnableResultScore()) return false; + if (getMinimumDataTermAccepted() != other.getMinimumDataTermAccepted()) return false; + if (!getCollectionComponentsList().equals(other.getCollectionComponentsList())) return false; + if (hasUiSettings() != other.hasUiSettings()) return false; + if (hasUiSettings()) { + if (!getUiSettings().equals(other.getUiSettings())) return false; + } + if (hasAccessSettings() != other.hasAccessSettings()) return false; + if (hasAccessSettings()) { + if (!getAccessSettings().equals(other.getAccessSettings())) return false; + } + if (hasUiBranding() != other.hasUiBranding()) return false; + if (hasUiBranding()) { + if (!getUiBranding().equals(other.getUiBranding())) return false; + } + if (hasHomepageSetting() != other.hasHomepageSetting()) return false; + if (hasHomepageSetting()) { + if (!getHomepageSetting().equals(other.getHomepageSetting())) return false; + } + if (hasAssistantSettings() != other.hasAssistantSettings()) return false; + if (hasAssistantSettings()) { + if (!getAssistantSettings().equals(other.getAssistantSettings())) return false; + } + if (hasCustomerProvidedConfig() != other.hasCustomerProvidedConfig()) return false; + if (hasCustomerProvidedConfig()) { + if (!getCustomerProvidedConfig().equals(other.getCustomerProvidedConfig())) return false; + } + if (getEnablePrivateKnowledgeGraph() != other.getEnablePrivateKnowledgeGraph()) return false; + if (getGeminiBundle() != other.getGeminiBundle()) return false; + if (!getBatchAuthStatusesList().equals(other.getBatchAuthStatusesList())) return false; + if (!getNodesList().equals(other.getNodesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DATA_STORE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + dataStoreType_; + hash = (37 * hash) + CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfigId().hashCode(); + hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + solutionType_; + hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; + hash = (53 * hash) + industryVertical_; + hash = (37 * hash) + LLM_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLlmEnabled()); + hash = (37 * hash) + ENABLE_RESULT_SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableResultScore()); + hash = (37 * hash) + MINIMUM_DATA_TERM_ACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMinimumDataTermAccepted()); + if (getCollectionComponentsCount() > 0) { + hash = (37 * hash) + COLLECTION_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getCollectionComponentsList().hashCode(); + } + if (hasUiSettings()) { + hash = (37 * hash) + UI_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUiSettings().hashCode(); + } + if (hasAccessSettings()) { + hash = (37 * hash) + ACCESS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessSettings().hashCode(); + } + if (hasUiBranding()) { + hash = (37 * hash) + UI_BRANDING_FIELD_NUMBER; + hash = (53 * hash) + getUiBranding().hashCode(); + } + if (hasHomepageSetting()) { + hash = (37 * hash) + HOMEPAGE_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getHomepageSetting().hashCode(); + } + if (hasAssistantSettings()) { + hash = (37 * hash) + ASSISTANT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSettings().hashCode(); + } + if (hasCustomerProvidedConfig()) { + hash = (37 * hash) + CUSTOMER_PROVIDED_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomerProvidedConfig().hashCode(); + } + hash = (37 * hash) + ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateKnowledgeGraph()); + hash = (37 * hash) + GEMINI_BUNDLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGeminiBundle()); + if (getBatchAuthStatusesCount() > 0) { + hash = (37 * hash) + BATCH_AUTH_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getBatchAuthStatusesList().hashCode(); + } + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1.WidgetConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * WidgetConfig captures configs at the Widget level.
+   * 
+ * + * Protobuf type {@code google.cloud.discoveryengine.v1.WidgetConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1.WidgetConfig) + com.google.cloud.discoveryengine.v1.WidgetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1.WidgetConfig.class, + com.google.cloud.discoveryengine.v1.WidgetConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1.WidgetConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetCollectionComponentsFieldBuilder(); + internalGetUiSettingsFieldBuilder(); + internalGetAccessSettingsFieldBuilder(); + internalGetUiBrandingFieldBuilder(); + internalGetHomepageSettingFieldBuilder(); + internalGetAssistantSettingsFieldBuilder(); + internalGetCustomerProvidedConfigFieldBuilder(); + internalGetBatchAuthStatusesFieldBuilder(); + internalGetNodesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + dataStoreType_ = 0; + configId_ = ""; + solutionType_ = 0; + industryVertical_ = 0; + llmEnabled_ = false; + enableResultScore_ = false; + minimumDataTermAccepted_ = false; + if (collectionComponentsBuilder_ == null) { + collectionComponents_ = java.util.Collections.emptyList(); + } else { + collectionComponents_ = null; + collectionComponentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + uiSettings_ = null; + if (uiSettingsBuilder_ != null) { + uiSettingsBuilder_.dispose(); + uiSettingsBuilder_ = null; + } + accessSettings_ = null; + if (accessSettingsBuilder_ != null) { + accessSettingsBuilder_.dispose(); + accessSettingsBuilder_ = null; + } + uiBranding_ = null; + if (uiBrandingBuilder_ != null) { + uiBrandingBuilder_.dispose(); + uiBrandingBuilder_ = null; + } + homepageSetting_ = null; + if (homepageSettingBuilder_ != null) { + homepageSettingBuilder_.dispose(); + homepageSettingBuilder_ = null; + } + assistantSettings_ = null; + if (assistantSettingsBuilder_ != null) { + assistantSettingsBuilder_.dispose(); + assistantSettingsBuilder_ = null; + } + customerProvidedConfig_ = null; + if (customerProvidedConfigBuilder_ != null) { + customerProvidedConfigBuilder_.dispose(); + customerProvidedConfigBuilder_ = null; + } + enablePrivateKnowledgeGraph_ = false; + geminiBundle_ = false; + if (batchAuthStatusesBuilder_ == null) { + batchAuthStatuses_ = java.util.Collections.emptyList(); + } else { + batchAuthStatuses_ = null; + batchAuthStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + } else { + nodes_ = null; + nodesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfigProto + .internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig build() { + com.google.cloud.discoveryengine.v1.WidgetConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig buildPartial() { + com.google.cloud.discoveryengine.v1.WidgetConfig result = + new com.google.cloud.discoveryengine.v1.WidgetConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1.WidgetConfig result) { + if (collectionComponentsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + collectionComponents_ = java.util.Collections.unmodifiableList(collectionComponents_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.collectionComponents_ = collectionComponents_; + } else { + result.collectionComponents_ = collectionComponentsBuilder_.build(); + } + if (batchAuthStatusesBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0)) { + batchAuthStatuses_ = java.util.Collections.unmodifiableList(batchAuthStatuses_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.batchAuthStatuses_ = batchAuthStatuses_; + } else { + result.batchAuthStatuses_ = batchAuthStatusesBuilder_.build(); + } + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1.WidgetConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataStoreType_ = dataStoreType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.configId_ = configId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.solutionType_ = solutionType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.industryVertical_ = industryVertical_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.llmEnabled_ = llmEnabled_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableResultScore_ = enableResultScore_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.minimumDataTermAccepted_ = minimumDataTermAccepted_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.uiSettings_ = uiSettingsBuilder_ == null ? uiSettings_ : uiSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.accessSettings_ = + accessSettingsBuilder_ == null ? accessSettings_ : accessSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.uiBranding_ = uiBrandingBuilder_ == null ? uiBranding_ : uiBrandingBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.homepageSetting_ = + homepageSettingBuilder_ == null ? homepageSetting_ : homepageSettingBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.assistantSettings_ = + assistantSettingsBuilder_ == null + ? assistantSettings_ + : assistantSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.customerProvidedConfig_ = + customerProvidedConfigBuilder_ == null + ? customerProvidedConfig_ + : customerProvidedConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.enablePrivateKnowledgeGraph_ = enablePrivateKnowledgeGraph_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.geminiBundle_ = geminiBundle_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1.WidgetConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1.WidgetConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1.WidgetConfig other) { + if (other == com.google.cloud.discoveryengine.v1.WidgetConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.dataStoreType_ != 0) { + setDataStoreTypeValue(other.getDataStoreTypeValue()); + } + if (!other.getConfigId().isEmpty()) { + configId_ = other.configId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.solutionType_ != 0) { + setSolutionTypeValue(other.getSolutionTypeValue()); + } + if (other.industryVertical_ != 0) { + setIndustryVerticalValue(other.getIndustryVerticalValue()); + } + if (other.getLlmEnabled() != false) { + setLlmEnabled(other.getLlmEnabled()); + } + if (other.getEnableResultScore() != false) { + setEnableResultScore(other.getEnableResultScore()); + } + if (other.getMinimumDataTermAccepted() != false) { + setMinimumDataTermAccepted(other.getMinimumDataTermAccepted()); + } + if (collectionComponentsBuilder_ == null) { + if (!other.collectionComponents_.isEmpty()) { + if (collectionComponents_.isEmpty()) { + collectionComponents_ = other.collectionComponents_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureCollectionComponentsIsMutable(); + collectionComponents_.addAll(other.collectionComponents_); + } + onChanged(); + } + } else { + if (!other.collectionComponents_.isEmpty()) { + if (collectionComponentsBuilder_.isEmpty()) { + collectionComponentsBuilder_.dispose(); + collectionComponentsBuilder_ = null; + collectionComponents_ = other.collectionComponents_; + bitField0_ = (bitField0_ & ~0x00000800); + collectionComponentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCollectionComponentsFieldBuilder() + : null; + } else { + collectionComponentsBuilder_.addAllMessages(other.collectionComponents_); + } + } + } + if (other.hasUiSettings()) { + mergeUiSettings(other.getUiSettings()); + } + if (other.hasAccessSettings()) { + mergeAccessSettings(other.getAccessSettings()); + } + if (other.hasUiBranding()) { + mergeUiBranding(other.getUiBranding()); + } + if (other.hasHomepageSetting()) { + mergeHomepageSetting(other.getHomepageSetting()); + } + if (other.hasAssistantSettings()) { + mergeAssistantSettings(other.getAssistantSettings()); + } + if (other.hasCustomerProvidedConfig()) { + mergeCustomerProvidedConfig(other.getCustomerProvidedConfig()); + } + if (other.getEnablePrivateKnowledgeGraph() != false) { + setEnablePrivateKnowledgeGraph(other.getEnablePrivateKnowledgeGraph()); + } + if (other.getGeminiBundle() != false) { + setGeminiBundle(other.getGeminiBundle()); + } + if (batchAuthStatusesBuilder_ == null) { + if (!other.batchAuthStatuses_.isEmpty()) { + if (batchAuthStatuses_.isEmpty()) { + batchAuthStatuses_ = other.batchAuthStatuses_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.addAll(other.batchAuthStatuses_); + } + onChanged(); + } + } else { + if (!other.batchAuthStatuses_.isEmpty()) { + if (batchAuthStatusesBuilder_.isEmpty()) { + batchAuthStatusesBuilder_.dispose(); + batchAuthStatusesBuilder_ = null; + batchAuthStatuses_ = other.batchAuthStatuses_; + bitField0_ = (bitField0_ & ~0x00100000); + batchAuthStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBatchAuthStatusesFieldBuilder() + : null; + } else { + batchAuthStatusesBuilder_.addAllMessages(other.batchAuthStatuses_); + } + } + } + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00200000); + nodesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetNodesFieldBuilder() + : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 64: + { + dataStoreType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 64 + case 98: + { + configId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 98 + case 112: + { + solutionType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 112 + case 122: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 122 + case 160: + { + llmEnabled_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 160 + case 168: + { + enableResultScore_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 168 + case 200: + { + minimumDataTermAccepted_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 200 + case 208: + { + industryVertical_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 208 + case 234: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + .parser(), + extensionRegistry); + if (collectionComponentsBuilder_ == null) { + ensureCollectionComponentsIsMutable(); + collectionComponents_.add(m); + } else { + collectionComponentsBuilder_.addMessage(m); + } + break; + } // case 234 + case 266: + { + input.readMessage( + internalGetUiSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 266 + case 274: + { + input.readMessage( + internalGetAccessSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 274 + case 282: + { + input.readMessage( + internalGetUiBrandingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 282 + case 306: + { + input.readMessage( + internalGetHomepageSettingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 306 + case 314: + { + input.readMessage( + internalGetAssistantSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 314 + case 322: + { + input.readMessage( + internalGetCustomerProvidedConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 322 + case 336: + { + enablePrivateKnowledgeGraph_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 336 + case 352: + { + geminiBundle_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 352 + case 370: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.Node m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.parser(), + extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 370 + case 386: + { + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus m = + input.readMessage( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.parser(), + extensionRegistry); + if (batchAuthStatusesBuilder_ == null) { + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.add(m); + } else { + batchAuthStatusesBuilder_.addMessage(m); + } + break; + } // case 386 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Immutable. The full resource name of the widget config.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the widget config.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Immutable. The full resource name of the widget config.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the widget config.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The full resource name of the widget config.
+     * Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 1024
+     * characters.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. The human readable widget config display name. Used in Discovery
+     * UI.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The human readable widget config display name. Used in Discovery
+     * UI.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The human readable widget config display name. Used in Discovery
+     * UI.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The human readable widget config display name. Used in Discovery
+     * UI.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The human readable widget config display name. Used in Discovery
+     * UI.
+     *
+     * This field must be a UTF-8 encoded string with a length limit of 128
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp the
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int dataStoreType_ = 0; + + /** + * + * + *
+     * Output only. The type of the parent data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataStoreType. + */ + @java.lang.Override + public int getDataStoreTypeValue() { + return dataStoreType_; + } + + /** + * + * + *
+     * Output only. The type of the parent data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for dataStoreType to set. + * @return This builder for chaining. + */ + public Builder setDataStoreTypeValue(int value) { + dataStoreType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the parent data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataStoreType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType getDataStoreType() { + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType result = + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType.forNumber(dataStoreType_); + return result == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of the parent data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The dataStoreType to set. + * @return This builder for chaining. + */ + public Builder setDataStoreType( + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + dataStoreType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the parent data store.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataStoreType() { + bitField0_ = (bitField0_ & ~0x00000010); + dataStoreType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object configId_ = ""; + + /** + * + * + *
+     * Output only. Unique obfuscated identifier of a
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The configId. + */ + public java.lang.String getConfigId() { + java.lang.Object ref = configId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + configId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Unique obfuscated identifier of a
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for configId. + */ + public com.google.protobuf.ByteString getConfigIdBytes() { + java.lang.Object ref = configId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + configId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Unique obfuscated identifier of a
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The configId to set. + * @return This builder for chaining. + */ + public Builder setConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + configId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Unique obfuscated identifier of a
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearConfigId() { + configId_ = getDefaultInstance().getConfigId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Unique obfuscated identifier of a
+     * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+     * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for configId to set. + * @return This builder for chaining. + */ + public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int solutionType_ = 0; + + /** + * + * + *
+     * Required. Immutable. Specifies the solution type that this WidgetConfig can
+     * be used for.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + @java.lang.Override + public int getSolutionTypeValue() { + return solutionType_; + } + + /** + * + * + *
+     * Required. Immutable. Specifies the solution type that this WidgetConfig can
+     * be used for.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionTypeValue(int value) { + solutionType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Specifies the solution type that this WidgetConfig can
+     * be used for.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1.SolutionType result = + com.google.cloud.discoveryengine.v1.SolutionType.forNumber(solutionType_); + return result == null + ? com.google.cloud.discoveryengine.v1.SolutionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Immutable. Specifies the solution type that this WidgetConfig can
+     * be used for.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionType(com.google.cloud.discoveryengine.v1.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + solutionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Specifies the solution type that this WidgetConfig can
+     * be used for.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSolutionType() { + bitField0_ = (bitField0_ & ~0x00000040); + solutionType_ = 0; + onChanged(); + return this; + } + + private int industryVertical_ = 0; + + /** + * + * + *
+     * Output only. The industry vertical that the WidgetConfig registers.
+     * The WidgetConfig industry vertical is based on the associated
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } + + /** + * + * + *
+     * Output only. The industry vertical that the WidgetConfig registers.
+     * The WidgetConfig industry vertical is based on the associated
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVerticalValue(int value) { + industryVertical_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The industry vertical that the WidgetConfig registers.
+     * The WidgetConfig industry vertical is based on the associated
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1.IndustryVertical result = + com.google.cloud.discoveryengine.v1.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1.IndustryVertical.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The industry vertical that the WidgetConfig registers.
+     * The WidgetConfig industry vertical is based on the associated
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVertical(com.google.cloud.discoveryengine.v1.IndustryVertical value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + industryVertical_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The industry vertical that the WidgetConfig registers.
+     * The WidgetConfig industry vertical is based on the associated
+     * [Engine][google.cloud.discoveryengine.v1.Engine].
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearIndustryVertical() { + bitField0_ = (bitField0_ & ~0x00000080); + industryVertical_ = 0; + onChanged(); + return this; + } + + private boolean llmEnabled_; + + /** + * + * + *
+     * Output only. Whether LLM is enabled in the corresponding data store.
+     * 
+ * + * bool llm_enabled = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The llmEnabled. + */ + @java.lang.Override + public boolean getLlmEnabled() { + return llmEnabled_; + } + + /** + * + * + *
+     * Output only. Whether LLM is enabled in the corresponding data store.
+     * 
+ * + * bool llm_enabled = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The llmEnabled to set. + * @return This builder for chaining. + */ + public Builder setLlmEnabled(boolean value) { + + llmEnabled_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether LLM is enabled in the corresponding data store.
+     * 
+ * + * bool llm_enabled = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLlmEnabled() { + bitField0_ = (bitField0_ & ~0x00000100); + llmEnabled_ = false; + onChanged(); + return this; + } + + private boolean enableResultScore_; + + /** + * + * + *
+     * Whether to show the result score.
+     * 
+ * + * bool enable_result_score = 21; + * + * @return The enableResultScore. + */ + @java.lang.Override + public boolean getEnableResultScore() { + return enableResultScore_; + } + + /** + * + * + *
+     * Whether to show the result score.
+     * 
+ * + * bool enable_result_score = 21; + * + * @param value The enableResultScore to set. + * @return This builder for chaining. + */ + public Builder setEnableResultScore(boolean value) { + + enableResultScore_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether to show the result score.
+     * 
+ * + * bool enable_result_score = 21; + * + * @return This builder for chaining. + */ + public Builder clearEnableResultScore() { + bitField0_ = (bitField0_ & ~0x00000200); + enableResultScore_ = false; + onChanged(); + return this; + } + + private boolean minimumDataTermAccepted_; + + /** + * + * + *
+     * Output only. Whether the customer accepted data use terms.
+     * 
+ * + * bool minimum_data_term_accepted = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The minimumDataTermAccepted. + */ + @java.lang.Override + public boolean getMinimumDataTermAccepted() { + return minimumDataTermAccepted_; + } + + /** + * + * + *
+     * Output only. Whether the customer accepted data use terms.
+     * 
+ * + * bool minimum_data_term_accepted = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The minimumDataTermAccepted to set. + * @return This builder for chaining. + */ + public Builder setMinimumDataTermAccepted(boolean value) { + + minimumDataTermAccepted_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the customer accepted data use terms.
+     * 
+ * + * bool minimum_data_term_accepted = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearMinimumDataTermAccepted() { + bitField0_ = (bitField0_ & ~0x00000400); + minimumDataTermAccepted_ = false; + onChanged(); + return this; + } + + private java.util.List + collectionComponents_ = java.util.Collections.emptyList(); + + private void ensureCollectionComponentsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + collectionComponents_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent>( + collectionComponents_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder> + collectionComponentsBuilder_; + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCollectionComponentsList() { + if (collectionComponentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(collectionComponents_); + } else { + return collectionComponentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCollectionComponentsCount() { + if (collectionComponentsBuilder_ == null) { + return collectionComponents_.size(); + } else { + return collectionComponentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + getCollectionComponents(int index) { + if (collectionComponentsBuilder_ == null) { + return collectionComponents_.get(index); + } else { + return collectionComponentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCollectionComponents( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent value) { + if (collectionComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionComponentsIsMutable(); + collectionComponents_.set(index, value); + onChanged(); + } else { + collectionComponentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCollectionComponents( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder + builderForValue) { + if (collectionComponentsBuilder_ == null) { + ensureCollectionComponentsIsMutable(); + collectionComponents_.set(index, builderForValue.build()); + onChanged(); + } else { + collectionComponentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCollectionComponents( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent value) { + if (collectionComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionComponentsIsMutable(); + collectionComponents_.add(value); + onChanged(); + } else { + collectionComponentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCollectionComponents( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent value) { + if (collectionComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCollectionComponentsIsMutable(); + collectionComponents_.add(index, value); + onChanged(); + } else { + collectionComponentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCollectionComponents( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder + builderForValue) { + if (collectionComponentsBuilder_ == null) { + ensureCollectionComponentsIsMutable(); + collectionComponents_.add(builderForValue.build()); + onChanged(); + } else { + collectionComponentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCollectionComponents( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder + builderForValue) { + if (collectionComponentsBuilder_ == null) { + ensureCollectionComponentsIsMutable(); + collectionComponents_.add(index, builderForValue.build()); + onChanged(); + } else { + collectionComponentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCollectionComponents( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent> + values) { + if (collectionComponentsBuilder_ == null) { + ensureCollectionComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, collectionComponents_); + onChanged(); + } else { + collectionComponentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCollectionComponents() { + if (collectionComponentsBuilder_ == null) { + collectionComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + collectionComponentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCollectionComponents(int index) { + if (collectionComponentsBuilder_ == null) { + ensureCollectionComponentsIsMutable(); + collectionComponents_.remove(index); + onChanged(); + } else { + collectionComponentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder + getCollectionComponentsBuilder(int index) { + return internalGetCollectionComponentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder + getCollectionComponentsOrBuilder(int index) { + if (collectionComponentsBuilder_ == null) { + return collectionComponents_.get(index); + } else { + return collectionComponentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder> + getCollectionComponentsOrBuilderList() { + if (collectionComponentsBuilder_ != null) { + return collectionComponentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(collectionComponents_); + } + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder + addCollectionComponentsBuilder() { + return internalGetCollectionComponentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder + addCollectionComponentsBuilder(int index) { + return internalGetCollectionComponentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Collection components that lists all collections and child
+     * data stores associated with the widget config, those data sources can be
+     * used for filtering in widget service APIs, users can return results that
+     * from selected data sources.
+     *
+     * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+     * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+     * with synthetic placeholder entries for connectors the caller may attach
+     * but has not yet attached (see `CollectionComponent` for the placeholder
+     * contract). The frontend can therefore render a unified list of
+     * already-attached and available-to-attach sources by iterating this single
+     * field. For Enterprise engines and for the default `view`, only
+     * already-attached connectors are returned (today's behavior).
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder> + getCollectionComponentsBuilderList() { + return internalGetCollectionComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder> + internalGetCollectionComponentsFieldBuilder() { + if (collectionComponentsBuilder_ == null) { + collectionComponentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder>( + collectionComponents_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + collectionComponents_ = null; + } + return collectionComponentsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings uiSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder> + uiSettingsBuilder_; + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + * + * @return Whether the uiSettings field is set. + */ + public boolean hasUiSettings() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + * + * @return The uiSettings. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings getUiSettings() { + if (uiSettingsBuilder_ == null) { + return uiSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDefaultInstance() + : uiSettings_; + } else { + return uiSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + public Builder setUiSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings value) { + if (uiSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiSettings_ = value; + } else { + uiSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + public Builder setUiSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder builderForValue) { + if (uiSettingsBuilder_ == null) { + uiSettings_ = builderForValue.build(); + } else { + uiSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + public Builder mergeUiSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings value) { + if (uiSettingsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && uiSettings_ != null + && uiSettings_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings + .getDefaultInstance()) { + getUiSettingsBuilder().mergeFrom(value); + } else { + uiSettings_ = value; + } + } else { + uiSettingsBuilder_.mergeFrom(value); + } + if (uiSettings_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + public Builder clearUiSettings() { + bitField0_ = (bitField0_ & ~0x00001000); + uiSettings_ = null; + if (uiSettingsBuilder_ != null) { + uiSettingsBuilder_.dispose(); + uiSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder + getUiSettingsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetUiSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder + getUiSettingsOrBuilder() { + if (uiSettingsBuilder_ != null) { + return uiSettingsBuilder_.getMessageOrBuilder(); + } else { + return uiSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.getDefaultInstance() + : uiSettings_; + } + } + + /** + * + * + *
+     * Describes general widget search settings as seen in cloud console
+     * widget configuration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder> + internalGetUiSettingsFieldBuilder() { + if (uiSettingsBuilder_ == null) { + uiSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder>( + getUiSettings(), getParentForChildren(), isClean()); + uiSettings_ = null; + } + return uiSettingsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings accessSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder> + accessSettingsBuilder_; + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + * + * @return Whether the accessSettings field is set. + */ + public boolean hasAccessSettings() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + * + * @return The accessSettings. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings getAccessSettings() { + if (accessSettingsBuilder_ == null) { + return accessSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.getDefaultInstance() + : accessSettings_; + } else { + return accessSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + public Builder setAccessSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings value) { + if (accessSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessSettings_ = value; + } else { + accessSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + public Builder setAccessSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder builderForValue) { + if (accessSettingsBuilder_ == null) { + accessSettings_ = builderForValue.build(); + } else { + accessSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + public Builder mergeAccessSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings value) { + if (accessSettingsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && accessSettings_ != null + && accessSettings_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings + .getDefaultInstance()) { + getAccessSettingsBuilder().mergeFrom(value); + } else { + accessSettings_ = value; + } + } else { + accessSettingsBuilder_.mergeFrom(value); + } + if (accessSettings_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + public Builder clearAccessSettings() { + bitField0_ = (bitField0_ & ~0x00002000); + accessSettings_ = null; + if (accessSettingsBuilder_ != null) { + accessSettingsBuilder_.dispose(); + accessSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder + getAccessSettingsBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetAccessSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder + getAccessSettingsOrBuilder() { + if (accessSettingsBuilder_ != null) { + return accessSettingsBuilder_.getMessageOrBuilder(); + } else { + return accessSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.getDefaultInstance() + : accessSettings_; + } + } + + /** + * + * + *
+     * Will be used for all widget access settings seen in cloud console
+     * integration page. Replaces top deprecated top level properties.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder> + internalGetAccessSettingsFieldBuilder() { + if (accessSettingsBuilder_ == null) { + accessSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder>( + getAccessSettings(), getParentForChildren(), isClean()); + accessSettings_ = null; + } + return accessSettingsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings uiBranding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder> + uiBrandingBuilder_; + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + * + * @return Whether the uiBranding field is set. + */ + public boolean hasUiBranding() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + * + * @return The uiBranding. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings getUiBranding() { + if (uiBrandingBuilder_ == null) { + return uiBranding_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + .getDefaultInstance() + : uiBranding_; + } else { + return uiBrandingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + public Builder setUiBranding( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings value) { + if (uiBrandingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiBranding_ = value; + } else { + uiBrandingBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + public Builder setUiBranding( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder + builderForValue) { + if (uiBrandingBuilder_ == null) { + uiBranding_ = builderForValue.build(); + } else { + uiBrandingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + public Builder mergeUiBranding( + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings value) { + if (uiBrandingBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && uiBranding_ != null + && uiBranding_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + .getDefaultInstance()) { + getUiBrandingBuilder().mergeFrom(value); + } else { + uiBranding_ = value; + } + } else { + uiBrandingBuilder_.mergeFrom(value); + } + if (uiBranding_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + public Builder clearUiBranding() { + bitField0_ = (bitField0_ & ~0x00004000); + uiBranding_ = null; + if (uiBrandingBuilder_ != null) { + uiBrandingBuilder_.dispose(); + uiBrandingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder + getUiBrandingBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetUiBrandingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder + getUiBrandingOrBuilder() { + if (uiBrandingBuilder_ != null) { + return uiBrandingBuilder_.getMessageOrBuilder(); + } else { + return uiBranding_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings + .getDefaultInstance() + : uiBranding_; + } + } + + /** + * + * + *
+     * Describes search widget UI branding settings, such as the widget title,
+     * logo, favicons, and colors.
+     * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder> + internalGetUiBrandingFieldBuilder() { + if (uiBrandingBuilder_ == null) { + uiBrandingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder>( + getUiBranding(), getParentForChildren(), isClean()); + uiBranding_ = null; + } + return uiBrandingBuilder_; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepageSetting_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder> + homepageSettingBuilder_; + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the homepageSetting field is set. + */ + public boolean hasHomepageSetting() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The homepageSetting. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting getHomepageSetting() { + if (homepageSettingBuilder_ == null) { + return homepageSetting_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.getDefaultInstance() + : homepageSetting_; + } else { + return homepageSettingBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHomepageSetting( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting value) { + if (homepageSettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + homepageSetting_ = value; + } else { + homepageSettingBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHomepageSetting( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder builderForValue) { + if (homepageSettingBuilder_ == null) { + homepageSetting_ = builderForValue.build(); + } else { + homepageSettingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHomepageSetting( + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting value) { + if (homepageSettingBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && homepageSetting_ != null + && homepageSetting_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting + .getDefaultInstance()) { + getHomepageSettingBuilder().mergeFrom(value); + } else { + homepageSetting_ = value; + } + } else { + homepageSettingBuilder_.mergeFrom(value); + } + if (homepageSetting_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHomepageSetting() { + bitField0_ = (bitField0_ & ~0x00008000); + homepageSetting_ = null; + if (homepageSettingBuilder_ != null) { + homepageSettingBuilder_.dispose(); + homepageSettingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder + getHomepageSettingBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return internalGetHomepageSettingFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder + getHomepageSettingOrBuilder() { + if (homepageSettingBuilder_ != null) { + return homepageSettingBuilder_.getMessageOrBuilder(); + } else { + return homepageSetting_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.getDefaultInstance() + : homepageSetting_; + } + } + + /** + * + * + *
+     * Optional. Describes the homepage settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder> + internalGetHomepageSettingFieldBuilder() { + if (homepageSettingBuilder_ == null) { + homepageSettingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder>( + getHomepageSetting(), getParentForChildren(), isClean()); + homepageSetting_ = null; + } + return homepageSettingBuilder_; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistantSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder> + assistantSettingsBuilder_; + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the assistantSettings field is set. + */ + public boolean hasAssistantSettings() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assistantSettings. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + getAssistantSettings() { + if (assistantSettingsBuilder_ == null) { + return assistantSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + .getDefaultInstance() + : assistantSettings_; + } else { + return assistantSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssistantSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings value) { + if (assistantSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistantSettings_ = value; + } else { + assistantSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAssistantSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder + builderForValue) { + if (assistantSettingsBuilder_ == null) { + assistantSettings_ = builderForValue.build(); + } else { + assistantSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAssistantSettings( + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings value) { + if (assistantSettingsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && assistantSettings_ != null + && assistantSettings_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + .getDefaultInstance()) { + getAssistantSettingsBuilder().mergeFrom(value); + } else { + assistantSettings_ = value; + } + } else { + assistantSettingsBuilder_.mergeFrom(value); + } + if (assistantSettings_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAssistantSettings() { + bitField0_ = (bitField0_ & ~0x00010000); + assistantSettings_ = null; + if (assistantSettingsBuilder_ != null) { + assistantSettingsBuilder_.dispose(); + assistantSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder + getAssistantSettingsBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return internalGetAssistantSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder + getAssistantSettingsOrBuilder() { + if (assistantSettingsBuilder_ != null) { + return assistantSettingsBuilder_.getMessageOrBuilder(); + } else { + return assistantSettings_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings + .getDefaultInstance() + : assistantSettings_; + } + } + + /** + * + * + *
+     * Optional. Output only. Describes the assistant settings of the widget.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder> + internalGetAssistantSettingsFieldBuilder() { + if (assistantSettingsBuilder_ == null) { + assistantSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder>( + getAssistantSettings(), getParentForChildren(), isClean()); + assistantSettings_ = null; + } + return assistantSettingsBuilder_; + } + + private com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + customerProvidedConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder> + customerProvidedConfigBuilder_; + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + public boolean hasCustomerProvidedConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerProvidedConfig. + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + getCustomerProvidedConfig() { + if (customerProvidedConfigBuilder_ == null) { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; + } else { + return customerProvidedConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig value) { + if (customerProvidedConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customerProvidedConfig_ = value; + } else { + customerProvidedConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder + builderForValue) { + if (customerProvidedConfigBuilder_ == null) { + customerProvidedConfig_ = builderForValue.build(); + } else { + customerProvidedConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig value) { + if (customerProvidedConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && customerProvidedConfig_ != null + && customerProvidedConfig_ + != com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance()) { + getCustomerProvidedConfigBuilder().mergeFrom(value); + } else { + customerProvidedConfig_ = value; + } + } else { + customerProvidedConfigBuilder_.mergeFrom(value); + } + if (customerProvidedConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustomerProvidedConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + customerProvidedConfig_ = null; + if (customerProvidedConfigBuilder_ != null) { + customerProvidedConfigBuilder_.dispose(); + customerProvidedConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder + getCustomerProvidedConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return internalGetCustomerProvidedConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder() { + if (customerProvidedConfigBuilder_ != null) { + return customerProvidedConfigBuilder_.getMessageOrBuilder(); + } else { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; + } + } + + /** + * + * + *
+     * Optional. Output only. Describes the customer related configurations,
+     * currently only used for government customers. This field cannot be modified
+     * after project onboarding.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder> + internalGetCustomerProvidedConfigFieldBuilder() { + if (customerProvidedConfigBuilder_ == null) { + customerProvidedConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder>( + getCustomerProvidedConfig(), getParentForChildren(), isClean()); + customerProvidedConfig_ = null; + } + return customerProvidedConfigBuilder_; + } + + private boolean enablePrivateKnowledgeGraph_; + + /** + * + * + *
+     * Optional. Output only. Whether to enable private knowledge graph.
+     * 
+ * + * + * bool enable_private_knowledge_graph = 42 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablePrivateKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnablePrivateKnowledgeGraph() { + return enablePrivateKnowledgeGraph_; + } + + /** + * + * + *
+     * Optional. Output only. Whether to enable private knowledge graph.
+     * 
+ * + * + * bool enable_private_knowledge_graph = 42 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enablePrivateKnowledgeGraph to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateKnowledgeGraph(boolean value) { + + enablePrivateKnowledgeGraph_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Whether to enable private knowledge graph.
+     * 
+ * + * + * bool enable_private_knowledge_graph = 42 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateKnowledgeGraph() { + bitField0_ = (bitField0_ & ~0x00040000); + enablePrivateKnowledgeGraph_ = false; + onChanged(); + return this; + } + + private boolean geminiBundle_; + + /** + * + * + *
+     * Output only. Whether the subscription is gemini bundle or not.
+     * 
+ * + * bool gemini_bundle = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + @java.lang.Override + public boolean getGeminiBundle() { + return geminiBundle_; + } + + /** + * + * + *
+     * Output only. Whether the subscription is gemini bundle or not.
+     * 
+ * + * bool gemini_bundle = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The geminiBundle to set. + * @return This builder for chaining. + */ + public Builder setGeminiBundle(boolean value) { + + geminiBundle_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Whether the subscription is gemini bundle or not.
+     * 
+ * + * bool gemini_bundle = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGeminiBundle() { + bitField0_ = (bitField0_ & ~0x00080000); + geminiBundle_ = false; + onChanged(); + return this; + } + + private java.util.List + batchAuthStatuses_ = java.util.Collections.emptyList(); + + private void ensureBatchAuthStatusesIsMutable() { + if (!((bitField0_ & 0x00100000) != 0)) { + batchAuthStatuses_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus>( + batchAuthStatuses_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder> + batchAuthStatusesBuilder_; + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBatchAuthStatusesList() { + if (batchAuthStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(batchAuthStatuses_); + } else { + return batchAuthStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBatchAuthStatusesCount() { + if (batchAuthStatusesBuilder_ == null) { + return batchAuthStatuses_.size(); + } else { + return batchAuthStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus getBatchAuthStatuses( + int index) { + if (batchAuthStatusesBuilder_ == null) { + return batchAuthStatuses_.get(index); + } else { + return batchAuthStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBatchAuthStatuses( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus value) { + if (batchAuthStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.set(index, value); + onChanged(); + } else { + batchAuthStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBatchAuthStatuses( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder builderForValue) { + if (batchAuthStatusesBuilder_ == null) { + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + batchAuthStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBatchAuthStatuses( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus value) { + if (batchAuthStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.add(value); + onChanged(); + } else { + batchAuthStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBatchAuthStatuses( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus value) { + if (batchAuthStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.add(index, value); + onChanged(); + } else { + batchAuthStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBatchAuthStatuses( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder builderForValue) { + if (batchAuthStatusesBuilder_ == null) { + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.add(builderForValue.build()); + onChanged(); + } else { + batchAuthStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBatchAuthStatuses( + int index, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder builderForValue) { + if (batchAuthStatusesBuilder_ == null) { + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + batchAuthStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBatchAuthStatuses( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus> + values) { + if (batchAuthStatusesBuilder_ == null) { + ensureBatchAuthStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, batchAuthStatuses_); + onChanged(); + } else { + batchAuthStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBatchAuthStatuses() { + if (batchAuthStatusesBuilder_ == null) { + batchAuthStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + batchAuthStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBatchAuthStatuses(int index) { + if (batchAuthStatusesBuilder_ == null) { + ensureBatchAuthStatusesIsMutable(); + batchAuthStatuses_.remove(index); + onChanged(); + } else { + batchAuthStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder + getBatchAuthStatusesBuilder(int index) { + return internalGetBatchAuthStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder + getBatchAuthStatusesOrBuilder(int index) { + if (batchAuthStatusesBuilder_ == null) { + return batchAuthStatuses_.get(index); + } else { + return batchAuthStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder> + getBatchAuthStatusesOrBuilderList() { + if (batchAuthStatusesBuilder_ != null) { + return batchAuthStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(batchAuthStatuses_); + } + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder + addBatchAuthStatusesBuilder() { + return internalGetBatchAuthStatusesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder + addBatchAuthStatusesBuilder(int index) { + return internalGetBatchAuthStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus + .getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The batch authorization statuses for the widget's connectors.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBatchAuthStatusesBuilderList() { + return internalGetBatchAuthStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder> + internalGetBatchAuthStatusesFieldBuilder() { + if (batchAuthStatusesBuilder_ == null) { + batchAuthStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder>( + batchAuthStatuses_, + ((bitField0_ & 0x00100000) != 0), + getParentForChildren(), + isClean()); + batchAuthStatuses_ = null; + } + return batchAuthStatusesBuilder_; + } + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00200000) != 0)) { + nodes_ = + new java.util.ArrayList(nodes_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Node, + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder> + nodesBuilder_; + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNodes( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNodes( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNodes(com.google.cloud.discoveryengine.v1.WidgetConfig.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNodes( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNodes( + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNodes( + int index, com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllNodes( + java.lang.Iterable + values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder getNodesBuilder( + int index) { + return internalGetNodesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder addNodesBuilder() { + return internalGetNodesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1.WidgetConfig.Node.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder addNodesBuilder( + int index) { + return internalGetNodesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1.WidgetConfig.Node.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The nodes associated with the Widget Config.
+     * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNodesBuilderList() { + return internalGetNodesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Node, + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder> + internalGetNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1.WidgetConfig.Node, + com.google.cloud.discoveryengine.v1.WidgetConfig.Node.Builder, + com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder>( + nodes_, ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.WidgetConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1.WidgetConfig) + private static final com.google.cloud.discoveryengine.v1.WidgetConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1.WidgetConfig(); + } + + public static com.google.cloud.discoveryengine.v1.WidgetConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WidgetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1.WidgetConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigName.java new file mode 100644 index 000000000000..922169c7e38a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigName.java @@ -0,0 +1,556 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class WidgetConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_WIDGET_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/widgetConfigs/{widget_config}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_WIDGET_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/widgetConfigs/{widget_config}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_ENGINE_WIDGET_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/widgetConfigs/{widget_config}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String widgetConfig; + private final String collection; + private final String engine; + + @Deprecated + protected WidgetConfigName() { + project = null; + location = null; + dataStore = null; + widgetConfig = null; + collection = null; + engine = null; + } + + private WidgetConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + widgetConfig = Preconditions.checkNotNull(builder.getWidgetConfig()); + collection = null; + engine = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_WIDGET_CONFIG; + } + + private WidgetConfigName(ProjectLocationCollectionDataStoreWidgetConfigBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + widgetConfig = Preconditions.checkNotNull(builder.getWidgetConfig()); + engine = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_WIDGET_CONFIG; + } + + private WidgetConfigName(ProjectLocationCollectionEngineWidgetConfigBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + engine = Preconditions.checkNotNull(builder.getEngine()); + widgetConfig = Preconditions.checkNotNull(builder.getWidgetConfig()); + dataStore = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE_WIDGET_CONFIG; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getWidgetConfig() { + return widgetConfig; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationDataStoreWidgetConfigBuilder() { + return new Builder(); + } + + public static ProjectLocationCollectionDataStoreWidgetConfigBuilder + newProjectLocationCollectionDataStoreWidgetConfigBuilder() { + return new ProjectLocationCollectionDataStoreWidgetConfigBuilder(); + } + + public static ProjectLocationCollectionEngineWidgetConfigBuilder + newProjectLocationCollectionEngineWidgetConfigBuilder() { + return new ProjectLocationCollectionEngineWidgetConfigBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static WidgetConfigName of( + String project, String location, String dataStore, String widgetConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setWidgetConfig(widgetConfig) + .build(); + } + + public static WidgetConfigName ofProjectLocationDataStoreWidgetConfigName( + String project, String location, String dataStore, String widgetConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setWidgetConfig(widgetConfig) + .build(); + } + + public static WidgetConfigName ofProjectLocationCollectionDataStoreWidgetConfigName( + String project, String location, String collection, String dataStore, String widgetConfig) { + return newProjectLocationCollectionDataStoreWidgetConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setWidgetConfig(widgetConfig) + .build(); + } + + public static WidgetConfigName ofProjectLocationCollectionEngineWidgetConfigName( + String project, String location, String collection, String engine, String widgetConfig) { + return newProjectLocationCollectionEngineWidgetConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setWidgetConfig(widgetConfig) + .build(); + } + + public static String format( + String project, String location, String dataStore, String widgetConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setWidgetConfig(widgetConfig) + .build() + .toString(); + } + + public static String formatProjectLocationDataStoreWidgetConfigName( + String project, String location, String dataStore, String widgetConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setWidgetConfig(widgetConfig) + .build() + .toString(); + } + + public static String formatProjectLocationCollectionDataStoreWidgetConfigName( + String project, String location, String collection, String dataStore, String widgetConfig) { + return newProjectLocationCollectionDataStoreWidgetConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setWidgetConfig(widgetConfig) + .build() + .toString(); + } + + public static String formatProjectLocationCollectionEngineWidgetConfigName( + String project, String location, String collection, String engine, String widgetConfig) { + return newProjectLocationCollectionEngineWidgetConfigBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setWidgetConfig(widgetConfig) + .build() + .toString(); + } + + public static @Nullable WidgetConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_WIDGET_CONFIG.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_DATA_STORE_WIDGET_CONFIG.match(formattedString); + return ofProjectLocationDataStoreWidgetConfigName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("widget_config")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_WIDGET_CONFIG.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_WIDGET_CONFIG.match(formattedString); + return ofProjectLocationCollectionDataStoreWidgetConfigName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("widget_config")); + } else if (PROJECT_LOCATION_COLLECTION_ENGINE_WIDGET_CONFIG.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_ENGINE_WIDGET_CONFIG.match(formattedString); + return ofProjectLocationCollectionEngineWidgetConfigName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("engine"), + matchMap.get("widget_config")); + } + throw new ValidationException("WidgetConfigName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable WidgetConfigName> values) { + List list = new ArrayList<>(values.size()); + for (WidgetConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_WIDGET_CONFIG.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_WIDGET_CONFIG.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_ENGINE_WIDGET_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (widgetConfig != null) { + fieldMapBuilder.put("widget_config", widgetConfig); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + if (engine != null) { + fieldMapBuilder.put("engine", engine); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + WidgetConfigName that = ((WidgetConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.widgetConfig, that.widgetConfig) + && Objects.equals(this.collection, that.collection) + && Objects.equals(this.engine, that.engine); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(widgetConfig); + h *= 1000003; + h ^= Objects.hashCode(collection); + h *= 1000003; + h ^= Objects.hashCode(engine); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataStores/{data_store}/widgetConfigs/{widget_config}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String widgetConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getWidgetConfig() { + return widgetConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setWidgetConfig(String widgetConfig) { + this.widgetConfig = widgetConfig; + return this; + } + + private Builder(WidgetConfigName widgetConfigName) { + Preconditions.checkArgument( + Objects.equals(widgetConfigName.pathTemplate, PROJECT_LOCATION_DATA_STORE_WIDGET_CONFIG), + "toBuilder is only supported when WidgetConfigName has the pattern of" + + " projects/{project}/locations/{location}/dataStores/{data_store}/widgetConfigs/{widget_config}"); + this.project = widgetConfigName.project; + this.location = widgetConfigName.location; + this.dataStore = widgetConfigName.dataStore; + this.widgetConfig = widgetConfigName.widgetConfig; + } + + public WidgetConfigName build() { + return new WidgetConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/widgetConfigs/{widget_config}. + */ + public static class ProjectLocationCollectionDataStoreWidgetConfigBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String widgetConfig; + + protected ProjectLocationCollectionDataStoreWidgetConfigBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getWidgetConfig() { + return widgetConfig; + } + + public ProjectLocationCollectionDataStoreWidgetConfigBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreWidgetConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreWidgetConfigBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreWidgetConfigBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreWidgetConfigBuilder setWidgetConfig( + String widgetConfig) { + this.widgetConfig = widgetConfig; + return this; + } + + public WidgetConfigName build() { + return new WidgetConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/widgetConfigs/{widget_config}. + */ + public static class ProjectLocationCollectionEngineWidgetConfigBuilder { + private String project; + private String location; + private String collection; + private String engine; + private String widgetConfig; + + protected ProjectLocationCollectionEngineWidgetConfigBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public String getWidgetConfig() { + return widgetConfig; + } + + public ProjectLocationCollectionEngineWidgetConfigBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionEngineWidgetConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionEngineWidgetConfigBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionEngineWidgetConfigBuilder setEngine(String engine) { + this.engine = engine; + return this; + } + + public ProjectLocationCollectionEngineWidgetConfigBuilder setWidgetConfig(String widgetConfig) { + this.widgetConfig = widgetConfig; + return this; + } + + public WidgetConfigName build() { + return new WidgetConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigOrBuilder.java new file mode 100644 index 000000000000..058f2c97a2ad --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigOrBuilder.java @@ -0,0 +1,901 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public interface WidgetConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.WidgetConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The full resource name of the widget config.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Immutable. The full resource name of the widget config.
+   * Format:
+   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 1024
+   * characters.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The human readable widget config display name. Used in Discovery
+   * UI.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. The human readable widget config display name. Used in Discovery
+   * UI.
+   *
+   * This field must be a UTF-8 encoded string with a length limit of 128
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp the
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The type of the parent data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for dataStoreType. + */ + int getDataStoreTypeValue(); + + /** + * + * + *
+   * Output only. The type of the parent data store.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType data_store_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataStoreType. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreType getDataStoreType(); + + /** + * + * + *
+   * Output only. Unique obfuscated identifier of a
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+   * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The configId. + */ + java.lang.String getConfigId(); + + /** + * + * + *
+   * Output only. Unique obfuscated identifier of a
+   * [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig].
+   * 
+ * + * string config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for configId. + */ + com.google.protobuf.ByteString getConfigIdBytes(); + + /** + * + * + *
+   * Required. Immutable. Specifies the solution type that this WidgetConfig can
+   * be used for.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + int getSolutionTypeValue(); + + /** + * + * + *
+   * Required. Immutable. Specifies the solution type that this WidgetConfig can
+   * be used for.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.SolutionType solution_type = 14 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The solutionType. + */ + com.google.cloud.discoveryengine.v1.SolutionType getSolutionType(); + + /** + * + * + *
+   * Output only. The industry vertical that the WidgetConfig registers.
+   * The WidgetConfig industry vertical is based on the associated
+   * [Engine][google.cloud.discoveryengine.v1.Engine].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + int getIndustryVerticalValue(); + + /** + * + * + *
+   * Output only. The industry vertical that the WidgetConfig registers.
+   * The WidgetConfig industry vertical is based on the associated
+   * [Engine][google.cloud.discoveryengine.v1.Engine].
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The industryVertical. + */ + com.google.cloud.discoveryengine.v1.IndustryVertical getIndustryVertical(); + + /** + * + * + *
+   * Output only. Whether LLM is enabled in the corresponding data store.
+   * 
+ * + * bool llm_enabled = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The llmEnabled. + */ + boolean getLlmEnabled(); + + /** + * + * + *
+   * Whether to show the result score.
+   * 
+ * + * bool enable_result_score = 21; + * + * @return The enableResultScore. + */ + boolean getEnableResultScore(); + + /** + * + * + *
+   * Output only. Whether the customer accepted data use terms.
+   * 
+ * + * bool minimum_data_term_accepted = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The minimumDataTermAccepted. + */ + boolean getMinimumDataTermAccepted(); + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCollectionComponentsList(); + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent getCollectionComponents( + int index); + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCollectionComponentsCount(); + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder> + getCollectionComponentsOrBuilderList(); + + /** + * + * + *
+   * Output only. Collection components that lists all collections and child
+   * data stores associated with the widget config, those data sources can be
+   * used for filtering in widget service APIs, users can return results that
+   * from selected data sources.
+   *
+   * For SaaS / Business engines, when `LookupWidgetConfig` is called with
+   * `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented
+   * with synthetic placeholder entries for connectors the caller may attach
+   * but has not yet attached (see `CollectionComponent` for the placeholder
+   * contract). The frontend can therefore render a unified list of
+   * already-attached and available-to-attach sources by iterating this single
+   * field. For Enterprise engines and for the default `view`, only
+   * already-attached connectors are returned (today's behavior).
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponent collection_components = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.CollectionComponentOrBuilder + getCollectionComponentsOrBuilder(int index); + + /** + * + * + *
+   * Describes general widget search settings as seen in cloud console
+   * widget configuration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + * + * @return Whether the uiSettings field is set. + */ + boolean hasUiSettings(); + + /** + * + * + *
+   * Describes general widget search settings as seen in cloud console
+   * widget configuration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + * + * @return The uiSettings. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings getUiSettings(); + + /** + * + * + *
+   * Describes general widget search settings as seen in cloud console
+   * widget configuration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings ui_settings = 33; + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettingsOrBuilder getUiSettingsOrBuilder(); + + /** + * + * + *
+   * Will be used for all widget access settings seen in cloud console
+   * integration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + * @return Whether the accessSettings field is set. + */ + boolean hasAccessSettings(); + + /** + * + * + *
+   * Will be used for all widget access settings seen in cloud console
+   * integration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + * + * @return The accessSettings. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings getAccessSettings(); + + /** + * + * + *
+   * Will be used for all widget access settings seen in cloud console
+   * integration page. Replaces top deprecated top level properties.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.AccessSettings access_settings = 34; + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.AccessSettingsOrBuilder + getAccessSettingsOrBuilder(); + + /** + * + * + *
+   * Describes search widget UI branding settings, such as the widget title,
+   * logo, favicons, and colors.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + * @return Whether the uiBranding field is set. + */ + boolean hasUiBranding(); + + /** + * + * + *
+   * Describes search widget UI branding settings, such as the widget title,
+   * logo, favicons, and colors.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + * + * @return The uiBranding. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings getUiBranding(); + + /** + * + * + *
+   * Describes search widget UI branding settings, such as the widget title,
+   * logo, favicons, and colors.
+   * 
+ * + * .google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings ui_branding = 35; + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettingsOrBuilder + getUiBrandingOrBuilder(); + + /** + * + * + *
+   * Optional. Describes the homepage settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the homepageSetting field is set. + */ + boolean hasHomepageSetting(); + + /** + * + * + *
+   * Optional. Describes the homepage settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The homepageSetting. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting getHomepageSetting(); + + /** + * + * + *
+   * Optional. Describes the homepage settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.HomepageSetting homepage_setting = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingOrBuilder + getHomepageSettingOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. Describes the assistant settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the assistantSettings field is set. + */ + boolean hasAssistantSettings(); + + /** + * + * + *
+   * Optional. Output only. Describes the assistant settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The assistantSettings. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings getAssistantSettings(); + + /** + * + * + *
+   * Optional. Output only. Describes the assistant settings of the widget.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings assistant_settings = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettingsOrBuilder + getAssistantSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. Describes the customer related configurations,
+   * currently only used for government customers. This field cannot be modified
+   * after project onboarding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + boolean hasCustomerProvidedConfig(); + + /** + * + * + *
+   * Optional. Output only. Describes the customer related configurations,
+   * currently only used for government customers. This field cannot be modified
+   * after project onboarding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerProvidedConfig. + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig + getCustomerProvidedConfig(); + + /** + * + * + *
+   * Optional. Output only. Describes the customer related configurations,
+   * currently only used for government customers. This field cannot be modified
+   * after project onboarding.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfig customer_provided_config = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. Whether to enable private knowledge graph.
+   * 
+ * + * + * bool enable_private_knowledge_graph = 42 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablePrivateKnowledgeGraph. + */ + boolean getEnablePrivateKnowledgeGraph(); + + /** + * + * + *
+   * Output only. Whether the subscription is gemini bundle or not.
+   * 
+ * + * bool gemini_bundle = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + boolean getGeminiBundle(); + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBatchAuthStatusesList(); + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus getBatchAuthStatuses(int index); + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBatchAuthStatusesCount(); + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder> + getBatchAuthStatusesOrBuilderList(); + + /** + * + * + *
+   * Output only. The batch authorization statuses for the widget's connectors.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatus batch_auth_statuses = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.BatchAuthStatusOrBuilder + getBatchAuthStatusesOrBuilder(int index); + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getNodesList(); + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.Node getNodes(int index); + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getNodesCount(); + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getNodesOrBuilderList(); + + /** + * + * + *
+   * Output only. The nodes associated with the Widget Config.
+   * 
+ * + * + * repeated .google.cloud.discoveryengine.v1.WidgetConfig.Node nodes = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1.WidgetConfig.NodeOrBuilder getNodesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigProto.java new file mode 100644 index 000000000000..53716afa1b48 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigProto.java @@ -0,0 +1,761 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class WidgetConfigProto extends com.google.protobuf.GeneratedFile { + private WidgetConfigProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WidgetConfigProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_FieldsUiComponentsMapEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_FieldsUiComponentsMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_FeaturesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_FeaturesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_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" + + "3google/cloud/discoveryengine/v1/widget_config.proto\022\037google.cloud.discoveryeng" + + "ine.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032,google/cloud" + + "/discoveryengine/v1/common.proto\0324google/cloud/discoveryengine/v1/data_connector" + + ".proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\257H\n" + + "\014WidgetConfig\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\005\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\002\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\017" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022Z\n" + + "\017data_store_type\030\010 \001(\0162;.google.c" + + "loud.discoveryengine.v1.WidgetConfig.DataStoreTypeB\004\342A\001\003\022\027\n" + + "\tconfig_id\030\014 \001(\tB\004\342A\001\003\022K\n\r" + + "solution_type\030\016 \001(\0162-.google.cloud." + + "discoveryengine.v1.SolutionTypeB\005\342A\002\002\005\022R\n" + + "\021industry_vertical\030\032 \001(\01621.google.cloud" + + ".discoveryengine.v1.IndustryVerticalB\004\342A\001\003\022\031\n" + + "\013llm_enabled\030\024 \001(\010B\004\342A\001\003\022\033\n" + + "\023enable_result_score\030\025 \001(\010\022(\n" + + "\032minimum_data_term_accepted\030\031 \001(\010B\004\342A\001\003\022f\n" + + "\025collection_components\030\035 \003(\0132A.google.cloud.discoveryengi" + + "ne.v1.WidgetConfig.CollectionComponentB\004\342A\001\003\022M\n" + + "\013ui_settings\030! \001(\01328.google.cloud" + + ".discoveryengine.v1.WidgetConfig.UiSettings\022U\n" + + "\017access_settings\030\" \001(\0132<.google.cl" + + "oud.discoveryengine.v1.WidgetConfig.AccessSettings\022U\n" + + "\013ui_branding\030# \001(\0132@.google" + + ".cloud.discoveryengine.v1.WidgetConfig.UiBrandingSettings\022]\n" + + "\020homepage_setting\030& " + + "\001(\0132=.google.cloud.discoveryengine.v1.WidgetConfig.HomepageSettingB\004\342A\001\001\022b\n" + + "\022assistant_settings\030\' \001(\0132?.google.cloud.disc" + + "overyengine.v1.WidgetConfig.AssistantSettingsB\005\342A\002\001\003\022m\n" + + "\030customer_provided_config\030( \001(\0132D.google.cloud.discoveryengine.v1" + + ".WidgetConfig.CustomerProvidedConfigB\005\342A\002\001\003\022-\n" + + "\036enable_private_knowledge_graph\030* \001(\010B\005\342A\002\001\003\022\033\n\r" + + "gemini_bundle\030, \001(\010B\004\342A\001\003\022`\n" + + "\023batch_auth_statuses\0300 \003(\0132=.google.cl" + + "oud.discoveryengine.v1.WidgetConfig.BatchAuthStatusB\004\342A\001\003\022G\n" + + "\005nodes\030. \003(\01322.googl" + + "e.cloud.discoveryengine.v1.WidgetConfig.NodeB\004\342A\001\003\032\375\001\n" + + "\020UIComponentField\022\023\n" + + "\005field\030\001 \001(\tB\004\342A\001\002\022j\n" + + "\021device_visibility\030\002 \003(\0162O.google.cloud.discoveryengine.v1.Widget" + + "Config.UIComponentField.DeviceVisibility\022\030\n" + + "\020display_template\030\003 \001(\t\"N\n" + + "\020DeviceVisibility\022!\n" + + "\035DEVICE_VISIBILITY_UNSPECIFIED\020\000\022\n\n" + + "\006MOBILE\020\001\022\013\n" + + "\007DESKTOP\020\002\032=\n\n" + + "FacetField\022\023\n" + + "\005field\030\001 \001(\tB\004\342A\001\002\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\001\032\376\002\n" + + "\021DataStoreUiConfig\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\002id\030\002 \001(\tB\004\342A\001\003\022M\n" + + "\013facet_field\030\003" + + " \003(\01328.google.cloud.discoveryengine.v1.WidgetConfig.FacetField\022|\n" + + "\030fields_ui_components_map\030\004 \003(\0132Z.google.cloud.discover" + + "yengine.v1.WidgetConfig.DataStoreUiConfig.FieldsUiComponentsMapEntry\032|\n" + + "\032FieldsUiComponentsMapEntry\022\013\n" + + "\003key\030\001 \001(\t\022M\n" + + "\005value\030\002" + + " \001(\0132>.google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField:\0028\001\032\345\002\n" + + "\022DataStoreComponent\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\002id\030\002 \001(\tB\004\342A\001\003\022\024\n" + + "\014display_name\030\003 \001(\t\022\023\n" + + "\013entity_name\030\004 \001(\t\022z\n" + + "\026data_store_config_type\030\010 \001(\0162T.google.cloud.discoveryengine.v1.W" + + "idgetConfig.DataStoreComponent.DataStoreConfigTypeB\004\342A\001\003\"\207\001\n" + + "\023DataStoreConfigType\022&\n" + + "\"DATA_STORE_CONFIG_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017ALLOW_DB_CONFIG\020\001\022\034\n" + + "\030THIRD_PARTY_OAUTH_CONFIG\020\002\022\025\n" + + "\021NOTEBOOKLM_CONFIG\020\003\032\273\002\n" + + "\022ConnectorAuthState\022d\n\n" + + "auth_state\030\001 \001(\0162J.google.cloud.discoveryengine.v1.WidgetCo" + + "nfig.ConnectorAuthState.AuthStateB\004\342A\001\003\022\037\n" + + "\021authorization_uri\030\003 \001(\tB\004\342A\001\003\0225\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"g\n" + + "\tAuthState\022\032\n" + + "\026AUTH_STATE_UNSPECIFIED\020\000\022\016\n\n" + + "AUTHORIZED\020\001\022\013\n" + + "\007EXPIRED\020\002\022\024\n" + + "\020ACTIONS_DISABLED\020\003\022\013\n" + + "\007NO_AUTH\020\004\032\273\001\n" + + "\017BatchAuthStatus\022\031\n" + + "\013placeholder\030\001 \001(\tB\004\342A\001\003\022\'\n" + + "\031batch_authorization_group\030\002 \001(\tB\004\342A\001\003\022d\n" + + "\024connector_auth_state\030\003 \001(\0132@.google." + + "cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthStateB\004\342A\001\003\032\321\004\n" + + "\023CollectionComponent\022\014\n" + + "\004name\030\001 \001(\t\022\020\n" + + "\002id\030\002 \001(\tB\004\342A\001\003\022\024\n" + + "\014display_name\030\003 \001(\t\022_\n" + + "\025data_store_components\030\004" + + " \003(\0132@.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent\022\023\n" + + "\013data_source\030\005 \001(\t\022!\n" + + "\023data_source_version\030\020 \001(\001B\004\342A\001\003\022&\n" + + "\030data_source_display_name\030\t \001(\tB\004\342A\001\003\022/\n" + + "!data_source_end_user_display_name\030\017 \001(\tB\004\342A\001\003\022!\n" + + "\023connector_icon_link\030\006 \001(\tB\004\342A\001\003\022d\n" + + "\024connector_auth_state\030\010 \001(\0132@.google.cloud.discoveryengine.v" + + "1.WidgetConfig.ConnectorAuthStateB\004\342A\001\003\022X\n" + + "\010metadata\030\r" + + " \001(\0132@.google.cloud.discove" + + "ryengine.v1.DataConnector.ConnectorMetadataB\004\342A\001\003\022\034\n" + + "\016is_first_party\030\016 \001(\010B\004\342A\001\003\022\021\n" + + "\003tag\030\023 \001(\tB\004\342A\001\003\032\322\031\n\n" + + "UiSettings\022b\n" + + "\020interaction_type\030\001 \001(\0162H.google.cloud.disco" + + "veryengine.v1.WidgetConfig.UiSettings.InteractionType\022q\n" + + "\030generative_answer_config\030\002 \001(\0132O.google.cloud.discoveryengine.v" + + "1.WidgetConfig.UiSettings.GenerativeAnswerConfig\022`\n" + + "\027result_description_type\030\003 \001(" + + "\0162?.google.cloud.discoveryengine.v1.WidgetConfig.ResultDisplayType\022\033\n" + + "\023enable_autocomplete\030\004 \001(\010\022\032\n" + + "\022enable_safe_search\030\005 \001(\010\022\037\n" + + "\027enable_quality_feedback\030\006 \001(\010\022!\n" + + "\031enable_search_as_you_type\030\007 \001(\010\022\'\n" + + "\037default_search_request_order_by\030\010 \001(\t\022^\n" + + "\025data_store_ui_configs\030\t \003(\0132?.google.cloud.d" + + "iscoveryengine.v1.WidgetConfig.DataStoreUiConfig\022&\n" + + "\036disable_user_events_collection\030\n" + + " \001(\010\022%\n" + + "\035enable_visual_content_summary\030\013 \001(\010\022\"\n" + + "\024enable_people_search\030\014 \001(\010B\004\342A\001\001\022(\n" + + "\032enable_create_agent_button\030\r" + + " \001(\010B\004\342A\001\001\022^\n" + + "\010features\030\036 \003(\0132F.google.cloud.d" + + "iscoveryengine.v1.WidgetConfig.UiSettings.FeaturesEntryB\004\342A\001\003\022g\n\r" + + "model_configs\030- \003(\0132J.google.cloud.discoveryengine.v1.W" + + "idgetConfig.UiSettings.ModelConfigsEntryB\004\342A\001\003\022i\n" + + "\021search_addon_spec\030\037 \001(\0132H.goog" + + "le.cloud.discoveryengine.v1.WidgetConfig.UiSettings.SearchAddonSpecB\004\342A\001\001\022*\n" + + "\027onedrive_picker_enabled\0300 \001(\010B\004\342A\001\003H\000\210\001\001\022.\n" + + "\033google_drive_picker_enabled\0301" + + " \001(\010B\004\342A\001\003H\001\210\001\001\022i\n" + + "\021model_config_info\0302 \001(\0132H.googl" + + "e.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfoB\004\342A\001\003\022/\n" + + "!source_admin_display_name_enabled\0303 \001(\010B\004\342A\001\001\032\260\004\n" + + "\026GenerativeAnswerConfig\022\024\n" + + "\014result_count\030\003 \001(\005\022\025\n\r" + + "model_version\030\004 \001(\t\022\035\n" + + "\025model_prompt_preamble\030\005 \001(\t\022\032\n" + + "\022max_rephrase_steps\030\006 \001(\005\022\025\n\r" + + "language_code\030\007 \001(\t\022!\n" + + "\031disable_related_questions\030\010 \001(\010\022-\n" + + "\037ignore_non_answer_seeking_query\030\t \001(\010B\004\342A\001\001\022&\n" + + "\030ignore_adversarial_query\030\n" + + " \001(\010B\004\342A\001\001\022)\n" + + "\033ignore_low_relevant_content\030\013 \001(\010B\004\342A\001\001\022w\n" + + "\014image_source\030\014 \001(\0162[.google.cloud.di" + + "scoveryengine.v1.WidgetConfig.UiSettings" + + ".GenerativeAnswerConfig.ImageSourceB\004\342A\001\001\"y\n" + + "\013ImageSource\022\034\n" + + "\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\031\n" + + "\025ALL_AVAILABLE_SOURCES\020\001\022\025\n" + + "\021CORPUS_IMAGE_ONLY\020\002\022\032\n" + + "\026FIGURE_GENERATION_ONLY\020\003\032\222\005\n" + + "\017ModelConfigInfo\022u\n" + + "\017resolved_models\030\001 \003(\0132V.google.cloud.discoveryengine" + + ".v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModelB\004\342A\001\003\022\036\n" + + "\020default_model_id\030\002 \001(\tB\004\342A\001\003\022\033\n\r" + + "auto_model_id\030\003 \001(\tB\004\342A\001\003\032\312\003\n\r" + + "ResolvedModel\022\026\n" + + "\010model_id\030\001 \001(\tB\004\342A\001\003\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\022\n" + + "\004icon\030\003 \001(\tB\004\342A\001\003\022\031\n" + + "\013description\030\004 \001(\tB\004\342A\001\003\022\030\n\n" + + "is_preview\030\005 \001(\010B\004\342A\001\003\022\023\n" + + "\005label\030\007 \001(\tB\004\342A\001\003\022z\n\n" + + "admin_view\030\006 \001(\0132`.google.cloud.discoveryengine.v1.WidgetConfig.UiSe" + + "ttings.ModelConfigInfo.ResolvedModel.AdminViewB\004\342A\001\003\022\026\n" + + "\010promoted\030\010 \001(\010B\004\342A\001\003\022\026\n" + + "\010icon_url\030\t \001(\tB\004\342A\001\003\022\024\n" + + "\006family\030\n" + + " \001(\tB\004\342A\001\003\032e\n" + + "\tAdminView\022\037\n" + + "\021admin_overridable\030\001 \001(\010B\004\342A\001\003\022 \n" + + "\022enabled_by_default\030\002 \001(\010B\004\342A\001\003\022\025\n" + + "\007regions\030\003 \003(\tB\004\342A\001\003\032\235\001\n" + + "\017SearchAddonSpec\022&\n" + + "\030semantic_add_on_disabled\030\001 \001(\010B\004\342A\001\001\0221\n" + + "#kpi_personalization_add_on_disabled\030\002 \001(\010B\004\342A\001\001\022/\n" + + "!generative_answer_add_on_disabled\030\003 \001(\010B\004\342A\001\001\032v\n\r" + + "FeaturesEntry\022\013\n" + + "\003key\030\001 \001(\t\022T\n" + + "\005value\030\002 \001(\0162E.google." + + "cloud.discoveryengine.v1.WidgetConfig.UiSettings.FeatureState:\0028\001\032x\n" + + "\021ModelConfigsEntry\022\013\n" + + "\003key\030\001 \001(\t\022R\n" + + "\005value\030\002 \001(\0162C.goo" + + "gle.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelState:\0028\001\"x\n" + + "\017InteractionType\022 \n" + + "\034INTERACTION_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013SEARCH_ONLY\020\001\022\026\n" + + "\022SEARCH_WITH_ANSWER\020\002\022\032\n" + + "\026SEARCH_WITH_FOLLOW_UPS\020\003\"Z\n" + + "\014FeatureState\022\035\n" + + "\031FEATURE_STATE_UNSPECIFIED\020\000\022\024\n" + + "\020FEATURE_STATE_ON\020\001\022\025\n" + + "\021FEATURE_STATE_OFF\020\002\"P\n\n" + + "ModelState\022\033\n" + + "\027MODEL_STATE_UNSPECIFIED\020\000\022\021\n\r" + + "MODEL_ENABLED\020\001\022\022\n" + + "\016MODEL_DISABLED\020\002B\032\n" + + "\030_onedrive_picker_enabledB\036\n" + + "\034_google_drive_picker_enabled\032\257\001\n" + + "\016AccessSettings\022\033\n" + + "\023allow_public_access\030\001 \001(\010\022\033\n" + + "\023allowlisted_domains\030\002 \003(\t\022\026\n" + + "\016enable_web_app\030\003 \001(\010\022.\n" + + " workforce_identity_pool_provider\030\004 \001(\tB\004\342A\001\001\022\033\n\r" + + "language_code\030\005 \001(\tB\004\342A\001\001\032(\n" + + "\005Image\022\r\n" + + "\003url\030\001 \001(\tH\000B\020\n" + + "\016storage_method\032W\n" + + "\022UiBrandingSettings\022A\n" + + "\004logo\030\001 \001(\0132" + + "3.google.cloud.discoveryengine.v1.WidgetConfig.Image\032\374\001\n" + + "\017HomepageSetting\022_\n" + + "\tshortcuts\030\001 \003(\0132F.google.cloud.discoveryengi" + + "ne.v1.WidgetConfig.HomepageSetting.ShortcutB\004\342A\001\001\032\207\001\n" + + "\010Shortcut\022\023\n" + + "\005title\030\001 \001(\tB\004\342A\001\001\022G\n" + + "\004icon\030\002" + + " \001(\01323.google.cloud.discoveryengine.v1.WidgetConfig.ImageB\004\342A\001\001\022\035\n" + + "\017destination_uri\030\003 \001(\tB\004\342A\001\001\032\216\003\n" + + "\021AssistantSettings\022r\n" + + "\022web_grounding_type\030\002 \001(\0162P.google.cloud.discoveryengine.v1.WidgetCo" + + "nfig.AssistantSettings.WebGroundingTypeB\004\342A\001\001\022.\n" + + " default_web_grounding_toggle_off\030\003 \001(\010B\004\342A\001\003\022\'\n" + + "\030disable_location_context\030\005 \001(\010B\005\342A\002\001\003\"\253\001\n" + + "\020WebGroundingType\022\"\n" + + "\036WEB_GROUNDING_TYPE_UNSPECIFIED\020\000\022\037\n" + + "\033WEB_GROUNDING_TYPE_DISABLED\020\001\022$\n" + + " WEB_GROUNDING_TYPE_GOOGLE_SEARCH\020\002\022,\n" + + "(WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH\020\003\032\304\003\n" + + "\026CustomerProvidedConfig\022h\n\r" + + "customer_type\030\001 \001(\0162Q.google.cloud.discoveryengine.v1.WidgetC" + + "onfig.CustomerProvidedConfig.CustomerType\022t\n" + + "\020compliance_level\030\002 \001(\0162T.google.clo" + + "ud.discoveryengine.v1.WidgetConfig.Custo" + + "merProvidedConfig.ComplianceLevelB\004\342A\001\003\"=\n" + + "\014CustomerType\022\024\n" + + "\020DEFAULT_CUSTOMER\020\000\022\027\n" + + "\023GOVERNMENT_CUSTOMER\020\001\"\212\001\n" + + "\017ComplianceLevel\022 \n" + + "\034COMPLIANCE_LEVEL_UNSPECIFIED\020\000\022!\n" + + "\035COMPLIANCE_LEVEL_FEDRAMP_HIGH\020\001\022\030\n" + + "\024COMPLIANCE_LEVEL_IL4\020\002\022\030\n" + + "\024COMPLIANCE_LEVEL_IL5\020\003\032\325\002\n" + + "\004Node\022\032\n" + + "\014display_name\030\001 \001(\tB\004\342A\001\003\022\026\n" + + "\010icon_url\030\002 \001(\tB\004\342A\001\003\022\031\n" + + "\013description\030\003 \001(\tB\004\342A\001\003\0227\n" + + "\020parameter_schema\030\004" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\003\0224\n\r" + + "output_schema\030\005 \001(\0132\027.google.protobuf.StructB\004\342A\001\003\022K\n" + + "\004type\030\006 \001(\01627.google.cloud.discover" + + "yengine.v1.WidgetConfig.Node.TypeB\004\342A\001\003\"B\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007TRIGGER\020\001\022\010\n" + + "\004FLOW\020\002\022\r\n" + + "\tCONNECTOR\020\003\"p\n\r" + + "DataStoreType\022\037\n" + + "\033DATA_STORE_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013SITE_SEARCH\020\001\022\016\n\n" + + "STRUCTURED\020\002\022\020\n" + + "\014UNSTRUCTURED\020\003\022\013\n" + + "\007BLENDED\020\004\"\\\n" + + "\021ResultDisplayType\022#\n" + + "\037RESULT_DISPLAY_TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007SNIPPET\020\001\022\025\n" + + "\021EXTRACTIVE_ANSWER\020\002:\371\002\352A\365\002\n" + + "+discoveryengine.googleapis.com/WidgetConfig\022]projects/{project}/locations/{l" + + "ocation}/dataStores/{data_store}/widgetConfigs/{widget_config}\022vprojects/{projec" + + "t}/locations/{location}/collections/{collection}/dataStores/{data_store}/widgetC" + + "onfigs/{widget_config}\022oprojects/{project}/locations/{location}/collections/{col" + + "lection}/engines/{engine}/widgetConfigs/{widget_config}*b\n\r" + + "ModelInfoView\022\037\n" + + "\033MODEL_INFO_VIEW_UNSPECIFIED\020\000\022\020\n" + + "\014END_USER_WEB\020\001\022\t\n" + + "\005ADMIN\020\002\022\023\n" + + "\017END_USER_MOBILE\020\003B\204\002\n" + + "#com.google.cloud.discoveryengine.v1B\021Wid" + + "getConfigProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;di" + + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037Goog" + + "le.Cloud.DiscoveryEngine.V1\312\002\037Google\\Clo" + + "ud\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.DataConnectorProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "DataStoreType", + "ConfigId", + "SolutionType", + "IndustryVertical", + "LlmEnabled", + "EnableResultScore", + "MinimumDataTermAccepted", + "CollectionComponents", + "UiSettings", + "AccessSettings", + "UiBranding", + "HomepageSetting", + "AssistantSettings", + "CustomerProvidedConfig", + "EnablePrivateKnowledgeGraph", + "GeminiBundle", + "BatchAuthStatuses", + "Nodes", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UIComponentField_descriptor, + new java.lang.String[] { + "Field", "DeviceVisibility", "DisplayTemplate", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_FacetField_descriptor, + new java.lang.String[] { + "Field", "DisplayName", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor, + new java.lang.String[] { + "Name", "Id", "FacetField", "FieldsUiComponentsMap", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_FieldsUiComponentsMapEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_FieldsUiComponentsMapEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreUiConfig_FieldsUiComponentsMapEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_DataStoreComponent_descriptor, + new java.lang.String[] { + "Name", "Id", "DisplayName", "EntityName", "DataStoreConfigType", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_ConnectorAuthState_descriptor, + new java.lang.String[] { + "AuthState", "AuthorizationUri", "UpdateTime", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(5); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_BatchAuthStatus_descriptor, + new java.lang.String[] { + "Placeholder", "BatchAuthorizationGroup", "ConnectorAuthState", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(6); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CollectionComponent_descriptor, + new java.lang.String[] { + "Name", + "Id", + "DisplayName", + "DataStoreComponents", + "DataSource", + "DataSourceVersion", + "DataSourceDisplayName", + "DataSourceEndUserDisplayName", + "ConnectorIconLink", + "ConnectorAuthState", + "Metadata", + "IsFirstParty", + "Tag", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(7); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor, + new java.lang.String[] { + "InteractionType", + "GenerativeAnswerConfig", + "ResultDescriptionType", + "EnableAutocomplete", + "EnableSafeSearch", + "EnableQualityFeedback", + "EnableSearchAsYouType", + "DefaultSearchRequestOrderBy", + "DataStoreUiConfigs", + "DisableUserEventsCollection", + "EnableVisualContentSummary", + "EnablePeopleSearch", + "EnableCreateAgentButton", + "Features", + "ModelConfigs", + "SearchAddonSpec", + "OnedrivePickerEnabled", + "GoogleDrivePickerEnabled", + "ModelConfigInfo", + "SourceAdminDisplayNameEnabled", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_GenerativeAnswerConfig_descriptor, + new java.lang.String[] { + "ResultCount", + "ModelVersion", + "ModelPromptPreamble", + "MaxRephraseSteps", + "LanguageCode", + "DisableRelatedQuestions", + "IgnoreNonAnswerSeekingQuery", + "IgnoreAdversarialQuery", + "IgnoreLowRelevantContent", + "ImageSource", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor, + new java.lang.String[] { + "ResolvedModels", "DefaultModelId", "AutoModelId", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor, + new java.lang.String[] { + "ModelId", + "DisplayName", + "Icon", + "Description", + "IsPreview", + "Label", + "AdminView", + "Promoted", + "IconUrl", + "Family", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigInfo_ResolvedModel_AdminView_descriptor, + new java.lang.String[] { + "AdminOverridable", "EnabledByDefault", "Regions", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_SearchAddonSpec_descriptor, + new java.lang.String[] { + "SemanticAddOnDisabled", + "KpiPersonalizationAddOnDisabled", + "GenerativeAnswerAddOnDisabled", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_FeaturesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_FeaturesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_FeaturesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_descriptor + .getNestedType(4); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiSettings_ModelConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(8); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AccessSettings_descriptor, + new java.lang.String[] { + "AllowPublicAccess", + "AllowlistedDomains", + "EnableWebApp", + "WorkforceIdentityPoolProvider", + "LanguageCode", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(9); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Image_descriptor, + new java.lang.String[] { + "Url", "StorageMethod", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(10); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_UiBrandingSettings_descriptor, + new java.lang.String[] { + "Logo", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(11); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor, + new java.lang.String[] { + "Shortcuts", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_HomepageSetting_Shortcut_descriptor, + new java.lang.String[] { + "Title", "Icon", "DestinationUri", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(12); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_AssistantSettings_descriptor, + new java.lang.String[] { + "WebGroundingType", "DefaultWebGroundingToggleOff", "DisableLocationContext", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(13); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_CustomerProvidedConfig_descriptor, + new java.lang.String[] { + "CustomerType", "ComplianceLevel", + }); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_descriptor = + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_descriptor.getNestedType(14); + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_WidgetConfig_Node_descriptor, + new java.lang.String[] { + "DisplayName", "IconUrl", "Description", "ParameterSchema", "OutputSchema", "Type", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.DataConnectorProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceProto.java new file mode 100644 index 000000000000..9b4129eed74c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WidgetConfigServiceProto.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1/widget_config_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.discoveryengine.v1; + +@com.google.protobuf.Generated +public final class WidgetConfigServiceProto extends com.google.protobuf.GeneratedFile { + private WidgetConfigServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WidgetConfigServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/discoveryengine/v1/widget" + + "_config_service.proto\022\037google.cloud.disc" + + "overyengine.v1\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\0323google/cloud/discoveryengine/" + + "v1/widget_config.proto\032 google/protobuf/" + + "field_mask.proto\"\271\003\n\026GetWidgetConfigRequ" + + "est\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+discoveryeng" + + "ine.googleapis.com/WidgetConfig\022\032\n\014accep" + + "t_cache\030\002 \001(\010B\004\342A\001\001\022\204\001\n get_widget_confi" + + "g_request_option\030\003 \001(\0132T.google.cloud.di" + + "scoveryengine.v1.GetWidgetConfigRequest." + + "GetWidgetConfigRequestOptionB\004\342A\001\001\022\033\n\rla" + + "nguage_code\030\004 \001(\tB\004\342A\001\001\022M\n\017model_info_vi" + + "ew\030\005 \001(\0162..google.cloud.discoveryengine." + + "v1.ModelInfoViewB\004\342A\001\001\032L\n\034GetWidgetConfi" + + "gRequestOption\022,\n\036turn_off_collection_co" + + "mponents\030\001 \001(\010B\004\342A\001\001\"\230\001\n\031UpdateWidgetCon" + + "figRequest\022J\n\rwidget_config\030\001 \001(\0132-.goog" + + "le.cloud.discoveryengine.v1.WidgetConfig" + + "B\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask2\356\010\n\023WidgetConfigService\022" + + "\347\002\n\017GetWidgetConfig\0227.google.cloud.disco" + + "veryengine.v1.GetWidgetConfigRequest\032-.g" + + "oogle.cloud.discoveryengine.v1.WidgetCon" + + "fig\"\353\001\332A\004name\202\323\344\223\002\335\001\022>/v1/{name=projects" + + "/*/locations/*/dataStores/*/widgetConfig" + + "s/*}ZN\022L/v1/{name=projects/*/locations/*" + + "/collections/*/dataStores/*/widgetConfig" + + "s/*}ZK\022I/v1/{name=projects/*/locations/*" + + "/collections/*/engines/*/widgetConfigs/*" + + "}\022\331\003\n\022UpdateWidgetConfig\022:.google.cloud." + + "discoveryengine.v1.UpdateWidgetConfigReq" + + "uest\032-.google.cloud.discoveryengine.v1.W" + + "idgetConfig\"\327\002\332A\031widget_config,update_ma" + + "sk\202\323\344\223\002\264\0022L/v1/{widget_config.name=proje" + + "cts/*/locations/*/dataStores/*/widgetCon" + + "figs/*}:\rwidget_configZk2Z/v1/{widget_co" + + "nfig.name=projects/*/locations/*/collect" + + "ions/*/dataStores/*/widgetConfigs/*}:\rwi" + + "dget_configZh2W/v1/{widget_config.name=p" + + "rojects/*/locations/*/collections/*/engi" + + "nes/*/widgetConfigs/*}:\rwidget_config\032\220\002" + + "\312A\036discoveryengine.googleapis.com\322A\353\001htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/disc" + + "overyengine.assist.readwrite,https://www" + + ".googleapis.com/auth/discoveryengine.rea" + + "dwrite,https://www.googleapis.com/auth/d" + + "iscoveryengine.serving.readwriteB\213\002\n#com" + + ".google.cloud.discoveryengine.v1B\030Widget" + + "ConfigServiceProtoP\001ZMcloud.google.com/g" + + "o/discoveryengine/apiv1/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002\037" + + "Google.Cloud.DiscoveryEngine.V1\312\002\037Google" + + "\\Cloud\\DiscoveryEngine\\V1\352\002\"Google::Clou" + + "d::DiscoveryEngine::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.WidgetConfigProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor, + new java.lang.String[] { + "Name", + "AcceptCache", + "GetWidgetConfigRequestOption", + "LanguageCode", + "ModelInfoView", + }); + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_descriptor = + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_GetWidgetConfigRequest_GetWidgetConfigRequestOption_descriptor, + new java.lang.String[] { + "TurnOffCollectionComponents", + }); + internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1_UpdateWidgetConfigRequest_descriptor, + new java.lang.String[] { + "WidgetConfig", "UpdateMask", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.WidgetConfigProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java index d5f8637231e2..ef5ed9b5ed30 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfig.java @@ -173,6 +173,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * GOOGLE_PEOPLE = 8; */ GOOGLE_PEOPLE(8), + /** + * + * + *
+     * Workspace Data Store contains all Workspace apps data
+     * 
+ * + * GOOGLE_WORKSPACE = 9; + */ + GOOGLE_WORKSPACE(9), UNRECOGNIZED(-1), ; @@ -285,6 +295,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_PEOPLE_VALUE = 8; + /** + * + * + *
+     * Workspace Data Store contains all Workspace apps data
+     * 
+ * + * GOOGLE_WORKSPACE = 9; + */ + public static final int GOOGLE_WORKSPACE_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -327,6 +348,8 @@ public static Type forNumber(int value) { return GOOGLE_KEEP; case 8: return GOOGLE_PEOPLE; + case 9: + return GOOGLE_WORKSPACE; default: return null; } @@ -430,10 +453,12 @@ public com.google.cloud.discoveryengine.v1.WorkspaceConfig.Type getType() { * * *
-   * Obfuscated Dasher customer ID.
+   * Output only. Obfuscated Dasher customer ID. Derived by the server from
+   * the project's GCP organization at data store creation time; any value
+   * supplied in the request payload is ignored.
    * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dasherCustomerId. */ @@ -454,10 +479,12 @@ public java.lang.String getDasherCustomerId() { * * *
-   * Obfuscated Dasher customer ID.
+   * Output only. Obfuscated Dasher customer ID. Derived by the server from
+   * the project's GCP organization at data store creation time; any value
+   * supplied in the request payload is ignored.
    * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for dasherCustomerId. */ @@ -1073,10 +1100,12 @@ public Builder clearType() { * * *
-     * Obfuscated Dasher customer ID.
+     * Output only. Obfuscated Dasher customer ID. Derived by the server from
+     * the project's GCP organization at data store creation time; any value
+     * supplied in the request payload is ignored.
      * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dasherCustomerId. */ @@ -1096,10 +1125,12 @@ public java.lang.String getDasherCustomerId() { * * *
-     * Obfuscated Dasher customer ID.
+     * Output only. Obfuscated Dasher customer ID. Derived by the server from
+     * the project's GCP organization at data store creation time; any value
+     * supplied in the request payload is ignored.
      * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for dasherCustomerId. */ @@ -1119,10 +1150,12 @@ public com.google.protobuf.ByteString getDasherCustomerIdBytes() { * * *
-     * Obfuscated Dasher customer ID.
+     * Output only. Obfuscated Dasher customer ID. Derived by the server from
+     * the project's GCP organization at data store creation time; any value
+     * supplied in the request payload is ignored.
      * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The dasherCustomerId to set. * @return This builder for chaining. @@ -1141,10 +1174,12 @@ public Builder setDasherCustomerId(java.lang.String value) { * * *
-     * Obfuscated Dasher customer ID.
+     * Output only. Obfuscated Dasher customer ID. Derived by the server from
+     * the project's GCP organization at data store creation time; any value
+     * supplied in the request payload is ignored.
      * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1159,10 +1194,12 @@ public Builder clearDasherCustomerId() { * * *
-     * Obfuscated Dasher customer ID.
+     * Output only. Obfuscated Dasher customer ID. Derived by the server from
+     * the project's GCP organization at data store creation time; any value
+     * supplied in the request payload is ignored.
      * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for dasherCustomerId to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java index e8c3f73a9e8b..7e130e4503e2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/WorkspaceConfigOrBuilder.java @@ -56,10 +56,12 @@ public interface WorkspaceConfigOrBuilder * * *
-   * Obfuscated Dasher customer ID.
+   * Output only. Obfuscated Dasher customer ID. Derived by the server from
+   * the project's GCP organization at data store creation time; any value
+   * supplied in the request payload is ignored.
    * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dasherCustomerId. */ @@ -69,10 +71,12 @@ public interface WorkspaceConfigOrBuilder * * *
-   * Obfuscated Dasher customer ID.
+   * Output only. Obfuscated Dasher customer ID. Derived by the server from
+   * the project's GCP organization at data store creation time; any value
+   * supplied in the request payload is ignored.
    * 
* - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for dasherCustomerId. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config.proto new file mode 100644 index 000000000000..126c9def5767 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config.proto @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AclConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Access Control Configuration. +message AclConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/AclConfig" + pattern: "projects/{project}/locations/{location}/aclConfig" + }; + + // Immutable. The full resource name of the acl configuration. + // Format: + // `projects/{project}/locations/{location}/aclConfig`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Identity provider config. + IdpConfig idp_config = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config_service.proto new file mode 100644 index 000000000000..050b1931c0d7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/acl_config_service.proto @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/acl_config.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AclConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Service for managing Acl Configuration. +service AclConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Default ACL configuration for use in a location of a customer's project. + // Updates will only reflect to new data stores. Existing data stores will + // still use the old value. + rpc UpdateAclConfig(UpdateAclConfigRequest) returns (AclConfig) { + option (google.api.http) = { + patch: "/v1/{acl_config.name=projects/*/locations/*/aclConfig}" + body: "acl_config" + }; + } + + // Gets the [AclConfig][google.cloud.discoveryengine.v1.AclConfig]. + rpc GetAclConfig(GetAclConfigRequest) returns (AclConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aclConfig}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for GetAclConfigRequest method. +message GetAclConfigRequest { + // Required. Resource name of + // [AclConfig][google.cloud.discoveryengine.v1.AclConfig], such as + // `projects/*/locations/*/aclConfig`. + // + // If the caller does not have permission to access the + // [AclConfig][google.cloud.discoveryengine.v1.AclConfig], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/AclConfig" + } + ]; +} + +// Request message for UpdateAclConfig method. +message UpdateAclConfigRequest { + AclConfig acl_config = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/agent_gateway_setting.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/agent_gateway_setting.proto new file mode 100644 index 000000000000..7347c40dc5db --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/agent_gateway_setting.proto @@ -0,0 +1,57 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AgentGatewaySettingProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Agent Gateway setting, which may be attached to Gemini Enterprise resources +// for egress control of Gemini Enterprise agents to agents and tools outside of +// Gemini Enterprise. +message AgentGatewaySetting { + // Reference to an Agent Gateway resource. + message AgentGatewayReference { + // Required. Immutable. The resource name of the agent gateway. + // + // Expected format: + // `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/AgentGateway" + } + ]; + } + + // Optional. The default egress agent gateway to use, when this setting is + // applied to a Gemini Enterprise resource. + // + // The deployment mode must be GOOGLE_MANAGED, and the governed access path + // must be AGENT_TO_ANYWHERE. + AgentGatewayReference default_egress_agent_gateway = 1 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto index 1661f53b3a76..98688d2c67e1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/answer.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assist_answer.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assist_answer.proto index 04e12b4516bf..0e66e3ce8c3f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assist_answer.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assist_answer.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,10 @@ package google.cloud.discoveryengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/grounded_generation_service.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; @@ -43,6 +47,87 @@ message AssistAnswer { // Possibly grounded response text or media from the assistant. AssistantGroundedContent grounded_content = 1; } + + // The time when the reply was created. + google.protobuf.Timestamp create_time = 14; + } + + // Customer policy enforcement results. Contains the results of the various + // policy checks, like the banned phrases or the Model Armor checks. + message CustomerPolicyEnforcementResult { + // Customer policy enforcement result for the banned phrase policy. + message BannedPhraseEnforcementResult { + // The banned phrases that were found in the query or the answer. + repeated string banned_phrases = 1; + } + + // Customer policy enforcement result for the Model Armor policy. + message ModelArmorEnforcementResult { + // The Model Armor policy result. + oneof result { + // The Model Armor violation that was found. + string model_armor_violation = 1; + + // The error returned by Model Armor if the policy enforcement failed + // for some reason. + google.rpc.Status error = 2; + } + } + + // Customer policy enforcement result for a single policy type. + message PolicyEnforcementResult { + // The policy type specific result. It can be either an error or a + // detailed information about the policy enforcement result. + oneof enforcement_result { + // The policy enforcement result for the banned phrase policy. + BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + + // The policy enforcement result for the Model Armor policy. + ModelArmorEnforcementResult model_armor_enforcement_result = 4; + } + } + + // The verdict of the customer policy enforcement. + enum Verdict { + // Unknown value. + UNSPECIFIED = 0; + + // There was no policy violation. + ALLOW = 1; + + // Processing was blocked by the customer policy. + BLOCK = 2; + } + + // If the assist call was skipped due to a policy violation, this contains + // the source of the violation. + enum ViolationSource { + // Unknown value. + VIOLATION_SOURCE_UNSPECIFIED = 0; + + // Violation found in the system response. + SYSTEM = 1; + + // Violation found in the user prompt. + PROMPT = 2; + + // Violation found in the user attachment. + ATTACHMENT = 3; + } + + // Final verdict of the customer policy enforcement. If only one policy + // blocked the processing, the verdict is BLOCK. + Verdict verdict = 1; + + // Customer policy enforcement results. + // Populated only if the assist call was skipped due to a policy + // violation. It contains results from those filters that blocked the + // processing of the query. + repeated PolicyEnforcementResult policy_results = 3; + + // Output only. The source of the violation. + ViolationSource violation_source = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // State of the answer generation. @@ -61,6 +146,10 @@ message AssistAnswer { // Assist operation has been skipped. SKIPPED = 4; + + // Assist operation has been cancelled (e.g. client closed the stream). + // May contain a partial response. + CANCELLED = 5; } // Possible reasons for not answering an assist call. @@ -78,22 +167,40 @@ message AssistAnswer { CUSTOMER_POLICY_VIOLATION = 2; } - // Immutable. Resource name of the `AssistAnswer`. + // Immutable. Identifier. Resource name of the `AssistAnswer`. // Format: // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}` // // This field must be a UTF-8 encoded string with a length limit of 1024 // characters. - string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; // State of the answer generation. State state = 2; + // Output only. Maps an internal connector agent name (the machine identifier + // embedded in tool names, e.g. `custom_mcp__agent`) to the + // connector's human-readable display name. Populated at serving time for + // custom MCP / agent gateway connectors so user-facing surfaces (e.g. the + // tool-call chip) can show the connector name instead of its internal + // identifier. Empty when there are no such connectors. + map connector_display_names = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Replies of the assistant. repeated Reply replies = 3; // Reasons for not answering the assist call. repeated AssistSkippedReason assist_skipped_reasons = 5; + + // Optional. The field contains information about the various policy checks' + // results like the banned phrases or the Model Armor checks. This field is + // populated only if the assist call was skipped due to a policy violation. + CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Multi-modal content. @@ -201,10 +308,33 @@ message AssistantGroundedContent { string text = 6; } + // Grounding information for a visual segment. + message VisualSegment { + // References for the visual segment. + repeated int32 reference_indices = 1; + + // The content id of the visual segment. In order to display the citation + // of the visual element, this content_id needs to match with the + // `grounded_content.content_metadata.content_id` field. + string content_id = 2; + } + // Referenced content and related document metadata. message Reference { // Document metadata. message DocumentMetadata { + // Language of the referenced content. For now, it is only used for + // code. + enum Language { + LANGUAGE_UNSPECIFIED = 0; + + PYTHON = 1; + + SQL = 2; + } + + Language language = 8; + // Document resource name. optional string document = 1 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/Document" @@ -224,18 +354,33 @@ message AssistantGroundedContent { // contain a URL that redirects to the actual website, in which case // this will contain the domain name of the target site. optional string domain = 5; + + // The mime type of the document. + // https://www.iana.org/assignments/media-types/media-types.xhtml. + optional string mime_type = 7; } // Referenced text content. string content = 1; + // Chunk of code snippet from the referenced document. + string code_snippet = 4; + // Document metadata. DocumentMetadata document_metadata = 2; + + // Output only. Generic structured chunk metadata from upstream data + // source connectors. + google.protobuf.Struct chunk_metadata = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Grounding information for parts of the text. repeated Segment segments = 4; + // Grounding information for parts of the visual content. + repeated VisualSegment visual_segments = 6; + // References for the grounded text. repeated Reference references = 2; } @@ -248,4 +393,8 @@ message AssistantGroundedContent { // The content. AssistantContent content = 1; + + // Source attribution of the generated content. See also + // https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check + CitationMetadata citation_metadata = 5; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant.proto index 408853845405..a44f8c338575 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,8 @@ package google.cloud.discoveryengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; @@ -35,10 +37,219 @@ message Assistant { pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}" }; + // Configuration for the generation of the assistant response. + message GenerationConfig { + // System instruction, also known as the prompt preamble for LLM calls. + message SystemInstruction { + // Optional. Additional system instruction that will be added to the + // default system instruction. + string additional_system_instruction = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The default model to use for assistant. + string default_model_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of models that are allowed to be used for assistant. + repeated string allowed_model_ids = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // System instruction, also known as the prompt preamble for LLM calls. + // See also + // https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions + SystemInstruction system_instruction = 3; + + // The default language to use for the generation of the assistant + // response. + // Use an ISO 639-1 language code such as `en`. + // If not specified, the language will be automatically detected. + string default_language = 4; + } + + // Information to identify a tool. + message ToolInfo { + // The name of the tool as defined by + // DataConnectorService.QueryAvailableActions. + // Note: it's using `action` in the DataConnectorService apis, but they are + // the same as the `tool` here. + string tool_name = 1; + + // The display name of the tool. + string tool_display_name = 2; + } + + // The enabled tools on a connector + message ToolList { + // The list of tools with corresponding tool information. + repeated ToolInfo tool_info = 1; + } + + // Customer-defined policy for the assistant. + message CustomerPolicy { + // Definition of a customer-defined banned phrase. A banned phrase is not + // allowed to appear in the user query or the LLM response, or else the + // answer will be refused. + message BannedPhrase { + // The matching method for the banned phrase. + enum BannedPhraseMatchType { + // Defaults to SIMPLE_STRING_MATCH. + BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0; + + // The banned phrase matches if it is found anywhere in the text as an + // exact substring. + SIMPLE_STRING_MATCH = 1; + + // Banned phrase only matches if the pattern found in the text is + // surrounded by word delimiters. The phrase itself may still contain + // word delimiters. + WORD_BOUNDARY_STRING_MATCH = 2; + } + + // Required. The raw string content to be banned. + string phrase = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Match type for the banned phrase. + BannedPhraseMatchType match_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, diacritical marks (e.g., accents, umlauts) are + // ignored when matching banned phrases. For example, "cafe" would match + // "café". + bool ignore_diacritics = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for customer defined Model Armor templates to be used for + // sanitizing user prompts and assistant responses. + message ModelArmorConfig { + // Determines the behavior when Model Armor fails to process a request. + enum FailureMode { + // Unspecified failure mode, default behavior is `FAIL_CLOSED`. + FAILURE_MODE_UNSPECIFIED = 0; + + // In case of a Model Armor processing failure, the request is allowed + // to proceed without any changes. + FAIL_OPEN = 1; + + // In case of a Model Armor processing failure, the request is rejected. + FAIL_CLOSED = 2; + } + + // Optional. The resource name of the Model Armor template for sanitizing + // user prompts. Format: + // `projects/{project}/locations/{location}/templates/{template_id}` + // + // If not specified, no sanitization will be applied to the user prompt. + string user_prompt_template = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + + // Optional. The resource name of the Model Armor template for sanitizing + // assistant responses. Format: + // `projects/{project}/locations/{location}/templates/{template_id}` + // + // If not specified, no sanitization will be applied to the assistant + // response. + string response_template = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + + // Optional. Defines the failure mode for Model Armor sanitization. + FailureMode failure_mode = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. List of banned phrases. + repeated BannedPhrase banned_phrases = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Model Armor configuration to be used for sanitizing user + // prompts and assistant responses. + ModelArmorConfig model_armor_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data protection policy to be used for sanitizing file uploads. + DataProtectionPolicy data_protection_policy = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of web grounding to use. + enum WebGroundingType { + // Default, unspecified setting. This is the same as disabled. + WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + + // Web grounding is disabled. + WEB_GROUNDING_TYPE_DISABLED = 1; + + // Grounding with Google Search is enabled. + WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + + // Grounding with Enterprise Web Search is enabled. + WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + } + // Immutable. Resource name of the assistant. // Format: // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` // // It must be a UTF-8 encoded string with a length limit of 1024 characters. string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The assistant display name. + // + // It must be a UTF-8 encoded string with a length limit of 128 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for additional information. Expected to be shown on + // the configuration UI, not to the users of the assistant. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for the generation of the assistant response. + GenerationConfig generation_config = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of web grounding to use. + WebGroundingType web_grounding_type = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field controls the default web grounding toggle for end + // users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` + // or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is + // set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` + // or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web + // grounding enabled by default on UI. If true, grounding toggle will be + // disabled by default on UI. End users can still enable web grounding in + // the UI if web grounding is enabled. + bool default_web_grounding_toggle_off = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Note: not implemented yet. Use + // [enabled_actions][google.cloud.discoveryengine.v1.Assistant.enabled_actions] + // instead. The enabled tools on this assistant. The keys are connector name, + // for example + // "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector + // The values consist of admin enabled tools towards the connector + // instance. Admin can selectively enable multiple tools on any of the + // connector instances that they created in the project. For example + // {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, + // "transferTicket")], + // "gmail1ConnectorName": [(toolId3, "sendEmail"),..] } + map enabled_tools = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Customer policy for the assistant. + CustomerPolicy customer_policy = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Represents the time when this Assistant was created. + google.protobuf.Timestamp create_time = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the time when this Assistant was most recently + // updated. + google.protobuf.Timestamp update_time = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant_service.proto index c4de4eb586b6..0546a129b30c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/assistant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,8 +21,11 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1/assist_answer.proto"; +import "google/cloud/discoveryengine/v1/assistant.proto"; import "google/cloud/discoveryengine/v1/search_service.proto"; import "google/cloud/discoveryengine/v1/session.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; @@ -37,7 +40,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service AssistantService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Assists the user with a query in a streaming fashion. rpc StreamAssist(StreamAssistRequest) returns (stream StreamAssistResponse) { @@ -46,6 +52,48 @@ service AssistantService { body: "*" }; } + + // Creates an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + rpc CreateAssistant(CreateAssistantRequest) returns (Assistant) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/assistants" + body: "assistant" + }; + } + + // Deletes an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + rpc DeleteAssistant(DeleteAssistantRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an [Assistant][google.cloud.discoveryengine.v1.Assistant] + rpc UpdateAssistant(UpdateAssistantRequest) returns (Assistant) { + option (google.api.http) = { + patch: "/v1/{assistant.name=projects/*/locations/*/collections/*/engines/*/assistants/*}" + body: "assistant" + }; + option (google.api.method_signature) = "assistant,update_mask"; + } + + // Gets an [Assistant][google.cloud.discoveryengine.v1.Assistant]. + rpc GetAssistant(GetAssistantRequest) returns (Assistant) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all [Assistant][google.cloud.discoveryengine.v1.Assistant]s under an + // [Engine][google.cloud.discoveryengine.v1.Engine]. + rpc ListAssistants(ListAssistantsRequest) returns (ListAssistantsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/assistants" + }; + option (google.api.method_signature) = "parent"; + } } // User metadata of the request. @@ -125,8 +173,10 @@ message StreamAssistRequest { // Optional. Specification of the web grounding tool. // If field is present, enables grounding with web search. Works only if // [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] - // is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or - // [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][]. + // is + // [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + // or + // [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. WebGroundingSpec web_grounding_spec = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -208,6 +258,24 @@ message StreamAssistResponse { }]; } + // Represents a skill used during the assist call. + message InvokedSkill { + // The resource name of the skill. + string name = 1; + + // The display name of the skill. + string display_name = 2; + } + + // Describes an authentication error for a specific data connector. + message ConnectorAuthError { + // Resource name of the data connector that failed authentication. + string data_connector = 1; + + // Human-readable error message describing the auth failure. + string error_message = 2; + } + // Assist answer resource object containing parts of the assistant's final // answer for the user's query. // @@ -220,17 +288,166 @@ message StreamAssistResponse { // see if more parts are to be expected. While the state is `IN_PROGRESS`, the // [AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies] // field in each response will contain replies (reply fragments) to be - // appended to the ones received in previous responses. [AssistAnswer.name][] + // appended to the ones received in previous responses. + // [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] // won't be filled. // // If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response - // is the last response and [AssistAnswer.name][] will have a value. + // is the last response and + // [AssistAnswer.name][google.cloud.discoveryengine.v1.AssistAnswer.name] will + // have a value. AssistAnswer answer = 1; - // Session information. + // Session information. Only included in the final StreamAssistResponse of the + // response stream. SessionInfo session_info = 2; // A global unique ID that identifies the current pair of request and stream // of responses. Used for feedback and support. string assist_token = 4; + + // The tool names of the tools that were invoked. + repeated string invocation_tools = 8; + + // The skills executed during the turn. + repeated InvokedSkill invoked_skills = 10; + + // Per-connector authentication errors encountered during the request. + // Present when one or more connectors failed authentication but the + // request proceeded with the remaining connectors. + repeated ConnectorAuthError connector_auth_errors = 11; +} + +// Request for the +// [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1.AssistantService.CreateAssistant] +// method. +message CreateAssistantRequest { + // Required. The parent resource name. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Engine" + } + ]; + + // Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to + // create. + Assistant assistant = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become + // the final component of the + // [Assistant][google.cloud.discoveryengine.v1.Assistant]'s resource name. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // with a length limit of 63 characters. + string assistant_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the +// [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1.AssistantService.DeleteAssistant] +// method. +message DeleteAssistantRequest { + // Required. Resource name of + // [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + // + // If the caller does not have permission to delete the + // [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete + // does not exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Assistant" + } + ]; +} + +// Request message for the +// [AssistantService.GetAssistant][google.cloud.discoveryengine.v1.AssistantService.GetAssistant] +// method. +message GetAssistantRequest { + // Required. Resource name of + // [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Assistant" + } + ]; +} + +// Request message for the +// [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] +// method. +message ListAssistantsRequest { + // Required. The parent resource name. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Engine" + } + ]; + + // Maximum number of [Assistant][google.cloud.discoveryengine.v1.Assistant]s + // to return. If unspecified, defaults to 100. The maximum allowed value is + // 1000; anything above that will be coerced down to 1000. + int32 page_size = 2; + + // A page token + // [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token], + // received from a previous + // [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for the +// [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] +// method. +message ListAssistantsResponse { + // All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s. + repeated Assistant assistants = 1; + + // A token that can be sent as + // [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for the +// [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1.AssistantService.UpdateAssistant] +// method. +message UpdateAssistantRequest { + // Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to + // update. + // + // The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field + // is used to identify the + // [Assistant][google.cloud.discoveryengine.v1.Assistant] to update. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + // + // If the caller does not have permission to update the + // [Assistant][google.cloud.discoveryengine.v1.Assistant], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to update + // does not exist, a NOT_FOUND error is returned. + Assistant assistant = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + google.protobuf.FieldMask update_mask = 2; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/chunk.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/chunk.proto index 45457f50e26a..c493c6bd19d5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/chunk.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/chunk.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -47,6 +47,10 @@ message Chunk { // Title of the document. string title = 2; + // The mime type of the document. + // https://www.iana.org/assignments/media-types/media-types.xhtml. + string mime_type = 4; + // Data representation. // The structured JSON data for the document. It should conform to the // registered [Schema][google.cloud.discoveryengine.v1.Schema] or an diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/cmek_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/cmek_config_service.proto index 414e3d665f57..b9ce880d2285 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/cmek_config_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/cmek_config_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service CmekConfigService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Provisions a CMEK key for use in a location of a customer's project. // This method will also conduct location validation on the provided @@ -177,6 +179,10 @@ message CmekConfig { // The KMS key is soft deleted. Some cleanup policy will eventually be // applied. DELETED = 8; + + // The KMS key is expired, meaning the key has been disabled for 30+ days. + // The customer can call DeleteCmekConfig to change the state to DELETED. + EXPIRED = 9; } // States of NotebookLM. @@ -205,11 +211,15 @@ message CmekConfig { type: "cloudkms.googleapis.com/CryptoKeys" }]; - // KMS key version resource name which will be used to encrypt resources + // Output only. KMS key version resource name which will be used to encrypt + // resources // `/cryptoKeyVersions/{keyVersion}`. - string kms_key_version = 6 [(google.api.resource_reference) = { - type: "cloudkms.googleapis.com/CryptoKeyVersions" - }]; + string kms_key_version = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersions" + } + ]; // Output only. The states of the CmekConfig. State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection.proto new file mode 100644 index 000000000000..05d67f2afb8d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection.proto @@ -0,0 +1,58 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "CollectionProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Collection is a container for configuring resources and access to a set of +// DataStores. +message Collection { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Collection" + pattern: "projects/{project}/locations/{location}/collections/{collection}" + }; + + // Immutable. The full resource name of the Collection. + // Format: + // `projects/{project}/locations/{location}/collections/{collection_id}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The Collection display name. + // + // This field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp the + // [Collection][google.cloud.discoveryengine.v1.Collection] was created at. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection_service.proto new file mode 100644 index 000000000000..995ff5a952a0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/collection_service.proto @@ -0,0 +1,119 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "CollectionServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Service for managing +// [Collection][google.cloud.discoveryengine.v1.Collection]s. +service CollectionService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Deletes a [Collection][google.cloud.discoveryengine.v1.Collection]. + rpc DeleteCollection(DeleteCollectionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/collections/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.discoveryengine.v1.DeleteCollectionMetadata" + }; + } + + // Gets the IAM access control policy for a + // [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` + // error is returned if the resource does not exist. An empty policy is + // returned if the resource exists but does not have a policy set on it. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1/{resource=projects/*/locations/*/collections/*}:getIamPolicy" + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the IAM access control policy for a + // [Collection][google.cloud.discoveryengine.v1.Collection]. A `NOT_FOUND` + // error is returned if the resource does not exist. + // + // **Important:** When setting a policy directly on a Collection resource, + // the only recommended roles in the bindings are: + // `roles/discoveryengine.admin` + // `roles/discoveryengine.agentspaceAdmin` + // `roles/discoveryengine.viewer` + // `roles/discoveryengine.agentspaceViewer` + // `roles/discoveryengine.user` + // `roles/discoveryengine.agentspaceUser` + // Attempting to grant any other role will result in a warning in logging. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/collections/*}:setIamPolicy" + body: "*" + }; + option (google.api.method_signature) = "resource,policy"; + } +} + +// Request message for +// [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] +// method. +message DeleteCollectionRequest { + // Required. The full resource name of the Collection, in the format of + // `projects/{project}/locations/{location}/collections/{collection}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Collection" + } + ]; +} + +// Metadata related to the progress of the +// [CollectionService.UpdateCollection][] operation. This will be returned by +// the google.longrunning.Operation.metadata field. +message DeleteCollectionMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto index 6c3c048ad29b..9aeb6b1d79d3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; @@ -32,10 +33,6 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}" pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}" }; -option (google.api.resource_definition) = { - type: "discoveryengine.googleapis.com/Collection" - pattern: "projects/{project}/locations/{location}/collections/{collection}" -}; option (google.api.resource_definition) = { type: "discoveryengine.googleapis.com/Location" pattern: "projects/{project}/locations/{location}" @@ -49,12 +46,35 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/rankingConfigs/{ranking_config}" }; option (google.api.resource_definition) = { - type: "discoveryengine.googleapis.com/LicenseConfig" - pattern: "projects/{project}/locations/{location}/licenseConfigs/{license_config}" + type: "discoveryengine.googleapis.com/CompletionConfig" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/completionConfig" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/completionConfig" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/completionConfig" }; option (google.api.resource_definition) = { - type: "discoveryengine.googleapis.com/UserStore" - pattern: "projects/{project}/locations/{location}/userStores/{user_store}" + type: "discoveryengine.googleapis.com/BillingAccountLicenseConfig" + pattern: "billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config}" +}; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/Notebook" + pattern: "projects/{project}/locations/{location}/notebooks/{notebook}" +}; +option (google.api.resource_definition) = { + type: "networkservices.googleapis.com/AgentGateway" + pattern: "projects/{project}/locations/{location}/agentGateways/{agent_gateway}" +}; +option (google.api.resource_definition) = { + type: "modelarmor.googleapis.com/Template" + pattern: "projects/{project}/locations/{location}/templates/{template}" +}; +option (google.api.resource_definition) = { + type: "dlp.googleapis.com/ContentPolicy" + pattern: "organizations/{organization}/locations/{location}/contentPolicies/{content_policy}" + pattern: "projects/{project}/locations/{location}/contentPolicies/{content_policy}" +}; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" }; option (google.api.resource_definition) = { type: "healthcare.googleapis.com/FhirStore" @@ -108,6 +128,9 @@ enum SolutionType { // It's used for Generative chat engine only, the associated data stores // must enrolled with `SOLUTION_TYPE_CHAT` solution. SOLUTION_TYPE_GENERATIVE_CHAT = 4; + + // Used for AI Mode. + SOLUTION_TYPE_AI_MODE = 5; } // Defines a further subdivision of `SolutionType`. @@ -148,6 +171,78 @@ enum SearchAddOn { SEARCH_ADD_ON_LLM = 1; } +// Subscription tier information. +enum SubscriptionTier { + // Default value. + SUBSCRIPTION_TIER_UNSPECIFIED = 0; + + // Search tier. + // Search tier can access Vertex AI Search features and NotebookLM features. + SUBSCRIPTION_TIER_SEARCH = 1; + + // Gemini Enterprise Plus tier. + SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT = 2; + + // NotebookLM tier. + // NotebookLM is a subscription tier can only access NotebookLM features. + SUBSCRIPTION_TIER_NOTEBOOK_LM = 3; + + // Gemini Frontline worker tier. + SUBSCRIPTION_TIER_FRONTLINE_WORKER = 4; + + // Gemini Business Starter tier. + SUBSCRIPTION_TIER_AGENTSPACE_STARTER = 10; + + // Gemini Business tier. + SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS = 6; + + // Gemini Enterprise Standard tier. + SUBSCRIPTION_TIER_ENTERPRISE = 7; + + // Gemini Enterprise Standard tier for emerging markets. + SUBSCRIPTION_TIER_ENTERPRISE_EMERGING = 15; + + // Gemini Enterprise EDU tier. + SUBSCRIPTION_TIER_EDU = 8; + + // Gemini Enterprise EDU Pro tier. + SUBSCRIPTION_TIER_EDU_PRO = 9; + + // Gemini Enterprise EDU tier for emerging market only. + SUBSCRIPTION_TIER_EDU_EMERGING = 11; + + // Gemini Enterprise EDU Pro tier for emerging market. + SUBSCRIPTION_TIER_EDU_PRO_EMERGING = 12; + + // Gemini Frontline Starter tier. + SUBSCRIPTION_TIER_FRONTLINE_STARTER = 13; + + // Represents the Gemini Enterprise Consumption-only tier: $0 subscription + // billed purely on usage (PAYG). + SUBSCRIPTION_TIER_CONSUMPTION_ONLY = 16; + + // Gemini Enterprise EDU tier for government in emerging markets. + SUBSCRIPTION_TIER_EDU_GOV_EMERGING = 17; +} + +// Subscription term. +enum SubscriptionTerm { + // Default value, do not use. + SUBSCRIPTION_TERM_UNSPECIFIED = 0; + + // 1 month. + SUBSCRIPTION_TERM_ONE_MONTH = 1; + + // 1 year. + SUBSCRIPTION_TERM_ONE_YEAR = 2; + + // 3 years. + SUBSCRIPTION_TERM_THREE_YEARS = 3; + + // Custom term. Must set the end_date. + SUBSCRIPTION_TERM_CUSTOM = 6; +} + // A floating point interval. message Interval { // The lower bound of the interval. If neither of the min fields are @@ -206,6 +301,18 @@ message CustomAttribute { // Information of an end user. message UserInfo { + // Precise location info with multiple representation options. + message PreciseLocation { + oneof location { + // Optional. Location represented by a latitude/longitude point. + google.type.LatLng point = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Location represented by a natural language address. Will later be + // geocoded and converted to either a point or a polygon. + string address = 2; + } + } + // Highly recommended for logged-in users. Unique identifier for logged-in // user, such as a user name. Don't set for anonymous users. // @@ -217,6 +324,10 @@ message UserInfo { // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + // + // Represents an opaque ID to the Search API. The Search API doesn't + // interpret the value in any way. This field is used to associate events + // with a user across sessions if the events are being uploaded. string user_id = 1; // User agent as included in the HTTP header. @@ -234,6 +345,14 @@ message UserInfo { // Optional. IANA time zone, e.g. Europe/Budapest. string time_zone = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Precise location of the user. + // It is used in Custom Ranking to calculate the distance between the user and + // the relevant documents. + PreciseLocation precise_location = 4 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; } // Double list. @@ -242,6 +361,34 @@ message DoubleList { repeated double values = 1; } +// Identity Provider Config. +message IdpConfig { + // Third party IDP Config. + message ExternalIdpConfig { + // Workforce pool name. + // Example: "locations/global/workforcePools/pool_id" + string workforce_pool_name = 1; + } + + // Identity Provider Type. + enum IdpType { + // Default value. ACL search not enabled. + IDP_TYPE_UNSPECIFIED = 0; + + // Google 1P provider. + GSUITE = 1; + + // Third party provider. + THIRD_PARTY = 2; + } + + // Identity provider type configured. + IdpType idp_type = 1; + + // External Identity provider config. + ExternalIdpConfig external_idp_config = 2; +} + // Principal identifier of a user or a group. message Principal { // Union field principal. Principal can be a user or a group. @@ -281,6 +428,15 @@ message HealthcareFhirConfig { // indexing mode which is slower but more capable of handling larger // volume. bool enable_static_indexing_for_batch_ingestion = 2; + + // Optional. Names of the Group resources to use as a basis for the initial + // patient filter, in format + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`. + // The filter group must be a FHIR resource name of + // type Group, and the filter will be constructed from the direct members of + // the group which are Patient resources. + repeated string initial_filter_groups = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Promotion proto includes uri and other helping information to display the @@ -317,3 +473,59 @@ message SearchLinkPromotion { // This flag is used for basic site search only. bool enabled = 5 [(google.api.field_behavior) = OPTIONAL]; } + +// Configuration for the session. +message SessionConfig { + // Defines the TTL for sessions. + message SessionTtl { + // TTL can be either a number of days or indefinite. + oneof time_info { + // Defines the number of days for session TTL. + int32 days = 1; + } + } + + // Session management policy that defines who will manage the + // session. + enum SessionManagementPolicy { + // Default value. + SESSION_MANAGEMENT_POLICY_UNSPECIFIED = 0; + + // The session will be managed by the customer. + NOT_MANAGED = 1; + + // Sessions multi-tenancy will be controlled by Google using 1P or 3P + // identity providers. + VERTEX_AI_MANAGED = 2; + } + + // Optional. Session management policy that defines who will manage the + // session. + SessionManagementPolicy session_management_policy = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The TTL for the session. If unset, the default value is 60 days. + SessionTtl session_ttl = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Contains the data protection policy config for a DataStore or a connector. +message DataProtectionPolicy { + // Specifies a Sensitive Data Protection + // (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) + // policy. + message SensitiveDataProtectionPolicy { + // Optional. Specifies the resource name of the Sensitive Data Protection + // content policy. + string policy = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/ContentPolicy" + } + ]; + } + + // Optional. Specifies the sensitive data protection policy for the connector + // source. + SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion.proto index e21c1eb7679c..13e6780b1c17 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto index d05d30929aab..877557408650 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/completion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,9 +20,12 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; +import "google/cloud/discoveryengine/v1/document.proto"; import "google/cloud/discoveryengine/v1/import_config.proto"; import "google/cloud/discoveryengine/v1/purge_config.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; @@ -37,7 +40,11 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service CompletionService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud_search.query," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Completes the specified user input with keyword suggestions. rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { @@ -49,6 +56,23 @@ service CompletionService { }; } + // Completes the user input with advanced keyword suggestions. + rpc AdvancedCompleteQuery(AdvancedCompleteQueryRequest) + returns (AdvancedCompleteQueryResponse) { + option (google.api.http) = { + post: "/v1/{completion_config=projects/*/locations/*/dataStores/*/completionConfig}:completeQuery" + body: "*" + additional_bindings { + post: "/v1/{completion_config=projects/*/locations/*/collections/*/dataStores/*/completionConfig}:completeQuery" + body: "*" + } + additional_bindings { + post: "/v1/{completion_config=projects/*/locations/*/collections/*/engines/*/completionConfig}:completeQuery" + body: "*" + } + }; + } + // Imports all // [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] // for a DataStore. @@ -163,10 +187,10 @@ message CompleteQueryRequest { // * `search-history` is the default model for site search dataStores. string query_model = 3; - // A unique identifier for tracking visitors. For example, this could be - // implemented with an HTTP cookie, which should be able to uniquely identify - // a visitor on a single device. This unique identifier should not change if - // the visitor logs in or out of the website. + // Optional. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. // // This field should NOT have a fixed value such as `unknown_visitor`. // @@ -177,7 +201,7 @@ message CompleteQueryRequest { // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - string user_pseudo_id = 4; + string user_pseudo_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Indicates if tail suggestions should be returned if there are no // suggestions that match the full query. Even if set to true, if there are @@ -212,3 +236,303 @@ message CompleteQueryResponse { // must be true and there must be no suggestions that match the full query. bool tail_match_triggered = 2; } + +// Request message for +// [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1.CompletionService.AdvancedCompleteQuery] +// method. +// . +message AdvancedCompleteQueryRequest { + // Specification to boost suggestions based on the condition of the + // suggestion. + message BoostSpec { + // Boost applies to suggestions which match a condition. + message ConditionBoostSpec { + // An expression which specifies a boost condition. The syntax is the same + // as [filter expression + // syntax](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax). + // Currently, the only supported condition is a list of BCP-47 lang codes. + // + // Example: + // + // * To boost suggestions in languages `en` or `fr`: + // `(lang_code: ANY("en", "fr"))` + string condition = 1; + + // Strength of the boost, which should be in [-1, 1]. + // Negative boost means demotion. Default is 0.0. + // + // Setting to 1.0 gives the suggestions a big promotion. However, it does + // not necessarily mean that the top result will be a boosted suggestion. + // + // Setting to -1.0 gives the suggestions a big demotion. However, other + // suggestions that are relevant might still be shown. + // + // Setting to 0.0 means no boost applied. The boosting condition is + // ignored. + float boost = 2; + } + + // Condition boost specifications. If a suggestion matches multiple + // conditions in the specifications, boost values from these specifications + // are all applied and combined in a non-linear way. Maximum number of + // specifications is 20. + // + // Note: Currently only support language condition boost. + repeated ConditionBoostSpec condition_boost_specs = 1; + } + + // Specification of each suggestion type. + message SuggestionTypeSpec { + // Optional. Suggestion type. + SuggestionType suggestion_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of suggestions to return for each suggestion + // type. + int32 max_suggestions = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Suggestion type to return. + enum SuggestionType { + // Default value. + SUGGESTION_TYPE_UNSPECIFIED = 0; + + // Returns query suggestions. + QUERY = 1; + + // Returns people suggestions. + PEOPLE = 2; + + // Returns content suggestions. + CONTENT = 3; + + // Returns recent search suggestions. + RECENT_SEARCH = 4; + + // Returns Google Workspace suggestions. + GOOGLE_WORKSPACE = 5; + } + + // Required. The completion_config of the parent dataStore or engine resource + // name for which the completion is performed, such as + // `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig` + // `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`. + string completion_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/CompletionConfig" + } + ]; + + // Required. The typeahead input used to fetch suggestions. Maximum length is + // 128 characters. + // + // The query can not be empty for most of the suggestion types. If it is + // empty, an `INVALID_ARGUMENT` error is returned. The exception is when the + // suggestion_types contains only the type `RECENT_SEARCH`, the query can + // be an empty string. The is called "zero prefix" feature, which returns + // user's recently searched queries given the empty query. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Specifies the autocomplete query model, which only applies to the QUERY + // SuggestionType. This overrides any model specified in the Configuration > + // Autocomplete section of the Cloud console. Currently supported values: + // + // * `document` - Using suggestions generated from user-imported documents. + // * `search-history` - Using suggestions generated from the past history of + // [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] + // API calls. Do not use it when there is no traffic for Search API. + // * `user-event` - Using suggestions generated from user-imported search + // events. + // * `document-completable` - Using suggestions taken directly from + // user-imported document fields marked as completable. + // + // Default values: + // + // * `document` is the default model for regular dataStores. + // * `search-history` is the default model for site search dataStores. + string query_model = 3; + + // Optional. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. + // + // This field should NOT have a fixed value such as `unknown_visitor`. + // + // This should be the same identifier as + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] + // and + // [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id]. + // + // The field must be a UTF-8 encoded string with a length limit of 128 + string user_pseudo_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information about the end user. + // + // This should be the same identifier information as + // [UserEvent.user_info][google.cloud.discoveryengine.v1.UserEvent.user_info] + // and + // [SearchRequest.user_info][google.cloud.discoveryengine.v1.SearchRequest.user_info]. + UserInfo user_info = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Indicates if tail suggestions should be returned if there are no + // suggestions that match the full query. Even if set to true, if there are + // suggestions that match the full query, those are returned and no + // tail suggestions are returned. + bool include_tail_suggestions = 5; + + // Optional. Specification to boost suggestions matching the condition. + BoostSpec boost_spec = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Suggestion types to return. If empty or unspecified, query + // suggestions are returned. Only one suggestion type is supported at the + // moment. + repeated SuggestionType suggestion_types = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of each suggestion type. + repeated SuggestionTypeSpec suggestion_type_specs = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Experiment ids for this request. + repeated string experiment_ids = 14 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1.CompletionService.AdvancedCompleteQuery] +// method. +message AdvancedCompleteQueryResponse { + // Suggestions as search queries. + message QuerySuggestion { + // The suggestion for the query. + string suggestion = 1; + + // The unique document field paths that serve as the source of this + // suggestion if it was generated from completable fields. + // + // This field is only populated for the document-completable model. + repeated string completable_field_paths = 2; + + // The name of the dataStore that this suggestion belongs to. + repeated string data_store = 3; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 4; + } + + // Suggestions as people. + message PersonSuggestion { + // Classifies the person by identity source and entity kind; GOOGLE_GROUP + // takes precedence for groups regardless of their identity source. + enum PersonType { + // Default value. + PERSON_TYPE_UNSPECIFIED = 0; + + // The suggestion is from a GOOGLE_IDENTITY source. + CLOUD_IDENTITY = 1; + + // The suggestion is from a THIRD_PARTY_IDENTITY source. + THIRD_PARTY_IDENTITY = 2; + + // The suggestion is a group (e.g. a Google Group), not an individual. + GOOGLE_GROUP = 3; + } + + // The suggestion for the query. + string suggestion = 1; + + // The type of the person. + PersonType person_type = 2; + + // The document data snippet in the suggestion. Only a subset of fields is + // populated. + Document document = 4; + + // The name of the dataStore that this suggestion belongs to. + string data_store = 5 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + }]; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 6; + + // The photo uri of the person suggestion. + string display_photo_uri = 7; + + // The destination uri of the person suggestion. + string destination_uri = 8; + } + + // Suggestions as content. + message ContentSuggestion { + // The type of the content returned for content suggestions. + enum ContentType { + // Default value. + CONTENT_TYPE_UNSPECIFIED = 0; + + // The suggestion is from a Google Workspace source. + GOOGLE_WORKSPACE = 1; + + // The suggestion is from a third party source. + THIRD_PARTY = 2; + } + + // The suggestion for the query. + string suggestion = 1; + + // The type of the content suggestion. + ContentType content_type = 2; + + // The document data snippet in the suggestion. Only a subset of fields will + // be populated. + Document document = 4; + + // The name of the dataStore that this suggestion belongs to. + string data_store = 5 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + }]; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 6; + + // The icon uri of the content suggestion. + string icon_uri = 7; + + // The destination uri of the content suggestion. + string destination_uri = 8; + } + + // Suggestions from recent search history. + message RecentSearchSuggestion { + // The suggestion for the query. + string suggestion = 1; + + // The time when this recent rearch happened. + google.protobuf.Timestamp recent_search_time = 2; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 3; + } + + // Results of the matched query suggestions. The result list is ordered and + // the first result is a top suggestion. + repeated QuerySuggestion query_suggestions = 1; + + // True if the returned suggestions are all tail suggestions. + // + // For tail matching to be triggered, include_tail_suggestions in the request + // must be true and there must be no suggestions that match the full query. + bool tail_match_triggered = 2; + + // Results of the matched people suggestions. The result list is ordered and + // the first result is the top suggestion. + repeated PersonSuggestion people_suggestions = 3; + + // Results of the matched content suggestions. The result list is ordered and + // the first result is the top suggestion. + repeated ContentSuggestion content_suggestions = 4; + + // Results of the matched "recent search" suggestions. The result list is + // ordered and the first result is the top suggestion. + repeated RecentSearchSuggestion recent_search_suggestions = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto index b6714b652530..14f1f182d164 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -270,9 +270,6 @@ message Control { [(google.api.field_behavior) = REQUIRED]; } - // Actions are restricted by Vertical and Solution - // - // Required. oneof action { // Defines a boost-type control BoostAction boost_action = 6; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto index 4f88e2b2fb02..65b644d3d401 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/control_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service ControlService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a Control. // diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto index 25e32ef8ccf8..1d7e33e74554 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto index bbab0c8ae2f9..bb5599a436d5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/conversational_search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,7 +41,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service ConversationalSearchService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Converses a conversation. rpc ConverseConversation(ConverseConversationRequest) @@ -924,6 +926,12 @@ message AnswerQueryRequest { // `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, // or // `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + // + // Or the resource name of the agent engine serving config, such as: + // `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + // (use when `enable_agent_invocation` set to true, and you have custom + // `AI_MODE` agent engine configured) + // // This field is used to identify the serving configuration name, set // of models used to make the search. string serving_config = 1 [ @@ -1061,6 +1069,14 @@ message CreateSessionRequest { // Required. The session to create. Session session = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID to use for the session, which will become the final + // component of the session's resource name. + // + // This value should be 1-63 characters, and valid characters + // are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will + // be generated. + string session_id = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request for UpdateSession method. @@ -1126,7 +1142,9 @@ message ListSessionsRequest { string page_token = 3; // A comma-separated list of fields to filter by, in EBNF grammar. + // // The supported fields are: + // // * `user_pseudo_id` // * `state` // * `display_name` @@ -1135,29 +1153,36 @@ message ListSessionsRequest { // * `labels` // * `create_time` // * `update_time` + // * `collaborative_project` // // Examples: - // "user_pseudo_id = some_id" - // "display_name = \"some_name\"" - // "starred = true" - // "is_pinned=true AND (NOT labels:hidden)" - // "create_time > \"1970-01-01T12:00:00Z\"" + // + // * `user_pseudo_id = some_id` + // * `display_name = "some_name"` + // * `starred = true` + // * `is_pinned=true AND (NOT labels:hidden)` + // * `create_time > "1970-01-01T12:00:00Z"` + // * `collaborative_project = + // "projects/123/locations/global/collections/default_collection/engines/" + // "default_engine/collaborative_projects/cp1"` string filter = 4; // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. + // // Supported fields: // // * `update_time` // * `create_time` // * `session_name` // * `is_pinned` + // * `display_name` // // Example: // - // * "update_time desc" - // * "create_time" - // * "is_pinned desc,update_time desc": list sessions by is_pinned first, then + // * `update_time desc` + // * `create_time` + // * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then // by update_time. string order_by = 5; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto index 85fed83351fe..4612f7c332a2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/custom_tuning_model.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector.proto new file mode 100644 index 000000000000..4babfc0835a6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector.proto @@ -0,0 +1,930 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; +import "google/cloud/discoveryengine/v1/schema.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/type/datetime.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "DataConnectorProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// The type of connector. +// New values may be added to this enum in the future. +enum ConnectorType { + // Default value. + CONNECTOR_TYPE_UNSPECIFIED = 0; + + // Third party connector to connector to third party application. + THIRD_PARTY = 1; + + // Data connector connects between FHIR store and VAIS datastore. + GCP_FHIR = 2; + + // Big query connector. + BIG_QUERY = 3; + + // Google Cloud Storage connector. + GCS = 4; + + // Gmail connector. + GOOGLE_MAIL = 5; + + // Google Calendar connector. + GOOGLE_CALENDAR = 6; + + // Google Drive connector. + GOOGLE_DRIVE = 7; + + // Native Cloud Identity connector for people search powered by People API. + NATIVE_CLOUD_IDENTITY = 8; + + // Federated connector, it is a third party connector that doesn't ingestion + // data, and search is powered by third party application's API. + THIRD_PARTY_FEDERATED = 9; + + // Connector utilized for End User Authentication features. + THIRD_PARTY_EUA = 10; + + // Google Cloud NetApp Volumes connector. + GCNV = 11; + + // Google Chat connector. + GOOGLE_CHAT = 12; + + // Google Sites connector. + GOOGLE_SITES = 13; + + // Remote MCP based connector. + REMOTE_MCP = 14; + + // Google Workspace connector. + GOOGLE_WORKSPACE = 15; +} + +// Manages the connection to external data sources for all data stores grouped +// under a [Collection][google.cloud.discoveryengine.v1.Collection]. It's a +// singleton resource of +// [Collection][google.cloud.discoveryengine.v1.Collection]. The initialization +// is only supported through +// [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector] +// method, which will create a new +// [Collection][google.cloud.discoveryengine.v1.Collection] and initialize its +// [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. +message DataConnector { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/DataConnector" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataConnector" + }; + + // Represents an entity in the data source. For example, the `Account` object + // in Salesforce. + message SourceEntity { + // The parameters for the entity to facilitate data ingestion. + // E.g. for BigQuery connectors: + // + // * Key: `document_id_column` + // * Value: type STRING. The value of the column ID. + oneof entity_params { + // The parameters for the entity to facilitate data ingestion in + // structured json format. + google.protobuf.Struct params = 4; + + // The parameters for the entity to facilitate data ingestion in json + // string format. + string json_params = 10; + } + + // The name of the entity. Supported values by data source: + // + // * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`, + // `Contract`, `Campaign` + // * Jira: `Issue` + // * Confluence: `Content`, `Space` + string entity_name = 1; + + // Attributes for indexing. + // Key: Field name. + // Value: The key property to map a field to, such as `title`, and + // `description`. Supported key properties: + // + // * `title`: The title for data record. This would be displayed on search + // results. + // * `description`: The description for data record. This would be displayed + // on search results. + map key_property_mappings = 2; + + // Output only. The full resource name of the associated data store for the + // source entity. Format: + // `projects/*/locations/*/collections/*/dataStores/*`. + // When the connector is initialized by the + // [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector] + // method, a [DataStore][google.cloud.discoveryengine.v1.DataStore] is + // automatically created for each source entity. + string data_store = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Optional. The start schema to use for the + // [DataStore][google.cloud.discoveryengine.v1.DataStore] created from this + // SourceEntity. If unset, a default vertical specialized schema will be + // used. + // + // This field is only used by + // [SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector] + // API, and will be ignored if used in other APIs. This field will be + // omitted from all API responses including + // [GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector] + // API. To retrieve a schema of a + // [DataStore][google.cloud.discoveryengine.v1.DataStore], use + // [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] + // API instead. + // + // The provided schema will be validated against certain rules on schema. + // Learn more from [this + // doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + Schema starting_schema = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for `HEALTHCARE_FHIR` vertical. + HealthcareFhirConfig healthcare_fhir_config = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Any params and credentials used specifically for EUA connectors. + message EndUserConfig { + // Authentication configuration for EUA connectors. + // + // Both arms hold customer-supplied auth parameters, including PEM private + // keys. Without a redacting semantic type, `DebugString()` prints the key + // material in full. + oneof auth_config { + // Optional. Any authentication parameters specific to EUA connectors. + google.protobuf.Struct auth_params = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Any authentication parameters specific to EUA connectors in + // json string format. + string json_auth_params = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Any additional parameters needed for EUA. + google.protobuf.Struct additional_params = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tenant project the connector is connected to. + Tenant tenant = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Any params and credentials used specifically for hybrid connectors + // supporting FEDERATED mode. + message FederatedConfig { + // Authentication configuration for FEDERATED connectors. + oneof auth_config { + // Optional. Any authentication parameters specific to FEDERATED + // connectors. + google.protobuf.Struct auth_params = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Any authentication parameters specific to FEDERATED + // connectors in json string format. + string json_auth_params = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Any additional parameters needed for FEDERATED. + google.protobuf.Struct additional_params = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The configuration for realtime sync to store additional params for + // realtime sync. + message RealtimeSyncConfig { + // Streaming error details. + message StreamingError { + // Broad types of streaming errors. + enum StreamingErrorReason { + // Streaming error reason unspecified. + STREAMING_ERROR_REASON_UNSPECIFIED = 0; + + // Some error occurred while setting up resources for realtime sync. + STREAMING_SETUP_ERROR = 1; + + // Some error was encountered while running realtime sync for the + // connector. + STREAMING_SYNC_ERROR = 2; + + // Ingress endpoint is required when setting up realtime sync in private + // connectivity. + INGRESS_ENDPOINT_REQUIRED = 3; + } + + // Optional. Streaming error. + StreamingErrorReason streaming_error_reason = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Error details. + google.rpc.Status error = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Webhook url for the connector to specify additional params for + // realtime sync. + string webhook_uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID of the Secret Manager secret used for webhook secret. + string realtime_sync_secret = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Streaming error details. + StreamingError streaming_error = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // User-facing metadata for the connector, shown on the connector detail + // page (title, description, short_description, author, note). + message ConnectorMetadata { + // Optional. Display title of the connector. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Human-readable description of the connector, shown on the + // connector detail page. One connector has a single description. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Short, subtitle-length description of the connector (e.g. shown + // beneath the connector name in list and detail views). + string short_description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The party that authored the connector, e.g. "Google" or a + // third-party provider name. Lets end users see who authored a connector. + string author = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Free-form, multi-line note about the connector's capabilities + // or a custom note that can be set for the connector. + string note = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // The state of connector. + enum State { + // Default value. + STATE_UNSPECIFIED = 0; + + // The connector is being set up. + CREATING = 1; + + // The connector is successfully set up and awaiting next sync run. + ACTIVE = 2; + + // The connector is in error. The error details can be found in + // [DataConnector.errors][google.cloud.discoveryengine.v1.DataConnector.errors]. + // If the error is unfixable, the + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] can be + // deleted by + // [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + // API. + FAILED = 3; + + // The connector is actively syncing records from the data source. + RUNNING = 4; + + // The connector has completed a sync run, but encountered non-fatal errors. + WARNING = 5; + + // Connector initialization failed. Potential causes include runtime errors + // or issues in the asynchronous pipeline, preventing the request from + // reaching downstream services (except for some connector types). + INITIALIZATION_FAILED = 6; + + // Connector is in the process of an update. + UPDATING = 7; + } + + // Defines the data synchronization mode supported by the data connector. + enum SyncMode { + // The connector will sync data periodically based on the refresh_interval. + // Use it with auto_run_disabled to pause the periodic sync, or indicate a + // one-time sync. + PERIODIC = 0; + + // The data will be synced in real time. + STREAMING = 1; + + // Connector that doesn't ingest data will have this value + UNSPECIFIED = 2; + } + + // The modes enabled for this connector. INGESTION, ACTIONS, FEDERATED, OR EUA + enum ConnectorMode { + // Connector mode unspecified. + CONNECTOR_MODE_UNSPECIFIED = 0; + + // Connector utilized for data ingestion. + DATA_INGESTION = 1; + + // Connector utilized for actions. + ACTIONS = 2; + + // Connector utilized for federated search. + FEDERATED = 3; + + // Connector utilized for End User Authentication. + EUA = 4; + + // Hybrid connector utilized for federated search and End User + // Authentication. + FEDERATED_AND_EUA = 5; + } + + // User actions that must be completed before the connector can + // start syncing data. + enum BlockingReason { + // Default value. + BLOCKING_REASON_UNSPECIFIED = 0; + + // Connector requires customer to allowlist static IPs. + ALLOWLIST_STATIC_IP = 1; + + // Connector requires customer to allowlist our project in their service + // attachment. + ALLOWLIST_IN_SERVICE_ATTACHMENT = 2; + + // Connector requires customer to allowlist service account in their + // project. + ALLOWLIST_SERVICE_ACCOUNT = 3; + } + + // Params needed to access the source in the format of (Key, Value) pairs. + // String values with the format + // `projects/*/[locations/*/]secrets/*/versions/*` will be read from Secret + // Manager. + // + // Required parameters for all data sources: + // + // * Key: `instance_uri` + // * Value: type STRING. The uri to access the data source. + // + // Required parameters for sources that support OAUTH, i.e. `salesforce`: + // + // * Key: `client_id` + // * Value: type STRING. The client ID for the third party service provider to + // identify your application. + // * Key: `client_secret` + // * Value:type STRING. The client secret generated by the third party + // authorization server. + // * Key: `access_token` + // * Value: type STRING. OAuth token for UCS to access to the protected + // resource. + // * Key: `refresh_token` + // * Value: type STRING. OAuth refresh token for UCS to obtain a new access + // token without user interaction. + // + // Required parameters for sources that support basic API token auth, i.e. + // `jira`, `confluence`: + // + // * Key: `user_account` + // * Value: type STRING. The username or email with the source. + // * Key: `api_token` + // * Value: type STRING. The API token generated for the source account, that + // is used for authenticating anywhere where you would have used a password. + // + // Example: + // + // ```json + // { + // "instance_uri": "https://xxx.atlassian.net", + // "user_account": "xxxx.xxx@xxx.com", + // "api_token": "test-token" + // } + // ``` + // Optional parameter to specify the authorization type to use for multiple + // authorization types support: + // + // * Key: `auth_type` + // * Value: type STRING. The authorization type for the data source. + // Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, + // `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, + // `API_TOKEN`, `FEDERATED_CREDENTIAL`, `NO_AUTH`. + oneof data_connector_params { + // Required data connector parameters in structured json format. + google.protobuf.Struct params = 4; + + // Required data connector parameters in json string format. + string json_params = 43; + } + + // Identifier. The full resource name of the Data Connector. + // Format: + // `projects/*/locations/*/collections/*/dataConnector`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. State of the connector. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The identifier for the data source. + // For the full, up-to-date list of supported connectors and their values, + // see + // [Connect a third-party data + // source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage). + string data_source = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies keys to be removed from the 'params' field. + // This is only active when 'params' is included in the 'update_mask' + // in an UpdateDataConnectorRequest. + // Deletion takes precedence if a key is both in 'remove_param_keys' + // and present in the 'params' field of the request. + repeated string remove_param_keys = 38 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The refresh interval for data sync. If duration is set to 0, the + // data will be synced in real time. The streaming feature is not supported + // yet. The minimum is 30 minutes and maximum is 7 days. When the refresh + // interval is set to the same value as the incremental refresh interval, + // incremental sync will be disabled. + google.protobuf.Duration refresh_interval = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Defines the scheduled time for the next data synchronization. This field + // requires hour , minute, and time_zone from the + // [IANA Time Zone Database](https://www.iana.org/time-zones). This is + // utilized when the data connector has a refresh interval greater than 1 day. + // When the hours or minutes are not specified, we will assume a sync time of + // 0:00. The user must provide a time zone to avoid ambiguity. + google.type.DateTime next_sync_time = 22; + + // List of entities from the connected data source to ingest. + repeated SourceEntity entities = 6; + + // Output only. Timestamp the + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was created + // at. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The most recent timestamp when this + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was paused, + // affecting all functionalities such as data synchronization. + // Pausing a connector has the following effects: + // + // - All functionalities, including data synchronization, are halted. + // - Any ongoing data synchronization job will be canceled. + // - No future data synchronization runs will be scheduled nor can be + // triggered. + google.protobuf.Timestamp latest_pause_time = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For periodic connectors only, the last time a data sync was + // completed. + google.protobuf.Timestamp last_sync_time = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp the + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] was last + // updated. + google.protobuf.Timestamp update_time = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The errors from initialization or from the latest connector + // run. + repeated google.rpc.Status errors = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The data synchronization mode supported by the data connector. + SyncMode sync_mode = 9; + + // Input only. The KMS key to be used to protect the DataStores managed by + // this connector. + // + // Must be set for requests that need to comply with CMEK Org Policy + // protections. + // + // If this field is set and processed successfully, the DataStores created by + // this connector will be protected by the KMS key. + string kms_key_name = 32 [(google.api.field_behavior) = INPUT_ONLY]; + + // Optional. Any target destinations used to connect to third-party services. + repeated DestinationConfig destination_configs = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the action connector. This reflects whether the + // action connector is initializing, active or has encountered errors. + State action_state = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Action configurations to make the connector support actions. + ActionConfig action_config = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Any params and credentials used specifically for EUA connectors. + EndUserConfig end_user_config = 30 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Any params and credentials used specifically for hybrid + // connectors supporting FEDERATED mode. This field should only be set if the + // connector is a hybrid connector and we want to enable FEDERATED mode. + FederatedConfig federated_config = 41 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The modes enabled for this connector. Default state is + // CONNECTOR_MODE_UNSPECIFIED. + repeated ConnectorMode connector_modes = 31 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether customer has enabled static IP addresses for this + // connector. + bool static_ip_enabled = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The static IP addresses used by this connector. + repeated string static_ip_addresses = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The static IP addresses used by this connector for OAuth APIs + // (e.g. end user authentication). These are surfaced separately from + // `static_ip_addresses` so that customers can apply granular firewall + // settings for OAuth endpoints. Only populated for connectors that have + // static IP enabled and are used for actions and/or federated search. + repeated string oauth_static_ip_addresses = 50 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. User actions that must be completed before the connector can + // start syncing data. + repeated BlockingReason blocking_reasons = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The configuration for the identity data synchronization runs. This contains + // the refresh interval to sync the Access Control List information + // for the documents ingested by this connector. + IdentityScheduleConfig identity_schedule_config = 23; + + // Output only. The tenant project ID associated with private connectivity + // connectors. This project must be allowlisted by in order for the connector + // to function. + string private_connectivity_project_id = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The configuration for establishing a BAP connection. + BAPConfig bap_config = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The type of connector. Each source can only map to one type. + // For example, salesforce, confluence and jira have THIRD_PARTY connector + // type. It is not mutable once set by system. + ConnectorType connector_type = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. real-time sync state + State realtime_state = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The connector level alert config. + repeated AlertPolicyConfig alert_policy_configs = 28 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The configuration for realtime sync. + RealtimeSyncConfig realtime_sync_config = 29 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the connector will be created with an ACL config. + // Currently this field only affects Cloud Storage and BigQuery connectors. + bool acl_enabled = 33 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the END USER AUTHENTICATION connector is created in SaaS. + bool create_eua_saas = 34 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the connector is disabled for auto run. It can + // be used to pause periodical and real time sync. Update: with the + // introduction of incremental_sync_disabled, auto_run_disabled is used to + // pause/disable only full syncs + bool auto_run_disabled = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether incremental syncs are paused for this + // connector. This is independent of auto_run_disabled. Applicable to only 3P + // connectors. When the refresh interval is set to the same value as the + // incremental refresh interval, incremental sync will be disabled, i.e. set + // to true. + bool incremental_sync_disabled = 35 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The refresh interval specifically for incremental data syncs. If + // unset, incremental syncs will use the default from env, set to 3hrs. The + // minimum is 30 minutes and maximum is 7 days. Applicable to only 3P + // connectors. When the refresh interval is + // set to the same value as the incremental refresh interval, incremental + // sync will be disabled. + google.protobuf.Duration incremental_refresh_interval = 36 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If the connector is a hybrid connector, determines whether + // ingestion is enabled and appropriate resources are provisioned during + // connector creation. If the connector is not a hybrid connector, this field + // is ignored. + bool hybrid_ingestion_disabled = 40 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the data protection policy for the connector. + DataProtectionPolicy data_protection_policy = 44 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The list of FQDNs of the data connector can egress to. This + // includes both FQDN derived from the customer provided instance URL and + // default per connector type FQDNs. + repeated string egress_fqdns = 45 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the connector is created with VPC-SC enabled. + bool vpcsc_enabled = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The dynamic tools fetched for this connector. + repeated DynamicTool dynamic_tools = 47 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The configuration for establishing a CLI connection. + CliConfig cli_config = 48 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, this value instead of `data_source` is used to fetch the + // corresponding connector source. + string connector_source_id = 49 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. User-facing, version-independent label for this + // connector. May be shared by multiple connectors under the same + // (project, location, collection, data_source); tag-based lookup returns + // the one with the greatest create_time. + // + // Optional at Create time. If the caller omits `tag`, the server + // auto-derives one from the collection_id (falling back to data_source, + // else a time-based `t-` sentinel). The auto-derived tag is + // subject to the same immutability guarantee as a caller-supplied one, + // so callers who care about the exact tag value should provide it + // explicitly rather than relying on the server default. + // + // Agent Designer resolves connectors via (data_source, tag) when set, + // falling back to the legacy resource-name lookup when unset, so + // connectors created before the tag-write launch continue to work + // without a backfill. + string tag = 51 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. User-facing metadata for the connector. Populated from the + // connector's generated metadata / registry `ConnectorSource`. + ConnectorMetadata metadata = 52 [(google.api.field_behavior) = OPTIONAL]; +} + +// Defines target endpoints used to connect to third-party sources. +message DestinationConfig { + // Defines a target endpoint + message Destination { + // The endpoint destination. + oneof destination { + // Publicly routable host. + string host = 1; + } + + // Optional. Target port number accepted by the destination. + int32 port = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Additional parameters for this destination config. + oneof destination_config_params { + // Optional. Additional parameters for this destination config in structured + // json format. + google.protobuf.Struct params = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Additional parameters for this destination config in json string format. + string json_params = 4; + } + + // Optional. Unique destination identifier that is supported by the connector. + string key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The destinations for the corresponding key. + repeated Destination destinations = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Informations to support actions on the connector. +message ActionConfig { + // Stores a list of scopes. + message ScopeList { + // Optional. The list of scopes. + repeated string scopes = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Params needed to support actions in the format of (Key, Value) pairs. + // String values with the format + // `projects/*/[locations/*/]secrets/*/versions/*` will be read from Secret + // Manager. + // + // Required parameters for sources that support OAUTH, i.e. `gmail`, + // `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: + // + // * Key: `client_id` + // * Value: type STRING. The client ID for the service provider to + // identify your application. + // * Key: `client_secret` + // * Value:type STRING. The client secret generated by the application's + // authorization server. + oneof action_config_params { + // Optional. Action parameters in structured json format. + google.protobuf.Struct action_params = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Action parameters in json string format. + string json_action_params = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. The connector contains the necessary parameters and is + // configured to support actions. + bool is_action_configured = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The Service Directory resource name + // (projects/*/locations/*/namespaces/*/services/*) + // representing a VPC network endpoint used to connect to the data source's + // `instance_uri`, defined in + // [DataConnector.params][google.cloud.discoveryengine.v1.DataConnector.params]. + // + // Required when VPC Service Controls are enabled. + string service_name = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + + // Optional. Whether to use static secrets for the connector. If true, the + // secrets provided in the action_params will be ignored. + bool use_static_secrets = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to create a BAP connection for the connector. + bool create_bap_connection = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mapping from operation name to the list of scopes. Only be + // populated if there are user specified scopes. + map user_defined_scopes_mapping = 10 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration for the identity data synchronization runs. +message IdentityScheduleConfig { + // Optional. The refresh interval to sync the Access Control List information + // for the documents ingested by this connector. If not set, the + // access control list will be refreshed at the default interval of 30 + // minutes. The identity refresh interval can be at least 30 minutes + // and at most 7 days. + google.protobuf.Duration refresh_interval = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The UTC time when the next data sync is expected to start for the + // Data Connector. Customers are only able to specify the hour and minute to + // schedule the data sync. This is utilized when the data connector has a + // refresh interval greater than 1 day. + google.type.DateTime next_sync_time = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration for the BAP connector. +message BAPConfig { + // Customer-facing view of the admin-curated toolspec for a BAP + // connection. Holds the (simplified) per-tool definitions surfaced to + // and editable by the admin in the Discovery Engine UI. + // + // Mirrors the shape of the backend + // `google.cloud.connectorexecution.v1.ToolspecOverride` message, but + // is intentionally kept as a separate public type so the Discovery + // Engine API surface can evolve independently of the fed-API surface + // (AIP-215). Handlers convert between the two via helpers in + // //cloud/ml/discoveryengine/external_service/v1main/data_connector_service/lib:bap_custom_tool_util. + message ToolspecOverride { + // Required. Tool definitions (one Struct per tool) that the admin has + // customised on top of the base toolspec returned by the fed API. + // REQUIRED because it is the only user-editable field in the + // modify API; the request must carry at least one tool. + repeated google.protobuf.Struct tools = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Base toolspec version against which `tools` were authored. On + // Update, MUST match the server's current stable toolspec version + // for the connection; mismatch is rejected with a user-facing error + // directing the admin to re-download the latest tools first. + string base_version = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Use cases supported by this BAP connector. + enum ConnectorMode { + // Connector mode unspecified. + CONNECTOR_MODE_UNSPECIFIED = 0; + + // Connector utilized for data ingestion. + DATA_INGESTION = 1; + + // Connector utilized for Actions + ACTIONS = 2; + + // Connector utilized for End User Authentication. + END_USER_AUTHENTICATION = 3; + } + + // Required. The supported connector modes for the associated BAP connection. + repeated ConnectorMode supported_connector_modes = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The actions enabled on the associated BAP connection. + repeated string enabled_actions = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom toolspec overrides for this connection. For Enterprise BAP + // connectors that support admin-curated tool definitions, this holds the + // (simplified) per-tool overrides. On Get, populated by the server by + // merging persisted overrides with live runtime tool definitions and + // trimming the result for UI consumption. On Update, the supplied value + // replaces the persisted overrides after server-side validation and + // merging: the `base_version` field MUST match the server's current base + // toolspec version (otherwise the request is rejected with a user-facing + // error directing the admin to re-download the latest tools first). + ToolspecOverride toolspec_override = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration for the CLI execution based connectors. +message CliConfig { + // Optional. The actions enabled on the associated CLI connection. + repeated string enabled_actions = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// The connector level alert config. +message AlertPolicyConfig { + // The alert enrollment status. + message AlertEnrollment { + // The enrollment status enum for the alert. + enum EnrollStates { + // Default value. Used for customers who have not responded to the + // alert policy. + ENROLL_STATES_UNSPECIFIED = 0; + + // Customer is enrolled in this policy. + ENROLLED = 1; + + // Customer declined this policy. + DECLINED = 2; + } + + // Immutable. The id of an alert. + string alert_id = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The enrollment status of a customer. + EnrollStates enroll_state = 5 [(google.api.field_behavior) = REQUIRED]; + } + + // Immutable. The fully qualified resource name of the AlertPolicy. + string alert_policy_name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. The enrollment states of each alert. + repeated AlertEnrollment alert_enrollments = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Tenant information for a connector source. This includes some of the same +// information stored in the Credential message, but is limited to only what is +// needed to provide a list of accessible tenants to the user. +message Tenant { + // The tenant's instance ID. Examples: Jira + // ("8594f221-9797-5f78-1fa4-485e198d7cd0"), Slack ("T123456"). + string id = 1; + + // The URI of the tenant, if applicable. For example, the URI of a Jira + // instance is https://my-jira-instance.atlassian.net, and a Slack tenant does + // not have a URI. + string uri = 2; + + // Optional display name for the tenant, e.g. "My Slack Team". + string display_name = 3; +} + +// Configuration for dynamic tools. +message DynamicTool { + // Required. The name of the tool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the tool. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the tool is enabled. + bool enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The display name of the tool. + string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector_service.proto new file mode 100644 index 000000000000..21f693a7af6b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_connector_service.proto @@ -0,0 +1,203 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/data_connector.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "DataConnectorServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Service for data connector management. +service DataConnectorService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Creates a [Collection][google.cloud.discoveryengine.v1.Collection] and sets + // up the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] for + // it. To stop a + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] after setup, + // use the + // [CollectionService.DeleteCollection][google.cloud.discoveryengine.v1.CollectionService.DeleteCollection] + // method. + rpc SetUpDataConnector(SetUpDataConnectorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}:setUpDataConnector" + body: "*" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}:setUpDataConnectorV2" + body: "data_connector" + } + }; + option (google.api.method_signature) = + "parent,collection_id,collection_display_name,data_connector"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1.DataConnector" + metadata_type: "google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata" + }; + } + + // Gets the [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a + // singleton resource for each + // [Collection][google.cloud.discoveryengine.v1.Collection]. + rpc GetDataConnector(GetDataConnectorRequest) returns (DataConnector) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/collections/*/dataConnector}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a [DataConnector][google.cloud.discoveryengine.v1.DataConnector]. + rpc UpdateDataConnector(UpdateDataConnectorRequest) returns (DataConnector) { + option (google.api.http) = { + patch: "/v1/{data_connector.name=projects/*/locations/*/collections/*/dataConnector}" + body: "data_connector" + }; + option (google.api.method_signature) = "data_connector,update_mask"; + } +} + +// Request for +// [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector] +// method. +message SetUpDataConnectorRequest { + // Required. The parent of + // [Collection][google.cloud.discoveryengine.v1.Collection], in the format of + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The ID to use for the + // [Collection][google.cloud.discoveryengine.v1.Collection], which will become + // the final component of the + // [Collection][google.cloud.discoveryengine.v1.Collection]'s resource name. A + // new [Collection][google.cloud.discoveryengine.v1.Collection] is created as + // part of the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] + // setup. [DataConnector][google.cloud.discoveryengine.v1.DataConnector] is a + // singleton resource under + // [Collection][google.cloud.discoveryengine.v1.Collection], managing all + // [DataStore][google.cloud.discoveryengine.v1.DataStore]s of the + // [Collection][google.cloud.discoveryengine.v1.Collection]. + // + // Should conform to + // [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length + // limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + string collection_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The display name of the + // [Collection][google.cloud.discoveryengine.v1.Collection]. + // + // Should be human readable, used to display collections in the Console + // Dashboard. UTF-8 encoded string with limit of 1024 characters. + string collection_display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to + // initialize in the newly created + // [Collection][google.cloud.discoveryengine.v1.Collection]. + DataConnector data_connector = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata for +// [DataConnectorService.SetUpDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.SetUpDataConnector] +// method. +message SetUpDataConnectorMetadata {} + +// Request for +// [DataConnectorService.GetDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.GetDataConnector] +// method. +message GetDataConnectorRequest { + // Required. Full resource name of + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector], such as + // `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`. + // + // If the caller does not have permission to access the + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the requested + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does not + // exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataConnector" + } + ]; +} + +// Request message for +// [DataConnectorService.UpdateDataConnector][google.cloud.discoveryengine.v1.DataConnectorService.UpdateDataConnector] +// method. +message UpdateDataConnectorRequest { + // Required. The + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update. + // + // If the caller does not have permission to update the + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector], regardless + // of whether or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the [DataConnector][google.cloud.discoveryengine.v1.DataConnector] does + // not exist, a `NOT_FOUND` error is returned. + DataConnector data_connector = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [DataConnector][google.cloud.discoveryengine.v1.DataConnector] to update. + // + // Supported field paths include: + // + // - `refresh_interval` + // - `params` + // - `auto_run_disabled` + // - `action_config` + // - `action_config.action_params` + // - `action_config.service_name` + // - `destination_configs` + // - `blocking_reasons` + // - `sync_mode` + // - `incremental_sync_disabled` + // - `incremental_refresh_interval` + // - `data_protection_policy` + // + // Note: Support for these fields may vary depending on the connector type. + // For example, not all connectors support `destination_configs`. + // + // If an unsupported or unknown field path is provided, the request will + // return an `INVALID_ARGUMENT` error. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto index a8b6a6aca987..c4623e97f14d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store.proto @@ -62,6 +62,130 @@ message DataStore { google.protobuf.Timestamp website_data_update_time = 6; } + // Stores information regarding the serving configurations at DataStore level. + message ServingConfigDataStore { + // Optional. If set true, the DataStore will not be available for serving + // search requests. + bool disabled_for_serving = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Stores information for federated search. + message FederatedSearchConfig { + // Stores information for connecting to AlloyDB. + message AlloyDbConfig { + // Configuration for connecting to AlloyDB. + message AlloyDbConnectionConfig { + // Auth mode. + enum AuthMode { + AUTH_MODE_UNSPECIFIED = 0; + + // Uses P4SA when VAIS talks to AlloyDB. + AUTH_MODE_SERVICE_ACCOUNT = 1; + + // Uses EUC when VAIS talks to AlloyDB. + AUTH_MODE_END_USER_ACCOUNT = 2; + } + + // Required. The AlloyDB instance to connect to. + string instance = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AlloyDB database to connect to. + string database = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database user. + // + // If auth_mode = END_USER_ACCOUNT, it can be unset. In that case, + // the user will be inferred on the AlloyDB side, based on the + // authenticated user. + string user = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database password. + // + // If auth_mode = END_USER_ACCOUNT, it can be unset. In that case, + // the password will be inferred on the AlloyDB side, based on the + // authenticated user. + string password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Auth mode. + AuthMode auth_mode = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, enable PSVS for AlloyDB. + bool enable_psvs = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for AlloyDB AI Natural Language. + message AlloyDbAiNaturalLanguageConfig { + // Optional. AlloyDb AI NL config id, i.e. the value that was used for + // calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be + // empty. + string nl_config_id = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Configuration for connecting to AlloyDB. + AlloyDbConnectionConfig alloydb_connection_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for Magic. + AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Fields to be returned in the search results. If empty, all + // fields will be returned. + repeated string returned_fields = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Stores information for third party applicationOAuth. + message ThirdPartyOauthConfig { + // Optional. The type of the application. E.g., "jira", "box", etc. + string app_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The instance name identifying the 3P app, e.g., + // "-my". This is different from the instance_uri which is the + // full URL of the 3P app e.g., "https://-my.sharepoint.com". + string instance_name = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for connecting to NotebookLM Enterprise. + message NotebooklmConfig { + // Required. Search config name. + // + // Format: projects/*/locations/global/notebookLmSearchConfigs/* + string search_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Restricts this data store to the given notebooks. When empty, + // the data store covers every notebook the querying user can access, + // which is the existing behaviour. + // + // Each entry is a full notebook resource name, such as + // `projects/*/locations/*/notebooks/*`. + // + // Scoping is enforced on results as well as requested upstream, so a + // notebook outside this list cannot appear in a search response through + // this data store even if the backend returns one. + repeated string notebooks = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Notebook" + } + ]; + } + + // Configuration for the data source this data store is connected to. + oneof data_source_config { + // AlloyDB config. If set, this DataStore is connected to AlloyDB. + AlloyDbConfig alloy_db_config = 1; + + // Third Party OAuth config. If set, this DataStore is connected to a + // third party application. + ThirdPartyOauthConfig third_party_oauth_config = 2; + + // NotebookLM config. If set, this DataStore is connected to + // NotebookLM Enterprise. + NotebooklmConfig notebooklm_config = 3; + } + } + // Content config of the data store. enum ContentConfig { // Default value. @@ -84,6 +208,19 @@ message DataStore { GOOGLE_WORKSPACE = 4; } + // Configuration for configurable billing approach. + enum ConfigurableBillingApproach { + // Default value. For Spark and non-Spark non-configurable billing approach. + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + + // Use the subscription base + overage billing for indexing core for non + // embedding storage. + CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE = 1; + + // Use the consumption pay-as-you-go billing for embedding storage add-on. + CONFIGURABLE_CONSUMPTION_EMBEDDING = 2; + } + // Immutable. Identifier. The full resource name of the data store. // Format: // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. @@ -206,6 +343,10 @@ message DataStore { HealthcareFhirConfig healthcare_fhir_config = 29 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Stores serving config at DataStore level. + ServingConfigDataStore serving_config_data_store = 30 + [(google.api.field_behavior) = OPTIONAL]; + // Immutable. The fully qualified resource name of the associated // [IdentityMappingStore][google.cloud.discoveryengine.v1.IdentityMappingStore]. // This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or @@ -217,6 +358,26 @@ message DataStore { type: "discoveryengine.googleapis.com/IdentityMappingStore" } ]; + + // Optional. If set, this DataStore is an Infobot FAQ DataStore. + bool is_infobot_faq_data_store = 37 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, this DataStore is a federated search DataStore. + FederatedSearchConfig federated_search_config = 38 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for configurable billing approach. See + ConfigurableBillingApproach configurable_billing_approach = 45 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The timestamp when configurable_billing_approach was last + // updated. + google.protobuf.Timestamp configurable_billing_approach_update_time = 46 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Specifies the data protection policy for the data store. + DataProtectionPolicy data_protection_policy = 48 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration data for advance site search. @@ -282,13 +443,18 @@ message WorkspaceConfig { // Workspace Data Store contains People data GOOGLE_PEOPLE = 8; + + // Workspace Data Store contains all Workspace apps data + GOOGLE_WORKSPACE = 9; } // The Google Workspace data source. Type type = 1; - // Obfuscated Dasher customer ID. - string dasher_customer_id = 2; + // Output only. Obfuscated Dasher customer ID. Derived by the server from + // the project's GCP organization at data store creation time; any value + // supplied in the request payload is ignored. + string dasher_customer_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The super admin service account for the workspace that will be // used for access token generation. For now we only use it for Native Google diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store_service.proto index 08c56fa27c24..d5a66ac3d226 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/data_store_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1/data_store.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -40,7 +42,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service DataStoreService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a [DataStore][google.cloud.discoveryengine.v1.DataStore]. // @@ -117,6 +121,47 @@ service DataStoreService { }; option (google.api.method_signature) = "data_store,update_mask"; } + + // Gets the IAM access control policy for a + // [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error + // is returned if the resource does not exist. An empty policy is returned if + // the resource exists but does not have a policy set on it. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1/{resource=projects/*/locations/*/collections/*/dataStores/*}:getIamPolicy" + additional_bindings { + get: "/v1/{resource=projects/*/locations/*/dataStores/*}:getIamPolicy" + } + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the IAM access control policy for a + // [DataStore][google.cloud.discoveryengine.v1.DataStore]. A `NOT_FOUND` error + // is returned if the resource does not exist. + // + // **Important:** When setting a policy directly on a DataStore resource, + // the only recommended roles in the bindings are: + // `roles/discoveryengine.admin` + // `roles/discoveryengine.agentspaceAdmin` + // `roles/discoveryengine.viewer` + // `roles/discoveryengine.agentspaceViewer` + // `roles/discoveryengine.user` + // `roles/discoveryengine.agentspaceUser` + // Attempting to grant any other role will result in a warning in logging. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/collections/*/dataStores/*}:setIamPolicy" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/dataStores/*}:setIamPolicy" + body: "*" + } + }; + option (google.api.method_signature) = "resource,policy"; + } } // Request for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto index 5b1cae7da1d2..e2a735267f34 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -164,6 +164,8 @@ message Document { message IndexStatus { // The time when the document was indexed. // If this field is populated, it means the document has been indexed. + // While documents typically become searchable within seconds of indexing, + // it can sometimes take up to a few hours. google.protobuf.Timestamp index_time = 1; // A sample of errors encountered while indexing the document. @@ -227,11 +229,14 @@ message Document { // Access control information for the document. AclInfo acl_info = 11; - // Output only. The last time the document was indexed. If this field is set, - // the document could be returned in search results. + // Output only. The time when the document was last indexed. // - // This field is OUTPUT_ONLY. If this field is not populated, it means the - // document has never been indexed. + // If this field is populated, it means the document has been indexed. + // While documents typically become searchable within seconds of indexing, + // it can sometimes take up to a few hours. + // + // If this field is not populated, it means the document has never been + // indexed. google.protobuf.Timestamp index_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto index f03e2d2f12bd..ccb601d9db03 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_processing_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -91,6 +91,10 @@ message DocumentProcessingConfig { // during parsing. bool enable_image_annotation = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If true, the pdf layout will be refined using an LLM. + bool enable_llm_layout_parsing = 5 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Contains the required structure types to extract from the // document. Supported values: // @@ -109,6 +113,11 @@ message DocumentProcessingConfig { // Optional. List of HTML ids to exclude from the parsed content. repeated string exclude_html_ids = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the processed document will be made available for + // the GetProcessedDocument API. + bool enable_get_processed_document = 14 + [(google.api.field_behavior) = OPTIONAL]; } // Configs for document processing types. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto index 0d516fdfd7c4..549dc8534b15 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/document_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,7 +42,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service DocumentService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a [Document][google.cloud.discoveryengine.v1.Document]. rpc GetDocument(GetDocumentRequest) returns (Document) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto index d0310bd8d280..4a8bff10962d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,7 +18,10 @@ package google.cloud.discoveryengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/agent_gateway_setting.proto"; +import "google/cloud/discoveryengine/v1/cmek_config_service.proto"; import "google/cloud/discoveryengine/v1/common.proto"; +import "google/cloud/discoveryengine/v1/logging.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; @@ -50,6 +53,17 @@ message Engine { // if not specified. SearchTier search_tier = 1; + // Optional. The required subscription tier of this engine. + // + // If the required subscription tier is search, user with higher license + // tier like assist can still access the standalone app associated with this + // engine. + // + // Web grounding feature is only available on the app if it is set as + // [SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT][google.cloud.discoveryengine.v1.SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT]. + SubscriptionTier required_subscription_tier = 3 + [(google.api.field_behavior) = OPTIONAL]; + // The add-on that this search engine enables. repeated SearchAddOn search_add_ons = 2; } @@ -69,7 +83,7 @@ message Engine { // More feature configs of the selected engine type. message EngineFeaturesConfig { - // Feature related configurations applied to a specific type of meida + // Feature related configurations applied to a specific type of media // recommendation engines. oneof type_dedicated_config { // Recommended for you engine feature config. @@ -249,6 +263,51 @@ message Engine { string company_name = 1; } + // Configuration message for the Knowledge Graph. + message KnowledgeGraphConfig { + // Feature config for the Knowledge Graph. + message FeatureConfig { + // Whether to disable the private KG query understanding for the engine. + // + // Defaults to false if not specified. + bool disable_private_kg_query_understanding = 1; + + // Whether to disable the private KG enrichment for the engine. + // + // Defaults to false if not specified. + bool disable_private_kg_enrichment = 2; + + // Whether to disable the private KG auto complete for the engine. + // + // Defaults to false if not specified. + bool disable_private_kg_auto_complete = 3; + + // Whether to disable the private KG for query UI chips. + // + // Defaults to false if not specified. + bool disable_private_kg_query_ui_chips = 4; + } + + // Whether to enable the Cloud Knowledge Graph for the engine. + // + // Defaults to false if not specified. + bool enable_cloud_knowledge_graph = 1; + + // Specify entity types to support. + repeated string cloud_knowledge_graph_types = 2; + + // Whether to enable the Private Knowledge Graph for the engine. + // + // Defaults to false if not specified. + bool enable_private_knowledge_graph = 3; + + // Specify entity types to support. + repeated string private_knowledge_graph_types = 4; + + // Optional. Feature config for the Knowledge Graph. + FeatureConfig feature_config = 5 [(google.api.field_behavior) = OPTIONAL]; + } + // Additional information of a Chat Engine. // Fields in this message are output only. message ChatEngineMetadata { @@ -260,6 +319,74 @@ message Engine { string dialogflow_agent = 1; } + // The app of the engine. + enum AppType { + // All non specified apps. + APP_TYPE_UNSPECIFIED = 0; + + // App type for intranet search and Agentspace. + APP_TYPE_INTRANET = 1; + } + + // The state of the feature for the engine. + enum FeatureState { + // The feature state is unspecified. + FEATURE_STATE_UNSPECIFIED = 0; + + // The feature is turned on to be accessible. + FEATURE_STATE_ON = 1; + + // The feature is turned off to be inaccessible. + FEATURE_STATE_OFF = 2; + } + + // Configuration for configurable billing approach. + enum ConfigurableBillingApproach { + // Default value. For Spark and non-Spark non-configurable billing approach. + // General pricing model. + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + + // The billing approach follows configurations specified by customer. + CONFIGURABLE_BILLING_APPROACH_ENABLED = 1; + } + + // The status of the model for the engine. + enum ModelState { + // The model state is unspecified. + MODEL_STATE_UNSPECIFIED = 0; + + // The model is enabled by admin. + MODEL_ENABLED = 1; + + // The model is disabled by admin. + MODEL_DISABLED = 2; + } + + // Represents which marketplace agents are visible to any users in agent + // gallery. + enum MarketplaceAgentVisibility { + // Defaults to `MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED`. + MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED = 0; + + // Only agents that are currently available for use by the user are visible. + SHOW_AVAILABLE_AGENTS_ONLY = 1; + + // Show marketplace agents that the user does not yet have access to but + // are integrated into the engine. This level also includes all agents + // visible with `SHOW_AVAILABLE_AGENTS_ONLY`. + SHOW_AGENTS_ALREADY_INTEGRATED = 2; + + // Show all agents visible with `SHOW_AGENTS_ALREADY_INTEGRATED`, plus + // agents that have already been purchased by the project/organization, even + // if they are not currently integrated into the engine. + SHOW_AGENTS_ALREADY_PURCHASED = 3; + + // All agents in the marketplace are visible, regardless of access or + // purchase status. This level encompasses all agents shown in the previous + // levels. + SHOW_ALL_AGENTS = 4; + } + // Additional config specs that defines the behavior of the engine. oneof engine_config { // Configurations for the Chat Engine. Only applicable if @@ -351,7 +478,117 @@ message Engine { // Common config spec that specifies the metadata of the engine. CommonConfig common_config = 15; + // Optional. Configurations for the Knowledge Graph. Only applicable if + // [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. + KnowledgeGraphConfig knowledge_graph_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. This the application type which this engine resource + // represents. NOTE: this is a new concept independ of existing industry + // vertical or solution type. + AppType app_type = 24 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + // Optional. Whether to disable analytics for searches performed on this // engine. bool disable_analytics = 26 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Non-empty default. Session config for the engine. + SessionConfig session_config = 29 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = NON_EMPTY_DEFAULT + ]; + + // Optional. Feature config for the engine to opt in or opt out of features. + // Supported keys: + // + // * `*`: all features, if it's present, all other feature state settings are + // ignored. + // * `agent-gallery` + // * `no-code-agent-builder` + // * `prompt-gallery` + // * `model-selector` + // * `notebook-lm` + // * `people-search` + // * `people-search-org-chart` + // * `bi-directional-audio` + // * `speech-to-text` + // * `feedback` + // * `session-sharing` + // * `personalization-memory` + // * `personalization-suggested-highlights` + // * `mobile-app-access` + // * `disable-agent-sharing` + // * `disable-image-generation` + // * `disable-video-generation` + // * `disable-onedrive-upload` + // * `disable-talk-to-content` + // * `disable-google-drive-upload` + // * `disable-welcome-emails` + // * `disable-canvas` + // * `canvas-workspace` + // * `canvas-app-builder` + // * `skills` + // * `skill-sharing` + // * `skill-sharing-without-admin-approval` + // * `disable-projects` + // * `sobi` + // * `enable-end-user-sharing-with-groups` + // * `single-agent-orchestration` + // * `multi-agent-orchestration` + // * `cross-product-intelligence` + // * `workflow-agents` + // * `in-app-notifications` + // * `code-extraction` + map features = 30 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. CMEK-related information for the Engine. + CmekConfig cmek_config = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for configurable billing approach. + ConfigurableBillingApproach configurable_billing_approach = 36 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maps a model name to its specific configuration for this engine. + // This allows admin users to turn on/off individual models. This only stores + // models whose states are overridden by the admin. + // + // When the state is unspecified, or model_configs is empty for this + // model, the system will decide if this model should be available or not + // based on the default configuration. For example, a preview model + // should be disabled by default if the admin has not chosen to enable it. + map model_configs = 37 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Observability config for the engine. + ObservabilityConfig observability_config = 39 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to + // tenant-specific information required for that connector. The structure of + // the tenant information string is connector-dependent. + map connector_tenant_info = 42 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The agent gateway setting for the engine. + AgentGatewaySetting agent_gateway_setting = 43 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The visibility of marketplace agents in the agent gallery. + MarketplaceAgentVisibility marketplace_agent_visibility = 44 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The emails of the procurement contacts. + repeated string procurement_contact_emails = 45 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The Agent registry containing the agents, MCP servers and + // tools associated with this engine. Derived server-side from the linked + // Agent Gateway's registry. + string associated_agent_registry = 50 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine_service.proto index e7c416821ea0..33dfecd51959 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/engine_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1/engine.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -40,9 +42,11 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service EngineService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; - // Creates a [Engine][google.cloud.discoveryengine.v1.Engine]. + // Creates an [Engine][google.cloud.discoveryengine.v1.Engine]. rpc CreateEngine(CreateEngineRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/collections/*}/engines" @@ -55,7 +59,7 @@ service EngineService { }; } - // Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. + // Deletes an [Engine][google.cloud.discoveryengine.v1.Engine]. rpc DeleteEngine(DeleteEngineRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/collections/*/engines/*}" @@ -76,7 +80,7 @@ service EngineService { option (google.api.method_signature) = "engine,update_mask"; } - // Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. + // Gets an [Engine][google.cloud.discoveryengine.v1.Engine]. rpc GetEngine(GetEngineRequest) returns (Engine) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/collections/*/engines/*}" @@ -92,6 +96,40 @@ service EngineService { }; option (google.api.method_signature) = "parent"; } + + // Gets the IAM access control policy for an + // [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is + // returned if the resource does not exist. An empty policy is returned if the + // resource exists but does not have a policy set on it. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1/{resource=projects/*/locations/*/collections/*/engines/*}:getIamPolicy" + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the IAM access control policy for an + // [Engine][google.cloud.discoveryengine.v1.Engine]. A `NOT_FOUND` error is + // returned if the resource does not exist. + // + // **Important:** When setting a policy directly on an Engine resource, + // the only recommended roles in the bindings are: + // `roles/discoveryengine.admin`, + // `roles/discoveryengine.agentspaceAdmin`, + // `roles/discoveryengine.user`, + // `roles/discoveryengine.agentspaceUser`, + // `roles/discoveryengine.viewer`, + // `roles/discoveryengine.agentspaceViewer`. + // Attempting to grant any other role will result in a warning in logging. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/collections/*/engines/*}:setIamPolicy" + body: "*" + }; + option (google.api.method_signature) = "resource,policy"; + } } // Request for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/feedback.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/feedback.proto new file mode 100644 index 000000000000..09fb4b8863f5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/feedback.proto @@ -0,0 +1,162 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/discoveryengine/v1/session.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "FeedbackProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Information about the user feedback. This information will be used for +// logging and metrics purpose. +message Feedback { + // The conversation information such as the question index and session name. + message ConversationInfo { + // The index of the user input within the conversation messages. + int32 question_index = 1; + + // Name of the newly generated or continued session. + string session = 2; + + // Required. The user's search query. + Query query = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The token which could be used to fetch the assistant log. + string assist_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token which could be used to fetch the answer log. + string answer_query_token = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The full resource name of the Sobi task if the conversation was + // handled by a long-running agent task. Format (canonical, or the short + // alias the Task API also accepts): + // projects/{project}/locations/{location}/agents/{agent}/tasks/{task} + // projects/{project}/locations/{location}/tasks/{task} + string task_name = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The runtime trajectory id of the rated agent task turn, as set + // on `TaskServerEvent.trajectory_id`. Shared by all steps of the turn. + string trajectory_id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `TaskServerEvent.seq_num` of the step that opened the rated + // agent task reply. + int64 step_seq_num = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of the feedback user gives. + enum FeedbackType { + // Unspecified feedback type. + FEEDBACK_TYPE_UNSPECIFIED = 0; + + // The user gives a positive feedback. + LIKE = 1; + + // The user gives a negative feedback. + DISLIKE = 2; + } + + // The reason why user gives a negative feedback. + enum Reason { + // Unspecified reason. + REASON_UNSPECIFIED = 0; + + // The response is inaccurate. + INACCURATE_RESPONSE = 1; + + // The response is not relevant. + NOT_RELEVANT = 2; + + // The response is incomprehensive. + INCOMPREHENSIVE = 3; + + // The response is offensive or unsafe. + OFFENSIVE_OR_UNSAFE = 4; + + // The response is not well-formatted. + FORMAT_AND_STYLES = 6; + + // The response is not well-associated with the query. + BAD_CITATION = 7; + + // The expected canvas was not generated for the response. + CANVAS_NOT_GENERATED = 8; + + // The generated canvas is of bad quality (e.g. inaccurate, incomplete, + // poorly formatted). + CANVAS_QUALITY_BAD = 9; + + // Exporting the generated canvas failed (e.g. download or external + // export action did not complete successfully). + CANVAS_EXPORT_FAILED = 10; + } + + // Source of the feedback as per integration. + enum FeedbackSource { + // Unspecified feedback source. + FEEDBACK_SOURCE_UNSPECIFIED = 0; + + // Feedback source is Google Console. + GOOGLE_CONSOLE = 1; + + // Feedback source is Google Widget. + GOOGLE_WIDGET = 2; + + // Feedback source is Google Webapp. + GOOGLE_WEBAPP = 3; + + // Feedback source is Google AgentSpace Mobile app. + GOOGLE_AGENTSPACE_MOBILE = 4; + + // Feedback source is Google AgentSpace Desktop app. + GOOGLE_AGENTSPACE_DESKTOP = 5; + } + + // Required. Indicate whether the user gives a positive or negative feedback. + // If the user gives a negative feedback, there might be more feedback + // details. + FeedbackType feedback_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The reason if user gives a thumb down. + repeated Reason reasons = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The additional user comment of the feedback if user gives a thumb + // down. + string comment = 3 [(google.api.field_behavior) = OPTIONAL]; + + // The related conversation information when user gives feedback. + ConversationInfo conversation_info = 4; + + // The version of the LLM model that was used to generate the response. + string llm_model_version = 5; + + // Optional. The UI component the user feedback comes from, which could be + // GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP. + FeedbackSource feedback_source = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The version of the component that this report is being sent from. + string component_version = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the customer accepted data use terms. + bool data_terms_accepted = 8 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto index 35a33322b20a..cc184018e2c7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounded_generation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1/grounding.proto"; +import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; @@ -35,7 +36,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service GroundedGenerationService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Generates grounded content in a streaming fashion. rpc StreamGenerateGroundedContent(stream GenerateGroundedContentRequest) @@ -90,6 +93,21 @@ message GroundedGenerationContent { message GenerateGroundedContentRequest { // Content generation specification. message GenerationSpec { + // Setting for provisioned throughput. + enum ProvisionedThroughputSetting { + // Default value. If the user has remaining provisioned throughput, + // provisioned throughput will be used. Otherwise, pay as you go will be + // used. + PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED = 0; + + // Only use provisioned throughput. If the user has no remaining + // provisioned throughput, an error will be returned. + PROVISIONED_THROUGHPUT_ONLY = 1; + + // Disables provisioned throughput. + PAY_AS_YOU_GO_ONLY = 2; + } + // Specifies which Vertex model id to use for generation. string model_id = 3; @@ -117,6 +135,10 @@ message GenerateGroundedContentRequest { // If specified, custom value for max output tokens will be used. optional int32 max_output_tokens = 10; + + // Optional. Setting for provisioned throughput. + ProvisionedThroughputSetting provisioned_throughput_setting = 13 + [(google.api.field_behavior) = OPTIONAL]; } // Describes the options to customize dynamic retrieval. @@ -189,10 +211,28 @@ message GenerateGroundedContentRequest { // source. DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of domains to be excluded from the search results. + repeated string exclude_domains = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sites with confidence level chosen & above this value will be + // blocked from the search results. + Citation.PhishBlockThreshold blocking_confidence = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Params for using enterprise web retrieval as grounding source. - message EnterpriseWebRetrievalSource {} + message EnterpriseWebRetrievalSource { + // Optional. List of domains to be excluded from the search results. + repeated string exclude_domains = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sites with confidence level chosen & above this value will be + // blocked from the search results. + Citation.PhishBlockThreshold blocking_confidence = 2 + [(google.api.field_behavior) = OPTIONAL]; + } // Sources. oneof source { @@ -364,6 +404,9 @@ message GenerateGroundedContentResponse { // The title of the website. string title = 2; + + // The display name of the website. + string site_display_name = 3; } // Metadata about the image. @@ -388,6 +431,12 @@ message GenerateGroundedContentResponse { WebsiteInfo source = 3; } + // Metadata about a video from the web search. + message VideoMetadata { + // The external id of the video. + string youtube_external_id = 1; + } + // Retrieval metadata to provide an understanding in the // retrieval steps performed by the model. There can be multiple such // messages which can correspond to different parts of the retrieval. This @@ -411,6 +460,9 @@ message GenerateGroundedContentResponse { // Images from the web search. repeated ImageMetadata images = 9; + + // Videos from the web search. + repeated VideoMetadata videos = 11; } // Index of the candidate. @@ -557,3 +609,58 @@ message CheckGroundingResponse { // Claim texts and citation info across all claims in the answer candidate. repeated Claim claims = 4; } + +// A collection of source attributions for a piece of content. +message CitationMetadata { + // Output only. List of citations. + repeated Citation citations = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Source attributions for content. +message Citation { + // These are available confidence level user can set to block malicious urls + // with chosen confidence and above. For understanding different confidence of + // webrisk, please refer to + // https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel + enum PhishBlockThreshold { + // Defaults to unspecified. + PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0; + + // Blocks Low and above confidence URL that is risky. + BLOCK_LOW_AND_ABOVE = 30; + + // Blocks Medium and above confidence URL that is risky. + BLOCK_MEDIUM_AND_ABOVE = 40; + + // Blocks High and above confidence URL that is risky. + BLOCK_HIGH_AND_ABOVE = 50; + + // Blocks Higher and above confidence URL that is risky. + BLOCK_HIGHER_AND_ABOVE = 55; + + // Blocks Very high and above confidence URL that is risky. + BLOCK_VERY_HIGH_AND_ABOVE = 60; + + // Blocks Extremely high confidence URL that is risky. + BLOCK_ONLY_EXTREMELY_HIGH = 100; + } + + // Output only. Start index into the content. + int32 start_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End index into the content. + int32 end_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Url reference of the attribution. + string uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Title of the attribution. + string title = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. License of the attribution. + string license = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Publication date of the attribution. + google.type.Date publication_date = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounding.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounding.proto index 61a66d1c0dbd..d09df90c2052 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounding.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/grounding.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store.proto index 6dfacf11311b..72658bdcf748 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -81,4 +81,7 @@ message IdentityMappingEntry { // Required. Identity outside the customer identity provider. // The length limit of external identity will be of 100 characters. string external_identity = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The name of the external identity. + string external_identity_name = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto index 05788b07d320..cffaf9900d7a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service IdentityMappingStoreService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a new Identity Mapping Store. rpc CreateIdentityMappingStore(CreateIdentityMappingStoreRequest) @@ -245,6 +247,7 @@ message PurgeIdentityMappingsRequest { // Filter matching identity mappings to purge. // The eligible field for filtering is: + // // * `update_time`: in ISO 8601 "zulu" format. // * `external_id` // diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto index 84b606ad2271..cb0e237a675a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/import_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -470,9 +470,10 @@ message ImportUserEventsMetadata { // Operation create time. google.protobuf.Timestamp create_time = 1; - // Operation last update time. If the operation is done, this is also the - // finish time. - google.protobuf.Timestamp update_time = 2; + // Output only. Operation last update time. If the operation is done, this is + // also the finish time. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Count of entries that were processed successfully. int64 success_count = 3; @@ -522,6 +523,9 @@ message ImportDocumentsRequest { // Calculates diff and replaces the entire document dataset. Existing // documents may be deleted if they are not present in the source location. + // When using this mode, there won't be any downtime on the dataset + // targeted. Any document that should remain unchanged or that should be + // updated will continue serving while the operation is running. FULL = 2; } @@ -636,7 +640,6 @@ message ImportDocumentsRequest { // must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. // * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. // * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - // * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. // * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. string id_field = 9; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config.proto new file mode 100644 index 000000000000..327192c07076 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config.proto @@ -0,0 +1,124 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "LicenseConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Information about users' licenses. +message LicenseConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + pattern: "projects/{project}/locations/{location}/licenseConfigs/{license_config}" + plural: "licenseConfigs" + singular: "licenseConfig" + }; + + // License config state enumeration. + enum State { + // Default value. The license config does not exist. + STATE_UNSPECIFIED = 0; + + // The license config is effective and being used. + ACTIVE = 1; + + // The license config has expired. + EXPIRED = 2; + + // The license config has not started yet, and its start date is in the + // future. + NOT_STARTED = 3; + + // This is when a sub license config has returned all its seats back to + // BillingAccountLicenseConfig that it belongs to. + // Similar to EXPIRED. + WITHDRAWN = 4; + + // The license config is in a grace period. Its subscription has ended, + // either through early termination or by reaching its end date, but the + // customer keeps access for a limited time. It becomes EXPIRED when the + // grace period ends. + DEACTIVATING = 5; + } + + // Immutable. Identifier. The fully qualified resource name of the license + // config. Format: + // `projects/{project}/locations/{location}/licenseConfigs/{license_config}` + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Required. Number of licenses purchased. + int64 license_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Subscription tier information for the license config. + SubscriptionTier subscription_tier = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the license config. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether the license config should be auto renewed when it reaches + // the end date. + bool auto_renew = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The start date. + google.type.Date start_date = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The planed end date. + google.type.Date end_date = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Subscription term. + SubscriptionTerm subscription_term = 8 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether the license config is for free trial. + bool free_trial = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Whether the license config is for Gemini bundle. + bool gemini_bundle = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indication of whether the subscription is terminated earlier + // than the expiration date. + bool early_terminated = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date when the subscription is terminated earlier than the + // expiration date. + google.type.Date early_termination_date = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Timestamp of the most recent user-initiated update (seat count + // change or subscription term change). Unlike `update_time`, this field is + // only stamped when a customer explicitly updates the license (e.g. via the + // UI), and is not touched by system-driven writes (subscription pipeline, + // BALC propagation, etc.). + google.protobuf.Timestamp last_user_update_time = 16 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config_service.proto new file mode 100644 index 000000000000..6ce969aafdf6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/license_config_service.proto @@ -0,0 +1,306 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/license_config.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "LicenseConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Service for managing license config related resources. +service LicenseConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Creates a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] + // This method should only be used for creating NotebookLm licenses or Gemini + // Enterprise free trial licenses. + rpc CreateLicenseConfig(CreateLicenseConfigRequest) returns (LicenseConfig) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/licenseConfigs" + body: "license_config" + }; + option (google.api.method_signature) = + "parent,license_config,license_config_id"; + } + + // Updates the [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] + rpc UpdateLicenseConfig(UpdateLicenseConfigRequest) returns (LicenseConfig) { + option (google.api.http) = { + patch: "/v1/{license_config.name=projects/*/locations/*/licenseConfigs/*}" + body: "license_config" + }; + option (google.api.method_signature) = "license_config,update_mask"; + } + + // Gets a [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + rpc GetLicenseConfig(GetLicenseConfigRequest) returns (LicenseConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/licenseConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s associated + // with the project. + rpc ListLicenseConfigs(ListLicenseConfigsRequest) + returns (ListLicenseConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/licenseConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Distributes a + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from billing + // account level to project level. + rpc DistributeLicenseConfig(DistributeLicenseConfigRequest) + returns (DistributeLicenseConfigResponse) { + option (google.api.http) = { + post: "/v1/{billing_account_license_config=billingAccounts/*/billingAccountLicenseConfigs/*}:distributeLicenseConfig" + body: "*" + }; + option (google.api.method_signature) = + "billing_account_license_config,project_number,location,license_count,license_config_id"; + } + + // This method is called from the billing account side to retract the + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] from the + // given project back to the billing account. + rpc RetractLicenseConfig(RetractLicenseConfigRequest) + returns (RetractLicenseConfigResponse) { + option (google.api.http) = { + post: "/v1/{billing_account_license_config=billingAccounts/*/billingAccountLicenseConfigs/*}:retractLicenseConfig" + body: "*" + }; + option (google.api.method_signature) = + "billing_account_license_config,license_config,full_retract,license_count"; + } +} + +// Request message for +// [LicenseConfigService.CreateLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.CreateLicenseConfig] +// method. +message CreateLicenseConfigRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to create. + LicenseConfig license_config = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID to use for the + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], which will + // become the final component of the + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]'s resource + // name. We are using the tier (product edition) name as the license config id + // such as `search` or `search_and_assistant`. + string license_config_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [LicenseConfigService.UpdateLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.UpdateLicenseConfig] +// method. +message UpdateLicenseConfigRequest { + // Required. The + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update. + LicenseConfig license_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates which fields in the provided + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] to update. + // + // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error + // is returned. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [LicenseConfigService.GetLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.GetLicenseConfig] +// method. +message GetLicenseConfigRequest { + // Required. Full resource name of + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], such as + // `projects/{project}/locations/{location}/licenseConfigs/*`. + // + // If the caller does not have permission to access the + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig], regardless + // of whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the requested + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] does not + // exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; +} + +// Request message for +// [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1.LicenseConfigService.ListLicenseConfigs] +// method. +message ListLicenseConfigsRequest { + // Required. The parent branch resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Optional. Not supported. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Not supported. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to the list results. + // + // The supported fields are: + // + // * `subscription_tier` + // * `state` + // + // Examples: + // + // * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all + // active search license configs. + // * `state=ACTIVE` - Lists all active license configs. + // + // The filter string should be a comma-separated list of field=value pairs. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1.LicenseConfigService.ListLicenseConfigs] +// method. +message ListLicenseConfigsResponse { + // All the customer's + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]s. + repeated LicenseConfig license_configs = 1; + + // Not supported. + string next_page_token = 2; +} + +// Request message for +// [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.DistributeLicenseConfig] +// method. +message DistributeLicenseConfigRequest { + // Required. Full resource name of [BillingAccountLicenseConfig][]. + // + // Format: + // `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + string billing_account_license_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/BillingAccountLicenseConfig" + } + ]; + + // Required. The target GCP project number to distribute the license config + // to. + int64 project_number = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target GCP project region to distribute the license config + // to. + string location = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of licenses to distribute. + int64 license_count = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Distribute seats to this license config instead of creating a new + // one. If not specified, a new license config will be created from the + // billing account license config. + string license_config_id = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.DistributeLicenseConfig] +// method. +message DistributeLicenseConfigResponse { + // The updated or created LicenseConfig. + LicenseConfig license_config = 1; +} + +// Request message for +// [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.RetractLicenseConfig] +// method. +message RetractLicenseConfigRequest { + // Required. Full resource name of [BillingAccountLicenseConfig][]. + // + // Format: + // `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + string billing_account_license_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/BillingAccountLicenseConfig" + } + ]; + + // Required. Full resource name of + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig]. + // + // Format: + // `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + string license_config = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; + + // Optional. If set to true, retract the entire license config. Otherwise, + // retract the specified license count. + bool full_retract = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of licenses to retract. Only used when full_retract is + // false. + int64 license_count = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1.LicenseConfigService.RetractLicenseConfig] +// method. +message RetractLicenseConfigResponse { + // The updated LicenseConfig. + LicenseConfig license_config = 1; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/logging.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/logging.proto new file mode 100644 index 000000000000..19093432acfc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/logging.proto @@ -0,0 +1,40 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "LoggingProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Observability config for a resource. +message ObservabilityConfig { + // Optional. Enables observability. If `false`, all other flags are ignored. + bool observability_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables sensitive logging. Sensitive logging includes customer + // core content (e.g. prompts, responses). If `false`, will sanitize all + // sensitive fields. + bool sensitive_logging_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto index 31356a6650a6..60da135d6238 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/logging.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; @@ -80,6 +81,239 @@ message Project { google.protobuf.Timestamp decline_time = 6; } + // Customer provided configurations. + message CustomerProvidedConfig { + // Configuration for NotebookLM. + message NotebooklmConfig { + // Configuration for customer defined Model Armor templates to be used for + // sanitizing user prompts and LLM responses. + message ModelArmorConfig { + // Optional. The resource name of the Model Armor Template for + // sanitizing user prompts. Format: + // projects/{project}/locations/{location}/templates/{template_id} + // If not specified, no sanitization will be applied to the user prompt. + string user_prompt_template = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + + // Optional. The resource name of the Model Armor Template for + // sanitizing LLM responses. Format: + // projects/{project}/locations/{location}/templates/{template_id} + // If not specified, no sanitization will be applied to the LLM + // response. + string response_template = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + } + + // Data protection policy config for NotebookLM. + message DataProtectionPolicy { + // Specifies a Sensitive Data Protection + // (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) + // policy. + message SensitiveDataProtectionPolicy { + // Optional. The Sensitive Data Protection policy resource name. + string policy = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/ContentPolicy" + } + ]; + } + + // Optional. The sensitive data protection policy. + SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Model Armor configuration to be used for sanitizing user prompts and + // LLM responses. + ModelArmorConfig model_armor_config = 1; + + // Optional. Whether to disable the notebook sharing feature for the + // project. Default to false if not specified. + bool opt_out_notebook_sharing = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the data protection policy for NotebookLM. + DataProtectionPolicy data_protection_policy = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Observability config for NotebookLM. + ObservabilityConfig observability_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Controls resource-level access control for Gemini Enterprise users. + message ResourceAccessControlConfig { + // Optional. If `true`, the data stores and data connectors shown to + // Gemini Enterprise users are filtered to those the user has the required + // resource-level `.get` IAM permission on. + bool data_store_access_control_enabled = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Configuration for NotebookLM settings. + NotebooklmConfig notebooklm_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Resource-level access control config for Gemini Enterprise + // users. + ResourceAccessControlConfig resource_access_control_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents the currently effective configurable billing parameters. + // These values are derived from the customer's subscription history stored + // internally and reflect the thresholds actively being used for billing + // purposes at the time of the GetProject call. This includes the start_time + // of the subscription and may differ from the values in + // `customer_provided_config` due to billing rules + // (e.g., scale-downs taking effect only at the start of a new month). + // We also include the update type to indicate the type of update performed on + // the configurable billing configuration in the UpdateProject operation. + message ConfigurableBillingStatus { + // Per-model Agent Search TPM subscription status. One entry per active + // `core_subscription.agent_search_token_subscriptions[*]` entry in the + // customer-provided config; populated by UpdateProject and GetProject. + // + // The lifecycle scalars on this message (`start_time`, `terminate_time`, + // `update_type`, `tpm_threshold_next_update_time`) are per (project, + // model_version) — siblings of the whole-relationship `start_time` / + // `terminate_time` / `update_type` on the enclosing + // ConfigurableBillingStatus, but scoped to this specific Agent Search + // TPM subscription instead of to the overall customer-configurable- + // pricing relationship. This per-instance granularity is intentional: + // the underlying SubV3 storage is per-(project, model_version), so + // each model has its own activation, termination, and deferred-update + // clock; surfacing that on the response gives customers the granularity + // they need to manage per-model commitments independently. QPM / + // IndexingCore differ — their storage is one row per (project, + // location), so their lifecycle is represented only by the whole- + // relationship scalars on ConfigurableBillingStatus. + message AgentSearchTokenSubscriptionStatus { + // Output only. The Gemini model version this status corresponds to. + // Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a + // stable Gemini model version from the Gemini Enterprise Agent Platform + // model-versions registry; see + // https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models). + string model_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The currently effective TPM threshold. Reflects scale-up + // immediately and scale-down at the next billing cycle, matching + // `effective_search_qpm_threshold` semantics. + int64 effective_tpm_threshold = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest next update time for the TPM subscription + // threshold for this (project, model_version). Populated only after a + // successful update. + google.protobuf.Timestamp tpm_threshold_next_update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When this (project, model_version) Agent Search TPM + // subscription was first activated. Set once on first activation of this + // model version and never moved by subsequent threshold updates; on + // termination + re-activation a new value is recorded. Does NOT move + // the whole-relationship `start_time` on the enclosing + // ConfigurableBillingStatus, which continues to represent the first + // activation of the overall customer-configurable-pricing + // relationship. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, the scheduled effective time at which this + // (project, model_version) Agent Search TPM subscription will terminate. + // Populated when the customer removes this entry from + // `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move + // the whole-relationship `terminate_time` on the enclosing + // ConfigurableBillingStatus, which is populated only when the entire + // customer-configurable-pricing relationship is being torn down. + google.protobuf.Timestamp terminate_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the most recent update to this (project, + // model_version) subscription, as performed by the most recent + // UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this + // model_version was not touched by the most recent UpdateProject (its + // `effective_tpm_threshold` reflects an earlier update). The + // whole-relationship `update_type` on the enclosing + // ConfigurableBillingStatus continues to summarize the direction of + // the most recent update across all surfaces in the project (QPM, + // IndexingCore, and Agent Search TPM together). + UpdateType update_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The type of update performed on the configurable billing configuration. + enum UpdateType { + // Unspecified update type. + UPDATE_TYPE_UNSPECIFIED = 0; + + // Configurable billing was created/enabled. + CREATE = 1; + + // Configurable billing was deleted/disabled. + DELETE = 2; + + // Subscription was scaled up (thresholds increased). + SCALE_UP = 3; + + // Subscription was scaled down (thresholds decreased). + SCALE_DOWN = 4; + } + + // Optional. The currently effective Search QPM threshold in queries per + // minute. This is the threshold against which QPM usage is compared for + // overage calculations. + int64 effective_search_qpm_threshold = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The currently effective Indexing Core threshold. + // This is the threshold against which Indexing Core usage is compared + // for overage calculations. + int64 effective_indexing_core_threshold = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The start time of the currently active billing subscription. + google.protobuf.Timestamp start_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The latest terminate effective time of search qpm and + // indexing core subscriptions. + google.protobuf.Timestamp terminate_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest next update time for the search QPM + // subscription threshold. This is based on the next_update_time returned by + // the underlying Cloud Billing Subscription V3 API. This field is populated + // only if an update QPM subscription threshold request is succeeded. + google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest next update time for the indexing core + // subscription threshold. This is based on the next_update_time returned by + // the underlying Cloud Billing Subscription V3 API. This field is populated + // only if an update indexing core subscription threshold + // request is succeeded. + google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of update performed in this operation. + // This field is populated in the response of UpdateProject. + UpdateType update_type = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Per-model Agent Search TPM subscription status. + repeated AgentSearchTokenSubscriptionStatus + agent_search_token_subscription_statuses = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Full resource name of the project, for example // `projects/{project}`. // Note that when making requests, project number and project id are both @@ -100,4 +334,12 @@ message Project { // [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms]. map service_terms_map = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Customer provided configurations. + CustomerProvidedConfig customer_provided_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The current status of the project's configurable billing. + ConfigurableBillingStatus configurable_billing_status = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto index f9a0b3c898fb..20ded2ab3182 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service ProjectService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Provisions the project resource. During the // process, related systems will get prepared and initialized. @@ -50,6 +52,10 @@ service ProjectService { option (google.api.http) = { post: "/v1/{name=projects/*}:provision" body: "*" + additional_bindings { + post: "/v1/{name=projects/*/locations/*}:provision" + body: "*" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -63,6 +69,18 @@ service ProjectService { // [ProjectService.ProvisionProject][google.cloud.discoveryengine.v1.ProjectService.ProvisionProject] // method. message ProvisionProjectRequest { + // Parameters for Agentspace. + message SaasParams { + // Optional. Set to `true` to specify that caller has read and would like to + // give consent to the [Terms for Agent Space quality of service]. + bool accept_biz_qos = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates if the current request is for Biz edition (= true) or + // not + // (= false). + bool is_biz = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. Full resource name of a // [Project][google.cloud.discoveryengine.v1.Project], such as // `projects/{project_id_or_number}`. @@ -84,6 +102,9 @@ message ProvisionProjectRequest { // // Acceptable version is `2022-11-23`, and this may change over time. string data_use_terms_version = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Parameters for Agentspace. + SaasParams saas_params = 4 [(google.api.field_behavior) = OPTIONAL]; } // Metadata associated with a project provision operation. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto index 282c8039b297..8300968cede9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/purge_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -264,7 +264,8 @@ message PurgeCompletionSuggestionsRequest { // Response message for // [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions] -// method. +// method. If the long running operation is successfully done, then this +// message is returned by the google.longrunning.Operations.response field. message PurgeCompletionSuggestionsResponse { // Whether the completion suggestions were successfully purged. bool purge_succeeded = 1; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto index ba6e7e1d9a40..3ab1a1b416dd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/rank_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,7 +34,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service RankService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Ranks a list of text records based on the given input query. rpc Rank(RankRequest) returns (RankResponse) { @@ -66,8 +68,8 @@ message RankingRecord { string content = 3; // The score of this record based on the given query and selected model. - // The score will be rounded to 2 decimal places. If the score is close to 0, - // it will be rounded to 0.0001 to avoid returning unset. + // The score will be rounded to 4 decimal places. If the score is close to 0, + // it will be rounded to 0.00001 to avoid returning unset. float score = 4; } @@ -98,7 +100,7 @@ message RankRequest { // The query to use. string query = 4; - // Required. A list of records to rank. At most 200 records to rank. + // Required. A list of records to rank. repeated RankingRecord records = 5 [(google.api.field_behavior) = REQUIRED]; // If true, the response will contain only record ID and score. By default, it diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/recommendation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/recommendation_service.proto index a453e049aa86..681f2e83e200 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/recommendation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/recommendation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service RecommendationService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Makes a recommendation, which requires a contextual user event. rpc Recommend(RecommendRequest) returns (RecommendResponse) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/safety.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/safety.proto index 7e70906fbab6..6a189f51ee67 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/safety.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/safety.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto index 39d80ef079c4..76bc0acdae60 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto index d438f364180b..d711b2623f7d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/schema_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service SchemaService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a [Schema][google.cloud.discoveryengine.v1.Schema]. rpc GetSchema(GetSchemaRequest) returns (Schema) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto index 79369eceefd2..8dfe41a5a0d9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_service.proto @@ -1113,6 +1113,12 @@ message SearchRequest { // stores. For engines with a single data store, the specs directly under // [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] should be // used. + // + // On an engine with multiple data stores, this field is optional. If it's + // empty, all of the engine's data stores are searched (blended search). + // Unless it specifies exactly one data store, some request fields, such as + // `order_by` and `query_expansion_spec`, aren't supported and return an + // `INVALID_ARGUMENT` error. repeated DataStoreSpec data_store_specs = 32; // Optional. The maximum number of results to retrieve from each data store. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_tuning_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_tuning_service.proto index d8efe4c466ff..0bf00f1f4126 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_tuning_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/search_tuning_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service SearchTuningService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Trains a custom model. rpc TrainCustomModel(TrainCustomModelRequest) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config.proto index 24bedcfda1d4..19398ea9db60 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -268,4 +268,44 @@ message ServingConfig { // // Maximum number of specifications is 100. repeated string promote_control_ids = 26; + + // Optional. The specification for answer generation. + AnswerGenerationSpec answer_generation_spec = 27 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The specification for answer generation. +message AnswerGenerationSpec { + // The specification for user defined classifier. + message UserDefinedClassifierSpec { + // Optional. Whether or not to enable and include user defined classifier. + bool enable_user_defined_classifier = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The preamble to be used for the user defined classifier. + string preamble = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The model id to be used for the user defined classifier. + string model_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The task marker to be used for the user defined classifier. + string task_marker = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The top-p value to be used for the user defined classifier. + double top_p = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The top-k value to be used for the user defined classifier. + int64 top_k = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The temperature value to be used for the user defined + // classifier. + double temperature = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The seed value to be used for the user defined classifier. + int32 seed = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The specification for user specified classifier spec. + UserDefinedClassifierSpec user_defined_classifier_spec = 1 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config_service.proto index e0c7e29d7745..09914f0a5b88 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/serving_config_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1/serving_config.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; @@ -37,7 +38,52 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service ServingConfigService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Creates a ServingConfig. + // + // Note: The Google Cloud console works only with the default serving config. + // Additional ServingConfigs can be created and managed only via the API. + // + // A maximum of 100 + // [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]s are allowed + // in an [Engine][google.cloud.discoveryengine.v1.Engine], otherwise a + // RESOURCE_EXHAUSTED error is returned. + rpc CreateServingConfig(CreateServingConfigRequest) returns (ServingConfig) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/dataStores/*}/servingConfigs" + body: "serving_config" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs" + body: "serving_config" + } + additional_bindings { + post: "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs" + body: "serving_config" + } + }; + option (google.api.method_signature) = + "parent,serving_config,serving_config_id"; + } + + // Deletes a ServingConfig. + // + // Returns a NOT_FOUND error if the ServingConfig does not exist. + rpc DeleteServingConfig(DeleteServingConfigRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}" + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}" + } + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}" + } + }; + option (google.api.method_signature) = "name"; + } // Updates a ServingConfig. // @@ -57,6 +103,59 @@ service ServingConfigService { }; option (google.api.method_signature) = "serving_config,update_mask"; } + + // Gets a ServingConfig. + // + // Returns a NotFound error if the ServingConfig does not exist. + rpc GetServingConfig(GetServingConfigRequest) returns (ServingConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists all ServingConfigs linked to this dataStore. + rpc ListServingConfigs(ListServingConfigsRequest) + returns (ListServingConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/dataStores/*}/servingConfigs" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs" + } + additional_bindings { + get: "/v1/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request for CreateServingConfig method. +message CreateServingConfigRequest { + // Required. Full resource name of parent. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; + + // Required. The ServingConfig to create. + ServingConfig serving_config = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the ServingConfig, which will become the final + // component of the ServingConfig's resource name. + // + // This value should be 4-63 characters, and valid characters + // are /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + string serving_config_id = 3 [(google.api.field_behavior) = REQUIRED]; } // Request for UpdateServingConfig method. @@ -73,3 +172,57 @@ message UpdateServingConfigRequest { // If not set, all supported fields are updated. google.protobuf.FieldMask update_mask = 2; } + +// Request for DeleteServingConfig method. +message DeleteServingConfigRequest { + // Required. The resource name of the ServingConfig to delete. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; +} + +// Request for GetServingConfig method. +message GetServingConfigRequest { + // Required. The resource name of the ServingConfig to get. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; +} + +// Request for ListServingConfigs method. +message ListServingConfigsRequest { + // Required. Full resource name of the parent resource. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; + + // Optional. Maximum number of results to return. If unspecified, defaults + // to 100. If a value greater than 100 is provided, at most 100 results are + // returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListServingConfigs` call. + // Provide this to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for ListServingConfigs method. +message ListServingConfigsResponse { + // All the ServingConfigs for a given dataStore. + repeated ServingConfig serving_configs = 1; + + // Pagination token, if not returned indicates the last page. + string next_page_token = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session.proto index cb333fe95111..c626cf1de91c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ message Session { pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}" pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}" pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}" plural: "sessions" singular: "session" }; @@ -83,6 +84,9 @@ message Session { // functionality. map query_config = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether this turn is a live turn. + bool live = 20 [(google.api.field_behavior) = OPTIONAL]; } // Enumeration of the state of the session. @@ -128,6 +132,13 @@ message Session { // Optional. Whether the session is pinned, pinned session will be displayed // on the top of the session list. bool is_pinned = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Full resource name of an in-progress AsyncAssist operation for + // this session, e.g. + // `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`. + // Set when the operation starts and cleared when it finishes. + string pending_async_assist_operation_id = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines a user inputed query. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session_service.proto index f33695efd4df..aa606afea97c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/session_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service SessionService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a Session. // diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine.proto index f2f89901a71a..228768a4943d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto index 7bb19c4a2cfe..a45907a31328 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/site_search_engine_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service SiteSearchEngineService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets the // [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine]. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto index 7c74f3dee6f1..dc703c4330bd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1/common.proto"; +import "google/cloud/discoveryengine/v1/feedback.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -43,7 +44,6 @@ message UserEvent { // * `view-item-list`: View of a panel or ordered list of Documents. // * `view-home-page`: View of the home page. // * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - // * `add-feedback`: Add a user feedback. // // Retail-related values: // @@ -179,8 +179,9 @@ message UserEvent { // to this field. string attribution_token = 8; - // The filter syntax consists of an expression language for constructing a - // predicate from one or more fields of the documents being filtered. + // Optional. The filter syntax consists of an expression language for + // constructing a predicate from one or more fields of the documents being + // filtered. // // One example is for `search` events, the associated // [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain @@ -196,7 +197,7 @@ message UserEvent { // // The value must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - string filter = 9; + string filter = 9 [(google.api.field_behavior) = OPTIONAL]; // List of [Document][google.cloud.discoveryengine.v1.Document]s associated // with this user event. @@ -246,7 +247,7 @@ message UserEvent { // Currently, this field is restricted to at most one ID. repeated string promotion_ids = 16; - // Extra user event features to include in the recommendation model. + // Optional. Extra user event features to include in the recommendation model. // These attributes must NOT contain data that needs to be parsed or processed // further, e.g. JSON or other encodings. // @@ -272,7 +273,8 @@ message UserEvent { // arrive // at the site by coming to the site directly, coming through Google // search, or in other ways. - map attributes = 17; + map attributes = 17 + [(google.api.field_behavior) = OPTIONAL]; // Media-specific info. MediaInfo media_info = 18; @@ -280,6 +282,16 @@ message UserEvent { // Optional. List of panels associated with this event. // Used for page-level impression data. repeated PanelInfo panels = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is optional except for the `add-feedback` event types. + Feedback feedback = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents the entity for customers that may run multiple + // different entities, domains, sites or regions, for example, `Google US`, + // `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that + // you set `entity` to get better per-entity search, completion, and + // prediction results. + string entity = 25 [(google.api.field_behavior) = OPTIONAL]; } // Detailed page information. @@ -327,7 +339,7 @@ message PageInfo { // Detailed search information. message SearchInfo { - // The user's search query. + // Optional. The user's search query. // // See // [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query] @@ -341,7 +353,7 @@ message SearchInfo { // [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category] // is required for `search` events. Other event types should not set this // field. Otherwise, an `INVALID_ARGUMENT` error is returned. - string search_query = 1; + string search_query = 1 [(google.api.field_behavior) = OPTIONAL]; // The order in which products are returned, if applicable. // @@ -373,9 +385,9 @@ message SearchInfo { // Detailed completion information including completion attribution token and // clicked completion info. message CompletionInfo { - // End user selected + // Optional. End user selected // [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]. - string selected_suggestion = 1; + string selected_suggestion = 1 [(google.api.field_behavior) = OPTIONAL]; // End user selected // [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion] diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto index c78f9614f6c7..4a254007c737 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_event_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service UserEventService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Writes a single user event. rpc WriteUserEvent(WriteUserEventRequest) returns (UserEvent) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license.proto index 092fb996da1a..98b9936b81ef 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -52,6 +52,9 @@ message UserLicense { // Users already logged in but cannot get license assigned will be assigned // NO_LICENSE state(License could be unassigned by admin). NO_LICENSE_ATTEMPTED_LOGIN = 4; + + // User is blocked from assigning a license. + BLOCKED = 5; } // Required. Immutable. The user principal of the User, could be email address @@ -67,7 +70,7 @@ message UserLicense { string user_profile = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. License assignment state of the user. - // If the user is assigned with a license config, the user loggin will be + // If the user is assigned with a license config, the user login will be // assigned with the license; // If the user's license assignment state is unassigned or unspecified, no // license config will be associated to the user; @@ -96,3 +99,12 @@ message UserLicense { google.protobuf.Timestamp last_login_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Stats about users' licenses. +message LicenseConfigUsageStats { + // Required. The LicenseConfig name. + string license_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of licenses used. + int64 used_license_count = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license_service.proto index 6c3c2d0f8cc9..e9466b33a8ff 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_license_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; service UserLicenseService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Lists the User Licenses. rpc ListUserLicenses(ListUserLicensesRequest) @@ -50,6 +52,17 @@ service UserLicenseService { option (google.api.method_signature) = "parent"; } + // Lists all the + // [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]s + // associated with the project. + rpc ListLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest) + returns (ListLicenseConfigsUsageStatsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/userStores/*}/licenseConfigsUsageStats" + }; + option (google.api.method_signature) = "parent"; + } + // Updates the User License. // This method is used for batch assign/unassign licenses to users. rpc BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest) @@ -68,7 +81,8 @@ service UserLicenseService { // Request message for // [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses]. message ListUserLicensesRequest { - // Required. The parent [UserStore][] resource name, format: + // Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore] + // resource name, format: // `projects/{project}/locations/{location}/userStores/{user_store_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -78,8 +92,8 @@ message ListUserLicensesRequest { ]; // Optional. Requested page size. Server may return fewer items than - // requested. If unspecified, defaults to 10. The maximum value is 50; values - // above 50 will be coerced to 50. + // requested. If unspecified, defaults to 100. The maximum value is 1000; + // values above 1000 will be coerced to 1000. // // If this field is negative, an INVALID_ARGUMENT error is returned. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -96,7 +110,8 @@ message ListUserLicensesRequest { // Supported fields: // // * `license_assignment_state` - // + // * `user_principal` + // * // Examples: // // * `license_assignment_state = ASSIGNED` to list assigned user licenses. @@ -105,7 +120,27 @@ message ListUserLicensesRequest { // who attempted login but no license assigned. // * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter // out users who attempted login but no license assigned. + // * `user_principal = user1@example.com` to list user license for + // `user1@example.com`. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order in which the + // [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s are listed. The + // value must be a comma-separated list of fields. Default sorting order is + // ascending. To specify descending order for a field, append a " desc" + // suffix. Redundant space characters in the syntax are insignificant. + // + // Supported fields (only `user_principal` is supported for now): + // + // * `user_principal` + // + // If not set, the default ordering is by `user_principal`. + // + // Examples: + // + // * `user_principal` to order by `user_principal` in ascending order. + // * `user_principal desc` to order by `user_principal` in descending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -120,6 +155,29 @@ message ListUserLicensesResponse { string next_page_token = 2; } +// Request message for +// [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats] +// method. +message ListLicenseConfigsUsageStatsRequest { + // Required. The parent branch resource name, such as + // `projects/{project}/locations/{location}/userStores/{user_store_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/UserStore" + } + ]; +} + +// Response message for +// [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1.UserLicenseService.ListLicenseConfigsUsageStats] +// method. +message ListLicenseConfigsUsageStatsResponse { + // All the customer's + // [LicenseConfigUsageStats][google.cloud.discoveryengine.v1.LicenseConfigUsageStats]. + repeated LicenseConfigUsageStats license_config_usage_stats = 1; +} + // Request message for // [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses] // method. @@ -140,11 +198,12 @@ message BatchUpdateUserLicensesRequest { // Required. The source of the input. oneof source { - // The inline source for the input content for document embeddings. + // The inline source for the input content for license assignment. InlineSource inline_source = 2; } - // Required. The parent [UserStore][] resource name, format: + // Required. The parent [UserStore][google.cloud.discoveryengine.v1.UserStore] + // resource name, format: // `projects/{project}/locations/{location}/userStores/{user_store_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store.proto new file mode 100644 index 000000000000..61185524a783 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store.proto @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserStoreProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Configures metadata that is used for End User entities. +message UserStore { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/UserStore" + pattern: "projects/{project}/locations/{location}/userStores/{user_store}" + }; + + // Immutable. The full resource name of the User Store, in the format of + // `projects/{project}/locations/{location}/userStores/{user_store}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The display name of the User Store. + string display_name = 2; + + // Optional. The default subscription + // [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] for the + // UserStore, if + // [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1.UserStore.enable_license_auto_register] + // is true, new users will automatically register under the default + // subscription. + // + // If default [LicenseConfig][google.cloud.discoveryengine.v1.LicenseConfig] + // doesn't have remaining license seats left, new users will not be assigned + // with license and will be blocked for Vertex AI Search features. This is + // used if `license_assignment_tier_rules` is not configured. + string default_license_config = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; + + // Optional. Whether to enable license auto register for users in this User + // Store. If true, new users will automatically register under the default + // license config as long as the default license config has seats left. + bool enable_license_auto_register = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to enable license auto update for users in this User + // Store. If true, users with expired licenses will automatically be updated + // to use the default license config as long as the default license config has + // seats left. + bool enable_expired_license_auto_update = 7 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store_service.proto new file mode 100644 index 000000000000..69dea30d0ad4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/user_store_service.proto @@ -0,0 +1,87 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/user_store.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserStoreServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Service for managing User Stores. +service UserStoreService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Gets the User Store. + rpc GetUserStore(GetUserStoreRequest) returns (UserStore) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/userStores/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the User Store. + rpc UpdateUserStore(UpdateUserStoreRequest) returns (UserStore) { + option (google.api.http) = { + patch: "/v1/{user_store.name=projects/*/locations/*/userStores/*}" + body: "user_store" + }; + option (google.api.method_signature) = "user_store,update_mask"; + } +} + +// Request message for +// [UserStoreService.GetUserStore][google.cloud.discoveryengine.v1.UserStoreService.GetUserStore] +message GetUserStoreRequest { + // Required. The name of the User Store to get. + // Format: + // `projects/{project}/locations/{location}/userStores/{user_store_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/UserStore" + } + ]; +} + +// Request message for +// [UserStoreService.UpdateUserStore][google.cloud.discoveryengine.v1.UserStoreService.UpdateUserStore] +// method. +message UpdateUserStoreRequest { + // Required. The User Store to update. + // Format: + // `projects/{project}/locations/{location}/userStores/{user_store_id}` + UserStore user_store = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config.proto new file mode 100644 index 000000000000..ea66d3891c48 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config.proto @@ -0,0 +1,1060 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; +import "google/cloud/discoveryengine/v1/data_connector.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "WidgetConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Selects which "view" of the model selector configuration the backend +// computes for `WidgetConfig.UiSettings.ModelConfigInfo`. +// +// The end-user views (`END_USER_WEB`, `END_USER_MOBILE`) return the +// user-facing model selector for their respective surface; the `ADMIN` view +// returns the set surfaced on the Cloud Console admin "Feature Control" page, +// with `ModelConfigInfo.ResolvedModel.admin_view` populated on each entry. +enum ModelInfoView { + // Not specified. + MODEL_INFO_VIEW_UNSPECIFIED = 0; + + // The end-user web model selector view. + END_USER_WEB = 1; + + // The Cloud Console admin "Feature Control" view that displays model toggles. + // Returns admin-surfaced models with `ResolvedModel.admin_view` populated. + ADMIN = 2; + + // The end-user model selector view for the Gemini Enterprise mobile app. + // Returns only mobile-surfaced models, with the mobile default selected. + // Set explicitly by the mobile client. + END_USER_MOBILE = 3; +} + +// WidgetConfig captures configs at the Widget level. +message WidgetConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/WidgetConfig" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/widgetConfigs/{widget_config}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/widgetConfigs/{widget_config}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/widgetConfigs/{widget_config}" + }; + + // Facet field that maps to a UI Component. + message UIComponentField { + // The visibility of the field on different type of devices. + enum DeviceVisibility { + // Default value when not specified. Server returns INVALID_ARGUMENT if + // used in requests. + DEVICE_VISIBILITY_UNSPECIFIED = 0; + + // The UI component is visible on Mobile devices. + MOBILE = 1; + + // The UI component is visible on Browser-based client. + DESKTOP = 2; + } + + // Required. Registered field name. The format is `field.abc`. + string field = 1 [(google.api.field_behavior) = REQUIRED]; + + // The field visibility on different types of devices. + repeated DeviceVisibility device_visibility = 2; + + // The template to customize how the field is displayed. An example value + // would be a string that looks like: "Price: {value}". + string display_template = 3; + } + + // Facet fields that store the mapping of fields to end user widget + // appearance. + message FacetField { + // Required. Registered field name. The format is `field.abc`. + string field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The field name that end users will see. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // UI component configuration for data store. + message DataStoreUiConfig { + // The name of the data store. It should be data store resource name + // Format: + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + // For APIs under + // [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as + // [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig], + // the project number and location part is erased in this field. + string name = 1; + + // Output only. the identifier of the data store, used for widget service. + // For now it refers to data_store_id, in the future we will migrate the + // field to encrypted data store name UUID. + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Facet fields that store the mapping of fields to end user widget + // appearance. + repeated FacetField facet_field = 3; + + // The key is the UI component. Mock. Currently supported `title`, + // `thumbnail`, `url`, `custom1`, `custom2`, `custom3`. + // + // The value is the name of the field along with its device visibility. + // + // The 3 custom fields are optional and can be added or removed. `title`, + // `thumbnail`, `url` are required UI components that cannot be removed. + map fields_ui_components_map = 4; + } + + // Read-only data store component that contains data stores fields that may be + // used for filtering, it's the child of `CollectionComponent`. + message DataStoreComponent { + // The type of the data store config. + enum DataStoreConfigType { + // Default value. This value is unused. + DATA_STORE_CONFIG_TYPE_UNSPECIFIED = 0; + + // The data store is connected to AlloyDB + ALLOW_DB_CONFIG = 1; + + // The data store is a connected to a third party data source. + THIRD_PARTY_OAUTH_CONFIG = 2; + + // The data store is a connected to NotebookLM Enterprise. + NOTEBOOKLM_CONFIG = 3; + } + + // The name of the data store. It should be data store resource name + // Format: + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + // For APIs under + // [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as + // [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig], + // the project number and location part is erased in this field. + string name = 1; + + // Output only. the identifier of the data store, used for widget service. + // For now it refers to data_store_id, in the future we will migrate the + // field to encrypted data store name UUID. + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The display name of the data store. + string display_name = 3; + + // The name of the entity, retrieved from + // `Collection.data_connector.entities.entityName`. + string entity_name = 4; + + // Output only. The type of the data store config. + DataStoreConfigType data_store_config_type = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Read-only connector in CollectionComponent auth state. + message ConnectorAuthState { + // The authorization state of the data connector. + enum AuthState { + // Default value. Also returned for synthetic placeholder + // `CollectionComponent` entries surfaced by + // `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` (SaaS / + // Business only) — those entries represent connectors the caller may + // attach but has not yet attached. + AUTH_STATE_UNSPECIFIED = 0; + + // The user has authorized the data connector. + AUTHORIZED = 1; + + // The user authorization for the data connector has expired. + EXPIRED = 2; + + // The user can still make search requests but actions need to be enabled. + ACTIONS_DISABLED = 3; + + // The data connector does not require any authorization. Also used for + // placeholder entries whose underlying connector does not require user + // OAuth. + NO_AUTH = 4; + } + + // Output only. The authorization state of the data connector. + AuthState auth_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The authorization uri for the data connector. + // + // For synthetic placeholder `CollectionComponent` entries (returned by + // `LookupWidgetConfig` with `view = WITH_AVAILABLE_CONNECTORS` on SaaS / + // Business engines), this field is left empty. The widget should call + // `WidgetService.WidgetBuildAuthorizationUrl` on the user's "Connect" + // click to obtain a freshly-built authorization URL. + string authorization_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The authorization state update timestamp. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Describes the batch authorization status for a batch_authorization_group. + message BatchAuthStatus { + // Output only. It is the batch authorization group placeholder full + // resource name. This is not a real data connector resource. E.g. + // projects/{project}/locations/{location}/collections/oauth_placeholder_google_workspace/dataStores/dataConnector. + string placeholder = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The batch authorization group the placeholder belongs to. + string batch_authorization_group = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current authorization state for this connector. + ConnectorAuthState connector_auth_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Read-only collection component that contains data store collections fields + // that may be used for filtering. + // + // For SaaS / Business engines, when `LookupWidgetConfig` is called with + // `view = WITH_AVAILABLE_CONNECTORS`, instances of this message are also + // used to represent synthetic placeholder entries for connectors the caller + // may attach but has not yet attached. Placeholder entries have + // `connector_auth_state.auth_state == AUTH_STATE_UNSPECIFIED` (or + // `NO_AUTH`), an empty `connector_auth_state.authorization_uri` (the + // widget calls `WidgetBuildAuthorizationUrl` on the user's "Connect" + // click), and synthetic placeholder values in `name` / `id` (see field + // comments). Fields that only make sense for materialized connectors + // (`data_store_components`, `tenant`, `action_connector`) are left unset + // for placeholder entries. + message CollectionComponent { + // The name of the collection. It should be collection resource name. + // Format: + // `projects/{project}/locations/{location}/collections/{collection_id}`. + // For APIs under + // [WidgetService][google.cloud.discoveryengine.v1.WidgetService], such as + // [WidgetService.LookupWidgetConfig][google.cloud.discoveryengine.v1.WidgetService.LookupWidgetConfig], + // the project number and location part is erased in this field. + // + // For synthetic placeholder entries (see message-level comment) this + // carries a synthetic placeholder collection id that does not correspond + // to a real collection. Callers must not attempt to resolve / GET this + // resource until the user authorizes the connector. + string name = 1; + + // Output only. the identifier of the collection, used for widget service. + // For now it refers to collection_id, in the future we will migrate the + // field to encrypted collection name UUID. + // + // For synthetic placeholder entries (see message-level comment) this is a + // synthetic placeholder id, not a real collection_id. + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The display name of the collection. + string display_name = 3; + + // For the data store collection, list of the children data stores. + repeated DataStoreComponent data_store_components = 4; + + // The name of the data source, retrieved from + // `Collection.data_connector.data_source`. + string data_source = 5; + + // Output only. The version of the connector definition backing this + // collection, mirroring `DataConnector.data_source_version`. + double data_source_version = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the data source. + string data_source_display_name = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end-user-facing display name of the data source, sourced + // from `ConnectorSource.end_user_display_name`. When unset, clients fall + // back to `data_source_display_name`. + string data_source_end_user_display_name = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The icon link of the connector source. + string connector_icon_link = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The auth uri of the connector source. + ConnectorAuthState connector_auth_state = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. User-facing connector metadata (`title`, `description`, + // `short_description`, `author`, `note`), retrieved from the registry + // `ConnectorSource.metadata` (joined by data source). Shown on the + // connector detail page. + DataConnector.ConnectorMetadata metadata = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether this is a first-party (Google-owned) connector, as + // opposed to a third-party connector. + bool is_first_party = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version-independent label of the connector backing this + // collection, mirroring `DataConnector.tag`. Unlike the version-pinned data + // store id it survives a connector version upgrade, so an upgraded + // connector keeps the same tag. + // + // Not a unique key. As `DataConnector.tag` documents, several connectors + // may share a tag under the same (project, location, collection, + // data_source), and tag-based lookup resolves to the one with the greatest + // create_time. Clients must not treat this as a connector identifier. + // + // Empty when the connector was created before the tag-write launch, and + // for synthetic placeholder entries, which have no underlying + // `DataConnector`. Populated only when + // `ConnectorsFeature.enable_connector_tag` is on. + string tag = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Describes general widget (or web app) UI settings as seen + // in the cloud console UI configuration page. + message UiSettings { + // Describes configuration for generative answer. + message GenerativeAnswerConfig { + // Source of image returned in the answer. + enum ImageSource { + // Unspecified image source (multimodal feature is disabled by default) + IMAGE_SOURCE_UNSPECIFIED = 0; + + // Behavior when service determines the pick from all available sources. + ALL_AVAILABLE_SOURCES = 1; + + // Include image from corpus in the answer. + CORPUS_IMAGE_ONLY = 2; + + // Triggers figure generation in the answer. + FIGURE_GENERATION_ONLY = 3; + } + + // The number of top results to generate the answer from. Up to 10. + int32 result_count = 3; + + // The model version used to generate the answer. + string model_version = 4; + + // Text at the beginning of the prompt that instructs the model that + // generates the answer. + string model_prompt_preamble = 5; + + // Max rephrase steps. + // The max number is 5 steps. + // If not set or set to < 1, it will be set to 1 by default. + int32 max_rephrase_steps = 6; + + // Language code for Summary. Use language tags defined by + // [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). + // Note: This is an experimental feature. + string language_code = 7; + + // Whether generated answer contains suggested related questions. + bool disable_related_questions = 8; + + // Optional. Specifies whether to filter out queries that are not + // answer-seeking. The default value is `false`. + // + // No answer is returned if the search query is classified as a + // non-answer seeking query. If this field is set to `true`, we skip + // generating answers for non-answer seeking queries and return + // fallback messages instead. + bool ignore_non_answer_seeking_query = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies whether to filter out queries that are adversarial. + bool ignore_adversarial_query = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies whether to filter out queries that are not relevant + // to the content. + bool ignore_low_relevant_content = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source of image returned in the answer. + ImageSource image_source = 12 [(google.api.field_behavior) = OPTIONAL]; + } + + // The resolved, server-side view of model selector configuration for the + // end-user. The backend computes this per-request by applying, in order: + // Mendel flag evaluation, regional availability rules based on the + // engine's location, and admin-panel overrides from `model_configs`. + // + // The backend is the single source of truth for this configuration; + // clients should render `resolved_models` directly in the model selector + // dropdown, in the order provided, without applying their own filtering, + // ordering, or localization. + message ModelConfigInfo { + // A single model that is resolved to be available to the end-user in the + // model selector, with all of its localized display metadata. + message ResolvedModel { + // Admin-surface metadata. Populated only when the request originates + // from the Cloud Console admin "Feature Control" page; left unset for + // end-user surfaces (Web, Mobile). Lets the admin page render its + // toggle table directly from the backend instead of a hardcoded + // client-side registry. + message AdminView { + // Output only. Whether the admin can toggle this model's + // enabled/disabled state via `UiSettings.model_configs`. Derived from + // `MODEL_TAG_ADMIN_OVERRIDABLE`. When false, the model is "forced" + // and its state is governed by `enabled_by_default`. + bool admin_overridable = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the model is enabled when the admin has set no + // explicit override in `UiSettings.model_configs`. Derived from + // `MODEL_TAG_ENABLED_BY_DEFAULT`. + bool enabled_by_default = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Regions where this model is launched. + repeated string regions = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Unique identifier of the model + // (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). + // + // This is the same identifier that clients pass back to the assistant + // service to select this model. Virtual / "pseudo" models (e.g. + // `gemini-fast`) are also valid values here; they are resolved to the + // underlying concrete model on the backend. + string model_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Localized display name of the model (e.g. `Gemini 3.1 + // Pro`). Localized server-side based on the + // [LookupWidgetConfigRequest.language_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.language_code] + // and + // [LookupWidgetConfigRequest.region_code][google.cloud.discoveryengine.v1.LookupWidgetConfigRequest.region_code] + // of the request. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. GM3-compatible icon token associated with the model + // (e.g. `rocket_launch`, `bolt`, `graph_5`). + string icon = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Localized description text (e.g. `State-of-the-art + // reasoning`). Localized using the same locale as `display_name`. + string description = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the model is currently in preview. Clients + // should surface this via a "Preview" badge in the selector UI. + bool is_preview = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Short label shown in the compact selector bar chip (e.g. + // `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x + // Flash`). Falls back to `display_name` when the backend registry does + // not specify a distinct short label. + string label = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Admin-surface metadata; populated only for the Console + // admin Feature Control page (see `AdminView`). Unset for end-user + // surfaces. + AdminView admin_view = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether this model should be promoted in the GE chat + // homepage banner. + bool promoted = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Absolute URL of a brand mark to render instead of + // `icon`, for models whose vendor logo is not a GM3 glyph. + // + // `icon` stays populated as the fallback, so a client that does not + // render images, or that fails to fetch this one, shows the glyph + // instead of nothing. + string icon_url = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Groups models that render together in the selector. + // Models sharing a value form one group; empty means the model belongs + // to no group. + // + // Compared for equality only -- never parsed, and never shown to a + // user, so it is not localized. + string family = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The list of models that are available to the end-user in + // the model selector, in the order in which they should be displayed. + repeated ResolvedModel resolved_models = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The `model_id` of the model that should be selected by + // default in the model selector when the end-user has not made an + // explicit choice. The value is always one of the `model_id`s present in + // `resolved_models`. + string default_model_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The `model_id` a client must send when the end-user picks + // the "Auto" entry (the empty `model_id`). + // + // Populated only for surfaces known to have no true "Auto" mode, where + // leaving the model unset would fall back to a platform default rather + // than a backend-chosen model. Empty on every other surface, where + // "Auto" is resolved server-side, and when none of the surface's ranked + // models is available. When set, it is always one of the non-empty + // `model_id`s present in `resolved_models`. + string auto_model_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // SearchAddonSpec is used to disable add-ons for search. By default, if + // this field is not specified, add-ons are enabled wherever applicable. + message SearchAddonSpec { + // Optional. If true, semantic add-on is disabled. Semantic add-on + // includes embeddings and jetstream. + bool semantic_add_on_disabled = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, disables event re-ranking and personalization to + // optimize KPIs & personalize results. + bool kpi_personalization_add_on_disabled = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, generative answer add-on is disabled. Generative + // answer add-on includes natural language to filters and simple answers. + bool generative_answer_add_on_disabled = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes interaction type. + enum InteractionType { + // Not specified. Defaults to SEARCH_ONLY. + INTERACTION_TYPE_UNSPECIFIED = 0; + + // Search without a generative answer. + SEARCH_ONLY = 1; + + // Search with the generative answer. + SEARCH_WITH_ANSWER = 2; + + // Search with the generative answer that supports follow up questions. + // Also known as multi-turn search. + SEARCH_WITH_FOLLOW_UPS = 3; + } + + // The state of the feature for the engine. + enum FeatureState { + // The feature state is unspecified. + FEATURE_STATE_UNSPECIFIED = 0; + + // The feature is turned on to be accessible. + FEATURE_STATE_ON = 1; + + // The feature is turned off to be inaccessible. + FEATURE_STATE_OFF = 2; + } + + // The state of the model for the engine. + enum ModelState { + // The model state is unspecified. + MODEL_STATE_UNSPECIFIED = 0; + + // The model is enabled by admin. + MODEL_ENABLED = 1; + + // The model is disabled by admin. + MODEL_DISABLED = 2; + } + + // Describes widget (or web app) interaction type + InteractionType interaction_type = 1; + + // Describes generative answer configuration. + GenerativeAnswerConfig generative_answer_config = 2; + + // Controls whether result extract is display and how (snippet or + // extractive answer). Default to no result if unspecified. + ResultDisplayType result_description_type = 3; + + // Whether or not to enable autocomplete. + bool enable_autocomplete = 4; + + // Whether to enable safe search. + bool enable_safe_search = 5; + + // Turn on or off collecting the search result quality feedback from end + // users. + bool enable_quality_feedback = 6; + + // Whether to enable search-as-you-type behavior for the search widget. + bool enable_search_as_you_type = 7; + + // The default ordering for search results if specified. + // + // Used to set SearchRequest#order_by on applicable requests. + // https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body + string default_search_request_order_by = 8; + + // Per data store configuration. + repeated DataStoreUiConfig data_store_ui_configs = 9; + + // If set to true, the widget will not collect user events. + bool disable_user_events_collection = 10; + + // If set to true, the widget will enable visual content summary on + // applicable search requests. Only used by healthcare search. + bool enable_visual_content_summary = 11; + + // Optional. If set to true, the widget will enable people search. + bool enable_people_search = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the widget will enable the create agent button. + bool enable_create_agent_button = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Feature config for the engine to opt in or opt out of + // features. Supported keys: + // + // * `agent-gallery` + // * `no-code-agent-builder` + // * `prompt-gallery` + // * `model-selector` + // * `notebook-lm` + // * `people-search` + // * `people-search-org-chart` + // * `bi-directional-audio` + // * `speech-to-text` + // * `feedback` + // * `session-sharing` + // * `personalization-memory` + // * `personalization-suggested-highlights` + // * `mobile-app-access` + // * `disable-agent-sharing` + // * `disable-image-generation` + // * `disable-video-generation` + // * `disable-onedrive-upload` + // * `disable-talk-to-content` + // * `disable-google-drive-upload` + // * `disable-welcome-emails` + // * `disable-canvas` + // * `canvas-workspace` + // * `canvas-app-builder` + // * `skills` + // * `skill-sharing` + // * `skill-sharing-without-admin-approval` + // * `disable-projects` + // * `sobi` + // * `enable-end-user-sharing-with-groups` + // * `single-agent-orchestration` + // * `multi-agent-orchestration` + // * `cross-product-intelligence` + // * `workflow-agents` + // * `in-app-notifications` + // * `code-extraction` + // * `remote-vm` + // * `license-tier-badge` + map features = 30 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Maps a model name to its specific configuration for this + // engine. This allows admin users to turn on/off individual models. This + // only stores models whose states are overridden by the admin. + // + // When the state is unspecified, or model_configs is empty for this + // model, the system will decide if this model should be available or not + // based on the default configuration. For example, a preview model + // should be disabled by default if the admin has not chosen to enable it. + map model_configs = 45 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. SearchAddonSpec is used to disable add-ons for search. + // This field is only supported for search requests. + SearchAddonSpec search_addon_spec = 31 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Whether the OneDrive file picker is available to end-users. + // Computed by the backend from admin connector enablement (Business + // edition) or attached OneDrive connectors (Enterprise edition), combined + // with the existing `disable-onedrive-upload` admin feature. + // + // Declared `optional` so an explicitly-computed `false` is serialized with + // field presence. A plain proto3 `bool` drops a default `false` on the + // wire, which prevented clients from distinguishing "picker disabled" + // (`false`) from "field not populated" (unset). + optional bool onedrive_picker_enabled = 48 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the Google Drive file picker is available to + // end-users. Declared `optional` for the same field-presence reason as + // `onedrive_picker_enabled` above. + optional bool google_drive_picker_enabled = 49 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resolved, server-side view of model selector + // configuration. Holds both the ordered list of models that should appear + // in the model selector dropdown and the model that should be selected by + // default. + // + // Clients should render this directly without applying their own + // filtering, ordering, or localization. The legacy `model_configs` map + // above is retained for backward compatibility with clients that have not + // yet migrated to consuming this field. + ModelConfigInfo model_config_info = 50 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether to show the admin-configured display name for data + // connectors in the widget sources UI (instead of the connector kind). + // Opt-in; defaults to false. + bool source_admin_display_name_enabled = 51 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes widget access settings. + message AccessSettings { + // Whether public unauthenticated access is allowed. + bool allow_public_access = 1; + + // List of domains that are allowed to integrate the search widget. + repeated string allowlisted_domains = 2; + + // Whether web app access is enabled. + bool enable_web_app = 3; + + // Optional. The workforce identity pool provider used to access the widget. + string workforce_identity_pool_provider = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Language code for user interface. Use language tags defined by + // [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). + // If unset, the default language code is "en-US". + string language_code = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Options to store an image. + message Image { + // Various ways to store an image, i.e., as a URL or base64 encoded string. + oneof storage_method { + // Image URL. + string url = 1; + } + } + + // Describes widget UI branding settings. + message UiBrandingSettings { + // Logo image. + Image logo = 1; + } + + // Describes the homepage setting of the widget. It includes all homepage + // related settings and configurations, such as shortcuts. + message HomepageSetting { + // Describes an entity of shortcut (aka pinned content) on the homepage. + // The home page will render these shortcuts in the same order as what the + // API returns. If a customer wants to reorder or remove a shortcut, the UI + // should always provide the new full list of shortcuts. + message Shortcut { + // Optional. Title of the shortcut. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Icon URL of shortcut. + Image icon = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Destination URL of shortcut. + string destination_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The shortcuts to display on the homepage. + repeated Shortcut shortcuts = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Describes the assistant settings of the widget. + message AssistantSettings { + // The type of web grounding to use. + enum WebGroundingType { + // Default, unspecified setting. This is the same as disabled. + WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + + // Web grounding is disabled. + WEB_GROUNDING_TYPE_DISABLED = 1; + + // Grounding with Google Search is enabled. + WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + + // Grounding with Enterprise Web Search is enabled. + WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + } + + // Optional. The type of web grounding to use. + WebGroundingType web_grounding_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. This field controls the default web grounding toggle for end + // users if `web_grounding_type` is set to + // `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or + // `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. + // By default, this field is set to false. If `web_grounding_type` is + // `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or + // `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web + // grounding enabled by default on UI. If true, grounding toggle will be + // disabled by default on UI. End users can still enable web grounding in + // the UI if web grounding is enabled. + bool default_web_grounding_toggle_off = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. Whether to disable user location context. + bool disable_location_context = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + } + + // Customer provided configurations. + message CustomerProvidedConfig { + // Customer type. + enum CustomerType { + // Default customer type. + DEFAULT_CUSTOMER = 0; + + // Government customer type. Some features are disabled for government + // customers due to legal requirements. + GOVERNMENT_CUSTOMER = 1; + } + + // Assured Workloads compliance level of the customer's project. + // + // Not frozen: further levels may be added as more compliance regimes are + // supported, so a client must treat an unrecognized value as + // government-restricted rather than as unrestricted. + enum ComplianceLevel { + // The project has no Assured Workloads compliance level, or reports one + // that this API version does not model. + COMPLIANCE_LEVEL_UNSPECIFIED = 0; + + // FedRAMP High compliance level. + COMPLIANCE_LEVEL_FEDRAMP_HIGH = 1; + + // Impact Level 4 (IL4) compliance level. + COMPLIANCE_LEVEL_IL4 = 2; + + // Impact Level 5 (IL5) compliance level. + COMPLIANCE_LEVEL_IL5 = 3; + } + + // Customer type. + CustomerType customer_type = 1; + + // Output only. The customer's Assured Workloads compliance level. + // + // `customer_type` collapses every compliance level into a single + // `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one + // specific level rather than on government status as a whole must read + // this field instead. + ComplianceLevel compliance_level = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Represents a single reusable computational or logical unit. + message Node { + // Identifies the type of the node in the agent flow. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // Trigger type. + TRIGGER = 1; + + // Flow type. + FLOW = 2; + + // Connector type. + CONNECTOR = 3; + } + + // Output only. A human readable name for the node. + string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An identifier or URL pointing to an icon representing this + // node type. + string icon_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A detailed description of what the node does. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The parameter schema of the tool. + // + // This schema is expected to conform to the OpenAPI Schema standard (see + // https://spec.openapis.org/oas/v3.0.3.html and AIP-146). It describes the + // expected structure of the parameters that this node accepts. + google.protobuf.Struct parameter_schema = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The output schema of the tool. + // + // This schema is expected to conform to the OpenAPI Schema standard (see + // https://spec.openapis.org/oas/v3.0.3.html/ and AIP-146). It describes the + // structure of the output produced by this node. + google.protobuf.Struct output_schema = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the node. + Type type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The type of the widget's parent data store. + enum DataStoreType { + // Unspecified data store type. + DATA_STORE_TYPE_UNSPECIFIED = 0; + + // The parent data store contains a site search engine. + SITE_SEARCH = 1; + + // The parent data store contains a search engine for structured data. + STRUCTURED = 2; + + // The parent data store contains a search engine for unstructured data. + UNSTRUCTURED = 3; + + // The parent data store is served for blended search with multiple data + // stores. + BLENDED = 4; + } + + // The type of result to display in the ucs widget. + enum ResultDisplayType { + // Unspecified display type (default to showing snippet). + RESULT_DISPLAY_TYPE_UNSPECIFIED = 0; + + // Display results from the snippet field. + SNIPPET = 1; + + // Display results from extractive answers field. + EXTRACTIVE_ANSWER = 2; + } + + // Immutable. The full resource name of the widget config. + // Format: + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The human readable widget config display name. Used in Discovery + // UI. + // + // This field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp the + // [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp the + // [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] was updated. + google.protobuf.Timestamp update_time = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the parent data store. + DataStoreType data_store_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unique obfuscated identifier of a + // [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]. + string config_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Specifies the solution type that this WidgetConfig can + // be used for. + SolutionType solution_type = 14 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The industry vertical that the WidgetConfig registers. + // The WidgetConfig industry vertical is based on the associated + // [Engine][google.cloud.discoveryengine.v1.Engine]. + IndustryVertical industry_vertical = 26 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether LLM is enabled in the corresponding data store. + bool llm_enabled = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Whether to show the result score. + bool enable_result_score = 21; + + // Output only. Whether the customer accepted data use terms. + bool minimum_data_term_accepted = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Collection components that lists all collections and child + // data stores associated with the widget config, those data sources can be + // used for filtering in widget service APIs, users can return results that + // from selected data sources. + // + // For SaaS / Business engines, when `LookupWidgetConfig` is called with + // `view = WITH_AVAILABLE_CONNECTORS`, this list is additionally augmented + // with synthetic placeholder entries for connectors the caller may attach + // but has not yet attached (see `CollectionComponent` for the placeholder + // contract). The frontend can therefore render a unified list of + // already-attached and available-to-attach sources by iterating this single + // field. For Enterprise engines and for the default `view`, only + // already-attached connectors are returned (today's behavior). + repeated CollectionComponent collection_components = 29 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Describes general widget search settings as seen in cloud console + // widget configuration page. Replaces top deprecated top level properties. + UiSettings ui_settings = 33; + + // Will be used for all widget access settings seen in cloud console + // integration page. Replaces top deprecated top level properties. + AccessSettings access_settings = 34; + + // Describes search widget UI branding settings, such as the widget title, + // logo, favicons, and colors. + UiBrandingSettings ui_branding = 35; + + // Optional. Describes the homepage settings of the widget. + HomepageSetting homepage_setting = 38 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. Describes the assistant settings of the widget. + AssistantSettings assistant_settings = 39 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. Describes the customer related configurations, + // currently only used for government customers. This field cannot be modified + // after project onboarding. + CustomerProvidedConfig customer_provided_config = 40 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. Whether to enable private knowledge graph. + bool enable_private_knowledge_graph = 42 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Whether the subscription is gemini bundle or not. + bool gemini_bundle = 44 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The batch authorization statuses for the widget's connectors. + repeated BatchAuthStatus batch_auth_statuses = 48 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The nodes associated with the Widget Config. + repeated Node nodes = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config_service.proto new file mode 100644 index 000000000000..81e9e7364ea9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/widget_config_service.proto @@ -0,0 +1,149 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/widget_config.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "WidgetConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1"; + +// Service for managing +// [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] configuration. +service WidgetConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Gets a [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig]. + rpc GetWidgetConfig(GetWidgetConfigRequest) returns (WidgetConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dataStores/*/widgetConfigs/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*/collections/*/dataStores/*/widgetConfigs/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/locations/*/collections/*/engines/*/widgetConfigs/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Update a WidgetConfig. + rpc UpdateWidgetConfig(UpdateWidgetConfigRequest) returns (WidgetConfig) { + option (google.api.http) = { + patch: "/v1/{widget_config.name=projects/*/locations/*/dataStores/*/widgetConfigs/*}" + body: "widget_config" + additional_bindings { + patch: "/v1/{widget_config.name=projects/*/locations/*/collections/*/dataStores/*/widgetConfigs/*}" + body: "widget_config" + } + additional_bindings { + patch: "/v1/{widget_config.name=projects/*/locations/*/collections/*/engines/*/widgetConfigs/*}" + body: "widget_config" + } + }; + option (google.api.method_signature) = "widget_config,update_mask"; + } +} + +// Request for +// [WidgetConfigService.GetWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.GetWidgetConfig] +// method. +message GetWidgetConfigRequest { + // Options for GetWidgetConfigRequest. + message GetWidgetConfigRequestOption { + // Optional. Whether to turn off collection_components in WidgetConfig to + // reduce latency and data transmission. + bool turn_off_collection_components = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Full WidgetConfig resource name. Format: + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/WidgetConfig" + } + ]; + + // Optional. Whether it's acceptable to load the widget config from cache. If + // set to true, recent changes on widget configs may take a few minutes to + // reflect on the end user's view. It's recommended to set to true for + // maturely developed widgets, as it improves widget performance. Set to false + // to see changes reflected in prod right away, if your widget is under + // development. + bool accept_cache = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Options for GetWidgetConfigRequest. + GetWidgetConfigRequestOption get_widget_config_request_option = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize + // human-readable strings in the response, such as the model selector + // `display_name` / `description` on + // `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to + // the default language (English). + string language_code = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` + // the backend computes. `ADMIN` is set by the Cloud Console admin "Feature + // Management" page to receive the admin-surfaced + // model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is + // set by the Gemini Enterprise mobile app to receive the mobile model set; + // unset / `END_USER_WEB` returns the end-user web selector. + ModelInfoView model_info_view = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for +// [WidgetConfigService.UpdateWidgetConfig][google.cloud.discoveryengine.v1.WidgetConfigService.UpdateWidgetConfig] +// method. +message UpdateWidgetConfigRequest { + // Required. The [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] + // to update. + // + // If the caller does not have permission to update the + // [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig], then a + // PERMISSION_DENIED error is returned. + // + // If the [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to + // update does not exist, a NOT_FOUND error is returned. + WidgetConfig widget_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [WidgetConfig][google.cloud.discoveryengine.v1.WidgetConfig] to update. The + // following are the only supported fields: + // + // * [WidgetConfig.enable_autocomplete][google.cloud.discoveryengine.v1.WidgetConfig.enable_autocomplete] + // + // If not set, all supported fields are updated. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e0e9e732c140 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.AclConfigServiceSettings; +import com.google.cloud.discoveryengine.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_AclConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8bd1359fdfa3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.AclConfigServiceSettings; +import com.google.cloud.discoveryengine.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_AclConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..893a3a6ad78c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.AclConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newHttpJsonBuilder().build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_AclConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/AsyncGetAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/AsyncGetAclConfig.java new file mode 100644 index 000000000000..6844000cc267 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/AsyncGetAclConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_GetAclConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.GetAclConfigRequest; + +public class AsyncGetAclConfig { + + public static void main(String[] args) throws Exception { + asyncGetAclConfig(); + } + + public static void asyncGetAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + aclConfigServiceClient.getAclConfigCallable().futureCall(request); + // Do something. + AclConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_AclConfigService_GetAclConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfig.java new file mode 100644 index 000000000000..2b6fd743bd67 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_GetAclConfig_sync] +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.GetAclConfigRequest; + +public class SyncGetAclConfig { + + public static void main(String[] args) throws Exception { + syncGetAclConfig(); + } + + public static void syncGetAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + AclConfig response = aclConfigServiceClient.getAclConfig(request); + } + } +} +// [END discoveryengine_v1_generated_AclConfigService_GetAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java new file mode 100644 index 000000000000..848b22df6fdf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_GetAclConfig_Aclconfigname_sync] +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; + +public class SyncGetAclConfigAclconfigname { + + public static void main(String[] args) throws Exception { + syncGetAclConfigAclconfigname(); + } + + public static void syncGetAclConfigAclconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + AclConfig response = aclConfigServiceClient.getAclConfig(name); + } + } +} +// [END discoveryengine_v1_generated_AclConfigService_GetAclConfig_Aclconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigString.java new file mode 100644 index 000000000000..bedd7039794a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/getaclconfig/SyncGetAclConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_GetAclConfig_String_sync] +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; + +public class SyncGetAclConfigString { + + public static void main(String[] args) throws Exception { + syncGetAclConfigString(); + } + + public static void syncGetAclConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + AclConfig response = aclConfigServiceClient.getAclConfig(name); + } + } +} +// [END discoveryengine_v1_generated_AclConfigService_GetAclConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java new file mode 100644 index 000000000000..53628a3277cc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_UpdateAclConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest; + +public class AsyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateAclConfig(); + } + + public static void asyncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + ApiFuture future = + aclConfigServiceClient.updateAclConfigCallable().futureCall(request); + // Do something. + AclConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_AclConfigService_UpdateAclConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..554802424645 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigService_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1.AclConfig; +import com.google.cloud.discoveryengine.v1.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateAclConfigRequest; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + AclConfig response = aclConfigServiceClient.updateAclConfig(request); + } + } +} +// [END discoveryengine_v1_generated_AclConfigService_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..cf3ac71a0b03 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AclConfigServiceSettings_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1.AclConfigServiceSettings; +import java.time.Duration; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceSettings.Builder aclConfigServiceSettingsBuilder = + AclConfigServiceSettings.newBuilder(); + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .setRetrySettings( + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_AclConfigServiceSettings_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/AsyncCreateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/AsyncCreateAssistant.java new file mode 100644 index 000000000000..d78fa369fe33 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/AsyncCreateAssistant.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_CreateAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1.EngineName; + +public class AsyncCreateAssistant { + + public static void main(String[] args) throws Exception { + asyncCreateAssistant(); + } + + public static void asyncCreateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + ApiFuture future = + assistantServiceClient.createAssistantCallable().futureCall(request); + // Do something. + Assistant response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_CreateAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/SyncCreateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/SyncCreateAssistant.java new file mode 100644 index 000000000000..d39dfb265f9b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/createassistant/SyncCreateAssistant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_CreateAssistant_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1.EngineName; + +public class SyncCreateAssistant { + + public static void main(String[] args) throws Exception { + syncCreateAssistant(); + } + + public static void syncCreateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + Assistant response = assistantServiceClient.createAssistant(request); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_CreateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/AsyncDeleteAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/AsyncDeleteAssistant.java new file mode 100644 index 000000000000..69c653169e29 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/AsyncDeleteAssistant.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_DeleteAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.DeleteAssistantRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAssistant { + + public static void main(String[] args) throws Exception { + asyncDeleteAssistant(); + } + + public static void asyncDeleteAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + DeleteAssistantRequest request = + DeleteAssistantRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .build(); + ApiFuture future = + assistantServiceClient.deleteAssistantCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_DeleteAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistant.java new file mode 100644 index 000000000000..cddd7b9f4654 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_DeleteAssistant_sync] +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.DeleteAssistantRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAssistant { + + public static void main(String[] args) throws Exception { + syncDeleteAssistant(); + } + + public static void syncDeleteAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + DeleteAssistantRequest request = + DeleteAssistantRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .build(); + assistantServiceClient.deleteAssistant(request); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_DeleteAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java new file mode 100644 index 000000000000..9e972620bf52 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_DeleteAssistant_Assistantname_sync] +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAssistantAssistantname { + + public static void main(String[] args) throws Exception { + syncDeleteAssistantAssistantname(); + } + + public static void syncDeleteAssistantAssistantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + assistantServiceClient.deleteAssistant(name); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_DeleteAssistant_Assistantname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantString.java new file mode 100644 index 000000000000..5f29ccdaad9f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/deleteassistant/SyncDeleteAssistantString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_DeleteAssistant_String_sync] +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAssistantString { + + public static void main(String[] args) throws Exception { + syncDeleteAssistantString(); + } + + public static void syncDeleteAssistantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + String name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString(); + assistantServiceClient.deleteAssistant(name); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_DeleteAssistant_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/AsyncGetAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/AsyncGetAssistant.java new file mode 100644 index 000000000000..590062b03feb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/AsyncGetAssistant.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_GetAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.GetAssistantRequest; + +public class AsyncGetAssistant { + + public static void main(String[] args) throws Exception { + asyncGetAssistant(); + } + + public static void asyncGetAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + GetAssistantRequest request = + GetAssistantRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .build(); + ApiFuture future = + assistantServiceClient.getAssistantCallable().futureCall(request); + // Do something. + Assistant response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_GetAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistant.java new file mode 100644 index 000000000000..4a3b25468f54 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_GetAssistant_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.GetAssistantRequest; + +public class SyncGetAssistant { + + public static void main(String[] args) throws Exception { + syncGetAssistant(); + } + + public static void syncGetAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + GetAssistantRequest request = + GetAssistantRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .build(); + Assistant response = assistantServiceClient.getAssistant(request); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_GetAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantAssistantname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantAssistantname.java new file mode 100644 index 000000000000..98f86f1b060e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantAssistantname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_GetAssistant_Assistantname_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; + +public class SyncGetAssistantAssistantname { + + public static void main(String[] args) throws Exception { + syncGetAssistantAssistantname(); + } + + public static void syncGetAssistantAssistantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + Assistant response = assistantServiceClient.getAssistant(name); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_GetAssistant_Assistantname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantString.java new file mode 100644 index 000000000000..77e3e5bb4704 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/getassistant/SyncGetAssistantString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_GetAssistant_String_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantName; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; + +public class SyncGetAssistantString { + + public static void main(String[] args) throws Exception { + syncGetAssistantString(); + } + + public static void syncGetAssistantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + String name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString(); + Assistant response = assistantServiceClient.getAssistant(name); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_GetAssistant_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistants.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistants.java new file mode 100644 index 000000000000..e19d34bd7186 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistants.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_ListAssistants_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; + +public class AsyncListAssistants { + + public static void main(String[] args) throws Exception { + asyncListAssistants(); + } + + public static void asyncListAssistants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + assistantServiceClient.listAssistantsPagedCallable().futureCall(request); + // Do something. + for (Assistant element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_AssistantService_ListAssistants_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistantsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistantsPaged.java new file mode 100644 index 000000000000..fb8d8eb88f6d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/AsyncListAssistantsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_ListAssistants_Paged_async] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1.ListAssistantsResponse; +import com.google.common.base.Strings; + +public class AsyncListAssistantsPaged { + + public static void main(String[] args) throws Exception { + asyncListAssistantsPaged(); + } + + public static void asyncListAssistantsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAssistantsResponse response = + assistantServiceClient.listAssistantsCallable().call(request); + for (Assistant element : response.getAssistantsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1_generated_AssistantService_ListAssistants_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistants.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistants.java new file mode 100644 index 000000000000..6d10ebc094d2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistants.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_ListAssistants_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.ListAssistantsRequest; + +public class SyncListAssistants { + + public static void main(String[] args) throws Exception { + syncListAssistants(); + } + + public static void syncListAssistants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Assistant element : assistantServiceClient.listAssistants(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_AssistantService_ListAssistants_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsEnginename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsEnginename.java new file mode 100644 index 000000000000..c453aee15693 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsEnginename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_ListAssistants_Enginename_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.EngineName; + +public class SyncListAssistantsEnginename { + + public static void main(String[] args) throws Exception { + syncListAssistantsEnginename(); + } + + public static void syncListAssistantsEnginename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_AssistantService_ListAssistants_Enginename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsString.java new file mode 100644 index 000000000000..89ee85902178 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/listassistants/SyncListAssistantsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_ListAssistants_String_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.EngineName; + +public class SyncListAssistantsString { + + public static void main(String[] args) throws Exception { + syncListAssistantsString(); + } + + public static void syncListAssistantsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + String parent = + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString(); + for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_AssistantService_ListAssistants_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/AsyncUpdateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/AsyncUpdateAssistant.java new file mode 100644 index 000000000000..17656d625c0e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/AsyncUpdateAssistant.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_UpdateAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateAssistantRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAssistant { + + public static void main(String[] args) throws Exception { + asyncUpdateAssistant(); + } + + public static void asyncUpdateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + UpdateAssistantRequest request = + UpdateAssistantRequest.newBuilder() + .setAssistant(Assistant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + assistantServiceClient.updateAssistantCallable().futureCall(request); + // Do something. + Assistant response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_UpdateAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistant.java new file mode 100644 index 000000000000..1b81080a0d83 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_UpdateAssistant_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateAssistantRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAssistant { + + public static void main(String[] args) throws Exception { + syncUpdateAssistant(); + } + + public static void syncUpdateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + UpdateAssistantRequest request = + UpdateAssistantRequest.newBuilder() + .setAssistant(Assistant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Assistant response = assistantServiceClient.updateAssistant(request); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_UpdateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java new file mode 100644 index 000000000000..8094edd6b63c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_AssistantService_UpdateAssistant_AssistantFieldmask_sync] +import com.google.cloud.discoveryengine.v1.Assistant; +import com.google.cloud.discoveryengine.v1.AssistantServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAssistantAssistantFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAssistantAssistantFieldmask(); + } + + public static void syncUpdateAssistantAssistantFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + Assistant assistant = Assistant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Assistant response = assistantServiceClient.updateAssistant(assistant, updateMask); + } + } +} +// [END discoveryengine_v1_generated_AssistantService_UpdateAssistant_AssistantFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/streamassist/SyncStreamAssist.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/createassistant/SyncCreateAssistant.java similarity index 87% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/streamassist/SyncStreamAssist.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/createassistant/SyncCreateAssistant.java index e74162572000..0ab01b8d47a9 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/streamassist/SyncStreamAssist.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/assistantservicesettings/createassistant/SyncCreateAssistant.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1.samples; -// [START discoveryengine_v1_generated_AssistantServiceSettings_StreamAssist_sync] +// [START discoveryengine_v1_generated_AssistantServiceSettings_CreateAssistant_sync] import com.google.cloud.discoveryengine.v1.AssistantServiceSettings; import java.time.Duration; -public class SyncStreamAssist { +public class SyncCreateAssistant { public static void main(String[] args) throws Exception { - syncStreamAssist(); + syncCreateAssistant(); } - public static void syncStreamAssist() throws Exception { + public static void syncCreateAssistant() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncStreamAssist() throws Exception { AssistantServiceSettings.Builder assistantServiceSettingsBuilder = AssistantServiceSettings.newBuilder(); assistantServiceSettingsBuilder - .streamAssistSettings() + .createAssistantSettings() .setRetrySettings( assistantServiceSettingsBuilder - .streamAssistSettings() + .createAssistantSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -53,4 +53,4 @@ public static void syncStreamAssist() throws Exception { AssistantServiceSettings assistantServiceSettings = assistantServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1_generated_AssistantServiceSettings_StreamAssist_sync] +// [END discoveryengine_v1_generated_AssistantServiceSettings_CreateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..c721befeed63 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.cloud.discoveryengine.v1.CollectionServiceSettings; +import com.google.cloud.discoveryengine.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceSettings collectionServiceSettings = + CollectionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CollectionServiceClient collectionServiceClient = + CollectionServiceClient.create(collectionServiceSettings); + } +} +// [END discoveryengine_v1_generated_CollectionService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8a0dd7ea036d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.cloud.discoveryengine.v1.CollectionServiceSettings; +import com.google.cloud.discoveryengine.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceSettings collectionServiceSettings = + CollectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CollectionServiceClient collectionServiceClient = + CollectionServiceClient.create(collectionServiceSettings); + } +} +// [END discoveryengine_v1_generated_CollectionService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..527778c662eb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.cloud.discoveryengine.v1.CollectionServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceSettings collectionServiceSettings = + CollectionServiceSettings.newHttpJsonBuilder().build(); + CollectionServiceClient collectionServiceClient = + CollectionServiceClient.create(collectionServiceSettings); + } +} +// [END discoveryengine_v1_generated_CollectionService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollection.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollection.java new file mode 100644 index 000000000000..212433d77e8d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollection.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_DeleteCollection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCollection { + + public static void main(String[] args) throws Exception { + asyncDeleteCollection(); + } + + public static void asyncDeleteCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + DeleteCollectionRequest request = + DeleteCollectionRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + ApiFuture future = + collectionServiceClient.deleteCollectionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_DeleteCollection_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollectionLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollectionLRO.java new file mode 100644 index 000000000000..fd804732d163 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/AsyncDeleteCollectionLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_DeleteCollection_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.cloud.discoveryengine.v1.DeleteCollectionMetadata; +import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCollectionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCollectionLRO(); + } + + public static void asyncDeleteCollectionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + DeleteCollectionRequest request = + DeleteCollectionRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + OperationFuture future = + collectionServiceClient.deleteCollectionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_DeleteCollection_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollection.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollection.java new file mode 100644 index 000000000000..b087b74a4469 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollection.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_DeleteCollection_sync] +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.cloud.discoveryengine.v1.DeleteCollectionRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCollection { + + public static void main(String[] args) throws Exception { + syncDeleteCollection(); + } + + public static void syncDeleteCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + DeleteCollectionRequest request = + DeleteCollectionRequest.newBuilder() + .setName(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + collectionServiceClient.deleteCollectionAsync(request).get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_DeleteCollection_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionCollectionname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionCollectionname.java new file mode 100644 index 000000000000..178052fcdf4a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionCollectionname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_DeleteCollection_Collectionname_sync] +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCollectionCollectionname { + + public static void main(String[] args) throws Exception { + syncDeleteCollectionCollectionname(); + } + + public static void syncDeleteCollectionCollectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + CollectionName name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + collectionServiceClient.deleteCollectionAsync(name).get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_DeleteCollection_Collectionname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionString.java new file mode 100644 index 000000000000..3e9e02c9d7ac --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/deletecollection/SyncDeleteCollectionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_DeleteCollection_String_sync] +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCollectionString { + + public static void main(String[] args) throws Exception { + syncDeleteCollectionString(); + } + + public static void syncDeleteCollectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + String name = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString(); + collectionServiceClient.deleteCollectionAsync(name).get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_DeleteCollection_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/AsyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..7863c3543977 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = collectionServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_GetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..328fd17b93be --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_GetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = collectionServiceClient.getIamPolicy(request); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_GetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyResourcename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..3d698640631a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + Policy response = collectionServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_GetIamPolicy_Resourcename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..2fabc2a4792a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_GetIamPolicy_String_sync] +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy response = collectionServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_GetIamPolicy_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/AsyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..d1c6389e3812 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = collectionServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_SetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..32c6c1502d51 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_SetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = collectionServiceClient.setIamPolicy(request); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_SetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 000000000000..d1f5ef720ad1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_SetIamPolicy_ResourcenamePolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.CollectionName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + ResourceName resource = CollectionName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + Policy policy = Policy.newBuilder().build(); + Policy response = collectionServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_SetIamPolicy_ResourcenamePolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 000000000000..7608e0ad8137 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionService_SetIamPolicy_StringPolicy_sync] +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.CollectionServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CollectionServiceClient collectionServiceClient = CollectionServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = collectionServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1_generated_CollectionService_SetIamPolicy_StringPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/deletecollection/SyncDeleteCollection.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/deletecollection/SyncDeleteCollection.java new file mode 100644 index 000000000000..7ceab3c5cfba --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/deletecollection/SyncDeleteCollection.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionServiceSettings_DeleteCollection_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1.CollectionServiceSettings; +import java.time.Duration; + +public class SyncDeleteCollection { + + public static void main(String[] args) throws Exception { + syncDeleteCollection(); + } + + public static void syncDeleteCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceSettings.Builder collectionServiceSettingsBuilder = + CollectionServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + collectionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1_generated_CollectionServiceSettings_DeleteCollection_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/getiampolicy/SyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..84d868c627aa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/collectionservicesettings/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CollectionServiceSettings_GetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.CollectionServiceSettings; +import java.time.Duration; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceSettings.Builder collectionServiceSettingsBuilder = + CollectionServiceSettings.newBuilder(); + collectionServiceSettingsBuilder + .getIamPolicySettings() + .setRetrySettings( + collectionServiceSettingsBuilder + .getIamPolicySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CollectionServiceSettings collectionServiceSettings = collectionServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_CollectionServiceSettings_GetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java new file mode 100644 index 000000000000..1e0301cead2b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CompletionService_AdvancedCompleteQuery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse; +import com.google.cloud.discoveryengine.v1.CompletionConfigName; +import com.google.cloud.discoveryengine.v1.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1.UserInfo; +import java.util.ArrayList; + +public class AsyncAdvancedCompleteQuery { + + public static void main(String[] args) throws Exception { + asyncAdvancedCompleteQuery(); + } + + public static void asyncAdvancedCompleteQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + AdvancedCompleteQueryRequest request = + AdvancedCompleteQueryRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setIncludeTailSuggestions(true) + .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) + .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) + .build(); + ApiFuture future = + completionServiceClient.advancedCompleteQueryCallable().futureCall(request); + // Do something. + AdvancedCompleteQueryResponse response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_CompletionService_AdvancedCompleteQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java new file mode 100644 index 000000000000..cc6e55242c66 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_CompletionService_AdvancedCompleteQuery_sync] +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest; +import com.google.cloud.discoveryengine.v1.AdvancedCompleteQueryResponse; +import com.google.cloud.discoveryengine.v1.CompletionConfigName; +import com.google.cloud.discoveryengine.v1.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1.UserInfo; +import java.util.ArrayList; + +public class SyncAdvancedCompleteQuery { + + public static void main(String[] args) throws Exception { + syncAdvancedCompleteQuery(); + } + + public static void syncAdvancedCompleteQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + AdvancedCompleteQueryRequest request = + AdvancedCompleteQueryRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setQuery("query107944136") + .setQueryModel("queryModel-184930495") + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setIncludeTailSuggestions(true) + .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) + .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) + .build(); + AdvancedCompleteQueryResponse response = + completionServiceClient.advancedCompleteQuery(request); + } + } +} +// [END discoveryengine_v1_generated_CompletionService_AdvancedCompleteQuery_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/AsyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/AsyncCreateSession.java index 3146a8da6a94..b8bf2a06c65a 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/AsyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/AsyncCreateSession.java @@ -44,6 +44,7 @@ public static void asyncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); ApiFuture future = conversationalSearchServiceClient.createSessionCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/SyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/SyncCreateSession.java index b2f3eceae6e6..61ab9373b981 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/SyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/conversationalsearchservice/createsession/SyncCreateSession.java @@ -43,6 +43,7 @@ public static void syncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); Session response = conversationalSearchServiceClient.createSession(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b81a4d9d3a08 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceSettings; +import com.google.cloud.discoveryengine.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceSettings dataConnectorServiceSettings = + DataConnectorServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create(dataConnectorServiceSettings); + } +} +// [END discoveryengine_v1_generated_DataConnectorService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..675041a54e5b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceSettings; +import com.google.cloud.discoveryengine.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceSettings dataConnectorServiceSettings = + DataConnectorServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create(dataConnectorServiceSettings); + } +} +// [END discoveryengine_v1_generated_DataConnectorService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..467f88a243a6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceSettings dataConnectorServiceSettings = + DataConnectorServiceSettings.newHttpJsonBuilder().build(); + DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create(dataConnectorServiceSettings); + } +} +// [END discoveryengine_v1_generated_DataConnectorService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/AsyncGetDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/AsyncGetDataConnector.java new file mode 100644 index 000000000000..cd20d6b1defa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/AsyncGetDataConnector.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_GetDataConnector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorName; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.GetDataConnectorRequest; + +public class AsyncGetDataConnector { + + public static void main(String[] args) throws Exception { + asyncGetDataConnector(); + } + + public static void asyncGetDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + GetDataConnectorRequest request = + GetDataConnectorRequest.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + ApiFuture future = + dataConnectorServiceClient.getDataConnectorCallable().futureCall(request); + // Do something. + DataConnector response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_GetDataConnector_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnector.java new file mode 100644 index 000000000000..aef10153768d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnector.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_GetDataConnector_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorName; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.GetDataConnectorRequest; + +public class SyncGetDataConnector { + + public static void main(String[] args) throws Exception { + syncGetDataConnector(); + } + + public static void syncGetDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + GetDataConnectorRequest request = + GetDataConnectorRequest.newBuilder() + .setName(DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString()) + .build(); + DataConnector response = dataConnectorServiceClient.getDataConnector(request); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_GetDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorDataconnectorname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorDataconnectorname.java new file mode 100644 index 000000000000..aad1feeb9394 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorDataconnectorname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_GetDataConnector_Dataconnectorname_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorName; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; + +public class SyncGetDataConnectorDataconnectorname { + + public static void main(String[] args) throws Exception { + syncGetDataConnectorDataconnectorname(); + } + + public static void syncGetDataConnectorDataconnectorname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + DataConnectorName name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]"); + DataConnector response = dataConnectorServiceClient.getDataConnector(name); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_GetDataConnector_Dataconnectorname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorString.java new file mode 100644 index 000000000000..ce6943889738 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/getdataconnector/SyncGetDataConnectorString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_GetDataConnector_String_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorName; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; + +public class SyncGetDataConnectorString { + + public static void main(String[] args) throws Exception { + syncGetDataConnectorString(); + } + + public static void syncGetDataConnectorString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + String name = DataConnectorName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]").toString(); + DataConnector response = dataConnectorServiceClient.getDataConnector(name); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_GetDataConnector_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnector.java new file mode 100644 index 000000000000..734a8a02c1b2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnector.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; +import com.google.longrunning.Operation; + +public class AsyncSetUpDataConnector { + + public static void main(String[] args) throws Exception { + asyncSetUpDataConnector(); + } + + public static void asyncSetUpDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + SetUpDataConnectorRequest request = + SetUpDataConnectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCollectionId("collectionId1636075609") + .setCollectionDisplayName("collectionDisplayName-330620689") + .setDataConnector(DataConnector.newBuilder().build()) + .build(); + ApiFuture future = + dataConnectorServiceClient.setUpDataConnectorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnectorLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnectorLRO.java new file mode 100644 index 000000000000..2878d02c8475 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/AsyncSetUpDataConnectorLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorMetadata; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; + +public class AsyncSetUpDataConnectorLRO { + + public static void main(String[] args) throws Exception { + asyncSetUpDataConnectorLRO(); + } + + public static void asyncSetUpDataConnectorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + SetUpDataConnectorRequest request = + SetUpDataConnectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCollectionId("collectionId1636075609") + .setCollectionDisplayName("collectionDisplayName-330620689") + .setDataConnector(DataConnector.newBuilder().build()) + .build(); + OperationFuture future = + dataConnectorServiceClient.setUpDataConnectorOperationCallable().futureCall(request); + // Do something. + DataConnector response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnector.java new file mode 100644 index 000000000000..9f17382c64e0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnector.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; +import com.google.cloud.discoveryengine.v1.SetUpDataConnectorRequest; + +public class SyncSetUpDataConnector { + + public static void main(String[] args) throws Exception { + syncSetUpDataConnector(); + } + + public static void syncSetUpDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + SetUpDataConnectorRequest request = + SetUpDataConnectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCollectionId("collectionId1636075609") + .setCollectionDisplayName("collectionDisplayName-330620689") + .setDataConnector(DataConnector.newBuilder().build()) + .build(); + DataConnector response = dataConnectorServiceClient.setUpDataConnectorAsync(request).get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorLocationnameStringStringDataconnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorLocationnameStringStringDataconnector.java new file mode 100644 index 000000000000..433364477e6a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorLocationnameStringStringDataconnector.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_LocationnameStringStringDataconnector_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncSetUpDataConnectorLocationnameStringStringDataconnector { + + public static void main(String[] args) throws Exception { + syncSetUpDataConnectorLocationnameStringStringDataconnector(); + } + + public static void syncSetUpDataConnectorLocationnameStringStringDataconnector() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + DataConnector response = + dataConnectorServiceClient + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_LocationnameStringStringDataconnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorStringStringStringDataconnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorStringStringStringDataconnector.java new file mode 100644 index 000000000000..e4245f6ba733 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/setupdataconnector/SyncSetUpDataConnectorStringStringStringDataconnector.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_StringStringStringDataconnector_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncSetUpDataConnectorStringStringStringDataconnector { + + public static void main(String[] args) throws Exception { + syncSetUpDataConnectorStringStringStringDataconnector(); + } + + public static void syncSetUpDataConnectorStringStringStringDataconnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String collectionId = "collectionId1636075609"; + String collectionDisplayName = "collectionDisplayName-330620689"; + DataConnector dataConnector = DataConnector.newBuilder().build(); + DataConnector response = + dataConnectorServiceClient + .setUpDataConnectorAsync(parent, collectionId, collectionDisplayName, dataConnector) + .get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_SetUpDataConnector_StringStringStringDataconnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/AsyncUpdateDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/AsyncUpdateDataConnector.java new file mode 100644 index 000000000000..ee9e4844215b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/AsyncUpdateDataConnector.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_UpdateDataConnector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataConnector { + + public static void main(String[] args) throws Exception { + asyncUpdateDataConnector(); + } + + public static void asyncUpdateDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + UpdateDataConnectorRequest request = + UpdateDataConnectorRequest.newBuilder() + .setDataConnector(DataConnector.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataConnectorServiceClient.updateDataConnectorCallable().futureCall(request); + // Do something. + DataConnector response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_UpdateDataConnector_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnector.java new file mode 100644 index 000000000000..f2471557bf57 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnector.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_UpdateDataConnector_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateDataConnectorRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataConnector { + + public static void main(String[] args) throws Exception { + syncUpdateDataConnector(); + } + + public static void syncUpdateDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + UpdateDataConnectorRequest request = + UpdateDataConnectorRequest.newBuilder() + .setDataConnector(DataConnector.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DataConnector response = dataConnectorServiceClient.updateDataConnector(request); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_UpdateDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnectorDataconnectorFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnectorDataconnectorFieldmask.java new file mode 100644 index 000000000000..ac1027b80218 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservice/updatedataconnector/SyncUpdateDataConnectorDataconnectorFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorService_UpdateDataConnector_DataconnectorFieldmask_sync] +import com.google.cloud.discoveryengine.v1.DataConnector; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataConnectorDataconnectorFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDataConnectorDataconnectorFieldmask(); + } + + public static void syncUpdateDataConnectorDataconnectorFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataConnectorServiceClient dataConnectorServiceClient = + DataConnectorServiceClient.create()) { + DataConnector dataConnector = DataConnector.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DataConnector response = + dataConnectorServiceClient.updateDataConnector(dataConnector, updateMask); + } + } +} +// [END discoveryengine_v1_generated_DataConnectorService_UpdateDataConnector_DataconnectorFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/getdataconnector/SyncGetDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/getdataconnector/SyncGetDataConnector.java new file mode 100644 index 000000000000..752e4514dfbc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/getdataconnector/SyncGetDataConnector.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorServiceSettings_GetDataConnector_sync] +import com.google.cloud.discoveryengine.v1.DataConnectorServiceSettings; +import java.time.Duration; + +public class SyncGetDataConnector { + + public static void main(String[] args) throws Exception { + syncGetDataConnector(); + } + + public static void syncGetDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceSettings.Builder dataConnectorServiceSettingsBuilder = + DataConnectorServiceSettings.newBuilder(); + dataConnectorServiceSettingsBuilder + .getDataConnectorSettings() + .setRetrySettings( + dataConnectorServiceSettingsBuilder + .getDataConnectorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DataConnectorServiceSettings dataConnectorServiceSettings = + dataConnectorServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_DataConnectorServiceSettings_GetDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/setupdataconnector/SyncSetUpDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/setupdataconnector/SyncSetUpDataConnector.java new file mode 100644 index 000000000000..10298b8cd135 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/dataconnectorservicesettings/setupdataconnector/SyncSetUpDataConnector.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataConnectorServiceSettings_SetUpDataConnector_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1.DataConnectorServiceSettings; +import java.time.Duration; + +public class SyncSetUpDataConnector { + + public static void main(String[] args) throws Exception { + syncSetUpDataConnector(); + } + + public static void syncSetUpDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceSettings.Builder dataConnectorServiceSettingsBuilder = + DataConnectorServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataConnectorServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1_generated_DataConnectorServiceSettings_SetUpDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/AsyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..0f90da892daa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = dataStoreServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_GetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..fad205cc1882 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_GetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = dataStoreServiceClient.getIamPolicy(request); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_GetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyResourcename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..a0eab5165bf7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + Policy response = dataStoreServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_GetIamPolicy_Resourcename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..94620a6e72bc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_GetIamPolicy_String_sync] +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy response = dataStoreServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_GetIamPolicy_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/AsyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..b556d62fe2ea --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = dataStoreServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_SetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..8dfc40697b78 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_SetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = dataStoreServiceClient.setIamPolicy(request); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_SetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 000000000000..d8a3836e28c1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_SetIamPolicy_ResourcenamePolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + ResourceName resource = + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = dataStoreServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_SetIamPolicy_ResourcenamePolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 000000000000..b9532597cbf2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/datastoreservice/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_DataStoreService_SetIamPolicy_StringPolicy_sync] +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.DataStoreServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = dataStoreServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1_generated_DataStoreService_SetIamPolicy_StringPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/AsyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..51bbafb89a18 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = engineServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_EngineService_GetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..39b31e26bc95 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_GetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = engineServiceClient.getIamPolicy(request); + } + } +} +// [END discoveryengine_v1_generated_EngineService_GetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..c5d51311d89c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy response = engineServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1_generated_EngineService_GetIamPolicy_Resourcename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..22ee3087e172 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_GetIamPolicy_String_sync] +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy response = engineServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1_generated_EngineService_GetIamPolicy_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/AsyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..eb6989275971 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = engineServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_EngineService_SetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..ce8da7c7d1b9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_SetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = engineServiceClient.setIamPolicy(request); + } + } +} +// [END discoveryengine_v1_generated_EngineService_SetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 000000000000..9bb28ab32d47 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_SetIamPolicy_ResourcenamePolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = engineServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1_generated_EngineService_SetIamPolicy_ResourcenamePolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 000000000000..e72527c3fd62 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_EngineService_SetIamPolicy_StringPolicy_sync] +import com.google.cloud.discoveryengine.v1.AclConfigName; +import com.google.cloud.discoveryengine.v1.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = engineServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1_generated_EngineService_SetIamPolicy_StringPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..3386231cd6ce --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceSettings; +import com.google.cloud.discoveryengine.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings licenseConfigServiceSettings = + LicenseConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create(licenseConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..79a80de026d3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceSettings; +import com.google.cloud.discoveryengine.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings licenseConfigServiceSettings = + LicenseConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create(licenseConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..03c1218aa68b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings licenseConfigServiceSettings = + LicenseConfigServiceSettings.newHttpJsonBuilder().build(); + LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create(licenseConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java new file mode 100644 index 000000000000..49092a7afed2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class AsyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncCreateLicenseConfig(); + } + + public static void asyncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + ApiFuture future = + licenseConfigServiceClient.createLicenseConfigCallable().futureCall(request); + // Do something. + LicenseConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java new file mode 100644 index 000000000000..ea5b7ee2dd20 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfig(); + } + + public static void syncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + LicenseConfig response = licenseConfigServiceClient.createLicenseConfig(request); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java new file mode 100644 index 000000000000..4e4b3bf31047 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_LocationnameLicenseconfigString_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncCreateLicenseConfigLocationnameLicenseconfigString { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfigLocationnameLicenseconfigString(); + } + + public static void syncCreateLicenseConfigLocationnameLicenseconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + LicenseConfig response = + licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_LocationnameLicenseconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java new file mode 100644 index 000000000000..6126d929b948 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_StringLicenseconfigString_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncCreateLicenseConfigStringLicenseconfigString { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfigStringLicenseconfigString(); + } + + public static void syncCreateLicenseConfigStringLicenseconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + LicenseConfig response = + licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_CreateLicenseConfig_StringLicenseconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java new file mode 100644 index 000000000000..73373c98dd72 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class AsyncDistributeLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncDistributeLicenseConfig(); + } + + public static void asyncDistributeLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setProjectNumber(828084015) + .setLocation("location1901043637") + .setLicenseCount(-1565113455) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + ApiFuture future = + licenseConfigServiceClient.distributeLicenseConfigCallable().futureCall(request); + // Do something. + DistributeLicenseConfigResponse response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java new file mode 100644 index 000000000000..9676ed36fdbd --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class SyncDistributeLicenseConfig { + + public static void main(String[] args) throws Exception { + syncDistributeLicenseConfig(); + } + + public static void syncDistributeLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setProjectNumber(828084015) + .setLocation("location1901043637") + .setLicenseCount(-1565113455) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + DistributeLicenseConfigResponse response = + licenseConfigServiceClient.distributeLicenseConfig(request); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java new file mode 100644 index 000000000000..05f68c4a716b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_BillingaccountlicenseconfignameLongStringLongString_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString { + + public static void main(String[] args) throws Exception { + syncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString(); + } + + public static void + syncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + DistributeLicenseConfigResponse response = + licenseConfigServiceClient.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_BillingaccountlicenseconfignameLongStringLongString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java new file mode 100644 index 000000000000..5bd10cf97047 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_StringLongStringLongString_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class SyncDistributeLicenseConfigStringLongStringLongString { + + public static void main(String[] args) throws Exception { + syncDistributeLicenseConfigStringLongStringLongString(); + } + + public static void syncDistributeLicenseConfigStringLongStringLongString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString(); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + DistributeLicenseConfigResponse response = + licenseConfigServiceClient.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_DistributeLicenseConfig_StringLongStringLongString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java new file mode 100644 index 000000000000..06114fa26379 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class AsyncGetLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncGetLicenseConfig(); + } + + public static void asyncGetLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + GetLicenseConfigRequest request = + GetLicenseConfigRequest.newBuilder() + .setName( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .build(); + ApiFuture future = + licenseConfigServiceClient.getLicenseConfigCallable().futureCall(request); + // Do something. + LicenseConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java new file mode 100644 index 000000000000..2fc9d7c6e076 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class SyncGetLicenseConfig { + + public static void main(String[] args) throws Exception { + syncGetLicenseConfig(); + } + + public static void syncGetLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + GetLicenseConfigRequest request = + GetLicenseConfigRequest.newBuilder() + .setName( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .build(); + LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(request); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java new file mode 100644 index 000000000000..bec3d220ca57 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_Licenseconfigname_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class SyncGetLicenseConfigLicenseconfigname { + + public static void main(String[] args) throws Exception { + syncGetLicenseConfigLicenseconfigname(); + } + + public static void syncGetLicenseConfigLicenseconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_Licenseconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java new file mode 100644 index 000000000000..b6d51d3a7ca2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_String_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; + +public class SyncGetLicenseConfigString { + + public static void main(String[] args) throws Exception { + syncGetLicenseConfigString(); + } + + public static void syncGetLicenseConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString(); + LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_GetLicenseConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java new file mode 100644 index 000000000000..a94a8864f9aa --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class AsyncListLicenseConfigs { + + public static void main(String[] args) throws Exception { + asyncListLicenseConfigs(); + } + + public static void asyncListLicenseConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + licenseConfigServiceClient.listLicenseConfigsPagedCallable().futureCall(request); + // Do something. + for (LicenseConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java new file mode 100644 index 000000000000..a15869332af2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_Paged_async] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListLicenseConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListLicenseConfigsPaged(); + } + + public static void asyncListLicenseConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListLicenseConfigsResponse response = + licenseConfigServiceClient.listLicenseConfigsCallable().call(request); + for (LicenseConfig element : response.getLicenseConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java new file mode 100644 index 000000000000..60a6b2417516 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncListLicenseConfigs { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigs(); + } + + public static void syncListLicenseConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (LicenseConfig element : + licenseConfigServiceClient.listLicenseConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java new file mode 100644 index 000000000000..27c53f76826f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_Locationname_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncListLicenseConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsLocationname(); + } + + public static void syncListLicenseConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (LicenseConfig element : + licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java new file mode 100644 index 000000000000..6c231998ba38 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_String_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.LocationName; + +public class SyncListLicenseConfigsString { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsString(); + } + + public static void syncListLicenseConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (LicenseConfig element : + licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_ListLicenseConfigs_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java new file mode 100644 index 000000000000..abb330e816b0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; + +public class AsyncRetractLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncRetractLicenseConfig(); + } + + public static void asyncRetractLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setFullRetract(true) + .setLicenseCount(-1565113455) + .build(); + ApiFuture future = + licenseConfigServiceClient.retractLicenseConfigCallable().futureCall(request); + // Do something. + RetractLicenseConfigResponse response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java new file mode 100644 index 000000000000..0586d9be9e1c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfig { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfig(); + } + + public static void syncRetractLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setFullRetract(true) + .setLicenseCount(-1565113455) + .build(); + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig(request); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java new file mode 100644 index 000000000000..a625dae364ed --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameLicenseconfignameBooleanLong_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong(); + } + + public static void + syncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameLicenseconfignameBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java new file mode 100644 index 000000000000..e45b397c6a7c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameStringBooleanLong_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong(); + } + + public static void syncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString(); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameStringBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java new file mode 100644 index 000000000000..a718627b1fdb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_StringLicenseconfignameBooleanLong_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigStringLicenseconfignameBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigStringLicenseconfignameBooleanLong(); + } + + public static void syncRetractLicenseConfigStringLicenseconfignameBooleanLong() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString(); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_StringLicenseconfignameBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java new file mode 100644 index 000000000000..ec6ea655259b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_StringStringBooleanLong_sync] +import com.google.cloud.discoveryengine.v1.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigName; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigStringStringBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigStringStringBooleanLong(); + } + + public static void syncRetractLicenseConfigStringStringBooleanLong() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString(); + String licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString(); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_RetractLicenseConfig_StringStringBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java new file mode 100644 index 000000000000..eafc938ce36a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_UpdateLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateLicenseConfig(); + } + + public static void asyncUpdateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + UpdateLicenseConfigRequest request = + UpdateLicenseConfigRequest.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + licenseConfigServiceClient.updateLicenseConfigCallable().futureCall(request); + // Do something. + LicenseConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_UpdateLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java new file mode 100644 index 000000000000..8a88286788bf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_UpdateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1.UpdateLicenseConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncUpdateLicenseConfig(); + } + + public static void syncUpdateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + UpdateLicenseConfigRequest request = + UpdateLicenseConfigRequest.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LicenseConfig response = licenseConfigServiceClient.updateLicenseConfig(request); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_UpdateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java new file mode 100644 index 000000000000..e18bdcd81131 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigService_UpdateLicenseConfig_LicenseconfigFieldmask_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfig; +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLicenseConfigLicenseconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateLicenseConfigLicenseconfigFieldmask(); + } + + public static void syncUpdateLicenseConfigLicenseconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LicenseConfig response = + licenseConfigServiceClient.updateLicenseConfig(licenseConfig, updateMask); + } + } +} +// [END discoveryengine_v1_generated_LicenseConfigService_UpdateLicenseConfig_LicenseconfigFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java new file mode 100644 index 000000000000..ab4b6f9d10ec --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_LicenseConfigServiceSettings_CreateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.LicenseConfigServiceSettings; +import java.time.Duration; + +public class SyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfig(); + } + + public static void syncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings.Builder licenseConfigServiceSettingsBuilder = + LicenseConfigServiceSettings.newBuilder(); + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .setRetrySettings( + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + LicenseConfigServiceSettings licenseConfigServiceSettings = + licenseConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_LicenseConfigServiceSettings_CreateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java index a356c1d5be54..5565c063ddd3 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java @@ -41,6 +41,7 @@ public static void asyncProvisionProject() throws Exception { .setName(ProjectName.of("[PROJECT]").toString()) .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) .build(); ApiFuture future = projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java index 42d8bda0eacc..4a6bb2944220 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java @@ -42,6 +42,7 @@ public static void asyncProvisionProjectLRO() throws Exception { .setName(ProjectName.of("[PROJECT]").toString()) .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) .build(); OperationFuture future = projectServiceClient.provisionProjectOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java index cb70a5b503e8..467bdfa91692 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java @@ -40,6 +40,7 @@ public static void syncProvisionProject() throws Exception { .setName(ProjectName.of("[PROJECT]").toString()) .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) .build(); Project response = projectServiceClient.provisionProjectAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java new file mode 100644 index 000000000000..33b7f9b34e20 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class AsyncCreateServingConfig { + + public static void main(String[] args) throws Exception { + asyncCreateServingConfig(); + } + + public static void asyncCreateServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setServingConfig(ServingConfig.newBuilder().build()) + .setServingConfigId("servingConfigId-831052759") + .build(); + ApiFuture future = + servingConfigServiceClient.createServingConfigCallable().futureCall(request); + // Do something. + ServingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfig.java new file mode 100644 index 000000000000..ebf22604b897 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_sync] +import com.google.cloud.discoveryengine.v1.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncCreateServingConfig { + + public static void main(String[] args) throws Exception { + syncCreateServingConfig(); + } + + public static void syncCreateServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setServingConfig(ServingConfig.newBuilder().build()) + .setServingConfigId("servingConfigId-831052759") + .build(); + ServingConfig response = servingConfigServiceClient.createServingConfig(request); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java new file mode 100644 index 000000000000..be7eff37130b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_DatastorenameServingconfigString_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncCreateServingConfigDatastorenameServingconfigString { + + public static void main(String[] args) throws Exception { + syncCreateServingConfigDatastorenameServingconfigString(); + } + + public static void syncCreateServingConfigDatastorenameServingconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + ServingConfig response = + servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_DatastorenameServingconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java new file mode 100644 index 000000000000..23921a572993 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_EnginenameServingconfigString_sync] +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncCreateServingConfigEnginenameServingconfigString { + + public static void main(String[] args) throws Exception { + syncCreateServingConfigEnginenameServingconfigString(); + } + + public static void syncCreateServingConfigEnginenameServingconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + ServingConfig response = + servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_EnginenameServingconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java new file mode 100644 index 000000000000..f3ad24078c8d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_StringServingconfigString_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncCreateServingConfigStringServingconfigString { + + public static void main(String[] args) throws Exception { + syncCreateServingConfigStringServingconfigString(); + } + + public static void syncCreateServingConfigStringServingconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + ServingConfig response = + servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_CreateServingConfig_StringServingconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java new file mode 100644 index 000000000000..3a3eacf2c016 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteServingConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteServingConfig(); + } + + public static void asyncDeleteServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + ApiFuture future = + servingConfigServiceClient.deleteServingConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java new file mode 100644 index 000000000000..29cf613ca511 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_sync] +import com.google.cloud.discoveryengine.v1.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteServingConfig { + + public static void main(String[] args) throws Exception { + syncDeleteServingConfig(); + } + + public static void syncDeleteServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + servingConfigServiceClient.deleteServingConfig(request); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java new file mode 100644 index 000000000000..84ba8fcdd16d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_Servingconfigname_sync] +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteServingConfigServingconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteServingConfigServingconfigname(); + } + + public static void syncDeleteServingConfigServingconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + servingConfigServiceClient.deleteServingConfig(name); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_Servingconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java new file mode 100644 index 000000000000..328d01c3d23c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_String_sync] +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteServingConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteServingConfigString(); + } + + public static void syncDeleteServingConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString(); + servingConfigServiceClient.deleteServingConfig(name); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_DeleteServingConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/AsyncGetServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/AsyncGetServingConfig.java new file mode 100644 index 000000000000..7c9925899859 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/AsyncGetServingConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_GetServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class AsyncGetServingConfig { + + public static void main(String[] args) throws Exception { + asyncGetServingConfig(); + } + + public static void asyncGetServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + GetServingConfigRequest request = + GetServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + ApiFuture future = + servingConfigServiceClient.getServingConfigCallable().futureCall(request); + // Do something. + ServingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_GetServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfig.java new file mode 100644 index 000000000000..deb4bc3991da --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_GetServingConfig_sync] +import com.google.cloud.discoveryengine.v1.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncGetServingConfig { + + public static void main(String[] args) throws Exception { + syncGetServingConfig(); + } + + public static void syncGetServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + GetServingConfigRequest request = + GetServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + ServingConfig response = servingConfigServiceClient.getServingConfig(request); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_GetServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java new file mode 100644 index 000000000000..cc41f7265594 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_GetServingConfig_Servingconfigname_sync] +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncGetServingConfigServingconfigname { + + public static void main(String[] args) throws Exception { + syncGetServingConfigServingconfigname(); + } + + public static void syncGetServingConfigServingconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + ServingConfig response = servingConfigServiceClient.getServingConfig(name); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_GetServingConfig_Servingconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigString.java new file mode 100644 index 000000000000..dc84bfbc7eb1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/getservingconfig/SyncGetServingConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_GetServingConfig_String_sync] +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigName; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncGetServingConfigString { + + public static void main(String[] args) throws Exception { + syncGetServingConfigString(); + } + + public static void syncGetServingConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString(); + ServingConfig response = servingConfigServiceClient.getServingConfig(name); + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_GetServingConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java new file mode 100644 index 000000000000..3729ac5abf80 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class AsyncListServingConfigs { + + public static void main(String[] args) throws Exception { + asyncListServingConfigs(); + } + + public static void asyncListServingConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + servingConfigServiceClient.listServingConfigsPagedCallable().futureCall(request); + // Do something. + for (ServingConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java new file mode 100644 index 000000000000..975b9f4531f3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_Paged_async] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ListServingConfigsResponse; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; +import com.google.common.base.Strings; + +public class AsyncListServingConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListServingConfigsPaged(); + } + + public static void asyncListServingConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListServingConfigsResponse response = + servingConfigServiceClient.listServingConfigsCallable().call(request); + for (ServingConfig element : response.getServingConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigs.java new file mode 100644 index 000000000000..2d93e453df65 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigs.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncListServingConfigs { + + public static void main(String[] args) throws Exception { + syncListServingConfigs(); + } + + public static void syncListServingConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java new file mode 100644 index 000000000000..6fa62f008b7b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_Datastorename_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncListServingConfigsDatastorename { + + public static void main(String[] args) throws Exception { + syncListServingConfigsDatastorename(); + } + + public static void syncListServingConfigsDatastorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_Datastorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java new file mode 100644 index 000000000000..4d11877961a9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_Enginename_sync] +import com.google.cloud.discoveryengine.v1.EngineName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncListServingConfigsEnginename { + + public static void main(String[] args) throws Exception { + syncListServingConfigsEnginename(); + } + + public static void syncListServingConfigsEnginename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_Enginename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java new file mode 100644 index 000000000000..80be4b3409eb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_String_sync] +import com.google.cloud.discoveryengine.v1.DataStoreName; +import com.google.cloud.discoveryengine.v1.ServingConfig; +import com.google.cloud.discoveryengine.v1.ServingConfigServiceClient; + +public class SyncListServingConfigsString { + + public static void main(String[] args) throws Exception { + syncListServingConfigsString(); + } + + public static void syncListServingConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1_generated_ServingConfigService_ListServingConfigs_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/createservingconfig/SyncCreateServingConfig.java similarity index 89% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/createservingconfig/SyncCreateServingConfig.java index 31c8c15cd21f..84fecf07f7ca 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/servingconfigservicesettings/createservingconfig/SyncCreateServingConfig.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1.samples; -// [START discoveryengine_v1_generated_ServingConfigServiceSettings_UpdateServingConfig_sync] +// [START discoveryengine_v1_generated_ServingConfigServiceSettings_CreateServingConfig_sync] import com.google.cloud.discoveryengine.v1.ServingConfigServiceSettings; import java.time.Duration; -public class SyncUpdateServingConfig { +public class SyncCreateServingConfig { public static void main(String[] args) throws Exception { - syncUpdateServingConfig(); + syncCreateServingConfig(); } - public static void syncUpdateServingConfig() throws Exception { + public static void syncCreateServingConfig() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncUpdateServingConfig() throws Exception { ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder = ServingConfigServiceSettings.newBuilder(); servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .setRetrySettings( servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -54,4 +54,4 @@ public static void syncUpdateServingConfig() throws Exception { servingConfigServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1_generated_ServingConfigServiceSettings_UpdateServingConfig_sync] +// [END discoveryengine_v1_generated_ServingConfigServiceSettings_CreateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/AsyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/AsyncCreateSession.java index e569548715fd..8980a5010971 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/AsyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/AsyncCreateSession.java @@ -43,6 +43,7 @@ public static void asyncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); ApiFuture future = sessionServiceClient.createSessionCallable().futureCall(request); // Do something. diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/SyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/SyncCreateSession.java index 9d54c75b221f..90e457086466 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/SyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/sessionservice/createsession/SyncCreateSession.java @@ -42,6 +42,7 @@ public static void syncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); Session response = sessionServiceClient.createSession(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..c784923d510d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_AclConfigServiceStubSettings_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1.stub.AclConfigServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder = + AclConfigServiceStubSettings.newBuilder(); + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .setRetrySettings( + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_AclConfigServiceStubSettings_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/streamassist/SyncStreamAssist.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java similarity index 89% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/streamassist/SyncStreamAssist.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java index faf7c805d93f..ca1aee57fa3c 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/streamassist/SyncStreamAssist.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1.stub.samples; -// [START discoveryengine_v1_generated_AssistantServiceStubSettings_StreamAssist_sync] +// [START discoveryengine_v1_generated_AssistantServiceStubSettings_CreateAssistant_sync] import com.google.cloud.discoveryengine.v1.stub.AssistantServiceStubSettings; import java.time.Duration; -public class SyncStreamAssist { +public class SyncCreateAssistant { public static void main(String[] args) throws Exception { - syncStreamAssist(); + syncCreateAssistant(); } - public static void syncStreamAssist() throws Exception { + public static void syncCreateAssistant() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncStreamAssist() throws Exception { AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder = AssistantServiceStubSettings.newBuilder(); assistantServiceSettingsBuilder - .streamAssistSettings() + .createAssistantSettings() .setRetrySettings( assistantServiceSettingsBuilder - .streamAssistSettings() + .createAssistantSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -53,4 +53,4 @@ public static void syncStreamAssist() throws Exception { AssistantServiceStubSettings assistantServiceSettings = assistantServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1_generated_AssistantServiceStubSettings_StreamAssist_sync] +// [END discoveryengine_v1_generated_AssistantServiceStubSettings_CreateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/deletecollection/SyncDeleteCollection.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/deletecollection/SyncDeleteCollection.java new file mode 100644 index 000000000000..8b839f9b35d2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/deletecollection/SyncDeleteCollection.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_CollectionServiceStubSettings_DeleteCollection_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1.stub.CollectionServiceStubSettings; +import java.time.Duration; + +public class SyncDeleteCollection { + + public static void main(String[] args) throws Exception { + syncDeleteCollection(); + } + + public static void syncDeleteCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceStubSettings.Builder collectionServiceSettingsBuilder = + CollectionServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + collectionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1_generated_CollectionServiceStubSettings_DeleteCollection_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/getiampolicy/SyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..f10dc3f50ff2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/collectionservicestubsettings/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_CollectionServiceStubSettings_GetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1.stub.CollectionServiceStubSettings; +import java.time.Duration; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CollectionServiceStubSettings.Builder collectionServiceSettingsBuilder = + CollectionServiceStubSettings.newBuilder(); + collectionServiceSettingsBuilder + .getIamPolicySettings() + .setRetrySettings( + collectionServiceSettingsBuilder + .getIamPolicySettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + CollectionServiceStubSettings collectionServiceSettings = + collectionServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_CollectionServiceStubSettings_GetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/getdataconnector/SyncGetDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/getdataconnector/SyncGetDataConnector.java new file mode 100644 index 000000000000..1036b78e7f0e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/getdataconnector/SyncGetDataConnector.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_DataConnectorServiceStubSettings_GetDataConnector_sync] +import com.google.cloud.discoveryengine.v1.stub.DataConnectorServiceStubSettings; +import java.time.Duration; + +public class SyncGetDataConnector { + + public static void main(String[] args) throws Exception { + syncGetDataConnector(); + } + + public static void syncGetDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceStubSettings.Builder dataConnectorServiceSettingsBuilder = + DataConnectorServiceStubSettings.newBuilder(); + dataConnectorServiceSettingsBuilder + .getDataConnectorSettings() + .setRetrySettings( + dataConnectorServiceSettingsBuilder + .getDataConnectorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + DataConnectorServiceStubSettings dataConnectorServiceSettings = + dataConnectorServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_DataConnectorServiceStubSettings_GetDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/setupdataconnector/SyncSetUpDataConnector.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/setupdataconnector/SyncSetUpDataConnector.java new file mode 100644 index 000000000000..aad627b168bf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/dataconnectorservicestubsettings/setupdataconnector/SyncSetUpDataConnector.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_DataConnectorServiceStubSettings_SetUpDataConnector_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1.stub.DataConnectorServiceStubSettings; +import java.time.Duration; + +public class SyncSetUpDataConnector { + + public static void main(String[] args) throws Exception { + syncSetUpDataConnector(); + } + + public static void syncSetUpDataConnector() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataConnectorServiceStubSettings.Builder dataConnectorServiceSettingsBuilder = + DataConnectorServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataConnectorServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1_generated_DataConnectorServiceStubSettings_SetUpDataConnector_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java new file mode 100644 index 000000000000..8bccc9c41a5b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_LicenseConfigServiceStubSettings_CreateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1.stub.LicenseConfigServiceStubSettings; +import java.time.Duration; + +public class SyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfig(); + } + + public static void syncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceStubSettings.Builder licenseConfigServiceSettingsBuilder = + LicenseConfigServiceStubSettings.newBuilder(); + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .setRetrySettings( + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + LicenseConfigServiceStubSettings licenseConfigServiceSettings = + licenseConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_LicenseConfigServiceStubSettings_CreateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/createservingconfig/SyncCreateServingConfig.java similarity index 88% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/createservingconfig/SyncCreateServingConfig.java index 9febcdefc686..6d4026efc98d 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/servingconfigservicestubsettings/createservingconfig/SyncCreateServingConfig.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1.stub.samples; -// [START discoveryengine_v1_generated_ServingConfigServiceStubSettings_UpdateServingConfig_sync] +// [START discoveryengine_v1_generated_ServingConfigServiceStubSettings_CreateServingConfig_sync] import com.google.cloud.discoveryengine.v1.stub.ServingConfigServiceStubSettings; import java.time.Duration; -public class SyncUpdateServingConfig { +public class SyncCreateServingConfig { public static void main(String[] args) throws Exception { - syncUpdateServingConfig(); + syncCreateServingConfig(); } - public static void syncUpdateServingConfig() throws Exception { + public static void syncCreateServingConfig() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncUpdateServingConfig() throws Exception { ServingConfigServiceStubSettings.Builder servingConfigServiceSettingsBuilder = ServingConfigServiceStubSettings.newBuilder(); servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .setRetrySettings( servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -54,4 +54,4 @@ public static void syncUpdateServingConfig() throws Exception { servingConfigServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1_generated_ServingConfigServiceStubSettings_UpdateServingConfig_sync] +// [END discoveryengine_v1_generated_ServingConfigServiceStubSettings_CreateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/listuserlicenses/SyncListUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java similarity index 86% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/listuserlicenses/SyncListUserLicenses.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java index be40c379eedc..f112fdc29c3e 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/listuserlicenses/SyncListUserLicenses.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1.stub.samples; -// [START discoveryengine_v1_generated_UserLicenseServiceStubSettings_ListUserLicenses_sync] +// [START discoveryengine_v1_generated_UserLicenseServiceStubSettings_ListLicenseConfigsUsageStats_sync] import com.google.cloud.discoveryengine.v1.stub.UserLicenseServiceStubSettings; import java.time.Duration; -public class SyncListUserLicenses { +public class SyncListLicenseConfigsUsageStats { public static void main(String[] args) throws Exception { - syncListUserLicenses(); + syncListLicenseConfigsUsageStats(); } - public static void syncListUserLicenses() throws Exception { + public static void syncListLicenseConfigsUsageStats() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncListUserLicenses() throws Exception { UserLicenseServiceStubSettings.Builder userLicenseServiceSettingsBuilder = UserLicenseServiceStubSettings.newBuilder(); userLicenseServiceSettingsBuilder - .listUserLicensesSettings() + .listLicenseConfigsUsageStatsSettings() .setRetrySettings( userLicenseServiceSettingsBuilder - .listUserLicensesSettings() + .listLicenseConfigsUsageStatsSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -54,4 +54,4 @@ public static void syncListUserLicenses() throws Exception { userLicenseServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1_generated_UserLicenseServiceStubSettings_ListUserLicenses_sync] +// [END discoveryengine_v1_generated_UserLicenseServiceStubSettings_ListLicenseConfigsUsageStats_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java new file mode 100644 index 000000000000..373e87eeeeb7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_UserStoreServiceStubSettings_GetUserStore_sync] +import com.google.cloud.discoveryengine.v1.stub.UserStoreServiceStubSettings; +import java.time.Duration; + +public class SyncGetUserStore { + + public static void main(String[] args) throws Exception { + syncGetUserStore(); + } + + public static void syncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceStubSettings.Builder userStoreServiceSettingsBuilder = + UserStoreServiceStubSettings.newBuilder(); + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .setRetrySettings( + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + UserStoreServiceStubSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_UserStoreServiceStubSettings_GetUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/widgetconfigservicestubsettings/getwidgetconfig/SyncGetWidgetConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/widgetconfigservicestubsettings/getwidgetconfig/SyncGetWidgetConfig.java new file mode 100644 index 000000000000..556059d524a1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/stub/widgetconfigservicestubsettings/getwidgetconfig/SyncGetWidgetConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.stub.samples; + +// [START discoveryengine_v1_generated_WidgetConfigServiceStubSettings_GetWidgetConfig_sync] +import com.google.cloud.discoveryengine.v1.stub.WidgetConfigServiceStubSettings; +import java.time.Duration; + +public class SyncGetWidgetConfig { + + public static void main(String[] args) throws Exception { + syncGetWidgetConfig(); + } + + public static void syncGetWidgetConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WidgetConfigServiceStubSettings.Builder widgetConfigServiceSettingsBuilder = + WidgetConfigServiceStubSettings.newBuilder(); + widgetConfigServiceSettingsBuilder + .getWidgetConfigSettings() + .setRetrySettings( + widgetConfigServiceSettingsBuilder + .getWidgetConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + WidgetConfigServiceStubSettings widgetConfigServiceSettings = + widgetConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_WidgetConfigServiceStubSettings_GetWidgetConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java new file mode 100644 index 000000000000..3fc30d662ef4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreName; + +public class AsyncListLicenseConfigsUsageStats { + + public static void main(String[] args) throws Exception { + asyncListLicenseConfigsUsageStats(); + } + + public static void asyncListLicenseConfigsUsageStats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + ApiFuture future = + userLicenseServiceClient.listLicenseConfigsUsageStatsCallable().futureCall(request); + // Do something. + ListLicenseConfigsUsageStatsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java new file mode 100644 index 000000000000..71bcd3a603b6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_sync] +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreName; + +public class SyncListLicenseConfigsUsageStats { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStats(); + } + + public static void syncListLicenseConfigsUsageStats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + ListLicenseConfigsUsageStatsResponse response = + userLicenseServiceClient.listLicenseConfigsUsageStats(request); + } + } +} +// [END discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java new file mode 100644 index 000000000000..f3360d515330 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_String_sync] +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreName; + +public class SyncListLicenseConfigsUsageStatsString { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStatsString(); + } + + public static void syncListLicenseConfigsUsageStatsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString(); + ListLicenseConfigsUsageStatsResponse response = + userLicenseServiceClient.listLicenseConfigsUsageStats(parent); + } + } +} +// [END discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java new file mode 100644 index 000000000000..903c048f82f4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_Userstorename_sync] +import com.google.cloud.discoveryengine.v1.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreName; + +public class SyncListLicenseConfigsUsageStatsUserstorename { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStatsUserstorename(); + } + + public static void syncListLicenseConfigsUsageStatsUserstorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + ListLicenseConfigsUsageStatsResponse response = + userLicenseServiceClient.listLicenseConfigsUsageStats(parent); + } + } +} +// [END discoveryengine_v1_generated_UserLicenseService_ListLicenseConfigsUsageStats_Userstorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java index c0aeb05c8506..ae996c24eff7 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java @@ -42,6 +42,7 @@ public static void asyncListUserLicenses() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); ApiFuture future = userLicenseServiceClient.listUserLicensesPagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java index 136f66313247..41a7f164a560 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java @@ -43,6 +43,7 @@ public static void asyncListUserLicensesPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); while (true) { ListUserLicensesResponse response = diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/SyncListUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/SyncListUserLicenses.java index 023e7b1acdeb..e53dc47e742c 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/SyncListUserLicenses.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservice/listuserlicenses/SyncListUserLicenses.java @@ -41,6 +41,7 @@ public static void syncListUserLicenses() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") .build(); for (UserLicense element : userLicenseServiceClient.listUserLicenses(request).iterateAll()) { // doThingsWith(element); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/listuserlicenses/SyncListUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java similarity index 86% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/listuserlicenses/SyncListUserLicenses.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java index 9aeace53800c..cbc7327d3dc6 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/listuserlicenses/SyncListUserLicenses.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1.samples; -// [START discoveryengine_v1_generated_UserLicenseServiceSettings_ListUserLicenses_sync] +// [START discoveryengine_v1_generated_UserLicenseServiceSettings_ListLicenseConfigsUsageStats_sync] import com.google.cloud.discoveryengine.v1.UserLicenseServiceSettings; import java.time.Duration; -public class SyncListUserLicenses { +public class SyncListLicenseConfigsUsageStats { public static void main(String[] args) throws Exception { - syncListUserLicenses(); + syncListLicenseConfigsUsageStats(); } - public static void syncListUserLicenses() throws Exception { + public static void syncListLicenseConfigsUsageStats() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncListUserLicenses() throws Exception { UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder = UserLicenseServiceSettings.newBuilder(); userLicenseServiceSettingsBuilder - .listUserLicensesSettings() + .listLicenseConfigsUsageStatsSettings() .setRetrySettings( userLicenseServiceSettingsBuilder - .listUserLicensesSettings() + .listLicenseConfigsUsageStatsSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -54,4 +54,4 @@ public static void syncListUserLicenses() throws Exception { userLicenseServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1_generated_UserLicenseServiceSettings_ListUserLicenses_sync] +// [END discoveryengine_v1_generated_UserLicenseServiceSettings_ListLicenseConfigsUsageStats_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..15a50851a8cb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreServiceSettings; +import com.google.cloud.discoveryengine.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings userStoreServiceSettings = + UserStoreServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + UserStoreServiceClient userStoreServiceClient = + UserStoreServiceClient.create(userStoreServiceSettings); + } +} +// [END discoveryengine_v1_generated_UserStoreService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..1b515610613a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreServiceSettings; +import com.google.cloud.discoveryengine.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings userStoreServiceSettings = + UserStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + UserStoreServiceClient userStoreServiceClient = + UserStoreServiceClient.create(userStoreServiceSettings); + } +} +// [END discoveryengine_v1_generated_UserStoreService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fbf5501bd46a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; +import com.google.cloud.discoveryengine.v1.UserStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings userStoreServiceSettings = + UserStoreServiceSettings.newHttpJsonBuilder().build(); + UserStoreServiceClient userStoreServiceClient = + UserStoreServiceClient.create(userStoreServiceSettings); + } +} +// [END discoveryengine_v1_generated_UserStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/AsyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/AsyncGetUserStore.java new file mode 100644 index 000000000000..1432d183dcb9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/AsyncGetUserStore.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_GetUserStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreName; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; + +public class AsyncGetUserStore { + + public static void main(String[] args) throws Exception { + asyncGetUserStore(); + } + + public static void asyncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + GetUserStoreRequest request = + GetUserStoreRequest.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + ApiFuture future = + userStoreServiceClient.getUserStoreCallable().futureCall(request); + // Do something. + UserStore response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_GetUserStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStore.java new file mode 100644 index 000000000000..003eb04c523a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStore.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_GetUserStore_sync] +import com.google.cloud.discoveryengine.v1.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreName; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; + +public class SyncGetUserStore { + + public static void main(String[] args) throws Exception { + syncGetUserStore(); + } + + public static void syncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + GetUserStoreRequest request = + GetUserStoreRequest.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + UserStore response = userStoreServiceClient.getUserStore(request); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_GetUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreString.java new file mode 100644 index 000000000000..2163c15e62b9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_GetUserStore_String_sync] +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreName; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; + +public class SyncGetUserStoreString { + + public static void main(String[] args) throws Exception { + syncGetUserStoreString(); + } + + public static void syncGetUserStoreString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + String name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString(); + UserStore response = userStoreServiceClient.getUserStore(name); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_GetUserStore_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java new file mode 100644 index 000000000000..1ea94b7063a1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_GetUserStore_Userstorename_sync] +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreName; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; + +public class SyncGetUserStoreUserstorename { + + public static void main(String[] args) throws Exception { + syncGetUserStoreUserstorename(); + } + + public static void syncGetUserStoreUserstorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + UserStore response = userStoreServiceClient.getUserStore(name); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_GetUserStore_Userstorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/AsyncUpdateUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/AsyncUpdateUserStore.java new file mode 100644 index 000000000000..69a1c397b2fb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/AsyncUpdateUserStore.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_UpdateUserStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUserStore { + + public static void main(String[] args) throws Exception { + asyncUpdateUserStore(); + } + + public static void asyncUpdateUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UpdateUserStoreRequest request = + UpdateUserStoreRequest.newBuilder() + .setUserStore(UserStore.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + userStoreServiceClient.updateUserStoreCallable().futureCall(request); + // Do something. + UserStore response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_UpdateUserStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStore.java new file mode 100644 index 000000000000..f285860c681d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStore.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_UpdateUserStore_sync] +import com.google.cloud.discoveryengine.v1.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUserStore { + + public static void main(String[] args) throws Exception { + syncUpdateUserStore(); + } + + public static void syncUpdateUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UpdateUserStoreRequest request = + UpdateUserStoreRequest.newBuilder() + .setUserStore(UserStore.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + UserStore response = userStoreServiceClient.updateUserStore(request); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_UpdateUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java new file mode 100644 index 000000000000..5f732d99b2e0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreService_UpdateUserStore_UserstoreFieldmask_sync] +import com.google.cloud.discoveryengine.v1.UserStore; +import com.google.cloud.discoveryengine.v1.UserStoreServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUserStoreUserstoreFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateUserStoreUserstoreFieldmask(); + } + + public static void syncUpdateUserStoreUserstoreFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UserStore userStore = UserStore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UserStore response = userStoreServiceClient.updateUserStore(userStore, updateMask); + } + } +} +// [END discoveryengine_v1_generated_UserStoreService_UpdateUserStore_UserstoreFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservicesettings/getuserstore/SyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservicesettings/getuserstore/SyncGetUserStore.java new file mode 100644 index 000000000000..ce11c2d007ea --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/userstoreservicesettings/getuserstore/SyncGetUserStore.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_UserStoreServiceSettings_GetUserStore_sync] +import com.google.cloud.discoveryengine.v1.UserStoreServiceSettings; +import java.time.Duration; + +public class SyncGetUserStore { + + public static void main(String[] args) throws Exception { + syncGetUserStore(); + } + + public static void syncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings.Builder userStoreServiceSettingsBuilder = + UserStoreServiceSettings.newBuilder(); + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .setRetrySettings( + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + UserStoreServiceSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_UserStoreServiceSettings_GetUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..f6fd39698145 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceSettings; +import com.google.cloud.discoveryengine.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WidgetConfigServiceSettings widgetConfigServiceSettings = + WidgetConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + WidgetConfigServiceClient widgetConfigServiceClient = + WidgetConfigServiceClient.create(widgetConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ebee74b1a626 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceSettings; +import com.google.cloud.discoveryengine.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WidgetConfigServiceSettings widgetConfigServiceSettings = + WidgetConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + WidgetConfigServiceClient widgetConfigServiceClient = + WidgetConfigServiceClient.create(widgetConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fe38e3e434f8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WidgetConfigServiceSettings widgetConfigServiceSettings = + WidgetConfigServiceSettings.newHttpJsonBuilder().build(); + WidgetConfigServiceClient widgetConfigServiceClient = + WidgetConfigServiceClient.create(widgetConfigServiceSettings); + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/AsyncGetWidgetConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/AsyncGetWidgetConfig.java new file mode 100644 index 000000000000..1dc54ca50163 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/AsyncGetWidgetConfig.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.ModelInfoView; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigName; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; + +public class AsyncGetWidgetConfig { + + public static void main(String[] args) throws Exception { + asyncGetWidgetConfig(); + } + + public static void asyncGetWidgetConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + GetWidgetConfigRequest request = + GetWidgetConfigRequest.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setAcceptCache(true) + .setGetWidgetConfigRequestOption( + GetWidgetConfigRequest.GetWidgetConfigRequestOption.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setModelInfoView(ModelInfoView.forNumber(0)) + .build(); + ApiFuture future = + widgetConfigServiceClient.getWidgetConfigCallable().futureCall(request); + // Do something. + WidgetConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfig.java new file mode 100644 index 000000000000..0965a4ab1394 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_sync] +import com.google.cloud.discoveryengine.v1.GetWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.ModelInfoView; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigName; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; + +public class SyncGetWidgetConfig { + + public static void main(String[] args) throws Exception { + syncGetWidgetConfig(); + } + + public static void syncGetWidgetConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + GetWidgetConfigRequest request = + GetWidgetConfigRequest.newBuilder() + .setName( + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString()) + .setAcceptCache(true) + .setGetWidgetConfigRequestOption( + GetWidgetConfigRequest.GetWidgetConfigRequestOption.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setModelInfoView(ModelInfoView.forNumber(0)) + .build(); + WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(request); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigString.java new file mode 100644 index 000000000000..c0cef2aa5a69 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_String_sync] +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigName; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; + +public class SyncGetWidgetConfigString { + + public static void main(String[] args) throws Exception { + syncGetWidgetConfigString(); + } + + public static void syncGetWidgetConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + String name = + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]") + .toString(); + WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(name); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigWidgetconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigWidgetconfigname.java new file mode 100644 index 000000000000..11616f86bc06 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/getwidgetconfig/SyncGetWidgetConfigWidgetconfigname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_Widgetconfigname_sync] +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigName; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; + +public class SyncGetWidgetConfigWidgetconfigname { + + public static void main(String[] args) throws Exception { + syncGetWidgetConfigWidgetconfigname(); + } + + public static void syncGetWidgetConfigWidgetconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + WidgetConfigName name = + WidgetConfigName.ofProjectLocationDataStoreWidgetConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[WIDGET_CONFIG]"); + WidgetConfig response = widgetConfigServiceClient.getWidgetConfig(name); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_GetWidgetConfig_Widgetconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/AsyncUpdateWidgetConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/AsyncUpdateWidgetConfig.java new file mode 100644 index 000000000000..384bf2f28411 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/AsyncUpdateWidgetConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_UpdateWidgetConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWidgetConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateWidgetConfig(); + } + + public static void asyncUpdateWidgetConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + UpdateWidgetConfigRequest request = + UpdateWidgetConfigRequest.newBuilder() + .setWidgetConfig(WidgetConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + widgetConfigServiceClient.updateWidgetConfigCallable().futureCall(request); + // Do something. + WidgetConfig response = future.get(); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_UpdateWidgetConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfig.java new file mode 100644 index 000000000000..da1171ea2351 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_UpdateWidgetConfig_sync] +import com.google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest; +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWidgetConfig { + + public static void main(String[] args) throws Exception { + syncUpdateWidgetConfig(); + } + + public static void syncUpdateWidgetConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + UpdateWidgetConfigRequest request = + UpdateWidgetConfigRequest.newBuilder() + .setWidgetConfig(WidgetConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + WidgetConfig response = widgetConfigServiceClient.updateWidgetConfig(request); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_UpdateWidgetConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfigWidgetconfigFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfigWidgetconfigFieldmask.java new file mode 100644 index 000000000000..072160a872a5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservice/updatewidgetconfig/SyncUpdateWidgetConfigWidgetconfigFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigService_UpdateWidgetConfig_WidgetconfigFieldmask_sync] +import com.google.cloud.discoveryengine.v1.WidgetConfig; +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWidgetConfigWidgetconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWidgetConfigWidgetconfigFieldmask(); + } + + public static void syncUpdateWidgetConfigWidgetconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WidgetConfigServiceClient widgetConfigServiceClient = WidgetConfigServiceClient.create()) { + WidgetConfig widgetConfig = WidgetConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + WidgetConfig response = + widgetConfigServiceClient.updateWidgetConfig(widgetConfig, updateMask); + } + } +} +// [END discoveryengine_v1_generated_WidgetConfigService_UpdateWidgetConfig_WidgetconfigFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservicesettings/getwidgetconfig/SyncGetWidgetConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservicesettings/getwidgetconfig/SyncGetWidgetConfig.java new file mode 100644 index 000000000000..ec8040dbd785 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/widgetconfigservicesettings/getwidgetconfig/SyncGetWidgetConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1.samples; + +// [START discoveryengine_v1_generated_WidgetConfigServiceSettings_GetWidgetConfig_sync] +import com.google.cloud.discoveryengine.v1.WidgetConfigServiceSettings; +import java.time.Duration; + +public class SyncGetWidgetConfig { + + public static void main(String[] args) throws Exception { + syncGetWidgetConfig(); + } + + public static void syncGetWidgetConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WidgetConfigServiceSettings.Builder widgetConfigServiceSettingsBuilder = + WidgetConfigServiceSettings.newBuilder(); + widgetConfigServiceSettingsBuilder + .getWidgetConfigSettings() + .setRetrySettings( + widgetConfigServiceSettingsBuilder + .getWidgetConfigSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + WidgetConfigServiceSettings widgetConfigServiceSettings = + widgetConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1_generated_WidgetConfigServiceSettings_GetWidgetConfig_sync] diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java index 01b04806a7a7..9e5a9bdfdc20 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java @@ -1811,6 +1811,7 @@ public final UnaryCallable getProcessorCallable( * .setDocumentSchema(DocumentSchema.newBuilder().build()) * .setInputData(TrainProcessorVersionRequest.InputData.newBuilder().build()) * .setBaseProcessorVersion("baseProcessorVersion337709271") + * .setProcessorVersionOverrides(ProcessorVersionOverrides.newBuilder().build()) * .build(); * TrainProcessorVersionResponse response = * documentProcessorServiceClient.trainProcessorVersionAsync(request).get(); @@ -1847,6 +1848,7 @@ public final UnaryCallable getProcessorCallable( * .setDocumentSchema(DocumentSchema.newBuilder().build()) * .setInputData(TrainProcessorVersionRequest.InputData.newBuilder().build()) * .setBaseProcessorVersion("baseProcessorVersion337709271") + * .setProcessorVersionOverrides(ProcessorVersionOverrides.newBuilder().build()) * .build(); * OperationFuture future = * documentProcessorServiceClient @@ -1887,6 +1889,7 @@ public final UnaryCallable getProcessorCallable( * .setDocumentSchema(DocumentSchema.newBuilder().build()) * .setInputData(TrainProcessorVersionRequest.InputData.newBuilder().build()) * .setBaseProcessorVersion("baseProcessorVersion337709271") + * .setProcessorVersionOverrides(ProcessorVersionOverrides.newBuilder().build()) * .build(); * ApiFuture future = * documentProcessorServiceClient.trainProcessorVersionCallable().futureCall(request); diff --git a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json index 8693b34170a8..34ecbf9638b5 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json +++ b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json @@ -2996,6 +2996,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.documentai.v1beta3.GroundingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.GroundingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.GroundingSettings$GroundingType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.HumanReviewStatus", "queryAllDeclaredConstructors": true, @@ -3779,6 +3806,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.documentai.v1beta3.PropertyMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java index dbbb9e6cac65..041c8af5b01f 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java @@ -900,6 +900,7 @@ public void getProcessorVersionTest() throws Exception { .setSatisfiesPzs(true) .setSatisfiesPzi(true) .setGenAiModelInfo(ProcessorVersion.GenAiModelInfo.newBuilder().build()) + .setGroundingSettings(GroundingSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -960,6 +961,7 @@ public void getProcessorVersionTest2() throws Exception { .setSatisfiesPzs(true) .setSatisfiesPzi(true) .setGenAiModelInfo(ProcessorVersion.GenAiModelInfo.newBuilder().build()) + .setGroundingSettings(GroundingSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java index e4f9ec7f5264..1af86fdf1947 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java @@ -826,6 +826,7 @@ public void getProcessorVersionTest() throws Exception { .setSatisfiesPzs(true) .setSatisfiesPzi(true) .setGenAiModelInfo(ProcessorVersion.GenAiModelInfo.newBuilder().build()) + .setGroundingSettings(GroundingSettings.newBuilder().build()) .build(); mockDocumentProcessorService.addResponse(expectedResponse); @@ -880,6 +881,7 @@ public void getProcessorVersionTest2() throws Exception { .setSatisfiesPzs(true) .setSatisfiesPzi(true) .setGenAiModelInfo(ProcessorVersion.GenAiModelInfo.newBuilder().build()) + .setGroundingSettings(GroundingSettings.newBuilder().build()) .build(); mockDocumentProcessorService.addResponse(expectedResponse); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java index cc9da41389df..d9c94c7cab15 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java @@ -68,6 +68,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_Processor_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_Processor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_GroundingSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_GroundingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -82,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a3\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\0325google/cloud/documentai/v1beta3/document_schema.proto\0320g" + "oogle/cloud/documentai/v1beta3/evaluatio" - + "n.proto\032\037google/protobuf/timestamp.proto\"\345\017\n" + + "n.proto\032\037google/protobuf/timestamp.proto\"\273\020\n" + "\020ProcessorVersion\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\024\n" + "\014display_name\030\002 \001(\t\022N\n" @@ -105,23 +113,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzs\030\020 \001(\010B\004\342A\001\003\022\033\n\r" + "satisfies_pzi\030\021 \001(\010B\004\342A\001\003\022a\n" + "\021gen_ai_model_info\030\022 \001(\0132@.google.cloud.documentai.v1bet" - + "a3.ProcessorVersion.GenAiModelInfoB\004\342A\001\003\032\237\001\n" + + "a3.ProcessorVersion.GenAiModelInfoB\004\342A\001\003\022T\n" + + "\022grounding_settings\030\025 \001(\01322.google.cl" + + "oud.documentai.v1beta3.GroundingSettingsB\004\342A\001\003\032\237\001\n" + "\017DeprecationInfo\0224\n" + "\020deprecation_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022V\n" + "\035replacement_processor_version\030\002 \001(\tB/\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\032\231\005\n" + "\016GenAiModelInfo\022\201\001\n" - + "\034foundation_gen_ai_model_info\030\001 \001(\0132Y.google.cloud.docu" - + "mentai.v1beta3.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfoH\000\022y\n" - + "\030custom_gen_ai_model_info\030\002 \001(\0132U.google.clo" - + "ud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfoH\000\032[\n" + + "\034foundation_gen_ai_model_info\030\001 \001(\0132Y.google.clou" + + "d.documentai.v1beta3.ProcessorVersion.Ge" + + "nAiModelInfo.FoundationGenAiModelInfoH\000\022y\n" + + "\030custom_gen_ai_model_info\030\002 \001(\0132U.goog" + + "le.cloud.documentai.v1beta3.ProcessorVer" + + "sion.GenAiModelInfo.CustomGenAiModelInfoH\000\032[\n" + "\030FoundationGenAiModelInfo\022\032\n" + "\022finetuning_allowed\030\001 \001(\010\022#\n" + "\033min_train_labeled_documents\030\002 \001(\005\032\234\002\n" + "\024CustomGenAiModelInfo\022\200\001\n" - + "\021custom_model_type\030\001 \001(\0162e.google.cloud.do" - + "cumentai.v1beta3.ProcessorVersion.GenAiM" - + "odelInfo.CustomGenAiModelInfo.CustomModelType\022!\n" + + "\021custom_model_type\030\001 \001(\0162e.google.cl" + + "oud.documentai.v1beta3.ProcessorVersion." + + "GenAiModelInfo.CustomGenAiModelInfo.CustomModelType\022!\n" + "\031base_processor_version_id\030\002 \001(\t\"^\n" + "\017CustomModelType\022!\n" + "\035CUSTOM_MODEL_TYPE_UNSPECIFIED\020\000\022\030\n" @@ -142,8 +154,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026MODEL_TYPE_UNSPECIFIED\020\000\022\031\n" + "\025MODEL_TYPE_GENERATIVE\020\001\022\025\n" + "\021MODEL_TYPE_CUSTOM\020\002:\226\001\352A\222\001\n" - + "*documentai.googleapis.com/ProcessorVersion\022dprojects/{project}/locations/{locati" - + "on}/processors/{processor}/processorVersions/{processor_version}\"r\n" + + "*documentai.googleapis.com/ProcessorVersion\022dprojects/{project}/locations/{" + + "location}/processors/{processor}/processorVersions/{processor_version}\"r\n" + "\025ProcessorVersionAlias\022\r\n" + "\005alias\030\001 \001(\t\022J\n" + "\021processor_version\030\002 \001(\tB/\372A,\n" @@ -152,13 +164,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\005\342A\002\005\003\022\014\n" + "\004type\030\002 \001(\t\022\024\n" + "\014display_name\030\003 \001(\t\022E\n" - + "\005state\030\004 \001(\01620.google.clou" - + "d.documentai.v1beta3.Processor.StateB\004\342A\001\003\022R\n" + + "\005state\030\004 \001(\01620.googl" + + "e.cloud.documentai.v1beta3.Processor.StateB\004\342A\001\003\022R\n" + "\031default_processor_version\030\t \001(\tB/\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\022_\n" + "\031processor_version_aliases\030\n" - + " \003(" - + "\01326.google.cloud.documentai.v1beta3.ProcessorVersionAliasB\004\342A\001\003\022\037\n" + + " \003(\01326.google.cloud.documentai.v1beta3.ProcessorVersionAliasB\004\342A\001\003\022\037\n" + "\020process_endpoint\030\006 \001(\tB\005\342A\002\003\005\0225\n" + "\013create_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" @@ -175,13 +186,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010CREATING\020\005\022\n\n" + "\006FAILED\020\006\022\014\n" + "\010DELETING\020\007:h\352Ae\n" - + "#documentai.googleapis.com/Processo" - + "r\022>projects/{project}/locations/{location}/processors/{processor}B\352\001\n" - + "#com.google.cloud.documentai.v1beta3B\023DocumentAiPro" - + "cessorP\001ZCcloud.google.com/go/documentai" - + "/apiv1beta3/documentaipb;documentaipb\252\002\037" - + "Google.Cloud.DocumentAI.V1Beta3\312\002\037Google" - + "\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1beta3b\006proto3" + + "#documentai.googleapis.com/Pr" + + "ocessor\022>projects/{project}/locations/{location}/processors/{processor}\"\313\001\n" + + "\021GroundingSettings\022X\n" + + "\016grounding_type\030\001 \001(\0162@." + + "google.cloud.documentai.v1beta3.GroundingSettings.GroundingType\"\\\n\r" + + "GroundingType\022\036\n" + + "\032GROUNDING_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004HARD\020\001\022\017\n" + + "\013OCR_RELAXED\020\002\022\020\n" + + "\014NO_GROUNDING\020\003\"q\n" + + "\031ProcessorVersionOverrides\022T\n" + + "\022grounding_settings\030\001" + + " \001(\01322.google.cloud.documentai.v1beta3.GroundingSettingsB\004\342A\001\001B\352\001\n" + + "#com.google.cloud.documentai.v1beta3B\023Docume" + + "ntAiProcessorP\001ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;document" + + "aipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002" + + "\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Googl" + + "e::Cloud::DocumentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -213,6 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SatisfiesPzs", "SatisfiesPzi", "GenAiModelInfo", + "GroundingSettings", }); internal_static_google_cloud_documentai_v1beta3_ProcessorVersion_DeprecationInfo_descriptor = internal_static_google_cloud_documentai_v1beta3_ProcessorVersion_descriptor.getNestedType( @@ -276,6 +299,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SatisfiesPzs", "SatisfiesPzi", }); + internal_static_google_cloud_documentai_v1beta3_GroundingSettings_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_documentai_v1beta3_GroundingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_GroundingSettings_descriptor, + new java.lang.String[] { + "GroundingType", + }); + internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_descriptor, + new java.lang.String[] { + "GroundingSettings", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java index 84e6683093ad..af48bf320520 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java @@ -542,7 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"SetDefaultProcessorVersionResponse\"w\n" + "\"SetDefaultProcessorVersionMetadata\022Q\n" + "\017common_metadata\030\001" - + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\224\n\n" + + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"\373\n\n" + "\034TrainProcessorVersionRequest\022\213\001\n" + "\"custom_document_extraction_options\030\005 \001(\0132].google.cl" + "oud.documentai.v1beta3.TrainProcessorVer" @@ -557,15 +557,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchemaB\004\342A\001\001\022a\n\n" + "input_data\030\004 \001(\0132G.google.clo" + "ud.documentai.v1beta3.TrainProcessorVersionRequest.InputDataB\004\342A\001\001\022$\n" - + "\026base_processor_version\030\010 \001(\tB\004\342A\001\001\032\267\001\n" + + "\026base_processor_version\030\010 \001(\tB\004\342A\001\001\022e\n" + + "\033processor_version_overrides\030\r" + + " \001(\0132:.google.cloud.doc" + + "umentai.v1beta3.ProcessorVersionOverridesB\004\342A\001\001\032\267\001\n" + "\tInputData\022V\n" - + "\022training_documents\030\003 \001(\0132:.google.clou" - + "d.documentai.v1beta3.BatchDocumentsInputConfig\022R\n" - + "\016test_documents\030\004 \001(\0132:.google." - + "cloud.documentai.v1beta3.BatchDocumentsInputConfig\032\207\002\n" + + "\022training_documents\030\003" + + " \001(\0132:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\022R\n" + + "\016test_documents\030\004" + + " \001(\0132:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig\032\207\002\n" + "\037CustomDocumentExtractionOptions\022\213\001\n" - + "\017training_method\030\003 \001(\0162l.google.cloud.documentai.v1beta3.TrainProcesso" - + "rVersionRequest.CustomDocumentExtractionOptions.TrainingMethodB\004\342A\001\001\"V\n" + + "\017training_method\030\003 \001(\0162l.google.cloud.documenta" + + "i.v1beta3.TrainProcessorVersionRequest.C" + + "ustomDocumentExtractionOptions.TrainingMethodB\004\342A\001\001\"V\n" + "\016TrainingMethod\022\037\n" + "\033TRAINING_METHOD_UNSPECIFIED\020\000\022\017\n" + "\013MODEL_BASED\020\001\022\022\n" @@ -578,12 +582,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035TrainProcessorVersionResponse\022\031\n" + "\021processor_version\030\001 \001(\t\"\206\004\n" + "\035TrainProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001" - + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022u\n" - + "\033training_dataset_validation\030\002 \001(\0132P.google.clo" - + "ud.documentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\022q\n" - + "\027test_dataset_validation\030\003 \001(\0132P.google.cloud.do" - + "cumentai.v1beta3.TrainProcessorVersionMetadata.DatasetValidation\032\247\001\n" + + "\017common_metadata\030\001 \001(\01328.go" + + "ogle.cloud.documentai.v1beta3.CommonOperationMetadata\022u\n" + + "\033training_dataset_validation\030\002 \001(\0132P.google.cloud.documentai.v1b" + + "eta3.TrainProcessorVersionMetadata.DatasetValidation\022q\n" + + "\027test_dataset_validation\030\003 \001(\0132P.google.cloud.documentai.v1beta3." + + "TrainProcessorVersionMetadata.DatasetValidation\032\247\001\n" + "\021DatasetValidation\022\034\n" + "\024document_error_count\030\003 \001(\005\022\033\n" + "\023dataset_error_count\030\004 \001(\005\022+\n" @@ -597,32 +601,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010document\030\002" + " \001(\0132).google.cloud.documentai.v1beta3.DocumentB\002\030\001\022 \n" + "\030enable_schema_validation\030\003 \001(\010\022Q\n" - + "\010priority\030\005" - + " \001(\0162?.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\022H\n" - + "\017document_schema\030\006" - + " \001(\0132/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n" + + "\010priority\030\005 \001(\0162?.goog" + + "le.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority\022H\n" + + "\017document_schema\030\006 " + + "\001(\0132/.google.cloud.documentai.v1beta3.DocumentSchema\"#\n" + "\010Priority\022\013\n" + "\007DEFAULT\020\000\022\n\n" + "\006URGENT\020\001B\010\n" + "\006source\"\326\001\n" + "\026ReviewDocumentResponse\022\027\n" + "\017gcs_destination\030\001 \001(\t\022L\n" - + "\005state\030\002 \001(\0162=.google.cloud.d" - + "ocumentai.v1beta3.ReviewDocumentResponse.State\022\030\n" + + "\005state\030\002" + + " \001(\0162=.google.cloud.documentai.v1beta3.ReviewDocumentResponse.State\022\030\n" + "\020rejection_reason\030\003 \001(\t\";\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" - + "\010REJECTED\020\001\022\r" - + "\n" + + "\010REJECTED\020\001\022\r\n" + "\tSUCCEEDED\020\002\"\300\003\n" + "\037ReviewDocumentOperationMetadata\022U\n" - + "\005state\030\001 \001(\0162F.google.cloud." - + "documentai.v1beta3.ReviewDocumentOperationMetadata.State\022\025\n\r" + + "\005state\030\001 \001(\0162F.google.cloud.documentai.v1beta" + + "3.ReviewDocumentOperationMetadata.State\022\025\n\r" + "state_message\030\002 \001(\t\022/\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022Q\n" - + "\017common_metadata\030\005 \001" - + "(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\022\023\n" + + "\017common_metadata\030\005 \001(\01328.google.cloud" + + ".documentai.v1beta3.CommonOperationMetadata\022\023\n" + "\013question_id\030\006 \001(\t\"e\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" @@ -634,11 +637,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037EvaluateProcessorVersionRequest\022N\n" + "\021processor_version\030\001 \001(\tB3\342A\001\002\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\022^\n" - + "\024evaluation_documents\030\003" - + " \001(\0132:.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\004\342A\001\001\"u\n" + + "\024evaluation_documents\030\003 \001(\0132:.goog" + + "le.cloud.documentai.v1beta3.BatchDocumentsInputConfigB\004\342A\001\001\"u\n" + " EvaluateProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001" - + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"6\n" + + "\017common_metadata\030\001 \001(\013" + + "28.google.cloud.documentai.v1beta3.CommonOperationMetadata\"6\n" + " EvaluateProcessorVersionResponse\022\022\n\n" + "evaluation\030\002 \001(\t\"S\n" + "\024GetEvaluationRequest\022;\n" @@ -650,17 +653,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"t\n" + "\027ListEvaluationsResponse\022@\n" - + "\013evaluations\030\001 \003(\0132" - + "+.google.cloud.documentai.v1beta3.Evaluation\022\027\n" + + "\013evaluations\030\001" + + " \003(\0132+.google.cloud.documentai.v1beta3.Evaluation\022\027\n" + "\017next_page_token\030\002 \001(\t\"\263\003\n" + "\035ImportProcessorVersionRequest\022S\n" + "\030processor_version_source\030\002 \001(\tB/\372A,\n" + "*documentai.googleapis.com/ProcessorVersionH\000\022\212\001\n" - + "!external_processor_version_source\030\003 \001(\0132].googl" - + "e.cloud.documentai.v1beta3.ImportProcess" - + "orVersionRequest.ExternalProcessorVersionSourceH\000\022C\n" - + "\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*docu" - + "mentai.googleapis.com/ProcessorVersion\032a\n" + + "!external_processor_version_source\030\003 \001(\0132].google.cloud.documenta" + + "i.v1beta3.ImportProcessorVersionRequest.ExternalProcessorVersionSourceH\000\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\342A\001\002\372A,\022*documentai.googleapis.com/ProcessorVersion\032a\n" + "\036ExternalProcessorVersionSource\022\037\n" + "\021processor_version\030\001 \001(\tB\004\342A\001\002\022\036\n" + "\020service_endpoint\030\002 \001(\tB\004\342A\001\001B\010\n" @@ -669,147 +671,151 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021processor_version\030\001 \001(\tB/\372A,\n" + "*documentai.googleapis.com/ProcessorVersion\"s\n" + "\036ImportProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 \001(\01328.g" - + "oogle.cloud.documentai.v1beta3.CommonOperationMetadata\"s\n" + + "\017common_metadata\030\001" + + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata\"s\n" + "\036UpdateProcessorVersionMetadata\022Q\n" - + "\017common_metadata\030\001 \001(\01328.goog" - + "le.cloud.documentai.v1beta3.CommonOperationMetadata2\356.\n" + + "\017common_metadata\030\001" + + " \001(\01328.google.cloud.documentai.v1beta3.CommonOperationMetadata2\356.\n" + "\030DocumentProcessorService\022\233\002\n" - + "\017ProcessDocument\022/.google.cloud.documentai.v1beta3.ProcessRequest\0320.google.c" - + "loud.documentai.v1beta3.ProcessResponse\"" - + "\244\001\332A\004name\202\323\344\223\002\226\001\";/v1beta3/{name=project" - + "s/*/locations/*/processors/*}:process:\001*ZT\"O/v1beta3/{name=projects/*/locations/" - + "*/processors/*/processorVersions/*}:process:\001*\022\314\002\n" - + "\025BatchProcessDocuments\0224.google.cloud.documentai.v1beta3.BatchProcessR" - + "equest\032\035.google.longrunning.Operation\"\335\001\312A,\n" - + "\024BatchProcessResponse\022\024BatchProcessM" - + "etadata\332A\004name\202\323\344\223\002\240\001\"@/v1beta3/{name=pr" - + "ojects/*/locations/*/processors/*}:batchProcess:\001*ZY\"T/v1beta3/{name=projects/*/" - + "locations/*/processors/*/processorVersions/*}:batchProcess:\001*\022\337\001\n" - + "\023FetchProcessorTypes\022;.google.cloud.documentai.v1beta3." - + "FetchProcessorTypesRequest\032<.google.cloud.documentai.v1beta3.FetchProcessorTypes" - + "Response\"M\332A\006parent\202\323\344\223\002>\022\n" - + "\035TrainProcessorVersionResponse\022\035TrainProcessorVersionMetadata\332A\030" - + "parent,processor_version\202\323\344\223\002R\"M/v1beta3" - + "/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\001*\022\335\001\n" - + "\023GetProcessorVersion\022;.google.cloud.document" - + "ai.v1beta3.GetProcessorVersionRequest\0321.google.cloud.documentai.v1beta3.Processo" - + "rVersion\"V\332A\004name\202\323\344\223\002I\022G/v1beta3/{name=" - + "projects/*/locations/*/processors/*/processorVersions/*}\022\360\001\n" - + "\025ListProcessorVersions\022=.google.cloud.documentai.v1beta3.Lis" - + "tProcessorVersionsRequest\032>.google.cloud.documentai.v1beta3.ListProcessorVersion" - + "sResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1beta3/{pa" - + "rent=projects/*/locations/*/processors/*}/processorVersions\022\212\002\n" - + "\026DeleteProcessorVersion\022>.google.cloud.documentai.v1beta3" - + ".DeleteProcessorVersionRequest\032\035.google.longrunning.Operation\"\220\001\312A7\n" - + "\025google.protobuf.Empty\022\036DeleteProcessorVersionMetada" - + "ta\332A\004name\202\323\344\223\002I*G/v1beta3/{name=projects" - + "/*/locations/*/processors/*/processorVersions/*}\022\235\002\n" - + "\026DeployProcessorVersion\022>.google.cloud.documentai.v1beta3.DeployProc" - + "essorVersionRequest\032\035.google.longrunning.Operation\"\243\001\312A@\n" - + "\036DeployProcessorVersionResponse\022\036DeployProcessorVersionMetadata" - + "\332A\004name\202\323\344\223\002S\"N/v1beta3/{name=projects/*" - + "/locations/*/processors/*/processorVersions/*}:deploy:\001*\022\247\002\n" - + "\030UndeployProcessorVersion\022@.google.cloud.documentai.v1beta3." - + "UndeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\251\001\312AD\n" - + " UndeployProcessorVersionResponse\022 UndeployProcesso" - + "rVersionMetadata\332A\004name\202\323\344\223\002U\"P/v1beta3/" - + "{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\001*\022\321\001\n" - + "\017CreateProcessor\0227.google.cloud.documentai" - + ".v1beta3.CreateProcessorRequest\032*.google" - + ".cloud.documentai.v1beta3.Processor\"Y\332A\020" - + "parent,processor\202\323\344\223\002@\"3/v1beta3/{parent=projects/*/locations/*}/processors:" + + "\017ProcessDocument\022/.google.cloud.documentai.v1beta3.Pr" + + "ocessRequest\0320.google.cloud.documentai.v" + + "1beta3.ProcessResponse\"\244\001\332A\004name\202\323\344\223\002\226\001\"" + + ";/v1beta3/{name=projects/*/locations/*/processors/*}:process:\001*ZT\"O/v1beta3/{nam" + + "e=projects/*/locations/*/processors/*/processorVersions/*}:process:\001*\022\314\002\n" + + "\025BatchProcessDocuments\0224.google.cloud.documenta" + + "i.v1beta3.BatchProcessRequest\032\035.google.longrunning.Operation\"\335\001\312A,\n" + + "\024BatchProcessResponse\022\024BatchProcessMetadata\332A\004name\202\323\344" + + "\223\002\240\001\"@/v1beta3/{name=projects/*/location" + + "s/*/processors/*}:batchProcess:\001*ZY\"T/v1beta3/{name=projects/*/locations/*/proce" + + "ssors/*/processorVersions/*}:batchProcess:\001*\022\337\001\n" + + "\023FetchProcessorTypes\022;.google.cloud.documentai.v1beta3.FetchProcessorTyp" + + "esRequest\032<.google.cloud.documentai.v1be" + + "ta3.FetchProcessorTypesResponse\"M\332A\006pare" + + "nt\202\323\344\223\002>\022\n" + + "\035TrainProcessorVersionResponse\022\035TrainProc" + + "essorVersionMetadata\332A\030parent,processor_" + + "version\202\323\344\223\002R\"M/v1beta3/{parent=projects" + + "/*/locations/*/processors/*}/processorVersions:train:\001*\022\335\001\n" + + "\023GetProcessorVersion\022;.google.cloud.documentai.v1beta3.GetPro" + + "cessorVersionRequest\0321.google.cloud.docu" + + "mentai.v1beta3.ProcessorVersion\"V\332A\004name" + + "\202\323\344\223\002I\022G/v1beta3/{name=projects/*/locati" + + "ons/*/processors/*/processorVersions/*}\022\360\001\n" + + "\025ListProcessorVersions\022=.google.cloud.documentai.v1beta3.ListProcessorVersion" + + "sRequest\032>.google.cloud.documentai.v1bet" + + "a3.ListProcessorVersionsResponse\"X\332A\006par" + + "ent\202\323\344\223\002I\022G/v1beta3/{parent=projects/*/l" + + "ocations/*/processors/*}/processorVersions\022\212\002\n" + + "\026DeleteProcessorVersion\022>.google.cloud.documentai.v1beta3.DeleteProcessorV" + + "ersionRequest\032\035.google.longrunning.Operation\"\220\001\312A7\n" + + "\025google.protobuf.Empty\022\036Delet" + + "eProcessorVersionMetadata\332A\004name\202\323\344\223\002I*G" + + "/v1beta3/{name=projects/*/locations/*/processors/*/processorVersions/*}\022\235\002\n" + + "\026DeployProcessorVersion\022>.google.cloud.docume" + + "ntai.v1beta3.DeployProcessorVersionRequest\032\035.google.longrunning.Operation\"\243\001\312A@\n" + + "\036DeployProcessorVersionResponse\022\036DeployP" + + "rocessorVersionMetadata\332A\004name\202\323\344\223\002S\"N/v" + + "1beta3/{name=projects/*/locations/*/proc" + + "essors/*/processorVersions/*}:deploy:\001*\022\247\002\n" + + "\030UndeployProcessorVersion\022@.google.cloud.documentai.v1beta3.UndeployProcessor" + + "VersionRequest\032\035.google.longrunning.Operation\"\251\001\312AD\n" + + " UndeployProcessorVersionResponse\022 UndeployProcessorVersionMetadata\332" + + "A\004name\202\323\344\223\002U\"P/v1beta3/{name=projects/*/" + + "locations/*/processors/*/processorVersions/*}:undeploy:\001*\022\321\001\n" + + "\017CreateProcessor\0227.google.cloud.documentai.v1beta3.CreatePr" + + "ocessorRequest\032*.google.cloud.documentai" + + ".v1beta3.Processor\"Y\332A\020parent,processor\202" + + "\323\344\223\002@\"3/v1beta3/{parent=projects/*/locations/*}/processors:" + "\tprocessor\022\340\001\n" - + "\017DeleteProcessor\0227.google.clou" - + "d.documentai.v1beta3.DeleteProcessorRequest\032\035.google.longrunning.Operation\"u\312A0\n" - + "\025google.protobuf.Empty\022\027DeleteProcessorM" - + "etadata\332A\004name\202\323\344\223\0025*3/v1beta3/{name=projects/*/locations/*/processors/*}\022\345\001\n" - + "\017EnableProcessor\0227.google.cloud.documentai." - + "v1beta3.EnableProcessorRequest\032\035.google.longrunning.Operation\"z\312A2\n" - + "\027EnableProcessorResponse\022\027EnableProcessorMetadata\202\323\344\223" - + "\002?\":/v1beta3/{name=projects/*/locations/*/processors/*}:enable:\001*\022\352\001\n" - + "\020DisablePro", - "cessor\0228.google.cloud.documentai.v1beta3" - + ".DisableProcessorRequest\032\035.google.longru" - + "nning.Operation\"}\312A4\n\030DisableProcessorRe" - + "sponse\022\030DisableProcessorMetadata\202\323\344\223\002@\";" - + "/v1beta3/{name=projects/*/locations/*/pr" - + "ocessors/*}:disable:\001*\022\253\002\n\032SetDefaultPro" - + "cessorVersion\022B.google.cloud.documentai." - + "v1beta3.SetDefaultProcessorVersionReques" - + "t\032\035.google.longrunning.Operation\"\251\001\312AH\n\"" - + "SetDefaultProcessorVersionResponse\022\"SetD" - + "efaultProcessorVersionMetadata\202\323\344\223\002X\"S/v" - + "1beta3/{processor=projects/*/locations/*" - + "/processors/*}:setDefaultProcessorVersio" - + "n:\001*\022\255\002\n\016ReviewDocument\0226.google.cloud.d" - + "ocumentai.v1beta3.ReviewDocumentRequest\032" - + "\035.google.longrunning.Operation\"\303\001\210\002\001\312A9\n" - + "\026ReviewDocumentResponse\022\037ReviewDocumentO" - + "perationMetadata\332A\023human_review_config\202\323" - + "\344\223\002h\"c/v1beta3/{human_review_config=proj" - + "ects/*/locations/*/processors/*/humanRev" - + "iewConfig}:reviewDocument:\001*\022\321\002\n\030Evaluat" - + "eProcessorVersion\022@.google.cloud.documen" - + "tai.v1beta3.EvaluateProcessorVersionRequ" - + "est\032\035.google.longrunning.Operation\"\323\001\312AD" - + "\n EvaluateProcessorVersionResponse\022 Eval" - + "uateProcessorVersionMetadata\332A\021processor" - + "_version\202\323\344\223\002r\"m/v1beta3/{processor_vers" - + "ion=projects/*/locations/*/processors/*/" - + "processorVersions/*}:evaluateProcessorVe" - + "rsion:\001*\022\331\001\n\rGetEvaluation\0225.google.clou" - + "d.documentai.v1beta3.GetEvaluationReques" - + "t\032+.google.cloud.documentai.v1beta3.Eval" - + "uation\"d\332A\004name\202\323\344\223\002W\022U/v1beta3/{name=pr" - + "ojects/*/locations/*/processors/*/proces" - + "sorVersions/*/evaluations/*}\022\354\001\n\017ListEva" - + "luations\0227.google.cloud.documentai.v1bet" - + "a3.ListEvaluationsRequest\0328.google.cloud" - + ".documentai.v1beta3.ListEvaluationsRespo" - + "nse\"f\332A\006parent\202\323\344\223\002W\022U/v1beta3/{parent=p" - + "rojects/*/locations/*/processors/*/proce" - + "ssorVersions/*}/evaluations\022\257\002\n\026ImportPr" - + "ocessorVersion\022>.google.cloud.documentai" - + ".v1beta3.ImportProcessorVersionRequest\032\035" - + ".google.longrunning.Operation\"\265\001\312A@\n\036Imp" - + "ortProcessorVersionResponse\022\036ImportProce" - + "ssorVersionMetadata\332A\006parent\202\323\344\223\002c\"^/v1b" - + "eta3/{parent=projects/*/locations/*/proc" - + "essors/*}/processorVersions:importProces" - + "sorVersion:\001*\032M\312A\031documentai.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\303\003\n#com.google.cloud.docume" - + "ntai.v1beta3B\032DocumentAiProcessorService" - + "P\001ZCcloud.google.com/go/documentai/apiv1" - + "beta3/documentaipb;documentaipb\252\002\037Google" - + ".Cloud.DocumentAI.V1Beta3\312\002\037Google\\Cloud" - + "\\DocumentAI\\V1beta3\352\002\"Google::Cloud::Doc" - + "umentAI::V1beta3\352A\177\n+documentai.googleap" - + "is.com/HumanReviewConfig\022Pprojects/{proj" - + "ect}/locations/{location}/processors/{pr" - + "ocessor}/humanReviewConfig\352AM\n\"documenta" - + "i.googleapis.com/Location\022\'projects/{pro" - + "ject}/locations/{location}b\006proto3" + + "\017DeleteProcessor\0227.google.cloud.documentai.v1be" + + "ta3.DeleteProcessorRequest\032\035.google.longrunning.Operation\"u\312A0\n" + + "\025google.protobuf.Empty\022\027DeleteProcessorMetadata\332A\004name\202\323\344" + + "\223\0025*3/v1beta3/{name=projects/*/locations/*/processors/*}\022\345\001\n" + + "\017EnableProcessor\0227.google.cloud.documentai.v1beta3.EnablePro" + + "cessorRequest\032\035.google.longrunning.Operation\"z\312A2\n" + + "\027EnableProcessorResponse\022\027Enab", + "leProcessorMetadata\202\323\344\223\002?\":/v1beta3/{nam" + + "e=projects/*/locations/*/processors/*}:e" + + "nable:\001*\022\352\001\n\020DisableProcessor\0228.google.c" + + "loud.documentai.v1beta3.DisableProcessor" + + "Request\032\035.google.longrunning.Operation\"}" + + "\312A4\n\030DisableProcessorResponse\022\030DisablePr" + + "ocessorMetadata\202\323\344\223\002@\";/v1beta3/{name=pr" + + "ojects/*/locations/*/processors/*}:disab" + + "le:\001*\022\253\002\n\032SetDefaultProcessorVersion\022B.g" + + "oogle.cloud.documentai.v1beta3.SetDefaul" + + "tProcessorVersionRequest\032\035.google.longru" + + "nning.Operation\"\251\001\312AH\n\"SetDefaultProcess" + + "orVersionResponse\022\"SetDefaultProcessorVe" + + "rsionMetadata\202\323\344\223\002X\"S/v1beta3/{processor" + + "=projects/*/locations/*/processors/*}:se" + + "tDefaultProcessorVersion:\001*\022\255\002\n\016ReviewDo" + + "cument\0226.google.cloud.documentai.v1beta3" + + ".ReviewDocumentRequest\032\035.google.longrunn" + + "ing.Operation\"\303\001\210\002\001\312A9\n\026ReviewDocumentRe" + + "sponse\022\037ReviewDocumentOperationMetadata\332" + + "A\023human_review_config\202\323\344\223\002h\"c/v1beta3/{h" + + "uman_review_config=projects/*/locations/" + + "*/processors/*/humanReviewConfig}:review" + + "Document:\001*\022\321\002\n\030EvaluateProcessorVersion" + + "\022@.google.cloud.documentai.v1beta3.Evalu" + + "ateProcessorVersionRequest\032\035.google.long" + + "running.Operation\"\323\001\312AD\n EvaluateProcess" + + "orVersionResponse\022 EvaluateProcessorVers" + + "ionMetadata\332A\021processor_version\202\323\344\223\002r\"m/" + + "v1beta3/{processor_version=projects/*/lo" + + "cations/*/processors/*/processorVersions" + + "/*}:evaluateProcessorVersion:\001*\022\331\001\n\rGetE" + + "valuation\0225.google.cloud.documentai.v1be" + + "ta3.GetEvaluationRequest\032+.google.cloud." + + "documentai.v1beta3.Evaluation\"d\332A\004name\202\323" + + "\344\223\002W\022U/v1beta3/{name=projects/*/location" + + "s/*/processors/*/processorVersions/*/eva" + + "luations/*}\022\354\001\n\017ListEvaluations\0227.google" + + ".cloud.documentai.v1beta3.ListEvaluation" + + "sRequest\0328.google.cloud.documentai.v1bet" + + "a3.ListEvaluationsResponse\"f\332A\006parent\202\323\344" + + "\223\002W\022U/v1beta3/{parent=projects/*/locatio" + + "ns/*/processors/*/processorVersions/*}/e" + + "valuations\022\257\002\n\026ImportProcessorVersion\022>." + + "google.cloud.documentai.v1beta3.ImportPr" + + "ocessorVersionRequest\032\035.google.longrunni" + + "ng.Operation\"\265\001\312A@\n\036ImportProcessorVersi" + + "onResponse\022\036ImportProcessorVersionMetada" + + "ta\332A\006parent\202\323\344\223\002c\"^/v1beta3/{parent=proj" + + "ects/*/locations/*/processors/*}/process" + + "orVersions:importProcessorVersion:\001*\032M\312A" + + "\031documentai.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformB\303\003\n#" + + "com.google.cloud.documentai.v1beta3B\032Doc" + + "umentAiProcessorServiceP\001ZCcloud.google." + + "com/go/documentai/apiv1beta3/documentaip" + + "b;documentaipb\252\002\037Google.Cloud.DocumentAI" + + ".V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1bet" + + "a3\352\002\"Google::Cloud::DocumentAI::V1beta3\352" + + "A\177\n+documentai.googleapis.com/HumanRevie" + + "wConfig\022Pprojects/{project}/locations/{l" + + "ocation}/processors/{processor}/humanRev" + + "iewConfig\352AM\n\"documentai.googleapis.com/" + + "Location\022\'projects/{project}/locations/{" + + "location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1243,6 +1249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DocumentSchema", "InputData", "BaseProcessorVersion", + "ProcessorVersionOverrides", "ProcessorFlags", }); internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_InputData_descriptor = diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettings.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettings.java new file mode 100644 index 000000000000..6efb51ddb145 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettings.java @@ -0,0 +1,779 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/processor.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Settings for grounding extractions.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.GroundingSettings} + */ +@com.google.protobuf.Generated +public final class GroundingSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.GroundingSettings) + GroundingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GroundingSettings"); + } + + // Use GroundingSettings.newBuilder() to construct. + private GroundingSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GroundingSettings() { + groundingType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_GroundingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_GroundingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.GroundingSettings.class, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder.class); + } + + /** + * + * + *
+   * Grounding type options.
+   * 
+ * + * Protobuf enum {@code google.cloud.documentai.v1beta3.GroundingSettings.GroundingType} + */ + public enum GroundingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default value. Behaves like HARD.
+     * 
+ * + * GROUNDING_TYPE_UNSPECIFIED = 0; + */ + GROUNDING_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Requires exact match with OCR text for extractions.
+     * 
+ * + * HARD = 1; + */ + HARD(1), + /** + * + * + *
+     * Allows for minor discrepancies between LLM output and OCR text.
+     * 
+ * + * OCR_RELAXED = 2; + */ + OCR_RELAXED(2), + /** + * + * + *
+     * LLM extractions are used without strict OCR matching. Bounding boxes may
+     * be approximated or absent.
+     * 
+ * + * NO_GROUNDING = 3; + */ + NO_GROUNDING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GroundingType"); + } + + /** + * + * + *
+     * The default value. Behaves like HARD.
+     * 
+ * + * GROUNDING_TYPE_UNSPECIFIED = 0; + */ + public static final int GROUNDING_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Requires exact match with OCR text for extractions.
+     * 
+ * + * HARD = 1; + */ + public static final int HARD_VALUE = 1; + + /** + * + * + *
+     * Allows for minor discrepancies between LLM output and OCR text.
+     * 
+ * + * OCR_RELAXED = 2; + */ + public static final int OCR_RELAXED_VALUE = 2; + + /** + * + * + *
+     * LLM extractions are used without strict OCR matching. Bounding boxes may
+     * be approximated or absent.
+     * 
+ * + * NO_GROUNDING = 3; + */ + public static final int NO_GROUNDING_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 GroundingType 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 GroundingType forNumber(int value) { + switch (value) { + case 0: + return GROUNDING_TYPE_UNSPECIFIED; + case 1: + return HARD; + case 2: + return OCR_RELAXED; + case 3: + return NO_GROUNDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroundingType findValueByNumber(int number) { + return GroundingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.GroundingSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GroundingType[] VALUES = values(); + + public static GroundingType 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 GroundingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1beta3.GroundingSettings.GroundingType) + } + + public static final int GROUNDING_TYPE_FIELD_NUMBER = 1; + private int groundingType_ = 0; + + /** + * + * + *
+   * The type of grounding to apply.
+   * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return The enum numeric value on the wire for groundingType. + */ + @java.lang.Override + public int getGroundingTypeValue() { + return groundingType_; + } + + /** + * + * + *
+   * The type of grounding to apply.
+   * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return The groundingType. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType getGroundingType() { + com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType result = + com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType.forNumber( + groundingType_); + return result == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType.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 (groundingType_ + != com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType + .GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, groundingType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (groundingType_ + != com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType + .GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, groundingType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.GroundingSettings)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.GroundingSettings other = + (com.google.cloud.documentai.v1beta3.GroundingSettings) obj; + + if (groundingType_ != other.groundingType_) 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) + GROUNDING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + groundingType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.GroundingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Settings for grounding extractions.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.GroundingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.GroundingSettings) + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_GroundingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_GroundingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.GroundingSettings.class, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.GroundingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groundingType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_GroundingSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings build() { + com.google.cloud.documentai.v1beta3.GroundingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings buildPartial() { + com.google.cloud.documentai.v1beta3.GroundingSettings result = + new com.google.cloud.documentai.v1beta3.GroundingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.GroundingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groundingType_ = groundingType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.GroundingSettings) { + return mergeFrom((com.google.cloud.documentai.v1beta3.GroundingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.GroundingSettings other) { + if (other == com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance()) + return this; + if (other.groundingType_ != 0) { + setGroundingTypeValue(other.getGroundingTypeValue()); + } + 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: + { + groundingType_ = 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 groundingType_ = 0; + + /** + * + * + *
+     * The type of grounding to apply.
+     * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return The enum numeric value on the wire for groundingType. + */ + @java.lang.Override + public int getGroundingTypeValue() { + return groundingType_; + } + + /** + * + * + *
+     * The type of grounding to apply.
+     * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @param value The enum numeric value on the wire for groundingType to set. + * @return This builder for chaining. + */ + public Builder setGroundingTypeValue(int value) { + groundingType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of grounding to apply.
+     * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return The groundingType. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType getGroundingType() { + com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType result = + com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType.forNumber( + groundingType_); + return result == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The type of grounding to apply.
+     * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @param value The groundingType to set. + * @return This builder for chaining. + */ + public Builder setGroundingType( + com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + groundingType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of grounding to apply.
+     * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearGroundingType() { + bitField0_ = (bitField0_ & ~0x00000001); + groundingType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.GroundingSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.GroundingSettings) + private static final com.google.cloud.documentai.v1beta3.GroundingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.GroundingSettings(); + } + + public static com.google.cloud.documentai.v1beta3.GroundingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettingsOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettingsOrBuilder.java new file mode 100644 index 000000000000..2adf7d06ccf7 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GroundingSettingsOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/processor.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.documentai.v1beta3; + +@com.google.protobuf.Generated +public interface GroundingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.GroundingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of grounding to apply.
+   * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return The enum numeric value on the wire for groundingType. + */ + int getGroundingTypeValue(); + + /** + * + * + *
+   * The type of grounding to apply.
+   * 
+ * + * .google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1; + * + * + * @return The groundingType. + */ + com.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType getGroundingType(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java index 726781751ca4..a0c8e2b98a14 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java @@ -5306,6 +5306,72 @@ public com.google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfo getGe : genAiModelInfo_; } + public static final int GROUNDING_SETTINGS_FIELD_NUMBER = 21; + private com.google.cloud.documentai.v1beta3.GroundingSettings groundingSettings_; + + /** + * + * + *
+   * Output only. The grounding settings of the processor version. This can only
+   * be set using TrainProcessorVersionRequest to override the default grounding
+   * settings.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the groundingSettings field is set. + */ + @java.lang.Override + public boolean hasGroundingSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The grounding settings of the processor version. This can only
+   * be set using TrainProcessorVersionRequest to override the default grounding
+   * settings.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The groundingSettings. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings getGroundingSettings() { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } + + /** + * + * + *
+   * Output only. The grounding settings of the processor version. This can only
+   * be set using TrainProcessorVersionRequest to override the default grounding
+   * settings.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder + getGroundingSettingsOrBuilder() { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5366,6 +5432,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(18, getGenAiModelInfo()); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(21, getGroundingSettings()); + } getUnknownFields().writeTo(output); } @@ -5421,6 +5490,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getGenAiModelInfo()); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getGroundingSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5466,6 +5538,10 @@ public boolean equals(final java.lang.Object obj) { if (hasGenAiModelInfo()) { if (!getGenAiModelInfo().equals(other.getGenAiModelInfo())) return false; } + if (hasGroundingSettings() != other.hasGroundingSettings()) return false; + if (hasGroundingSettings()) { + if (!getGroundingSettings().equals(other.getGroundingSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5515,6 +5591,10 @@ public int hashCode() { hash = (37 * hash) + GEN_AI_MODEL_INFO_FIELD_NUMBER; hash = (53 * hash) + getGenAiModelInfo().hashCode(); } + if (hasGroundingSettings()) { + hash = (37 * hash) + GROUNDING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5664,6 +5744,7 @@ private void maybeForceBuilderInitialization() { internalGetLatestEvaluationFieldBuilder(); internalGetDeprecationInfoFieldBuilder(); internalGetGenAiModelInfoFieldBuilder(); + internalGetGroundingSettingsFieldBuilder(); } } @@ -5705,6 +5786,11 @@ public Builder clear() { genAiModelInfoBuilder_.dispose(); genAiModelInfoBuilder_ = null; } + groundingSettings_ = null; + if (groundingSettingsBuilder_ != null) { + groundingSettingsBuilder_.dispose(); + groundingSettingsBuilder_ = null; + } return this; } @@ -5793,6 +5879,13 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.ProcessorVersion genAiModelInfoBuilder_ == null ? genAiModelInfo_ : genAiModelInfoBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.groundingSettings_ = + groundingSettingsBuilder_ == null + ? groundingSettings_ + : groundingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -5859,6 +5952,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ProcessorVersion ot if (other.hasGenAiModelInfo()) { mergeGenAiModelInfo(other.getGenAiModelInfo()); } + if (other.hasGroundingSettings()) { + mergeGroundingSettings(other.getGroundingSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5974,6 +6070,13 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 146 + case 170: + { + input.readMessage( + internalGetGroundingSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7947,6 +8050,242 @@ public Builder clearGenAiModelInfo() { return genAiModelInfoBuilder_; } + private com.google.cloud.documentai.v1beta3.GroundingSettings groundingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.GroundingSettings, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder, + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder> + groundingSettingsBuilder_; + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the groundingSettings field is set. + */ + public boolean hasGroundingSettings() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The groundingSettings. + */ + public com.google.cloud.documentai.v1beta3.GroundingSettings getGroundingSettings() { + if (groundingSettingsBuilder_ == null) { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } else { + return groundingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGroundingSettings( + com.google.cloud.documentai.v1beta3.GroundingSettings value) { + if (groundingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groundingSettings_ = value; + } else { + groundingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGroundingSettings( + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder builderForValue) { + if (groundingSettingsBuilder_ == null) { + groundingSettings_ = builderForValue.build(); + } else { + groundingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGroundingSettings( + com.google.cloud.documentai.v1beta3.GroundingSettings value) { + if (groundingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && groundingSettings_ != null + && groundingSettings_ + != com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance()) { + getGroundingSettingsBuilder().mergeFrom(value); + } else { + groundingSettings_ = value; + } + } else { + groundingSettingsBuilder_.mergeFrom(value); + } + if (groundingSettings_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGroundingSettings() { + bitField0_ = (bitField0_ & ~0x00004000); + groundingSettings_ = null; + if (groundingSettingsBuilder_ != null) { + groundingSettingsBuilder_.dispose(); + groundingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.GroundingSettings.Builder + getGroundingSettingsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetGroundingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder + getGroundingSettingsOrBuilder() { + if (groundingSettingsBuilder_ != null) { + return groundingSettingsBuilder_.getMessageOrBuilder(); + } else { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } + } + + /** + * + * + *
+     * Output only. The grounding settings of the processor version. This can only
+     * be set using TrainProcessorVersionRequest to override the default grounding
+     * settings.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.GroundingSettings, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder, + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder> + internalGetGroundingSettingsFieldBuilder() { + if (groundingSettingsBuilder_ == null) { + groundingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.GroundingSettings, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder, + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder>( + getGroundingSettings(), getParentForChildren(), isClean()); + groundingSettings_ = null; + } + return groundingSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.ProcessorVersion) } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java index 24e82a2c44f8..ef928b5b0b59 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java @@ -455,4 +455,53 @@ public interface ProcessorVersionOrBuilder */ com.google.cloud.documentai.v1beta3.ProcessorVersion.GenAiModelInfoOrBuilder getGenAiModelInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The grounding settings of the processor version. This can only
+   * be set using TrainProcessorVersionRequest to override the default grounding
+   * settings.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the groundingSettings field is set. + */ + boolean hasGroundingSettings(); + + /** + * + * + *
+   * Output only. The grounding settings of the processor version. This can only
+   * be set using TrainProcessorVersionRequest to override the default grounding
+   * settings.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The groundingSettings. + */ + com.google.cloud.documentai.v1beta3.GroundingSettings getGroundingSettings(); + + /** + * + * + *
+   * Output only. The grounding settings of the processor version. This can only
+   * be set using TrainProcessorVersionRequest to override the default grounding
+   * settings.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder getGroundingSettingsOrBuilder(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverrides.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverrides.java new file mode 100644 index 000000000000..02318e17fe3e --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverrides.java @@ -0,0 +1,737 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/processor.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Overrides to apply when creating a new processor version.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessorVersionOverrides} + */ +@com.google.protobuf.Generated +public final class ProcessorVersionOverrides extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.ProcessorVersionOverrides) + ProcessorVersionOverridesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProcessorVersionOverrides"); + } + + // Use ProcessorVersionOverrides.newBuilder() to construct. + private ProcessorVersionOverrides(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ProcessorVersionOverrides() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.class, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder.class); + } + + private int bitField0_; + public static final int GROUNDING_SETTINGS_FIELD_NUMBER = 1; + private com.google.cloud.documentai.v1beta3.GroundingSettings groundingSettings_; + + /** + * + * + *
+   * Optional. Grounding settings to override the default values.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingSettings field is set. + */ + @java.lang.Override + public boolean hasGroundingSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Grounding settings to override the default values.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingSettings. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettings getGroundingSettings() { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } + + /** + * + * + *
+   * Optional. Grounding settings to override the default values.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder + getGroundingSettingsOrBuilder() { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } + + 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, getGroundingSettings()); + } + 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, getGroundingSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides other = + (com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides) obj; + + if (hasGroundingSettings() != other.hasGroundingSettings()) return false; + if (hasGroundingSettings()) { + if (!getGroundingSettings().equals(other.getGroundingSettings())) 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 (hasGroundingSettings()) { + hash = (37 * hash) + GROUNDING_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Overrides to apply when creating a new processor version.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessorVersionOverrides} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.ProcessorVersionOverrides) + com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.class, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGroundingSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groundingSettings_ = null; + if (groundingSettingsBuilder_ != null) { + groundingSettingsBuilder_.dispose(); + groundingSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessor + .internal_static_google_cloud_documentai_v1beta3_ProcessorVersionOverrides_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides build() { + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides buildPartial() { + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides result = + new com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groundingSettings_ = + groundingSettingsBuilder_ == null + ? groundingSettings_ + : groundingSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides) { + return mergeFrom((com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides other) { + if (other + == com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.getDefaultInstance()) + return this; + if (other.hasGroundingSettings()) { + mergeGroundingSettings(other.getGroundingSettings()); + } + 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( + internalGetGroundingSettingsFieldBuilder().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.cloud.documentai.v1beta3.GroundingSettings groundingSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.GroundingSettings, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder, + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder> + groundingSettingsBuilder_; + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingSettings field is set. + */ + public boolean hasGroundingSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingSettings. + */ + public com.google.cloud.documentai.v1beta3.GroundingSettings getGroundingSettings() { + if (groundingSettingsBuilder_ == null) { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } else { + return groundingSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSettings( + com.google.cloud.documentai.v1beta3.GroundingSettings value) { + if (groundingSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groundingSettings_ = value; + } else { + groundingSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSettings( + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder builderForValue) { + if (groundingSettingsBuilder_ == null) { + groundingSettings_ = builderForValue.build(); + } else { + groundingSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGroundingSettings( + com.google.cloud.documentai.v1beta3.GroundingSettings value) { + if (groundingSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && groundingSettings_ != null + && groundingSettings_ + != com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance()) { + getGroundingSettingsBuilder().mergeFrom(value); + } else { + groundingSettings_ = value; + } + } else { + groundingSettingsBuilder_.mergeFrom(value); + } + if (groundingSettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + groundingSettings_ = null; + if (groundingSettingsBuilder_ != null) { + groundingSettingsBuilder_.dispose(); + groundingSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.GroundingSettings.Builder + getGroundingSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGroundingSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder + getGroundingSettingsOrBuilder() { + if (groundingSettingsBuilder_ != null) { + return groundingSettingsBuilder_.getMessageOrBuilder(); + } else { + return groundingSettings_ == null + ? com.google.cloud.documentai.v1beta3.GroundingSettings.getDefaultInstance() + : groundingSettings_; + } + } + + /** + * + * + *
+     * Optional. Grounding settings to override the default values.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.GroundingSettings, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder, + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder> + internalGetGroundingSettingsFieldBuilder() { + if (groundingSettingsBuilder_ == null) { + groundingSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.GroundingSettings, + com.google.cloud.documentai.v1beta3.GroundingSettings.Builder, + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder>( + getGroundingSettings(), getParentForChildren(), isClean()); + groundingSettings_ = null; + } + return groundingSettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.ProcessorVersionOverrides) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.ProcessorVersionOverrides) + private static final com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides(); + } + + public static com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcessorVersionOverrides parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverridesOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverridesOrBuilder.java new file mode 100644 index 000000000000..41cd8c4dcc23 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOverridesOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/documentai/v1beta3/processor.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.documentai.v1beta3; + +@com.google.protobuf.Generated +public interface ProcessorVersionOverridesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.ProcessorVersionOverrides) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Grounding settings to override the default values.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groundingSettings field is set. + */ + boolean hasGroundingSettings(); + + /** + * + * + *
+   * Optional. Grounding settings to override the default values.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groundingSettings. + */ + com.google.cloud.documentai.v1beta3.GroundingSettings getGroundingSettings(); + + /** + * + * + *
+   * Optional. Grounding settings to override the default values.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.GroundingSettings grounding_settings = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.GroundingSettingsOrBuilder getGroundingSettingsOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java index 1c6a04586387..1b30cc6dc04c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java @@ -399,7 +399,7 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1235 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1239 * @return Whether the document field is set. */ @java.lang.Override @@ -418,7 +418,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1235 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1239 * @return The document. */ @java.lang.Override @@ -1432,7 +1432,7 @@ public Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1235 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1239 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -1450,7 +1450,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1235 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1239 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java index 23331e492d0e..6cb83631d5a6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java @@ -107,7 +107,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1235 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1239 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1235 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1239 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java index 9bf7fcc2600d..3886d8e80836 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java @@ -3460,6 +3460,67 @@ public com.google.protobuf.ByteString getBaseProcessorVersionBytes() { } } + public static final int PROCESSOR_VERSION_OVERRIDES_FIELD_NUMBER = 13; + private com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides processorVersionOverrides_; + + /** + * + * + *
+   * Optional. Options to override structures in the base processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the processorVersionOverrides field is set. + */ + @java.lang.Override + public boolean hasProcessorVersionOverrides() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Options to override structures in the base processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The processorVersionOverrides. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides + getProcessorVersionOverrides() { + return processorVersionOverrides_ == null + ? com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.getDefaultInstance() + : processorVersionOverrides_; + } + + /** + * + * + *
+   * Optional. Options to override structures in the base processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder + getProcessorVersionOverridesOrBuilder() { + return processorVersionOverrides_ == null + ? com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.getDefaultInstance() + : processorVersionOverrides_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3503,6 +3564,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .FoundationModelTuningOptions) processorFlags_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getProcessorVersionOverrides()); + } getUnknownFields().writeTo(output); } @@ -3543,6 +3607,11 @@ public int getSerializedSize() { .FoundationModelTuningOptions) processorFlags_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, getProcessorVersionOverrides()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3573,6 +3642,11 @@ public boolean equals(final java.lang.Object obj) { if (!getInputData().equals(other.getInputData())) return false; } if (!getBaseProcessorVersion().equals(other.getBaseProcessorVersion())) return false; + if (hasProcessorVersionOverrides() != other.hasProcessorVersionOverrides()) return false; + if (hasProcessorVersionOverrides()) { + if (!getProcessorVersionOverrides().equals(other.getProcessorVersionOverrides())) + return false; + } if (!getProcessorFlagsCase().equals(other.getProcessorFlagsCase())) return false; switch (processorFlagsCase_) { case 5: @@ -3613,6 +3687,10 @@ public int hashCode() { } hash = (37 * hash) + BASE_PROCESSOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getBaseProcessorVersion().hashCode(); + if (hasProcessorVersionOverrides()) { + hash = (37 * hash) + PROCESSOR_VERSION_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getProcessorVersionOverrides().hashCode(); + } switch (processorFlagsCase_) { case 5: hash = (37 * hash) + CUSTOM_DOCUMENT_EXTRACTION_OPTIONS_FIELD_NUMBER; @@ -3772,6 +3850,7 @@ private void maybeForceBuilderInitialization() { internalGetProcessorVersionFieldBuilder(); internalGetDocumentSchemaFieldBuilder(); internalGetInputDataFieldBuilder(); + internalGetProcessorVersionOverridesFieldBuilder(); } } @@ -3802,6 +3881,11 @@ public Builder clear() { inputDataBuilder_ = null; } baseProcessorVersion_ = ""; + processorVersionOverrides_ = null; + if (processorVersionOverridesBuilder_ != null) { + processorVersionOverridesBuilder_.dispose(); + processorVersionOverridesBuilder_ = null; + } processorFlagsCase_ = 0; processorFlags_ = null; return this; @@ -3864,6 +3948,13 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000040) != 0)) { result.baseProcessorVersion_ = baseProcessorVersion_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.processorVersionOverrides_ = + processorVersionOverridesBuilder_ == null + ? processorVersionOverrides_ + : processorVersionOverridesBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -3913,6 +4004,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; onChanged(); } + if (other.hasProcessorVersionOverrides()) { + mergeProcessorVersionOverrides(other.getProcessorVersionOverrides()); + } switch (other.getProcessorFlagsCase()) { case CUSTOM_DOCUMENT_EXTRACTION_OPTIONS: { @@ -4004,6 +4098,14 @@ public Builder mergeFrom( processorFlagsCase_ = 12; break; } // case 98 + case 106: + { + input.readMessage( + internalGetProcessorVersionOverridesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5503,6 +5605,227 @@ public Builder setBaseProcessorVersionBytes(com.google.protobuf.ByteString value return this; } + private com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides + processorVersionOverrides_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder> + processorVersionOverridesBuilder_; + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the processorVersionOverrides field is set. + */ + public boolean hasProcessorVersionOverrides() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The processorVersionOverrides. + */ + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides + getProcessorVersionOverrides() { + if (processorVersionOverridesBuilder_ == null) { + return processorVersionOverrides_ == null + ? com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.getDefaultInstance() + : processorVersionOverrides_; + } else { + return processorVersionOverridesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProcessorVersionOverrides( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides value) { + if (processorVersionOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processorVersionOverrides_ = value; + } else { + processorVersionOverridesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProcessorVersionOverrides( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder builderForValue) { + if (processorVersionOverridesBuilder_ == null) { + processorVersionOverrides_ = builderForValue.build(); + } else { + processorVersionOverridesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProcessorVersionOverrides( + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides value) { + if (processorVersionOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && processorVersionOverrides_ != null + && processorVersionOverrides_ + != com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides + .getDefaultInstance()) { + getProcessorVersionOverridesBuilder().mergeFrom(value); + } else { + processorVersionOverrides_ = value; + } + } else { + processorVersionOverridesBuilder_.mergeFrom(value); + } + if (processorVersionOverrides_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProcessorVersionOverrides() { + bitField0_ = (bitField0_ & ~0x00000080); + processorVersionOverrides_ = null; + if (processorVersionOverridesBuilder_ != null) { + processorVersionOverridesBuilder_.dispose(); + processorVersionOverridesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder + getProcessorVersionOverridesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetProcessorVersionOverridesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder + getProcessorVersionOverridesOrBuilder() { + if (processorVersionOverridesBuilder_ != null) { + return processorVersionOverridesBuilder_.getMessageOrBuilder(); + } else { + return processorVersionOverrides_ == null + ? com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.getDefaultInstance() + : processorVersionOverrides_; + } + } + + /** + * + * + *
+     * Optional. Options to override structures in the base processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder> + internalGetProcessorVersionOverridesFieldBuilder() { + if (processorVersionOverridesBuilder_ == null) { + processorVersionOverridesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides.Builder, + com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder>( + getProcessorVersionOverrides(), getParentForChildren(), isClean()); + processorVersionOverrides_ = null; + } + return processorVersionOverridesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest) } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java index 33210dbac7d6..64a918d9712a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java @@ -315,6 +315,50 @@ public interface TrainProcessorVersionRequestOrBuilder */ com.google.protobuf.ByteString getBaseProcessorVersionBytes(); + /** + * + * + *
+   * Optional. Options to override structures in the base processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the processorVersionOverrides field is set. + */ + boolean hasProcessorVersionOverrides(); + + /** + * + * + *
+   * Optional. Options to override structures in the base processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The processorVersionOverrides. + */ + com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides getProcessorVersionOverrides(); + + /** + * + * + *
+   * Optional. Options to override structures in the base processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersionOverrides processor_version_overrides = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.ProcessorVersionOverridesOrBuilder + getProcessorVersionOverridesOrBuilder(); + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.ProcessorFlagsCase getProcessorFlagsCase(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto index 06117b96a592..2699dafaef76 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -1161,6 +1161,10 @@ message TrainProcessorVersionRequest { // processor version must be a child of `parent`. Format: // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. string base_processor_version = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Options to override structures in the base processor version. + ProcessorVersionOverrides processor_version_overrides = 13 + [(google.api.field_behavior) = OPTIONAL]; } // The response for diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto index 36d95318cf3c..ba5c55b343bd 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto @@ -191,6 +191,12 @@ message ProcessorVersion { // versions. GenAiModelInfo gen_ai_model_info = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The grounding settings of the processor version. This can only + // be set using TrainProcessorVersionRequest to override the default grounding + // settings. + GroundingSettings grounding_settings = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contains the alias and the aliased resource name of processor version. @@ -295,3 +301,32 @@ message Processor { // Output only. Reserved for future use. bool satisfies_pzi = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Settings for grounding extractions. +message GroundingSettings { + // Grounding type options. + enum GroundingType { + // The default value. Behaves like HARD. + GROUNDING_TYPE_UNSPECIFIED = 0; + + // Requires exact match with OCR text for extractions. + HARD = 1; + + // Allows for minor discrepancies between LLM output and OCR text. + OCR_RELAXED = 2; + + // LLM extractions are used without strict OCR matching. Bounding boxes may + // be approximated or absent. + NO_GROUNDING = 3; + } + + // The type of grounding to apply. + GroundingType grounding_type = 1; +} + +// Overrides to apply when creating a new processor version. +message ProcessorVersionOverrides { + // Optional. Grounding settings to override the default values. + GroundingSettings grounding_settings = 1 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersion.java index dab860623d0a..534dfa918bd0 100644 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersion.java +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersion.java @@ -22,6 +22,7 @@ import com.google.cloud.documentai.v1beta3.DocumentSchema; import com.google.cloud.documentai.v1beta3.ProcessorName; import com.google.cloud.documentai.v1beta3.ProcessorVersion; +import com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides; import com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest; import com.google.longrunning.Operation; @@ -46,6 +47,7 @@ public static void asyncTrainProcessorVersion() throws Exception { .setDocumentSchema(DocumentSchema.newBuilder().build()) .setInputData(TrainProcessorVersionRequest.InputData.newBuilder().build()) .setBaseProcessorVersion("baseProcessorVersion337709271") + .setProcessorVersionOverrides(ProcessorVersionOverrides.newBuilder().build()) .build(); ApiFuture future = documentProcessorServiceClient.trainProcessorVersionCallable().futureCall(request); diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersionLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersionLRO.java index a8fc4464acb2..a900158af8cc 100644 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersionLRO.java +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/AsyncTrainProcessorVersionLRO.java @@ -22,6 +22,7 @@ import com.google.cloud.documentai.v1beta3.DocumentSchema; import com.google.cloud.documentai.v1beta3.ProcessorName; import com.google.cloud.documentai.v1beta3.ProcessorVersion; +import com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides; import com.google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata; import com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest; import com.google.cloud.documentai.v1beta3.TrainProcessorVersionResponse; @@ -47,6 +48,7 @@ public static void asyncTrainProcessorVersionLRO() throws Exception { .setDocumentSchema(DocumentSchema.newBuilder().build()) .setInputData(TrainProcessorVersionRequest.InputData.newBuilder().build()) .setBaseProcessorVersion("baseProcessorVersion337709271") + .setProcessorVersionOverrides(ProcessorVersionOverrides.newBuilder().build()) .build(); OperationFuture future = documentProcessorServiceClient diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/SyncTrainProcessorVersion.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/SyncTrainProcessorVersion.java index 402f7d58b1b1..271d6c11e0ae 100644 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/SyncTrainProcessorVersion.java +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/trainprocessorversion/SyncTrainProcessorVersion.java @@ -21,6 +21,7 @@ import com.google.cloud.documentai.v1beta3.DocumentSchema; import com.google.cloud.documentai.v1beta3.ProcessorName; import com.google.cloud.documentai.v1beta3.ProcessorVersion; +import com.google.cloud.documentai.v1beta3.ProcessorVersionOverrides; import com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest; import com.google.cloud.documentai.v1beta3.TrainProcessorVersionResponse; @@ -45,6 +46,7 @@ public static void syncTrainProcessorVersion() throws Exception { .setDocumentSchema(DocumentSchema.newBuilder().build()) .setInputData(TrainProcessorVersionRequest.InputData.newBuilder().build()) .setBaseProcessorVersion("baseProcessorVersion337709271") + .setProcessorVersionOverrides(ProcessorVersionOverrides.newBuilder().build()) .build(); TrainProcessorVersionResponse response = documentProcessorServiceClient.trainProcessorVersionAsync(request).get(); diff --git a/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json b/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json index b0b7d6ecf8b0..61230f606b52 100644 --- a/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json +++ b/java-iam-admin/google-iam-admin/src/main/resources/META-INF/native-image/com.google.cloud.iam.admin.v1/reflect-config.json @@ -1385,6 +1385,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLog.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLog.java new file mode 100644 index 000000000000..1e977848e649 --- /dev/null +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLog.java @@ -0,0 +1,1062 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/admin/v1/workforce_pool_platform_logs.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.admin.v1; + +/** + * + * + *
+ * Log payload for Workforce Pool Provider background user attribute sync
+ * events.
+ * 
+ * + * Protobuf type {@code google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog} + */ +@com.google.protobuf.Generated +public final class WorkforcePoolAttributeSyncEventLog extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) + WorkforcePoolAttributeSyncEventLogOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WorkforcePoolAttributeSyncEventLog"); + } + + // Use WorkforcePoolAttributeSyncEventLog.newBuilder() to construct. + private WorkforcePoolAttributeSyncEventLog( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WorkforcePoolAttributeSyncEventLog() { + subject_ = ""; + failureReason_ = ""; + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.admin.v1.WorkforcePoolPlatformLogsProto + .internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.admin.v1.WorkforcePoolPlatformLogsProto + .internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.class, + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.Builder.class); + } + + public static final int SUBJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object subject_ = ""; + + /** + * + * + *
+   * The raw subject identifier of the user whose attributes are being synced.
+   * This identifies the specific user within the workforce pool.
+   * 
+ * + * string subject = 1; + * + * @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; + } + } + + /** + * + * + *
+   * The raw subject identifier of the user whose attributes are being synced.
+   * This identifies the specific user within the workforce pool.
+   * 
+ * + * string subject = 1; + * + * @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 FAILURE_REASON_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object failureReason_ = ""; + + /** + * + * + *
+   * A machine-readable code indicating the reason for failure. Only populated
+   * when `severity` is `ERROR`.
+   *
+   * Possible values include, but are not limited to:
+   * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+   * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+   * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+   * invalid.
+   * - `INTERNAL_ERROR`: An internal error occurred during attribute
+   * synchronization.
+   * 
+ * + * string failure_reason = 2; + * + * @return The failureReason. + */ + @java.lang.Override + public java.lang.String getFailureReason() { + java.lang.Object ref = failureReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failureReason_ = s; + return s; + } + } + + /** + * + * + *
+   * A machine-readable code indicating the reason for failure. Only populated
+   * when `severity` is `ERROR`.
+   *
+   * Possible values include, but are not limited to:
+   * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+   * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+   * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+   * invalid.
+   * - `INTERNAL_ERROR`: An internal error occurred during attribute
+   * synchronization.
+   * 
+ * + * string failure_reason = 2; + * + * @return The bytes for failureReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFailureReasonBytes() { + java.lang.Object ref = failureReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + failureReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Human-readable details describing the attribute sync result. For successful
+   * syncs, this contains the updated user attributes if detailed audit
+   * logging is enabled. For failures, this describes the cause of the failure.
+   * 
+ * + * string message = 3; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Human-readable details describing the attribute sync result. For successful
+   * syncs, this contains the updated user attributes if detailed audit
+   * logging is enabled. For failures, this describes the cause of the failure.
+   * 
+ * + * string message = 3; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failureReason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, failureReason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failureReason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, failureReason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog)) { + return super.equals(obj); + } + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog other = + (com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) obj; + + if (!getSubject().equals(other.getSubject())) return false; + if (!getFailureReason().equals(other.getFailureReason())) return false; + if (!getMessage().equals(other.getMessage())) 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) + FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getFailureReason().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Log payload for Workforce Pool Provider background user attribute sync
+   * events.
+   * 
+ * + * Protobuf type {@code google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.admin.v1.WorkforcePoolPlatformLogsProto + .internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.admin.v1.WorkforcePoolPlatformLogsProto + .internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.class, + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.Builder.class); + } + + // Construct using com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subject_ = ""; + failureReason_ = ""; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.admin.v1.WorkforcePoolPlatformLogsProto + .internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_descriptor; + } + + @java.lang.Override + public com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog getDefaultInstanceForType() { + return com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog build() { + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog buildPartial() { + com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog result = + new com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subject_ = subject_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failureReason_ = failureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) { + return mergeFrom((com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog other) { + if (other == com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog.getDefaultInstance()) + return this; + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFailureReason().isEmpty()) { + failureReason_ = other.failureReason_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + subject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + failureReason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + message_ = 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 subject_ = ""; + + /** + * + * + *
+     * The raw subject identifier of the user whose attributes are being synced.
+     * This identifies the specific user within the workforce pool.
+     * 
+ * + * string subject = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The raw subject identifier of the user whose attributes are being synced.
+     * This identifies the specific user within the workforce pool.
+     * 
+ * + * string subject = 1; + * + * @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; + } + } + + /** + * + * + *
+     * The raw subject identifier of the user whose attributes are being synced.
+     * This identifies the specific user within the workforce pool.
+     * 
+ * + * string subject = 1; + * + * @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; + } + + /** + * + * + *
+     * The raw subject identifier of the user whose attributes are being synced.
+     * This identifies the specific user within the workforce pool.
+     * 
+ * + * string subject = 1; + * + * @return This builder for chaining. + */ + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The raw subject identifier of the user whose attributes are being synced.
+     * This identifies the specific user within the workforce pool.
+     * 
+ * + * string subject = 1; + * + * @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 failureReason_ = ""; + + /** + * + * + *
+     * A machine-readable code indicating the reason for failure. Only populated
+     * when `severity` is `ERROR`.
+     *
+     * Possible values include, but are not limited to:
+     * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+     * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+     * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+     * invalid.
+     * - `INTERNAL_ERROR`: An internal error occurred during attribute
+     * synchronization.
+     * 
+ * + * string failure_reason = 2; + * + * @return The failureReason. + */ + public java.lang.String getFailureReason() { + java.lang.Object ref = failureReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failureReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A machine-readable code indicating the reason for failure. Only populated
+     * when `severity` is `ERROR`.
+     *
+     * Possible values include, but are not limited to:
+     * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+     * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+     * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+     * invalid.
+     * - `INTERNAL_ERROR`: An internal error occurred during attribute
+     * synchronization.
+     * 
+ * + * string failure_reason = 2; + * + * @return The bytes for failureReason. + */ + public com.google.protobuf.ByteString getFailureReasonBytes() { + java.lang.Object ref = failureReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + failureReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A machine-readable code indicating the reason for failure. Only populated
+     * when `severity` is `ERROR`.
+     *
+     * Possible values include, but are not limited to:
+     * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+     * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+     * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+     * invalid.
+     * - `INTERNAL_ERROR`: An internal error occurred during attribute
+     * synchronization.
+     * 
+ * + * string failure_reason = 2; + * + * @param value The failureReason to set. + * @return This builder for chaining. + */ + public Builder setFailureReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + failureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A machine-readable code indicating the reason for failure. Only populated
+     * when `severity` is `ERROR`.
+     *
+     * Possible values include, but are not limited to:
+     * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+     * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+     * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+     * invalid.
+     * - `INTERNAL_ERROR`: An internal error occurred during attribute
+     * synchronization.
+     * 
+ * + * string failure_reason = 2; + * + * @return This builder for chaining. + */ + public Builder clearFailureReason() { + failureReason_ = getDefaultInstance().getFailureReason(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A machine-readable code indicating the reason for failure. Only populated
+     * when `severity` is `ERROR`.
+     *
+     * Possible values include, but are not limited to:
+     * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+     * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+     * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+     * invalid.
+     * - `INTERNAL_ERROR`: An internal error occurred during attribute
+     * synchronization.
+     * 
+ * + * string failure_reason = 2; + * + * @param value The bytes for failureReason to set. + * @return This builder for chaining. + */ + public Builder setFailureReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + failureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Human-readable details describing the attribute sync result. For successful
+     * syncs, this contains the updated user attributes if detailed audit
+     * logging is enabled. For failures, this describes the cause of the failure.
+     * 
+ * + * string message = 3; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Human-readable details describing the attribute sync result. For successful
+     * syncs, this contains the updated user attributes if detailed audit
+     * logging is enabled. For failures, this describes the cause of the failure.
+     * 
+ * + * string message = 3; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Human-readable details describing the attribute sync result. For successful
+     * syncs, this contains the updated user attributes if detailed audit
+     * logging is enabled. For failures, this describes the cause of the failure.
+     * 
+ * + * string message = 3; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Human-readable details describing the attribute sync result. For successful
+     * syncs, this contains the updated user attributes if detailed audit
+     * logging is enabled. For failures, this describes the cause of the failure.
+     * 
+ * + * string message = 3; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Human-readable details describing the attribute sync result. For successful
+     * syncs, this contains the updated user attributes if detailed audit
+     * logging is enabled. For failures, this describes the cause of the failure.
+     * 
+ * + * string message = 3; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) + } + + // @@protoc_insertion_point(class_scope:google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) + private static final com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog(); + } + + public static com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkforcePoolAttributeSyncEventLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLogOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLogOrBuilder.java new file mode 100644 index 000000000000..53e1cb110b4a --- /dev/null +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolAttributeSyncEventLogOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/admin/v1/workforce_pool_platform_logs.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.admin.v1; + +@com.google.protobuf.Generated +public interface WorkforcePoolAttributeSyncEventLogOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.WorkforcePoolAttributeSyncEventLog) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The raw subject identifier of the user whose attributes are being synced.
+   * This identifies the specific user within the workforce pool.
+   * 
+ * + * string subject = 1; + * + * @return The subject. + */ + java.lang.String getSubject(); + + /** + * + * + *
+   * The raw subject identifier of the user whose attributes are being synced.
+   * This identifies the specific user within the workforce pool.
+   * 
+ * + * string subject = 1; + * + * @return The bytes for subject. + */ + com.google.protobuf.ByteString getSubjectBytes(); + + /** + * + * + *
+   * A machine-readable code indicating the reason for failure. Only populated
+   * when `severity` is `ERROR`.
+   *
+   * Possible values include, but are not limited to:
+   * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+   * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+   * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+   * invalid.
+   * - `INTERNAL_ERROR`: An internal error occurred during attribute
+   * synchronization.
+   * 
+ * + * string failure_reason = 2; + * + * @return The failureReason. + */ + java.lang.String getFailureReason(); + + /** + * + * + *
+   * A machine-readable code indicating the reason for failure. Only populated
+   * when `severity` is `ERROR`.
+   *
+   * Possible values include, but are not limited to:
+   * - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider.
+   * - `IDP_UNREACHABLE`: The identity provider could not be reached.
+   * - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is
+   * invalid.
+   * - `INTERNAL_ERROR`: An internal error occurred during attribute
+   * synchronization.
+   * 
+ * + * string failure_reason = 2; + * + * @return The bytes for failureReason. + */ + com.google.protobuf.ByteString getFailureReasonBytes(); + + /** + * + * + *
+   * Human-readable details describing the attribute sync result. For successful
+   * syncs, this contains the updated user attributes if detailed audit
+   * logging is enabled. For failures, this describes the cause of the failure.
+   * 
+ * + * string message = 3; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Human-readable details describing the attribute sync result. For successful
+   * syncs, this contains the updated user attributes if detailed audit
+   * logging is enabled. For failures, this describes the cause of the failure.
+   * 
+ * + * string message = 3; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); +} diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolPlatformLogsProto.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolPlatformLogsProto.java new file mode 100644 index 000000000000..1e74dee9fff8 --- /dev/null +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/WorkforcePoolPlatformLogsProto.java @@ -0,0 +1,81 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/admin/v1/workforce_pool_platform_logs.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.admin.v1; + +@com.google.protobuf.Generated +public final class WorkforcePoolPlatformLogsProto extends com.google.protobuf.GeneratedFile { + private WorkforcePoolPlatformLogsProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WorkforcePoolPlatformLogsProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/iam/admin/v1/workforce_pool_pla" + + "tform_logs.proto\022\023google.iam.admin.v1\"^\n" + + "\"WorkforcePoolAttributeSyncEventLog\022\017\n\007s" + + "ubject\030\001 \001(\t\022\026\n\016failure_reason\030\002 \001(\t\022\017\n\007" + + "message\030\003 \001(\tB\250\001\n\027com.google.iam.admin.v" + + "1B\036WorkforcePoolPlatformLogsProtoP\001Z3clo" + + "ud.google.com/go/iam/admin/apiv1/adminpb" + + ";adminpb\252\002\031Google.Cloud.Iam.Admin.V1\312\002\031G" + + "oogle\\Cloud\\Iam\\Admin\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_admin_v1_WorkforcePoolAttributeSyncEventLog_descriptor, + new java.lang.String[] { + "Subject", "FailureReason", "Message", + }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/workforce_pool_platform_logs.proto b/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/workforce_pool_platform_logs.proto new file mode 100644 index 000000000000..fa91021ca900 --- /dev/null +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/workforce_pool_platform_logs.proto @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.iam.admin.v1; + +option csharp_namespace = "Google.Cloud.Iam.Admin.V1"; +option go_package = "cloud.google.com/go/iam/admin/apiv1/adminpb;adminpb"; +option java_multiple_files = true; +option java_outer_classname = "WorkforcePoolPlatformLogsProto"; +option java_package = "com.google.iam.admin.v1"; +option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; + +// Log payload for Workforce Pool Provider background user attribute sync +// events. +message WorkforcePoolAttributeSyncEventLog { + // The raw subject identifier of the user whose attributes are being synced. + // This identifies the specific user within the workforce pool. + string subject = 1; + + // A machine-readable code indicating the reason for failure. Only populated + // when `severity` is `ERROR`. + // + // Possible values include, but are not limited to: + // - `PROVIDER_NOT_FOUND`: The user was not found in the identity provider. + // - `IDP_UNREACHABLE`: The identity provider could not be reached. + // - `ATTRIBUTE_MAPPING_ERROR`: The attribute mapping configuration is + // invalid. + // - `INTERNAL_ERROR`: An internal error occurred during attribute + // synchronization. + string failure_reason = 2; + + // Human-readable details describing the attribute sync result. For successful + // syncs, this contains the updated user attributes if detailed audit + // logging is enabled. For failures, this describes the cause of the failure. + string message = 3; +} diff --git a/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json b/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json index 6e50137f8359..f3a3331c61a9 100644 --- a/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json +++ b/java-maps-solar/google-maps-solar/src/main/resources/META-INF/native-image/com.google.maps.solar.v1/reflect-config.json @@ -548,6 +548,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.solar.v1.BuildingInsights$DetectedArrays$SolarArray", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.solar.v1.BuildingInsights$DetectedArrays$SolarArray$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.solar.v1.CashPurchaseSavings", "queryAllDeclaredConstructors": true, @@ -1718,6 +1736,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Date", "queryAllDeclaredConstructors": true, diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/BuildingInsights.java b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/BuildingInsights.java index 38788edc60cb..0d8c0234b5e5 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/BuildingInsights.java +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/BuildingInsights.java @@ -112,6 +112,70 @@ public interface DetectedArraysOrBuilder */ com.google.maps.solar.v1.BuildingInsights.DetectedArrays.DetectionStatus getDetectionStatus(); + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + java.util.List + getArraysList(); + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray getArrays(int index); + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + int getArraysCount(); + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + java.util.List< + ? extends com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder> + getArraysOrBuilderList(); + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder getArraysOrBuilder( + int index); + /** * * @@ -182,6 +246,7 @@ private DetectedArrays(com.google.protobuf.GeneratedMessage.Builder builder) private DetectedArrays() { detectionStatus_ = 0; + arrays_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -396,6 +461,1016 @@ private DetectionStatus(int value) { // @@protoc_insertion_point(enum_scope:google.maps.solar.v1.BuildingInsights.DetectedArrays.DetectionStatus) } + public interface SolarArrayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * A GeoJSON representation of the building area where solar panels were
+       * detected.
+       *
+       * The GeoJSON data must be in RFC 7946 format and represent a
+       * Polygon for a single contiguous area.
+       *
+       * The Polygon will be represented by several loops when it
+       * contains holes.
+       *
+       * Example:
+       *
+       * {
+       * "type": "Polygon",
+       * "coordinates": [
+       * [
+       * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+       * ]
+       * ]
+       * }
+       * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + * + * @return Whether the polygonGeojson field is set. + */ + boolean hasPolygonGeojson(); + + /** + * + * + *
+       * A GeoJSON representation of the building area where solar panels were
+       * detected.
+       *
+       * The GeoJSON data must be in RFC 7946 format and represent a
+       * Polygon for a single contiguous area.
+       *
+       * The Polygon will be represented by several loops when it
+       * contains holes.
+       *
+       * Example:
+       *
+       * {
+       * "type": "Polygon",
+       * "coordinates": [
+       * [
+       * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+       * ]
+       * ]
+       * }
+       * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + * + * @return The polygonGeojson. + */ + com.google.protobuf.Struct getPolygonGeojson(); + + /** + * + * + *
+       * A GeoJSON representation of the building area where solar panels were
+       * detected.
+       *
+       * The GeoJSON data must be in RFC 7946 format and represent a
+       * Polygon for a single contiguous area.
+       *
+       * The Polygon will be represented by several loops when it
+       * contains holes.
+       *
+       * Example:
+       *
+       * {
+       * "type": "Polygon",
+       * "coordinates": [
+       * [
+       * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+       * ]
+       * ]
+       * }
+       * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + com.google.protobuf.StructOrBuilder getPolygonGeojsonOrBuilder(); + } + + /** + * + * + *
+     * Details of a single detected solar array.
+     * 
+ * + * Protobuf type {@code google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray} + */ + public static final class SolarArray extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) + SolarArrayOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SolarArray"); + } + + // Use SolarArray.newBuilder() to construct. + private SolarArray(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SolarArray() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.solar.v1.SolarServiceProto + .internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.solar.v1.SolarServiceProto + .internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.class, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder.class); + } + + private int bitField0_; + public static final int POLYGON_GEOJSON_FIELD_NUMBER = 3; + private com.google.protobuf.Struct polygonGeojson_; + + /** + * + * + *
+       * A GeoJSON representation of the building area where solar panels were
+       * detected.
+       *
+       * The GeoJSON data must be in RFC 7946 format and represent a
+       * Polygon for a single contiguous area.
+       *
+       * The Polygon will be represented by several loops when it
+       * contains holes.
+       *
+       * Example:
+       *
+       * {
+       * "type": "Polygon",
+       * "coordinates": [
+       * [
+       * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+       * ]
+       * ]
+       * }
+       * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + * + * @return Whether the polygonGeojson field is set. + */ + @java.lang.Override + public boolean hasPolygonGeojson() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * A GeoJSON representation of the building area where solar panels were
+       * detected.
+       *
+       * The GeoJSON data must be in RFC 7946 format and represent a
+       * Polygon for a single contiguous area.
+       *
+       * The Polygon will be represented by several loops when it
+       * contains holes.
+       *
+       * Example:
+       *
+       * {
+       * "type": "Polygon",
+       * "coordinates": [
+       * [
+       * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+       * ]
+       * ]
+       * }
+       * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + * + * @return The polygonGeojson. + */ + @java.lang.Override + public com.google.protobuf.Struct getPolygonGeojson() { + return polygonGeojson_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : polygonGeojson_; + } + + /** + * + * + *
+       * A GeoJSON representation of the building area where solar panels were
+       * detected.
+       *
+       * The GeoJSON data must be in RFC 7946 format and represent a
+       * Polygon for a single contiguous area.
+       *
+       * The Polygon will be represented by several loops when it
+       * contains holes.
+       *
+       * Example:
+       *
+       * {
+       * "type": "Polygon",
+       * "coordinates": [
+       * [
+       * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+       * ]
+       * ]
+       * }
+       * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPolygonGeojsonOrBuilder() { + return polygonGeojson_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : polygonGeojson_; + } + + 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(3, getPolygonGeojson()); + } + 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(3, getPolygonGeojson()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray)) { + return super.equals(obj); + } + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray other = + (com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) obj; + + if (hasPolygonGeojson() != other.hasPolygonGeojson()) return false; + if (hasPolygonGeojson()) { + if (!getPolygonGeojson().equals(other.getPolygonGeojson())) 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 (hasPolygonGeojson()) { + hash = (37 * hash) + POLYGON_GEOJSON_FIELD_NUMBER; + hash = (53 * hash) + getPolygonGeojson().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Details of a single detected solar array.
+       * 
+ * + * Protobuf type {@code google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.solar.v1.SolarServiceProto + .internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.solar.v1.SolarServiceProto + .internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.class, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + .class); + } + + // Construct using + // com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPolygonGeojsonFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + polygonGeojson_ = null; + if (polygonGeojsonBuilder_ != null) { + polygonGeojsonBuilder_.dispose(); + polygonGeojsonBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.solar.v1.SolarServiceProto + .internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_descriptor; + } + + @java.lang.Override + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + getDefaultInstanceForType() { + return com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray build() { + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray buildPartial() { + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray result = + new com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.polygonGeojson_ = + polygonGeojsonBuilder_ == null ? polygonGeojson_ : polygonGeojsonBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) { + return mergeFrom( + (com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray other) { + if (other + == com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + .getDefaultInstance()) return this; + if (other.hasPolygonGeojson()) { + mergePolygonGeojson(other.getPolygonGeojson()); + } + 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 26: + { + input.readMessage( + internalGetPolygonGeojsonFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.Struct polygonGeojson_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + polygonGeojsonBuilder_; + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + * + * @return Whether the polygonGeojson field is set. + */ + public boolean hasPolygonGeojson() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + * + * @return The polygonGeojson. + */ + public com.google.protobuf.Struct getPolygonGeojson() { + if (polygonGeojsonBuilder_ == null) { + return polygonGeojson_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : polygonGeojson_; + } else { + return polygonGeojsonBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + public Builder setPolygonGeojson(com.google.protobuf.Struct value) { + if (polygonGeojsonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polygonGeojson_ = value; + } else { + polygonGeojsonBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + public Builder setPolygonGeojson(com.google.protobuf.Struct.Builder builderForValue) { + if (polygonGeojsonBuilder_ == null) { + polygonGeojson_ = builderForValue.build(); + } else { + polygonGeojsonBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + public Builder mergePolygonGeojson(com.google.protobuf.Struct value) { + if (polygonGeojsonBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && polygonGeojson_ != null + && polygonGeojson_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPolygonGeojsonBuilder().mergeFrom(value); + } else { + polygonGeojson_ = value; + } + } else { + polygonGeojsonBuilder_.mergeFrom(value); + } + if (polygonGeojson_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + public Builder clearPolygonGeojson() { + bitField0_ = (bitField0_ & ~0x00000001); + polygonGeojson_ = null; + if (polygonGeojsonBuilder_ != null) { + polygonGeojsonBuilder_.dispose(); + polygonGeojsonBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + public com.google.protobuf.Struct.Builder getPolygonGeojsonBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetPolygonGeojsonFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + public com.google.protobuf.StructOrBuilder getPolygonGeojsonOrBuilder() { + if (polygonGeojsonBuilder_ != null) { + return polygonGeojsonBuilder_.getMessageOrBuilder(); + } else { + return polygonGeojson_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : polygonGeojson_; + } + } + + /** + * + * + *
+         * A GeoJSON representation of the building area where solar panels were
+         * detected.
+         *
+         * The GeoJSON data must be in RFC 7946 format and represent a
+         * Polygon for a single contiguous area.
+         *
+         * The Polygon will be represented by several loops when it
+         * contains holes.
+         *
+         * Example:
+         *
+         * {
+         * "type": "Polygon",
+         * "coordinates": [
+         * [
+         * [-1, -1], [-1, 0], [0, 0], [-1, -1]
+         * ]
+         * ]
+         * }
+         * 
+ * + * .google.protobuf.Struct polygon_geojson = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPolygonGeojsonFieldBuilder() { + if (polygonGeojsonBuilder_ == null) { + polygonGeojsonBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getPolygonGeojson(), getParentForChildren(), isClean()); + polygonGeojson_ = null; + } + return polygonGeojsonBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) + } + + // @@protoc_insertion_point(class_scope:google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray) + private static final com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray(); + } + + public static com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SolarArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int DETECTION_STATUS_FIELD_NUMBER = 1; private int detectionStatus_ = 0; @@ -442,6 +1517,92 @@ public int getDetectionStatusValue() { : result; } + public static final int ARRAYS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + arrays_; + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + @java.lang.Override + public java.util.List + getArraysList() { + return arrays_; + } + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder> + getArraysOrBuilderList() { + return arrays_; + } + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + @java.lang.Override + public int getArraysCount() { + return arrays_.size(); + } + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + @java.lang.Override + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray getArrays( + int index) { + return arrays_.get(index); + } + + /** + * + * + *
+     * A list of solar arrays detected on the building.
+     * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + @java.lang.Override + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder + getArraysOrBuilder(int index) { + return arrays_.get(index); + } + public static final int LATEST_CAPTURE_DATE_FIELD_NUMBER = 3; private com.google.type.Date latestCaptureDate_; @@ -515,6 +1676,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, detectionStatus_); } + for (int i = 0; i < arrays_.size(); i++) { + output.writeMessage(2, arrays_.get(i)); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getLatestCaptureDate()); } @@ -533,6 +1697,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, detectionStatus_); } + for (int i = 0; i < arrays_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, arrays_.get(i)); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatestCaptureDate()); } @@ -553,6 +1720,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.maps.solar.v1.BuildingInsights.DetectedArrays) obj; if (detectionStatus_ != other.detectionStatus_) return false; + if (!getArraysList().equals(other.getArraysList())) return false; if (hasLatestCaptureDate() != other.hasLatestCaptureDate()) return false; if (hasLatestCaptureDate()) { if (!getLatestCaptureDate().equals(other.getLatestCaptureDate())) return false; @@ -570,6 +1738,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DETECTION_STATUS_FIELD_NUMBER; hash = (53 * hash) + detectionStatus_; + if (getArraysCount() > 0) { + hash = (37 * hash) + ARRAYS_FIELD_NUMBER; + hash = (53 * hash) + getArraysList().hashCode(); + } if (hasLatestCaptureDate()) { hash = (37 * hash) + LATEST_CAPTURE_DATE_FIELD_NUMBER; hash = (53 * hash) + getLatestCaptureDate().hashCode(); @@ -716,6 +1888,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArraysFieldBuilder(); internalGetLatestCaptureDateFieldBuilder(); } } @@ -725,6 +1898,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; detectionStatus_ = 0; + if (arraysBuilder_ == null) { + arrays_ = java.util.Collections.emptyList(); + } else { + arrays_ = null; + arraysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); latestCaptureDate_ = null; if (latestCaptureDateBuilder_ != null) { latestCaptureDateBuilder_.dispose(); @@ -757,6 +1937,7 @@ public com.google.maps.solar.v1.BuildingInsights.DetectedArrays build() { public com.google.maps.solar.v1.BuildingInsights.DetectedArrays buildPartial() { com.google.maps.solar.v1.BuildingInsights.DetectedArrays result = new com.google.maps.solar.v1.BuildingInsights.DetectedArrays(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -764,13 +1945,26 @@ public com.google.maps.solar.v1.BuildingInsights.DetectedArrays buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays result) { + if (arraysBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + arrays_ = java.util.Collections.unmodifiableList(arrays_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.arrays_ = arrays_; + } else { + result.arrays_ = arraysBuilder_.build(); + } + } + private void buildPartial0(com.google.maps.solar.v1.BuildingInsights.DetectedArrays result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.detectionStatus_ = detectionStatus_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.latestCaptureDate_ = latestCaptureDateBuilder_ == null ? latestCaptureDate_ @@ -796,6 +1990,33 @@ public Builder mergeFrom(com.google.maps.solar.v1.BuildingInsights.DetectedArray if (other.detectionStatus_ != 0) { setDetectionStatusValue(other.getDetectionStatusValue()); } + if (arraysBuilder_ == null) { + if (!other.arrays_.isEmpty()) { + if (arrays_.isEmpty()) { + arrays_ = other.arrays_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureArraysIsMutable(); + arrays_.addAll(other.arrays_); + } + onChanged(); + } + } else { + if (!other.arrays_.isEmpty()) { + if (arraysBuilder_.isEmpty()) { + arraysBuilder_.dispose(); + arraysBuilder_ = null; + arrays_ = other.arrays_; + bitField0_ = (bitField0_ & ~0x00000002); + arraysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetArraysFieldBuilder() + : null; + } else { + arraysBuilder_.addAllMessages(other.arrays_); + } + } + } if (other.hasLatestCaptureDate()) { mergeLatestCaptureDate(other.getLatestCaptureDate()); } @@ -831,11 +2052,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray m = + input.readMessage( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + .parser(), + extensionRegistry); + if (arraysBuilder_ == null) { + ensureArraysIsMutable(); + arrays_.add(m); + } else { + arraysBuilder_.addMessage(m); + } + break; + } // case 18 case 26: { input.readMessage( internalGetLatestCaptureDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -967,6 +2203,417 @@ public Builder clearDetectionStatus() { return this; } + private java.util.List + arrays_ = java.util.Collections.emptyList(); + + private void ensureArraysIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + arrays_ = + new java.util.ArrayList< + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray>(arrays_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder> + arraysBuilder_; + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public java.util.List + getArraysList() { + if (arraysBuilder_ == null) { + return java.util.Collections.unmodifiableList(arrays_); + } else { + return arraysBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public int getArraysCount() { + if (arraysBuilder_ == null) { + return arrays_.size(); + } else { + return arraysBuilder_.getCount(); + } + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray getArrays( + int index) { + if (arraysBuilder_ == null) { + return arrays_.get(index); + } else { + return arraysBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder setArrays( + int index, com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray value) { + if (arraysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArraysIsMutable(); + arrays_.set(index, value); + onChanged(); + } else { + arraysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder setArrays( + int index, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + builderForValue) { + if (arraysBuilder_ == null) { + ensureArraysIsMutable(); + arrays_.set(index, builderForValue.build()); + onChanged(); + } else { + arraysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder addArrays( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray value) { + if (arraysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArraysIsMutable(); + arrays_.add(value); + onChanged(); + } else { + arraysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder addArrays( + int index, com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray value) { + if (arraysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArraysIsMutable(); + arrays_.add(index, value); + onChanged(); + } else { + arraysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder addArrays( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + builderForValue) { + if (arraysBuilder_ == null) { + ensureArraysIsMutable(); + arrays_.add(builderForValue.build()); + onChanged(); + } else { + arraysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder addArrays( + int index, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + builderForValue) { + if (arraysBuilder_ == null) { + ensureArraysIsMutable(); + arrays_.add(index, builderForValue.build()); + onChanged(); + } else { + arraysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder addAllArrays( + java.lang.Iterable< + ? extends com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray> + values) { + if (arraysBuilder_ == null) { + ensureArraysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, arrays_); + onChanged(); + } else { + arraysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder clearArrays() { + if (arraysBuilder_ == null) { + arrays_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + arraysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public Builder removeArrays(int index) { + if (arraysBuilder_ == null) { + ensureArraysIsMutable(); + arrays_.remove(index); + onChanged(); + } else { + arraysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + getArraysBuilder(int index) { + return internalGetArraysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder + getArraysOrBuilder(int index) { + if (arraysBuilder_ == null) { + return arrays_.get(index); + } else { + return arraysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public java.util.List< + ? extends + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder> + getArraysOrBuilderList() { + if (arraysBuilder_ != null) { + return arraysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(arrays_); + } + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + addArraysBuilder() { + return internalGetArraysFieldBuilder() + .addBuilder( + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + .getDefaultInstance()); + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder + addArraysBuilder(int index) { + return internalGetArraysFieldBuilder() + .addBuilder( + index, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray + .getDefaultInstance()); + } + + /** + * + * + *
+       * A list of solar arrays detected on the building.
+       * 
+ * + * repeated .google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray arrays = 2; + * + */ + public java.util.List< + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder> + getArraysBuilderList() { + return internalGetArraysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder> + internalGetArraysFieldBuilder() { + if (arraysBuilder_ == null) { + arraysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArray.Builder, + com.google.maps.solar.v1.BuildingInsights.DetectedArrays.SolarArrayOrBuilder>( + arrays_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + arrays_ = null; + } + return arraysBuilder_; + } + private com.google.type.Date latestCaptureDate_; private com.google.protobuf.SingleFieldBuilder< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> @@ -984,7 +2631,7 @@ public Builder clearDetectionStatus() { * @return Whether the latestCaptureDate field is set. */ public boolean hasLatestCaptureDate() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1026,7 +2673,7 @@ public Builder setLatestCaptureDate(com.google.type.Date value) { } else { latestCaptureDateBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1046,7 +2693,7 @@ public Builder setLatestCaptureDate(com.google.type.Date.Builder builderForValue } else { latestCaptureDateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1062,7 +2709,7 @@ public Builder setLatestCaptureDate(com.google.type.Date.Builder builderForValue */ public Builder mergeLatestCaptureDate(com.google.type.Date value) { if (latestCaptureDateBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && latestCaptureDate_ != null && latestCaptureDate_ != com.google.type.Date.getDefaultInstance()) { getLatestCaptureDateBuilder().mergeFrom(value); @@ -1073,7 +2720,7 @@ public Builder mergeLatestCaptureDate(com.google.type.Date value) { latestCaptureDateBuilder_.mergeFrom(value); } if (latestCaptureDate_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1089,7 +2736,7 @@ public Builder mergeLatestCaptureDate(com.google.type.Date value) { * .google.type.Date latest_capture_date = 3; */ public Builder clearLatestCaptureDate() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); latestCaptureDate_ = null; if (latestCaptureDateBuilder_ != null) { latestCaptureDateBuilder_.dispose(); @@ -1109,7 +2756,7 @@ public Builder clearLatestCaptureDate() { * .google.type.Date latest_capture_date = 3; */ public com.google.type.Date.Builder getLatestCaptureDateBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return internalGetLatestCaptureDateFieldBuilder().getBuilder(); } diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarServiceProto.java b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarServiceProto.java index 668eb2cc065b..0a608d8175f9 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarServiceProto.java +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/java/com/google/maps/solar/v1/SolarServiceProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_maps_solar_v1_SolarPotential_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -130,12 +134,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\022\024google.maps.solar.v1\032\034google/api/ann" + "otations.proto\032\027google/api/client.proto\032" + "\037google/api/field_behavior.proto\032\031google" - + "/api/httpbody.proto\032\026google/type/date.pr" - + "oto\032\030google/type/latlng.proto\032\027google/type/money.proto\"\307\002\n" + + "/api/httpbody.proto\032\034google/protobuf/str" + + "uct.proto\032\026google/type/date.proto\032\030googl" + + "e/type/latlng.proto\032\027google/type/money.proto\"\307\002\n" + "\"FindClosestBuildingInsightsRequest\022+\n" + "\010location\030\001 \001(\0132\023.google.type.LatLngB\004\342A\001\002\022D\n" - + "\020required_quality\030\003" - + " \001(\0162$.google.maps.solar.v1.ImageryQualityB\004\342A\001\001\022$\n" + + "\020required_quality\030\003 \001(\0162$.goo" + + "gle.maps.solar.v1.ImageryQualityB\004\342A\001\001\022$\n" + "\026exact_quality_required\030\004 \001(\010B\004\342A\001\001\022;\n" + "\013experiments\030\005 \003(\0162" + " .google.maps.solar.v1.ExperimentB\004\342A\001\001\022K\n" @@ -143,7 +148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0162(.google.maps.solar.v1.AdditionalInsightsB\004\342A\001\001\"M\n" + "\tLatLngBox\022\037\n" + "\002sw\030\001 \001(\0132\023.google.type.LatLng\022\037\n" - + "\002ne\030\002 \001(\0132\023.google.type.LatLng\"\327\006\n" + + "\002ne\030\002 \001(\0132\023.google.type.LatLng\"\351\007\n" + "\020BuildingInsights\022\014\n" + "\004name\030\001 \001(\t\022#\n" + "\006center\030\002 \001(\0132\023.google.type.LatLng\0225\n" @@ -157,12 +162,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017solar_potential\030\010 \001(\0132$.google.maps.solar.v1.SolarPotential\022=\n" + "\017imagery_quality\030\n" + " \001(\0162$.google.maps.solar.v1.ImageryQuality\022N\n" - + "\017detected_arrays\030\014" - + " \001(\01325.google.maps.solar.v1.BuildingInsights.DetectedArrays\032\315\002\n" + + "\017detected_arrays\030\014 \001(\013" + + "25.google.maps.solar.v1.BuildingInsights.DetectedArrays\032\337\003\n" + "\016DetectedArrays\022_\n" - + "\020detection_status\030\001 \001(\0162E.google." - + "maps.solar.v1.BuildingInsights.DetectedArrays.DetectionStatus\022.\n" - + "\023latest_capture_date\030\003 \001(\0132\021.google.type.Date\"\251\001\n" + + "\020detection_status\030\001 \001(\0162E.google.maps.solar" + + ".v1.BuildingInsights.DetectedArrays.DetectionStatus\022P\n" + + "\006arrays\030\002 \003(\0132@.google.map" + + "s.solar.v1.BuildingInsights.DetectedArrays.SolarArray\022.\n" + + "\023latest_capture_date\030\003 \001(\0132\021.google.type.Date\032>\n\n" + + "SolarArray\0220\n" + + "\017polygon_geojson\030\003 \001(\0132\027.google.protobuf.Struct\"\251\001\n" + "\017DetectionStatus\022 \n" + "\034DETECTION_STATUS_UNSPECIFIED\020\000\022%\n" + "!DETECTION_STATUS_DATA_UNAVAILABLE\020\001\022$\n" @@ -178,15 +187,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026max_array_area_meters2\030\002 \001(\002\022#\n" + "\033max_sunshine_hours_per_year\030\003 \001(\002\022\'\n" + "\037carbon_offset_factor_kg_per_mwh\030\004 \001(\002\022D\n" - + "\020whole_roof_stats\030\005" - + " \001(\0132*.google.maps.solar.v1.SizeAndSunshineStats\022B\n" + + "\020whole_roof_stats\030\005 \001(" + + "\0132*.google.maps.solar.v1.SizeAndSunshineStats\022B\n" + "\016building_stats\030\r" + " \001(\0132*.google.maps.solar.v1.SizeAndSunshineStats\022Q\n" + "\022roof_segment_stats\030\006" + " \003(\01325.google.maps.solar.v1.RoofSegmentSizeAndSunshineStats\0226\n" + "\014solar_panels\030\016 \003(\0132 .google.maps.solar.v1.SolarPanel\022C\n" - + "\023solar_panel_configs\030\007" - + " \003(\0132&.google.maps.solar.v1.SolarPanelConfig\022C\n" + + "\023solar_panel_configs\030\007 \003(" + + "\0132&.google.maps.solar.v1.SolarPanelConfig\022C\n" + "\022financial_analyses\030\010" + " \003(\0132\'.google.maps.solar.v1.FinancialAnalysis\"\346\002\n" + "\037RoofSegmentSizeAndSunshineStats\022\032\n\r" @@ -231,8 +240,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022panel_config_index\030\006 \001(\005H\000\210\001\001\022A\n" + "\021financial_details\030\007 \001(\0132&.google.maps.solar.v1.FinancialDetails\022=\n" + "\017leasing_savings\030\010 \001(\0132$.google.maps.solar.v1.LeasingSavings\022H\n" - + "\025cash_purchase_savings\030\t" - + " \001(\0132).google.maps.solar.v1.CashPurchaseSavings\022P\n" + + "\025cash_purchase_savings\030\t " + + "\001(\0132).google.maps.solar.v1.CashPurchaseSavings\022P\n" + "\031financed_purchase_savings\030\n" + " \001(\0132-.google.maps.solar.v1.FinancedPurchaseSavingsB\025\n" + "\023_panel_config_index\"\207\004\n" @@ -250,8 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002H\001\210\001\001B\023\n" + "\021_solar_percentageB\036\n" + "\034_percentage_exported_to_grid\"\256\002\n" - + "\017SavingsOverTime\022)\n" - + "\r" + + "\017SavingsOverTime\022)\n\r" + "savings_year1\030\001 \001(\0132\022.google.type.Money\022*\n" + "\016savings_year20\030\002 \001(\0132\022.google.type.Money\022;\n" + "\037present_value_of_savings_year20\030\003 \001(\0132\022.google.type.Money\022,\n" @@ -280,8 +288,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "radius_meters\030\002 \001(\002B\004\342A\001\002\0227\n" + "\004view\030\003" + " \001(\0162#.google.maps.solar.v1.DataLayerViewB\004\342A\001\001\022D\n" - + "\020required_quality\030\005" - + " \001(\0162$.google.maps.solar.v1.ImageryQualityB\004\342A\001\001\022\037\n" + + "\020required_quality\030\005 \001(\0162$.go" + + "ogle.maps.solar.v1.ImageryQualityB\004\342A\001\001\022\037\n" + "\021pixel_size_meters\030\006 \001(\002B\004\342A\001\001\022$\n" + "\026exact_quality_required\030\007 \001(\010B\004\342A\001\001\022;\n" + "\013experiments\030\010 \003(\0162" @@ -322,19 +330,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026EXPERIMENT_UNSPECIFIED\020\000\022\025\n" + "\021EXPANDED_COVERAGE\020\0012\336\003\n" + "\005Solar\022\251\001\n" - + "\033FindClosestBuildingInsights\0228.google.maps.solar.v1.FindClosestBuild" - + "ingInsightsRequest\032&.google.maps.solar.v1.BuildingInsights\"(\202\323\344\223\002\"\022" + + "\033FindClosestBuildingInsights\0228.google.maps.solar.v1." + + "FindClosestBuildingInsightsRequest\032&.goo" + + "gle.maps.solar.v1.BuildingInsights\"(\202\323\344\223\002\"\022" + " /v1/buildingInsights:findClosest\022y\n\r" - + "GetDataLayers\022*.google.maps.solar.v1.GetDataLayersRequest\032" - + " .google.maps.solar.v1.DataLayers\"\032\202\323\344\223\002\024\022\022/v1/dataLayers:get\022d\n\n" - + "GetGeoTiff\022\'.google.maps.solar.v1.GetGeoTiffRequest\032\024" - + ".google.api.HttpBody\"\027\202\323\344\223\002\021\022\017/v1/geoTif" - + "f:get\032H\312A\024solar.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB\267\001\n" - + "\030com.google.maps.solar.v1B\021SolarServiceProtoP\001Z4cloud.google.com/go/maps/sola" - + "r/apiv1/solarpb;solarpb\242\002\007GGMPV1A\252\002\024Goog" - + "le.Maps.Solar.V1\312\002\024Google\\Maps\\Solar\\V1\352" - + "\002\027Google::Maps::Solar::V1b\006proto3" + + "GetDataLayers\022*.google.maps.solar.v1.GetDataLayersRequest\032 .google.maps.solar.v1" + + ".DataLayers\"\032\202\323\344\223\002\024\022\022/v1/dataLayers:get\022d\n\n" + + "GetGeoTiff\022\'.google.maps.solar.v1.Get" + + "GeoTiffRequest\032\024.google.api.HttpBody\"\027\202\323" + + "\344\223\002\021\022\017/v1/geoTiff:get\032H\312A\024solar.googleap" + + "is.com\322A.https://www.googleapis.com/auth/cloud-platformB\267\001\n" + + "\030com.google.maps.solar.v1B\021SolarServiceProtoP\001Z4cloud.google." + + "com/go/maps/solar/apiv1/solarpb;solarpb\242" + + "\002\007GGMPV1A\252\002\024Google.Maps.Solar.V1\312\002\024Googl" + + "e\\Maps\\Solar\\V1\352\002\027Google::Maps::Solar::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -344,6 +353,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.HttpBodyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), com.google.type.MoneyProto.getDescriptor(), @@ -392,7 +402,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_descriptor, new java.lang.String[] { - "DetectionStatus", "LatestCaptureDate", + "DetectionStatus", "Arrays", "LatestCaptureDate", + }); + internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_descriptor = + internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_descriptor + .getNestedType(0); + internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_maps_solar_v1_BuildingInsights_DetectedArrays_SolarArray_descriptor, + new java.lang.String[] { + "PolygonGeojson", }); internal_static_google_maps_solar_v1_SolarPotential_descriptor = getDescriptor().getMessageType(3); @@ -570,6 +589,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.HttpBodyProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); com.google.type.MoneyProto.getDescriptor(); diff --git a/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto b/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto index f4c0a7c11ea3..5c06ccacf024 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto +++ b/java-maps-solar/proto-google-maps-solar-v1/src/main/proto/google/maps/solar/v1/solar_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; +import "google/protobuf/struct.proto"; import "google/type/date.proto"; import "google/type/latlng.proto"; import "google/type/money.proto"; @@ -131,9 +132,36 @@ message BuildingInsights { DETECTION_STATUS_NO_ARRAYS_DETECTED = 3; } + // Details of a single detected solar array. + message SolarArray { + // A GeoJSON representation of the building area where solar panels were + // detected. + // + // The GeoJSON data must be in RFC 7946 format and represent a + // Polygon for a single contiguous area. + // + // The Polygon will be represented by several loops when it + // contains holes. + // + // Example: + // + // { + // "type": "Polygon", + // "coordinates": [ + // [ + // [-1, -1], [-1, 0], [0, 0], [-1, -1] + // ] + // ] + // } + google.protobuf.Struct polygon_geojson = 3; + } + // Indicates the detection status of solar arrays for this building. DetectionStatus detection_status = 1; + // A list of solar arrays detected on the building. + repeated SolarArray arrays = 2; + // The date indicating when the latest solar array data was captured. google.type.Date latest_capture_date = 3; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java index 22aaad9eeffe..b9b31dede75d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java @@ -298,6 +298,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * DMS_PRIVATE_CONNECTION = 21; */ DMS_PRIVATE_CONNECTION(21), + /** + * + * + *
+     * Target is a Datastream Private Connection. Used only for return traces.
+     * 
+ * + * DATASTREAM_PRIVATE_CONNECTION = 22; + */ + DATASTREAM_PRIVATE_CONNECTION(22), UNRECOGNIZED(-1), ; @@ -545,6 +555,17 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DMS_PRIVATE_CONNECTION_VALUE = 21; + /** + * + * + *
+     * Target is a Datastream Private Connection. Used only for return traces.
+     * 
+ * + * DATASTREAM_PRIVATE_CONNECTION = 22; + */ + public static final int DATASTREAM_PRIVATE_CONNECTION_VALUE = 22; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -611,6 +632,8 @@ public static Target forNumber(int value) { return CLOUD_RUN_JOB; case 21: return DMS_PRIVATE_CONNECTION; + case 22: + return DATASTREAM_PRIVATE_CONNECTION; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java index 3532580652ef..325abad274ba 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DropInfo.java @@ -518,6 +518,16 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; */ DROPPED_INSIDE_DMS_PRIVATE_CONNECTION(114), + /** + * + * + *
+     * Packet was dropped inside Datastream Private Connection.
+     * 
+ * + * DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION = 115; + */ + DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION(115), /** * * @@ -1752,6 +1762,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DROPPED_INSIDE_DMS_PRIVATE_CONNECTION_VALUE = 114; + /** + * + * + *
+     * Packet was dropped inside Datastream Private Connection.
+     * 
+ * + * DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION = 115; + */ + public static final int DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION_VALUE = 115; + /** * * @@ -2673,6 +2694,8 @@ public static Cause forNumber(int value) { return DROPPED_INSIDE_CLOUD_SQL_SERVICE; case 114: return DROPPED_INSIDE_DMS_PRIVATE_CONNECTION; + case 115: + return DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION; case 20: return GOOGLE_MANAGED_SERVICE_NO_PEERING; case 38: diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java index d996d72bab52..fbe89f1905c3 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Endpoint.java @@ -65,6 +65,7 @@ private Endpoint() { redisCluster_ = ""; gkePod_ = ""; dmsPrivateConnection_ = ""; + datastreamPrivateConnection_ = ""; cloudRunJob_ = ""; network_ = ""; networkType_ = 0; @@ -3465,6 +3466,65 @@ public com.google.protobuf.ByteString getDmsPrivateConnectionBytes() { } } + public static final int DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private volatile java.lang.Object datastreamPrivateConnection_ = ""; + + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The datastreamPrivateConnection. + */ + @java.lang.Override + public java.lang.String getDatastreamPrivateConnection() { + java.lang.Object ref = datastreamPrivateConnection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datastreamPrivateConnection_ = s; + return s; + } + } + + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The bytes for datastreamPrivateConnection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatastreamPrivateConnectionBytes() { + java.lang.Object ref = datastreamPrivateConnection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datastreamPrivateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10; private com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloudFunction_; @@ -3955,6 +4015,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dmsPrivateConnection_)) { com.google.protobuf.GeneratedMessage.writeString(output, 22, dmsPrivateConnection_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datastreamPrivateConnection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 23, datastreamPrivateConnection_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { com.google.protobuf.GeneratedMessage.writeString(output, 24, cloudRunJob_); } @@ -4029,6 +4092,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dmsPrivateConnection_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(22, dmsPrivateConnection_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datastreamPrivateConnection_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(23, datastreamPrivateConnection_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(24, cloudRunJob_); } @@ -4071,6 +4138,8 @@ public boolean equals(final java.lang.Object obj) { if (!getRedisCluster().equals(other.getRedisCluster())) return false; if (!getGkePod().equals(other.getGkePod())) return false; if (!getDmsPrivateConnection().equals(other.getDmsPrivateConnection())) return false; + if (!getDatastreamPrivateConnection().equals(other.getDatastreamPrivateConnection())) + return false; if (hasCloudFunction() != other.hasCloudFunction()) return false; if (hasCloudFunction()) { if (!getCloudFunction().equals(other.getCloudFunction())) return false; @@ -4132,6 +4201,8 @@ public int hashCode() { hash = (53 * hash) + getGkePod().hashCode(); hash = (37 * hash) + DMS_PRIVATE_CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getDmsPrivateConnection().hashCode(); + hash = (37 * hash) + DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getDatastreamPrivateConnection().hashCode(); if (hasCloudFunction()) { hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -4317,6 +4388,7 @@ public Builder clear() { redisCluster_ = ""; gkePod_ = ""; dmsPrivateConnection_ = ""; + datastreamPrivateConnection_ = ""; cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -4419,30 +4491,33 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.Endpoint result result.dmsPrivateConnection_ = dmsPrivateConnection_; } if (((from_bitField0_ & 0x00004000) != 0)) { + result.datastreamPrivateConnection_ = datastreamPrivateConnection_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { result.cloudFunction_ = cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.appEngineVersion_ = appEngineVersionBuilder_ == null ? appEngineVersion_ : appEngineVersionBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.cloudRunRevision_ = cloudRunRevisionBuilder_ == null ? cloudRunRevision_ : cloudRunRevisionBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.cloudRunJob_ = cloudRunJob_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.networkType_ = networkType_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.projectId_ = projectId_; } result.bitField0_ |= to_bitField0_; @@ -4524,6 +4599,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { bitField0_ |= 0x00002000; onChanged(); } + if (!other.getDatastreamPrivateConnection().isEmpty()) { + datastreamPrivateConnection_ = other.datastreamPrivateConnection_; + bitField0_ |= 0x00004000; + onChanged(); + } if (other.hasCloudFunction()) { mergeCloudFunction(other.getCloudFunction()); } @@ -4535,12 +4615,12 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { } if (!other.getCloudRunJob().isEmpty()) { cloudRunJob_ = other.cloudRunJob_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.networkType_ != 0) { @@ -4548,7 +4628,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4598,19 +4678,19 @@ public Builder mergeFrom( case 34: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 34 case 40: { networkType_ = input.readEnum(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 40 case 50: { projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 50 case 58: @@ -4629,21 +4709,21 @@ public Builder mergeFrom( { input.readMessage( internalGetCloudFunctionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 82 case 90: { input.readMessage( internalGetAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 90 case 98: { input.readMessage( internalGetCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 98 case 106: @@ -4700,10 +4780,16 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 178 + case 186: + { + datastreamPrivateConnection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 186 case 194: { cloudRunJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 194 default: @@ -6366,6 +6452,132 @@ public Builder setDmsPrivateConnectionBytes(com.google.protobuf.ByteString value return this; } + private java.lang.Object datastreamPrivateConnection_ = ""; + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @return The datastreamPrivateConnection. + */ + public java.lang.String getDatastreamPrivateConnection() { + java.lang.Object ref = datastreamPrivateConnection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datastreamPrivateConnection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @return The bytes for datastreamPrivateConnection. + */ + public com.google.protobuf.ByteString getDatastreamPrivateConnectionBytes() { + java.lang.Object ref = datastreamPrivateConnection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datastreamPrivateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @param value The datastreamPrivateConnection to set. + * @return This builder for chaining. + */ + public Builder setDatastreamPrivateConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datastreamPrivateConnection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @return This builder for chaining. + */ + public Builder clearDatastreamPrivateConnection() { + datastreamPrivateConnection_ = getDefaultInstance().getDatastreamPrivateConnection(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @param value The bytes for datastreamPrivateConnection to set. + * @return This builder for chaining. + */ + public Builder setDatastreamPrivateConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datastreamPrivateConnection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + private com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint cloudFunction_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint, @@ -6387,7 +6599,7 @@ public Builder setDmsPrivateConnectionBytes(com.google.protobuf.ByteString value * @return Whether the cloudFunction field is set. */ public boolean hasCloudFunction() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -6435,7 +6647,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6459,7 +6671,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6478,7 +6690,7 @@ public Builder setCloudFunction( public Builder mergeCloudFunction( com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint value) { if (cloudFunctionBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && cloudFunction_ != null && cloudFunction_ != com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint @@ -6491,7 +6703,7 @@ public Builder mergeCloudFunction( cloudFunctionBuilder_.mergeFrom(value); } if (cloudFunction_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6509,7 +6721,7 @@ public Builder mergeCloudFunction( * */ public Builder clearCloudFunction() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -6532,7 +6744,7 @@ public Builder clearCloudFunction() { */ public com.google.cloud.networkmanagement.v1.Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetCloudFunctionFieldBuilder().getBuilder(); } @@ -6612,7 +6824,7 @@ public Builder clearCloudFunction() { * @return Whether the appEngineVersion field is set. */ public boolean hasAppEngineVersion() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6665,7 +6877,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6691,7 +6903,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6712,7 +6924,7 @@ public Builder setAppEngineVersion( public Builder mergeAppEngineVersion( com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint value) { if (appEngineVersionBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && appEngineVersion_ != null && appEngineVersion_ != com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint @@ -6725,7 +6937,7 @@ public Builder mergeAppEngineVersion( appEngineVersionBuilder_.mergeFrom(value); } if (appEngineVersion_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6745,7 +6957,7 @@ public Builder mergeAppEngineVersion( *
*/ public Builder clearAppEngineVersion() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); appEngineVersion_ = null; if (appEngineVersionBuilder_ != null) { appEngineVersionBuilder_.dispose(); @@ -6770,7 +6982,7 @@ public Builder clearAppEngineVersion() { */ public com.google.cloud.networkmanagement.v1.Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetAppEngineVersionFieldBuilder().getBuilder(); } @@ -6854,7 +7066,7 @@ public Builder clearAppEngineVersion() { * @return Whether the cloudRunRevision field is set. */ public boolean hasCloudRunRevision() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -6907,7 +7119,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6933,7 +7145,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6954,7 +7166,7 @@ public Builder setCloudRunRevision( public Builder mergeCloudRunRevision( com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint value) { if (cloudRunRevisionBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && cloudRunRevision_ != null && cloudRunRevision_ != com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint @@ -6967,7 +7179,7 @@ public Builder mergeCloudRunRevision( cloudRunRevisionBuilder_.mergeFrom(value); } if (cloudRunRevision_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -6987,7 +7199,7 @@ public Builder mergeCloudRunRevision( * */ public Builder clearCloudRunRevision() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); cloudRunRevision_ = null; if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.dispose(); @@ -7012,7 +7224,7 @@ public Builder clearCloudRunRevision() { */ public com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetCloudRunRevisionFieldBuilder().getBuilder(); } @@ -7149,7 +7361,7 @@ public Builder setCloudRunJob(java.lang.String value) { throw new NullPointerException(); } cloudRunJob_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7171,7 +7383,7 @@ public Builder setCloudRunJob(java.lang.String value) { */ public Builder clearCloudRunJob() { cloudRunJob_ = getDefaultInstance().getCloudRunJob(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -7198,7 +7410,7 @@ public Builder setCloudRunJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); cloudRunJob_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7277,7 +7489,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7298,7 +7510,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -7324,7 +7536,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7363,7 +7575,7 @@ public int getNetworkTypeValue() { */ public Builder setNetworkTypeValue(int value) { networkType_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7407,7 +7619,7 @@ public Builder setNetworkType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; networkType_ = value.getNumber(); onChanged(); return this; @@ -7426,7 +7638,7 @@ public Builder setNetworkType( * @return This builder for chaining. */ public Builder clearNetworkType() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); networkType_ = 0; onChanged(); return this; @@ -7500,7 +7712,7 @@ public Builder setProjectId(java.lang.String value) { throw new NullPointerException(); } projectId_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7519,7 +7731,7 @@ public Builder setProjectId(java.lang.String value) { */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -7543,7 +7755,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); projectId_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java index 7937c0420b5c..6a59764422a9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/EndpointOrBuilder.java @@ -467,6 +467,38 @@ public interface EndpointOrBuilder */ com.google.protobuf.ByteString getDmsPrivateConnectionBytes(); + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The datastreamPrivateConnection. + */ + java.lang.String getDatastreamPrivateConnection(); + + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The bytes for datastreamPrivateConnection. + */ + com.google.protobuf.ByteString getDatastreamPrivateConnectionBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java index 53b7e7d3f356..f064e49a5acf 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java @@ -652,7 +652,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return The serviceAccount. */ @java.lang.Override @@ -679,7 +679,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -763,7 +763,7 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=429 + * google/cloud/networkmanagement/v1/trace.proto;l=435 * @return The running. */ @java.lang.Override @@ -2236,7 +2236,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2262,7 +2262,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2288,7 +2288,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2313,7 +2313,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2334,7 +2334,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2474,7 +2474,7 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=429 + * google/cloud/networkmanagement/v1/trace.proto;l=435 * @return The running. */ @java.lang.Override @@ -2494,7 +2494,7 @@ public boolean getRunning() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=429 + * google/cloud/networkmanagement/v1/trace.proto;l=435 * @param value The running to set. * @return This builder for chaining. */ @@ -2518,7 +2518,7 @@ public Builder setRunning(boolean value) { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=429 + * google/cloud/networkmanagement/v1/trace.proto;l=435 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java index 0dfd6fdfc667..c2ef770da6ed 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java @@ -246,7 +246,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return The serviceAccount. */ @java.lang.Deprecated @@ -262,7 +262,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=422 + * google/cloud/networkmanagement/v1/trace.proto;l=428 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -305,7 +305,7 @@ public interface InstanceInfoOrBuilder * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=429 + * google/cloud/networkmanagement/v1/trace.proto;l=435 * @return The running. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java index c92a81407613..00bce46aff0b 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfo.java @@ -572,7 +572,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=901 + * See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return The healthCheckUri. */ @java.lang.Override @@ -601,7 +601,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=901 + * See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1377,7 +1377,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=901 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1405,7 +1405,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=901 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1433,7 +1433,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=901 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=907 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1460,7 +1460,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=901 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1483,7 +1483,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=901 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=907 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java index 0fb1eaa704e9..23894de767b2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerInfoOrBuilder.java @@ -68,7 +68,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=901 + * See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -86,7 +86,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.LoadBalancerInfo.health_check_uri is deprecated. - * See google/cloud/networkmanagement/v1/trace.proto;l=901 + * See google/cloud/networkmanagement/v1/trace.proto;l=907 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java index b8614ff9f56e..4687b96ae6a9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java @@ -1107,7 +1107,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType getNextHopTyp * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1129,7 +1129,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return The routeScope. */ @java.lang.Override @@ -1381,7 +1381,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return The nextHop. */ @java.lang.Override @@ -1410,7 +1410,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return The bytes for nextHop. */ @java.lang.Override @@ -2059,7 +2059,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2082,7 +2082,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2113,7 +2113,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3567,7 +3567,7 @@ public Builder clearNextHopType() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3589,7 +3589,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3614,7 +3614,7 @@ public Builder setRouteScopeValue(int value) { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return The routeScope. */ @java.lang.Override @@ -3640,7 +3640,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope getRouteScope( * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3668,7 +3668,7 @@ public Builder setRouteScope(com.google.cloud.networkmanagement.v1.RouteInfo.Rou * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4162,7 +4162,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return The nextHop. */ @java.lang.Deprecated @@ -4190,7 +4190,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4218,7 +4218,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4245,7 +4245,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4268,7 +4268,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5706,7 +5706,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5728,7 +5728,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5758,7 +5758,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5788,7 +5788,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5817,7 +5817,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5842,7 +5842,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java index 5fc2dd9d8587..4ec7461de0c6 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java @@ -91,7 +91,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=686 + * google/cloud/networkmanagement/v1/trace.proto;l=692 * @return The routeScope. */ @java.lang.Deprecated @@ -242,7 +242,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return The nextHop. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=708 + * google/cloud/networkmanagement/v1/trace.proto;l=714 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -687,7 +687,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -707,7 +707,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -727,7 +727,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=748 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=754 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java index f3e930eeef44..f54cbf5c580f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java @@ -284,6 +284,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_DMS_PRIVATE_CONNECTION = 48; */ START_FROM_DMS_PRIVATE_CONNECTION(48), + /** + * + * + *
+     * Initial state: packet originating from a Datastream Private Connection.
+     * 
+ * + * START_FROM_DATASTREAM_PRIVATE_CONNECTION = 49; + */ + START_FROM_DATASTREAM_PRIVATE_CONNECTION(49), /** * * @@ -829,6 +839,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int START_FROM_DMS_PRIVATE_CONNECTION_VALUE = 48; + /** + * + * + *
+     * Initial state: packet originating from a Datastream Private Connection.
+     * 
+ * + * START_FROM_DATASTREAM_PRIVATE_CONNECTION = 49; + */ + public static final int START_FROM_DATASTREAM_PRIVATE_CONNECTION_VALUE = 49; + /** * * @@ -1231,6 +1252,8 @@ public static State forNumber(int value) { return START_FROM_SERVERLESS_NEG; case 48: return START_FROM_DMS_PRIVATE_CONNECTION; + case 49: + return START_FROM_DATASTREAM_PRIVATE_CONNECTION; case 4: return APPLY_INGRESS_FIREWALL_RULE; case 5: @@ -1392,6 +1415,7 @@ public enum StepInfoCase SERVERLESS_NEG(29), NGFW_PACKET_INSPECTION(42), DMS_PRIVATE_CONNECTION(43), + DATASTREAM_PRIVATE_CONNECTION(44), STEPINFO_NOT_SET(0); private final int value; @@ -1487,6 +1511,8 @@ public static StepInfoCase forNumber(int value) { return NGFW_PACKET_INSPECTION; case 43: return DMS_PRIVATE_CONNECTION; + case 44: + return DATASTREAM_PRIVATE_CONNECTION; case 0: return STEPINFO_NOT_SET; default: @@ -2637,7 +2663,7 @@ public com.google.cloud.networkmanagement.v1.DropInfoOrBuilder getDropOrBuilder( * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=318 + * google/cloud/networkmanagement/v1/trace.proto;l=321 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -2659,7 +2685,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=318 + * google/cloud/networkmanagement/v1/trace.proto;l=321 * @return The loadBalancer. */ @java.lang.Override @@ -3824,6 +3850,68 @@ public com.google.cloud.networkmanagement.v1.PrivateConnectionInfo getDmsPrivate return com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); } + public static final int DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER = 44; + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return Whether the datastreamPrivateConnection field is set. + */ + @java.lang.Override + public boolean hasDatastreamPrivateConnection() { + return stepInfoCase_ == 44; + } + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return The datastreamPrivateConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.PrivateConnectionInfo + getDatastreamPrivateConnection() { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); + } + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder + getDatastreamPrivateConnectionOrBuilder() { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3974,6 +4062,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 43, (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 44) { + output.writeMessage( + 44, (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_); + } if (stepInfoCase_ == 45) { output.writeMessage(45, (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_); } @@ -4184,6 +4276,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 43, (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 44) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 44, (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_); + } if (stepInfoCase_ == 45) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -4327,6 +4424,10 @@ public boolean equals(final java.lang.Object obj) { case 43: if (!getDmsPrivateConnection().equals(other.getDmsPrivateConnection())) return false; break; + case 44: + if (!getDatastreamPrivateConnection().equals(other.getDatastreamPrivateConnection())) + return false; + break; case 0: default: } @@ -4502,6 +4603,10 @@ public int hashCode() { hash = (37 * hash) + DMS_PRIVATE_CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getDmsPrivateConnection().hashCode(); break; + case 44: + hash = (37 * hash) + DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getDatastreamPrivateConnection().hashCode(); + break; case 0: default: } @@ -4765,6 +4870,9 @@ public Builder clear() { if (dmsPrivateConnectionBuilder_ != null) { dmsPrivateConnectionBuilder_.clear(); } + if (datastreamPrivateConnectionBuilder_ != null) { + datastreamPrivateConnectionBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -4942,6 +5050,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul if (stepInfoCase_ == 43 && dmsPrivateConnectionBuilder_ != null) { result.stepInfo_ = dmsPrivateConnectionBuilder_.build(); } + if (stepInfoCase_ == 44 && datastreamPrivateConnectionBuilder_ != null) { + result.stepInfo_ = datastreamPrivateConnectionBuilder_.build(); + } } @java.lang.Override @@ -5163,6 +5274,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeDmsPrivateConnection(other.getDmsPrivateConnection()); break; } + case DATASTREAM_PRIVATE_CONNECTION: + { + mergeDatastreamPrivateConnection(other.getDatastreamPrivateConnection()); + break; + } case STEPINFO_NOT_SET: { break; @@ -5474,6 +5590,14 @@ public Builder mergeFrom( stepInfoCase_ = 43; break; } // case 346 + case 354: + { + input.readMessage( + internalGetDatastreamPrivateConnectionFieldBuilder().getBuilder(), + extensionRegistry); + stepInfoCase_ = 44; + break; + } // case 354 case 362: { input.readMessage( @@ -9754,7 +9878,7 @@ public com.google.cloud.networkmanagement.v1.DropInfoOrBuilder getDropOrBuilder( * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=318 + * google/cloud/networkmanagement/v1/trace.proto;l=321 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -9776,7 +9900,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=318 + * google/cloud/networkmanagement/v1/trace.proto;l=321 * @return The loadBalancer. */ @java.lang.Override @@ -14560,6 +14684,250 @@ public Builder clearDmsPrivateConnection() { return dmsPrivateConnectionBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder> + datastreamPrivateConnectionBuilder_; + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return Whether the datastreamPrivateConnection field is set. + */ + @java.lang.Override + public boolean hasDatastreamPrivateConnection() { + return stepInfoCase_ == 44; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return The datastreamPrivateConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.PrivateConnectionInfo + getDatastreamPrivateConnection() { + if (datastreamPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 44) { + return datastreamPrivateConnectionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder setDatastreamPrivateConnection( + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo value) { + if (datastreamPrivateConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + datastreamPrivateConnectionBuilder_.setMessage(value); + } + stepInfoCase_ = 44; + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder setDatastreamPrivateConnection( + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.Builder builderForValue) { + if (datastreamPrivateConnectionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + datastreamPrivateConnectionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 44; + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder mergeDatastreamPrivateConnection( + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo value) { + if (datastreamPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 44 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.PrivateConnectionInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 44) { + datastreamPrivateConnectionBuilder_.mergeFrom(value); + } else { + datastreamPrivateConnectionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 44; + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder clearDatastreamPrivateConnection() { + if (datastreamPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 44) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 44) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + datastreamPrivateConnectionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.Builder + getDatastreamPrivateConnectionBuilder() { + return internalGetDatastreamPrivateConnectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder + getDatastreamPrivateConnectionOrBuilder() { + if ((stepInfoCase_ == 44) && (datastreamPrivateConnectionBuilder_ != null)) { + return datastreamPrivateConnectionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder> + internalGetDatastreamPrivateConnectionFieldBuilder() { + if (datastreamPrivateConnectionBuilder_ == null) { + if (!(stepInfoCase_ == 44)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.getDefaultInstance(); + } + datastreamPrivateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.PrivateConnectionInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 44; + onChanged(); + return datastreamPrivateConnectionBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.Step) } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java index 725ac080f98e..91333bd5ab87 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java @@ -791,7 +791,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=318 + * google/cloud/networkmanagement/v1/trace.proto;l=321 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -810,7 +810,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=318 + * google/cloud/networkmanagement/v1/trace.proto;l=321 * @return The loadBalancer. */ @java.lang.Deprecated @@ -1613,5 +1613,49 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder getDmsPrivateConnectionOrBuilder(); + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return Whether the datastreamPrivateConnection field is set. + */ + boolean hasDatastreamPrivateConnection(); + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return The datastreamPrivateConnection. + */ + com.google.cloud.networkmanagement.v1.PrivateConnectionInfo getDatastreamPrivateConnection(); + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + com.google.cloud.networkmanagement.v1.PrivateConnectionInfoOrBuilder + getDatastreamPrivateConnectionOrBuilder(); + com.google.cloud.networkmanagement.v1.Step.StepInfoCase getStepInfoCase(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java index 4c12870da384..5ae3b8ef93bc 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TestOuterClass.java @@ -131,7 +131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:t\352Aq\n" + "1networkmanagement.googleapis.com/ConnectivityTest\022.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation\022\\\n" + "\016edge_responses\030\n" - + " \003(\0132D.google.cloud.networkmana" - + "gement.v1.ProbingDetails.SingleEdgeResponse\022\032\n" + + " \003(\0132D.google.cloud.networkmanag" + + "ement.v1.ProbingDetails.SingleEdgeResponse\022\032\n" + "\022probed_all_devices\030\013 \001(\010\032)\n" + "\014EdgeLocation\022\031\n" + "\021metropolitan_area\030\001 \001(\t\032\361\002\n" + "\022SingleEdgeResponse\022O\n" - + "\006result\030\001 \001(\0162?.goog" - + "le.cloud.networkmanagement.v1.ProbingDetails.ProbingResult\022\030\n" + + "\006result\030\001 \001(\0162?.googl" + + "e.cloud.networkmanagement.v1.ProbingDetails.ProbingResult\022\030\n" + "\020sent_probe_count\030\002 \001(\005\022\036\n" + "\026successful_probe_count\030\003 \001(\005\022O\n" + "\017probing_latency\030\004" + " \001(\01326.google.cloud.networkmanagement.v1.LatencyDistribution\022c\n" - + "\033destination_egress_location\030\005 \001(\0132>.goo" - + "gle.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation\022\032\n" + + "\033destination_egress_location\030\005 \001(\0132>.goog" + + "le.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation\022\032\n" + "\022destination_router\030\006 \001(\t\"\200\001\n\r" + "ProbingResult\022\036\n" + "\032PROBING_RESULT_UNSPECIFIED\020\000\022\r\n" @@ -241,10 +242,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037PROBING_ABORT_CAUSE_UNSPECIFIED\020\000\022\025\n" + "\021PERMISSION_DENIED\020\001\022\026\n" + "\022NO_SOURCE_LOCATION\020\002B\375\001\n" - + "%com.google.cloud.networkmanagement.v1B\016TestOuterClassP\001ZScloud.google.com" - + "/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb\252\002!Google.Clo" - + "ud.NetworkManagement.V1\312\002!Google\\Cloud\\N" - + "etworkManagement\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" + + "%com.google.cloud.networkmanagement.v1B\016TestOuterClassP\001ZScloud.google.com/" + + "go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb\252\002!Google.Clou" + + "d.NetworkManagement.V1\312\002!Google\\Cloud\\Ne" + + "tworkManagement\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -307,6 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RedisCluster", "GkePod", "DmsPrivateConnection", + "DatastreamPrivateConnection", "CloudFunction", "AppEngineVersion", "CloudRunRevision", diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java index 3e652a0f2616..e2734efdc97a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java @@ -220,7 +220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "endpoint_info\030\001" + " \001(\0132/.google.cloud.networkmanagement.v1.EndpointInfo\0226\n" + "\005steps\030\002 \003(\0132\'.google.cloud.networkmanagement.v1.Step\022\030\n" - + "\020forward_trace_id\030\004 \001(\005\"\353#\n" + + "\020forward_trace_id\030\004 \001(\005\"\374$\n" + "\004Step\022\023\n" + "\013description\030\001 \001(\t\022<\n" + "\005state\030\002 \001(\0162-.google.cloud.networkmanagement.v1.Step.State\022\023\n" @@ -296,7 +296,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ngfw_packet_inspection\030*" + " \001(\0132;.google.cloud.networkmanagement.v1.NgfwPacketInspectionInfoH\000\022Z\n" + "\026dms_private_connection\030+ \001(\01328.google.cloud" - + ".networkmanagement.v1.PrivateConnectionInfoH\000\"\365\n\n" + + ".networkmanagement.v1.PrivateConnectionInfoH\000\022a\n" + + "\035datastream_private_connection\030," + + " \001(\01328.google.cloud.networkmanagement.v1.PrivateConnectionInfoH\000\"\243\013\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\027\n" + "\023START_FROM_INSTANCE\020\001\022\027\n" @@ -315,7 +317,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031START_FROM_STORAGE_BUCKET\020\035\022$\n" + " START_FROM_PSC_PUBLISHED_SERVICE\020\036\022\035\n" + "\031START_FROM_SERVERLESS_NEG\020\037\022%\n" - + "!START_FROM_DMS_PRIVATE_CONNECTION\0200\022\037\n" + + "!START_FROM_DMS_PRIVATE_CONNECTION\0200\022,\n" + + "(START_FROM_DATASTREAM_PRIVATE_CONNECTION\0201\022\037\n" + "\033APPLY_INGRESS_FIREWALL_RULE\020\004\022\036\n" + "\032APPLY_EGRESS_FIREWALL_RULE\020\005\022\017\n" + "\013APPLY_ROUTE\020\006\022\031\n" @@ -361,8 +364,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032psc_network_attachment_uri\030\t \001(\t\022\023\n" + "\007running\030\n" + " \001(\010B\002\030\001\022F\n" - + "\006status\030\013 \001(\01626.g" - + "oogle.cloud.networkmanagement.v1.InstanceInfo.Status\">\n" + + "\006status\030\013" + + " \001(\01626.google.cloud.networkmanagement.v1.InstanceInfo.Status\">\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\017\n" @@ -407,12 +410,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tINSTANCES\020\001\022\027\n" + "\023INTERNAL_MANAGED_LB\020\002\"\354\013\n" + "\tRouteInfo\022J\n\n" - + "route_type\030\010" - + " \001(\01626.google.cloud.networkmanagement.v1.RouteInfo.RouteType\022O\n\r" - + "next_hop_type\030\t" - + " \001(\01628.google.cloud.networkmanagement.v1.RouteInfo.NextHopType\022P\n" - + "\013route_scope\030\016" - + " \001(\01627.google.cloud.networkmanagement.v1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "route_type\030\010 \001(" + + "\01626.google.cloud.networkmanagement.v1.RouteInfo.RouteType\022O\n\r" + + "next_hop_type\030\t \001(\016" + + "28.google.cloud.networkmanagement.v1.RouteInfo.NextHopType\022P\n" + + "\013route_scope\030\016 \001(\0162" + + "7.google.cloud.networkmanagement.v1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\016\n" + "\006region\030\023 \001(\t\022\025\n\r" @@ -474,8 +477,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\332\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022c\n" - + "\023google_service_type\030\002 \001(\0162F.google.cloud.networkmanage" - + "ment.v1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\0162F.g" + + "oogle.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -499,13 +502,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\035\n" + "\025psc_google_api_target\030\013 \001(\t\"\302\004\n" + "\020LoadBalancerInfo\022`\n" - + "\022load_balancer_type\030\001 \001(\0162D.google.cloud.networkmanag" - + "ement.v1.LoadBalancerInfo.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(\0162D." + + "google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022H\n" - + "\010backends\030\003" - + " \003(\01326.google.cloud.networkmanagement.v1.LoadBalancerBackend\022U\n" - + "\014backend_type\030\004" - + " \001(\0162?.google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003 \003(\01326.go" + + "ogle.cloud.networkmanagement.v1.LoadBalancerBackend\022U\n" + + "\014backend_type\030\004 \001(\0162?.goog" + + "le.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -522,9 +525,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022t\n" - + "\033health_check_firewall_state\030\003 \001(\016" - + "2O.google.cloud.networkmanagement.v1.Loa" - + "dBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162O.google.cloud" + + ".networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" @@ -551,8 +553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021source_gateway_ip\030\006 \001(\t\022\023\n" + "\013network_uri\030\007 \001(\t\022\016\n" + "\006region\030\010 \001(\t\022R\n" - + "\014routing_type\030\t \001(\0162<.google.cloud.net" - + "workmanagement.v1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t" + + " \001(\0162<.google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" @@ -564,8 +566,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020interconnect_uri\030\003 \001(\t\022\016\n" + "\006region\030\004 \001(\t\022\030\n" + "\020cloud_router_uri\030\005 \001(\t\022P\n" - + "\004type\030\006" - + " \001(\0162B.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type\0222\n" + + "\004type\030\006 \001(\0162B.google.c" + + "loud.networkmanagement.v1.InterconnectAttachmentInfo.Type\0222\n" + " l2_attachment_matched_ip_address\030\007 \001(" + "\tB\010\342\214\317\327\010\002\010\004\"`\n" + "\004Type\022\024\n" @@ -582,16 +584,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020destination_port\030\005 \001(\005\022\032\n" + "\022source_network_uri\030\006 \001(\t\022\037\n" + "\027destination_network_uri\030\007 \001(\t\022\030\n" - + "\020source_agent_uri\030\010 \001(\t\"\203\007\n" + + "\020source_agent_uri\030\010 \001(\t\"\246\007\n" + "\013DeliverInfo\022E\n" - + "\006target\030\001 \001(\01625.google.clou" - + "d.networkmanagement.v1.DeliverInfo.Target\022\024\n" + + "\006target\030\001" + + " \001(\01625.google.cloud.networkmanagement.v1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\022\026\n" + "\016storage_bucket\030\004 \001(\t\022\035\n" + "\025psc_google_api_target\030\005 \001(\t\022]\n" - + "\023google_service_type\030\006 \001(\0162@.google.cloud.network" - + "management.v1.DeliverInfo.GoogleServiceType\"\263\003\n" + + "\023google_service_type\030\006 \001" + + "(\0162@.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType\"\326\003\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -615,7 +617,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "REDIS_CLUSTER\020\021\022\013\n" + "\007GKE_POD\020\023\022\021\n\r" + "CLOUD_RUN_JOB\020\024\022\032\n" - + "\026DMS_PRIVATE_CONNECTION\020\025\"\254\001\n" + + "\026DMS_PRIVATE_CONNECTION\020\025\022!\n" + + "\035DATASTREAM_PRIVATE_CONNECTION\020\026\"\254\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -624,8 +627,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + "\025SERVERLESS_VPC_ACCESS\020\005\"\211\003\n" + "\013ForwardInfo\022E\n" - + "\006target\030\001" - + " \001(\01625.google.cloud.networkmanagement.v1.ForwardInfo.Target\022\024\n" + + "\006target\030\001 \001(\01625.google.cl" + + "oud.networkmanagement.v1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" @@ -642,8 +645,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030SECURE_WEB_PROXY_GATEWAY\020\n" + "\"\205\r\n" + "\tAbortInfo\022A\n" - + "\005cause\030\001 \001(" - + "\01622.google.cloud.networkmanagement.v1.AbortInfo.Cause\022\024\n" + + "\005cause\030\001" + + " \001(\01622.google.cloud.networkmanagement.v1.AbortInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n" + "\033projects_missing_permission\030\003 \003(\t\"\333\013\n" @@ -693,16 +696,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" + "\027NO_SERVERLESS_IP_RANGES\020%\022 \n" + "\034IP_VERSION_PROTOCOL_MISMATCH\020(\022%\n" - + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\245#\n" + + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\327#\n" + "\010DropInfo\022@\n" - + "\005cause\030\001 \001(\01621.googl" - + "e.cloud.networkmanagement.v1.DropInfo.Cause\022\024\n" + + "\005cause\030\001" + + " \001(\01621.google.cloud.networkmanagement.v1.DropInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\021\n" + "\tsource_ip\030\003 \001(\t\022\026\n" + "\016destination_ip\030\004 \001(\t\022\016\n" + "\006region\030\005 \001(\t\022\037\n" + "\027source_geolocation_code\030\006 \001(\t\022$\n" - + "\034destination_geolocation_code\030\007 \001(\t\"\276!\n" + + "\034destination_geolocation_code\030\007 \001(\t\"\360!\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -745,7 +748,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS\020\021\022\036\n" + "\032DROPPED_INSIDE_GKE_SERVICE\020\022\022$\n" + " DROPPED_INSIDE_CLOUD_SQL_SERVICE\020\023\022)\n" - + "%DROPPED_INSIDE_DMS_PRIVATE_CONNECTION\020r\022%\n" + + "%DROPPED_INSIDE_DMS_PRIVATE_CONNECTION\020r\0220\n" + + ",DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION\020s\022%\n" + "!GOOGLE_MANAGED_SERVICE_NO_PEERING\020\024\022*\n" + "&GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT\020&\022\034\n" + "\030GKE_PSC_ENDPOINT_MISSING\020$\022$\n" @@ -757,15 +761,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION\020\"\022\037\n" + "\033CLOUD_SQL_INSTANCE_NO_ROUTE\020#\022 \n" + "\034CLOUD_SQL_CONNECTOR_REQUIRED\020?\022\035\n" - + "\031CLOUD_FUNCTION_NOT_ACTIVE\020\026\022\031\n" + + "\031CLOUD_FUNCTION_NOT_ACTI", + "VE\020\026\022\031\n" + "\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n" + "\031VPC_CONNECTOR_NOT_RUNNING\020\030\022,\n" + "(VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED\020<\022.\n" + "*VPC_CONNECTOR_HEALTH_CHECK_TRAFFIC_BLOCKED\020=\022#\n" + "\037FORWARDING_RULE_REGION_MISMATCH\020\031\022\037\n" + "\033PSC_CONNECTION_NOT_ACCEPTED\020\032\022-\n" - + ")", - "PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK\020)\022.\n" + + ")PSC_ENDPOINT_ACCESSED_FROM_PEERED_NETWORK\020)\022.\n" + "*PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS\0200\0223\n" + "/PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS\0206\022!\n" + "\035CLOUD_SQL_PSC_NEG_UNSUPPORTED\020:\022-\n" @@ -822,12 +826,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013external_ip\030\006 \001(\t\022\024\n" + "\014dns_endpoint\030\007 \001(\t\"P\n\n" + "GkePodInfo\022\017\n" - + "\007pod_uri\030\001 \001(\t\022\034\n\n" + + "\007pod_uri\030\001 \001(\t\022\034\n" + + "\n" + "ip_address\030\002 \001(\tB\010\342\214\317\327\010\002\010\004\022\023\n" + "\013network_uri\030\003 \001(\t\"\277\003\n" + "\031IpMasqueradingSkippedInfo\022S\n" - + "\006reason\030\001 \001(\0162C.google.cloud." - + "networkmanagement.v1.IpMasqueradingSkippedInfo.Reason\022\034\n" + + "\006reason\030\001 \001(\0162C.google.cloud.networkman" + + "agement.v1.IpMasqueradingSkippedInfo.Reason\022\034\n" + "\024non_masquerade_range\030\002 \001(\t\"\256\002\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\0225\n" @@ -844,8 +849,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdirection\030\003 \001(\t\022\016\n" + "\006action\030\004 \001(\t\"\336\002\n" + "\033GkeNetworkPolicySkippedInfo\022U\n" - + "\006reason\030\001 \001(\0162E.google.cloud.networkmanagem" - + "ent.v1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + + "\006reason\030\001 \001(\016" + + "2E.google.cloud.networkmanagement.v1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\022\033\n" + "\027NETWORK_POLICY_DISABLED\020\001\022\037\n" @@ -924,8 +929,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "router_uri\030\014 \001(\t\022\030\n" + "\020nat_gateway_name\030\r" + " \001(\t\022^\n" - + "\026cloud_nat_gateway_type\030\016 \001(\016" - + "2>.google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType\"\231\001\n" + + "\026cloud_nat_gateway_type\030\016 \001(\0162>.google." + + "cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType\"\231\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" @@ -964,9 +969,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025psc_google_api_target\030\n" + " \001(\t\022\030\n" + "\020health_check_uri\030\006 \001(\t\022\215\001\n" - + "#health_check_firewalls_config_state\030\007 " - + "\001(\0162Z.google.cloud.networkmanagement.v1." - + "LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\004\342A\001\003\"\315\001\n" + + "#health_check_firewalls_config_state\030\007 \001(\0162Z.goog" + + "le.cloud.networkmanagement.v1.LoadBalanc" + + "erBackendInfo.HealthCheckFirewallsConfigStateB\004\342A\001\003\"\315\001\n" + "\037HealthCheckFirewallsConfigState\0223\n" + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" @@ -995,10 +1000,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + "B\371\001\n" + "%com.google.cloud.networkmanagement.v1B\n" - + "TraceProtoP\001ZScloud.google.com/go/networkmanagement/a" - + "piv1/networkmanagementpb;networkmanagementpb\252\002!Google.Cloud.NetworkManagement.V1" - + "\312\002!Google\\Cloud\\NetworkManagement\\V1\352\002$G" - + "oogle::Cloud::NetworkManagement::V1b\006proto3" + + "TraceProtoP\001ZScloud.google.com/go/networkmanagement/apiv1/netwo" + + "rkmanagementpb;networkmanagementpb\252\002!Goo" + + "gle.Cloud.NetworkManagement.V1\312\002!Google\\" + + "Cloud\\NetworkManagement\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1063,6 +1068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServerlessNeg", "NgfwPacketInspection", "DmsPrivateConnection", + "DatastreamPrivateConnection", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1_InstanceInfo_descriptor = diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto index 6c3bb142ab14..ad996c6db99f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/connectivity_test.proto @@ -259,6 +259,12 @@ message Endpoint { // projects/{project}/locations/{location}/privateConnections/{privateConnection}. string dms_private_connection = 22; + // A [Datastream Private + // Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections) + // name format: + // projects/{project}/locations/{location}/privateConnections/{privateConnection}. + string datastream_private_connection = 23; + // A [Cloud Function](https://cloud.google.com/functions). Applicable only to // source endpoint. CloudFunctionEndpoint cloud_function = 10; diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto index 5d21f44d9540..921b4c4a410d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto @@ -139,6 +139,9 @@ message Step { // Initial state: packet originating from a DMS Private Connection. START_FROM_DMS_PRIVATE_CONNECTION = 48; + // Initial state: packet originating from a Datastream Private Connection. + START_FROM_DATASTREAM_PRIVATE_CONNECTION = 49; + // Config checking state: verify ingress firewall rule. APPLY_INGRESS_FIREWALL_RULE = 4; @@ -380,6 +383,9 @@ message Step { // Display information of a DMS Private Connection. PrivateConnectionInfo dms_private_connection = 43; + + // Display information of a Datastream Private Connection. + PrivateConnectionInfo datastream_private_connection = 44; } } @@ -1170,6 +1176,9 @@ message DeliverInfo { // Target is a DMS Private Connection. Used only for return traces. DMS_PRIVATE_CONNECTION = 21; + + // Target is a Datastream Private Connection. Used only for return traces. + DATASTREAM_PRIVATE_CONNECTION = 22; } // Recognized type of a Google Service. @@ -1622,6 +1631,9 @@ message DropInfo { // Packet was dropped inside DMS Private Connection. DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; + // Packet was dropped inside Datastream Private Connection. + DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION = 115; + // Packet was dropped because there is no peering between the originating // network and the Google Managed Services Network. GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java index cf5324aa7423..3126e5b6fbbe 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java @@ -298,6 +298,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * DMS_PRIVATE_CONNECTION = 21; */ DMS_PRIVATE_CONNECTION(21), + /** + * + * + *
+     * Target is a Datastream Private Connection. Used only for return traces.
+     * 
+ * + * DATASTREAM_PRIVATE_CONNECTION = 22; + */ + DATASTREAM_PRIVATE_CONNECTION(22), UNRECOGNIZED(-1), ; @@ -545,6 +555,17 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DMS_PRIVATE_CONNECTION_VALUE = 21; + /** + * + * + *
+     * Target is a Datastream Private Connection. Used only for return traces.
+     * 
+ * + * DATASTREAM_PRIVATE_CONNECTION = 22; + */ + public static final int DATASTREAM_PRIVATE_CONNECTION_VALUE = 22; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -611,6 +632,8 @@ public static Target forNumber(int value) { return CLOUD_RUN_JOB; case 21: return DMS_PRIVATE_CONNECTION; + case 22: + return DATASTREAM_PRIVATE_CONNECTION; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java index 1b68cca14958..a980b04b7aed 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DropInfo.java @@ -518,6 +518,16 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; */ DROPPED_INSIDE_DMS_PRIVATE_CONNECTION(114), + /** + * + * + *
+     * Packet was dropped inside Datastream Private Connection.
+     * 
+ * + * DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION = 115; + */ + DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION(115), /** * * @@ -1752,6 +1762,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DROPPED_INSIDE_DMS_PRIVATE_CONNECTION_VALUE = 114; + /** + * + * + *
+     * Packet was dropped inside Datastream Private Connection.
+     * 
+ * + * DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION = 115; + */ + public static final int DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION_VALUE = 115; + /** * * @@ -2673,6 +2694,8 @@ public static Cause forNumber(int value) { return DROPPED_INSIDE_CLOUD_SQL_SERVICE; case 114: return DROPPED_INSIDE_DMS_PRIVATE_CONNECTION; + case 115: + return DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION; case 20: return GOOGLE_MANAGED_SERVICE_NO_PEERING; case 38: diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java index 556edf9030c2..48703227d248 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Endpoint.java @@ -65,6 +65,7 @@ private Endpoint() { redisCluster_ = ""; gkePod_ = ""; dmsPrivateConnection_ = ""; + datastreamPrivateConnection_ = ""; cloudRunJob_ = ""; network_ = ""; networkType_ = 0; @@ -3498,6 +3499,65 @@ public com.google.protobuf.ByteString getDmsPrivateConnectionBytes() { } } + public static final int DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private volatile java.lang.Object datastreamPrivateConnection_ = ""; + + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The datastreamPrivateConnection. + */ + @java.lang.Override + public java.lang.String getDatastreamPrivateConnection() { + java.lang.Object ref = datastreamPrivateConnection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datastreamPrivateConnection_ = s; + return s; + } + } + + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The bytes for datastreamPrivateConnection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatastreamPrivateConnectionBytes() { + java.lang.Object ref = datastreamPrivateConnection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datastreamPrivateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 10; private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_; @@ -3996,6 +4056,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dmsPrivateConnection_)) { com.google.protobuf.GeneratedMessage.writeString(output, 22, dmsPrivateConnection_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datastreamPrivateConnection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 23, datastreamPrivateConnection_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { com.google.protobuf.GeneratedMessage.writeString(output, 24, cloudRunJob_); } @@ -4070,6 +4133,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dmsPrivateConnection_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(22, dmsPrivateConnection_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datastreamPrivateConnection_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(23, datastreamPrivateConnection_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(24, cloudRunJob_); } @@ -4112,6 +4179,8 @@ public boolean equals(final java.lang.Object obj) { if (!getRedisCluster().equals(other.getRedisCluster())) return false; if (!getGkePod().equals(other.getGkePod())) return false; if (!getDmsPrivateConnection().equals(other.getDmsPrivateConnection())) return false; + if (!getDatastreamPrivateConnection().equals(other.getDatastreamPrivateConnection())) + return false; if (hasCloudFunction() != other.hasCloudFunction()) return false; if (hasCloudFunction()) { if (!getCloudFunction().equals(other.getCloudFunction())) return false; @@ -4173,6 +4242,8 @@ public int hashCode() { hash = (53 * hash) + getGkePod().hashCode(); hash = (37 * hash) + DMS_PRIVATE_CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getDmsPrivateConnection().hashCode(); + hash = (37 * hash) + DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getDatastreamPrivateConnection().hashCode(); if (hasCloudFunction()) { hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -4358,6 +4429,7 @@ public Builder clear() { redisCluster_ = ""; gkePod_ = ""; dmsPrivateConnection_ = ""; + datastreamPrivateConnection_ = ""; cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -4460,30 +4532,33 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.Endpoint r result.dmsPrivateConnection_ = dmsPrivateConnection_; } if (((from_bitField0_ & 0x00004000) != 0)) { + result.datastreamPrivateConnection_ = datastreamPrivateConnection_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { result.cloudFunction_ = cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.appEngineVersion_ = appEngineVersionBuilder_ == null ? appEngineVersion_ : appEngineVersionBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.cloudRunRevision_ = cloudRunRevisionBuilder_ == null ? cloudRunRevision_ : cloudRunRevisionBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.cloudRunJob_ = cloudRunJob_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.networkType_ = networkType_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.projectId_ = projectId_; } result.bitField0_ |= to_bitField0_; @@ -4566,6 +4641,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth bitField0_ |= 0x00002000; onChanged(); } + if (!other.getDatastreamPrivateConnection().isEmpty()) { + datastreamPrivateConnection_ = other.datastreamPrivateConnection_; + bitField0_ |= 0x00004000; + onChanged(); + } if (other.hasCloudFunction()) { mergeCloudFunction(other.getCloudFunction()); } @@ -4577,12 +4657,12 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth } if (!other.getCloudRunJob().isEmpty()) { cloudRunJob_ = other.cloudRunJob_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.networkType_ != 0) { @@ -4590,7 +4670,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4640,19 +4720,19 @@ public Builder mergeFrom( case 34: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 34 case 40: { networkType_ = input.readEnum(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 40 case 50: { projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 50 case 58: @@ -4671,21 +4751,21 @@ public Builder mergeFrom( { input.readMessage( internalGetCloudFunctionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 82 case 90: { input.readMessage( internalGetAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 90 case 98: { input.readMessage( internalGetCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 98 case 106: @@ -4742,10 +4822,16 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 178 + case 186: + { + datastreamPrivateConnection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 186 case 194: { cloudRunJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 194 default: @@ -6408,6 +6494,132 @@ public Builder setDmsPrivateConnectionBytes(com.google.protobuf.ByteString value return this; } + private java.lang.Object datastreamPrivateConnection_ = ""; + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @return The datastreamPrivateConnection. + */ + public java.lang.String getDatastreamPrivateConnection() { + java.lang.Object ref = datastreamPrivateConnection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datastreamPrivateConnection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @return The bytes for datastreamPrivateConnection. + */ + public com.google.protobuf.ByteString getDatastreamPrivateConnectionBytes() { + java.lang.Object ref = datastreamPrivateConnection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datastreamPrivateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @param value The datastreamPrivateConnection to set. + * @return This builder for chaining. + */ + public Builder setDatastreamPrivateConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datastreamPrivateConnection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @return This builder for chaining. + */ + public Builder clearDatastreamPrivateConnection() { + datastreamPrivateConnection_ = getDefaultInstance().getDatastreamPrivateConnection(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * + * + *
+     * A [Datastream Private
+     * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+     * name format:
+     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+     * 
+ * + * string datastream_private_connection = 23; + * + * @param value The bytes for datastreamPrivateConnection to set. + * @return This builder for chaining. + */ + public Builder setDatastreamPrivateConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datastreamPrivateConnection_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_; private com.google.protobuf.SingleFieldBuilder< @@ -6431,7 +6643,7 @@ public Builder setDmsPrivateConnectionBytes(com.google.protobuf.ByteString value * @return Whether the cloudFunction field is set. */ public boolean hasCloudFunction() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -6482,7 +6694,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6507,7 +6719,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6527,7 +6739,7 @@ public Builder setCloudFunction( public Builder mergeCloudFunction( com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) { if (cloudFunctionBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && cloudFunction_ != null && cloudFunction_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint @@ -6540,7 +6752,7 @@ public Builder mergeCloudFunction( cloudFunctionBuilder_.mergeFrom(value); } if (cloudFunction_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6559,7 +6771,7 @@ public Builder mergeCloudFunction( * */ public Builder clearCloudFunction() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -6583,7 +6795,7 @@ public Builder clearCloudFunction() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetCloudFunctionFieldBuilder().getBuilder(); } @@ -6665,7 +6877,7 @@ public Builder clearCloudFunction() { * @return Whether the appEngineVersion field is set. */ public boolean hasAppEngineVersion() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6718,7 +6930,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6744,7 +6956,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6765,7 +6977,7 @@ public Builder setAppEngineVersion( public Builder mergeAppEngineVersion( com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint value) { if (appEngineVersionBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && appEngineVersion_ != null && appEngineVersion_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint @@ -6778,7 +6990,7 @@ public Builder mergeAppEngineVersion( appEngineVersionBuilder_.mergeFrom(value); } if (appEngineVersion_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6798,7 +7010,7 @@ public Builder mergeAppEngineVersion( * */ public Builder clearAppEngineVersion() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); appEngineVersion_ = null; if (appEngineVersionBuilder_ != null) { appEngineVersionBuilder_.dispose(); @@ -6823,7 +7035,7 @@ public Builder clearAppEngineVersion() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetAppEngineVersionFieldBuilder().getBuilder(); } @@ -6909,7 +7121,7 @@ public Builder clearAppEngineVersion() { * @return Whether the cloudRunRevision field is set. */ public boolean hasCloudRunRevision() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -6962,7 +7174,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6988,7 +7200,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7009,7 +7221,7 @@ public Builder setCloudRunRevision( public Builder mergeCloudRunRevision( com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint value) { if (cloudRunRevisionBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && cloudRunRevision_ != null && cloudRunRevision_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint @@ -7022,7 +7234,7 @@ public Builder mergeCloudRunRevision( cloudRunRevisionBuilder_.mergeFrom(value); } if (cloudRunRevision_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -7042,7 +7254,7 @@ public Builder mergeCloudRunRevision( * */ public Builder clearCloudRunRevision() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); cloudRunRevision_ = null; if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.dispose(); @@ -7067,7 +7279,7 @@ public Builder clearCloudRunRevision() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetCloudRunRevisionFieldBuilder().getBuilder(); } @@ -7206,7 +7418,7 @@ public Builder setCloudRunJob(java.lang.String value) { throw new NullPointerException(); } cloudRunJob_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7228,7 +7440,7 @@ public Builder setCloudRunJob(java.lang.String value) { */ public Builder clearCloudRunJob() { cloudRunJob_ = getDefaultInstance().getCloudRunJob(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -7255,7 +7467,7 @@ public Builder setCloudRunJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); cloudRunJob_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7334,7 +7546,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7355,7 +7567,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -7381,7 +7593,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7420,7 +7632,7 @@ public int getNetworkTypeValue() { */ public Builder setNetworkTypeValue(int value) { networkType_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7464,7 +7676,7 @@ public Builder setNetworkType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; networkType_ = value.getNumber(); onChanged(); return this; @@ -7483,7 +7695,7 @@ public Builder setNetworkType( * @return This builder for chaining. */ public Builder clearNetworkType() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); networkType_ = 0; onChanged(); return this; @@ -7557,7 +7769,7 @@ public Builder setProjectId(java.lang.String value) { throw new NullPointerException(); } projectId_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7576,7 +7788,7 @@ public Builder setProjectId(java.lang.String value) { */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -7600,7 +7812,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); projectId_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java index f7772124e1fd..7ee6224f3697 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/EndpointOrBuilder.java @@ -468,6 +468,38 @@ public interface EndpointOrBuilder */ com.google.protobuf.ByteString getDmsPrivateConnectionBytes(); + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The datastreamPrivateConnection. + */ + java.lang.String getDatastreamPrivateConnection(); + + /** + * + * + *
+   * A [Datastream Private
+   * Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections)
+   * name format:
+   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
+   * 
+ * + * string datastream_private_connection = 23; + * + * @return The bytes for datastreamPrivateConnection. + */ + com.google.protobuf.ByteString getDatastreamPrivateConnectionBytes(); + /** * * diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java index db778f26e142..a882e980ca8c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java @@ -652,7 +652,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return The serviceAccount. */ @java.lang.Override @@ -679,7 +679,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -763,7 +763,7 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=439 * @return The running. */ @java.lang.Override @@ -2237,7 +2237,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2263,7 +2263,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2289,7 +2289,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2314,7 +2314,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2335,7 +2335,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2475,7 +2475,7 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=439 * @return The running. */ @java.lang.Override @@ -2495,7 +2495,7 @@ public boolean getRunning() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=439 * @param value The running to set. * @return This builder for chaining. */ @@ -2519,7 +2519,7 @@ public Builder setRunning(boolean value) { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=439 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java index 89bd546efdce..fab9affc52ce 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java @@ -246,7 +246,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return The serviceAccount. */ @java.lang.Deprecated @@ -262,7 +262,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=432 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -305,7 +305,7 @@ public interface InstanceInfoOrBuilder * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=439 * @return The running. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java index 2455a9a3e7cc..ade818651733 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfo.java @@ -572,7 +572,7 @@ public int getLoadBalancerTypeValue() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return The healthCheckUri. */ @java.lang.Override @@ -601,7 +601,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1381,7 +1381,7 @@ public Builder clearLoadBalancerType() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1409,7 +1409,7 @@ public java.lang.String getHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1437,7 +1437,7 @@ public com.google.protobuf.ByteString getHealthCheckUriBytes() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1464,7 +1464,7 @@ public Builder setHealthCheckUri(java.lang.String value) { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1487,7 +1487,7 @@ public Builder clearHealthCheckUri() { * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @param value The bytes for healthCheckUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java index 5bb22dcf8129..a7dc615f7626 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerInfoOrBuilder.java @@ -69,7 +69,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface LoadBalancerInfoOrBuilder * string health_check_uri = 2 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.health_check_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=911 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java index 6406501e0399..a0954cdceb7a 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfo.java @@ -1113,7 +1113,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextH * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1135,7 +1135,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return The routeScope. */ @java.lang.Override @@ -1387,7 +1387,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return The nextHop. */ @java.lang.Override @@ -1416,7 +1416,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return The bytes for nextHop. */ @java.lang.Override @@ -2065,7 +2065,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2088,7 +2088,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2119,7 +2119,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3576,7 +3576,7 @@ public Builder clearNextHopType() { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3598,7 +3598,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3623,7 +3623,7 @@ public Builder setRouteScopeValue(int value) { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return The routeScope. */ @java.lang.Override @@ -3649,7 +3649,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteS * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3678,7 +3678,7 @@ public Builder setRouteScope( * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4172,7 +4172,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return The nextHop. */ @java.lang.Deprecated @@ -4200,7 +4200,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4228,7 +4228,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4255,7 +4255,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4278,7 +4278,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5716,7 +5716,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5738,7 +5738,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5768,7 +5768,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5798,7 +5798,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5827,7 +5827,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5852,7 +5852,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @param value The bytes for advertisedRouteNextHopUri to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java index cf56133fa68c..7eb0702251aa 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java @@ -91,7 +91,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=696 * @return The routeScope. */ @java.lang.Deprecated @@ -242,7 +242,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return The nextHop. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=718 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -687,7 +687,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -707,7 +707,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -727,7 +727,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=758 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java index c52ce92af9db..9ff9a568a100 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java @@ -284,6 +284,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_DMS_PRIVATE_CONNECTION = 48; */ START_FROM_DMS_PRIVATE_CONNECTION(48), + /** + * + * + *
+     * Initial state: packet originating from a Datastream Private Connection.
+     * 
+ * + * START_FROM_DATASTREAM_PRIVATE_CONNECTION = 49; + */ + START_FROM_DATASTREAM_PRIVATE_CONNECTION(49), /** * * @@ -833,6 +843,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int START_FROM_DMS_PRIVATE_CONNECTION_VALUE = 48; + /** + * + * + *
+     * Initial state: packet originating from a Datastream Private Connection.
+     * 
+ * + * START_FROM_DATASTREAM_PRIVATE_CONNECTION = 49; + */ + public static final int START_FROM_DATASTREAM_PRIVATE_CONNECTION_VALUE = 49; + /** * * @@ -1239,6 +1260,8 @@ public static State forNumber(int value) { return START_FROM_SERVERLESS_NEG; case 48: return START_FROM_DMS_PRIVATE_CONNECTION; + case 49: + return START_FROM_DATASTREAM_PRIVATE_CONNECTION; case 4: return APPLY_INGRESS_FIREWALL_RULE; case 5: @@ -1400,6 +1423,7 @@ public enum StepInfoCase SERVERLESS_NEG(29), NGFW_PACKET_INSPECTION(42), DMS_PRIVATE_CONNECTION(43), + DATASTREAM_PRIVATE_CONNECTION(44), STEPINFO_NOT_SET(0); private final int value; @@ -1495,6 +1519,8 @@ public static StepInfoCase forNumber(int value) { return NGFW_PACKET_INSPECTION; case 43: return DMS_PRIVATE_CONNECTION; + case 44: + return DATASTREAM_PRIVATE_CONNECTION; case 0: return STEPINFO_NOT_SET; default: @@ -2654,7 +2680,7 @@ public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBui * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=325 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -2676,7 +2702,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=325 * @return The loadBalancer. */ @java.lang.Override @@ -3866,6 +3892,68 @@ public boolean hasDmsPrivateConnection() { return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); } + public static final int DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER = 44; + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return Whether the datastreamPrivateConnection field is set. + */ + @java.lang.Override + public boolean hasDatastreamPrivateConnection() { + return stepInfoCase_ == 44; + } + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return The datastreamPrivateConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + getDatastreamPrivateConnection() { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder + getDatastreamPrivateConnectionOrBuilder() { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4029,6 +4117,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 43, (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 44) { + output.writeMessage( + 44, (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_); + } if (stepInfoCase_ == 45) { output.writeMessage( 45, (com.google.cloud.networkmanagement.v1beta1.CloudRunJobInfo) stepInfo_); @@ -4245,6 +4337,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 43, (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_); } + if (stepInfoCase_ == 44) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 44, (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_); + } if (stepInfoCase_ == 45) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -4388,6 +4485,10 @@ public boolean equals(final java.lang.Object obj) { case 43: if (!getDmsPrivateConnection().equals(other.getDmsPrivateConnection())) return false; break; + case 44: + if (!getDatastreamPrivateConnection().equals(other.getDatastreamPrivateConnection())) + return false; + break; case 0: default: } @@ -4563,6 +4664,10 @@ public int hashCode() { hash = (37 * hash) + DMS_PRIVATE_CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getDmsPrivateConnection().hashCode(); break; + case 44: + hash = (37 * hash) + DATASTREAM_PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getDatastreamPrivateConnection().hashCode(); + break; case 0: default: } @@ -4826,6 +4931,9 @@ public Builder clear() { if (dmsPrivateConnectionBuilder_ != null) { dmsPrivateConnectionBuilder_.clear(); } + if (datastreamPrivateConnectionBuilder_ != null) { + datastreamPrivateConnectionBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -5003,6 +5111,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step if (stepInfoCase_ == 43 && dmsPrivateConnectionBuilder_ != null) { result.stepInfo_ = dmsPrivateConnectionBuilder_.build(); } + if (stepInfoCase_ == 44 && datastreamPrivateConnectionBuilder_ != null) { + result.stepInfo_ = datastreamPrivateConnectionBuilder_.build(); + } } @java.lang.Override @@ -5225,6 +5336,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeDmsPrivateConnection(other.getDmsPrivateConnection()); break; } + case DATASTREAM_PRIVATE_CONNECTION: + { + mergeDatastreamPrivateConnection(other.getDatastreamPrivateConnection()); + break; + } case STEPINFO_NOT_SET: { break; @@ -5536,6 +5652,14 @@ public Builder mergeFrom( stepInfoCase_ = 43; break; } // case 346 + case 354: + { + input.readMessage( + internalGetDatastreamPrivateConnectionFieldBuilder().getBuilder(), + extensionRegistry); + stepInfoCase_ = 44; + break; + } // case 354 case 362: { input.readMessage( @@ -9851,7 +9975,7 @@ public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBui * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=325 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -9873,7 +9997,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=325 * @return The loadBalancer. */ @java.lang.Override @@ -14767,6 +14891,253 @@ public Builder clearDmsPrivateConnection() { return dmsPrivateConnectionBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder> + datastreamPrivateConnectionBuilder_; + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return Whether the datastreamPrivateConnection field is set. + */ + @java.lang.Override + public boolean hasDatastreamPrivateConnection() { + return stepInfoCase_ == 44; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return The datastreamPrivateConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + getDatastreamPrivateConnection() { + if (datastreamPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance(); + } else { + if (stepInfoCase_ == 44) { + return datastreamPrivateConnectionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder setDatastreamPrivateConnection( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo value) { + if (datastreamPrivateConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + datastreamPrivateConnectionBuilder_.setMessage(value); + } + stepInfoCase_ = 44; + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder setDatastreamPrivateConnection( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder builderForValue) { + if (datastreamPrivateConnectionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + datastreamPrivateConnectionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 44; + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder mergeDatastreamPrivateConnection( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo value) { + if (datastreamPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 44 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 44) { + datastreamPrivateConnectionBuilder_.mergeFrom(value); + } else { + datastreamPrivateConnectionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 44; + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public Builder clearDatastreamPrivateConnection() { + if (datastreamPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 44) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 44) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + datastreamPrivateConnectionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder + getDatastreamPrivateConnectionBuilder() { + return internalGetDatastreamPrivateConnectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder + getDatastreamPrivateConnectionOrBuilder() { + if ((stepInfoCase_ == 44) && (datastreamPrivateConnectionBuilder_ != null)) { + return datastreamPrivateConnectionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 44) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Display information of a Datastream Private Connection.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder> + internalGetDatastreamPrivateConnectionFieldBuilder() { + if (datastreamPrivateConnectionBuilder_ == null) { + if (!(stepInfoCase_ == 44)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + datastreamPrivateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 44; + onChanged(); + return datastreamPrivateConnectionBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.Step) } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java index 4f3bd8d7702f..a38a8e2134f0 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java @@ -792,7 +792,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=325 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -811,7 +811,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=325 * @return The loadBalancer. */ @java.lang.Deprecated @@ -1634,5 +1634,49 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder getDmsPrivateConnectionOrBuilder(); + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return Whether the datastreamPrivateConnection field is set. + */ + boolean hasDatastreamPrivateConnection(); + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + * + * @return The datastreamPrivateConnection. + */ + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo getDatastreamPrivateConnection(); + + /** + * + * + *
+   * Display information of a Datastream Private Connection.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo datastream_private_connection = 44; + * + */ + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder + getDatastreamPrivateConnectionOrBuilder(); + com.google.cloud.networkmanagement.v1beta1.Step.StepInfoCase getStepInfoCase(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java index 5b32cc6d5e83..77158220fe09 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TestOuterClass.java @@ -131,7 +131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:t\352Aq\n" + "1networkmanagement.googleapis.com/ConnectivityTest\022\n" + + "\006status\030\013 \001(" + + "\0162;.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status\">\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\017\n" @@ -390,12 +393,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006policy\030\t \001(\t\022\022\n\n" + "policy_uri\030\013 \001(\t\022a\n" + "\022firewall_rule_type\030\n" - + " \001(\0162E.google.cloud.netw" - + "orkmanagement.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" + + " \001(\0162E.google.cloud.networkmanagem" + + "ent.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" + "\017policy_priority\030\014 \001(\005\022T\n" + "\013target_type\030\r" - + " \001(\0162?.google.cloud.network" - + "management.v1beta1.FirewallInfo.TargetType\"\274\003\n" + + " \001(\0162?.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType\"\274\003\n" + "\020FirewallRuleType\022\"\n" + "\036FIREWALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n" + "!HIERARCHICAL_FIREWALL_POLICY_RULE\020\001\022\025\n" @@ -414,12 +416,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tINSTANCES\020\001\022\027\n" + "\023INTERNAL_MANAGED_LB\020\002\"\373\013\n" + "\tRouteInfo\022O\n\n" - + "route_type\030\010" - + " \001(\0162;.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" - + "next_hop_type\030\t" - + " \001(\0162=.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" - + "\013route_scope\030\016 \001(\0162<.google.cloud.networkman" - + "agement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "route_type\030\010 \001(\0162;.g" + + "oogle.cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" + + "next_hop_type\030\t \001(\016" + + "2=.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" + + "\013route_scope\030\016" + + " \001(\0162<.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\016\n" + "\006region\030\023 \001(\t\022\025\n\r" @@ -481,8 +483,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\337\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022h\n" - + "\023google_service_type\030\002 \001(\0162K.google.cloud.networkm" - + "anagement.v1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\0162K.google.cloud.networkmanagement." + + "v1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -506,13 +508,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\035\n" + "\025psc_google_api_target\030\013 \001(\t\"\321\004\n" + "\020LoadBalancerInfo\022e\n" - + "\022load_balancer_type\030\001 \001(\0162I.google.cloud.ne" - + "tworkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(\0162I.google.cloud.networkmanag" + + "ement.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022M\n" - + "\010backends\030\003 \003(\0132;.google.cloud" - + ".networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" - + "\014backend_type\030\004 \001(\0162D.google.cl" - + "oud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003" + + " \003(\0132;.google.cloud.networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" + + "\014backend_type\030\004 \001(\0162D.google.cloud.networ" + + "kmanagement.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -529,8 +531,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022y\n" - + "\033health_check_firewall_state\030\003 \001(\0162T.google.cloud" - + ".networkmanagement.v1beta1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162T.google.cloud.networkma" + + "nagement.v1beta1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" @@ -557,8 +559,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021source_gateway_ip\030\006 \001(\t\022\023\n" + "\013network_uri\030\007 \001(\t\022\016\n" + "\006region\030\010 \001(\t\022W\n" - + "\014routing_type\030\t \001(\0162A.google.cloud.networkmanage" - + "ment.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t \001(" + + "\0162A.google.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" @@ -570,8 +572,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020interconnect_uri\030\003 \001(\t\022\016\n" + "\006region\030\004 \001(\t\022\030\n" + "\020cloud_router_uri\030\005 \001(\t\022U\n" - + "\004type\030\006 \001(\0162" - + "G.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type\0222\n" + + "\004type\030\006 \001(\0162G.google.c" + + "loud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type\0222\n" + " l2_attachment_matched_ip_address\030\007 \001(" + "\tB\010\342\214\317\327\010\002\010\004\"`\n" + "\004Type\022\024\n" @@ -588,16 +590,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020destination_port\030\005 \001(\005\022\032\n" + "\022source_network_uri\030\006 \001(\t\022\037\n" + "\027destination_network_uri\030\007 \001(\t\022\030\n" - + "\020source_agent_uri\030\010 \001(\t\"\215\007\n" + + "\020source_agent_uri\030\010 \001(\t\"\260\007\n" + "\013DeliverInfo\022J\n" - + "\006target\030\001 \001(\0162:.google.clou" - + "d.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + + "\006target\030\001" + + " \001(\0162:.google.cloud.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\022\026\n" + "\016storage_bucket\030\004 \001(\t\022\035\n" + "\025psc_google_api_target\030\005 \001(\t\022b\n" - + "\023google_service_type\030\006 \001(\0162E.google.cloud.ne" - + "tworkmanagement.v1beta1.DeliverInfo.GoogleServiceType\"\263\003\n" + + "\023google_service_type\030\006 \001(\0162E.google.cloud.networkmanag" + + "ement.v1beta1.DeliverInfo.GoogleServiceType\"\326\003\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -621,7 +623,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "REDIS_CLUSTER\020\021\022\013\n" + "\007GKE_POD\020\023\022\021\n\r" + "CLOUD_RUN_JOB\020\024\022\032\n" - + "\026DMS_PRIVATE_CONNECTION\020\025\"\254\001\n" + + "\026DMS_PRIVATE_CONNECTION\020\025\022!\n" + + "\035DATASTREAM_PRIVATE_CONNECTION\020\026\"\254\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -630,8 +633,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + "\025SERVERLESS_VPC_ACCESS\020\005\"\216\003\n" + "\013ForwardInfo\022J\n" - + "\006target\030\001 \001(\0162:.google.cloud.networ" - + "kmanagement.v1beta1.ForwardInfo.Target\022\024\n" + + "\006target\030\001 " + + "\001(\0162:.google.cloud.networkmanagement.v1beta1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" @@ -648,8 +651,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030SECURE_WEB_PROXY_GATEWAY\020\n" + "\"\212\r\n" + "\tAbortInfo\022F\n" - + "\005cause\030\001" - + " \001(\01627.google.cloud.networkmanagement.v1beta1.AbortInfo.Cause\022\024\n" + + "\005cause\030\001 \001(" + + "\01627.google.cloud.networkmanagement.v1beta1.AbortInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\004 \001(\tB\010\342\214\317\327\010\002\010\004\022#\n" + "\033projects_missing_permission\030\003 \003(\t\"\333\013\n" @@ -699,16 +702,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" + "\027NO_SERVERLESS_IP_RANGES\020%\022 \n" + "\034IP_VERSION_PROTOCOL_MISMATCH\020(\022%\n" - + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\252#\n" + + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\334#\n" + "\010DropInfo\022E\n" - + "\005cause\030\001" - + " \001(\01626.google.cloud.networkmanagement.v1beta1.DropInfo.Cause\022\024\n" + + "\005cause\030\001 \001(\01626." + + "google.cloud.networkmanagement.v1beta1.DropInfo.Cause\022\024\n" + "\014resource_uri\030\002 \001(\t\022\021\n" + "\tsource_ip\030\003 \001(\t\022\026\n" + "\016destination_ip\030\004 \001(\t\022\016\n" + "\006region\030\005 \001(\t\022\037\n" + "\027source_geolocation_code\030\006 \001(\t\022$\n" - + "\034destination_geolocation_code\030\007 \001(\t\"\276!\n" + + "\034destination_geolocation_code\030\007 \001(\t\"\360!\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -751,18 +754,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS\020\021\022\036\n" + "\032DROPPED_INSIDE_GKE_SERVICE\020\022\022$\n" + " DROPPED_INSIDE_CLOUD_SQL_SERVICE\020\023\022)\n" - + "%DROPPED_INSIDE_DMS_PRIVATE_CONNECTION\020r\022%\n" + + "%DROPPED_INSIDE_DMS_PRIVATE_CONNECTION\020r\0220\n" + + ",DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION\020s\022%\n" + "!GOOGLE_MANAGED_SERVICE_NO_PEERING\020\024\022*\n" + "&GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT\020&\022\034\n" + "\030GKE_PSC_ENDPOINT_MISSING\020$\022$\n" + " CLOUD_SQL_INSTANCE_NO_IP_ADDRESS\020\025\022%\n" - + "!GKE_CONTROL_PLANE_REGION_MISMATCH\020\036\0223\n" + + "!GKE_CONTROL_PLANE_", + "REGION_MISMATCH\020\036\0223\n" + "/PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_DESTINATION\020\037\022\036\n" + "\032GKE_CONTROL_PLANE_NO_ROUTE\020 \022:\n" + "6CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC\020!\0224\n" + "0PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION\020\"\022\037\n" - + "\033CLOUD_SQL_INSTA", - "NCE_NO_ROUTE\020#\022 \n" + + "\033CLOUD_SQL_INSTANCE_NO_ROUTE\020#\022 \n" + "\034CLOUD_SQL_CONNECTOR_REQUIRED\020?\022\035\n" + "\031CLOUD_FUNCTION_NOT_ACTIVE\020\026\022\031\n" + "\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n" @@ -832,8 +836,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ip_address\030\002 \001(\tB\010\342\214\317\327\010\002\010\004\022\023\n" + "\013network_uri\030\003 \001(\t\"\304\003\n" + "\031IpMasqueradingSkippedInfo\022X\n" - + "\006reason\030\001 \001(\0162H.google.cloud.networkmanageme" - + "nt.v1beta1.IpMasqueradingSkippedInfo.Reason\022\034\n" + + "\006reason\030\001 \001(\0162H.google.cloud.networkmanagement.v1" + + "beta1.IpMasqueradingSkippedInfo.Reason\022\034\n" + "\024non_masquerade_range\030\002 \001(\t\"\256\002\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\0225\n" @@ -850,8 +854,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdirection\030\003 \001(\t\022\016\n" + "\006action\030\004 \001(\t\"\343\002\n" + "\033GkeNetworkPolicySkippedInfo\022Z\n" - + "\006reason\030\001 \001(\016" - + "2J.google.cloud.networkmanagement.v1beta1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + + "\006reason\030\001 \001(\0162J.go" + + "ogle.cloud.networkmanagement.v1beta1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\022\033\n" + "\027NETWORK_POLICY_DISABLED\020\001\022\037\n" @@ -927,12 +931,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017new_source_port\030\t \001(\005\022\034\n" + "\024old_destination_port\030\n" + " \001(\005\022\034\n" - + "\024new_destination_port\030\013 \001(\005\022\022\n\n" + + "\024new_destination_port\030\013 \001(\005\022\022\n" + + "\n" + "router_uri\030\014 \001(\t\022\030\n" + "\020nat_gateway_name\030\r" + " \001(\t\022c\n" - + "\026cloud_nat_gateway_type\030\016 \001(\016" - + "2C.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType\"\231\001\n" + + "\026cloud_nat_gateway_type\030\016 \001(\0162C.go" + + "ogle.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType\"\231\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" @@ -971,8 +976,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025psc_google_api_target\030\n" + " \001(\t\022\030\n" + "\020health_check_uri\030\006 \001(\t\022\222\001\n" - + "#health_check_firewalls_config_state\030\007 \001(\0162_.google.cloud.networkmanagemen" - + "t.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\004\342A\001\003\"\315\001\n" + + "#health_check_firewalls_config_state\030\007 " + + "\001(\0162_.google.cloud.networkmanagement.v1b" + + "eta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\004\342A\001\003\"\315\001\n" + "\037HealthCheckFirewallsConfigState\0223\n" + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" @@ -1001,11 +1007,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + "B\222\002\n" + "*com.google.cloud.networkmanagement.v1beta1B\n" - + "TraceProtoP\001ZXcloud.google.com/go/networkmanagement/apiv1beta1/networkmanageme" - + "ntpb;networkmanagementpb\252\002&Google.Cloud." - + "NetworkManagement.V1Beta1\312\002&Google\\Cloud" - + "\\NetworkManagement\\V1beta1\352\002)Google::Clo" - + "ud::NetworkManagement::V1beta1b\006proto3" + + "TraceProtoP\001ZXcloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;" + + "networkmanagementpb\252\002&Google.Cloud.Netwo" + + "rkManagement.V1Beta1\312\002&Google\\Cloud\\Netw" + + "orkManagement\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1070,6 +1075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServerlessNeg", "NgfwPacketInspection", "DmsPrivateConnection", + "DatastreamPrivateConnection", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1beta1_InstanceInfo_descriptor = diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto index d37ae31ce350..467cf146b1ca 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/connectivity_test.proto @@ -259,6 +259,12 @@ message Endpoint { // projects/{project}/locations/{location}/privateConnections/{privateConnection}. string dms_private_connection = 22; + // A [Datastream Private + // Connection](https://docs.cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.privateConnections) + // name format: + // projects/{project}/locations/{location}/privateConnections/{privateConnection}. + string datastream_private_connection = 23; + // A [Cloud Function](https://cloud.google.com/functions). Applicable only to // source endpoint. CloudFunctionEndpoint cloud_function = 10; diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto index efdcad7893cf..af6a189fde89 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto @@ -139,6 +139,9 @@ message Step { // Initial state: packet originating from a DMS Private Connection. START_FROM_DMS_PRIVATE_CONNECTION = 48; + // Initial state: packet originating from a Datastream Private Connection. + START_FROM_DATASTREAM_PRIVATE_CONNECTION = 49; + // Config checking state: verify ingress firewall rule. APPLY_INGRESS_FIREWALL_RULE = 4; @@ -384,6 +387,9 @@ message Step { // Display information of a DMS Private Connection. PrivateConnectionInfo dms_private_connection = 43; + + // Display information of a Datastream Private Connection. + PrivateConnectionInfo datastream_private_connection = 44; } } @@ -1174,6 +1180,9 @@ message DeliverInfo { // Target is a DMS Private Connection. Used only for return traces. DMS_PRIVATE_CONNECTION = 21; + + // Target is a Datastream Private Connection. Used only for return traces. + DATASTREAM_PRIVATE_CONNECTION = 22; } // Recognized type of a Google Service. @@ -1624,6 +1633,9 @@ message DropInfo { // Packet was dropped inside DMS Private Connection. DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; + // Packet was dropped inside Datastream Private Connection. + DROPPED_INSIDE_DATASTREAM_PRIVATE_CONNECTION = 115; + // Packet was dropped because there is no peering between the originating // network and the Google Managed Services Network. GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java index 1b32d94e9b1a..4f1f1c374f3a 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java @@ -372,8 +372,8 @@ * *

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

*
    - *
  • enableManagedRotation(SecretName parent, EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) - *

  • enableManagedRotation(String parent, EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) + *

  • enableManagedRotation(SecretName parent, CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials) + *

  • enableManagedRotation(String parent, CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials) *

*

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

*
    @@ -2539,8 +2539,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (SecretManagerServiceClient secretManagerServiceClient = * SecretManagerServiceClient.create()) { * SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]"); - * EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - * EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + * CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + * CloudSqlSingleUserCredentials.newBuilder().build(); * SecretVersion response = * secretManagerServiceClient.enableManagedRotation(parent, cloudSqlSingleUserCredentials); * } @@ -2554,8 +2554,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecretVersion enableManagedRotation( - @Nullable SecretName parent, - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) { + @Nullable SecretName parent, CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials) { EnableManagedRotationRequest request = EnableManagedRotationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2581,8 +2580,8 @@ public final SecretVersion enableManagedRotation( * try (SecretManagerServiceClient secretManagerServiceClient = * SecretManagerServiceClient.create()) { * String parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString(); - * EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - * EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + * CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + * CloudSqlSingleUserCredentials.newBuilder().build(); * SecretVersion response = * secretManagerServiceClient.enableManagedRotation(parent, cloudSqlSingleUserCredentials); * } @@ -2596,8 +2595,7 @@ public final SecretVersion enableManagedRotation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecretVersion enableManagedRotation( - String parent, - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials) { + String parent, CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials) { EnableManagedRotationRequest request = EnableManagedRotationRequest.newBuilder() .setParent(parent) diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java index 052d225e8077..26773c090c5e 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java @@ -559,7 +559,6 @@ public static class Builder ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.RESOURCE_EXHAUSTED))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -587,8 +586,6 @@ public static class Builder .setTotalTimeoutDuration(Duration.ofMillis(60000L)) .build(); definitions.put("retry_policy_1_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -783,13 +780,13 @@ private static Builder initDefaults(Builder builder) { builder .enableManagedRotationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .rotateSecretSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); return builder; } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json index 51540abdcc90..a3f5fb8be0be 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json @@ -531,7 +531,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.CreateSecretRequest", + "name": "com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -540,7 +540,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.CreateSecretRequest$Builder", + "name": "com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -549,7 +549,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryption", + "name": "com.google.cloud.secretmanager.v1.CreateSecretRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -558,7 +558,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryption$Builder", + "name": "com.google.cloud.secretmanager.v1.CreateSecretRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -567,7 +567,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus", + "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -576,7 +576,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus$Builder", + "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryption$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +585,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.DeleteSecretRequest", + "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +594,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.DeleteSecretRequest$Builder", + "name": "com.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +603,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.DestroySecretVersionRequest", + "name": "com.google.cloud.secretmanager.v1.DeleteSecretRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +612,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.DestroySecretVersionRequest$Builder", + "name": "com.google.cloud.secretmanager.v1.DeleteSecretRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +621,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.DisableSecretVersionRequest", + "name": "com.google.cloud.secretmanager.v1.DestroySecretVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +630,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.DisableSecretVersionRequest$Builder", + "name": "com.google.cloud.secretmanager.v1.DestroySecretVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +639,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.EnableManagedRotationRequest", + "name": "com.google.cloud.secretmanager.v1.DisableSecretVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +648,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.EnableManagedRotationRequest$Builder", + "name": "com.google.cloud.secretmanager.v1.DisableSecretVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.EnableManagedRotationRequest$CloudSQLSingleUserCredentials", + "name": "com.google.cloud.secretmanager.v1.EnableManagedRotationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.secretmanager.v1.EnableManagedRotationRequest$CloudSQLSingleUserCredentials$Builder", + "name": "com.google.cloud.secretmanager.v1.EnableManagedRotationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientHttpJsonTest.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientHttpJsonTest.java index e880ebf82200..e2364f5307c3 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientHttpJsonTest.java +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientHttpJsonTest.java @@ -1643,8 +1643,8 @@ public void enableManagedRotationTest() throws Exception { mockService.addResponse(expectedResponse); SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]"); - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); SecretVersion actualResponse = client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); @@ -1674,8 +1674,8 @@ public void enableManagedRotationExceptionTest() throws Exception { try { SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]"); - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1702,8 +1702,8 @@ public void enableManagedRotationTest2() throws Exception { mockService.addResponse(expectedResponse); String parent = "projects/project-3502/secrets/secret-3502"; - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); SecretVersion actualResponse = client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); @@ -1733,8 +1733,8 @@ public void enableManagedRotationExceptionTest2() throws Exception { try { String parent = "projects/project-3502/secrets/secret-3502"; - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java index 92c41bd6f416..2f1fff8fd5cd 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClientTest.java @@ -1465,8 +1465,8 @@ public void enableManagedRotationTest() throws Exception { mockSecretManagerService.addResponse(expectedResponse); SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]"); - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); SecretVersion actualResponse = client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); @@ -1493,8 +1493,8 @@ public void enableManagedRotationExceptionTest() throws Exception { try { SecretName parent = SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]"); - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1521,8 +1521,8 @@ public void enableManagedRotationTest2() throws Exception { mockSecretManagerService.addResponse(expectedResponse); String parent = "parent-995424086"; - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); SecretVersion actualResponse = client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); @@ -1549,8 +1549,8 @@ public void enableManagedRotationExceptionTest2() throws Exception { try { String parent = "parent-995424086"; - EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloudSqlSingleUserCredentials = - EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder().build(); + CloudSqlSingleUserCredentials cloudSqlSingleUserCredentials = + CloudSqlSingleUserCredentials.newBuilder().build(); client.enableManagedRotation(parent, cloudSqlSingleUserCredentials); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentials.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentials.java new file mode 100644 index 000000000000..510e4ceefba4 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentials.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
    + * These are the credentials required for Cloud SQL DB for Single user
    + * Managed Rotation.
    + * 
    + * + * Protobuf type {@code google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials} + */ +@com.google.protobuf.Generated +public final class CloudSqlSingleUserCredentials extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) + CloudSqlSingleUserCredentialsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CloudSqlSingleUserCredentials"); + } + + // Use CloudSqlSingleUserCredentials.newBuilder() to construct. + private CloudSqlSingleUserCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudSqlSingleUserCredentials() { + instanceId_ = ""; + username_ = ""; + password_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.class, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder.class); + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + + /** + * + * + *
    +   * Required. Instance ID of the Cloud SQL instance.
    +   * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Instance ID of the Cloud SQL instance.
    +   * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USERNAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + + /** + * + * + *
    +   * Required. Username of the Cloud SQL instance.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Username of the Cloud SQL instance.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + + /** + * + * + *
    +   * Optional. Password of the Cloud SQL instance. If this is not provided,
    +   * a random password will be generated.
    +   * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Password of the Cloud SQL instance. If this is not provided,
    +   * a random password will be generated.
    +   * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, password_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, password_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials other = + (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) obj; + + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) 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) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * These are the credentials required for Cloud SQL DB for Single user
    +   * Managed Rotation.
    +   * 
    + * + * Protobuf type {@code google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.class, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceId_ = ""; + username_ = ""; + password_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.ResourcesProto + .internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials + getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials build() { + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials buildPartial() { + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials result = + new com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.password_ = password_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) { + return mergeFrom((com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials other) { + if (other + == com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance()) + return this; + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + 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: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + password_ = 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 instanceId_ = ""; + + /** + * + * + *
    +     * Required. Instance ID of the Cloud SQL instance.
    +     * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Instance ID of the Cloud SQL instance.
    +     * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Instance ID of the Cloud SQL instance.
    +     * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Instance ID of the Cloud SQL instance.
    +     * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Instance ID of the Cloud SQL instance.
    +     * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + + /** + * + * + *
    +     * Required. Username of the Cloud SQL instance.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Username of the Cloud SQL instance.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Username of the Cloud SQL instance.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Username of the Cloud SQL instance.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Username of the Cloud SQL instance.
    +     * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + + /** + * + * + *
    +     * Optional. Password of the Cloud SQL instance. If this is not provided,
    +     * a random password will be generated.
    +     * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Password of the Cloud SQL instance. If this is not provided,
    +     * a random password will be generated.
    +     * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Password of the Cloud SQL instance. If this is not provided,
    +     * a random password will be generated.
    +     * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Password of the Cloud SQL instance. If this is not provided,
    +     * a random password will be generated.
    +     * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Password of the Cloud SQL instance. If this is not provided,
    +     * a random password will be generated.
    +     * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) + private static final com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials(); + } + + public static com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlSingleUserCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentialsOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentialsOrBuilder.java new file mode 100644 index 000000000000..5c06058d63ae --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CloudSqlSingleUserCredentialsOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface CloudSqlSingleUserCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Instance ID of the Cloud SQL instance.
    +   * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + java.lang.String getInstanceId(); + + /** + * + * + *
    +   * Required. Instance ID of the Cloud SQL instance.
    +   * 
    + * + * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString getInstanceIdBytes(); + + /** + * + * + *
    +   * Required. Username of the Cloud SQL instance.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + + /** + * + * + *
    +   * Required. Username of the Cloud SQL instance.
    +   * 
    + * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
    +   * Optional. Password of the Cloud SQL instance. If this is not provided,
    +   * a random password will be generated.
    +   * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The password. + */ + java.lang.String getPassword(); + + /** + * + * + *
    +   * Optional. Password of the Cloud SQL instance. If this is not provided,
    +   * a random password will be generated.
    +   * 
    + * + * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequest.java index b87a1bbb7a16..df03acf20143 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequest.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequest.java @@ -71,1134 +71,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.Builder.class); } - public interface CloudSQLSingleUserCredentialsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Required. Instance ID of the Cloud SQL instance.
    -     * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The instanceId. - */ - java.lang.String getInstanceId(); - - /** - * - * - *
    -     * Required. Instance ID of the Cloud SQL instance.
    -     * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for instanceId. - */ - com.google.protobuf.ByteString getInstanceIdBytes(); - - /** - * - * - *
    -     * Required. Username of the Cloud SQL instance.
    -     * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The username. - */ - java.lang.String getUsername(); - - /** - * - * - *
    -     * Required. Username of the Cloud SQL instance.
    -     * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for username. - */ - com.google.protobuf.ByteString getUsernameBytes(); - - /** - * - * - *
    -     * Optional. Password of the Cloud SQL instance. If this is not provided,
    -     * a random password will be generated.
    -     * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The password. - */ - java.lang.String getPassword(); - - /** - * - * - *
    -     * Optional. Password of the Cloud SQL instance. If this is not provided,
    -     * a random password will be generated.
    -     * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for password. - */ - com.google.protobuf.ByteString getPasswordBytes(); - } - - /** - * - * - *
    -   * These are the credentials required for Cloud SQL DB for Single user
    -   * Managed Rotation.
    -   * 
    - * - * Protobuf type {@code - * google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials} - */ - public static final class CloudSQLSingleUserCredentials - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) - CloudSQLSingleUserCredentialsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CloudSQLSingleUserCredentials"); - } - - // Use CloudSQLSingleUserCredentials.newBuilder() to construct. - private CloudSQLSingleUserCredentials(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CloudSQLSingleUserCredentials() { - instanceId_ = ""; - username_ = ""; - password_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.class, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.Builder.class); - } - - public static final int INSTANCE_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object instanceId_ = ""; - - /** - * - * - *
    -     * Required. Instance ID of the Cloud SQL instance.
    -     * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The instanceId. - */ - @java.lang.Override - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } - } - - /** - * - * - *
    -     * Required. Instance ID of the Cloud SQL instance.
    -     * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for instanceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERNAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object username_ = ""; - - /** - * - * - *
    -     * Required. Username of the Cloud SQL instance.
    -     * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The username. - */ - @java.lang.Override - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } - } - - /** - * - * - *
    -     * Required. Username of the Cloud SQL instance.
    -     * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for username. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object password_ = ""; - - /** - * - * - *
    -     * Optional. Password of the Cloud SQL instance. If this is not provided,
    -     * a random password will be generated.
    -     * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The password. - */ - @java.lang.Override - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - - /** - * - * - *
    -     * Optional. Password of the Cloud SQL instance. If this is not provided,
    -     * a random password will be generated.
    -     * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for password. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, username_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, password_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, username_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, password_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials)) { - return super.equals(obj); - } - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - other = - (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - obj; - - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) 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) + INSTANCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getInstanceId().hashCode(); - hash = (37 * hash) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUsername().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
    -     * These are the credentials required for Cloud SQL DB for Single user
    -     * Managed Rotation.
    -     * 
    - * - * Protobuf type {@code - * google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.class, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.Builder.class); - } - - // Construct using - // com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - instanceId_ = ""; - username_ = ""; - password_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.secretmanager.v1.ServiceProto - .internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_descriptor; - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - getDefaultInstanceForType() { - return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - build() { - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - buildPartial() { - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - result = - new com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceId_ = instanceId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.username_ = username_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.password_ = password_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) { - return mergeFrom( - (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - other) { - if (other - == com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance()) return this; - if (!other.getInstanceId().isEmpty()) { - instanceId_ = other.instanceId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - 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: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - password_ = 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 instanceId_ = ""; - - /** - * - * - *
    -       * Required. Instance ID of the Cloud SQL instance.
    -       * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The instanceId. - */ - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
    -       * Required. Instance ID of the Cloud SQL instance.
    -       * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for instanceId. - */ - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
    -       * Required. Instance ID of the Cloud SQL instance.
    -       * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - instanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. Instance ID of the Cloud SQL instance.
    -       * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearInstanceId() { - instanceId_ = getDefaultInstance().getInstanceId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. Instance ID of the Cloud SQL instance.
    -       * 
    - * - * string instance_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - instanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object username_ = ""; - - /** - * - * - *
    -       * Required. Username of the Cloud SQL instance.
    -       * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The username. - */ - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
    -       * Required. Username of the Cloud SQL instance.
    -       * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for username. - */ - public com.google.protobuf.ByteString getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
    -       * Required. Username of the Cloud SQL instance.
    -       * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The username to set. - * @return This builder for chaining. - */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - username_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. Username of the Cloud SQL instance.
    -       * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Required. Username of the Cloud SQL instance.
    -       * 
    - * - * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for username to set. - * @return This builder for chaining. - */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - username_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - - /** - * - * - *
    -       * Optional. Password of the Cloud SQL instance. If this is not provided,
    -       * a random password will be generated.
    -       * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The password. - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
    -       * Optional. Password of the Cloud SQL instance. If this is not provided,
    -       * a random password will be generated.
    -       * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for password. - */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
    -       * Optional. Password of the Cloud SQL instance. If this is not provided,
    -       * a random password will be generated.
    -       * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The password to set. - * @return This builder for chaining. - */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - password_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Password of the Cloud SQL instance. If this is not provided,
    -       * a random password will be generated.
    -       * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPassword() { - password_ = getDefaultInstance().getPassword(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Password of the Cloud SQL instance. If this is not provided,
    -       * a random password will be generated.
    -       * 
    - * - * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for password to set. - * @return This builder for chaining. - */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - password_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) - } - - // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials) - private static final com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials(); - } - - public static com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSQLSingleUserCredentials parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int credentialsCase_ = 0; + private int credentialCase_ = 0; @SuppressWarnings("serial") - private java.lang.Object credentials_; + private java.lang.Object credential_; - public enum CredentialsCase + public enum CredentialCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_SQL_SINGLE_USER_CREDENTIALS(2), - CREDENTIALS_NOT_SET(0); + CREDENTIAL_NOT_SET(0); private final int value; - private CredentialsCase(int value) { + private CredentialCase(int value) { this.value = value; } @@ -1208,16 +94,16 @@ private CredentialsCase(int value) { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static CredentialsCase valueOf(int value) { + public static CredentialCase valueOf(int value) { return forNumber(value); } - public static CredentialsCase forNumber(int value) { + public static CredentialCase forNumber(int value) { switch (value) { case 2: return CLOUD_SQL_SINGLE_USER_CREDENTIALS; case 0: - return CREDENTIALS_NOT_SET; + return CREDENTIAL_NOT_SET; default: return null; } @@ -1228,8 +114,8 @@ public int getNumber() { } }; - public CredentialsCase getCredentialsCase() { - return CredentialsCase.forNumber(credentialsCase_); + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public static final int PARENT_FIELD_NUMBER = 1; @@ -1305,14 +191,14 @@ public com.google.protobuf.ByteString getParentBytes() { *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * * * @return Whether the cloudSqlSingleUserCredentials field is set. */ @java.lang.Override public boolean hasCloudSqlSingleUserCredentials() { - return credentialsCase_ == 2; + return credentialCase_ == 2; } /** @@ -1323,22 +209,18 @@ public boolean hasCloudSqlSingleUserCredentials() { *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * * * @return The cloudSqlSingleUserCredentials. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials getCloudSqlSingleUserCredentials() { - if (credentialsCase_ == 2) { - return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_; + if (credentialCase_ == 2) { + return (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_; } - return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); } /** @@ -1349,20 +231,16 @@ public boolean hasCloudSqlSingleUserCredentials() { *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder getCloudSqlSingleUserCredentialsOrBuilder() { - if (credentialsCase_ == 2) { - return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_; + if (credentialCase_ == 2) { + return (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_; } - return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1382,12 +260,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); } - if (credentialsCase_ == 2) { + if (credentialCase_ == 2) { output.writeMessage( - 2, - (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_); + 2, (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_); } getUnknownFields().writeTo(output); } @@ -1401,13 +276,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); } - if (credentialsCase_ == 2) { + if (credentialCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_); + 2, (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1426,8 +298,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (!getCredentialsCase().equals(other.getCredentialsCase())) return false; - switch (credentialsCase_) { + if (!getCredentialCase().equals(other.getCredentialCase())) return false; + switch (credentialCase_) { case 2: if (!getCloudSqlSingleUserCredentials().equals(other.getCloudSqlSingleUserCredentials())) return false; @@ -1448,7 +320,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - switch (credentialsCase_) { + switch (credentialCase_) { case 2: hash = (37 * hash) + CLOUD_SQL_SINGLE_USER_CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getCloudSqlSingleUserCredentials().hashCode(); @@ -1602,8 +474,8 @@ public Builder clear() { if (cloudSqlSingleUserCredentialsBuilder_ != null) { cloudSqlSingleUserCredentialsBuilder_.clear(); } - credentialsCase_ = 0; - credentials_ = null; + credentialCase_ = 0; + credential_ = null; return this; } @@ -1650,10 +522,10 @@ private void buildPartial0( private void buildPartialOneofs( com.google.cloud.secretmanager.v1.EnableManagedRotationRequest result) { - result.credentialsCase_ = credentialsCase_; - result.credentials_ = this.credentials_; - if (credentialsCase_ == 2 && cloudSqlSingleUserCredentialsBuilder_ != null) { - result.credentials_ = cloudSqlSingleUserCredentialsBuilder_.build(); + result.credentialCase_ = credentialCase_; + result.credential_ = this.credential_; + if (credentialCase_ == 2 && cloudSqlSingleUserCredentialsBuilder_ != null) { + result.credential_ = cloudSqlSingleUserCredentialsBuilder_.build(); } } @@ -1676,13 +548,13 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.EnableManagedRotation bitField0_ |= 0x00000001; onChanged(); } - switch (other.getCredentialsCase()) { + switch (other.getCredentialCase()) { case CLOUD_SQL_SINGLE_USER_CREDENTIALS: { mergeCloudSqlSingleUserCredentials(other.getCloudSqlSingleUserCredentials()); break; } - case CREDENTIALS_NOT_SET: + case CREDENTIAL_NOT_SET: { break; } @@ -1724,7 +596,7 @@ public Builder mergeFrom( input.readMessage( internalGetCloudSqlSingleUserCredentialsFieldBuilder().getBuilder(), extensionRegistry); - credentialsCase_ = 2; + credentialCase_ = 2; break; } // case 18 default: @@ -1744,16 +616,16 @@ public Builder mergeFrom( return this; } - private int credentialsCase_ = 0; - private java.lang.Object credentials_; + private int credentialCase_ = 0; + private java.lang.Object credential_; - public CredentialsCase getCredentialsCase() { - return CredentialsCase.forNumber(credentialsCase_); + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } - public Builder clearCredentials() { - credentialsCase_ = 0; - credentials_ = null; + public Builder clearCredential() { + credentialCase_ = 0; + credential_ = null; onChanged(); return this; } @@ -1897,12 +769,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.Builder, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder> + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder> cloudSqlSingleUserCredentialsBuilder_; /** @@ -1913,14 +782,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * * * @return Whether the cloudSqlSingleUserCredentials field is set. */ @java.lang.Override public boolean hasCloudSqlSingleUserCredentials() { - return credentialsCase_ == 2; + return credentialCase_ == 2; } /** @@ -1931,29 +800,24 @@ public boolean hasCloudSqlSingleUserCredentials() { *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * * * @return The cloudSqlSingleUserCredentials. */ @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials getCloudSqlSingleUserCredentials() { if (cloudSqlSingleUserCredentialsBuilder_ == null) { - if (credentialsCase_ == 2) { - return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_; + if (credentialCase_ == 2) { + return (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_; } - return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); } else { - if (credentialsCase_ == 2) { + if (credentialCase_ == 2) { return cloudSqlSingleUserCredentialsBuilder_.getMessage(); } - return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); } } @@ -1965,22 +829,21 @@ public boolean hasCloudSqlSingleUserCredentials() { *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ public Builder setCloudSqlSingleUserCredentials( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - value) { + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials value) { if (cloudSqlSingleUserCredentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - credentials_ = value; + credential_ = value; onChanged(); } else { cloudSqlSingleUserCredentialsBuilder_.setMessage(value); } - credentialsCase_ = 2; + credentialCase_ = 2; return this; } @@ -1992,20 +855,18 @@ public Builder setCloudSqlSingleUserCredentials( *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ public Builder setCloudSqlSingleUserCredentials( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - .Builder - builderForValue) { + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder builderForValue) { if (cloudSqlSingleUserCredentialsBuilder_ == null) { - credentials_ = builderForValue.build(); + credential_ = builderForValue.build(); onChanged(); } else { cloudSqlSingleUserCredentialsBuilder_.setMessage(builderForValue.build()); } - credentialsCase_ = 2; + credentialCase_ = 2; return this; } @@ -2017,37 +878,33 @@ public Builder setCloudSqlSingleUserCredentials( *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ public Builder mergeCloudSqlSingleUserCredentials( - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials - value) { + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials value) { if (cloudSqlSingleUserCredentialsBuilder_ == null) { - if (credentialsCase_ == 2 - && credentials_ - != com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance()) { - credentials_ = - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.newBuilder( - (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_) + if (credentialCase_ == 2 + && credential_ + != com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials + .getDefaultInstance()) { + credential_ = + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.newBuilder( + (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_) .mergeFrom(value) .buildPartial(); } else { - credentials_ = value; + credential_ = value; } onChanged(); } else { - if (credentialsCase_ == 2) { + if (credentialCase_ == 2) { cloudSqlSingleUserCredentialsBuilder_.mergeFrom(value); } else { cloudSqlSingleUserCredentialsBuilder_.setMessage(value); } } - credentialsCase_ = 2; + credentialCase_ = 2; return this; } @@ -2059,20 +916,20 @@ public Builder mergeCloudSqlSingleUserCredentials( *
* * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ public Builder clearCloudSqlSingleUserCredentials() { if (cloudSqlSingleUserCredentialsBuilder_ == null) { - if (credentialsCase_ == 2) { - credentialsCase_ = 0; - credentials_ = null; + if (credentialCase_ == 2) { + credentialCase_ = 0; + credential_ = null; onChanged(); } } else { - if (credentialsCase_ == 2) { - credentialsCase_ = 0; - credentials_ = null; + if (credentialCase_ == 2) { + credentialCase_ = 0; + credential_ = null; } cloudSqlSingleUserCredentialsBuilder_.clear(); } @@ -2087,11 +944,10 @@ public Builder clearCloudSqlSingleUserCredentials() { * * * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.Builder + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder getCloudSqlSingleUserCredentialsBuilder() { return internalGetCloudSqlSingleUserCredentialsFieldBuilder().getBuilder(); } @@ -2104,23 +960,19 @@ public Builder clearCloudSqlSingleUserCredentials() { * * * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ @java.lang.Override - public com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder + public com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder getCloudSqlSingleUserCredentialsOrBuilder() { - if ((credentialsCase_ == 2) && (cloudSqlSingleUserCredentialsBuilder_ != null)) { + if ((credentialCase_ == 2) && (cloudSqlSingleUserCredentialsBuilder_ != null)) { return cloudSqlSingleUserCredentialsBuilder_.getMessageOrBuilder(); } else { - if (credentialsCase_ == 2) { - return (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_; + if (credentialCase_ == 2) { + return (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_; } - return com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); + return com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); } } @@ -2132,39 +984,30 @@ public Builder clearCloudSqlSingleUserCredentials() { * * * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.Builder, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder> + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder> internalGetCloudSqlSingleUserCredentialsFieldBuilder() { if (cloudSqlSingleUserCredentialsBuilder_ == null) { - if (!(credentialsCase_ == 2)) { - credentials_ = - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.getDefaultInstance(); + if (!(credentialCase_ == 2)) { + credential_ = + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.getDefaultInstance(); } cloudSqlSingleUserCredentialsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials.Builder, - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder>( - (com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentials) - credentials_, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials.Builder, + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder>( + (com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials) credential_, getParentForChildren(), isClean()); - credentials_ = null; + credential_ = null; } - credentialsCase_ = 2; + credentialCase_ = 2; onChanged(); return cloudSqlSingleUserCredentialsBuilder_; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequestOrBuilder.java index 7cf65135fea8..85ba10cc95a8 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequestOrBuilder.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/EnableManagedRotationRequestOrBuilder.java @@ -70,7 +70,7 @@ public interface EnableManagedRotationRequestOrBuilder * * * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * * * @return Whether the cloudSqlSingleUserCredentials field is set. @@ -85,12 +85,12 @@ public interface EnableManagedRotationRequestOrBuilder * * * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * * * @return The cloudSqlSingleUserCredentials. */ - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials getCloudSqlSingleUserCredentials(); /** @@ -101,13 +101,11 @@ public interface EnableManagedRotationRequestOrBuilder * * * - * .google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials cloud_sql_single_user_credentials = 2; + * .google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials cloud_sql_single_user_credentials = 2; * */ - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest - .CloudSQLSingleUserCredentialsOrBuilder + com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsOrBuilder getCloudSqlSingleUserCredentialsOrBuilder(); - com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CredentialsCase - getCredentialsCase(); + com.google.cloud.secretmanager.v1.EnableManagedRotationRequest.CredentialCase getCredentialCase(); } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java index 268c7d27535b..7cd0123239db 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java @@ -120,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_secretmanager_v1_SecretPayload_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_secretmanager_v1_SecretPayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -274,11 +278,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SecretPayload\022\014\n" + "\004data\030\001 \001(\014\022\036\n" + "\013data_crc32c\030\002 \001(\003B\004\342A\001\001H\000\210\001\001B\016\n" - + "\014_data_crc32cB\347\001\n" - + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcloud.goog" - + "le.com/go/secretmanager/apiv1/secretmana" - + "gerpb;secretmanagerpb\242\002\003GSM\252\002\035Google.Clo" - + "ud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + + "\014_data_crc32c\"j\n" + + "\035CloudSqlSingleUserCredentials\022\031\n" + + "\013instance_id\030\001 \001(\tB\004\342A\001\002\022\026\n" + + "\010username\030\002 \001(\tB\004\342A\001\002\022\026\n" + + "\010password\030\003 \001(\tB\004\342A\001\001B\347\001\n" + + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcloud.google.com/go/se" + + "cretmanager/apiv1/secretmanagerpb;secret" + + "managerpb\242\002\003GSM\252\002\035Google.Cloud.SecretMan" + + "ager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + " Google::Cloud::SecretManager::V1b\006proto3" }; descriptor = @@ -478,6 +486,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Data", "DataCrc32C", }); + internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CloudSqlSingleUserCredentials_descriptor, + new java.lang.String[] { + "InstanceId", "Username", "Password", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java index f5cae688c619..263fdfc0be72 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java @@ -60,10 +60,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_secretmanager_v1_EnableManagedRotationRequest_CloudSQLSingleUserCredentials_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_secretmanager_v1_RotateSecretRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -151,18 +147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB,\342A\001\002\372A%\n" + "#secretmanager.googleapis.com/Secret\022C\n" + "\007payload\030\002 \001" - + "(\0132,.google.cloud.secretmanager.v1.SecretPayloadB\004\342A\001\002\"\340\002\n" + + "(\0132,.google.cloud.secretmanager.v1.SecretPayloadB\004\342A\001\002\"\325\001\n" + "\034EnableManagedRotationRequest\022<\n" + "\006parent\030\001 \001(\tB,\342A\001\002\372A%\n" - + "#secretmanager.googleapis.com/Secret\022\206\001\n" - + "!cloud_sql_single_user_credentials\030\002 \001(\0132Y.goog" - + "le.cloud.secretmanager.v1.EnableManagedR" - + "otationRequest.CloudSQLSingleUserCredentialsH\000\032j\n" - + "\035CloudSQLSingleUserCredentials\022\031\n" - + "\013instance_id\030\001 \001(\tB\004\342A\001\002\022\026\n" - + "\010username\030\002 \001(\tB\004\342A\001\002\022\026\n" - + "\010password\030\003 \001(\tB\004\342A\001\001B\r\n" - + "\013credentials\"S\n" + + "#secretmanager.googleapis.com/Secret\022i\n" + + "!cloud_sql_single_user_credentials\030\002 \001(\0132<.googl" + + "e.cloud.secretmanager.v1.CloudSqlSingleUserCredentialsH\000B\014\n\n" + + "credential\"S\n" + "\023RotateSecretRequest\022<\n" + "\006parent\030\001 \001(\tB,\342A\001\002\372A%\n" + "#secretmanager.googleapis.com/Secret\"N\n" @@ -183,8 +174,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\"\211\001\n" + "\023UpdateSecretRequest\022;\n" - + "\006secret\030\001" - + " \001(\0132%.google.cloud.secretmanager.v1.SecretB\004\342A\001\002\0225\n" + + "\006secret\030\001 \001(\0132%.goo" + + "gle.cloud.secretmanager.v1.SecretB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"_\n" + "\032AccessSecretVersionRequest\022A\n" @@ -211,94 +202,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*secretmanager.googleapis.com/SecretVersion\022\022\n" + "\004etag\030\002 \001(\tB\004\342A\001\0012\241!\n" + "\024SecretManagerService\022\325\001\n" - + "\013ListSecrets\0221.google.cloud.secretmanager.v1.ListSecretsRequest\0322.g" - + "oogle.cloud.secretmanager.v1.ListSecrets" - + "Response\"_\332A\006parent\202\323\344\223\002P\022\037/v1/{parent=p" - + "rojects/*}/secretsZ-\022+/v1/{parent=projects/*/locations/*}/secrets\022\354\001\n" - + "\014CreateSecret\0222.google.cloud.secretmanager.v1.Creat" - + "eSecretRequest\032%.google.cloud.secretmana" - + "ger.v1.Secret\"\200\001\332A\027parent,secret_id,secr" - + "et\202\323\344\223\002`\"\037/v1/{parent=projects/*}/secret" - + "s:\006secretZ5\"+/v1/{parent=projects/*/locations/*}/secrets:\006secret\022\202\002\n" - + "\020AddSecretVersion\0226.google.cloud.secretmanager.v1.Ad" - + "dSecretVersionRequest\032,.google.cloud.sec" - + "retmanager.v1.SecretVersion\"\207\001\332A\016parent," - + "payload\202\323\344\223\002p\",/v1/{parent=projects/*/se" - + "crets/*}:addVersion:\001*Z=\"8/v1/{parent=pr" - + "ojects/*/locations/*/secrets/*}:addVersion:\001*\022\302\001\n" - + "\tGetSecret\022/.google.cloud.secretmanager.v1.GetSecretRequest\032%.google.cl" - + "oud.secretmanager.v1.Secret\"]\332A\004name\202\323\344\223" - + "\002P\022\037/v1/{name=projects/*/secrets/*}Z-\022+/" - + "v1/{name=projects/*/locations/*/secrets/*}\022\365\001\n" - + "\014UpdateSecret\0222.google.cloud.secretmanager.v1.UpdateSecretRequest\032%.google" - + ".cloud.secretmanager.v1.Secret\"\211\001\332A\022secr" - + "et,update_mask\202\323\344\223\002n2&/v1/{secret.name=p" - + "rojects/*/secrets/*}:\006secretZ<22/v1/{sec" - + "ret.name=projects/*/locations/*/secrets/*}:\006secret\022\271\001\n" - + "\014DeleteSecret\0222.google.cloud.secretmanager.v1.DeleteSecretRequest\032" - + "\026.google.protobuf.Empty\"]\332A\004name\202\323\344\223\002P*\037" - + "/v1/{name=projects/*/secrets/*}Z-*+/v1/{" - + "name=projects/*/locations/*/secrets/*}\022\200\002\n" - + "\022ListSecretVersions\0228.google.cloud.sec" - + "retmanager.v1.ListSecretVersionsRequest\0329.google.cloud.secretmanager.v1.ListSecr" - + "etVersionsResponse\"u\332A\006parent\202\323\344\223\002f\022*/v1" - + "/{parent=projects/*/secrets/*}/versionsZ" - + "8\0226/v1/{parent=projects/*/locations/*/secrets/*}/versions\022\355\001\n" - + "\020GetSecretVersion\0226.google.cloud.secretmanager.v1.GetSecret" - + "VersionRequest\032,.google.cloud.secretmana" - + "ger.v1.SecretVersion\"s\332A\004name\202\323\344\223\002f\022*/v1" - + "/{name=projects/*/secrets/*/versions/*}Z" - + "8\0226/v1/{name=projects/*/locations/*/secrets/*/versions/*}\022\220\002\n" - + "\023AccessSecretVersion\0229.google.cloud.secretmanager.v1.Access" - + "SecretVersionRequest\032:.google.cloud.secretmanager.v1.AccessSecretVersionResponse" - + "\"\201\001\332A\004name\202\323\344\223\002t\0221/v1/{name=projects/*/s" - + "ecrets/*/versions/*}:accessZ?\022=/v1/{name" - + "=projects/*/locations/*/secrets/*/versions/*}:access\022\214\002\n" - + "\024DisableSecretVersion\022:.google.cloud.secretmanager.v1.DisableSec" - + "retVersionRequest\032,.google.cloud.secretm" - + "anager.v1.SecretVersion\"\211\001\332A\004name\202\323\344\223\002|\"" - + "2/v1/{name=projects/*/secrets/*/versions/*}:disable:\001*ZC\">/v1/{name=projects/*/l" - + "ocations/*/secrets/*/versions/*}:disable:\001*\022\210\002\n" - + "\023EnableSecretVersion\0229.google.cloud.secretmanager.v1.EnableSecretVersionR" - + "equest\032,.google.cloud.secretmanager.v1.S" - + "ecretVersion\"\207\001\332A\004name\202\323\344\223\002z\"1/v1/{name=" - + "projects/*/secrets/*/versions/*}:enable:" - + "\001*ZB\"=/v1/{name=projects/*/locations/*/secrets/*/versions/*}:enable:\001*\022\214\002\n" - + "\024DestroySecretVersion\022:.google.cloud.secretman" - + "ager.v1.DestroySecretVersionRequest\032,.google.cloud.secretmanager.v1.SecretVersio" - + "n\"\211\001\332A\004name\202\323\344\223\002|\"2/v1/{name=projects/*/" - + "secrets/*/versions/*}:destroy:\001*ZC\">/v1/" - + "{name=projects/*/locations/*/secrets/*/versions/*}:destroy:\001*\022\311\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.goo" - + "gle.iam.v1.Policy\"~\202\323\344\223\002x\"0/v1/{resource" - + "=projects/*/secrets/*}:setIamPolicy:\001*ZA" - + "\"\022/" + + "v1/{name=projects/*/locations/*/secrets/*/versions/*}:disable:\001*\022\210\002\n" + + "\023EnableSecretVersion\0229.google.cloud.secretmanager.v1" + + ".EnableSecretVersionRequest\032,.google.clo" + + "ud.secretmanager.v1.SecretVersion\"\207\001\332A\004n" + + "ame\202\323\344\223\002z\"1/v1/{name=projects/*/secrets/" + + "*/versions/*}:enable:\001*ZB\"=/v1/{name=pro" + + "jects/*/locations/*/secrets/*/versions/*}:enable:\001*\022\214\002\n" + + "\024DestroySecretVersion\022:.google.cloud.secretmanager.v1.DestroySecr" + + "etVersionRequest\032,.google.cloud.secretma" + + "nager.v1.SecretVersion\"\211\001\332A\004name\202\323\344\223\002|\"2" + + "/v1/{name=projects/*/secrets/*/versions/*}:destroy:\001*ZC\">/v1/{name=projects/*/lo" + + "cations/*/secrets/*/versions/*}:destroy:\001*\022\311\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetI" + + "amPolicyRequest\032\025.google.iam.v1.Policy\"~" + + "\202\323\344\223\002x\"0/v1/{resource=projects/*/secrets" + + "/*}:setIamPolicy:\001*ZA\"\022 * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -9118,7 +9118,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return The ondemandMaintenance. */ @java.lang.Override @@ -9961,7 +9961,7 @@ public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes(int i * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=929 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -17540,7 +17540,7 @@ public Builder clearSimulateMaintenanceEvent() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -17561,7 +17561,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return The ondemandMaintenance. */ @java.lang.Override @@ -17582,7 +17582,7 @@ public boolean getOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @param value The ondemandMaintenance to set. * @return This builder for chaining. */ @@ -17607,7 +17607,7 @@ public Builder setOndemandMaintenance(boolean value) { * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19776,7 +19776,7 @@ public Builder addAvailableMaintenanceVersionsBytes(com.google.protobuf.ByteStri * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=929 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -19797,7 +19797,7 @@ public boolean getAllowFewerZonesDeployment() { * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=929 * @param value The allowFewerZonesDeployment to set. * @return This builder for chaining. */ @@ -19822,7 +19822,7 @@ public Builder setAllowFewerZonesDeployment(boolean value) { * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=929 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java index e6b558040ff8..672e8fc6b347 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceOrBuilder.java @@ -1166,7 +1166,7 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Deprecated @@ -1184,7 +1184,7 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi * * * @deprecated google.cloud.memorystore.v1beta.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1beta/memorystore.proto;l=836 + * google/cloud/memorystore/v1beta/memorystore.proto;l=848 * @return The ondemandMaintenance. */ @java.lang.Deprecated @@ -1778,7 +1778,7 @@ com.google.cloud.memorystore.v1beta.Instance.InstanceEndpointOrBuilder getEndpoi * * * @deprecated google.cloud.memorystore.v1beta.Instance.allow_fewer_zones_deployment is - * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=917 + * deprecated. See google/cloud/memorystore/v1beta/memorystore.proto;l=929 * @return The allowFewerZonesDeployment. */ @java.lang.Deprecated diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/IpVersion.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/IpVersion.java new file mode 100644 index 000000000000..1dc6f2d6836e --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/IpVersion.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1beta/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1beta; + +/** + * + * + *
+ * IP version for PSC consumer endpoints.
+ * 
+ * + * Protobuf enum {@code google.cloud.memorystore.v1beta.IpVersion} + */ +@com.google.protobuf.Generated +public enum IpVersion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Not specified. Defaults to IPV4 on CreateInstance.
+   * 
+ * + * IP_VERSION_UNSPECIFIED = 0; + */ + IP_VERSION_UNSPECIFIED(0), + /** + * + * + *
+   * IPv4 address family.
+   * 
+ * + * IPV4 = 1; + */ + IPV4(1), + /** + * + * + *
+   * IPv6 address family.
+   * 
+ * + * IPV6 = 2; + */ + IPV6(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IpVersion"); + } + + /** + * + * + *
+   * Not specified. Defaults to IPV4 on CreateInstance.
+   * 
+ * + * IP_VERSION_UNSPECIFIED = 0; + */ + public static final int IP_VERSION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * IPv4 address family.
+   * 
+ * + * IPV4 = 1; + */ + public static final int IPV4_VALUE = 1; + + /** + * + * + *
+   * IPv6 address family.
+   * 
+ * + * IPV6 = 2; + */ + public static final int IPV6_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 IpVersion 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 IpVersion forNumber(int value) { + switch (value) { + case 0: + return IP_VERSION_UNSPECIFIED; + case 1: + return IPV4; + case 2: + return IPV6; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IpVersion findValueByNumber(int number) { + return IpVersion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memorystore.v1beta.V1mainProto.getDescriptor().getEnumTypes().get(2); + } + + private static final IpVersion[] VALUES = values(); + + public static IpVersion 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 IpVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.memorystore.v1beta.IpVersion) +} diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnection.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnection.java index b4c3486f4c5f..455eaf238def 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnection.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnection.java @@ -60,6 +60,7 @@ private PscAutoConnection() { serviceAttachment_ = ""; pscConnectionStatus_ = 0; connectionType_ = 0; + ipVersion_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -603,6 +604,49 @@ public com.google.cloud.memorystore.v1beta.ConnectionType getConnectionType() { : result; } + public static final int IP_VERSION_FIELD_NUMBER = 10; + private int ipVersion_ = 0; + + /** + * + * + *
+   * Optional. Immutable. The IP version used for the PSC auto-created
+   * endpoint. If not specified, defaults to IPV4.
+   * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for ipVersion. + */ + @java.lang.Override + public int getIpVersionValue() { + return ipVersion_; + } + + /** + * + * + *
+   * Optional. Immutable. The IP version used for the PSC auto-created
+   * endpoint. If not specified, defaults to IPV4.
+   * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ipVersion. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.IpVersion getIpVersion() { + com.google.cloud.memorystore.v1beta.IpVersion result = + com.google.cloud.memorystore.v1beta.IpVersion.forNumber(ipVersion_); + return result == null ? com.google.cloud.memorystore.v1beta.IpVersion.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -648,6 +692,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (portsCase_ == 9) { output.writeInt32(9, (int) ((java.lang.Integer) ports_)); } + if (ipVersion_ + != com.google.cloud.memorystore.v1beta.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(10, ipVersion_); + } getUnknownFields().writeTo(output); } @@ -690,6 +738,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeInt32Size( 9, (int) ((java.lang.Integer) ports_)); } + if (ipVersion_ + != com.google.cloud.memorystore.v1beta.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, ipVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -714,6 +766,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; if (pscConnectionStatus_ != other.pscConnectionStatus_) return false; if (connectionType_ != other.connectionType_) return false; + if (ipVersion_ != other.ipVersion_) return false; if (!getPortsCase().equals(other.getPortsCase())) return false; switch (portsCase_) { case 9: @@ -749,6 +802,8 @@ public int hashCode() { hash = (53 * hash) + pscConnectionStatus_; hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + connectionType_; + hash = (37 * hash) + IP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + ipVersion_; switch (portsCase_) { case 9: hash = (37 * hash) + PORT_FIELD_NUMBER; @@ -906,6 +961,7 @@ public Builder clear() { serviceAttachment_ = ""; pscConnectionStatus_ = 0; connectionType_ = 0; + ipVersion_ = 0; portsCase_ = 0; ports_ = null; return this; @@ -969,6 +1025,9 @@ private void buildPartial0(com.google.cloud.memorystore.v1beta.PscAutoConnection if (((from_bitField0_ & 0x00000100) != 0)) { result.connectionType_ = connectionType_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.ipVersion_ = ipVersion_; + } } private void buildPartialOneofs(com.google.cloud.memorystore.v1beta.PscAutoConnection result) { @@ -1025,6 +1084,9 @@ public Builder mergeFrom(com.google.cloud.memorystore.v1beta.PscAutoConnection o if (other.connectionType_ != 0) { setConnectionTypeValue(other.getConnectionTypeValue()); } + if (other.ipVersion_ != 0) { + setIpVersionValue(other.getIpVersionValue()); + } switch (other.getPortsCase()) { case PORT: { @@ -1116,6 +1178,12 @@ public Builder mergeFrom( portsCase_ = 9; break; } // case 72 + case 80: + { + ipVersion_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2198,6 +2266,116 @@ public Builder clearConnectionType() { return this; } + private int ipVersion_ = 0; + + /** + * + * + *
+     * Optional. Immutable. The IP version used for the PSC auto-created
+     * endpoint. If not specified, defaults to IPV4.
+     * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for ipVersion. + */ + @java.lang.Override + public int getIpVersionValue() { + return ipVersion_; + } + + /** + * + * + *
+     * Optional. Immutable. The IP version used for the PSC auto-created
+     * endpoint. If not specified, defaults to IPV4.
+     * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for ipVersion to set. + * @return This builder for chaining. + */ + public Builder setIpVersionValue(int value) { + ipVersion_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The IP version used for the PSC auto-created
+     * endpoint. If not specified, defaults to IPV4.
+     * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ipVersion. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1beta.IpVersion getIpVersion() { + com.google.cloud.memorystore.v1beta.IpVersion result = + com.google.cloud.memorystore.v1beta.IpVersion.forNumber(ipVersion_); + return result == null ? com.google.cloud.memorystore.v1beta.IpVersion.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Immutable. The IP version used for the PSC auto-created
+     * endpoint. If not specified, defaults to IPV4.
+     * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The ipVersion to set. + * @return This builder for chaining. + */ + public Builder setIpVersion(com.google.cloud.memorystore.v1beta.IpVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + ipVersion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The IP version used for the PSC auto-created
+     * endpoint. If not specified, defaults to IPV4.
+     * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearIpVersion() { + bitField0_ = (bitField0_ & ~0x00000200); + ipVersion_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1beta.PscAutoConnection) } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnectionOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnectionOrBuilder.java index 54a38a6d947c..0345fc43d70f 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnectionOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnectionOrBuilder.java @@ -306,5 +306,37 @@ public interface PscAutoConnectionOrBuilder */ com.google.cloud.memorystore.v1beta.ConnectionType getConnectionType(); + /** + * + * + *
+   * Optional. Immutable. The IP version used for the PSC auto-created
+   * endpoint. If not specified, defaults to IPV4.
+   * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for ipVersion. + */ + int getIpVersionValue(); + + /** + * + * + *
+   * Optional. Immutable. The IP version used for the PSC auto-created
+   * endpoint. If not specified, defaults to IPV4.
+   * 
+ * + * + * .google.cloud.memorystore.v1beta.IpVersion ip_version = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ipVersion. + */ + com.google.cloud.memorystore.v1beta.IpVersion getIpVersion(); + com.google.cloud.memorystore.v1beta.PscAutoConnection.PortsCase getPortsCase(); } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java index a96eb863b911..111a982519f1 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/V1mainProto.java @@ -822,11 +822,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022service_attachment\030\001 \001(\tB1\342A\001\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022N\n" + "\017connection_type\030\004" - + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\004\342A\001\003\"\214\004\n" + + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\004\342A\001\003\"\323\004\n" + "\021PscAutoConnection\022\024\n" + "\004port\030\t \001(\005B\004\342A\001\001H\000\022\037\n" + "\021psc_connection_id\030\001 \001(\tB\004\342A\001\003\022 \n\n" - + "ip_address\030\002 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\002\022G\n" + + "ip_address\030\002 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\004\022G\n" + "\017forwarding_rule\030\003 \001(\tB.\342A\001\003\372A\'\n" + "%compute.googleapis.com/ForwardingRule\022\030\n\n" + "project_id\030\004 \001(\tB\004\342A\001\002\0228\n" @@ -837,12 +837,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025psc_connection_status\030\007" + " \001(\01624.google.cloud.memorystore.v1beta.PscConnectionStatusB\004\342A\001\003\022N\n" + "\017connection_type\030\010" - + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\004\342A\001\003B\007\n" + + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\004\342A\001\003\022E\n\n" + + "ip_version\030\n" + + " \001(\0162*.google.cloud.memorystore.v1beta.IpVersionB\005\342A\002\001\005B\007\n" + "\005ports\"\210\004\n\r" + "PscConnection\022\024\n" + "\004port\030\t \001(\005B\004\342A\001\001H\000\022\037\n" + "\021psc_connection_id\030\001 \001(\tB\004\342A\001\002\022 \n\n" - + "ip_address\030\002 \001(\tB\014\342A\001\002\342\214\317\327\010\002\010\002\022G\n" + + "ip_address\030\002 \001(\tB\014\342A\001\002\342\214\317\327\010\002\010\004\022G\n" + "\017forwarding_rule\030\003 \001(\tB.\342A\001\002\372A\'\n" + "%compute.googleapis.com/ForwardingRule\022\030\n\n" + "project_id\030\004 \001(\tB\004\342A\001\003\0228\n" @@ -850,8 +852,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022M\n" + "\022service_attachment\030\006 \001(\tB1\342A\001\002\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022Y\n" - + "\025psc_connection_status\030\007" - + " \001(\01624.google.cloud.memorystore.v1beta.PscConnectionStatusB\004\342A\001\003\022N\n" + + "\025psc_connection_status\030\007 \001" + + "(\01624.google.cloud.memorystore.v1beta.PscConnectionStatusB\004\342A\001\003\022N\n" + "\017connection_type\030\010" + " \001(\0162/.google.cloud.memorystore.v1beta.ConnectionTypeB\004\342A\001\003B\007\n" + "\005ports\"x\n" @@ -861,15 +863,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\004 \001(\tB\'\342A\001\003\372A \n" + "\036compute.googleapis.com/Network\"\361\006\n" + "\021PersistenceConfig\022V\n" - + "\004mode\030\001 \001(\0162B" - + ".google.cloud.memorystore.v1beta.PersistenceConfig.PersistenceModeB\004\342A\001\001\022V\n\n" - + "rdb_config\030\002 \001(\0132<.google.cloud.memorystore." - + "v1beta.PersistenceConfig.RDBConfigB\004\342A\001\001\022V\n\n" - + "aof_config\030\003 \001(\0132<.google.cloud.memo" - + "rystore.v1beta.PersistenceConfig.AOFConfigB\004\342A\001\001\032\267\002\n" + + "\004mode\030\001 \001(\0162B.google.c" + + "loud.memorystore.v1beta.PersistenceConfig.PersistenceModeB\004\342A\001\001\022V\n\n" + + "rdb_config\030\002 " + + "\001(\0132<.google.cloud.memorystore.v1beta.PersistenceConfig.RDBConfigB\004\342A\001\001\022V\n\n" + + "aof_config\030\003 \001(\0132<.google.cloud.memorystore.v" + + "1beta.PersistenceConfig.AOFConfigB\004\342A\001\001\032\267\002\n" + "\tRDBConfig\022n\n" - + "\023rdb_snapshot_period\030\001 \001(\0162K.google.cloud.memorystore.v" - + "1beta.PersistenceConfig.RDBConfig.SnapshotPeriodB\004\342A\001\001\022A\n" + + "\023rdb_snapshot_period\030\001 \001(\0162K.google.cloud.memorystore.v1beta.Per" + + "sistenceConfig.RDBConfig.SnapshotPeriodB\004\342A\001\001\022A\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"w\n" + "\016SnapshotPeriod\022\037\n" @@ -879,8 +881,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\304\001\n" + "\tAOFConfig\022d\n" - + "\014append_fsync\030\001 \001(\0162H.google.cloud.memorystore.v1beta.Persist" - + "enceConfig.AOFConfig.AppendFsyncB\004\342A\001\001\"Q\n" + + "\014append_fsync\030\001 \001(\0162H.google.c" + + "loud.memorystore.v1beta.PersistenceConfig.AOFConfig.AppendFsyncB\004\342A\001\001\"Q\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\t\n" + "\005NEVER\020\001\022\r\n" @@ -890,33 +892,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034PERSISTENCE_MODE_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\007\n" + "\003RDB\020\002\022\007\n" - + "\003AOF\020\003\"#\n\n" + + "\003AOF\020\003\"#\n" + + "\n" + "NodeConfig\022\025\n" + "\007size_gb\030\001 \001(\001B\004\342A\001\003\"\240\002\n" + "\026ZoneDistributionConfig\022\022\n" + "\004zone\030\002 \001(\tB\004\342A\001\001\022\023\n" + "\005zones\030\003 \003(\tB\004\342A\001\001\022\032\n" + "\014active_zones\030\004 \003(\tB\004\342A\001\003\022`\n" - + "\004mode\030\001 \001(\0162L.goog" - + "le.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionModeB\004\342A\001\001\"_\n" + + "\004mode\030\001 \001(\0162L.google.cloud." + + "memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionModeB\004\342A\001\001\"_\n" + "\024ZoneDistributionMode\022&\n" - + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" + + "\"ZONE_DISTRIBUTION_MODE_U", + "NSPECIFIED\020\000\022\016\n\n" + "MULTI_ZONE\020\001\022\017\n" + "\013SINGLE_ZONE\020\002\"\325\002\n" - + "\034RescheduleMaintenance", - "Request\022:\n" + + "\034RescheduleMaintenanceRequest\022:\n" + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#memorystore.googleapis.com/Instance\022k\n" - + "\017reschedule_type\030\002 \001(\0162L.google.cloud.memorystore." - + "v1beta.RescheduleMaintenanceRequest.RescheduleTypeB\004\342A\001\002\0227\n\r" + + "\017reschedule_type\030\002 \001(\0162L.google.cloud.memorystore.v1beta.Re" + + "scheduleMaintenanceRequest.RescheduleTypeB\004\342A\001\002\0227\n\r" + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tIMMEDIATE\020\001\022\021\n\r" + "SPECIFIC_TIME\020\003\"\212\001\n" + "\026ListAclPoliciesRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\342A\001\002\372A&\022$memorystore.googleapis.com/AclPolicy\022\027\n" + + "\006parent\030\001 \001(\tB-\342A\001\002\372A" + + "&\022$memorystore.googleapis.com/AclPolicy\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\217\001\n" + "\027ListAclPoliciesResponse\022@\n" @@ -930,8 +933,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\246\001\n" + "\036ListAclPolicyRevisionsResponse\022P\n" - + "\024acl_policy_revisions\030\001 \003(\01322.google.clou" - + "d.memorystore.v1beta.AclPolicyRevision\022\027\n" + + "\024acl_policy_revisions\030\001" + + " \003(\01322.google.cloud.memorystore.v1beta.AclPolicyRevision\022\027\n" + "\017next_page_token\030\002 \001(\t\022\031\n" + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\265\001\n" + "\024ListInstancesRequest\022<\n" @@ -955,8 +958,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\334\001\n" + "\026CreateAclPolicyRequest\022=\n" - + "\006parent\030\001 \001(\tB-\342" - + "A\001\002\372A&\022$memorystore.googleapis.com/AclPolicy\022\033\n\r" + + "\006parent\030\001 \001(" + + "\tB-\342A\001\002\372A&\022$memorystore.googleapis.com/AclPolicy\022\033\n\r" + "acl_policy_id\030\002 \001(\tB\004\342A\001\002\022D\n\n" + "acl_policy\030\003" + " \001(\0132*.google.cloud.memorystore.v1beta.AclPolicyB\004\342A\001\002\022 \n\n" @@ -966,13 +969,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB,\342A\001\002\372A%\022#memorystore.googleapis.com/Instance\022\031\n" + "\013instance_id\030\002 \001(\tB\004\342A\001\002\022A\n" - + "\010instance\030\003 \001(\0132).google." - + "cloud.memorystore.v1beta.InstanceB\004\342A\001\002\022 \n\n" + + "\010instance\030\003" + + " \001(\0132).google.cloud.memorystore.v1beta.InstanceB\004\342A\001\002\022 \n\n" + "request_id\030\004 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\267\001\n" + "\026UpdateAclPolicyRequest\022D\n\n" - + "acl_policy\030\001 \001(\013" - + "2*.google.cloud.memorystore.v1beta.AclPolicyB\004\342A\001\002\0225\n" + + "acl_policy\030\001 \001(\0132*.google" + + ".cloud.memorystore.v1beta.AclPolicyB\004\342A\001\002\0225\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022" + " \n\n" + "request_id\030\003 \001(" @@ -980,8 +983,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025UpdateInstanceRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022A\n" - + "\010instance\030\002 \001(\0132)" - + ".google.cloud.memorystore.v1beta.InstanceB\004\342A\001\002\022 \n\n" + + "\010instance\030\002" + + " \001(\0132).google.cloud.memorystore.v1beta.InstanceB\004\342A\001\002\022 \n\n" + "request_id\030\003 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\213\001\n" + "\026DeleteAclPolicyRequest\022;\n" @@ -995,13 +998,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\227\001\n" + "\034ListBackupCollectionsRequest\022D\n" - + "\006parent\030\001 \001(\tB4\342A\001\002\372A-" - + "\022+memorystore.googleapis.com/BackupCollection\022\027\n" + + "\006parent\030\001 \001(" + + "\tB4\342A\001\002\372A-\022+memorystore.googleapis.com/BackupCollection\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\234\001\n" + "\035ListBackupCollectionsResponse\022M\n" - + "\022backup_collections\030\001 \003(\01321" - + ".google.cloud.memorystore.v1beta.BackupCollection\022\027\n" + + "\022backup_collections\030\001 \003(\01321.google.c" + + "loud.memorystore.v1beta.BackupCollection\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\032GetBackupCollectionRequest\022B\n" @@ -1038,24 +1041,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#memorystore.googleapis.com/Instance\"\277\001\n" + "\031ListTokenAuthUsersRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\342A\001\002\372A*\022(memorystore.googleapis.com/TokenAuthUser\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" - + "\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A" + + "*\022(memorystore.googleapis.com/TokenAuthUser\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\232\001\n" + "\032ListTokenAuthUsersResponse\022H\n" - + "\020token_auth_users\030\001" - + " \003(\0132..google.cloud.memorystore.v1beta.TokenAuthUser\022\027\n" + + "\020token_auth_users\030\001 \003(\0132.." + + "google.cloud.memorystore.v1beta.TokenAuthUser\022\027\n" + "\017next_page_token\030\002 \001(\t\022\031\n" + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"Z\n" + "\027GetTokenAuthUserRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" + "(memorystore.googleapis.com/TokenAuthUser\"\267\001\n" + "\025ListAuthTokensRequest\022=\n" - + "\006parent\030\001 \001(\t" - + "B-\342A\001\002\372A&\022$memorystore.googleapis.com/AuthToken\022\027\n" + + "\006parent\030\001 \001(\tB-\342A\001\002\372A&" + + "\022$memorystore.googleapis.com/AuthToken\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" @@ -1080,38 +1082,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023AddAuthTokenRequest\022J\n" + "\017token_auth_user\030\001 \001(\tB1\342A\001\002\372A*\n" + "(memorystore.googleapis.com/TokenAuthUser\022D\n\n" - + "auth_token\030\002" - + " \001(\0132*.google.cloud.memorystore.v1beta.AuthTokenB\004\342A\001\002\"U\n" + + "auth_token\030\002 \001(\0132*.g" + + "oogle.cloud.memorystore.v1beta.AuthTokenB\004\342A\001\002\"U\n" + "\026DeleteAuthTokenRequest\022;\n" + "\004name\030\001 \001(\tB-\342A\001\002\372A&\n" + "$memorystore.googleapis.com/AuthToken\"\222\004\n" + "\024CertificateAuthority\022n\n" - + "\021managed_server_ca\030\002 \001(\0132Q.google.cloud.memorystore.v1beta.Certificate" - + "Authority.ManagedCertificateAuthorityH\000\022\022\n" + + "\021managed_server_ca\030\002 \001(\0132Q.google.cloud" + + ".memorystore.v1beta.CertificateAuthority.ManagedCertificateAuthorityH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\032\257\001\n" + "\033ManagedCertificateAuthority\022m\n" - + "\010ca_certs\030\001 \003(\0132[.google.cloud.memorystore.v1beta.CertificateAutho" - + "rity.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132[.google.cloud.memo" + + "rystore.v1beta.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\266\001\352A\262\001\n" - + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects/{project}/locati" - + "ons/{location}/instances/{instance}/cert" - + "ificateAuthority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + + "/memorystore.googleapis.com/CertificateAutho" + + "rity\022Qprojects/{project}/locations/{location}/instances/{instance}/certificateAu" + + "thority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\211\005\n" + "\"SharedRegionalCertificateAuthority\022\204\001\n" - + "\021managed_server_ca\030\002 \001(\0132g.google.cloud.me" - + "morystore.v1beta.SharedRegionalCertifica" - + "teAuthority.RegionalManagedCertificateAuthorityH\000\022\022\n" + + "\021managed_server_ca\030\002 \001(\0132g.google.cloud.memorystore" + + ".v1beta.SharedRegionalCertificateAuthori" + + "ty.RegionalManagedCertificateAuthorityH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\032\336\001\n" + "#RegionalManagedCertificateAuthority\022\213\001\n" - + "\010ca_certs\030\001 \003(\0132y.google.cloud.memorystore.v1be" - + "ta.SharedRegionalCertificateAuthority.Re" - + "gionalManagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132y.google.cloud.memorystore.v1beta.Shared" + + "RegionalCertificateAuthority.RegionalMan" + + "agedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\331\001\352A\325\001\n" - + "=memorystore.googleapis.com/SharedRegionalCertificateAutho" - + "rity\022Jprojects/{project}/locations/{location}/sharedRegionalCertificateAuthority" - + "*$sharedRegionalCertificateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + + "=memorystore.googleapis.com/SharedRegionalCertificateAuthority\022Jpro" + + "jects/{project}/locations/{location}/sharedRegionalCertificateAuthority*$sharedR" + + "egionalCertificateAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + "\tserver_ca\"\204\001\n" + ",GetSharedRegionalCertificateAuthorityRequest\022T\n" + "\004name\030\001 \001(\tBF\342A\001\002\372A?\n" @@ -1127,12 +1129,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" + "\013api_version\030\007 \001(\tB\004\342A\001\003\"\202\005\n" + "\016EncryptionInfo\022S\n" - + "\017encryption_type\030\001" - + " \001(\01624.google.cloud.memorystore.v1beta.EncryptionInfo.TypeB\004\342A\001\003\022K\n" + + "\017encryption_type\030\001 " + + "\001(\01624.google.cloud.memorystore.v1beta.EncryptionInfo.TypeB\004\342A\001\003\022K\n" + "\020kms_key_versions\030\002 \003(\tB1\342A\001\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022`\n" - + "\025kms_key_primary_state\030\003 \001(\0162;.google.cloud.memo" - + "rystore.v1beta.EncryptionInfo.KmsKeyStateB\004\342A\001\003\022:\n" + + "\025kms_key_primary_state\030\003 \001(\0162;.google.cloud.memorystore.v" + + "1beta.EncryptionInfo.KmsKeyStateB\004\342A\001\003\022:\n" + "\020last_update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\\\n" + "\004Type\022\024\n" @@ -1151,185 +1153,186 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017UNKNOWN_FAILURE\020\010*W\n" + "\023PscConnectionStatus\022%\n" + "!PSC_CONNECTION_STATUS_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\022\r\n" + + "\006ACTIVE\020\001\022\r" + + "\n" + "\tNOT_FOUND\020\002*\211\001\n" + "\016ConnectionType\022\037\n" + "\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031CONNECTION_TYPE_DISCOVERY\020\001\022\033\n" + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" - + "\026CONNECTION_TYPE_READER\020\0032\236:\n" + + "\026CONNECTION_TYPE_READER\020\003*;\n" + + "\tIpVersion\022\032\n" + + "\026IP_VERSION_UNSPECIFIED\020\000\022\010\n" + + "\004IPV4\020\001\022\010\n" + + "\004IPV6\020\0022\236:\n" + "\013Memorystore\022\312\001\n" - + "\017ListAclPolicies\0227.google.cloud.memorystore.v1beta.ListAcl" - + "PoliciesRequest\0328.google.cloud.memorysto" - + "re.v1beta.ListAclPoliciesResponse\"D\332A\006pa" - + "rent\202\323\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/aclPolicies\022\302\001\n\r" - + "ListInstances\0225.google.cloud.memorystore.v1beta.List" - + "InstancesRequest\0326.google.cloud.memoryst" - + "ore.v1beta.ListInstancesResponse\"B\332A\006par" - + "ent\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/instances\022\264\001\n" - + "\014GetAclPolicy\0224.google.cloud.memorystore.v1beta.GetAclPo" - + "licyRequest\032*.google.cloud.memorystore.v" - + "1beta.AclPolicy\"B\332A\004name\202\323\344\223\0025\0223/v1beta/" - + "{name=projects/*/locations/*/aclPolicies/*}\022\257\001\n" - + "\013GetInstance\0223.google.cloud.memorystore.v1beta.GetInstanceRequest\032).googl" - + "e.cloud.memorystore.v1beta.Instance\"@\332A\004" - + "name\202\323\344\223\0023\0221/v1beta/{name=projects/*/locations/*/instances/*}\022\341\001\n" - + "\017CreateAclPolicy\0227.google.cloud.memorystore.v1beta.Crea" - + "teAclPolicyRequest\032*.google.cloud.memory" - + "store.v1beta.AclPolicy\"i\332A\037parent,acl_po" - + "licy,acl_policy_id\202\323\344\223\002A\"3/v1beta/{parent=projects/*/locations/*}/aclPolicies:\n" + + "\017ListAclPolicies\0227.google.cloud.memorystore.v1" + + "beta.ListAclPoliciesRequest\0328.google.cloud.memorystore.v1beta.ListAclPoliciesRes" + + "ponse\"D\332A\006parent\202\323\344\223\0025\0223/v1beta/{parent=projects/*/locations/*}/aclPolicies\022\302\001\n\r" + + "ListInstances\0225.google.cloud.memorystore.v1beta.ListInstancesRequest\0326.google.cl" + + "oud.memorystore.v1beta.ListInstancesResp" + + "onse\"B\332A\006parent\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/instances\022\264\001\n" + + "\014GetAclPolicy\0224.google.cloud.memorystore.v1b" + + "eta.GetAclPolicyRequest\032*.google.cloud.m" + + "emorystore.v1beta.AclPolicy\"B\332A\004name\202\323\344\223" + + "\0025\0223/v1beta/{name=projects/*/locations/*/aclPolicies/*}\022\257\001\n" + + "\013GetInstance\0223.google.cloud.memorystore.v1beta.GetInstanceReq" + + "uest\032).google.cloud.memorystore.v1beta.I" + + "nstance\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{name=projects/*/locations/*/instances/*}\022\341\001\n" + + "\017CreateAclPolicy\0227.google.cloud.memorystore" + + ".v1beta.CreateAclPolicyRequest\032*.google." + + "cloud.memorystore.v1beta.AclPolicy\"i\332A\037p" + + "arent,acl_policy,acl_policy_id\202\323\344\223\002A\"3/v" + + "1beta/{parent=projects/*/locations/*}/aclPolicies:\n" + "acl_policy\022\353\001\n" - + "\016CreateInstance\0226.google.cloud.memorystore.v1beta.CreateInstanceReq" - + "uest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\033parent," - + "instance,instance_id\202\323\344\223\002=\"1/v1beta/{par" - + "ent=projects/*/locations/*}/instances:\010instance\022\370\001\n" - + "\017UpdateAclPolicy\0227.google.cloud.memorystore.v1beta.UpdateAclPolicyReq" - + "uest\032\035.google.longrunning.Operation\"\214\001\312A\036\n" - + "\tAclPolicy\022\021OperationMetadata\332A\026acl_po" - + "licy,update_mask\202\323\344\223\002L2>/v1beta/{acl_pol" - + "icy.name=projects/*/locations/*/aclPolicies/*}:\n" + + "\016CreateInstance\0226.google.cloud.memorystore.v1beta.Creat" + + "eInstanceRequest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" + + "\010Instance\022\021OperationMetada" + + "ta\332A\033parent,instance,instance_id\202\323\344\223\002=\"1" + + "/v1beta/{parent=projects/*/locations/*}/instances:\010instance\022\370\001\n" + + "\017UpdateAclPolicy\0227.google.cloud.memorystore.v1beta.Update" + + "AclPolicyRequest\032\035.google.longrunning.Operation\"\214\001\312A\036\n" + + "\tAclPolicy\022\021OperationMetad" + + "ata\332A\026acl_policy,update_mask\202\323\344\223\002L2>/v1b" + + "eta/{acl_policy.name=projects/*/locations/*/aclPolicies/*}:\n" + "acl_policy\022\355\001\n" - + "\016UpdateInstance\0226.google.cloud.memorystore.v1beta.UpdateIn" - + "stanceRequest\032\035.google.longrunning.Operation\"\203\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332" - + "A\024instance,update_mask\202\323\344\223\002F2:/v1beta/{i" - + "nstance.name=projects/*/locations/*/instances/*}:\010instance\022\332\001\n" - + "\017DeleteAclPolicy\0227.google.cloud.memorystore.v1beta.DeleteA" - + "clPolicyRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\0025*3/v1beta/{nam" - + "e=projects/*/locations/*/aclPolicies/*}\022\330\001\n" - + "\024GetAclPolicyRevision\022<.google.cloud.memorystore.v1beta.GetAclPolicyRevisionR" - + "equest\0322.google.cloud.memorystore.v1beta" - + ".AclPolicyRevision\"N\332A\004name\202\323\344\223\002A\022?/v1be" - + "ta/{name=projects/*/locations/*/aclPolicies/*/revisions/*}\022\353\001\n" - + "\026ListAclPolicyRevisions\022>.google.cloud.memorystore.v1beta." - + "ListAclPolicyRevisionsRequest\032?.google.cloud.memorystore.v1beta.ListAclPolicyRev" - + "isionsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1beta" - + "/{parent=projects/*/locations/*/aclPolicies/*}/revisions\022\326\001\n" - + "\016DeleteInstance\0226.google.cloud.memorystore.v1beta.DeleteInst" - + "anceRequest\032\035.google.longrunning.Operation\"m\312A*\n" - + "\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\0023*1/v1beta/{name=projects/*/locations/*/instances/*}\022\350\001\n" - + "\027GetCertificateAuthority\022?.google.cloud.mem" - + "orystore.v1beta.GetCertificateAuthorityRequest\0325.google.cloud.memorystore.v1beta" - + ".CertificateAuthority\"U\332A\004name\202\323\344\223\002H\022F/v" - + "1beta/{name=projects/*/locations/*/instances/*}/certificateAuthority\022\224\002\n" - + "%GetSharedRegionalCertificateAuthority\022M.google." - + "cloud.memorystore.v1beta.GetSharedRegionalCertificateAuthorityRequest\032C.google.c" - + "loud.memorystore.v1beta.SharedRegionalCe" - + "rtificateAuthority\"W\332A\004name\202\323\344\223\002J\022H/v1be" - + "ta/{name=projects/*/locations/*/sharedRegionalCertificateAuthority}\022\217\002\n" - + "\025RescheduleMaintenance\022=.google.cloud.memorystore" - + ".v1beta.RescheduleMaintenanceRequest\032\035.google.longrunning.Operation\"\227\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\"name,reschedule" - + "_type,schedule_time\202\323\344\223\002L\"G/v1beta/{name" - + "=projects/*/locations/*/instances/*}:rescheduleMaintenance:\001*\022\342\001\n" - + "\025ListBackupCollections\022=.google.cloud.memorystore.v1bet" - + "a.ListBackupCollectionsRequest\032>.google.cloud.memorystore.v1beta.ListBackupColle" - + "ctionsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1beta" - + "/{parent=projects/*/locations/*}/backupCollections\022\317\001\n" - + "\023GetBackupCollection\022;.google.cloud.memorystore.v1beta.GetBackupCo" - + "llectionRequest\0321.google.cloud.memorysto" - + "re.v1beta.BackupCollection\"H\332A\004name\202\323\344\223\002" - + ";\0229/v1beta/{name=projects/*/locations/*/backupCollections/*}\022\316\001\n" - + "\013ListBackups\0223.google.cloud.memorystore.v1beta.ListBacku" - + "psRequest\0324.google.cloud.memorystore.v1b" - + "eta.ListBackupsResponse\"T\332A\006parent\202\323\344\223\002E" - + "\022C/v1beta/{parent=projects/*/locations/*/backupCollections/*}/backups\022\273\001\n" - + "\tGetBackup\0221.google.cloud.memorystore.v1beta.Ge" - + "tBackupRequest\032\'.google.cloud.memorystor" - + "e.v1beta.Backup\"R\332A\004name\202\323\344\223\002E\022C/v1beta/" - + "{name=projects/*/locations/*/backupCollections/*/backups/*}\022\344\001\n" - + "\014DeleteBackup\0224.google.cloud.memorystore.v1beta.DeleteBac" - + "kupRequest\032\035.google.longrunning.Operation\"\177\312A*\n" - + "\025google.protobuf.Empty\022\021Operation" - + "Metadata\332A\004name\202\323\344\223\002E*C/v1beta/{name=pro" - + "jects/*/locations/*/backupCollections/*/backups/*}\022\330\001\n" - + "\014ExportBackup\0224.google.clo" - + "ud.memorystore.v1beta.ExportBackupRequest\032\035.google.longrunning.Operation\"s\312A\033\n" - + "\006Backup\022\021OperationMetadata\202\323\344\223\002O\"J/v1beta/" - + "{name=projects/*/locations/*/backupCollections/*/backups/*}:export:\001*\022\323\001\n" - + "\016BackupInstance\0226.google.cloud.memorystore.v1be" - + "ta.BackupInstanceRequest\032\035.google.longrunning.Operation\"j\312A\035\n" - + "\010Instance\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002=\"8/v1beta/{name=pr" - + "ojects/*/locations/*/instances/*}:backup:\001*\022\324\001\n" - + "\016StartMigration\0226.google.cloud.me" - + "morystore.v1beta.StartMigrationRequest\032\035.google.longrunning.Operation\"k\312A\035\n" - + "\010Instance\022\021OperationMetadata\202\323\344\223\002E\"@/v1beta/{" - + "name=projects/*/locations/*/instances/*}:startMigration:\001*\022\344\001\n" - + "\017FinishMigration\0227.google.cloud.memorystore.v1beta.FinishM" - + "igrationRequest\032\035.google.longrunning.Operation\"y\312A\035\n" + + "\016UpdateInstance\0226.google.cloud.memorystore.v1b" + + "eta.UpdateInstanceRequest\032\035.google.longrunning.Operation\"\203\001\312A\035\n" + + "\010Instance\022\021Operat" + + "ionMetadata\332A\024instance,update_mask\202\323\344\223\002F" + + "2:/v1beta/{instance.name=projects/*/locations/*/instances/*}:\010instance\022\332\001\n" + + "\017DeleteAclPolicy\0227.google.cloud.memorystore.v1" + + "beta.DeleteAclPolicyRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0025*3" + + "/v1beta/{name=projects/*/locations/*/aclPolicies/*}\022\330\001\n" + + "\024GetAclPolicyRevision\022<.google.cloud.memorystore.v1beta.GetAclPol" + + "icyRevisionRequest\0322.google.cloud.memory" + + "store.v1beta.AclPolicyRevision\"N\332A\004name\202" + + "\323\344\223\002A\022?/v1beta/{name=projects/*/locations/*/aclPolicies/*/revisions/*}\022\353\001\n" + + "\026ListAclPolicyRevisions\022>.google.cloud.memorys" + + "tore.v1beta.ListAclPolicyRevisionsRequest\032?.google.cloud.memorystore.v1beta.List" + + "AclPolicyRevisionsResponse\"P\332A\006parent\202\323\344" + + "\223\002A\022?/v1beta/{parent=projects/*/locations/*/aclPolicies/*}/revisions\022\326\001\n" + + "\016DeleteInstance\0226.google.cloud.memorystore.v1bet" + + "a.DeleteInstanceRequest\032\035.google.longrunning.Operation\"m\312A*\n" + + "\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1/v1b" + + "eta/{name=projects/*/locations/*/instances/*}\022\350\001\n" + + "\027GetCertificateAuthority\022?.google.cloud.memorystore.v1beta.GetCertifica" + + "teAuthorityRequest\0325.google.cloud.memory" + + "store.v1beta.CertificateAuthority\"U\332A\004na" + + "me\202\323\344\223\002H\022F/v1beta/{name=projects/*/locat" + + "ions/*/instances/*}/certificateAuthority\022\224\002\n" + + "%GetSharedRegionalCertificateAuthority\022M.google.cloud.memorystore.v1beta.Get" + + "SharedRegionalCertificateAuthorityRequest\032C.google.cloud.memorystore.v1beta.Shar" + + "edRegionalCertificateAuthority\"W\332A\004name\202" + + "\323\344\223\002J\022H/v1beta/{name=projects/*/location" + + "s/*/sharedRegionalCertificateAuthority}\022\217\002\n" + + "\025RescheduleMaintenance\022=.google.cloud.memorystore.v1beta.RescheduleMaintenanc" + + "eRequest\032\035.google.longrunning.Operation\"\227\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\"nam" + + "e,reschedule_type,schedule_time\202\323\344\223\002L\"G/" + + "v1beta/{name=projects/*/locations/*/instances/*}:rescheduleMaintenance:\001*\022\342\001\n" + + "\025ListBackupCollections\022=.google.cloud.memor" + + "ystore.v1beta.ListBackupCollectionsRequest\032>.google.cloud.memorystore.v1beta.Lis" + + "tBackupCollectionsResponse\"J\332A\006parent\202\323\344" + + "\223\002;\0229/v1beta/{parent=projects/*/locations/*}/backupCollections\022\317\001\n" + + "\023GetBackupCollection\022;.google.cloud.memorystore.v1beta" + + ".GetBackupCollectionRequest\0321.google.cloud.memorystore.v1beta.BackupCollection\"H" + + "\332A\004name\202\323\344\223\002;\0229/v1beta/{name=projects/*/locations/*/backupCollections/*}\022\316\001\n" + + "\013ListBackups\0223.google.cloud.memorystore.v1be" + + "ta.ListBackupsRequest\0324.google.cloud.mem" + + "orystore.v1beta.ListBackupsResponse\"T\332A\006" + + "parent\202\323\344\223\002E\022C/v1beta/{parent=projects/*" + + "/locations/*/backupCollections/*}/backups\022\273\001\n" + + "\tGetBackup\0221.google.cloud.memorystore.v1beta.GetBackupRequest\032\'.google.clou" + + "d.memorystore.v1beta.Backup\"R\332A\004name\202\323\344\223" + + "\002E\022C/v1beta/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\344\001\n" + + "\014DeleteBackup\0224.google.cloud.memorystore.v1be" + + "ta.DeleteBackupRequest\032\035.google.longrunning.Operation\"\177\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002E*C/v1be" + + "ta/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\330\001\n" + + "\014ExportBackup\0224.google.cloud.memorystore.v1beta.Export" + + "BackupRequest\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Backup\022\021OperationMetadata\202\323\344\223" + + "\002O\"J/v1beta/{name=projects/*/locations/*" + + "/backupCollections/*/backups/*}:export:\001*\022\323\001\n" + + "\016BackupInstance\0226.google.cloud.memo" + + "rystore.v1beta.BackupInstanceRequest\032\035.google.longrunning.Operation\"j\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\004name\202\323\344\223\002=\"8/v1b" + + "eta/{name=projects/*/locations/*/instances/*}:backup:\001*\022\324\001\n" + + "\016StartMigration\0226.google.cloud.memorystore.v1beta.StartMigrat" + + "ionRequest\032\035.google.longrunning.Operation\"k\312A\035\n" + + "\010Instance\022\021OperationMetadata\202\323\344\223\002" + + "E\"@/v1beta/{name=projects/*/locations/*/instances/*}:startMigration:\001*\022\344\001\n" + + "\017FinishMigration\0227.google.cloud.memorystore.v1" + + "beta.FinishMigrationRequest\032\035.google.longrunning.Operation\"y\312A\035\n" + "\010Instance\022\021OperationMetadata\332A\n" - + "name,force\202\323\344\223\002F\"A/v1beta/{name=proje" - + "cts/*/locations/*/instances/*}:finishMigration:\001*\022\342\001\n" - + "\022ListTokenAuthUsers\022:.google.cloud.memorystore.v1beta.ListTokenAuth" - + "UsersRequest\032;.google.cloud.memorystore." - + "v1beta.ListTokenAuthUsersResponse\"S\332A\006pa" - + "rent\202\323\344\223\002D\022B/v1beta/{parent=projects/*/l" - + "ocations/*/instances/*}/tokenAuthUsers\022\317\001\n" - + "\020GetTokenAuthUser\0228.google.cloud.memor" - + "ystore.v1beta.GetTokenAuthUserRequest\032..google.cloud.memorystore.v1beta.TokenAut" - + "hUser\"Q\332A\004name\202\323\344\223\002D\022B/v1beta/{name=proj" - + "ects/*/locations/*/instances/*/tokenAuthUsers/*}\022\343\001\n" - + "\016ListAuthTokens\0226.google.cloud.memorystore.v1beta.ListAuthTokensRequ" - + "est\0327.google.cloud.memorystore.v1beta.Li" - + "stAuthTokensResponse\"`\332A\006parent\202\323\344\223\002Q\022O/" - + "v1beta/{parent=projects/*/locations/*/in" - + "stances/*/tokenAuthUsers/*}/authTokens\022\320\001\n" - + "\014GetAuthToken\0224.google.cloud.memorysto" - + "re.v1beta.GetAuthTokenRequest\032*.google.c" - + "loud.memorystore.v1beta.AuthToken\"^\332A\004na" - + "me\202\323\344\223\002Q\022O/v1beta/{name=projects/*/locat" - + "ions/*/instances/*/tokenAuthUsers/*/authTokens/*}\022\372\001\n" - + "\020AddTokenAuthUser\0228.google.cloud.memorystore.v1beta.AddTokenAuthUse" - + "rRequest\032\035.google.longrunning.Operation\"\214\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\030ins" - + "tance,token_auth_user\202\323\344\223\002K\"F/v1beta/{in" - + "stance=projects/*/locations/*/instances/*}:addTokenAuthUser:\001*\022\361\001\n" - + "\023DeleteTokenAuthUser\022;.google.cloud.memorystore.v1beta" - + ".DeleteTokenAuthUserRequest\032\035.google.longrunning.Operation\"~\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002D*B" - + "/v1beta/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\215\002\n" - + "\014AddAuthToken\0224.google.cloud.memorystore.v1beta.Ad" - + "dAuthTokenRequest\032\035.google.longrunning.Operation\"\247\001\312A\"\n\r" - + "TokenAuthUser\022\021OperationMetadata\332A\032token_auth_user,auth_token\202\323\344" - + "\223\002_\"Z/v1beta/{token_auth_user=projects/*" - + "/locations/*/instances/*/tokenAuthUsers/*}:addAuthToken:\001*\022\367\001\n" - + "\017DeleteAuthToken\0227.google.cloud.memorystore.v1beta.DeleteA" - + "uthTokenRequest\032\035.google.longrunning.Operation\"\213\001\312A*\n" - + "\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\002Q*O/v1beta/{na" - + "me=projects/*/locations/*/instances/*/to" - + "kenAuthUsers/*/authTokens/*}\032\274\001\312A\032memory" - + "store.googleapis.com\322A\233\001https://www.goog" - + "leapis.com/auth/cloud-platform,https://www.googleapis.com/auth/memorystore.read-" - + "only,https://www.googleapis.com/auth/memorystore.read-writeB\236\010\n" - + "#com.google.cloud.memorystore.v1betaB\013V1mainProtoP\001ZEclou" - + "d.google.com/go/memorystore/apiv1beta/me" - + "morystorepb;memorystorepb\252\002\037Google.Cloud" - + ".Memorystore.V1Beta\312\002\037Google\\Cloud\\Memor" - + "ystore\\V1beta\352\002\"Google::Cloud::Memorystore::V1beta\352An\n" - + "%compute.googleapis.com/ForwardingRule\022Eprojects/{project}/regions" - + "/{region}/forwardingRules/{forwarding_rule}\352AN\n" - + "\036compute.googleapis.com/Network\022," - + "projects/{project}/global/networks/{network}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{r" - + "egion}/serviceAttachments/{service_attachment}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{loca" - + "tion}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/loca" - + "tions/{location}/keyRings/{key_ring}/cry" - + "ptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352A\\\n" - + "\037privateca.google", - "apis.com/CaPool\0229projects/{project}/loca" - + "tions/{location}/caPools/{ca_pool}\352Aw\n(c" - + "ompute.googleapis.com/NetworkAttachment\022" - + "Kprojects/{project}/regions/{region}/net" - + "workAttachments/{network_attachment}b\006pr" - + "oto3" + + "name,force\202\323\344\223\002F\"A/v1beta" + + "/{name=projects/*/locations/*/instances/*}:finishMigration:\001*\022\342\001\n" + + "\022ListTokenAuthUsers\022:.google.cloud.memorystore.v1beta.L" + + "istTokenAuthUsersRequest\032;.google.cloud.memorystore.v1beta.ListTokenAuthUsersRes" + + "ponse\"S\332A\006parent\202\323\344\223\002D\022B/v1beta/{parent=" + + "projects/*/locations/*/instances/*}/tokenAuthUsers\022\317\001\n" + + "\020GetTokenAuthUser\0228.google.cloud.memorystore.v1beta.GetTokenAuthUs" + + "erRequest\032..google.cloud.memorystore.v1b" + + "eta.TokenAuthUser\"Q\332A\004name\202\323\344\223\002D\022B/v1bet" + + "a/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\343\001\n" + + "\016ListAuthTokens\0226.google.cloud.memorystore.v1beta.ListAu" + + "thTokensRequest\0327.google.cloud.memorysto" + + "re.v1beta.ListAuthTokensResponse\"`\332A\006par" + + "ent\202\323\344\223\002Q\022O/v1beta/{parent=projects/*/lo" + + "cations/*/instances/*/tokenAuthUsers/*}/authTokens\022\320\001\n" + + "\014GetAuthToken\0224.google.cloud.memorystore.v1beta.GetAuthTokenReques" + + "t\032*.google.cloud.memorystore.v1beta.Auth" + + "Token\"^\332A\004name\202\323\344\223\002Q\022O/v1beta/{name=proj" + + "ects/*/locations/*/instances/*/tokenAuthUsers/*/authTokens/*}\022\372\001\n" + + "\020AddTokenAuthUser\0228.google.cloud.memorystore.v1beta.Add" + + "TokenAuthUserRequest\032\035.google.longrunning.Operation\"\214\001\312A\035\n" + + "\010Instance\022\021OperationMe" + + "tadata\332A\030instance,token_auth_user\202\323\344\223\002K\"" + + "F/v1beta/{instance=projects/*/locations/*/instances/*}:addTokenAuthUser:\001*\022\361\001\n" + + "\023DeleteTokenAuthUser\022;.google.cloud.memory" + + "store.v1beta.DeleteTokenAuthUserRequest\032\035.google.longrunning.Operation\"~\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004" + + "name\202\323\344\223\002D*B/v1beta/{name=projects/*/loc" + + "ations/*/instances/*/tokenAuthUsers/*}\022\215\002\n" + + "\014AddAuthToken\0224.google.cloud.memorysto" + + "re.v1beta.AddAuthTokenRequest\032\035.google.longrunning.Operation\"\247\001\312A\"\n\r" + + "TokenAuthUser\022\021OperationMetadata\332A\032token_auth_user,a" + + "uth_token\202\323\344\223\002_\"Z/v1beta/{token_auth_use" + + "r=projects/*/locations/*/instances/*/tokenAuthUsers/*}:addAuthToken:\001*\022\367\001\n" + + "\017DeleteAuthToken\0227.google.cloud.memorystore.v1" + + "beta.DeleteAuthTokenRequest\032\035.google.longrunning.Operation\"\213\001\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002Q*" + + "O/v1beta/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*/authTokens/*}" + + "\032\274\001\312A\032memorystore.googleapis.com\322A\233\001http" + + "s://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/memor" + + "ystore.read-only,https://www.googleapis.com/auth/memorystore.read-writeB\236\010\n" + + "#com.google.cloud.memorystore.v1betaB\013V1mainP" + + "rotoP\001ZEcloud.google.com/go/memorystore/" + + "apiv1beta/memorystorepb;memorystorepb\252\002\037" + + "Google.Cloud.Memorystore.V1Beta\312\002\037Google" + + "\\Cloud\\Memorystore\\V1beta\352\002\"Google::Cloud::Memorystore::V1beta\352An\n" + + "%compute.googleapis.com/ForwardingRule\022Eprojects/{proj" + + "ect}/regions/{region}/forwardingRules/{forwarding_rule}\352AN\n" + + "\036compute.googleapis.c" + + "om/Network\022,projects/{project}/global/networks/{network}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project" + + "}/regions/{region}/serviceAttachments/{service_attachment}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{p", + "roject}/locations/{location}/keyRings/{k" + + "ey_ring}/cryptoKeys/{crypto_key}/cryptoK" + + "eyVersions/{crypto_key_version}\352A\\\n\037priv" + + "ateca.googleapis.com/CaPool\0229projects/{p" + + "roject}/locations/{location}/caPools/{ca" + + "_pool}\352Aw\n(compute.googleapis.com/Networ" + + "kAttachment\022Kprojects/{project}/regions/" + + "{region}/networkAttachments/{network_att" + + "achment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1709,6 +1712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAttachment", "PscConnectionStatus", "ConnectionType", + "IpVersion", "Ports", }); internal_static_google_cloud_memorystore_v1beta_PscConnection_descriptor = diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto index c0163edbdaf6..feb5d848aa9f 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/proto/google/cloud/memorystore/v1beta/memorystore.proto @@ -496,6 +496,18 @@ enum ConnectionType { CONNECTION_TYPE_READER = 3; } +// IP version for PSC consumer endpoints. +enum IpVersion { + // Not specified. Defaults to IPV4 on CreateInstance. + IP_VERSION_UNSPECIFIED = 0; + + // IPv4 address family. + IPV4 = 1; + + // IPv6 address family. + IPV6 = 2; +} + // A Memorystore instance. message Instance { option (google.api.resource) = { @@ -1716,7 +1728,7 @@ message PscAutoConnection { // Output only. The IP allocated on the consumer network for the PSC // forwarding rule. string ip_address = 2 [ - (google.api.field_info).format = IPV4, + (google.api.field_info).format = IPV4_OR_IPV6, (google.api.field_behavior) = OUTPUT_ONLY ]; @@ -1761,6 +1773,13 @@ message PscAutoConnection { // Output only. Type of the PSC connection. ConnectionType connection_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. The IP version used for the PSC auto-created + // endpoint. If not specified, defaults to IPV4. + IpVersion ip_version = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; } // User created Psc connection configuration. @@ -1778,7 +1797,7 @@ message PscConnection { // Required. The IP allocated on the consumer network for the PSC forwarding // rule. string ip_address = 2 [ - (google.api.field_info).format = IPV4, + (google.api.field_info).format = IPV4_OR_IPV6, (google.api.field_behavior) = REQUIRED ];